:root {
    /* Brand Colors (Logo Based) */
    --brand-blue: #0033FF;
    --brand-red: #FF0000;
    --brand-yellow: #FFDC00;
    --dark-blue: #001A80;
    --bg-light: #F8F9FA;

    /* Light Mode Palette */
    --bg-main: #FFFFFF;
    --bg-surface: #F8F9FA;
    --bg-card: #FFFFFF;
    --text-primary: #050A1A;
    --text-secondary: #555555;
    --border-color: rgba(0, 51, 255, 0.1);
    --header-bg: rgba(255, 255, 255, 0.85);
    --shadow-main: 0 10px 30px rgba(0, 51, 255, 0.08);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);

    /* Utils */
    --header-height: 80px;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --radius-lg: 24px;
    --radius-md: 16px;
    --font-body: 'Inter', sans-serif;
    --font-display: 'Inter', sans-serif;
}

[data-theme="dark"] {
    /* Dark Mode Palette (logo-inspired dark navy) */
    --bg-main: #020617;
    --bg-surface: #050A1A;
    --bg-card: #0F172A;
    --text-primary: #F1F5F9;
    --text-secondary: #94A3B8;
    --border-color: rgba(255, 255, 255, 0.1);
    --header-bg: rgba(2, 6, 23, 0.85);
    --shadow-main: 0 10px 30px rgba(0, 0, 0, 0.4);
    --glass-bg: rgba(15, 23, 42, 0.7);
    --glass-border: rgba(255, 255, 255, 0.05);

    /* Adjust brand colors for better contrast in dark mode if needed */
    --brand-blue: #3B82F6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    line-height: 1.6;
    background-color: var(--bg-main);
    overflow-x: hidden;
    width: 100%;
    transition: background-color 0.5s ease;
    position: relative;
}

body::before,
body::after {
    content: '';
    position: fixed;
    z-index: -2;
    pointer-events: none;
    width: 42vw;
    height: 42vw;
    border-radius: 999px;
    filter: blur(70px);
    opacity: 0.16;
}

body::before {
    top: -12vw;
    left: -10vw;
    background: radial-gradient(circle, rgba(0, 51, 255, 0.7), transparent 70%);
    animation: floatAuraOne 16s ease-in-out infinite alternate;
}

body::after {
    bottom: -16vw;
    right: -8vw;
    background: radial-gradient(circle, rgba(255, 0, 0, 0.32), transparent 70%);
    animation: floatAuraTwo 20s ease-in-out infinite alternate;
}

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0;
    background: linear-gradient(90deg, var(--brand-blue), var(--brand-red));
    z-index: 3000;
    box-shadow: 0 0 12px rgba(0, 51, 255, 0.35);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Header & Navigation */
.main-header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--header-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 1rem;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.lang-selector select {
    background: transparent;
    border: 1px solid rgba(0, 51, 255, 0.2);
    padding: 0.3rem 0.5rem;
    border-radius: 8px;
    font-family: inherit;
    font-weight: 600;
    color: var(--brand-blue);
    cursor: pointer;
    outline: none;
}

.logo-text {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: clamp(1.1rem, 4vw, 1.5rem);
    font-weight: 700;
    white-space: nowrap;
}

.main-nav {
    flex: 1;
    min-width: 0;
}

.logo img {
    height: clamp(35px, 10vw, 50px);
    width: auto;
    object-fit: contain;
    mix-blend-mode: multiply;
    /* Fix for white background on logo */
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.1));
}

[data-theme="dark"] .logo img {
    mix-blend-mode: normal;
    /* Multiply doesn't work on dark backgrounds */
    filter: brightness(1.2) drop-shadow(0 0 8px rgba(255, 255, 255, 0.1));
}

.logo span {
    color: var(--brand-red);
    font-weight: 400;
}

.main-nav ul {
    display: flex;
    gap: clamp(0.8rem, 1.8vw, 2rem);
    align-items: center;
    justify-content: center;
}

.main-nav a {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.9rem;
    position: relative;
    white-space: nowrap;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--brand-blue);
    transition: var(--transition);
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

