/* ============================================================
   MEIS LANDING PAGE — Custom Stylesheet
   Color Palette (Gold-Dominant / Warm Amber Theme):
     Gold Bright   : #F5C000
     Gold Primary  : #C8960C
     Gold Medium   : #A07000
     Gold Dark     : #6B4800
     Maroon CTA    : #8B1A1A
     Dark Sections : #180C00
     Cream Sections: #FFFBF0
   ============================================================ */

/* ----------------------------------------------------------
   1. CSS Variables & Reset
---------------------------------------------------------- */
:root {
    --gold-bright: #F5C000;
    --gold: #C8960C;
    --gold-medium: #A07000;
    --gold-dark: #6B4800;
    --gold-pale: #FFF8D6;
    --maroon: #8B1A1A;
    --maroon-dark: #5C0F0F;
    --dark-section: #180C00;
    --dark-card: #241500;
    --dark-border: rgba(200, 150, 12, 0.25);
    --cream-bg: #FFFBF0;
    --cream-alt: #FFF5D6;
    --hero-bg-from: #3D2200;
    --hero-bg-to: #F5C000;
    --text-on-dark: #FFFFFF;
    --text-on-gold: #2A1500;
    --text-on-cream: #2A1500;
    --muted-on-dark: #C8A050;
    --muted-on-gold: #5A3A00;
    --muted-on-cream: #7A5A20;
    --gold-glow: rgba(245, 192, 0, 0.35);
    --font-ar: 'Cairo', sans-serif;
    --font-en: 'Playfair Display', serif;
    --radius: 14px;
    --transition: 0.3s ease;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    /* prevents horizontal scroll on mobile */
}

body {
    font-family: var(--font-ar);
    background: var(--cream-bg);
    color: var(--text-on-cream);
    line-height: 1.7;
    overflow-x: hidden;
    max-width: 100%;
}

/* ----------------------------------------------------------
   2. Scrollbar
---------------------------------------------------------- */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--cream-alt);
}

::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 3px;
}

/* ----------------------------------------------------------
   3. Utility
---------------------------------------------------------- */
.text-gold {
    color: var(--gold-bright) !important;
}

/* Section labels appear on any section */
.section-tag {
    display: inline-block;
    background: linear-gradient(135deg, var(--maroon-dark), var(--maroon));
    color: #fff;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    padding: .3rem .9rem;
    border-radius: 30px;
    margin-bottom: .8rem;
}

/* Default: dark text for cream/light sections */
.section-title {
    font-family: var(--font-ar);
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 900;
    color: var(--text-on-cream);
    line-height: 1.2;
    margin-bottom: 1rem;
}

/* Override for dark/gold sections */
.on-dark .section-title,
.on-gold .section-title {
    color: #fff;
}

.section-subtitle {
    color: var(--muted-on-cream);
    font-size: 1rem;
    max-width: 560px;
    margin: 0 auto;
}

.on-dark .section-subtitle,
.on-gold .section-subtitle {
    color: rgba(255, 255, 255, 0.75);
}

.section-desc {
    color: var(--muted-on-cream);
    font-size: .95rem;
    margin-bottom: 1.2rem;
}

.on-dark .section-desc {
    color: var(--muted-on-dark);
}

/* Maroon CTA Button (primary) */
.btn-maroon,
.btn-gold {
    background: linear-gradient(135deg, var(--maroon-dark), var(--maroon));
    color: #fff;
    font-weight: 700;
    border: none;
    border-radius: 30px;
    padding: .65rem 1.8rem;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(139, 26, 26, .35);
}

.btn-maroon:hover,
.btn-gold:hover {
    background: linear-gradient(135deg, var(--maroon), var(--maroon-dark));
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(139, 26, 26, .55);
    color: #fff;
}

/* ----------------------------------------------------------
   4. NAVBAR
---------------------------------------------------------- */
.meis-navbar {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 1px solid transparent;
    padding: .6rem 0;
    transition: background var(--transition), border-color var(--transition),
        padding var(--transition), box-shadow var(--transition),
        backdrop-filter var(--transition);
    z-index: 1050;
}

.meis-navbar.scrolled {
    background: rgba(24, 12, 0, 0.97);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(245, 192, 0, 0.25);
    padding: .35rem 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, .6);
}

