/* =====================================================
   Bloom American International School (BAIS)
   Main Stylesheet – Production Version
   Version: 1.0.0
   ===================================================== */

/* ============================================
   0. Skip Link – Accessibility
   ============================================ */
.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    background: var(--color-primary);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.95rem;
    z-index: 9999;
    transition: top 0.2s ease;
    text-decoration: none;
}
.skip-link:focus {
    top: 1rem;
    outline: 3px solid var(--color-green);
    outline-offset: 2px;
}

/* ============================================
   0b. Focus visible styles – Keyboard nav
   ============================================ */
:focus-visible {
    outline: 3px solid var(--color-green);
    outline-offset: 3px;
    border-radius: var(--radius-sm);
}

/* Steps timeline: support both <ol> and <div> wrappers */
.steps-timeline {
    list-style: none;
    padding-left: 0;
}

/* ============================================
   1. CSS Variables – Theme Configuration
   Colors extracted from the BAIS logo
   ============================================ */
:root {
    /* Navy Blue – from the shield */
    --color-primary: #14305A;
    --color-primary-light: #1F4480;
    --color-primary-soft: #3A6BB0;
    
    /* Forest Green – from the shield */
    --color-green: #287642;
    --color-green-light: #3D9457;
    --color-green-soft: #E8F2EC;
    
    /* Gold accent – subtle warmth */
    --color-gold: #C9A227;
    --color-gold-soft: #FAF3DC;
    
    /* Neutrals */
    --color-bg: #FFFFFF;
    --color-bg-alt: #F8F7F2;
    --color-bg-dark: #0A1F3D;
    
    --color-text: #1A1F2E;
    --color-text-muted: #5A6378;
    --color-border: #E5E3DC;
    
    /* Typography */
    --font-body: 'DM Sans', 'Segoe UI', system-ui, sans-serif;
    --font-display: 'Cormorant Garamond', Georgia, serif;
    
    /* Spacing */
    --container-max: 1280px;
    --section-padding: clamp(4rem, 8vw, 7rem);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 999px;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(20, 48, 90, 0.06);
    --shadow-md: 0 8px 24px rgba(20, 48, 90, 0.08);
    --shadow-lg: 0 20px 50px rgba(20, 48, 90, 0.12);
    --shadow-xl: 0 30px 80px rgba(20, 48, 90, 0.18);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   2. Base Reset
   ============================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 20px;
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-bg);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

ul { list-style: none; }

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--color-bg-alt); }
::-webkit-scrollbar-thumb { background: var(--color-primary-light); border-radius: var(--radius-full); }
::-webkit-scrollbar-thumb:hover { background: var(--color-primary); }

/* ============================================
   3. Utilities
   ============================================ */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
}

.section {
    padding: var(--section-padding) 0;
    position: relative;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.85rem 1.75rem;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1.15rem;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-base);
    border: 2px solid transparent;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--color-green);
    color: #fff;
    border-color: var(--color-green);
}

.btn-primary:hover {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-ghost {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #fff;
    transform: translateY(-2px);
}

.btn-lg { padding: 1.1rem 2.2rem; font-size: 1.2rem; }
.btn-sm { padding: 0.6rem 1.3rem; font-size: 0.85rem; }
.btn-block { display: flex; width: 100%; }

/* Section Headers */
.section-header {
    text-align: center;
    max-width: 780px;
    margin: 0 auto 4rem;
}

.section-eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--color-green);
    text-transform: uppercase;
    margin-bottom: 1rem;
    position: relative;
    padding: 0 2rem;
}

.section-eyebrow::before,
.section-eyebrow::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 1.2rem;
    height: 1px;
    background: var(--color-green);
}
.section-eyebrow::before { left: 0; }
.section-eyebrow::after { right: 0; }

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--color-primary);
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

.section-lead {
    font-size: 1.35rem;
    color: var(--color-text-muted);
    line-height: 1.85;
}