[data-theme="dark"] .main-nav a {
    color: var(--text-primary);
}

/* Lingala specific navbar spacing */
html[lang="ln"] .main-nav ul {
    gap: clamp(0.3rem, 0.8vw, 1rem);
}
html[lang="ln"] .main-nav a {
    font-size: 0.8rem;
}

.btn-contact {
    background: var(--brand-blue);
    color: #FFFFFF !important;
    padding: 0.55rem 1rem;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 51, 255, 0.2);
    font-weight: 600;
}

.theme-toggle {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.1rem;
}

.theme-toggle:hover {
    transform: rotate(15deg) scale(1.1);
    background: var(--brand-blue);
    color: #FFFFFF;
}

.btn-contact:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 51, 255, 0.3);
}

.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    height: auto;
    display: flex;
    align-items: center;
    background: url('WhatsApp Image 2026-03-27 at 14.27.30.jpeg') center/cover no-repeat;
    position: relative;
    padding: calc(var(--header-height) + 2rem) 0 4rem;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);
    transition: var(--transition);
}

[data-theme="dark"] .hero-overlay {
    background: linear-gradient(135deg, rgba(2, 6, 23, 0.9) 0%, rgba(2, 6, 23, 0.7) 100%);
}

.hero .container {
    position: relative;
    z-index: 10;
}

.hero-content {
    max-width: 700px;
}

.badge {
    display: inline-block;
    padding: 0.6rem 1.4rem;
    background: rgba(0, 51, 255, 0.1);
    color: var(--brand-blue);
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.8rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 1px solid rgba(0, 51, 255, 0.1);
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    line-height: 1.05;
    margin-bottom: 2rem;
    font-weight: 800;
    letter-spacing: -2px;
    font-family: var(--font-display);
}

.hero h1 span {
    background: linear-gradient(to right, var(--brand-blue), var(--brand-red));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 650px;
    line-height: 1.6;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
}

.btn {
    padding: 1rem 2.2rem;
    border-radius: 50px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--brand-blue);
    color: #FFFFFF;
    box-shadow: 0 10px 25px rgba(0, 51, 255, 0.15);
}

.btn-primary:hover {
    background: var(--dark-blue);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 51, 255, 0.25);
}

.btn-secondary {
    background: transparent;
    color: var(--brand-blue);
    border: 2px solid var(--brand-blue);
}

.btn-secondary:hover {
    background: var(--brand-blue);
    color: #FFFFFF;
    transform: translateY(-3px);
}

.mission-preview {
    padding: 5rem 2rem;
    background: var(--bg-surface);
}

.containerGrid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 5rem;
    align-items: center;
}

.mission-text h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.mission-text h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 80%;
    background: var(--brand-red);
    border-radius: 10px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.stat-card {
    background: var(--bg-card);
    padding: 2.5rem 1.5rem;
    border-radius: var(--radius-lg);
    text-align: left;
    box-shadow: var(--shadow-main);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.stat-card:hover {
    transform: translateY(-10px);
    border-color: var(--brand-blue);
    background: var(--bg-surface);
}

.stat-number {
    display: block;
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--brand-blue);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* About Section */
.about-section {
    position: relative;
    overflow: hidden;
    padding: 5rem 0;
}

.about-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.about-intro p {
    margin-bottom: 0.6rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.85;
}

.about-intro p:last-child {
    margin-bottom: 0;
}

.about-flex {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.about-list-wrapper,
.about-image-wrapper {
    flex: 0 1 45%;
}

.about-list-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.check-list li {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 500;
}

.check-list i {
    color: var(--brand-blue);
    font-size: 1.4rem;
}

.about-image-wrapper .image-wrapper {
    height: 250px;
    /* Reduced height to crop the image */
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-main);
    transition: var(--transition);
    position: relative;
}

.about-image-wrapper .image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.about-image-wrapper .image-wrapper:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 51, 255, 0.15);
}

.about-carousel .about-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease;
}