/* Brand */
.logo-shield {
    filter: drop-shadow(0 0 8px rgba(245, 192, 0, .5));
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-en {
    font-family: var(--font-en);
    font-size: 1.35rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: .05em;
    text-shadow: 0 1px 8px rgba(0, 0, 0, .7);
}

.brand-ar {
    font-size: .65rem;
    color: rgba(255, 255, 255, .82);
    letter-spacing: .05em;
    text-shadow: 0 1px 6px rgba(0, 0, 0, .6);
}

/* Nav links */
.meis-navbar .nav-link {
    color: rgba(255, 255, 255, .95) !important;
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .05em;
    padding: .5rem .8rem !important;
    border-radius: 6px;
    position: relative;
    transition: color var(--transition), text-shadow var(--transition);
    text-shadow: 0 1px 8px rgba(0, 0, 0, .75), 0 2px 16px rgba(0, 0, 0, .5);
}

.meis-navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: width var(--transition);
    box-shadow: 0 0 6px rgba(255, 255, 255, .7);
}

.meis-navbar .nav-link:hover,
.meis-navbar .nav-link.active {
    color: #fff !important;
    text-shadow: 0 0 12px rgba(255, 248, 180, .9), 0 1px 8px rgba(0, 0, 0, .6);
}

.meis-navbar .nav-link:hover::after,
.meis-navbar .nav-link.active::after {
    width: 65%;
}

/* Login button */
.btn-login {
    background: var(--maroon);
    border: 1.5px solid var(--maroon);
    color: #fff !important;
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .06em;
    padding: .45rem 1.3rem;
    border-radius: 6px;
    transition: var(--transition);
    box-shadow: 0 2px 14px rgba(0, 0, 0, .45);
}

.btn-login:hover {
    background: var(--maroon-dark);
    border-color: var(--maroon-dark);
    color: #fff !important;
    box-shadow: 0 4px 22px rgba(139, 26, 26, .6);
    transform: translateY(-1px);
}

/* ----------------------------------------------------------
   5. HERO SECTION
---------------------------------------------------------- */
.hero-section {
    position: relative;
    min-height: 100vh;
    background:
        /* subtle dark veil at the very top — keeps navbar text readable */
        linear-gradient(to bottom, rgba(10, 5, 0, 0.55) 0%, rgba(10, 5, 0, 0) 20%),
        radial-gradient(ellipse at 60% 40%, rgba(255, 210, 0, .55) 0%, transparent 55%),
        radial-gradient(ellipse at 15% 70%, rgba(200, 120, 10, .35) 0%, transparent 50%),
        radial-gradient(ellipse at 90% 80%, rgba(180, 100, 0, .25) 0%, transparent 45%),
        linear-gradient(180deg, #3D2200 0%, #7A4500 18%, #C8800A 42%, #F5C000 62%, #C17A00 80%, #8B5200 100%);
    overflow: hidden;
}

/* Particle canvas */
#particles-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* Welcome badge */
.welcome-badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: rgba(0, 0, 0, .25);
    border: 1px solid rgba(255, 255, 255, .35);
    color: #fff;
    font-size: .8rem;
    font-weight: 600;
    padding: .35rem .9rem;
    border-radius: 30px;
    letter-spacing: .06em;
    margin-bottom: 1rem;
    backdrop-filter: blur(6px);
}

/* Hero titles */
.hero-title-main {
    font-family: var(--font-ar);
    font-size: clamp(2.6rem, 6vw, 5.2rem);
    font-weight: 900;
    color: #fff;
    line-height: 1.2;
    text-shadow: 0 2px 24px rgba(0, 0, 0, .6), 0 0 60px rgba(0, 0, 0, .35);
    margin-bottom: .5rem;
    letter-spacing: -.01em;
}

.hero-sub-line {
    display: block;
    font-size: .6em;
    font-weight: 700;
    color: rgba(255, 255, 255, .88);
    margin-top: .3rem;
    letter-spacing: 0;
}

/* Legacy classes kept for safety */
.hero-title-en {
    font-family: var(--font-en);
    font-size: clamp(2rem, 4.5vw, 4rem);
    font-weight: 900;
    color: #fff;
    line-height: 1.1;
    letter-spacing: .02em;
    text-shadow: 0 2px 20px rgba(0, 0, 0, .55), 0 0 60px rgba(0, 0, 0, .3);
}

.hero-title-en .gold-stroke {
    color: #fff;
    -webkit-text-fill-color: #fff;
    text-shadow: 0 1px 8px rgba(0, 0, 0, .4);
}

.hero-title-ar {
    font-size: clamp(1.3rem, 2.5vw, 2rem);
    font-weight: 900;
    color: #fff;
    margin: .5rem 0 .5rem;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .45);
}

.hero-welcome {
    margin-bottom: .5rem;
}

.hero-desc {
    font-size: .95rem;
    color: rgba(255, 255, 255, .85);
    max-width: 600px;
    line-height: 1.8;
    text-shadow: 0 1px 6px rgba(0, 0, 0, .3);
    text-align: center;
}

