/* ===================================================================
   WISDOM HILL ACADEMY — Editorial & Animated Public Website Stylesheet
   Design Inspiration: IPMC Training Editorial Motion System
   Palette: Deep Oxford Navy (#071b3f / #083b7a), Imperial Gold (#f4b400 / #facc15), Warm Ivory (#f9f7f2)
   =================================================================== */

:root {
    --bg: #f9f7f2;
    --bg-alt: #f2ede3;
    --surface: #ffffff;
    --ink: #0f172a;
    --muted: #525866;
    --line: #e4ddd0;
    --navy-deep: #061636;
    --navy: #083b7a;
    --navy-mid: #0f2b59;
    --gold: #eab308;
    --gold-bright: #facc15;
    --gold-deep: #b45309;
    --gold-soft: #fef9c3;
    --r: 18px;
    --r-lg: 28px;
    --r-full: 999px;
    --shadow: 0 24px 60px -20px rgba(7, 27, 63, 0.16);
    --shadow-sm: 0 6px 20px -8px rgba(7, 27, 63, 0.1);
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: clip;
    max-width: 100%;
}

body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.65;
    overflow-x: clip;
    max-width: 100%;
}

h1, h2, h3, .serif-heading {
    font-family: 'Fraunces', Georgia, serif;
    letter-spacing: -0.02em;
}

a {
    color: inherit;
    text-decoration: none;
}

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

.wrap {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===================================================================
   SCROLL REVEAL ANIMATION SYSTEM
   =================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.65s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.65s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}