.about-carousel .about-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.about-slide-caption {
    position: absolute;
    top: auto;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    transform: translateY(18%);
    width: auto;
    max-width: 86%;
    padding: 0.9rem 1rem;
    color: #fff;
    font-size: clamp(1.15rem, 2.4vw, 1.55rem);
    font-weight: 700;
    text-align: left;
    line-height: 1.3;
    background: transparent;
    border-radius: 0;
    z-index: 10;
    opacity: 1;
    transition: transform 0.35s ease, opacity 0.35s ease;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;
}

.about-slide:hover .about-slide-caption {
    transform: translateY(0);
    opacity: 1;
}

.about-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 5;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, transform 0.3s ease;
}

.about-carousel-arrow:hover {
    background: rgba(0, 51, 255, 0.85);
    transform: translateY(-50%) scale(1.05);
}

.about-carousel-prev {
    left: 0.6rem;
}

.about-carousel-next {
    right: 0.6rem;
}

.about-carousel-dots {
    position: absolute;
    bottom: 0.55rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.4rem;
    z-index: 5;
}

.about-carousel-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.55);
    transition: transform 0.25s ease, background 0.25s ease;
}

.about-carousel-dot.is-active {
    background: #fff;
    transform: scale(1.2);
}

@media (max-width: 992px) {
    .about-flex {
        flex-direction: column;
        gap: 3rem;
        text-align: center;
    }

    .about-list-wrapper,
    .about-image-wrapper {
        flex: 1 1 100%;
        width: 100%;
    }

    .about-list-wrapper {
        align-items: center;
    }

    .check-list li {
        justify-content: center;
    }
}

/* Section Common Header */
.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-family: var(--font-display);
    letter-spacing: -0.02em;
}

