/* css/style.css - MOBILE OPTIMIZED */
/* FIX HORIZONTAL SCROLL - COMPREHENSIVE FIX */
html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    position: relative;
    margin: 0;
    padding: 0;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}
body {
    overflow-x: hidden !important;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    max-width: 100%;
}

:root {
    --primary-blue: #2563eb;
    --secondary-blue: #3b82f6;
    --accent-blue: #60a5fa;
    --light-blue: #dbeafe;
    --text-dark: #1f2937;
    --text-light: #4b5563;
    --bg-white: #ffffff;
    --bg-light: #f8fafc;
    --border-light: #e5e7eb;
    --glow-color: rgba(59, 130, 246, 0.5);
}

/* ===== PERFORMANCE OPTIMIZATIONS ===== */
.hero, .header, .mission-card, .program-card, 
.event-card, .leader-card, .scroll-image,
.partner-logo, .integrated-image, .gallery-item,
.international-card, .stat-item {
    transform: translateZ(0);
    backface-visibility: hidden;
}

.mobile-nav, .right-quick-menu, .dropdown-menu {
    contain: layout style paint;
}

.scroll-image, .partner-logo, .mission-icon,
.program-icon, .integrated-image {
    transform: translateZ(0);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-white);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    overflow-x: hidden;
}

/* Enhanced Header with Pure White Background */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: #ffffff;
    z-index: 1000;
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 25px;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.header.scrolled {
    height: 70px;
    background: #ffffff;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2);
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    z-index: 1002;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    background: white;
    padding: 8px 15px 8px 12px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.logo:hover {
    transform: translateY(-2px);
}

.logo img {
    height: 65px;
    width: auto;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.08);
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 700;
    color: #1e40af;
    text-shadow: 0 1px 2px rgba(255,255,255,0.8);
    letter-spacing: 0.5px;
}

/* Header Right Section */
.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.desktop-join-btn {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 14px;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
}

.desktop-join-btn:hover {
    background: linear-gradient(135deg, var(--secondary-blue), var(--accent-blue));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.6);
}

/* Right Menu Button */
.right-menu-btn {
    background: rgba(59, 130, 246, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(59, 130, 246, 0.2);
    color: #1e40af;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
}

.right-menu-btn:hover {
    background: rgba(59, 130, 246, 0.2);
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

/* Enhanced Desktop Navigation */
.desktop-nav {
    display: none;
}

@media (min-width: 1024px) {
    .desktop-nav {
        display: flex;
        align-items: center;
        gap: 30px;
    }

    .nav-links-desktop {
        display: flex;
        list-style: none;
        gap: 30px;
        margin: 0;
        padding: 0;
    }

    .nav-item {
        position: relative;
    }

    .nav-link {
        color: var(--primary-blue);
        text-decoration: none;
        font-weight: 600;
        font-size: 14px;
        padding: 15px 0;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        gap: 8px;
        position: relative;
    }

    .nav-link:hover,
    .nav-link.active {
        color: #1e40af;
        transform: translateY(-2px);
    }

    .nav-link::after {
        content: '';
        position: absolute;
        bottom: 10px;
        left: 0;
        width: 0;
        height: 2px;
        background: linear-gradient(90deg, #1e40af, #3b82f6);
        transition: width 0.3s ease;
        border-radius: 1px;
    }

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

    .nav-link.has-submenu::after {
        content: '▾';
        font-size: 12px;
        margin-left: 8px;
        transition: transform 0.3s ease;
        background: none;
        position: static;
        width: auto;
        height: auto;
    }

    .nav-link.has-submenu.active::after {
        transform: rotate(180deg);
    }

    /* Enhanced Dropdown Menu */
    .dropdown-menu {
        position: absolute;
        top: 100%;
        left: 0;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.98) 100%);
        min-width: 260px;
        border-radius: 16px;
        box-shadow: 0 20px 50px rgba(30, 64, 175, 0.2);
        border: 1px solid rgba(59, 130, 246, 0.2);
        padding: 20px 0;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px) scale(0.95);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        backdrop-filter: blur(20px);
    }

    .dropdown-menu.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0) scale(1);
    }

    .dropdown-item {
        display: block;
        padding: 12px 30px;
        color: var(--text-dark);
        text-decoration: none;
        font-size: 14px;
        font-weight: 500;
        transition: all 0.3s ease;
        border-left: 3px solid transparent;
        margin: 0 10px;
        border-radius: 8px;
    }

    .dropdown-item:hover {
        background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
        color: white;
        border-left-color: #1e40af;
        transform: translateX(8px);
        box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
        padding-left: 35px;
    }
}