/* ===================================================================
   1. STICKY GLASSMORPHISM NAVBAR + FULLSCREEN EDITORIAL DRAWER
   =================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(249, 247, 242, 0.86);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    transition: box-shadow 0.25s ease, background 0.25s ease;
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 8px 30px -12px rgba(7, 27, 63, 0.14);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    height: 76px;
}

.brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    flex-shrink: 0;
}

.brand-crest-box {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid var(--line);
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

.brand-crest-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-title {
    font-size: 15.5px;
    font-weight: 800;
    color: var(--navy-deep);
    letter-spacing: 0.015em;
}

.brand-sub {
    font-size: 11px;
    font-weight: 600;
    color: var(--gold-deep);
    font-style: italic;
}

.nav-center {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-pill-link {
    padding: 8px 14px;
    border-radius: var(--r-full);
    font-size: 13.5px;
    font-weight: 600;
    color: #334155;
    transition: background-color 0.18s ease, color 0.18s ease;
    white-space: nowrap;
}

.nav-pill-link:hover,
.nav-pill-link.active {
    background: rgba(8, 59, 122, 0.09);
    color: var(--navy);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.btn-login-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--r-full);
    background: linear-gradient(125deg, var(--navy) 0%, var(--navy-deep) 100%);
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
    box-shadow: 0 10px 26px -8px rgba(8, 59, 122, 0.55);
    transition: transform 0.2s ease, box-shadow 0.25s ease, color 0.2s ease;
    white-space: nowrap;
}

.btn-login-pill i {
    color: var(--gold-bright);
    font-size: 12px;
}

.btn-login-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px -8px rgba(8, 59, 122, 0.72);
    color: #fef08a;
}

.menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 16px;
    border-radius: var(--r-full);
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--ink);
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.menu-toggle:hover {
    border-color: var(--navy);
    transform: translateY(-1px);
}

.mt-icon {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-end;
}

.mt-icon i {
    display: block;
    height: 2px;
    border-radius: 2px;
    background: var(--navy-deep);
    transition: width 0.25s ease;
}

.mt-icon i:nth-child(1) { width: 20px; }
.mt-icon i:nth-child(2) { width: 13px; }

.menu-toggle:hover .mt-icon i:nth-child(2) {
    width: 20px;
}

/* Fullscreen Editorial Modal Drawer */
.fullscreen-menu {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: linear-gradient(135deg, #061636 0%, #083b7a 60%, #0f2b59 100%);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 28px max(24px, calc((100vw - 1240px) / 2 + 24px)) 36px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity 0.32s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0.32s, transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
    overflow-y: auto;
}

.fullscreen-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.fm-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.fm-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.fm-brand img {
    width: 44px;
    height: 44px;
    background: #ffffff;
    padding: 4px;
    border-radius: 10px;
}

.fm-close {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 18px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.fm-close:hover {
    background: var(--gold);
    color: var(--navy-deep);
    transform: rotate(90deg);
}

.fm-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px;
    padding: 36px 0;
    align-items: center;
}

.fm-main {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fm-link {
    font-family: 'Fraunces', Georgia, serif;
    font-size: clamp(26px, 3.2vw, 40px);
    font-weight: 700;
    color: #ffffff;
    padding: 4px 0;
    transition: padding-left 0.24s ease, color 0.24s ease;
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.fm-link:hover {
    padding-left: 12px;
    color: var(--gold-bright);
}

.fm-link small {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: rgba(250, 204, 21, 0.78);
}

.fm-side {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 22px;
    padding: 28px;
}

.fm-side h4 {
    margin: 0 0 12px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gold-bright);
}

.fm-subs {
    display: grid;
    gap: 10px;
    margin-bottom: 22px;
}

.fm-sub-link {
    font-size: 15px;
    font-weight: 600;
    color: #e2e8f0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.18s ease, color 0.18s ease;
}

.fm-sub-link:hover {
    transform: translateX(4px);
    color: var(--gold-bright);
}

.fm-cta-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.fm-btn-gold {
    padding: 12px 20px;
    border-radius: var(--r-full);
    background: var(--gold);
    color: var(--navy-deep);
    font-weight: 800;
    font-size: 13.5px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.fm-btn-outline {
    padding: 12px 20px;
    border-radius: var(--r-full);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #ffffff;
    font-weight: 700;
    font-size: 13.5px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.fm-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 13px;
    color: #cbd5e1;
}

/* ===================================================================
   2. EDITORIAL SPLIT HERO + ROTATING HEADLINE + ORBITING BADGES
   =================================================================== */
.hero-section {
    padding: 58px 0 64px;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 85% 15%, rgba(250, 204, 21, 0.16) 0%, transparent 45%),
        radial-gradient(circle at 12% 85%, rgba(8, 59, 122, 0.08) 0%, transparent 50%),
        var(--bg);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.12fr 0.88fr;
    gap: 48px;
    align-items: center;
}

.eyebrow-pill {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 7px 15px;
    border-radius: var(--r-full);
    background: rgba(8, 59, 122, 0.08);
    border: 1px solid rgba(8, 59, 122, 0.16);
    color: var(--navy);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 0 0 rgba(234, 179, 8, 0.7);
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(234, 179, 8, 0.7); }
    70% { box-shadow: 0 0 0 9px rgba(234, 179, 8, 0); }
    100% { box-shadow: 0 0 0 0 rgba(234, 179, 8, 0); }
}

.hero-rotator-box {
    min-height: 158px;
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.hero-headline {
    margin: 0;
    font-size: clamp(32px, 4.1vw, 52px);
    font-weight: 700;
    line-height: 1.1;
    color: var(--navy-deep);
    transition: opacity 0.42s ease, transform 0.42s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero-headline.is-changing {
    opacity: 0;
    transform: translateY(10px);
}

.hero-headline .highlight {
    color: var(--navy);
    background: linear-gradient(180deg, transparent 62%, rgba(250, 204, 21, 0.45) 62%);
    padding: 0 4px;
}

.hero-lead {
    margin: 0 0 28px;
    font-size: 17px;
    color: var(--muted);
    max-width: 575px;
    line-height: 1.72;
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 28px;
}

.btn-primary-glow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: var(--r-full);
    background: linear-gradient(125deg, var(--navy) 0%, var(--navy-deep) 100%);
    color: #ffffff;
    font-size: 14.5px;
    font-weight: 700;
    box-shadow: 0 12px 28px -10px rgba(8, 59, 122, 0.6);
    transition: transform 0.22s ease, box-shadow 0.28s ease;
}

.btn-primary-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 40px -10px rgba(8, 59, 122, 0.78);
    color: #fef08a;
}

.btn-ghost-editorial {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 26px;
    border-radius: var(--r-full);
    background: transparent;
    border: 1.5px solid var(--line);
    color: var(--navy-deep);
    font-size: 14.5px;
    font-weight: 700;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn-ghost-editorial:hover {
    background: var(--surface);
    border-color: var(--navy);
    transform: translateY(-2px);
}

.hero-proof-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--navy-mid);
    margin-bottom: 18px;
}

.hero-proof-strip span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.hero-proof-strip i {
    color: var(--gold-deep);
}

.hero-pills-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.micro-pill {
    padding: 6px 13px;
    border-radius: var(--r-full);
    background: var(--surface);
    border: 1px solid var(--line);
    font-size: 12px;
    font-weight: 600;
    color: #334155;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.micro-pill:hover {
    transform: translateY(-2px);
    border-color: var(--gold);
}

