/* ==========================================
   EMERALDS LANGUAGE SCHOOL - MODERN CSS 2026
   ========================================== */

/* CSS Reset & Variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Primary Colors - School Brand Green & Navy */
    --primary: #0D5E2E;
    --primary-light: #1B8A4A;
    --primary-dark: #0A4A24;
    --secondary: #0A2647;

    /* Gradients - School Brand */
    --gradient-primary: linear-gradient(135deg, #0D5E2E 0%, #1B8A4A 50%, #0A4A24 100%);
    --gradient-hero: linear-gradient(135deg, rgba(10, 38, 71, 0.35) 0%, rgba(13, 94, 46, 0.25) 100%);
    --gradient-card: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    --gradient-splash: linear-gradient(135deg, #1B6B2C 0%, #145A3A 40%, #0A2647 100%);

    /* Neutral Colors */
    --white: #FFFFFF;
    --light: #F8FAFC;
    --gray-100: #F1F5F9;
    --gray-200: #E2E8F0;
    --gray-300: #CBD5E1;
    --gray-500: #64748B;
    --gray-700: #334155;
    --dark: #1E293B;

    /* Status Colors */
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    --info: #3B82F6;

    /* Typography */
    --font-primary: 'Poppins', sans-serif;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

    /* Transitions */
    --transition: all 0.3s ease;
    --transition-fast: all 0.15s ease;

    /* Border Radius */
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
}

/* Base Styles */
html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    font-family: var(--font-primary);
    color: var(--dark);
    line-height: 1.6;
    background-color: var(--light);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Touch improvements for mobile */
* {
    -webkit-tap-highlight-color: transparent;
}

button,
a,
.btn {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
}

/* ==========================================
   SPLASH SCREEN
   ========================================== */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(160deg, #ffffff 0%, #e8f5e9 30%, #c8e6c9 55%, #b2dfdb 75%, #e0f2f1 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.6s ease-out, visibility 0.6s ease-out;
    overflow: hidden;
}

.splash-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.splash-content {
    text-align: center;
    animation: fadeInUp 1s ease-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    box-sizing: border-box;
}

.splash-logo {
    max-width: 320px;
    width: 85%;
    height: auto;
    margin-bottom: 28px;
    animation: pulse 2s ease-in-out infinite;
}

.splash-loader {
    margin: 0 auto 20px;
}

.loader {
    width: 44px;
    height: 44px;
    border: 4px solid rgba(13, 94, 46, 0.15);
    border-top-color: #0D5E2E;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

.splash-text {
    color: #0A2647;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: 0.6;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes heroImageFade {
    from {
        opacity: 0;
        transform: scale(1.1);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ==========================================
   HEADER & NAVIGATION - FIXED ALIGNMENT
   ========================================== */
.header {
    background: linear-gradient(135deg, #0A2647 0%, #0D3B5E 50%, #0A2647 100%);
    box-shadow: 0 4px 20px rgba(10, 38, 71, 0.25);
    position: relative;
    z-index: 1000;
    border-bottom: 2px solid rgba(13, 94, 46, 0.3);
}

.header.scrolled {
    background: linear-gradient(135deg, #0A2647 0%, #0D3B5E 50%, #0A2647 100%);
    box-shadow: 0 4px 20px rgba(10, 38, 71, 0.25);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    flex-wrap: nowrap;
}

.logo img {
    height: 55px;
    width: auto;
    max-width: 260px;
    transition: all 0.4s ease;
    filter: none;
    background: rgba(255, 255, 255, 0.95);
    padding: 6px 14px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.header.scrolled .logo img {
    filter: none;
}

.logo img:hover {
    transform: scale(1.05);
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 4px;
    align-items: center;
    flex-wrap: nowrap;
}

.nav-link {
    padding: 8px 14px;
    font-weight: 600;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.92);
    border-radius: var(--radius-sm);
    transition: all 0.4s ease;
    position: relative;
    white-space: nowrap;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.nav-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
}

/* When header is scrolled — keep same style since header is always dark */
.header.scrolled .nav-link {
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.header.scrolled .nav-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
}

.nav-link.btn-login {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 8px 18px;
    border-radius: var(--radius-full);
}

.nav-link.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.nav-link.btn-portal {
    background: var(--secondary);
    color: var(--white);
    padding: 8px 18px;
    border-radius: var(--radius-full);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: #ffffff;
    cursor: pointer;
    padding: 8px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    transition: all 0.4s ease;
}

.header.scrolled .mobile-menu-toggle {
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Footer Logo */
.footer-logo {
    height: 100px;
    width: auto;
    max-width: 320px;
    margin-bottom: 20px;
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* ==========================================
   HERO SLIDER - PROFESSIONAL
   ========================================== */
.hero-slider {
    position: relative;
    height: 100vh;
    min-height: 700px;
    max-height: 1000px;
    overflow: hidden;
}

.slides-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(1.1) contrast(1.1) saturate(1.15);
    animation: kenBurns 20s ease-in-out infinite alternate;
}

@keyframes kenBurns {
    0% {
        transform: scale(1) translateX(0);
    }

    100% {
        transform: scale(1.1) translateX(-2%);
    }
}

/* Minimal overlay - keeps background very visible */
.hero-overlay-minimal {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.15) 0%,
            rgba(0, 0, 0, 0.1) 40%,
            rgba(0, 0, 0, 0.25) 100%);
    z-index: 3;
    pointer-events: none;
}

/* Hero Content with Glassmorphism */
.hero-content-glass {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    text-align: center;
    width: 90%;
    max-width: 900px;
}

.hero-text-box {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.35) 0%, rgba(30, 58, 138, 0.25) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 24px;
    padding: 48px 56px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 1s ease-out 0.3s backwards;
}

.hero-text-box h1 {
    font-size: 3.2rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 16px;
    line-height: 1.2;
    text-shadow: 0 3px 20px rgba(0, 0, 0, 0.4);
    letter-spacing: -0.5px;
}

.hero-text-box p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 32px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.hero-text-box .hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-text-box .btn i {
    margin-right: 8px;
}

/* Slider Navigation Arrows */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    z-index: 20;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-arrow:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.slider-prev {
    left: 30px;
}

.slider-next {
    right: 30px;
}

/* Slider Dots */
.slider-dots {
    position: absolute;
    bottom: 140px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 20;
}

.dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot:hover {
    background: rgba(255, 255, 255, 0.6);
}

.dot.active {
    background: var(--white);
    transform: scale(1.2);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

/* Quick Program Links */
.hero-quick-links {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(30, 41, 59, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    display: flex;
    justify-content: center;
    gap: 0;
    z-index: 20;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.quick-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 40px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s ease;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.quick-link:last-child {
    border-right: none;
}

.quick-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.quick-link:hover::before {
    transform: scaleX(1);
}

.quick-link:hover {
    background: rgba(37, 99, 235, 0.2);
    color: var(--white);
}

.quick-link i {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.quick-link:hover i {
    transform: scale(1.2);
}

.quick-link span {
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Keep old hero styles for compatibility */
.hero {
    position: relative;
    height: 85vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(1.15) contrast(1.2) saturate(1.2);
    animation: heroImageFade 1.5s ease-out;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-hero);
    backdrop-filter: blur(0.3px);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    padding: 20px;
    max-width: 900px;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.2;
    text-shadow: 0 4px 25px rgba(0, 0, 0, 0.4), 0 2px 10px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out;
    letter-spacing: -0.5px;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    opacity: 0.95;
    animation: fadeInUp 1s ease-out 0.2s backwards;
}

/* Hero Buttons */
.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.4s backwards;
}

/* ==========================================
   MODERN HERO - 2026 REFRESH
   ========================================== */
.modern-hero {
    position: relative;
    padding: 120px 0 100px;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    overflow: hidden;
}

.modern-hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.05;
    background-image: radial-gradient(circle, white 1px, transparent 1px);
    background-size: 50px 50px;
}

.modern-hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.modern-hero-badge span {
    color: white;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
}

.modern-hero h1 {
    color: white;
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.modern-hero h1 span.highlight {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modern-hero p {
    color: rgba(255, 255, 255, 0.95);
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    margin-bottom: 32px;
    line-height: 1.6;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.2);
}

.breadcrumbs {
    margin-bottom: 24px;
}

.breadcrumbs a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.breadcrumbs a:hover {
    color: white;
}

.breadcrumbs span.separator {
    color: rgba(255, 255, 255, 0.5);
    margin: 0 8px;
}

.breadcrumbs span.current {
    color: white;
    font-size: 14px;
}

.decorative-wave {
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    width: 100%;
    pointer-events: none;
}

/* ==========================================
   BUTTONS
   ========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--white);
    color: var(--primary);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
    background: var(--gray-100);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

.btn-cta {
    background: var(--white) !important;
    color: var(--primary) !important;
    font-weight: 700;
    border: 2px solid var(--white);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.btn-cta:hover {
    background: rgba(255, 255, 255, 0.95) !important;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
    color: var(--primary-dark) !important;
}

.btn-cta i {
    transition: transform 0.3s ease;
}

.btn-cta:hover i {
    transform: translateX(5px);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.btn-blue {
    background: var(--primary);
    color: var(--white);
}

.btn-blue:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-success {
    background: var(--success);
    color: var(--white);
}

.btn-warning {
    background: var(--warning);
    color: var(--dark);
}

.btn-danger {
    background: var(--danger);
    color: var(--white);
}

.btn-info {
    background: var(--info);
    color: var(--white);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.875rem;
}

/* ==========================================
   SECTIONS
   ========================================== */
.section {
    padding: 100px 0;
}

.section-light {
    background: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.section-subtitle {
    display: inline-block;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 16px;
}

.section-title {
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 20px;
    line-height: 1.2;
}

.section-desc {
    max-width: 700px;
    margin: 0 auto;
    color: var(--gray-500);
    font-size: 1.1rem;
}

/* ==========================================
   CARDS
   ========================================== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(74, 144, 226, 0.08);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.card:hover::before {
    transform: scaleX(1);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(74, 144, 226, 0.2);
}

.card-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    box-shadow: 0 8px 20px rgba(74, 144, 226, 0.3);
    transition: var(--transition);
}

.card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 30px rgba(74, 144, 226, 0.4);
}

.card-icon i {
    font-size: 28px;
    color: var(--white);
}

.card h3 {
    font-size: 1.35rem;
    color: var(--dark);
    margin-bottom: 12px;
}

.card p {
    color: var(--gray-500);
    line-height: 1.7;
}

/* ==========================================
   ADMISSIONS PAGE - RESPONSIVE GRID
   ========================================== */
.admissions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

@media (max-width: 992px) {
    .admissions-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .admissions-grid {
        gap: 24px;
    }

    .admissions-grid .form-container {
        padding: 24px 20px;
    }

    .admissions-grid .program-card {
        padding: 20px;
    }
}

/* ==========================================
   STATISTICS
   ========================================== */
.stats-section {
    background: var(--gradient-primary);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.stat-item {
    text-align: center;
    color: var(--white);
    position: relative;
    z-index: 1;
    padding: 20px;
    border-radius: var(--radius);
    transition: var(--transition);
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    display: block;
    margin-bottom: 8px;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 500;
}

/* ==========================================
   EXCELLENCE & ACHIEVEMENTS - Square Cards
   ========================================== */
.excellence-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.excellence-card-square {
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    border: 2px solid var(--gray-200);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    text-align: center;
    padding: 40px 28px;
    cursor: pointer;
}

.excellence-card-square::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.excellence-card-square:hover::before {
    transform: scaleX(1);
}

.excellence-card-square::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.03) 0%, rgba(30, 64, 175, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.excellence-card-square:hover::after {
    opacity: 1;
}

.excellence-card-square:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.2);
    border-color: var(--primary);
}

.excellence-icon-square {
    width: 110px;
    height: 110px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    background: var(--gradient-primary);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.25);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    z-index: 1;
}

.excellence-card-square:hover .excellence-icon-square {
    transform: scale(1.2) rotate(8deg);
    box-shadow: 0 15px 40px rgba(37, 99, 235, 0.35);
}

.excellence-icon-square i {
    font-size: 48px;
    color: var(--white);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.excellence-card-square h3 {
    font-size: 1.5rem;
    color: var(--dark);
    margin-bottom: 6px;
    font-weight: 700;
    position: relative;
    z-index: 1;
    line-height: 1.4;
}


.excellence-card-square p {
    color: var(--gray-600);
    line-height: 1.8;
    font-size: 0.95rem;
    position: relative;
    z-index: 1;
    margin-top: auto;
    flex-grow: 1;
    display: flex;
    align-items: center;
    text-align: center;
}

/* ==========================================
   ELS GATE PAGE
   ========================================== */
.els-hero {
    padding: 96px 0 80px;
    background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.15), transparent 55%),
        radial-gradient(circle at bottom right, rgba(15, 23, 42, 0.9), #020617);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.els-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg width="280" height="280" viewBox="0 0 280 280" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(148,163,184,0.25)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.25;
    pointer-events: none;
}

.els-hero .container {
    position: relative;
    z-index: 1;
}

.els-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 48px;
    align-items: center;
}

.els-hero-text h1 {
    font-size: 2.75rem;
    line-height: 1.15;
    margin-bottom: 18px;
    color: var(--white);
}

.els-hero-text p {
    font-size: 1.1rem;
    color: rgba(226, 232, 240, 0.95);
    max-width: 560px;
}

.els-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.4);
    color: #E2E8F0;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 16px;
}

.els-badge i {
    color: #22C55E;
}

.els-hero-metrics {
    display: flex;
    gap: 22px;
    margin-top: 28px;
    flex-wrap: wrap;
}

.els-hero-metrics .metric {
    min-width: 120px;
}

.els-hero-metrics span {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
}

.els-hero-metrics p {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(226, 232, 240, 0.8);
}

.els-hero-screen {
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(148, 163, 184, 0.4);
    border-radius: 30px;
    padding: 24px;
    box-shadow: 0 35px 80px rgba(2, 6, 23, 0.65);
    position: relative;
}

.els-hero-led {
    display: flex;
    gap: 8px;
    margin-bottom: 18px;
}

.els-led-dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
}

.els-led-dot.red {
    background: #F87171;
}

.els-led-dot.yellow {
    background: #FCD34D;
}

.els-led-dot.green {
    background: #4ADE80;
}

.els-hero-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.els-ticket {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.35);
    color: #E2E8F0;
}

.els-ticket.primary {
    border-color: rgba(59, 130, 246, 0.8);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.25);
}