/* Right Quick Menu */
.right-quick-menu {
    position: fixed;
    top: 0;
    right: -400px;
    width: 350px;
    height: 100vh;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    z-index: 1001;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.3);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.right-quick-menu.active {
    right: 0;
}

.quick-menu-header {
    padding: 30px 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.quick-menu-header h3 {
    color: white;
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.close-quick-menu {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
}

.close-quick-menu:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg) scale(1.1);
}

.quick-menu-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quick-menu-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    color: white;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.quick-menu-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(-8px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.quick-menu-item i {
    font-size: 1.2rem;
    width: 25px;
    text-align: center;
}

.quick-menu-item span {
    font-weight: 600;
    font-size: 0.95rem;
}

/* Enhanced Mobile Menu Button */
.mobile-menu-btn {
    display: block;
    background: rgba(59, 130, 246, 0.1);
    backdrop-filter: blur(10px);
    color: var(--primary-blue);
    border: 2px solid rgba(59, 130, 246, 0.2);
    border-radius: 10px;
    padding: 12px 14px;
    cursor: pointer;
    font-size: 16px;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2);
    transition: all 0.3s ease;
    z-index: 1001;
}

.mobile-menu-btn:hover {
    background: rgba(59, 130, 246, 0.2);
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
}

/* Enhanced Mobile Navigation */
.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    backdrop-filter: blur(20px);
    z-index: 999;
    transform: translateX(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    padding: 90px 30px 30px;
    box-shadow: 5px 0 30px rgba(0,0,0,0.3);
    overflow-y: auto;
    box-sizing: border-box;
}

.mobile-nav.active {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
}

.nav-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 30px;
    padding: 0 10px;
    position: absolute;
    top: 25px;
    right: 25px;
    width: auto;
}

.close-nav {
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 12px;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.close-nav:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: rotate(90deg) scale(1.1);
}

.mobile-nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-item {
    margin-bottom: 15px;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.mobile-nav-link {
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
    min-height: 60px;
}

.mobile-nav-link:hover,
.mobile-nav-item.active .mobile-nav-link {
    color: white;
    background: rgba(255, 255, 255, 0.2);
    border-left-color: rgba(255, 255, 255, 0.8);
    transform: translateX(8px);
}

.mobile-submenu-toggle {
    font-size: 12px;
    transition: transform 0.3s ease;
    color: rgba(255, 255, 255, 0.8);
}

.mobile-nav-item.active .mobile-submenu-toggle {
    transform: rotate(180deg);
    color: white;
}

.mobile-submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    margin-left: 20px;
    border-left: 3px solid rgba(255, 255, 255, 0.3);
}

.mobile-nav-item.active .mobile-submenu {
    max-height: 500px;
}

.mobile-submenu-item {
    margin-bottom: 8px;
}

.mobile-submenu-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 14px;
    padding: 14px 25px;
    display: block;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin: 2px 10px;
    background: rgba(255, 255, 255, 0.1);
    border-left: 3px solid transparent;
    min-height: 50px;
    display: flex;
    align-items: center;
}

.mobile-submenu-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
    border-left-color: rgba(255, 255, 255, 0.8);
    padding-left: 30px;
}

.mobile-nav-cta {
    text-align: center;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 2px solid rgba(255, 255, 255, 0.2);
}