/* Right Column Hero Visual + Floating Orbit Badges */
.hero-visual-stage {
    position: relative;
    padding: 18px;
}

.hero-photo-frame {
    position: relative;
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 4px solid var(--surface);
    aspect-ratio: 4 / 4.35;
    background: var(--navy-deep);
}

.hero-photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.8s ease;
}

.hero-visual-stage:hover .hero-photo-frame img {
    transform: scale(1.04);
}

.hero-photo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(6, 22, 54, 0.06) 45%, rgba(6, 22, 54, 0.82) 100%);
    display: flex;
    align-items: flex-end;
    padding: 24px;
    color: #ffffff;
}

.hero-photo-caption strong {
    display: block;
    font-family: 'Fraunces', serif;
    font-size: 20px;
}

.hero-photo-caption span {
    font-size: 13px;
    color: #fde047;
    font-weight: 600;
}

.orbit-badge {
    position: absolute;
    z-index: 3;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 10px 14px;
    box-shadow: 0 14px 35px -10px rgba(7, 27, 63, 0.22);
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 225px;
}

.orbit-badge .orbit-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--navy), var(--navy-deep));
    color: #fde047;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}

.orbit-badge strong {
    display: block;
    font-size: 12.5px;
    color: var(--navy-deep);
    line-height: 1.2;
}

.orbit-badge > div > span {
    display: block;
    font-size: 11px;
    color: var(--muted);
}

.orbit-1 {
    top: 6px;
    left: -10px;
    animation: floatY 5.5s ease-in-out infinite;
}

.orbit-2 {
    top: 52px;
    right: -12px;
    animation: floatY 6.4s ease-in-out infinite 0.9s;
}

.orbit-3 {
    bottom: 130px;
    left: -14px;
    animation: floatY 5.8s ease-in-out infinite 1.7s;
}

.orbit-4 {
    bottom: 118px;
    right: -10px;
    animation: floatY 6.8s ease-in-out infinite 0.4s;
}

@keyframes floatY {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-4px, -10px) scale(1.02); }
}

/* ===================================================================
   3. INFINITE MARQUEE STRIP (HOVER TO PAUSE)
   =================================================================== */
.marquee-strip {
    background: var(--navy-deep);
    color: #ffffff;
    border-top: 2px solid var(--gold);
    border-bottom: 2px solid var(--gold);
    overflow: hidden;
    padding: 15px 0;
}

.mq-track {
    display: flex;
    width: max-content;
    animation: scrollx 34s linear infinite;
}

.marquee-strip:hover .mq-track {
    animation-play-state: paused;
}

@keyframes scrollx {
    to { transform: translateX(-50%); }
}

.mq-group {
    display: flex;
    align-items: center;
    gap: 34px;
    padding-right: 34px;
}

.mq-item {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: #f8fafc;
    white-space: nowrap;
    transition: transform 0.2s ease, color 0.2s ease;
}

.mq-item i {
    color: var(--gold-bright);
}

.mq-item:hover {
    transform: scale(1.07);
    color: var(--gold-bright);
}

/* ===================================================================
   4. METRICS COUNT-UP GRID + SECTION HEADINGS
   =================================================================== */
.section-pad {
    padding: 80px 0;
}

.section-pad.alt {
    background: var(--bg-alt);
}

.section-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 48px;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 14px;
    border-radius: var(--r-full);
    background: rgba(8, 59, 122, 0.08);
    color: var(--navy);
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.section-title {
    margin: 0 0 12px;
    font-size: clamp(28px, 3.3vw, 42px);
    font-weight: 700;
    color: var(--navy-deep);
    line-height: 1.15;
}

.section-sub {
    margin: 0;
    color: var(--muted);
    font-size: 16.5px;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.metric-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-top: 3px solid var(--navy);
    border-radius: var(--r);
    padding: 28px 24px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1), border-top-color 0.28s ease, box-shadow 0.28s ease;
}

.metric-card:hover {
    transform: translateY(-6px);
    border-top-color: var(--gold);
    box-shadow: var(--shadow);
}

.metric-num {
    font-family: 'Fraunces', serif;
    font-size: 46px;
    font-weight: 700;
    line-height: 1;
    color: var(--navy);
    margin-bottom: 10px;
}

.metric-card strong {
    display: block;
    font-size: 15px;
    color: var(--ink);
    margin-bottom: 4px;
}