/* Hero CTA buttons */
.btn-hero-primary {
    background: linear-gradient(135deg, var(--maroon-dark), var(--maroon));
    color: #fff;
    font-weight: 700;
    border-radius: 6px;
    padding: .8rem 2.2rem;
    font-size: .95rem;
    border: none;
    transition: var(--transition);
    box-shadow: 0 6px 24px rgba(139, 26, 26, .5);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 32px rgba(139, 26, 26, .7);
    color: #fff;
    background: linear-gradient(135deg, var(--maroon), var(--maroon-dark));
}

.btn-hero-outline {
    background: rgba(255, 255, 255, .15);
    color: #fff;
    font-weight: 600;
    border-radius: 6px;
    padding: .78rem 2rem;
    font-size: .95rem;
    border: 1.5px solid rgba(255, 255, 255, .5);
    transition: var(--transition);
    backdrop-filter: blur(6px);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.btn-hero-outline:hover {
    background: rgba(255, 255, 255, .28);
    border-color: #fff;
    color: #fff;
    transform: translateY(-3px);
}

/* Stats */
.hero-stats {
    margin-top: 3rem;
}

/* Glassmorphism stat cards */
.stat-card {
    background: rgba(255, 255, 255, .13);
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 18px;
    padding: 1.6rem 1.8rem;
    min-width: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .45rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: transform var(--transition), box-shadow var(--transition),
        background var(--transition);
    position: relative;
    overflow: hidden;
    cursor: default;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 15%;
    right: 15%;
    height: 2px;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, .85),
            transparent);
    border-radius: 0 0 4px 4px;
}

.stat-card:hover {
    transform: translateY(-7px) scale(1.03);
    background: rgba(255, 255, 255, .22);
    box-shadow: 0 16px 44px rgba(0, 0, 0, .32),
        0 0 0 1px rgba(255, 255, 255, .18);
}

/* Icon badge */
.stat-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .18);
    border: 1.5px solid rgba(255, 255, 255, .38);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    color: #fff;
    margin-bottom: .2rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .2);
    transition: background var(--transition), box-shadow var(--transition);
}

.stat-card:hover .stat-icon-wrap {
    background: rgba(255, 255, 255, .3);
    box-shadow: 0 4px 20px rgba(255, 248, 180, .4);
}

/* Number + suffix row */
.stat-value-row {
    display: flex;
    align-items: baseline;
    gap: 1px;
    line-height: 1;
}

.stat-num {
    font-family: var(--font-ar);
    font-size: 2.3rem;
    font-weight: 900;
    color: #fff;
    line-height: 1;
    text-shadow: 0 2px 16px rgba(0, 0, 0, .4);
    transition: text-shadow .3s ease;
}

.stat-num.count-done {
    animation: numGlow .7s ease-out forwards;
}

.stat-suffix {
    font-family: var(--font-ar);
    font-size: 1.5rem;
    font-weight: 900;
    color: rgba(255, 255, 255, .9);
    line-height: 1;
}

.stat-label {
    font-size: .76rem;
    font-weight: 600;
    color: rgba(255, 255, 255, .88);
    text-align: center;
    letter-spacing: .03em;
}

@keyframes numGlow {
    0% {
        text-shadow: 0 2px 16px rgba(0, 0, 0, .4);
    }

    35% {
        text-shadow: 0 0 22px rgba(255, 248, 180, .95),
            0 0 44px rgba(255, 220, 80, .65);
    }

    100% {
        text-shadow: 0 2px 16px rgba(0, 0, 0, .4);
    }
}

/* Shield emblem */
.hero-shield-col {
    position: relative;
}

.hero-shield-wrap {
    position: relative;
    display: inline-block;
    animation: floatShield 4s ease-in-out infinite;
}

.hero-shield-svg {
    width: min(350px, 80vw);
    height: auto;
    filter: drop-shadow(0 8px 50px rgba(0, 0, 0, .5)) drop-shadow(0 0 30px rgba(245, 192, 0, .4));
}

.shield-glow-ring {
    position: absolute;
    inset: -20px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 192, 0, .18) 0%, transparent 70%);
    pointer-events: none;
    animation: pulseRing 3s ease-in-out infinite;
}

@keyframes floatShield {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-14px);
    }
}

@keyframes pulseRing {

    0%,
    100% {
        opacity: .5;
        transform: scale(1);
    }

    50% {
        opacity: .9;
        transform: scale(1.06);
    }
}