.section-header p {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Services Section */
.services {
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.services::before,
.infirmeries::before,
.testimonials::before {
    content: '';
    position: absolute;
    inset: -20% auto auto -15%;
    width: 240px;
    height: 240px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(0, 51, 255, 0.08), transparent 70%);
    transform: scale(0.8);
    opacity: 0;
    transition: 0.8s ease;
    pointer-events: none;
}

.infirmeries,
.testimonials {
    position: relative;
    overflow: hidden;
}

.infirmeries::before {
    inset: auto -10% -20% auto;
    background: radial-gradient(circle, rgba(255, 220, 0, 0.12), transparent 70%);
}

.testimonials::before {
    inset: -16% auto auto -12%;
    background: radial-gradient(circle, rgba(255, 0, 0, 0.08), transparent 70%);
}

.animated-section.in-view::before {
    opacity: 1;
    transform: scale(1.05);
}

/* Animations scroll visibles par section */
.section-services .service-card,
.section-infirmeries .infirmerie-item,
.section-testimonials .testi-card {
    opacity: 0;
    will-change: transform, opacity, filter;
}

.section-services .service-card {
    transform: translateY(42px) scale(0.96);
    filter: blur(3px);
}

.section-infirmeries .infirmerie-item {
    transform: translateX(-36px);
}

.section-infirmeries .infirmerie-item:nth-child(even) {
    transform: translateX(36px);
}

.section-testimonials .testi-card {
    transform: translate3d(0, 40px, 0) scale(0.96);
    filter: blur(3px);
}

.section-services.in-view .service-card {
    animation: sectionCardRise 0.78s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.section-services.in-view .service-card:nth-child(2) {
    animation-delay: 0.12s;
}

.section-services.in-view .service-card:nth-child(3) {
    animation-delay: 0.24s;
}

.section-services.in-view .service-card:nth-child(4) {
    animation-delay: 0.36s;
}

.section-infirmeries.in-view .infirmerie-item {
    animation: sectionSlideIn 0.75s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.section-infirmeries.in-view .infirmerie-item:nth-child(2) {
    animation-delay: 0.14s;
}

.section-infirmeries.in-view .infirmerie-item:nth-child(3) {
    animation-delay: 0.28s;
}

.section-testimonials.in-view .testi-card {
    animation: testimonialReveal 0.95s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.section-testimonials.in-view .testi-card:nth-child(2) {
    animation-delay: 0.1s;
}

.section-testimonials.in-view .testi-card:nth-child(3) {
    animation-delay: 0.2s;
}

.section-testimonials.in-view .testi-card:nth-child(4) {
    animation-delay: 0.3s;
}

.section-testimonials.in-view .testi-card:nth-child(1) {
    animation-delay: 0.02s;
}

@keyframes testimonialReveal {
    0% {
        opacity: 0;
        transform: translate3d(0, 48px, 0) scale(0.94);
        filter: blur(4px);
    }

    60% {
        opacity: 1;
        transform: translate3d(0, -6px, 0) scale(1.01);
        filter: blur(0);
    }

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

@keyframes sectionCardRise {
    0% {
        opacity: 0;
        transform: translateY(42px) scale(0.96);
        filter: blur(3px);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes sectionSlideIn {
    0% {
        opacity: 0;
        transform: translateX(var(--slide-start, -36px));
    }

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

.section-infirmeries .infirmerie-item:nth-child(odd) {
    --slide-start: -36px;
}

.section-infirmeries .infirmerie-item:nth-child(even) {
    --slide-start: 36px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: 1rem;
}

.service-card {
    padding: 1.7rem 1.2rem;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-main);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 4px;
    background: var(--brand-blue);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px) rotateX(2deg);
    box-shadow: 0 25px 50px rgba(0, 51, 255, 0.1);
}

.service-card:hover::after {
    width: 100%;
}

.icon-box {
    width: 55px;
    height: 55px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1.2rem;
    transition: var(--transition);
}

.service-card:hover .icon-box {
    transform: scale(1.1) rotate(5deg);
}

.icon-box.blue {
    background: rgba(0, 51, 255, 0.1);
    color: var(--brand-blue);
}

.icon-box.red {
    background: rgba(255, 0, 0, 0.1);
    color: var(--brand-red);
}

.icon-box.yellow {
    background: rgba(255, 220, 0, 0.1);
    color: #D4AF37;
}

.icon-box.dark {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-primary);
}

.service-card h3 {
    font-size: 1.05rem;
    margin-bottom: 0.8rem;
}

.service-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Médiathèque */
.mediatheque {
    padding: 4.5rem 0;
    background: var(--bg-card);
    overflow: hidden;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(280px, 390px));
    gap: 1.5rem;
    justify-content: center;
}

.video-card {
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-main);
    transition: var(--transition);
    max-width: 390px;
    width: 100%;
    margin: 0 auto;
}

.video-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    height: auto;
    overflow: hidden;
}

.video-thumb img,
.video-thumb-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    background: #000;
}

.video-card:hover .video-thumb img,
.video-card:hover .video-thumb-media {
    transform: scale(1.05);
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: var(--brand-blue);
    color: var(--bg-card);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 0 20px rgba(0, 51, 255, 0.4);
}

.video-info {
    padding: 1.5rem;
}

.video-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.video-info p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.testimonials {
    padding: 4.2rem 0;
    background: var(--bg-surface);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.testi-card {
    background: var(--bg-card);
    padding: 1rem 1rem;
    border-radius: 22px;
    position: relative;
    box-shadow: var(--shadow-main);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 220px;
    transition: transform 0.45s ease, box-shadow 0.45s ease;
}

.testi-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 22px 44px rgba(0, 51, 255, 0.12);
}

.testi-img {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    margin-bottom: 0.65rem;
    overflow: hidden;
    border: 2px solid var(--brand-blue);
}

.testi-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testi-text {
    font-style: italic;
    font-size: 0.86rem;
    line-height: 1.35;
    margin-bottom: 0.65rem;
    color: var(--text-primary);
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-family: var(--font-display);
}

.testi-author {
    font-weight: 700;
    color: var(--brand-blue);
    font-size: 0.78rem;
}

/* Newsletter */
.newsletter {
    padding: 4rem 0;
    overflow: hidden;
}

.footer-newsletter {
    padding: 0 0 2.5rem;
}

.newsletter-box {
    background: linear-gradient(135deg, var(--brand-blue) 0%, var(--dark-blue) 100%);
    border-radius: 40px;
    padding: 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #FFFFFF;
    gap: 3rem;
}

.footer-newsletter .newsletter-box {
    background: var(--brand-blue);
    padding: 2.8rem 2.2rem;
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 18px 50px rgba(0, 51, 255, 0.25);
}

.newsletter-text h2 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    color: #FFFFFF;
    font-family: var(--font-display);
}