.metric-card span {
    font-size: 13px;
    color: var(--muted);
}

/* ===================================================================
   5. FLAGSHIP PORTAL & REPORT FEATURE SPLIT CARD
   =================================================================== */
.feature-split-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 36px;
    box-shadow: var(--shadow);
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 38px;
    align-items: center;
}

.feature-visual-box {
    background: linear-gradient(140deg, #061636 0%, #083b7a 100%);
    border-radius: 22px;
    padding: 26px;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.feature-banner-img {
    background: #ffffff;
    border-radius: 14px;
    padding: 12px;
}

.feature-check-list {
    list-style: none;
    margin: 20px 0 26px;
    padding: 0;
    display: grid;
    gap: 10px;
}

.feature-check-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14.5px;
    color: #334155;
    font-weight: 500;
}

.feature-check-list i {
    color: var(--navy);
    margin-top: 4px;
}

/* ===================================================================
   6. WHY WISDOM HILL ACADEMY BENTO GRID
   =================================================================== */
.bento-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.45fr;
    gap: 20px;
}

.bento-hero-card {
    background: linear-gradient(155deg, #083b7a 0%, #061636 100%);
    color: #ffffff;
    border-radius: var(--r-lg);
    padding: 36px 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow);
}

.bento-stat {
    font-family: 'Fraunces', serif;
    font-size: 64px;
    font-weight: 700;
    color: var(--gold-bright);
    line-height: 1;
    margin-bottom: 12px;
}

.bento-right-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.bento-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.28s ease, border-color 0.28s ease;
}

.bento-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
    border-color: rgba(234, 179, 8, 0.55);
}

.bento-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gold-soft);
    color: var(--navy);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    margin-bottom: 14px;
}

.bento-card h3 {
    margin: 0 0 6px;
    font-size: 19px;
    color: var(--navy-deep);
}

.bento-card p {
    margin: 0;
    font-size: 13.5px;
    color: var(--muted);
}

/* ===================================================================
   7. PROGRAMME CARDS WITH PHOTO ZOOM & HOVER LIFT (.pcard)
   =================================================================== */
.pcards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.pcard {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.pcard:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow);
    border-color: rgba(234, 179, 8, 0.65);
}

.pimg-wrap {
    position: relative;
    height: 155px;
    overflow: hidden;
    background: linear-gradient(135deg, #061636, #083b7a);
}

.pimg-wrap .pimg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.78;
    transition: transform 0.45s ease;
}

.pcard:hover .pimg-wrap .pimg {
    transform: scale(1.07);
}

.pbadge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 5px 11px;
    border-radius: var(--r-full);
    background: rgba(255, 255, 255, 0.94);
    color: var(--navy-deep);
    font-size: 11px;
    font-weight: 800;
}

.pbody {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.pbody h3 {
    margin: 0 0 8px;
    font-size: 20px;
    color: var(--navy-deep);
}

.pbody ul {
    margin: 0 0 18px;
    padding-left: 18px;
    font-size: 13px;
    color: var(--muted);
    display: grid;
    gap: 5px;
    flex: 1;
}

.pfooter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid var(--line);
    font-size: 12.5px;
    font-weight: 700;
}

.pfooter a {
    color: var(--navy);
}

.pfooter span.ai-pill {
    padding: 3px 9px;
    border-radius: var(--r-full);
    background: var(--gold-soft);
    color: var(--gold-deep);
    font-size: 10.5px;
    font-weight: 800;
}

/* ===================================================================
   8. INTERACTIVE LEARNING PATHWAY STEPPER (@keyframes stepFade)
   =================================================================== */
.pathway-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 36px;
    align-items: start;
}

.pathway-steps {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-left: 22px;
}

.pathway-rail {
    position: absolute;
    left: 6px;
    top: 12px;
    bottom: 12px;
    width: 3px;
    background: var(--line);
    border-radius: 3px;
    overflow: hidden;
}

.pathway-progress {
    width: 100%;
    height: 25%;
    background: linear-gradient(180deg, var(--gold), var(--navy));
    transition: height 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.pathway-tab {
    text-align: left;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 18px 20px;
    cursor: pointer;
    font-family: inherit;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.pathway-tab:hover {
    transform: translateX(4px);
    border-color: var(--navy);
}

.pathway-tab.active {
    border-color: var(--navy);
    box-shadow: var(--shadow-sm);
    background: #ffffff;
}

.pathway-tab span {
    display: block;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--gold-deep);
    text-transform: uppercase;
}

.pathway-tab strong {
    display: block;
    font-family: 'Fraunces', serif;
    font-size: 19px;
    color: var(--navy-deep);
}

.pathway-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 34px;
    box-shadow: var(--shadow);
}