/* ----------------------------------------------------------
   6. FEATURE CARDS  (gold gradient section)
---------------------------------------------------------- */
.features-section {
    background:
        radial-gradient(ellipse at 70% 30%, rgba(255, 220, 0, .45) 0%, transparent 55%),
        radial-gradient(ellipse at 20% 80%, rgba(200, 120, 10, .3) 0%, transparent 50%),
        linear-gradient(180deg, #8B5200 0%, #7A4500 20%, #C8800A 45%, #F5C000 65%, #C17A00 82%, #3D2200 100%);
    padding: 5rem 0 4.5rem;
}

.feature-card {
    background: rgba(20, 8, 0, 0.72);
    border: 1px solid rgba(245, 192, 0, 0.3);
    border-radius: var(--radius);
    padding: 2.2rem 1.8rem 1.8rem;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(245, 192, 0, .10) 0%, transparent 60%);
    opacity: 0;
    transition: opacity var(--transition);
}

.feature-card:hover {
    border-color: var(--gold-bright);
    transform: translateY(-8px);
    box-shadow: 0 20px 56px rgba(0, 0, 0, .45),
        0 0 0 1px rgba(245, 192, 0, .25);
    background: rgba(30, 12, 0, 0.82);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon-wrap {
    width: 68px;
    height: 68px;
    margin: 0 auto 1.2rem;
    background: rgba(245, 192, 0, .08);
    border: 2px solid var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.55rem;
    color: var(--gold-bright);
    box-shadow: 0 0 20px rgba(245, 192, 0, .25),
        inset 0 0 12px rgba(245, 192, 0, .08);
    transition: transform var(--transition), background var(--transition), box-shadow var(--transition);
}

.feature-card:hover .feature-icon-wrap {
    transform: scale(1.12) rotate(5deg);
    background: rgba(245, 192, 0, .15);
    box-shadow: 0 0 28px rgba(245, 192, 0, .45),
        inset 0 0 14px rgba(245, 192, 0, .12);
}

.feature-title {
    font-size: 1.08rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: .6rem;
    text-shadow: 0 1px 8px rgba(0, 0, 0, .5);
}

.feature-desc {
    font-size: .85rem;
    color: rgba(255, 220, 130, .82);
    line-height: 1.75;
    margin: 0;
    flex: 1;
}

/* CTA button inside each card */
.feature-cta-link {
    display: inline-block;
    margin-top: 1.3rem;
    padding: .45rem 1.5rem;
    border: 1.5px solid var(--gold);
    border-radius: 6px;
    color: var(--gold-bright);
    font-weight: 700;
    font-size: .82rem;
    letter-spacing: .04em;
    text-decoration: none;
    transition: background var(--transition), color var(--transition),
        box-shadow var(--transition), border-color var(--transition);
    align-self: center;
}

.feature-cta-link:hover {
    background: var(--gold-bright);
    color: #1a0800;
    border-color: var(--gold-bright);
    box-shadow: 0 4px 20px rgba(245, 192, 0, .5);
}

/* ----------------------------------------------------------
   7. ABOUT SECTION  (cream / light)
---------------------------------------------------------- */
.about-section {
    background: var(--cream-bg);
}

.about-section .section-title {
    color: var(--text-on-cream);
}

.about-section .section-desc {
    color: var(--muted-on-cream);
}

.about-img-wrap {
    position: relative;
    border-radius: var(--radius);
    overflow: visible;
}

.about-img-placeholder {
    background: linear-gradient(135deg, #f5e8c0, #ffe9a0);
    border: 2px solid rgba(200, 150, 12, .3);
    border-radius: var(--radius);
    min-height: 340px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--gold-dark);
    font-size: .9rem;
}

.about-badge {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: linear-gradient(135deg, var(--maroon-dark), var(--maroon));
    color: #fff;
    border-radius: var(--radius);
    padding: 1rem 1.4rem;
    display: flex;
    align-items: center;
    gap: .8rem;
    font-weight: 700;
    font-size: .8rem;
    box-shadow: 0 8px 28px rgba(139, 26, 26, .4);
    line-height: 1.3;
}

.about-list {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    margin-bottom: 1rem;
}

.about-list li {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    font-size: .92rem;
    color: var(--text-on-cream);
    line-height: 1.6;
}

.about-list li i {
    margin-top: .22rem;
    flex-shrink: 0;
    font-size: 1rem;
}

/* ----------------------------------------------------------
   8. PROGRAMS SECTION  (dark)
---------------------------------------------------------- */
.programs-section {
    background: var(--dark-section);
}

.programs-section .section-title {
    color: #fff;
}

.programs-section .section-subtitle {
    color: var(--muted-on-dark);
}

.program-card {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    text-align: center;
    height: 100%;
    transition: var(--transition);
    color: #fff;
    position: relative;
}

.program-card:hover,
.program-card--active {
    background: linear-gradient(135deg, #2a1500, #3d2200);
    border-color: var(--gold-bright);
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(245, 192, 0, .2);
}

.program-level {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--gold-dark), var(--gold-bright));
    color: #1a0800;
    font-family: var(--font-en);
    font-weight: 900;
    font-size: .85rem;
    padding: .3rem .9rem;
    border-radius: 30px;
    letter-spacing: .06em;
}