.newsletter-text p {
    margin: 0;
    max-width: 36rem;
    line-height: 1.55;
    font-size: 1rem;
    opacity: 0.95;
}

.newsletter-signup {
    flex: 1;
    max-width: 520px;
}

.newsletter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
}

.newsletter-input-group {
    flex: 1;
    min-width: 220px;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.newsletter-input-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #FFFFFF;
    opacity: 0.95;
}

.newsletter-form input {
    width: 100%;
    padding: 1.2rem 1.5rem;
    border-radius: 50px;
    border: none;
    outline: none;
    font-family: inherit;
    box-sizing: border-box;
}

.newsletter-form .btn-primary {
    background: var(--brand-yellow);
    color: var(--text-primary);
    white-space: nowrap;
}

.newsletter-privacy {
    margin: 1rem 0 0;
    font-size: 0.78rem;
    line-height: 1.45;
    color: #FFFFFF;
    opacity: 0.88;
}

.newsletter-feedback {
    margin: 0.85rem 0 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #FFFFFF;
}

@keyframes floatAuraOne {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(6vw, 4vw) scale(1.08);
    }
}

@keyframes floatAuraTwo {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(-5vw, -3vw) scale(1.12);
    }
}

/* CTA Section */
.cta {
    padding: 5rem 2rem;
    text-align: center;
}

.cta h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.btn-whatsapp {
    background: #25D366;
    color: var(--bg-card);
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
}

.btn-whatsapp:hover {
    background: #1eb956;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
}

/* Footer */
.main-footer {
    padding: 5rem 0 3rem;
    background: #050A1A;
    color: #FFFFFF;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-info .logo {
    margin-bottom: 1.5rem;
}

.footer-info p {
    color: #888;
    max-width: 400px;
    margin-bottom: 2rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-links a {
    width: 45px;
    height: 45px;
    font-size: 1.2rem;
    color: #FFFFFF;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    transform: translateY(-5px) scale(1.1);
    color: white;
}

.social-links .social-fb:hover {
    background: #1877F2;
    box-shadow: 0 5px 15px rgba(24, 119, 242, 0.5);
}

.social-links .social-ig:hover {
    background: linear-gradient(45deg, #f09433, #dc2743, #bc1888);
    box-shadow: 0 5px 15px rgba(220, 39, 67, 0.5);
}

.social-links .social-tt:hover {
    background: #111111;
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

.social-links .social-in:hover {
    background: #0A66C2;
    box-shadow: 0 5px 15px rgba(10, 102, 194, 0.5);
}

.social-links .social-yt:hover {
    background: #FF0000;
    box-shadow: 0 5px 15px rgba(255, 0, 0, 0.5);
}

.footer-contact h3 {
    margin-bottom: 2rem;
}

.footer-contact ul li {
    margin-bottom: 1rem;
    color: #888;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.footer-contact ul li i {
    color: var(--brand-blue);
}

.footer-bottom {
    text-align: center;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: #555;
    font-size: 0.9rem;
}

/* Infirmeries Section Layout */
.infirmeries {
    padding: 5rem 0;
    overflow: hidden;
    position: relative;
}

.infirmeries-layout {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.infirmerie-content,
.infirmerie-collage {
    flex: 1;
}

.infirmerie-items {
    margin-top: 3rem;
}

.infirmerie-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    transition: transform 0.45s ease, box-shadow 0.45s ease, background 0.45s ease;
    border-radius: 14px;
    padding: 0.45rem;
}

.infirmerie-item:hover {
    transform: translateY(-5px);
    background: rgba(0, 51, 255, 0.04);
    box-shadow: 0 10px 25px rgba(0, 51, 255, 0.08);
}

.item-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--brand-blue);
    background: rgba(0, 51, 255, 0.1);
    min-width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.item-number.yellow {
    color: #D4AF37;
    background: rgba(255, 220, 0, 0.1);
}

.item-number.red {
    color: var(--brand-red);
    background: rgba(255, 0, 0, 0.1);
}

.item-text h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.item-text p {
    color: var(--text-secondary);
}

/* Infirmerie Image Collage */
.collage-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    height: 600px;
}

.img-center {
    position: relative;
    width: 75%;
    height: 450px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    z-index: 2;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: var(--shadow-main);
    border: 5px solid var(--brand-blue);
}

.img-bottom-right {
    position: absolute;
    bottom: -5%;
    right: 0;
    width: 45%;
    height: 250px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    z-index: 3;
    box-shadow: var(--shadow-main);
    border: 5px solid var(--brand-blue);
}

/* Collage animations */
.section-infirmeries .img-center {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.35);
}