.pathway-panel.animating {
    animation: stepFade 0.42s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes stepFade {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

.pathway-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0 22px;
}

.pathway-tag {
    padding: 6px 13px;
    border-radius: var(--r-full);
    background: #eff6ff;
    color: var(--navy);
    font-size: 12.5px;
    font-weight: 700;
}

/* ===================================================================
   9. DEEP NAVY EXECUTIVE SHOWCASE BLOCK (JHS BECE FOCUS)
   =================================================================== */
.dark-executive-block {
    background: linear-gradient(145deg, #061636 0%, #083b7a 100%);
    color: #ffffff;
    border-radius: var(--r-lg);
    padding: 50px 44px;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 36px;
    align-items: center;
    box-shadow: var(--shadow);
}

.dark-executive-block h2 {
    color: #ffffff;
    margin: 0 0 14px;
    font-size: clamp(26px, 3vw, 36px);
}

.dark-executive-block .gold-text {
    color: var(--gold-bright);
}

.exec-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.exec-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 16px;
    padding: 18px;
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.exec-card:hover {
    transform: translateY(-4px);
    border-color: var(--gold-bright);
    background: rgba(255, 255, 255, 0.13);
}

.exec-pill {
    display: inline-block;
    padding: 3px 10px;
    border-radius: var(--r-full);
    background: rgba(250, 204, 21, 0.18);
    color: var(--gold-bright);
    font-size: 11px;
    font-weight: 800;
    margin-bottom: 8px;
}

.exec-card h4 {
    margin: 0 0 6px;
    font-size: 16px;
    color: #ffffff;
}

.exec-card p {
    margin: 0;
    font-size: 13px;
    color: #cbd5e1;
}

/* ===================================================================
   10. VERTICAL WATERFALL TESTIMONIALS & JOURNEY TIMELINE
   =================================================================== */
.timeline-and-voices {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 40px;
    align-items: center;
}

.journey-timeline {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding-left: 28px;
}

.journey-timeline::before {
    content: '';
    position: absolute;
    left: 17px;
    top: 12px;
    bottom: 12px;
    width: 2px;
    background: linear-gradient(180deg, var(--navy), var(--gold));
}

.journey-step {
    position: relative;
    padding-left: 24px;
}

.journey-badge {
    position: absolute;
    left: -26px;
    top: 2px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--navy);
    color: var(--gold-bright);
    font-weight: 800;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--bg);
}

.journey-step h4 {
    margin: 0 0 4px;
    font-family: 'Fraunces', serif;
    font-size: 19px;
    color: var(--navy-deep);
}

.journey-step p {
    margin: 0;
    font-size: 14px;
    color: var(--muted);
}

/* Vertical Marquee Voices Waterfall */
.waterfall-box {
    height: 410px;
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(to bottom, transparent, black 12%, black 88%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 12%, black 88%, transparent);
}

.waterfall-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.wf-track {
    display: flex;
    flex-direction: column;
    gap: 16px;
    animation: marqueeUp 24s linear infinite;
}

.wf-track.slow {
    animation-duration: 30s;
}

.waterfall-box:hover .wf-track {
    animation-play-state: paused;
}

@keyframes marqueeUp {
    to { transform: translateY(-50%); }
}

.voice-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

.voice-stars {
    color: var(--gold);
    font-size: 13px;
    margin-bottom: 8px;
}

.voice-card p {
    margin: 0 0 14px;
    font-size: 13.5px;
    color: #334155;
}

.voice-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.voice-initials {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--navy);
    color: var(--gold-bright);
    font-weight: 800;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.voice-author strong {
    display: block;
    font-size: 13px;
    color: var(--navy-deep);
}

.voice-author span {
    font-size: 11.5px;
    color: var(--muted);
}

/* ===================================================================
   11. ADMISSION INQUIRY BANNER & FOOTER
   =================================================================== */
.enquiry-banner {
    background: var(--surface);
    border: 2px solid rgba(8, 59, 122, 0.22);
    border-radius: var(--r-lg);
    padding: 40px;
    box-shadow: var(--shadow);
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 36px;
    align-items: start;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}