.program-card i {
    color: var(--gold-bright);
}

.program-card h5 {
    font-weight: 700;
    color: #fff;
    margin-bottom: .5rem;
}

.program-card p {
    font-size: .85rem;
    color: var(--muted-on-dark);
}

.program-link {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    color: var(--gold-bright);
    font-size: .83rem;
    font-weight: 700;
    text-decoration: none;
    transition: color var(--transition), gap var(--transition);
    letter-spacing: .02em;
}

.program-link:hover {
    color: #fff;
    gap: .65rem;
}

/* ----------------------------------------------------------
   9. E-LEARNING SECTION  (cream / light)
---------------------------------------------------------- */
.elearning-section {
    background: var(--cream-alt);
}

.elearning-section .section-title {
    color: var(--text-on-cream);
}

.elearning-section .section-desc {
    color: var(--muted-on-cream);
}

.elearn-feature {
    display: flex;
    align-items: center;
    gap: .75rem;
    background: #fff;
    border: 1.5px solid rgba(200, 150, 12, .25);
    border-radius: 10px;
    padding: .85rem 1.1rem;
    font-size: .87rem;
    font-weight: 600;
    color: var(--text-on-cream);
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(200, 150, 12, .08);
}

.elearn-feature i {
    flex-shrink: 0;
    font-size: 1.15rem;
}

.elearn-feature:hover {
    border-color: var(--gold);
    color: var(--gold-dark);
    box-shadow: 0 4px 18px rgba(200, 150, 12, .2);
    transform: translateX(-3px);
}

/* Mockup */
.elearn-mockup {
    display: flex;
    justify-content: center;
}

.mockup-screen {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 14px;
    width: 100%;
    max-width: 420px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
}

.mockup-bar {
    background: #1a0c00;
    padding: .6rem 1rem;
    display: flex;
    gap: .4rem;
    align-items: center;
}

.mockup-bar span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gold-bright);
    opacity: .6;
}

.mockup-content {
    padding: 1.5rem;
}

.mockup-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.mockup-lines {
    flex: 1;
}

.line {
    height: 8px;
    background: rgba(255, 255, 255, .1);
    border-radius: 4px;
    margin-bottom: .5rem;
}

.line.w-75 {
    width: 75%;
}

.line.w-50 {
    width: 50%;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    font-size: .78rem;
    color: var(--muted-on-dark);
    margin-bottom: .3rem;
}

.progress-label span {
    color: var(--gold-bright);
}

.progress {
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, .07);
}

/* ----------------------------------------------------------
   10. ADMISSIONS SECTION  (warm gold gradient)
---------------------------------------------------------- */
.admissions-section {
    background: linear-gradient(180deg,
            #7A4500 0%,
            #C8800A 30%,
            #F5C000 60%,
            #C17A00 85%,
            #C17A00 100%);
    position: relative;
    overflow: hidden;
}

.admissions-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 50%, rgba(255, 255, 255, .08) 0%, transparent 70%);
    pointer-events: none;
}

.admissions-section .section-tag {
    background: rgba(0, 0, 0, .3);
}

.admissions-section .section-title {
    color: #fff;
}

.admissions-section .section-subtitle {
    color: rgba(255, 255, 255, .75);
}

.steps-wrapper {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
}

.step-item {
    flex: 1;
    min-width: 140px;
    text-align: center;
    padding: 1.5rem 1rem;
    position: relative;
    color: #fff;
}

.step-num {
    font-family: var(--font-en);
    font-size: 2.5rem;
    font-weight: 900;
    color: rgba(255, 255, 255, .2);
    line-height: 1;
    margin-bottom: .4rem;
}

.step-item:hover .step-num {
    color: rgba(255, 255, 255, .55);
}

.step-item i {
    color: #fff;
    display: block;
}

.step-item h6 {
    font-weight: 700;
    color: #fff;
    margin: .6rem 0 .3rem;
}

.step-item p {
    font-size: .8rem;
    color: rgba(255, 255, 255, .75);
    margin: 0;
}

.step-line {
    flex: 0 0 40px;
    height: 2px;
    background: rgba(255, 255, 255, .4);
    margin-top: 3.2rem;
}

.admissions-section .btn-gold {
    background: linear-gradient(135deg, var(--maroon-dark), var(--maroon));
    color: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .3);
}

.admissions-section .btn-gold:hover {
    background: linear-gradient(135deg, var(--maroon), var(--maroon-dark));
    color: #fff;
}