.section-lead strong {
    color: var(--color-primary);
    font-weight: 700;
}

/* Sub-header */
.section-subheader {
    text-align: center;
    margin: 5rem 0 3rem;
}

.subheader-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.75vw, 2.75rem);
    font-weight: 700;
    color: var(--color-primary);
}

.subheader-title span {
    color: var(--color-green);
    position: relative;
    display: inline-block;
}

.subheader-title span::after {
    content: '';
    position: absolute;
    bottom: -0.15em;
    left: 0;
    right: 0;
    height: 0.15em;
    background: var(--color-green);
    opacity: 0.25;
    border-radius: var(--radius-full);
}

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   4. Navbar
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0.75rem 0;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    transition: all var(--transition-base);
}

.navbar.scrolled {
    padding: 0.4rem 0;
    background: rgba(255, 255, 255, 0.98);
    border-bottom-color: var(--color-border);
    box-shadow: var(--shadow-md);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    transition: transform var(--transition-base);
}

.logo:hover { transform: scale(1.02); }

.logo-img {
    height: 70px;
    width: auto;
    transition: height var(--transition-base);
    mix-blend-mode: multiply;
}

.navbar.scrolled .logo-img { height: 55px; }

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-menu > ul {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    font-weight: 600;
    font-size: 1.15rem;
    color: var(--color-text);
    position: relative;
    padding: 0.5rem 0;
    transition: color var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--color-green);
    transition: width var(--transition-base);
}

.nav-link:hover,
.nav-link.active { color: var(--color-primary); }

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

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 32px;
    padding: 6px;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--color-primary);
    border-radius: 2px;
    transition: all var(--transition-base);
    transform-origin: center;
}

.menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================
   5. Hero Section
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    color: #fff;
    overflow: hidden;
    padding-top: 110px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-color: var(--color-primary);
    z-index: 0;
    animation: heroZoom 25s ease-in-out infinite alternate;
}

@keyframes heroZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.08); }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(10, 31, 61, 0.96) 0%,
        rgba(20, 48, 90, 0.88) 40%,
        rgba(40, 118, 66, 0.65) 100%
    );
    z-index: 1;
}

.hero-decor {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.25;
    z-index: 1;
    pointer-events: none;
}

.decor-1 {
    width: 500px;
    height: 500px;
    background: var(--color-green);
    top: -100px;
    right: -100px;
    animation: float 12s ease-in-out infinite;
}

.decor-2 {
    width: 400px;
    height: 400px;
    background: var(--color-primary-soft);
    bottom: -100px;
    left: -100px;
    animation: float 15s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(50px, -50px) scale(1.1); }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 920px;
    padding-top: 2rem;
    padding-bottom: 6rem;
}

/* Opening badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.55rem 1.25rem;
    background: rgba(40, 118, 66, 0.2);
    border: 1px solid rgba(61, 148, 87, 0.5);
    color: #B8E5C5;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-bottom: 1.75rem;
    backdrop-filter: blur(10px);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: #4CD68B;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(76, 214, 139, 0.5);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(76, 214, 139, 0.6); }
    70% { box-shadow: 0 0 0 10px rgba(76, 214, 139, 0); }
    100% { box-shadow: 0 0 0 0 rgba(76, 214, 139, 0); }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 6.5vw, 5.5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

.title-accent {
    color: #6CC787;
    position: relative;
    display: inline-block;
    font-style: italic;
}

.title-accent::after {
    content: '';
    position: absolute;
    bottom: 0.05em;
    left: 0;
    width: 100%;
    height: 0.12em;
    background: #6CC787;
    opacity: 0.4;
    border-radius: var(--radius-full);
}

.hero-desc {
    font-size: clamp(1.2rem, 1.8vw, 1.45rem);
    line-height: 1.85;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    max-width: 720px;
}

.hero-desc strong {
    color: #fff;
    font-weight: 700;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 4rem;
}

/* Stats */
.hero-stats {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-number {
    font-family: 'DM Sans', system-ui, sans-serif;
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    font-weight: 700;
    color: #6CC787;
    line-height: 1;
    display: inline-block;
    font-variant-numeric: lining-nums;
}

.stat-suffix {
    font-family: 'DM Sans', system-ui, sans-serif;
    font-size: clamp(2rem, 3.75vw, 2.75rem);
    font-weight: 600;
    color: #6CC787;
    line-height: 1;
    font-variant-numeric: lining-nums;
}

.stat-label {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.75);
}

