/* ========================================
   MODERN HOME MODULE STYLES
   ======================================== */

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --success-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --dark-gradient: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    --card-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    --card-hover-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   CAROUSEL MODERN STYLES
   ======================================== */

.carousel-home {
    position: relative;
    overflow: hidden;
    border-radius: 0 0 50px 50px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    margin-top: 1px;
}

.carousel-home .item {
    position: relative;
    height: 600px;
    overflow: hidden;
}

/* Overlay supprimé pour laisser l'image simple */


.carousel-home .item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1);
    transition: transform 8s ease-out;
}

.carousel-home .item.active img {
    transform: scale(1.1);
}

.carousel-home .carousel-caption {
    z-index: 2;
    bottom: 50%;
    transform: translateY(50%);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.carousel-home .carousel-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.carousel-home .carousel-subtitle {
    font-size: 1.8rem;
    font-weight: 300;
    color: #ffffff;
    opacity: 0.95;
}

.carousel-indicators li {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 8px;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid transparent;
    transition: var(--transition-smooth);
}

.carousel-indicators li.active {
    width: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    border-color: rgba(255, 255, 255, 0.8);
}

.carousel-control {
    width: 60px;
    height: 60px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    opacity: 0;
    transition: var(--transition-smooth);
}

.carousel-home:hover .carousel-control {
    opacity: 1;
}

.carousel-control.left {
    left: 30px;
}

.carousel-control.right {
    right: 30px;
}

.carousel-control:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.carousel-control .fa {
    font-size: 2rem;
    color: #ffffff;
}

/* ========================================
   SECTION STYLES
   ======================================== */

.section-home {
    padding: 80px 0;
    position: relative;
}

.section-home.about-us {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.title-style-1 {
    font-size: 3rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 60px;
    color: #2d3748;
    position: relative;
    padding-bottom: 20px;
}

.title-style-1 .title-under {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

.title-style-1::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 4px;
    background: var(--secondary-gradient);
    border-radius: 2px;
}

/* ========================================
   SERVICE CARDS
   ======================================== */

.about-us-col {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--card-shadow);
    transition: var(--transition-smooth);
    height: 100%;
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
}

.about-us-col::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: var(--transition-smooth);
}

.about-us-col:hover::before {
    transform: scaleX(1);
}

.about-us-col:hover {
    transform: translateY(-10px);
    box-shadow: var(--card-hover-shadow);
}

.col-icon-wrapper {
    width: 100px;
    height: 100px;
    margin: 0 auto 25px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    position: relative;
}

.col-icon-wrapper::after {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.5;
    }
}

.about-us-col:hover .col-icon-wrapper {
    transform: rotate(360deg) scale(1.1);
}

.col-icon-wrapper img {
    width: 50px;
    height: 50px;
    filter: brightness(0) invert(1);
}

.col-title {
    font-size: 1.3rem !important;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 15px;
    transition: var(--transition-smooth);
}

.about-us-col:hover .col-title {
    color: #667eea;
}

.col-details p {
    color: #718096;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.about-us-col .btn-primary {
    background: var(--primary-gradient);
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.about-us-col .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

/* ========================================
   PUBLICATIONS SECTION
   ======================================== */

.our-causes {
    background: #ffffff;
}

.cause {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition-smooth);
    margin-bottom: 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.cause:hover {
    transform: translateY(-10px);
    box-shadow: var(--card-hover-shadow);
}

.cause-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.cause:hover .cause-img {
    transform: scale(1.1);
}

.cause-progress {
    height: 8px;
    background: #e2e8f0;
    border-radius: 0;
    margin: 0;
}

.cause-progress .progress-bar {
    background: var(--success-gradient);
    transition: width 1s ease-out;
}

.cause-title {
    padding: 20px 25px 10px;
    margin: 0;
}

.cause-title a {
    color: #2d3748;
    font-size: 1.4rem;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.cause-title a:hover {
    color: #667eea;
}

.cause-details {
    padding: 0 25px 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.cause-details p {
    color: #718096;
    line-height: 1.6;
    margin-bottom: 15px;
}

.cause-details .badge {
    background: var(--primary-gradient);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600;
}

.cause-details .btn-holder {
    margin-top: auto;
}

.cause-details .btn-primary {
    background: var(--primary-gradient);
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.cause-details .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

/* ========================================
   VIDEO SECTION
   ======================================== */

.page-heading {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 60px 0;
    margin-top: 80px;
}

.page-heading .page-title {
    color: #ffffff;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 40px;
}

.page-heading .title-under {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: #ffffff;
    border-radius: 2px;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    padding: 40px 0;
}

.video-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition-smooth);
}

.video-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--card-hover-shadow);
}

.video-card video {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 20px 20px 0 0;
}

.video-card h4 {
    padding: 20px;
    color: #2d3748;
    font-weight: 700;
    margin: 0;
}

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounceInDown {
    from {
        opacity: 0;
        transform: translate3d(0, -100px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes bounceInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 100px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.fadeIn {
    animation: fadeIn 1s ease-out;
}

.bounceInDown {
    animation: bounceInDown 1s ease-out;
}

.bounceInUp {
    animation: bounceInUp 1s ease-out;
}

.zoomIn {
    animation: zoomIn 0.8s ease-out;
}

.animated.slow {
    animation-duration: 1.5s;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
    .carousel-home .item {
        height: 400px;
    }

    .carousel-home .carousel-title {
        font-size: 2rem;
    }

    .carousel-home .carousel-subtitle {
        font-size: 1.2rem;
    }

    .title-style-1 {
        font-size: 2rem;
    }

    .carousel-control {
        width: 40px;
        height: 40px;
    }

    .carousel-control.left {
        left: 10px;
    }

    .carousel-control.right {
        right: 10px;
    }

    .carousel-control .fa {
        font-size: 1.5rem;
    }

    .video-grid {
        grid-template-columns: 1fr;
    }

    .page-heading .page-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 576px) {
    .carousel-home .carousel-title {
        font-size: 1.5rem;
    }

    .carousel-home .carousel-subtitle {
        font-size: 1rem;
    }

    .section-home {
        padding: 40px 0;
    }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.glassmorphism {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.gradient-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hover-lift {
    transition: var(--transition-smooth);
}

.hover-lift:hover {
    transform: translateY(-5px);
}