@media (max-width: 576px) {
    .steps-wrapper {
        flex-direction: column;
        align-items: center;
    }

    .step-line {
        width: 2px;
        height: 30px;
        flex: 0 0 30px;
        margin: 0;
        background: rgba(255, 255, 255, .3);
    }
}

/* ----------------------------------------------------------
   11. TESTIMONIALS SECTION  (warm gold — matches image 1)
---------------------------------------------------------- */
.testimonials-section {
    background: linear-gradient(180deg,
            #5C3200 0%,
            #A06A00 25%,
            #E0A800 55%,
            #A06A00 80%,
            #5C3200 100%);
    position: relative;
    overflow: hidden;
}

.testimonials-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 30%, rgba(255, 255, 200, .12) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(255, 200, 50, .1) 0%, transparent 50%);
    pointer-events: none;
}

.testimonials-section .section-title {
    color: #fff;
}

.testimonials-section .section-tag {
    background: rgba(0, 0, 0, .3);
}

/* Student-style testimonial cards */
.testimonial-card {
    background: rgba(0, 0, 0, .35);
    border: 1px solid rgba(255, 255, 255, .15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--radius);
    padding: 0;
    height: 100%;
    transition: var(--transition);
    overflow: hidden;
}

.testimonial-card:hover,
.testimonial-card--featured {
    border-color: rgba(255, 255, 255, .4);
    box-shadow: 0 16px 48px rgba(0, 0, 0, .35);
    transform: translateY(-6px);
}

/* Photo-style top area */
.testimonial-photo {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, #3D2200, #7A4500);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.testimonial-photo-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-dark), var(--gold-bright));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: -20px;
    border: 3px solid rgba(255, 255, 255, .3);
    position: relative;
    z-index: 1;
    color: #fff;
}

.testimonial-body {
    padding: 1.8rem 1.5rem 1.5rem;
    padding-top: 1.8rem;
}

.testimonial-card p {
    font-size: .88rem;
    color: rgba(255, 255, 255, .85);
    font-style: italic;
    margin-bottom: 1.2rem;
    line-height: 1.8;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: .8rem;
}

.author-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-dark), var(--gold-bright));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
    font-size: 1.1rem;
}

.testimonial-author strong {
    display: block;
    font-size: .88rem;
    color: #fff;
}

.testimonial-author small {
    font-size: .75rem;
    color: rgba(255, 255, 255, .65);
}

/* ----------------------------------------------------------
   12. CONTACT SECTION  (cream / light — matches image 1)
---------------------------------------------------------- */
.contact-section {
    background: var(--cream-bg);
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--maroon), var(--gold), var(--maroon));
}

.contact-section .section-title {
    color: var(--text-on-cream);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--maroon-dark), var(--maroon));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1rem;
    flex-shrink: 0;
}

.contact-item h6 {
    margin: 0 0 .2rem;
    color: var(--maroon);
    font-size: .85rem;
    font-weight: 700;
}

.contact-item p {
    margin: 0;
    font-size: .88rem;
    color: var(--muted-on-cream);
}

/* Social buttons */
.social-links {
    display: flex;
    gap: .6rem;
    flex-wrap: wrap;
}

.social-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: transparent;
    border: 1.5px solid rgba(200, 100, 12, .3);
    color: var(--gold-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .9rem;
    text-decoration: none;
    transition: var(--transition);
}

.social-btn:hover {
    background: var(--maroon);
    border-color: var(--maroon);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 4px 14px rgba(139, 26, 26, .35);
}

/* Contact Form */
.contact-form .form-label {
    font-size: .82rem;
    color: var(--muted-on-cream);
    margin-bottom: .4rem;
    font-weight: 600;
}

.contact-form .form-control,
.contact-form select,
.contact-form textarea {
    background: #fff;
    border: 1.5px solid rgba(200, 100, 12, .25);
    color: var(--text-on-cream);
    border-radius: 10px;
    padding: .72rem 1rem;
    font-family: var(--font-ar);
    font-size: .88rem;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.contact-form .form-control:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    background: #fff;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(200, 150, 12, .15);
    color: var(--text-on-cream);
    outline: none;
}

.contact-form .form-control::placeholder {
    color: #bba060;
}

.contact-form select option {
    background: #fff;
    color: var(--text-on-cream);
}

.contact-form select option {
    background: #fff;
    color: var(--text-on-cream);
}

.input-icon-wrap {
    position: relative;
}

.input-icon-wrap i {
    position: absolute;
    top: 50%;
    right: .9rem;
    transform: translateY(-50%);
    color: var(--gold-medium);
    font-size: .85rem;
    pointer-events: none;
}

.input-icon-wrap .form-control,
.input-icon-wrap select {
    padding-right: 2.4rem;
}

