:root {
    --primary: #1a4f8f;
    --primary-dark: #0b2b57;
    --primary-light: #2f8fd1;
    --teal: #17a3a0;
    --green: #5cb648;
    --accent: #f2a93b;
    --accent-2: #ff6b6b;
    --bg: #ffffff;
    --bg-alt: #f5f8fb;
    --text: #16233c;
    --muted: #5c6b80;
    --border: #e4e9f0;
    --radius: 18px;
    --shadow-sm: 0 2px 10px rgba(11, 43, 87, 0.07);
    --shadow-md: 0 16px 40px rgba(11, 43, 87, 0.14);
    --ease: cubic-bezier(.19,1,.22,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Sora', 'Inter', sans-serif;
    line-height: 1.2;
    margin-top: 0;
    letter-spacing: -0.02em;
}
a { color: var(--primary); }
img { max-width: 100%; }

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

section[id] { scroll-margin-top: 84px; }

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > * { opacity: 1; transform: translateY(0); }
.reveal-stagger > * {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.12s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.19s; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.26s; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.33s; }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 0.40s; }

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.82);
    backdrop-filter: blur(14px) saturate(160%);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.site-header.scrolled { border-bottom-color: var(--border); box-shadow: 0 6px 24px rgba(11,43,87,0.06); }
.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary-dark);
    text-decoration: none;
    font-family: 'Sora', sans-serif;
}
.brand img { height: 36px; width: auto; border-radius: 8px; }
.main-nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.main-nav a {
    position: relative;
    color: var(--text);
    text-decoration: none;
    font-size: 0.94rem;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 999px;
    transition: background 0.2s ease, color 0.2s ease;
}
.main-nav a:not(.btn-nav):hover { background: rgba(26,79,143,0.09); color: var(--primary); }
.btn-nav {
    background: var(--primary);
    color: #fff !important;
    padding: 10px 22px !important;
    border-radius: 999px;
    box-shadow: 0 6px 18px rgba(26,79,143,0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}
.btn-nav:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(26,79,143,0.4); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--primary-dark); margin: 5px 0; border-radius: 2px; transition: transform 0.25s ease, opacity 0.25s ease; }

/* Scroll progress bar */
.scroll-progress {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--teal), var(--accent));
    z-index: 200;
    transition: width 0.1s linear;
}

/* Hero */
.hero {
    position: relative;
    background: radial-gradient(120% 140% at 15% 0%, var(--teal) 0%, var(--primary-dark) 55%, #071b34 100%);
    color: #fff;
    padding: 130px 0 0;
    text-align: center;
    overflow: hidden;
    isolation: isolate;
}
.hero-inner { padding-bottom: 70px; }
.hero::before, .hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    z-index: -1;
    opacity: 0.55;
}
.hero::before {
    width: 420px; height: 420px;
    background: var(--accent);
    top: -160px; right: -100px;
    animation: float-a 14s ease-in-out infinite;
}
.hero::after {
    width: 320px; height: 320px;
    background: var(--primary-light);
    bottom: -140px; left: -80px;
    animation: float-b 16s ease-in-out infinite;
}
@keyframes float-a { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-30px, 30px) scale(1.1); } }
@keyframes float-b { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(25px, -20px) scale(1.08); } }

.hero-grid {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.14) 1px, transparent 1px);
    background-size: 26px 26px;
    -webkit-mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 75%);
    mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 75%);
    z-index: -1;
    pointer-events: none;
}
.hero-spotlight {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 20%), rgba(255,255,255,0.10), transparent 65%);
    transition: background 0.15s ease;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
    backdrop-filter: blur(6px);
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(242,169,59,0.3); }

.hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); margin-bottom: 16px; font-weight: 700; }
.hero h1 .accent-text {
    background: linear-gradient(90deg, var(--accent), #ffd6a0);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero .tagline { font-size: 1.2rem; opacity: 0.92; max-width: 680px; margin: 0 auto 36px; }

.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 60px; }
.btn-primary, .btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 15px 32px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}
.btn-primary {
    background: var(--accent);
    color: #0b2b57;
    box-shadow: 0 10px 30px rgba(242,169,59,0.35);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(242,169,59,0.45); }