.mobile-nav-cta .btn-primary {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 100%;
    padding: 15px;
    font-size: 16px;
    border-radius: 12px;
    transition: all 0.3s ease;
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-nav-cta .btn-primary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

/* Enhanced Mobile Logo Styles */
@media (max-width: 768px) {
    .header {
        padding: 0 15px;
        height: 70px;
    }
    
    .logo {
        gap: 8px;
        padding: 6px 10px 6px 8px;
        max-width: 70%;
    }
    
    .logo img {
        height: 40px;
        min-width: 40px;
    }
    
    .logo-text {
        font-size: 16px;
        font-weight: 600;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 150px;
        letter-spacing: 0.3px;
    }
    
    .header-right {
        gap: 12px;
    }
    
    .right-menu-btn {
        width: 35px;
        height: 35px;
        font-size: 12px;
    }
    
    .mobile-menu-btn {
        padding: 10px 12px;
        font-size: 14px;
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* FIX: Hide desktop join button on mobile */
    .desktop-join-btn {
        display: none !important;
    }
}

/* For very small mobile devices */
@media (max-width: 480px) {
    .header {
        padding: 0 12px;
    }
    
    .logo {
        gap: 6px;
        padding: 5px 8px 5px 6px;
        max-width: 65%;
    }
    
    .logo img {
        height: 35px;
        min-width: 35px;
    }
    
    .logo-text {
        font-size: 14px;
        max-width: 120px;
        font-weight: 600;
    }
    
    .header-right {
        gap: 8px;
    }
    
    .right-menu-btn {
        width: 32px;
        height: 32px;
        font-size: 11px;
        min-height: 44px;
        min-width: 44px;
    }
    
    .mobile-menu-btn {
        padding: 8px 10px;
        font-size: 12px;
        min-height: 44px;
        min-width: 44px;
    }
    
    /* FIX: Ensure desktop join button is hidden on very small screens */
    .desktop-join-btn {
        display: none !important;
    }
}

/* Extra small devices */
@media (max-width: 360px) {
    .logo-text {
        font-size: 13px;
        max-width: 100px;
    }
    
    .logo img {
        height: 32px;
        min-width: 32px;
    }
    
    .logo {
        gap: 5px;
        padding: 4px 6px 4px 5px;
    }
}

/* Hide elements on specific screens */
@media (max-width: 1023px) {
    .desktop-nav {
        display: none;
    }
    
    .desktop-join-btn {
        display: none !important; /* FIX: Added !important to ensure it's hidden */
    }
}

@media (min-width: 1024px) {
    .mobile-menu-btn {
        display: none;
    }
    
    .mobile-nav {
        display: none;
    }
    
    /* FIX: Show desktop join button only on desktop */
    .desktop-join-btn {
        display: inline-flex !important;
    }
}

/* ===== MOBILE OPTIMIZED BUTTONS ===== */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: white;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
    position: relative;
    overflow: hidden;
    min-height: 48px;
    min-width: 44px;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--secondary-blue), var(--accent-blue));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.6);
}

.btn-secondary {
    background: transparent;
    color: var(--text-dark);
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    border: 2px solid var(--border-light);
    transition: all 0.3s ease;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    min-width: 44px;
}

.btn-secondary:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.2);
}

/* ===== MOBILE OPTIMIZED HERO ===== */
.hero {
    height: 100vh;
    min-height: 500px;
    background: linear-gradient(rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.96));
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px 40px;
    position: relative;
    overflow: hidden;
}

/* Video Background */
.video-scroll-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.scrolling-video {
    position: absolute;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.20;
    filter: brightness(0.8) sepia(0.3) hue-rotate(200deg) saturate(0.8);
    object-fit: cover;
}

.scrolling-video.secondary {
    opacity: 0.20;
    filter: brightness(0.7) sepia(0.4) hue-rotate(180deg) saturate(0.7);
    transform: translate(-50%, -50%) scale(1.1);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 20%, rgba(37, 99, 235, 0.15) 0%, transparent 40%);
    pointer-events: none;
    z-index: 1;
}

.hero-content {
    max-width: 800px;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--text-dark);
}

.hero p {
    font-size: clamp(0.9rem, 2.5vw, 1.2rem);
    color: var(--text-dark);
    margin-bottom: 30px;
    line-height: 1.6;
    font-weight: 500;
}

.hero-btns {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

/* Right Aligned Journey Video Section */
.journey-video-section {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 25px;
    width: 100%;
}

.journey-text {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    letter-spacing: 0.5px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .journey-video-section {
        justify-content: center;
    }
    
    .journey-text {
        font-size: 13px;
    }
}
.video-play-btn {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    border: 3px solid rgba(255, 255, 255, 0.8);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4);
    position: relative;
    overflow: hidden;
    min-height: 70px;
    min-width: 70px;
}

.video-play-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.3s ease;
}

.video-play-btn:hover::before {
    transform: scale(1);
}

.video-play-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 99, 235, 0.6);
}

.video-play-btn i {
    font-size: 1.5rem;
    margin-left: 3px;
}