.section-infirmeries.in-view .img-center {
    animation: collageCentreReveal 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.section-infirmeries .img-bottom-right {
    opacity: 0;
    transform: translateY(140px);
}

.section-infirmeries.in-view .img-bottom-right {
    animation: collageBasDroiteReveal 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.7s forwards;
}

@keyframes collageCentreReveal {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.35);
    }

    70% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.04);
    }

    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes collageCentreMobileReveal {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }

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

@keyframes collageBasDroiteReveal {
    0% {
        opacity: 0;
        transform: translateY(140px);
    }

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

/* --- RESPONSIVE DESIGN --- */

/* Breakpoint for Large Tablets / Small Laptops (1024px) */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }

    .containerGrid {
        gap: 3rem;
    }

    .hero h1 {
        font-size: 3.5rem;
    }

    .infirmeries-layout {
        gap: 2rem;
    }
}

/* Breakpoint for Tablets (992px) */
@media (max-width: 992px) {
    :root {
        --header-height: 70px;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .containerGrid,
    .infirmeries-layout {
        grid-template-columns: 1fr;
        flex-direction: column;
        gap: 4rem;
        text-align: center;
    }

    .mission-text h2::before {
        left: 50%;
        top: -15px;
        transform: translateX(-50%);
        width: 60px;
        height: 4px;
    }

    .mission-text h2 {
        padding-left: 0;
        margin-bottom: 2rem;
    }

    .infirmerie-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 2rem 1.5rem;
    }

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

    .collage-wrapper {
        height: 400px;
        max-width: 100%;
        margin: 0 auto;
    }

    .img-center {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        transform: none;
    }

    .section-infirmeries .img-center {
        transform: scale(0.9);
    }

    .section-infirmeries.in-view .img-center {
        animation: collageCentreMobileReveal 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    }

    .img-bottom-right {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .footer-info p {
        margin-left: auto;
        margin-right: auto;
    }

    .social-links {
        justify-content: center;
    }

    .footer-contact ul li {
        justify-content: center;
    }

    .newsletter-box {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        padding: 3rem 2rem;
        gap: 2.5rem;
    }

    .newsletter-text p {
        margin: 0 auto;
    }

    .newsletter-signup {
        max-width: none;
    }

    .newsletter-form {
        flex-direction: column;
        align-items: stretch;
    }

    .newsletter-input-group {
        width: 100%;
    }

    .newsletter-form .btn-primary {
        width: 100%;
    }
}

/* Breakpoint for Mobile (768px) */
@media (max-width: 768px) {

    body::before,
    body::after {
        opacity: 0.07;
        filter: blur(42px);
        animation-duration: 24s;
    }

    .hero {
        height: auto;
        min-height: 90vh;
        padding: 100px 0 60px;
        text-align: center;
    }

    .hero h1 {
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
    }

    .hero p {
        font-size: 1.1rem;
        margin-bottom: 2.5rem;
    }

    .hero-btns {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
        max-width: 320px;
        margin: 0 auto;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        height: 100vh;
        background: var(--bg-main);
        z-index: 2000;
        padding: 100px 2rem;
        transition: right 0.5s cubic-bezier(0.77, 0.2, 0.05, 1);
        display: flex;
        flex-direction: column;
        box-shadow: -15px 0 35px rgba(0, 0, 0, 0.15);
        overflow-y: auto;
    }

    .main-nav.active {
        right: 0;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        width: 100%;
    }

    .main-nav a {
        font-size: 1.25rem;
        font-weight: 600;
        padding: 0.5rem 0;
    }

    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 45px;
        height: 45px;
        background: var(--bg-surface);
        border-radius: 12px;
        border: 1px solid var(--border-color);
        color: var(--text-primary);
        z-index: 2100;
    }

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

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .stat-card {
        padding: 2rem 1rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .about-image-wrapper .image-wrapper {
        height: 300px;
    }

    .about-slide-caption {
        font-size: 1.1rem;
        bottom: 2.5rem;
    }

    .collage-wrapper {
        height: 300px;
        max-width: 100%;
    }

    .img-center {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        transform: none;
    }

    .img-bottom-right {
        display: none;
        /* Hide secondary image on small mobile to save space */
    }

    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2x2 on mobile for readability */
        gap: 1rem;
    }

    .header-right {
        gap: 0.8rem;
    }

    .btn-contact.tw-nav-contact {
        display: none;
        /* Hide top contact button on mobile, use the one in nav */
    }

    .footer-grid {
        text-align: left;
    }

    .footer-info p {
        margin-left: 0;
        margin-right: auto;
    }

    .social-links {
        justify-content: flex-start;
    }

    .footer-contact ul li {
        justify-content: flex-start;
    }
}