/* ----------------------------------------------------------
   13. FOOTER  (dark warm brown)
---------------------------------------------------------- */
.meis-footer {
    background: var(--dark-section);
}

.footer-top {
    padding: 4rem 0 2.5rem;
    border-bottom: 1px solid rgba(245, 192, 0, .15);
}

.footer-brand-name {
    font-family: var(--font-en);
    font-weight: 900;
    font-size: 1.2rem;
    color: var(--gold-bright);
}

.footer-brand-sub {
    font-size: .66rem;
    color: var(--muted-on-dark);
}

.footer-about {
    font-size: .85rem;
    color: var(--muted-on-dark);
    line-height: 1.7;
    margin-top: .5rem;
}

.footer-heading {
    font-weight: 700;
    color: var(--gold-bright);
    margin-bottom: 1rem;
    font-size: .9rem;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.footer-links a {
    color: var(--muted-on-dark);
    text-decoration: none;
    font-size: .85rem;
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--gold-bright);
}

/* Newsletter */
.footer-newsletter {
    display: flex;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(245, 192, 0, .2);
}

.footer-newsletter input {
    flex: 1;
    background: var(--dark-card);
    border: none;
    padding: .6rem 1rem;
    color: #fff;
    font-family: var(--font-ar);
    font-size: .82rem;
    outline: none;
    min-width: 0;
}

.footer-newsletter input::placeholder {
    color: var(--muted-on-dark);
}

.footer-newsletter button {
    background: linear-gradient(135deg, var(--maroon-dark), var(--maroon));
    border: none;
    color: #fff;
    padding: .6rem 1.1rem;
    cursor: pointer;
    font-size: .95rem;
    transition: opacity var(--transition);
}

.footer-newsletter button:hover {
    opacity: .85;
}

.footer-bottom {
    padding: 1.2rem 0;
    font-size: .82rem;
    color: var(--muted-on-dark);
}

/* ----------------------------------------------------------
   14. BACK TO TOP
---------------------------------------------------------- */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--maroon-dark), var(--maroon));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition), transform var(--transition);
    z-index: 999;
    box-shadow: 0 4px 18px rgba(139, 26, 26, .4);
}

.back-to-top.show {
    opacity: 1;
    pointer-events: auto;
}

.back-to-top:hover {
    transform: translateY(-3px);
    color: #fff;
}

/* ----------------------------------------------------------
   15. TOAST NOTIFICATION
---------------------------------------------------------- */
.toast-notify {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: linear-gradient(135deg, var(--maroon-dark), var(--maroon));
    color: #fff;
    font-weight: 700;
    padding: .9rem 1.6rem;
    border-radius: var(--radius);
    font-size: .88rem;
    box-shadow: 0 8px 30px rgba(139, 26, 26, .4);
    z-index: 9999;
    transform: translateY(30px);
    opacity: 0;
    transition: all .4s ease;
    display: flex;
    align-items: center;
    gap: .6rem;
}

.toast-notify.show {
    transform: translateY(0);
    opacity: 1;
}

/* ----------------------------------------------------------
   16. AOS-like Reveal Animations (CSS)
---------------------------------------------------------- */
[data-aos] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .7s ease, transform .7s ease;
}

[data-aos="fade-left"] {
    transform: translateX(30px);
}

[data-aos="fade-right"] {
    transform: translateX(-30px);
}

[data-aos="zoom-in"] {
    transform: scale(.92);
}

[data-aos].aos-visible {
    opacity: 1;
    transform: none;
}

/* ----------------------------------------------------------
   17. RESPONSIVE TWEAKS
---------------------------------------------------------- */

/* ── Tablet / collapsed navbar (≤ 991 px) ─────────────── */
@media (max-width: 991px) {

    /* Hamburger icon — visible on transparent navbar */
    .navbar-toggler {
        border-color: rgba(255, 255, 255, .45) !important;
        padding: .42rem .65rem;
    }

    .navbar-toggler-icon {
        filter: brightness(0) invert(1);
    }

    /* Mobile menu panel — dark glass overlay */
    .meis-navbar .navbar-collapse.show,
    .meis-navbar .navbar-collapse.collapsing {
        background: rgba(18, 7, 0, 0.97);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-top: 1px solid rgba(245, 192, 0, .22);
        border-radius: 0 0 14px 14px;
        padding: .65rem 1.25rem 1.25rem;
        margin-top: .45rem;
        box-shadow: 0 14px 40px rgba(0, 0, 0, .6);
    }

    /* Full-width nav links with subtle dividers */
    .meis-navbar .navbar-nav {
        gap: 0 !important;
    }

    .meis-navbar .nav-link {
        padding: .6rem 1rem !important;
        border-bottom: 1px solid rgba(255, 255, 255, .07);
        border-radius: 0 !important;
        display: flex !important;
        align-items: center;
    }

    /* Remove underline ::after effect inside mobile menu */
    .meis-navbar .navbar-collapse .nav-link::after {
        display: none !important;
    }

    /* Nav icon spacing (RTL: icon appears to the left of text) */
    .meis-navbar .navbar-collapse .nav-link i {
        margin-inline-end: .45rem;
        font-size: .85rem;
    }

    .meis-navbar .nav-item:last-child .nav-link {
        border-bottom: none;
    }

    /* Login button — full-width at bottom of expanded menu */
    .meis-navbar .navbar-collapse .btn-login {
        display: block !important;
        width: 100%;
        text-align: center;
        margin-inline-start: 0 !important;
        margin-top: .9rem;
        padding: .72rem 1rem;
    }

    .about-badge {
        left: 0;
        bottom: -16px;
    }
}