/* Video Modal Styles */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.video-modal.active {
    opacity: 1;
    visibility: visible;
}

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 800px;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

.close-video-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2001;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    min-height: 44px;
    min-width: 44px;
}

.close-video-modal:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg) scale(1.1);
}

#journeyVideo {
    width: 100%;
    height: auto;
    display: block;
}

/* Image Scrolling Section */
.image-scroll-section {
    background: var(--bg-white);
    padding: 60px 0;
    overflow: hidden;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    margin-bottom: 15px;
    color: var(--text-dark);
    position: relative;
    display: inline-block;
    font-weight: 700;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-blue));
    border-radius: 2px;
}

.image-scroll-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    height: 200px;
}

.image-scroll-track {
    display: flex;
    gap: 20px;
    animation: scrollRightToLeft 40s linear infinite;
    height: 100%;
    width: max-content;
}

.scroll-image {
    flex: 0 0 auto;
    width: 300px;
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    position: relative;
}

.scroll-image:hover {
    transform: scale(1.05);
}

.scroll-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.image-scroll-track:empty {
    display: none;
}

.no-images-message {
    text-align: center;
    color: var(--text-light);
    font-style: italic;
    padding: 40px 0;
}

@keyframes scrollRightToLeft {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-300px * 8 - 20px * 7));
    }
}

/* Partners Section */
.partners-section {
    background: var(--bg-light);
    padding: 60px 0;
    overflow: hidden;
}

.partners-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    height: 120px;
}

.partners-track {
    display: flex;
    gap: 40px;
    animation: scrollLeftToRight 30s linear infinite;
    height: 100%;
    align-items: center;
    width: max-content;
}

.partner-logo {
    flex: 0 0 auto;
    width: 150px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    filter: grayscale(100%);
    opacity: 0.7;
    padding: 10px;
    background: var(--bg-white);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.partner-logo:hover {
    transform: scale(1.3);
    filter: grayscale(0%);
    opacity: 1;
}

.partner-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

/* Enhanced Partner Logo Styles for Links */
.partner-logo a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.partner-logo:hover a {
    transform: scale(1.3);
}

.partners-track:empty {
    display: none;
}

.no-partners-message {
    text-align: center;
    color: var(--text-light);
    font-style: italic;
    padding: 40px 0;
}

@keyframes scrollLeftToRight {
    0% {
        transform: translateX(calc(-150px * 8 - 40px * 7));
    }
    100% {
        transform: translateX(0);
    }
}

/* Content Sections */
.section {
    padding: 60px 0;
    position: relative;
    overflow-x: hidden;
}

.stats {
    background: var(--bg-light);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    text-align: center;
}

.stat-item {
    position: relative;
    padding: 20px 15px;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: var(--bg-white);
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.stat-item:hover {
    background: rgba(37, 99, 235, 0.05);
    transform: translateY(-3px);
}

.stat-item h3 {
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 8px;
}

.stat-item p {
    color: var(--text-light);
    font-size: clamp(0.8rem, 2vw, 1rem);
    font-weight: 500;
}

/* About Section - Mobile Optimized */
.about {
    background: var(--bg-white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: center;
}

.about-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    margin-bottom: 20px;
    color: var(--text-dark);
    position: relative;
    display: inline-block;
    font-weight: 700;
}

.about-content h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-blue));
    border-radius: 2px;
}

.about-content p {
    color: var(--text-light);
    margin-bottom: 18px;
    font-size: 0.95rem;
    line-height: 1.6;
    font-weight: 500;
}

.about-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.about-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.about-image:hover img {
    transform: scale(1.03);
}

/* Desktop About Section */
@media (min-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr 1fr;
        gap: 60px;
    }
    
    .about-image img {
        height: 400px;
    }
}

/* Programs Section */
.programs {
    background: var(--bg-light);
}

.programs-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

.program-card {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.program-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-blue);
}

.program-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    position: relative;
    z-index: 1;
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3);
}

.program-icon i {
    font-size: 1.5rem;
    color: white;
}

.program-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--text-dark);
    font-weight: 600;
}

.program-card p {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 0.95rem;
    font-weight: 500;
}

/* Events Section - Mobile Optimized */
.events {
    background: var(--bg-white);
}

.events-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