.els-ticket.warning {
    border-color: rgba(251, 191, 36, 0.6);
}

.els-ticket span {
    background: rgba(226, 232, 240, 0.1);
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
}

.ticket-label {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.7rem;
    color: rgba(148, 163, 184, 0.8);
    margin-bottom: 4px;
}

.els-hero-footer {
    margin-top: 6px;
    padding: 12px 0 0;
    border-top: 1px dashed rgba(148, 163, 184, 0.3);
    font-size: 0.85rem;
    color: rgba(226, 232, 240, 0.85);
}

.els-hero-footer i {
    color: #FACC15;
    margin-right: 6px;
}

.els-cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 28px 0 18px;
}

.els-cta-group .btn-secondary {
    border-radius: var(--radius-full);
    border: 2px solid rgba(148, 163, 184, 0.6);
    background: transparent;
    color: #E2E8F0;
}

.els-cta-group .btn-secondary:hover {
    background: rgba(15, 23, 42, 0.9);
    border-color: #E2E8F0;
}

.els-cta-group .btn-blue {
    border-radius: var(--radius-full);
    background: rgba(15, 23, 42, 0.85);
    color: #E2E8F0;
    border: 1px solid rgba(148, 163, 184, 0.5);
}

.els-cta-group .btn-blue:hover {
    background: rgba(15, 23, 42, 1);
}