.stat-divider {
    width: 1px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    z-index: 3;
    transition: all var(--transition-base);
}

.scroll-indicator:hover { border-color: var(--color-green-light); }

.scroll-indicator span {
    display: block;
    width: 4px;
    height: 8px;
    background: #6CC787;
    border-radius: 2px;
    margin: 8px auto;
    animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(20px); opacity: 0; }
}

/* ============================================
   6. About Section
   ============================================ */
.about {
    background: var(--color-bg-alt);
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--color-green-soft), transparent);
    border-radius: 50%;
    pointer-events: none;
}

/* ★ BLOOM Acronym ★ */
.bloom-acronym {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 50%, var(--color-green) 100%);
    border-radius: var(--radius-lg);
    padding: 3.5rem 2.5rem;
    margin: 0 auto 5rem;
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.bloom-acronym::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(108, 199, 135, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(50%, -50%);
}

.bloom-acronym::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(58, 107, 176, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, 50%);
}

.acronym-header {
    position: relative;
    z-index: 1;
    margin-bottom: 2.5rem;
}

.acronym-eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    color: #6CC787;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.acronym-header h3 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.75vw, 2.85rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}

.acronym-header h3 em {
    font-style: italic;
    color: #6CC787;
    letter-spacing: 0.08em;
}

.acronym-header p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.15rem;
}

.acronym-letters {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 1;
}

.letter-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    padding: 1.75rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    transition: all var(--transition-base);
    cursor: default;
    position: relative;
    overflow: hidden;
}

.letter-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--color-green-light), transparent);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.letter-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(108, 199, 135, 0.4);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.letter-card:hover::before { opacity: 0.2; }

.letter-card > * {
    position: relative;
    z-index: 1;
}

.letter {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    color: #6CC787;
    line-height: 1;
}

.word-en {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.02em;
}

.acronym-tagline {
    position: relative;
    z-index: 1;
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 2.4vw, 1.9rem);
    font-weight: 600;
    color: #fff;
    font-style: italic;
    letter-spacing: 0.02em;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

/* About Cards */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 5rem;
}

.about-card {
    background: #fff;
    padding: 2.5rem 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all var(--transition-base);
    border: 1px solid var(--color-border);
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--color-green), var(--color-primary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-slow);
}

.about-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

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

.about-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-green-soft), #fff);
    border-radius: 50%;
    color: var(--color-primary);
    transition: all var(--transition-base);
}

.about-icon svg { width: 32px; height: 32px; }

.about-card:hover .about-icon {
    background: linear-gradient(135deg, var(--color-green), var(--color-green-light));
    color: #fff;
    transform: rotate(-10deg) scale(1.05);
}

.about-card h3 {
    font-family: var(--font-display);
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.75rem;
}

.about-card p {
    color: var(--color-text-muted);
    line-height: 1.8;
}

/* Quote */
.about-quote {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 2.5rem;
    position: relative;
}

.about-quote::before {
    content: '\201C';
    position: absolute;
    top: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-display);
    font-size: 6rem;
    color: var(--color-green);
    opacity: 0.3;
    line-height: 1;
}

.about-quote p {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 2.4vw, 1.8rem);
    font-weight: 500;
    color: var(--color-primary);
    line-height: 1.6;
    font-style: italic;
    margin-bottom: 1rem;
}