.event-card {
    background: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.event-image {
    height: 180px;
    overflow: hidden;
    position: relative;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.event-card:hover .event-image img {
    transform: scale(1.05);
}

.event-content {
    padding: 20px;
}

.event-date {
    background: var(--primary-blue);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 12px;
    box-shadow: 0 3px 10px rgba(37, 99, 235, 0.3);
}

.event-content h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: var(--text-dark);
    font-weight: 600;
    line-height: 1.3;
}

.event-content p {
    color: var(--text-light);
    margin-bottom: 18px;
    line-height: 1.6;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Desktop Events Section */
@media (min-width: 768px) {
    .events-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .event-image {
        height: 220px;
    }
    
    .event-content {
        padding: 25px;
    }
}
/* Leadership Section - PROPERLY OPTIMIZED FOR MOBILE */
.leadership {
    background: var(--bg-light);
}

.leadership-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    justify-items: center;
}

.leader-card {
    text-align: center;
    padding: 25px 20px;
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
    width: 100%;
    max-width: 320px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
}

.leader-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-blue);
}

/* Image container - properly sized for mobile */
.leader-image-container {
    width: 100%;
    padding: 20px 20px 15px;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
}

.leader-image {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary-blue);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.2);
    background: white;
    position: relative;
}

/* Image styling - properly centered and sized */
.leader-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.leader-card h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-weight: 600;
    line-height: 1.3;
}

.leader-card p {
    color: var(--primary-blue);
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 1rem;
}

.leader-card .position {
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 5px;
    line-height: 1.4;
}

/* Tablet Styles */
@media (min-width: 768px) and (max-width: 1023px) {
    .leadership-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .leader-card {
        max-width: 280px;
        padding: 20px 15px;
    }
    
    .leader-image {
        width: 130px;
        height: 130px;
    }
    
    .leader-card h3 {
        font-size: 1.2rem;
    }
}

/* Desktop Styles */
@media (min-width: 1024px) {
    .leadership-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 30px;
    }
    
    .leader-card {
        max-width: 250px;
        padding: 25px 20px;
    }
    
    .leader-image {
        width: 120px;
        height: 120px;
    }
    
    .leader-card h3 {
        font-size: 1.2rem;
    }
    
    .leader-card p {
        font-size: 0.9rem;
    }
    
    .leader-card .position {
        font-size: 0.85rem;
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    .leadership-grid {
        gap: 20px;
    }
    
    .leader-card {
        max-width: 280px;
        padding: 20px 15px;
    }
    
    .leader-image {
        width: 120px;
        height: 120px;
    }
    
    .leader-card h3 {
        font-size: 1.2rem;
    }
}
/* CTA Section */
.cta {
    padding: 80px 0;
    background: linear-gradient(rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.96)), 
                url('https://images.unsplash.com/photo-1552664730-d307ca884978?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80');
    background-size: cover;
    background-position: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 30% 70%, rgba(59, 130, 246, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 70% 30%, rgba(37, 99, 235, 0.15) 0%, transparent 40%);
    pointer-events: none;
}

.cta h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    margin-bottom: 20px;
    color: var(--text-dark);
    position: relative;
    z-index: 1;
    font-weight: 700;
}

.cta p {
    color: var(--text-light);
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    max-width: 600px;
    margin: 0 auto 35px;
    line-height: 1.7;
    position: relative;
    z-index: 1;
    font-weight: 500;
}

/* Footer */
footer {
    background: var(--bg-white);
    padding: 60px 0 30px;
    border-top: 1px solid var(--border-light);
    overflow-x: hidden;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    font-size: 1.2rem;
    margin-bottom: 25px;
    color: var(--text-dark);
    position: relative;
    display: inline-block;
    font-weight: 700;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 35px;
    height: 2px;
    background: var(--primary-blue);
}

.footer-col p {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.7;
    font-size: 0.95rem;
    font-weight: 500;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 24px;
}

.footer-links a:hover {
    color: var(--primary-blue);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 44px;
    height: 44px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s ease;
    min-height: 44px;
    min-width: 44px;
}

.social-links a:hover {
    background: var(--primary-blue);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border-light);
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
}

.copyright a {
    color: var(--primary-blue);
    text-decoration: none;
}

/* ===== WHATSAPP FLOATING BUTTON ===== */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background-color: #25D366; /* WhatsApp green */
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    transition: all 0.3s ease;
    animation: pulse-whatsapp 2s infinite;
    overflow: hidden;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
}