.els-app-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.badge-store {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    color: #E2E8F0;
    font-size: 0.85rem;
    text-decoration: none;
    background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.7));
    backdrop-filter: blur(10px);
}

.badge-store i {
    font-size: 1rem;
}

.badge-store:hover {
    border-color: #fff;
    color: #fff;
}

.els-hero-card {
    background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.2), rgba(15, 23, 42, 0.95));
    border-radius: 24px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.35);
    overflow: hidden;
    backdrop-filter: blur(18px);
}

.els-hero-card__header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.4);
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.9), rgba(30, 64, 175, 0.8));
    font-size: 0.9rem;
    color: #E5E7EB;
}

.els-hero-card__header .dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
}

.els-hero-card__header .dot.red {
    background: #EF4444;
}

.els-hero-card__header .dot.amber {
    background: #F59E0B;
}

.els-hero-card__header .dot.green {
    background: #22C55E;
}

.els-hero-card__body {
    padding: 20px 20px 16px;
    background: radial-gradient(circle at top, rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 1));
}

.queue-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.4);
    color: #E5E7EB;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.queue-item strong {
    display: block;
    color: #F9FAFB;
    margin-bottom: 2px;
}

.queue-item p {
    margin: 0;
    color: #94A3B8;
    font-size: 0.85rem;
}