.btn-ghost {
    background: rgba(255,255,255,0.08);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.35);
}
.btn-ghost:hover { background: rgba(255,255,255,0.18); transform: translateY(-3px); }

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 18px;
    max-width: 780px;
    margin: 0 auto;
}
.hero-stat {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 16px;
    padding: 18px 10px;
    backdrop-filter: blur(6px);
}
.hero-stat .num { font-family: 'Sora', sans-serif; font-size: 2rem; font-weight: 700; color: var(--accent); }
.hero-stat .label { font-size: 0.82rem; opacity: 0.85; margin-top: 4px; }

.wave-divider { display: block; width: 100%; height: 70px; margin-top: -2px; position: relative; z-index: 1; }
.wave-divider path { fill: var(--bg); }

/* Marquee strip */
.marquee {
    background: linear-gradient(90deg, var(--accent), #ffcb7a);
    color: var(--primary-dark);
    overflow: hidden;
    white-space: nowrap;
    padding: 14px 0;
    position: relative;
}
.marquee-track {
    display: inline-flex;
    align-items: center;
    gap: 40px;
    animation: marquee-scroll 28s linear infinite;
    will-change: transform;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 40px;
}
.marquee-track span::after { content: '✦'; opacity: 0.5; margin-left: 40px; }
@keyframes marquee-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Sections */
.section { padding: 88px 0; position: relative; }
.section.alt { background: var(--bg-alt); }
.eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary);
    background: rgba(26,79,143,0.1);
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 14px;
}
.section h2 {
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    color: var(--primary-dark);
    margin-bottom: 18px;
}
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.muted-text { color: var(--muted); margin-top: -12px; }

.two-col {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
    align-items: start;
}
@media (max-width: 800px) { .two-col { grid-template-columns: 1fr; } }

.vision-box {
    background: linear-gradient(160deg, #fff, #f2f8f5);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}
.vision-box::before {
    content: '';
    position: absolute;
    top: -40px; right: -40px;
    width: 140px; height: 140px;
    border-radius: 50%;
    background: rgba(242,169,59,0.15);
}
.vision-box h3 { color: var(--primary); margin-bottom: 8px; font-size: 1.05rem; }
.vision-box ul { padding-left: 0; margin: 0; list-style: none; }
.vision-box li {
    margin-bottom: 12px;
    padding-left: 28px;
    position: relative;
}
.vision-box li::before {
    content: '✓';
    position: absolute;
    left: 0; top: 0;
    width: 20px; height: 20px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    font-size: 0.7rem;
    display: flex; align-items: center; justify-content: center;
}

/* Card grid */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 22px;
}
.feature-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    transition: box-shadow 0.3s var(--ease), border-color 0.3s ease;
    position: relative;
    transform-style: preserve-3d;
    will-change: transform;
    overflow: hidden;
}
.feature-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(240px circle at var(--mx,50%) var(--my,50%), rgba(26,79,143,0.12), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.feature-card:hover { box-shadow: var(--shadow-md); border-color: rgba(26,79,143,0.25); }
.feature-card:hover::after { opacity: 1; }
.feature-icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 16px;
    color: #fff;
}
.feature-icon svg { width: 24px; height: 24px; }
.feature-card h3 { color: var(--primary-dark); font-size: 1.08rem; margin-bottom: 8px; }
.feature-card p { color: var(--muted); margin: 0; font-size: 0.95rem; }

/* Program tabs */
.tab-switch {
    display: inline-flex;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 5px;
    margin-bottom: 32px;
    box-shadow: var(--shadow-sm);
}
.tab-switch button {
    border: none;
    background: transparent;
    padding: 11px 26px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--muted);
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease;
    font-family: inherit;
}
.tab-switch button.active { background: var(--primary); color: #fff; }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fade-in 0.4s ease; }
@keyframes fade-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.program-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    min-width: 640px;
}
.program-table th, .program-table td {
    padding: 16px 18px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}