/* ── Mobile landscape (≤ 767 px) ──────────────────────── */
@media (max-width: 767px) {

    /* Hero */
    .hero-text {
        text-align: center;
    }

    .hero-title-main {
        font-size: clamp(2rem, 9vw, 3rem);
    }

    .hero-desc,
    .hero-btns {
        justify-content: center;
    }

    .hero-title-ar {
        text-align: center;
    }

    /* Remove vertical centering — prevents 100vh empty space on mobile */
    .hero-section {
        align-items: flex-start !important;
        min-height: auto !important;
        padding-top: 4.5rem;
        padding-bottom: 3rem;
    }

    .hero-section .row {
        min-height: auto !important;
        padding-top: 1rem !important;
        padding-bottom: 0 !important;
        align-items: flex-start !important;
    }

    /* CSS Grid — reliably 2 columns regardless of Bootstrap d-flex */
    .hero-stats {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: .75rem !important;
        margin-top: 1.5rem !important;
        /* override Bootstrap mt-5 (3rem !important) */
    }

    .stat-card {
        min-width: 0;
        width: 100%;
        padding: 1.2rem .9rem;
    }

    .stat-num {
        font-size: 1.9rem;
    }

    .stat-suffix {
        font-size: 1.2rem;
    }

    /* Sections — tighter vertical padding */
    .features-section,
    .about-section,
    .programs-section,
    .elearning-section,
    .admissions-section,
    .testimonials-section,
    .contact-section {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    /* Admission steps — vertical stack */
    .steps-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 1.25rem;
    }

    .step-item {
        min-width: 0;
        width: 100%;
        max-width: 300px;
    }

    .step-line {
        display: none;
    }
}

/* ── Small phones (≤ 575 px) ───────────────────────────── */
@media (max-width: 575px) {

    .meis-navbar .brand-ar {
        display: none;
    }

    /* Hero title — fits small screens */
    .hero-title-main {
        font-size: clamp(1.85rem, 8.5vw, 2.4rem);
    }

    /* CTA button — full width */
    .btn-hero-primary {
        width: 100%;
        justify-content: center;
    }

    /* Stat cards — tighter grid cells */
    .stat-card {
        width: 100%;
        padding: 1rem .65rem;
    }

    .stat-num {
        font-size: 1.65rem;
    }

    .stat-suffix {
        font-size: 1rem;
    }

    .stat-icon-wrap {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        margin-bottom: 0;
    }

    /* Section titles — scale down for small screens */
    .section-title {
        font-size: clamp(1.4rem, 7vw, 2rem);
    }

    /* Feature cards — less padding */
    .feature-card {
        padding: 1.6rem 1.2rem 1.4rem;
    }

    /* Legacy kept for safety */
    .hero-title-en {
        font-size: 1.8rem;
    }
}

/* ----------------------------------------------------------
   18. SECTION WAVE DIVIDERS
---------------------------------------------------------- */
.wave-div {
    display: block;
    width: 100%;
    line-height: 0;
    font-size: 0;
    overflow: hidden;
    margin-top: -2px;
    margin-bottom: 0;
    position: relative;
    z-index: 1;
    /* below the section so section covers any bottom bleed */
}

.wave-div svg {
    display: block;
    width: 100%;
    height: 72px;
    vertical-align: bottom;
}

/* Section/footer pulls UP over the wave-div bottom edge, covering any gap */
.wave-div+section,
.wave-div+footer {
    position: relative;
    z-index: 2;
    margin-top: -8px;
}

@media (max-width: 767px) {
    .wave-div svg {
        height: 46px;
    }
}

/* ── Bootstrap utility override ─────────────────────────── */
.text-gold {
    color: var(--gold-bright) !important;
}