/* Breakpoint for Small Mobile (480px) */
@media (max-width: 480px) {
    :root {
        --header-height: 65px;
    }

    .hero h1 {
        font-size: 2.1rem;
    }

    .badge {
        padding: 0.4rem 1rem;
        font-size: 0.7rem;
        letter-spacing: 1px;
    }

    .btn {
        padding: 0.9rem 1.8rem;
    }

    .section-header {
        margin-bottom: 2.5rem;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .service-card {
        padding: 2rem 1.2rem;
    }

    .newsletter-box {
        padding: 2.5rem 1.5rem;
        border-radius: 24px;
    }

    .newsletter-text h2 {
        font-size: 1.8rem;
    }

    .footer-bottom {
        font-size: 0.8rem;
    }

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

/* Orientation Check */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        height: auto;
        padding: 120px 0 60px;
    }

    .main-nav {
        padding: 60px 2rem;
    }

    .main-nav ul {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
}

/* Accessibility: Prefers Reduced Motion */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .scroll-progress {
        display: none;
    }

    .section-infirmeries .img-center,
    .section-infirmeries .img-bottom-right {
        opacity: 1 !important;
        animation: none !important;
        transform: translate(-50%, -50%) scale(1) !important;
    }

    .img-bottom-right {
        transform: none !important;
    }
}

}

/* Donation Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: var(--bg-card);
    margin: 5% auto;
    padding: 2.5rem;
    border-radius: 30px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    animation: slideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-header {
    text-align: center;
    margin-bottom: 2rem;
}

.modal-header i {
    font-size: 3rem;
    color: var(--brand-red);
    margin-bottom: 1rem;
}

.modal-header h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.close-modal {
    position: absolute;
    right: 1.5rem;
    top: 1.2rem;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-secondary);
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--brand-red);
    transform: rotate(90deg);
}

.donation-form .form-group {
    margin-bottom: 1.5rem;
}

.donation-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.donation-form input,
.donation-form select {
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: var(--bg-main);
    color: var(--text-primary);
    font-family: inherit;
    outline: none;
    transition: var(--transition);
}

.donation-form input:focus {
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 3px rgba(0, 51, 255, 0.1);
}

.amount-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

.amount-btn {
    padding: 0.6rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: var(--bg-surface);
    color: var(--text-primary);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.amount-btn.active,
.amount-btn:hover {
    background: var(--brand-blue);
    color: white;
    border-color: var(--brand-blue);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

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

@media (max-width: 768px) {
    .modal-content {
        margin: 15% auto;
        padding: 1.5rem;
    }

    .amount-options {
        grid-template-columns: repeat(2, 1fr);
    }
}