.about-quote cite {
    font-size: 0.95rem;
    color: var(--color-green);
    font-weight: 700;
    font-style: normal;
    letter-spacing: 0.05em;
}

/* ============================================
   7. Academics Section
   ============================================ */
.academics { background: var(--color-bg); }

.academics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.75rem;
}

.stage-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2.25rem;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.stage-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--color-green-soft) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(50%, -50%);
    opacity: 0;
    transition: opacity var(--transition-slow);
}

.stage-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--color-green);
}

.stage-card:hover::before { opacity: 1; }

/* Featured Card */
.stage-card.featured {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    color: #fff;
    border-color: var(--color-primary);
    transform: scale(1.02);
}

.stage-card.featured:hover {
    transform: scale(1.02) translateY(-8px);
}

.stage-card.featured::before {
    background: radial-gradient(circle, rgba(108, 199, 135, 0.2) 0%, transparent 70%);
    opacity: 1;
}

.featured-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: var(--color-green);
    color: #fff;
    padding: 0.4rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(40, 118, 66, 0.3);
}

.stage-header {
    margin-bottom: 1.25rem;
    position: relative;
    z-index: 1;
}

.stage-grade {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-green);
    background: var(--color-green-soft);
    padding: 0.3rem 0.85rem;
    border-radius: var(--radius-full);
    margin-bottom: 0.85rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.stage-card.featured .stage-grade {
    background: rgba(108, 199, 135, 0.2);
    color: #B8E5C5;
}

.stage-header h3 {
    font-family: var(--font-display);
    font-size: 1.95rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.2;
}

.stage-card.featured .stage-header h3 { color: #fff; }

.stage-desc {
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.75;
    position: relative;
    z-index: 1;
    font-size: 1.15rem;
}

.stage-card.featured .stage-desc { color: rgba(255, 255, 255, 0.85); }

.stage-features {
    list-style: none;
    margin-top: auto;
    position: relative;
    z-index: 1;
}

.stage-features li {
    padding: 0.65rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--color-text);
    font-size: 1.1rem;
    border-top: 1px solid var(--color-border);
}

.stage-features li:first-child { border-top: none; }

.stage-features li::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 8px;
    height: 8px;
    background: var(--color-green);
    border-radius: 50%;
    transform: translateY(-50%);
}

.stage-card.featured .stage-features li {
    color: rgba(255, 255, 255, 0.9);
    border-top-color: rgba(255, 255, 255, 0.15);
}

.stage-card.featured .stage-features li::before { background: #6CC787; }

/* Academic Features */
.academics-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    padding: 3.5rem;
    background: var(--color-bg-alt);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
}

.feature-item { text-align: center; }

.feature-num {
    font-family: 'DM Sans', system-ui, sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-green);
    line-height: 1;
    margin-bottom: 0.85rem;
    display: inline-block;
    position: relative;
    font-variant-numeric: lining-nums;
}

.feature-num::after {
    content: '';
    display: block;
    width: 30px;
    height: 2px;
    background: var(--color-primary);
    margin: 0.5rem auto 0;
}

.feature-item h4 {
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.feature-item p {
    color: var(--color-text-muted);
    font-size: 1.15rem;
    line-height: 1.7;
}

/* ============================================
   8. Admissions Section
   ============================================ */
.admissions {
    background: var(--color-bg-alt);
    position: relative;
    overflow: hidden;
}

.steps-timeline {
    max-width: 760px;
    margin: 0 auto 4rem;
    position: relative;
    padding-left: 0;
}

/* Vertical connector line – runs through the center of the number circles (30px = half of 60px circle) */
.steps-timeline::before {
    content: '';
    position: absolute;
    top: 30px;           /* start at center of first circle */
    bottom: 30px;        /* end at center of last circle   */
    left: 30px;          /* horizontally centered on the 60px circles */
    width: 2px;
    background: linear-gradient(180deg, var(--color-green) 0%, var(--color-primary) 100%);
    opacity: 0.25;
}

.step-item {
    display: flex;       /* number + body sit side-by-side in the flex row */
    gap: 1.75rem;
    align-items: flex-start;
    margin-bottom: 2rem;
    position: relative;
}

.step-number {
    /* Flex child – stays in flow, never overlaps step-body */
    width: 60px;
    height: 60px;
    min-width: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-green), var(--color-green-light));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'DM Sans', system-ui, sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 0 0 6px var(--color-bg-alt), 0 0 0 7px var(--color-border);
    transition: all var(--transition-base);
    position: relative;  /* keeps it in the flex flow */
    z-index: 1;          /* sits above the ::before line */
}