.queue-status {
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.queue-status.success {
    background: rgba(34, 197, 94, 0.15);
    color: #4ADE80;
}

.queue-status.info {
    background: rgba(59, 130, 246, 0.15);
    color: #93C5FD;
}

.queue-status.warning {
    background: rgba(245, 158, 11, 0.15);
    color: #FBBF24;
}

.els-hero-card__footer {
    padding: 12px 16px;
    border-top: 1px solid rgba(148, 163, 184, 0.35);
    font-size: 0.85rem;
    color: #E5E7EB;
    background: linear-gradient(90deg, rgba(15, 23, 42, 1), rgba(30, 64, 175, 0.9));
}

.els-hero-card__footer i {
    color: #FACC15;
    margin-right: 6px;
}

/* ELS Gate Highlights */
.els-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
}

.els-card {
    background: var(--white);
    border-radius: 20px;
    padding: 28px 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.els-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.07), transparent 55%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.els-card:hover::after {
    opacity: 1;
}

.els-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(37, 99, 235, 0.5);
}

.els-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0F172A;
    margin-bottom: 18px;
}

.els-card-icon i {
    font-size: 26px;
}

.gradient-blue {
    background: linear-gradient(135deg, #DBEAFE, #60A5FA);
}

.gradient-green {
    background: linear-gradient(135deg, #DCFCE7, #4ADE80);
}

.gradient-purple {
    background: linear-gradient(135deg, #EDE9FE, #A855F7);
}

.gradient-amber {
    background: linear-gradient(135deg, #FEF3C7, #FBBF24);
}

.gradient-red {
    background: linear-gradient(135deg, #FEE2E2, #F97316);
}

.gradient-cyan {
    background: linear-gradient(135deg, #E0F2FE, #22D3EE);
}

.els-card h3 {
    font-size: 1.3rem;
    color: var(--dark);
    margin-bottom: 10px;
}

.els-card p {
    color: var(--gray-600);
    line-height: 1.7;
}

.els-highlight {
    background: linear-gradient(180deg, #0F172A, #111827);
    padding: 70px 0;
    color: #E2E8F0;
}

.els-highlight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.highlight-card {
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 12px 30px rgba(2, 6, 23, 0.4);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.highlight-card i {
    font-size: 1.6rem;
    color: #60A5FA;
}

.highlight-card h3 {
    color: #F8FAFC;
    margin: 0;
}

.highlight-card p {
    margin: 0;
    color: rgba(226, 232, 240, 0.8);
    line-height: 1.6;
}

.els-app-section {
    background: var(--light);
}

.els-app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
    margin-top: 30px;
}

.els-app-card {
    background: var(--white);
    border-radius: 22px;
    padding: 30px;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
}

.els-app-card h3 {
    color: var(--dark);
    margin-bottom: 12px;
}

.els-app-card p {
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: 18px;
}

.els-app-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.els-app-card ul li {
    color: var(--gray-600);
    display: flex;
    align-items: center;
    gap: 8px;
}

.els-app-card ul li i {
    color: var(--primary);
}

.els-app-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.els-integration-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.integration-item {
    display: flex;
    gap: 16px;
    padding: 16px;
    border-radius: 16px;
    border: 1px solid var(--gray-200);
    background: var(--gray-50);
}

.integration-item span {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: var(--gradient-primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.integration-item h4 {
    margin: 0 0 4px;
    color: var(--dark);
}

.integration-item p {
    margin: 0;
    color: var(--gray-600);
}

/* How it works steps */
.els-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.step {
    background: var(--white);
    border-radius: 18px;
    padding: 24px 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
    position: relative;
    overflow: hidden;
}

.step::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(37, 99, 235, 0.08), transparent 55%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.step:hover::before {
    opacity: 1;
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: var(--gradient-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.step h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--dark);
}

.step p {
    color: var(--gray-600);
    font-size: 0.95rem;
    line-height: 1.7;
}

.els-cta-panel {
    margin-top: 12px;
    padding: 22px 24px;
    border-radius: 20px;
    background: linear-gradient(135deg, #1D4ED8, #1E293B);
    color: #E5E7EB;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.els-cta-panel h3 {
    color: #F9FAFB;
    margin-bottom: 6px;
}

.els-cta-panel p {
    margin: 0;
    color: #E5E7EB;
}

.els-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* ==========================================
   FORMS
   ========================================== */
.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 48px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--dark);
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: var(--font-primary);
    transition: var(--transition);
    background: var(--white);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(74, 144, 226, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 140px;
}

select.form-control {
    cursor: pointer;
}

/* ==========================================
   GALLERY
   ========================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.gallery-item:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-5px);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    filter: brightness(1) contrast(1);
}

.gallery-item:hover img {
    transform: scale(1.1);
    filter: brightness(1.1) contrast(1.1);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    color: var(--white);
    font-size: 32px;
}

/* ==========================================
   TEACHERS
   ========================================== */
.teachers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 32px;
}

.teacher-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    border: 1px solid rgba(74, 144, 226, 0.08);
}

.teacher-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(74, 144, 226, 0.2);
}

.teacher-photo {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: var(--transition);
    filter: brightness(1) contrast(1);
}

.teacher-card:hover .teacher-photo {
    filter: brightness(1.05) contrast(1.05);
    transform: scale(1.02);
}

.teacher-info {
    padding: 24px;
}

.teacher-name {
    font-size: 1.25rem;
    color: var(--dark);
    margin-bottom: 8px;
}

.teacher-subject {
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 8px;
}

.teacher-bio {
    color: var(--gray-500);
    font-size: 0.9rem;
}

/* ==========================================
   PROGRAMS
   ========================================== */
.program-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    margin-bottom: 32px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-left: 5px solid var(--primary);
    position: relative;
    overflow: hidden;
}

.program-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--gradient-primary);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.4s ease;
}

.program-card:hover::before {
    transform: scaleY(1);
}

.program-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateX(8px);
}

.program-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}

.program-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.program-icon i {
    font-size: 36px;
    color: var(--white);
}

.program-title {
    font-size: 1.75rem;
    color: var(--dark);
}

.program-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.program-list h4 {
    color: var(--primary);
    margin-bottom: 16px;
    font-size: 1.1rem;
}

.program-list ul {
    list-style: none;
}

.program-list li {
    padding: 10px 0;
    color: var(--gray-700);
    display: flex;
    align-items: center;
    gap: 12px;
}

.program-list li i {
    color: var(--primary);
}

/* ==========================================
   ALERTS
   ========================================== */
.alert {
    padding: 16px 20px;
    border-radius: var(--radius);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert-success {
    background: #D1FAE5;
    color: #065F46;
    border: 1px solid #A7F3D0;
}

.alert-error {
    background: #FEE2E2;
    color: #991B1B;
    border: 1px solid #FECACA;
}

.alert-info {
    background: #DBEAFE;
    color: #1E40AF;
    border: 1px solid #BFDBFE;
}

/* ==========================================
   TABLES
   ========================================== */
.table-container {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

table th,
table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

table th {
    background: var(--gray-100);
    color: var(--dark);
    font-weight: 600;
    white-space: nowrap;
}

table tr:hover {
    background: var(--gray-100);
}

/* ==========================================
   BADGES
   ========================================== */
.badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
}

.badge-success {
    background: #D1FAE5;
    color: #065F46;
}

.badge-warning {
    background: #FEF3C7;
    color: #92400E;
}

.badge-danger {
    background: #FEE2E2;
    color: #991B1B;
}

.badge-info {
    background: #DBEAFE;
    color: #1E40AF;
}

.badge-primary {
    background: var(--primary-light);
    color: var(--primary-dark);
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    background: linear-gradient(135deg, #1E3A5F 0%, #2C5F8D 100%);
    color: var(--white);
    padding: 80px 0 24px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="footerGrid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23footerGrid)"/></svg>');
    opacity: 0.5;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 48px;
    margin-bottom: 48px;
    position: relative;
    z-index: 1;
}

.footer-logo {
    height: 90px;
    width: auto;
    max-width: 400px;
    margin-bottom: 25px;
    /* Logo displays in original colors */
}

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 24px;
    position: relative;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 12px;
}

.footer-section a {
    color: var(--gray-300);
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--white);
    padding-left: 8px;
}

.footer-section p {
    color: var(--gray-300);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-section p i {
    color: var(--primary-light);
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.social-links a {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-4px);
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--gray-300);
    position: relative;
    z-index: 1;
}

/* ==========================================
   DASHBOARD
   ========================================== */
.dashboard {
    min-height: 100vh;
    background: var(--light);
}

.dashboard-header {
    background: linear-gradient(135deg, #0A2647 0%, #0D3B5E 50%, #0A2647 100%);
    padding: 16px 0;
    box-shadow: 0 4px 20px rgba(10, 38, 71, 0.3);
    margin-bottom: 32px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.dashboard-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 32px;
    padding-bottom: 40px;
}

.sidebar {
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.sidebar-menu {
    list-style: none;
}

.sidebar-menu li {
    margin-bottom: 8px;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    color: var(--gray-700);
    border-radius: var(--radius);
    transition: var(--transition);
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: var(--gradient-primary);
    color: var(--white);
}

.sidebar-menu i {
    width: 20px;
}

.dashboard-main {
    min-width: 0;
}

.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.dashboard-card {
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
}

.dashboard-card .number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.dashboard-card .label {
    color: var(--gray-500);
    font-weight: 500;
}

/* ==========================================
   MODALS
   ========================================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.modal-content {
    background: var(--white);
    border-radius: var(--radius-lg);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 32px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.modal-header h3 {
    font-size: 1.5rem;
    color: var(--dark);
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--gray-500);
    cursor: pointer;
}

/* ==========================================
   RESPONSIVE DESIGN - Enhanced Mobile & Tablet
   ========================================== */

/* Tablet Landscape (1024px and below) */
@media (max-width: 1024px) {
    .container {
        padding: 0 20px;
    }

    .els-hero-grid {
        grid-template-columns: 1fr;
    }

    .els-hero-screen {
        max-width: 500px;
        margin: 0 auto;
    }

    .els-hero-metrics {
        gap: 16px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .sidebar {
        position: static;
    }

    .hero {
        height: 75vh;
        min-height: 500px;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .section {
        padding: 80px 0;
    }

    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    /* Excellence Grid Tablet */
    .excellence-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    /* Gallery Tablet */
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    /* Teachers Tablet */
    .teachers-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px;
    }

    /* News Grid Tablet */
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

/* Tablet Portrait (768px and below) */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .els-hero {
        padding: 80px 0 60px;
    }

    .els-hero-text h1 {
        font-size: 2.2rem;
    }

    .els-hero-metrics {
        flex-direction: column;
    }

    .els-highlight-grid,
    .els-app-grid,
    .els-steps {
        grid-template-columns: 1fr;
    }

    .els-hero-screen {
        padding: 18px;
    }

    /* Header & Navigation */
    .header-content {
        padding: 12px 0;
    }

    .logo img {
        height: 55px;
    }

    .mobile-menu-toggle {
        display: block;
        font-size: 28px;
        padding: 8px;
    }

    .nav {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 85%;
        max-width: 320px;
        height: calc(100vh - 80px);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.08);
        transition: left 0.3s ease;
        z-index: 999;
        overflow-y: auto;
        padding-top: 20px;
    }

    .nav.active {
        left: 0;
    }

    .nav-list {
        flex-direction: column;
        padding: 0 20px;
        gap: 4px;
    }

    .nav-link {
        width: 100%;
        padding: 16px 20px;
        border-radius: var(--radius);
        font-size: 1rem;
        color: var(--gray-700);
    }

    .nav-link:hover {
        background: rgba(13, 94, 46, 0.06);
        color: var(--primary);
    }

    /* Hero Section */
    .hero {
        height: 70vh;
        min-height: 450px;
    }

    .hero-content {
        padding: 20px 16px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
        line-height: 1.1;
        margin-bottom: 20px;
    }

    .hero-content p {
        font-size: 1.1rem;
        margin-bottom: 32px;
    }

    /* Modern Hero Responsive */
    .modern-hero {
        padding: 80px 0 60px !important;
        /* Override inline padding */
    }

    .modern-hero h1 {
        font-size: 2.5rem;
    }

    .modern-hero-badge {
        padding: 6px 16px;
        margin-bottom: 16px;
    }

    .modern-hero-badge span {
        font-size: 12px;
    }

    .modern-hero .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }

    .modern-hero .hero-buttons a {
        width: 100%;
        justify-content: center;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
    }

    /* Sections */
    .section {
        padding: 60px 0;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .section-title {
        font-size: 2.25rem;
        line-height: 1.2;
    }

    .section-desc {
        font-size: 1rem;
        padding: 0 10px;
    }

    /* Statistics */
    .stats-section {
        padding: 60px 0;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .stat-item {
        padding: 16px;
    }

    .stat-number {
        font-size: 2.75rem;
    }

    .stat-label {
        font-size: 1rem;
    }

    /* Cards */
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .card {
        padding: 24px;
    }

    .card-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 20px;
    }

    .card-icon i {
        font-size: 24px;
    }

    .card h3 {
        font-size: 1.25rem;
    }

    /* Gallery */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    /* Teachers */
    .teachers-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .teacher-photo {
        height: 250px;
    }

    /* Testimonials */
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .testimonial-card {
        padding: 32px 24px;
    }

    /* Excellence & Achievements */
    .excellence-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .excellence-card-square {
        padding: 32px 20px;
        border-radius: 16px;
    }

    .excellence-icon-square {
        width: 90px;
        height: 90px;
        margin-bottom: 24px;
        border-radius: 20px;
    }

    .excellence-icon-square i {
        font-size: 40px;
    }

    .excellence-card-square h3 {
        font-size: 1.25rem;
    }

    .excellence-card-square h3:last-of-type {
        font-size: 0.9rem;
    }

    .excellence-card-square p {
        font-size: 0.9rem;
    }

    /* Forms */
    .form-container {
        padding: 32px 24px;
        margin: 20px;
    }

    .form-group {
        margin-bottom: 20px;
    }

    .form-control {
        padding: 12px 16px;
        font-size: 0.95rem;
    }

    /* Footer */
    .footer {
        padding: 60px 0 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }

    .footer-section {
        margin-bottom: 24px;
    }

    .footer-section h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .social-links {
        justify-content: center;
        margin-top: 20px;
    }

    /* Programs */
    .program-card {
        padding: 32px 24px;
        margin-bottom: 24px;
    }

    .program-header {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .program-content {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* Mobile Phones (480px and below) */
@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }

    /* Header */
    .header-content {
        padding: 10px 0;
    }

    .logo img {
        height: 40px;
    }

    /* Hero */
    .hero {
        height: 60vh;
        min-height: 400px;
    }

    .hero-content {
        padding: 16px;
    }

    .hero-content h1 {
        font-size: 2rem;
        margin-bottom: 16px;
    }

    .hero-content p {
        font-size: 1rem;
        margin-bottom: 24px;
    }

    .hero-buttons {
        gap: 10px;
    }

    /* Modern Hero Mobile Small */
    .modern-hero {
        padding: 70px 0 50px !important;
    }

    .modern-hero h1 {
        font-size: 2rem;
    }

    .modern-hero p {
        font-size: 1rem;
    }

    .hero-buttons .btn {
        padding: 12px 24px;
        font-size: 0.95rem;
    }

    /* Hero Slider Mobile */
    .hero-slider {
        height: 100vh;
        min-height: 600px;
    }

    .hero-text-box {
        padding: 28px 24px;
        border-radius: 18px;
    }

    .hero-text-box h1 {
        font-size: 1.8rem;
        margin-bottom: 12px;
    }

    .hero-text-box p {
        font-size: 1rem;
        margin-bottom: 24px;
    }

    .slider-arrow {
        width: 44px;
        height: 44px;
        font-size: 16px;
    }

    .slider-prev {
        left: 15px;
    }

    .slider-next {
        right: 15px;
    }

    .slider-dots {
        bottom: 120px;
    }

    .dot {
        width: 12px;
        height: 12px;
    }

    .hero-quick-links {
        flex-wrap: wrap;
    }

    .quick-link {
        padding: 12px 16px;
        flex: 1 1 33.33%;
        min-width: 100px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .quick-link i {
        font-size: 1.2rem;
    }

    .quick-link span {
        font-size: 0.7rem;
        letter-spacing: 0.5px;
    }

    /* Sections */
    .section {
        padding: 50px 0;
    }

    .section-header {
        margin-bottom: 32px;
    }

    .section-title {
        font-size: 1.75rem;
        margin-bottom: 12px;
    }

    .section-subtitle {
        font-size: 0.85rem;
        letter-spacing: 2px;
    }

    .section-desc {
        font-size: 0.95rem;
    }

    /* Statistics */
    .stats-section {
        padding: 50px 0;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .stat-item {
        padding: 20px 16px;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .stat-label {
        font-size: 0.95rem;
    }

    /* Cards */
    .card {
        padding: 20px;
    }

    .card-icon {
        width: 55px;
        height: 55px;
        margin-bottom: 16px;
    }

    .card-icon i {
        font-size: 22px;
    }

    .card h3 {
        font-size: 1.15rem;
        margin-bottom: 10px;
    }

    .card p {
        font-size: 0.9rem;
    }

    /* Gallery Mobile */
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* Teachers Mobile */
    .teachers-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .teacher-photo {
        height: 280px;
    }

    /* Excellence Cards Mobile */
    .excellence-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .excellence-card-square {
        padding: 28px 20px;
    }

    .excellence-icon-square {
        width: 75px;
        height: 75px;
        margin-bottom: 18px;
    }

    .excellence-icon-square i {
        font-size: 32px;
    }

    .excellence-card-square h3 {
        font-size: 1.1rem;
    }

    .excellence-card-square p {
        font-size: 0.85rem;
    }

    /* News Grid Mobile */
    .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Footer Mobile */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    /* Form Mobile */
    .form-container {
        padding: 32px 20px;
        margin: 20px 12px;
    }

    /* Buttons */
    .btn {
        padding: 12px 24px;
        font-size: 0.95rem;
        width: 100%;
        max-width: 100%;
    }

    .btn-sm {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    /* Gallery */
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    /* Excellence & Achievements - Mobile */
    .excellence-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .excellence-card-square {
        padding: 32px 24px;
        aspect-ratio: 1;
        border-radius: 16px;
    }

    .excellence-icon-square {
        width: 85px;
        height: 85px;
        margin-bottom: 20px;
        border-radius: 18px;
    }

    .excellence-icon-square i {
        font-size: 36px;
    }

    .excellence-card-square h3 {
        font-size: 1.2rem;
        margin-bottom: 4px;
    }

    .excellence-card-square h3:last-of-type {
        font-size: 0.85rem;
        margin-bottom: 16px;
    }

    .excellence-card-square p {
        font-size: 0.88rem;
    }

    /* Gallery Mobile */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    /* Teachers Mobile */
    .teachers-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .teacher-photo {
        height: 250px;
    }

    /* News Grid Mobile */
    .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .els-hero-metrics span {
        font-size: 1.5rem;
    }

    .els-hero-screen {
        border-radius: 20px;
    }

    .els-app-card {
        padding: 24px 18px;
    }

    /* Teachers */
    .teachers-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .teacher-photo {
        height: 280px;
    }

    .teacher-info {
        padding: 20px;
    }

    /* Testimonials */
    .testimonial-card {
        padding: 24px 20px;
    }

    .testimonial-text {
        font-size: 1rem;
        line-height: 1.6;
    }

    /* Forms */
    .form-container {
        padding: 24px 16px;
        margin: 12px;
        border-radius: var(--radius);
    }

    .form-group label {
        font-size: 0.9rem;
        margin-bottom: 6px;
    }

    .form-control {
        padding: 12px 14px;
        font-size: 0.9rem;
    }

    textarea.form-control {
        min-height: 120px;
    }

    /* Footer */
    .footer {
        padding: 50px 0 16px;
    }

    .footer-content {
        gap: 24px;
    }

    .footer-logo {
        height: 45px;
        max-width: 220px;
    }

    .footer-section h4 {
        font-size: 1.1rem;
        margin-bottom: 16px;
    }

    .footer-section li {
        margin-bottom: 10px;
    }

    .footer-section a {
        font-size: 0.9rem;
    }

    /* Programs */
    .program-card {
        padding: 24px 16px;
        margin-bottom: 20px;
    }

    .program-icon {
        width: 70px;
        height: 70px;
    }

    .program-icon i {
        font-size: 32px;
    }

    .program-title {
        font-size: 1.5rem;
    }

    /* Dashboard */
    .dashboard-header {
        padding: 12px 0;
    }

    .dashboard-header-content {
        flex-wrap: wrap;
        gap: 12px;
        justify-content: center;
    }

    .dashboard-cards {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .dashboard-card {
        padding: 20px;
    }

    .dashboard-card .number {
        font-size: 2rem;
    }
}

/* Small Mobile Phones (360px and below) */
@media (max-width: 360px) {
    .container {
        padding: 0 10px;
    }

    .hero-content h1 {
        font-size: 1.75rem;
    }

    .hero-content p {
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .card {
        padding: 16px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .form-container {
        padding: 20px 12px;
    }
}

/* Extra improvements for touch devices */
@media (hover: none) and (pointer: coarse) {

    .btn,
    .nav-link,
    .card {
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .btn:active,
    .nav-link:active {
        transform: scale(0.98);
    }

    .card:active {
        transform: scale(0.99);
    }

    /* Larger touch targets */
    .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .btn {
        min-height: 44px;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {
    .hero-image {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Landscape Orientation for Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        height: 100vh;
        min-height: 500px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .section {
        padding: 50px 0;
    }
}