.program-table th {
    background: var(--primary-dark);
    color: #fff;
    font-weight: 600;
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.program-table tbody tr { transition: background 0.2s ease; }
.program-table tbody tr:hover { background: var(--bg-alt); }
.program-table tbody tr:last-child td { border-bottom: none; }
.program-table td:first-child { font-weight: 600; color: var(--primary-dark); }

/* Curriculum timeline */
.curriculum-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 22px;
}
.curriculum-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px;
    position: relative;
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s ease;
    overflow: hidden;
}
.curriculum-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(220px circle at var(--mx,50%) var(--my,50%), rgba(242,169,59,0.16), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.curriculum-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(242,169,59,0.35); }
.curriculum-card:hover::after { opacity: 1; }
.curriculum-num {
    width: 40px; height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent), #ffcb7a);
    color: #0b2b57;
    font-weight: 800;
    font-family: 'Sora', sans-serif;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 14px;
}
.curriculum-card h3 { font-size: 1.05rem; color: var(--primary-dark); margin-bottom: 6px; }
.curriculum-card p { color: var(--muted); margin: 0; font-size: 0.94rem; }

/* Advantage list */
.advantage-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}
.advantage-list li {
    background: #fff;
    border-radius: 14px;
    padding: 20px 20px 20px 54px;
    box-shadow: var(--shadow-sm);
    position: relative;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    font-weight: 500;
}
.advantage-list li:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.advantage-list li::before {
    content: '★';
    position: absolute;
    left: 18px; top: 18px;
    width: 26px; height: 26px;
    background: var(--accent);
    color: #0b2b57;
    border-radius: 50%;
    font-size: 0.75rem;
    display: flex; align-items: center; justify-content: center;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
}
.gallery-item {
    margin: 0;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    cursor: pointer;
    position: relative;
}
.gallery-item img { width: 100%; height: 190px; object-fit: cover; display: block; transition: transform 0.4s var(--ease); }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item .zoom-hint {
    position: absolute; inset: 0;
    background: rgba(11,43,87,0.35);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 600; font-size: 0.85rem;
}
.gallery-item:hover .zoom-hint { opacity: 1; }
.gallery-item figcaption { padding: 12px 14px; font-size: 0.88rem; color: var(--muted); }

.lightbox {
    position: fixed; inset: 0;
    background: rgba(10,20,18,0.9);
    display: none;
    align-items: center; justify-content: center;
    z-index: 999;
    padding: 40px;
    backdrop-filter: blur(4px);
}
.lightbox.open { display: flex; animation: fade-in 0.25s ease; }
.lightbox img { max-width: 90vw; max-height: 80vh; border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.lightbox .lb-caption { color: #fff; text-align: center; margin-top: 14px; font-size: 0.9rem; opacity: 0.85; }
.lightbox-close {
    position: absolute; top: 24px; right: 30px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff; width: 42px; height: 42px; border-radius: 50%;
    font-size: 1.3rem; cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: background 0.2s ease;
}
.lightbox-close:hover { background: rgba(255,255,255,0.25); }

/* Contact */
.contact-section { background: linear-gradient(135deg, var(--primary-dark), #082247); color: #fff; }
.contact-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 40px;
    align-items: center;
}
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-section h2 { color: #fff; }
.contact-section .eyebrow { background: rgba(255,255,255,0.12); color: #fff; }
.contact-section p { opacity: 0.9; }
.contact-info {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: var(--radius);
    padding: 28px;
    backdrop-filter: blur(6px);
}
.contact-info .row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.12);
}
.contact-info .row:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.contact-info .icon {
    width: 38px; height: 38px; flex-shrink: 0;
    background: rgba(242,169,59,0.2);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: var(--accent);
}
.contact-info .icon svg { width: 18px; height: 18px; }
.contact-info a { color: #fff; text-decoration: none; }
.contact-info a:hover { text-decoration: underline; }
.contact-info strong { display: block; font-size: 0.78rem; opacity: 0.7; font-weight: 500; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 2px; }

.site-footer {
    background: #081b33;
    color: #9fc2b8;
    text-align: center;
    padding: 26px 0;
    font-size: 0.88rem;
}

/* Back to top */
.back-to-top {
    position: fixed;
    bottom: 28px; right: 28px;
    width: 48px; height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 26px rgba(26,79,143,0.4);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    z-index: 90;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--primary-dark); }

/* Mobile nav */
@media (max-width: 860px) {
    .nav-toggle { display: block; }
    .main-nav {
        position: fixed;
        top: 64px; left: 0; right: 0;
        background: #fff;
        flex-direction: column;
        align-items: stretch;
        padding: 12px 20px 20px;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-md);
        transform: translateY(-12px);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.25s ease, transform 0.25s ease;
    }
    .main-nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
    .main-nav a { padding: 12px 14px; }
    .btn-nav { text-align: center; margin-top: 6px; }
}