.form-field label {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--navy-deep);
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 13px;
    border: 1.5px solid var(--line);
    background: #fbfaf7;
    font-family: inherit;
    font-size: 14px;
    color: var(--ink);
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--navy);
    background: #ffffff;
}

.btn-submit-pill {
    width: 100%;
    padding: 14px 22px;
    border: none;
    border-radius: var(--r-full);
    background: linear-gradient(125deg, var(--navy), var(--navy-deep));
    color: #ffffff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 12px 26px -10px rgba(8, 59, 122, 0.55);
    transition: transform 0.2s ease, box-shadow 0.25s ease;
}

.btn-submit-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px -10px rgba(8, 59, 122, 0.72);
}

.inquiry-result {
    margin-top: 16px;
    padding: 16px;
    border-radius: 14px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
    font-size: 13.5px;
    display: none;
}

.inquiry-result.show {
    display: block;
}

.inquiry-dispatch-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.btn-mini-wa {
    padding: 9px 16px;
    border-radius: var(--r-full);
    background: #16a34a;
    color: #ffffff;
    font-weight: 700;
    font-size: 12.5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-mini-mail {
    padding: 9px 16px;
    border-radius: var(--r-full);
    background: var(--navy);
    color: #ffffff;
    font-weight: 700;
    font-size: 12.5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Comprehensive 4-Column Footer */
.site-footer {
    background: var(--bg-alt);
    border-top: 1px solid var(--line);
    padding: 54px 0 28px;
    font-size: 14px;
    color: var(--muted);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.9fr 0.9fr 1.1fr;
    gap: 32px;
    padding-bottom: 34px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 22px;
}

.footer-grid h4 {
    margin: 0 0 14px;
    font-size: 14px;
    font-weight: 800;
    color: var(--navy-deep);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.footer-links-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links-col a:hover {
    color: var(--navy);
    text-decoration: underline;
}

.footer-social-pills {
    display: flex;
    gap: 8px;
    margin-top: 14px;
}

.footer-social-pills a {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--navy);
    color: var(--gold-bright);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    transition: transform 0.18s ease;
}

.footer-social-pills a:hover {
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    font-size: 13px;
}

/* ===================================================================
   RESPONSIVE BREAKPOINTS
   =================================================================== */
@media (max-width: 1080px) {
    .nav-center { display: none; }
    .pcards-grid { grid-template-columns: repeat(2, 1fr); }
    .metrics-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 920px) {
    .hero-grid,
    .feature-split-card,
    .bento-grid,
    .pathway-grid,
    .dark-executive-block,
    .timeline-and-voices,
    .enquiry-banner,
    .fm-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .hero-visual-stage {
        padding: 0;
    }
    .orbit-badge {
        position: static;
        max-width: none;
        animation: none;
    }
    .orbit-mobile-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        margin-top: 14px;
    }
}

@media (max-width: 640px) {
    .wrap {
        padding: 0 16px;
    }
    .nav-inner {
        height: 64px;
        gap: 8px;
    }
    .brand-lockup {
        gap: 8px;
        min-width: 0;
        flex-shrink: 1;
    }
    .brand-crest-box {
        width: 38px;
        height: 38px;
        padding: 3px;
        flex-shrink: 0;
    }
    .brand-text {
        min-width: 0;
    }
    .brand-title {
        font-size: 12.5px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .brand-sub {
        font-size: 10px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .nav-right {
        gap: 6px;
        flex-shrink: 0;
    }
    .btn-login-pill {
        padding: 7px 11px;
        font-size: 11px;
        gap: 5px;
    }
    .menu-toggle {
        padding: 7px 10px;
        font-size: 11.5px;
        gap: 6px;
    }
    .hero-section {
        padding: 34px 0 44px;
    }
    .hero-rotator-box {
        min-height: 120px;
    }
    .metrics-grid,
    .bento-right-grid,
    .pcards-grid,
    .exec-grid,
    .waterfall-cols,
    .form-grid-2,
    .footer-grid,
    .orbit-mobile-grid {
        grid-template-columns: 1fr;
    }
    .dark-executive-block,
    .enquiry-banner,
    .feature-split-card {
        padding: 24px 18px;
    }
}

@media (max-width: 440px) {
    .brand-title { font-size: 11.5px; }
    .brand-sub { font-size: 9.5px; }
    .btn-login-pill { padding: 6px 9px; font-size: 10.5px; letter-spacing: 0.02em; }
    .menu-toggle { padding: 6px 9px; font-size: 11px; }
}