.step-item:hover .step-number {
    transform: scale(1.1) rotate(8deg);
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
}

.step-body {
    background: #fff;
    padding: 1.75rem 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    transition: all var(--transition-base);
    flex: 1;
}

.step-body:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.step-body h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.step-body p {
    color: var(--color-text-muted);
    line-height: 1.7;
    font-size: 1.15rem;
}

/* CTA Box */
.admission-cta {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 60%, var(--color-green) 100%);
    color: #fff;
    padding: 3.5rem;
    border-radius: var(--radius-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.admission-cta::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--color-green-light) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0.3;
}

.cta-content {
    flex: 1;
    min-width: 280px;
    position: relative;
    z-index: 1;
}

.cta-eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: #6CC787;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.cta-content h3 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.75vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.15rem;
}

.cta-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

/* ============================================
   9. Footer
   ============================================ */
.footer {
    background: var(--color-bg-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 5rem 0 0;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-green) 0%, var(--color-primary-soft) 50%, var(--color-green) 100%);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.3fr 1.2fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-col h4 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--color-green-light);
}

/* Logo in footer */
.footer-brand {
    max-width: 360px;
}

.footer-logo-wrap {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.footer-logo {
    height: 100px;
    width: auto;
    display: block;
}

.footer-tagline {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.1rem;
    color: #6CC787;
    margin-bottom: 1rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.footer-about {
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 1.75rem;
    color: rgba(255, 255, 255, 0.7);
}

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

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.8);
    transition: all var(--transition-base);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link svg { width: 18px; height: 18px; }

.social-link:hover {
    background: var(--color-green);
    color: #fff;
    border-color: var(--color-green);
    transform: translateY(-3px);
}

/* Quick Links */
.footer-links li { margin-bottom: 0.75rem; }

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.15rem;
    position: relative;
    padding-left: 1rem;
    transition: all var(--transition-fast);
}

.footer-links a::before {
    content: '\2192';
    position: absolute;
    left: 0;
    color: var(--color-green-light);
    opacity: 0;
    transform: translateX(-5px);
    transition: all var(--transition-base);
}

.footer-links a:hover {
    color: var(--color-green-light);
    padding-left: 1.5rem;
}

.footer-links a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

/* Contact Info */
.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    margin-bottom: 1.1rem;
    font-size: 0.93rem;
    line-height: 1.6;
}

.footer-contact svg {
    width: 20px;
    height: 20px;
    color: var(--color-green-light);
    flex-shrink: 0;
    margin-top: 3px;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition-fast);
    word-break: break-all;
}

.footer-contact a:hover { color: var(--color-green-light); }

/* Working Hours */
.footer-hours li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.7rem 0;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-hours li:last-of-type { border-bottom: none; }

.hours-time {
    color: var(--color-green-light);
    font-weight: 600;
    font-size: 0.9rem;
}

.hours-closed { color: #ff8a8a; }

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.75rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-bottom strong { color: #fff; font-weight: 700; }

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.6);
    transition: color var(--transition-fast);
}

.footer-bottom-links a:hover { color: var(--color-green-light); }

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-base);
    border: 2px solid var(--color-green-light);
}

.back-to-top svg { width: 22px; height: 22px; }

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--color-green);
    transform: translateY(-5px);
}