.whatsapp-float i {
    font-size: 32px;
    transition: transform 0.3s ease;
}

.whatsapp-float:hover i {
    transform: scale(1.1);
}

.whatsapp-tooltip {
    position: absolute;
    bottom: 70px;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 10000;
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(-5px);
}

@keyframes pulse-whatsapp {
    0% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 25px rgba(37, 211, 102, 0.7);
    }
    100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
}

/* Mobile responsiveness for WhatsApp button */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-float i {
        font-size: 28px;
    }
    
    .whatsapp-tooltip {
        font-size: 11px;
        padding: 6px 10px;
        bottom: 60px;
    }
}

@media (max-width: 480px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 15px;
        right: 15px;
    }
    
    .whatsapp-float i {
        font-size: 24px;
    }
    
    .whatsapp-tooltip {
        font-size: 10px;
        padding: 5px 8px;
        bottom: 55px;
    }
}

/* For accessibility - reduce motion */
@media (prefers-reduced-motion: reduce) {
    .whatsapp-float {
        animation: none;
    }
    
    .whatsapp-float:hover {
        transform: scale(1.05);
    }
}

/* ===== MOBILE RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .section {
        padding: 50px 0;
    }

    .hero {
        height: 80vh;
        min-height: 500px;
        padding: 80px 15px 30px;
    }

    .hero-btns {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .hero-btns .btn-primary,
    .hero-btns .btn-secondary {
        width: 100%;
        max-width: 280px;
    }

    .journey-video-section {
        margin-top: 25px;
    }

    .video-play-btn {
        width: 60px;
        height: 60px;
        min-height: 60px;
        min-width: 60px;
    }

    .video-play-btn i {
        font-size: 1.3rem;
    }

    .image-scroll-container,
    .partners-container {
        height: 150px;
    }

    .scroll-image {
        width: 250px;
        height: 150px;
    }

    .partner-logo {
        width: 120px;
        height: 60px;
    }

    .stats-grid {
        gap: 20px;
    }

    .stat-item {
        padding: 15px 10px;
    }

    .about-grid {
        gap: 30px;
    }

    .about-image img {
        height: 250px;
    }

    .programs-grid {
        gap: 20px;
    }

    .program-card {
        padding: 25px 15px;
    }

    .events-grid {
        gap: 20px;
    }

    .event-image {
        height: 200px;
    }

    .leadership-grid {
        gap: 20px;
    }

    .leader-card {
        padding: 20px 15px;
    }

    .leader-image {
        width: 80px;
        height: 80px;
    }

    .cta {
        padding: 60px 0;
    }

    .footer-grid {
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 75vh;
        min-height: 450px;
        padding: 70px 12px 25px;
    }

    .hero h1 {
        margin-bottom: 15px;
    }

    .hero p {
        margin-bottom: 25px;
    }

    .image-scroll-container,
    .partners-container {
        height: 120px;
    }

    .scroll-image {
        width: 200px;
        height: 120px;
    }

    .partner-logo {
        width: 100px;
        height: 50px;
    }

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

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

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

    .video-modal-content {
        width: 95%;
    }
}

/* Desktop Styles */
@media (min-width: 769px) {
    .header {
        height: 100px;
        padding: 0 20px;
    }

    .logo img {
        height: 90px;
        width: auto;
    }

    .logo-text {
        font-size: 30px;
    }

    .section {
        padding: 80px 0;
    }

    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 30px;
    }

    .about-grid {
        grid-template-columns: 1fr 1fr;
        gap: 60px;
    }

    .about-image img {
        height: 400px;
    }

    .programs-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }

    .program-card {
        padding: 40px 25px;
    }

    .program-icon {
        width: 80px;
        height: 80px;
    }

    .events-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .event-image {
        height: 250px;
    }

    .leadership-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 30px;
    }

    .leader-image {
        width: 120px;
        height: 120px;
    }

    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
        gap: 50px;
    }
}

/* Tablet Styles */
@media (min-width: 481px) and (max-width: 768px) {
    .header {
        padding: 0 20px;
    }

    .logo img {
        height: 60px;
    }

    .logo-text {
        font-size: 20px;
    }

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

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

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

/* Mobile video optimization */
@media (max-width: 768px) {
    .scrolling-video {
        opacity: 0.1;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}