/* ============================================
   10. Responsive Design
   ============================================ */

/* Tablets */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
    .academics-features { padding: 2.5rem; }
    .acronym-letters { gap: 0.6rem; }
    .letter-card { padding: 1.25rem 0.5rem; }
}

/* Small Tablets / Large Phones */
@media (max-width: 900px) {
    .logo-img { height: 55px; }
    .navbar.scrolled .logo-img { height: 48px; }
    
    .menu-toggle { display: flex; }
    
    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 85%;
        max-width: 360px;
        height: 100vh;
        background: #fff;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        padding: 6rem 2rem 2rem;
        gap: 0;
        transition: left var(--transition-base);
        box-shadow: 10px 0 50px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
    }
    
    .nav-menu.active { left: 0; }
    
    .nav-menu > ul {
        flex-direction: column;
        gap: 0;
        width: 100%;
        align-items: stretch;
    }
    
    .nav-menu > ul li { border-bottom: 1px solid var(--color-border); }
    
    .nav-link {
        display: block;
        padding: 1rem 0;
        font-size: 1.05rem;
    }
    
    .nav-link::after { display: none; }
    
    .nav-cta {
        margin-top: 1.5rem;
        text-align: center;
        justify-content: center;
    }
    
    .acronym-letters { gap: 0.4rem; }
    .letter-card { padding: 1rem 0.3rem; gap: 0.35rem; }
    .letter { font-size: 2rem; }
    .word-en { font-size: 0.8rem; }
    
    .hero-stats { flex-wrap: wrap; gap: 1.5rem; }
    .stat-divider { display: none; }
    .stat-item { flex: 0 0 calc(50% - 0.75rem); }
}

/* Phones */
@media (max-width: 600px) {
    .container { padding: 0 1.25rem; }
    
    .hero { padding-top: 90px; min-height: auto; }
    .hero-content { padding-top: 1.5rem; padding-bottom: 4rem; }
    .hero-badge { font-size: 0.8rem; padding: 0.5rem 1rem; }
    
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .hero-actions .btn { justify-content: center; }
    
    .bloom-acronym { padding: 2.5rem 1.5rem; }
    .acronym-letters { gap: 0.3rem; }
    .letter-card { padding: 0.85rem 0.2rem; gap: 0.25rem; }
    .letter { font-size: 1.6rem; }
    .word-en { font-size: 0.65rem; text-align: center; line-height: 1.1; }
    
    .stage-card.featured { transform: none; }
    .stage-card.featured:hover { transform: translateY(-8px); }
    .featured-badge { position: static; display: inline-block; margin-bottom: 1rem; }
    
    .steps-timeline { padding-left: 0; }
    .step-number { width: 50px; height: 50px; min-width: 50px; font-size: 1.25rem; }
    .steps-timeline::before { left: 25px; } /* re-center line on 50px circle */
    
    .admission-cta { padding: 2.5rem 1.75rem; text-align: center; }
    .cta-actions { justify-content: center; width: 100%; }
    .cta-actions .btn { flex: 1; min-width: 140px; justify-content: center; }
    
    .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .footer-logo { height: 80px; }
    .footer-bottom { flex-direction: column; text-align: center; gap: 1rem; }
    
    .section { padding: 4rem 0; }
    .section-header { margin-bottom: 3rem; }
    .about-card, .stage-card { padding: 2rem 1.5rem; }
    .academics-features { padding: 2rem 1.5rem; }
    
    .back-to-top { bottom: 1.25rem; right: 1.25rem; width: 44px; height: 44px; }
}

@media (max-width: 380px) {
    .hero-stats { gap: 1rem; }
    .stat-item { flex: 0 0 100%; }
    .footer-bottom-links { flex-direction: column; gap: 0.5rem; }
}

/* ============================================
   11. Reduced Motion & Accessibility
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .hero-bg { animation: none; }
    .reveal { opacity: 1; transform: none; }
}
