/* =====================================================================
   APEX INSTITUTE - Public stylesheet
   Palette taken from the Apex Institute logo (green gradient)
   ===================================================================== */

:root {
    /* Brand greens - dark to bright, as in the logo */
    --apex-deep:    #0C6B24;
    --apex-dark:    #16862C;
    --apex-green:   #2CA22E;
    --apex-mid:     #57B92C;
    --apex-lime:    #8CC63F;
    --apex-bright:  #A9D91C;
    /* Gold accent, as the reference sites pair with their institutional colour */
    --apex-gold:    #F2C230;
    --apex-gold-dk: #D9A916;
    --ink-dark:     #06280F;   /* dark utility strip + ticker ground */

    --apex-gradient:      linear-gradient(135deg, #0C6B24 0%, #2CA22E 45%, #8CC63F 100%);
    --apex-gradient-soft: linear-gradient(135deg, #F2FAEE 0%, #E7F6DE 100%);

    /* Neutrals */
    --ink:        #16251A;
    --ink-soft:   #3D5344;
    --muted:      #6E8375;
    --line:       #DCEBD4;
    --surface:    #FFFFFF;
    --surface-2:  #F5FAF2;
    --page:       #FBFDF9;

    /* Status */
    --ok-bg: #E6F7E5;  --ok-fg: #14682A;
    --err-bg:#FDECEC;  --err-fg:#9B1C1C;
    --warn-bg:#FFF6E0; --warn-fg:#8A5A00;

    --radius:      16px;
    --radius-sm:   10px;
    --shadow:      0 2px 6px rgba(16,60,25,.05), 0 12px 32px rgba(16,60,25,.07);
    --shadow-lift: 0 8px 18px rgba(16,60,25,.10), 0 22px 48px rgba(16,60,25,.12);
    /* Header and section content share one width, so the nav lines up with the page */
    --shell-w:     1212px;   /* 1120px .wrap + 2 x 46px gutter */
    --gutter:      46px;

    --font-head: 'Montserrat', 'Segoe UI', system-ui, sans-serif;
    --font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 120px; } /* clears the sticky header on anchor jumps */

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--ink-soft);
    background: var(--page);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
    font-family: var(--font-head);
    color: var(--ink);
    line-height: 1.2;
    margin: 0 0 .6rem;
    letter-spacing: -.01em;
}

h1 { font-size: clamp(1.9rem, 4vw, 2.85rem); font-weight: 800; }
h2 { font-size: clamp(1.45rem, 3vw, 2.05rem); font-weight: 700; }
h3 { font-size: 1.18rem; font-weight: 700; }
h4 { font-size: 1rem;    font-weight: 700; }

p  { margin: 0 0 1rem; }
a  { color: var(--apex-dark); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--apex-mid); }
img { max-width: 100%; display: block; }

/* Browser defaults that would otherwise fight the layout:
   <figure> ships with margin:16px 40px, which squeezed every gallery tile
   80px narrower than its grid column; form controls do not inherit the
   body font, which left the gallery filter chips rendering in Arial. */
figure, figcaption { margin: 0; }
button, input, select, textarea { font-family: inherit; }
.muted { color: var(--muted); font-size: .92rem; }

.skip-link {
    position: absolute; left: -9999px; top: 0; z-index: 999;
    background: var(--apex-dark); color: #fff; padding: 10px 18px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #fff; }

:focus-visible { outline: 3px solid var(--apex-mid); outline-offset: 2px; border-radius: 4px; }

/* ====================== Horizontal top navigation ==================== */
.site-header {
    position: sticky; top: 0; z-index: 60;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 1px 3px rgba(16,60,25,.04), 0 6px 20px rgba(16,60,25,.05);
}
.site-header::before {
    content: "";
    display: block; height: 4px;
    background: var(--apex-gradient);
}

/* --- slim utility strip --- */
/* Dark utility strip, as on MUST / UNIMA / MUBAS */
.topbar {
    background: var(--ink-dark);
    font-size: .8rem;
    color: rgba(255,255,255,.82);
}
.topbar-inner {
    max-width: var(--shell-w); margin: 0 auto;
    padding: 9px var(--gutter);
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.topbar-tag {
    letter-spacing: .12em; text-transform: uppercase;
    font-weight: 700; color: var(--apex-gold);
}
.topbar-contact { display: flex; gap: 20px; }
.topbar-contact a { color: rgba(255,255,255,.85); font-weight: 500; }
.topbar-contact a:hover { color: var(--apex-gold); }

/* --- main nav row --- */
.navbar-inner {
    max-width: var(--shell-w); margin: 0 auto;
    padding: 0 var(--gutter);
    display: flex; align-items: center; gap: 26px;
    min-height: 72px;
}

.brand { display: block; flex: 0 0 auto; }
.brand img { height: 42px; width: auto; }

/* Nav sits on the right of the brand and is pushed to the far edge */
.main-nav {
    margin-left: auto;
    display: flex; align-items: center; gap: 22px;
}
.main-nav ul {
    list-style: none; margin: 0; padding: 0;
    display: flex; align-items: center; gap: 4px;
}

.nav-link {
    position: relative;
    display: flex; align-items: center; gap: 8px;
    padding: 10px 14px;
    border-radius: 10px;
    font-weight: 600;
    font-size: .94rem;
    color: var(--ink-soft);
    white-space: nowrap;
    border: 1px solid transparent;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.nav-link:hover {
    background: var(--surface-2);
    border-color: var(--line);
    color: var(--apex-deep);
}
.nav-link.is-active {
    background: var(--apex-gradient);
    color: #fff;
    box-shadow: 0 6px 14px rgba(44,162,46,.26);
    border-color: transparent;
}

/* The 1-2-3-4 badges read as a numbered list in the vertical mobile drawer,
   but only add clutter once the menu is a horizontal strip. */
.nav-num { display: none; }
.nav-link.is-active .nav-num { background: rgba(255,255,255,.25); color: #fff; }

.nav-ico { width: 18px; height: 18px; flex: 0 0 auto; }
.nav-text { flex: 0 0 auto; }

.nav-cta { flex: 0 0 auto; padding: 10px 20px; font-size: .86rem; }

/* --- hamburger (mobile only) --- */
.menu-toggle {
    display: none;
    margin-left: auto;
    width: 42px; height: 40px;
    align-content: center; gap: 5px;
    padding: 0 9px;
    background: var(--apex-gradient);
    border: none; border-radius: 10px; cursor: pointer;
}
.menu-toggle span { display: block; height: 2px; background: #fff; border-radius: 2px; transition: .25s; }
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-backdrop {
    position: fixed; inset: 0; z-index: 55;
    background: rgba(12,50,20,.45);
    backdrop-filter: blur(2px);
}

/* ---------------------------- Layout ------------------------------- */
.shell { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; }

.section { padding: 72px 46px; }
.section-alt { background: var(--surface-2); }
.wrap { max-width: 1120px; margin: 0 auto; }

.section-head { max-width: 720px; margin-bottom: 38px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.eyebrow {
    display: inline-block;
    font-size: .74rem; font-weight: 700;
    letter-spacing: .16em; text-transform: uppercase;
    color: var(--apex-green);
    margin-bottom: 10px;
}
.eyebrow::after {
    content: ""; display: block; width: 44px; height: 3px; margin-top: 8px;
    background: var(--apex-gradient); border-radius: 3px;
}
.section-head.center .eyebrow::after { margin-left: auto; margin-right: auto; }

/* ========================= Hero slider =============================
   Full-bleed image hero with a heavy dark scrim, in the pattern the
   reference university sites use. Swapping in real photography is a
   matter of uploading it - nothing here assumes the shipped artwork.
   ================================================================== */
.hero-slider {
    position: relative;
    background: #07330F;
    color: #fff;
    overflow: hidden;
    min-height: 620px;
    display: grid;
}
.hero-track { position: relative; display: grid; grid-area: 1 / 1; }

.hero-slide {
    grid-area: 1 / 1;
    position: relative;
    display: grid; align-items: center;
    padding: 104px var(--gutter) 116px;
    opacity: 0; visibility: hidden;
    transition: opacity .7s ease, visibility .7s;
}
.hero-slide.is-active { opacity: 1; visibility: visible; }

/* The backdrop drifts very slowly so a still image still feels alive. */
.hero-shot {
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.06);
    transition: transform 9s ease-out;
}
.hero-slide.is-active .hero-shot { transform: scale(1); }
/* Scrim: dark enough for white text over the copy, clearing to the right so
   the artwork (or a real photograph) still reads. */
.hero-shot::after {
    content: "";
    position: absolute; inset: 0;
    background:
        linear-gradient(90deg, rgba(4,32,12,.84) 0%, rgba(4,32,12,.58) 46%, rgba(4,32,12,.14) 100%),
        linear-gradient(0deg,  rgba(4,32,12,.46) 0%, rgba(4,32,12,0) 42%);
}

/* .wrap carries margin:0 auto; without an explicit width a grid item with auto
   margins shrinks to fit-content and centres, which pushed the hero copy out of
   line with the logo. */
.hero-inner { position: relative; z-index: 2; width: 100%; }
.hero-copy { max-width: 46rem; }

.hero-slide .eyebrow { color: var(--apex-gold); }
.hero-slide .eyebrow::after { background: var(--apex-gold); }

.hero-slide h1 {
    color: #fff;
    font-size: clamp(2.4rem, 5.6vw, 4.25rem);
    line-height: 1.04;
    letter-spacing: -.02em;
    margin-bottom: .8rem;
    text-shadow: 0 2px 24px rgba(0,0,0,.35);
}
.hero-slide h1 em { font-style: normal; color: var(--apex-gold); }

.hero-meta {
    display: inline-block;
    margin: 0 0 16px;
    padding: 7px 16px;
    border-radius: 999px;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.28);
    backdrop-filter: blur(4px);
    font-size: .82rem; font-weight: 600; color: #fff;
}
.hero-lead {
    font-size: 1.12rem;
    max-width: 52ch;
    color: rgba(255,255,255,.92);
    text-shadow: 0 1px 12px rgba(0,0,0,.3);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

/* --- glass fact panel --- */
.hero-panel {
    grid-area: 1 / 1;
    position: relative; z-index: 3;
    justify-self: end; align-self: center;
    width: min(340px, 30vw);
    margin-right: var(--gutter);
    padding: 28px 26px;
    background: rgba(6,40,16,.62);
    border: 1px solid rgba(255,255,255,.18);
    backdrop-filter: blur(10px);
    border-radius: var(--radius);
}
.panel-eyebrow {
    display: block;
    font-size: .7rem; font-weight: 700;
    letter-spacing: .16em; text-transform: uppercase;
    color: var(--apex-gold);
    margin-bottom: 12px;
}
.hero-panel h2 { color: #fff; font-size: 1.42rem; line-height: 1.24; margin-bottom: 22px; }
.panel-stats {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
    padding: 18px 0;
    border-top: 1px solid rgba(255,255,255,.2);
    border-bottom: 1px solid rgba(255,255,255,.2);
}
.panel-stats b {
    display: block;
    font-family: var(--font-head); font-weight: 800; font-size: 1.6rem;
    color: #fff; line-height: 1;
}
.panel-stats b i { font-style: normal; font-size: .9rem; }
.panel-stats span { font-size: .72rem; color: rgba(255,255,255,.76); }
.panel-link {
    display: flex; align-items: center; justify-content: space-between;
    margin-top: 18px;
    font-family: var(--font-head); font-weight: 700; font-size: .86rem;
    color: #fff;
}
.panel-link:hover { color: var(--apex-gold); }
.panel-link i { font-style: normal; transition: transform .2s ease; }
.panel-link:hover i { transform: translateX(4px); }

/* --- carousel controls, bottom right --- */
.hero-controls {
    position: absolute; right: var(--gutter); bottom: 30px; z-index: 4;
    display: flex; align-items: center; gap: 12px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(6,40,16,.6);
    border: 1px solid rgba(255,255,255,.2);
    backdrop-filter: blur(8px);
}
.hero-controls button {
    width: 34px; height: 34px; border-radius: 50%;
    display: grid; place-items: center;
    background: transparent; border: 1px solid rgba(255,255,255,.34);
    color: #fff; font-size: .9rem; line-height: 1; cursor: pointer;
    transition: background .2s ease, border-color .2s ease;
}
.hero-controls button:hover { background: var(--apex-gold); border-color: var(--apex-gold); color: #123; }
.hero-count {
    display: flex; align-items: center; gap: 9px;
    font-family: var(--font-head); font-size: .76rem; font-weight: 700;
    color: rgba(255,255,255,.75);
}
.hero-count em { font-style: normal; color: #fff; }
.hero-bar { display: block; width: 62px; height: 2px; background: rgba(255,255,255,.28); border-radius: 2px; }
.hero-bar i { display: block; height: 100%; width: 25%; background: var(--apex-gold); border-radius: 2px; transition: width .4s ease; }

.hero-dots {
    position: absolute; left: var(--gutter); bottom: 38px; z-index: 4;
    display: flex; gap: 9px;
}
.hero-dot {
    width: 10px; height: 10px; padding: 0;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.7);
    background: transparent; cursor: pointer;
    transition: background .2s ease, width .2s ease, border-radius .2s ease;
}
.hero-dot.is-active { background: var(--apex-gold); border-color: var(--apex-gold); width: 28px; border-radius: 999px; }

/* ========================= Notice ticker ===========================
   The running notice strip under the hero, as on the Zanzibar site. */
.ticker {
    background: var(--apex-deep);
    color: #fff;
    border-top: 3px dashed rgba(242,194,48,.55);
}
.ticker-inner {
    max-width: var(--shell-w); margin: 0 auto;
    padding: 0 var(--gutter);
    display: flex; align-items: center; gap: 18px;
    min-height: 52px;
}
.ticker-tag {
    flex: 0 0 auto;
    display: flex; align-items: center; gap: 8px;
    font-size: .72rem; font-weight: 700;
    letter-spacing: .14em; text-transform: uppercase;
    color: var(--apex-gold);
}
.ticker-tag i {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--apex-gold);
    animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .25; } }

/* Fade both edges so items dissolve rather than hard-clipping mid-word. */
.ticker-view {
    flex: 1 1 auto; overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 42px, #000 calc(100% - 42px), transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0, #000 42px, #000 calc(100% - 42px), transparent 100%);
}
.ticker-rail {
    list-style: none; margin: 0; padding: 0;
    display: flex; align-items: center; gap: 46px;
    white-space: nowrap;
    /* The list is rendered twice, so -50% lands exactly on the seam. */
    animation: marquee 34s linear infinite;
}
.ticker:hover .ticker-rail { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.ticker-rail li { display: flex; align-items: center; gap: 10px; font-size: .86rem; }
.ticker-rail b {
    font-size: .68rem; font-weight: 700;
    letter-spacing: .1em; text-transform: uppercase;
    color: var(--apex-gold);
}
.ticker-rail a { color: rgba(255,255,255,.9); }
.ticker-rail a:hover { color: var(--apex-gold); }

.ticker-all {
    flex: 0 0 auto;
    font-size: .78rem; font-weight: 700;
    color: #fff;
    padding-left: 18px;
    border-left: 1px solid rgba(255,255,255,.2);
}
.ticker-all:hover { color: var(--apex-gold); }
.ticker-all i { font-style: normal; }

@media (prefers-reduced-motion: reduce) {
    .ticker-rail { animation: none; }
    .ticker-tag i { animation: none; }
    .hero-shot, .hero-slide.is-active .hero-shot { transform: none; transition: none; }
}

/* ====================== Audience gateway cards ===================== */
/* Pulled up over the hero edge, the way the reference sites do it. */
/* The ticker now occupies the strip under the hero, so these sit below it. */
.gateways { padding: 54px var(--gutter) 0; position: relative; z-index: 3; }
.gateway-grid {
    display: grid; gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.gateway {
    display: flex; flex-direction: column;
    padding: 24px 22px 20px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-top: 3px solid var(--apex-green);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    color: var(--ink-soft);
    transition: transform .22s ease, box-shadow .22s ease, border-top-color .22s ease;
}
.gateway:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lift);
    border-top-color: var(--apex-bright);
    color: var(--ink-soft);
}
.gateway-ico {
    width: 44px; height: 44px; margin-bottom: 14px;
    display: grid; place-items: center;
    border-radius: 12px;
    background: var(--apex-gradient-soft);
    color: var(--apex-deep);
}
.gateway-ico svg { width: 22px; height: 22px; }
.gateway h3 { font-size: 1.04rem; margin-bottom: 6px; }
.gateway p { font-size: .89rem; margin: 0 0 16px; }
.gateway-link {
    margin-top: auto;
    font-family: var(--font-head); font-weight: 700; font-size: .84rem;
    color: var(--apex-dark);
}
.gateway-link i { font-style: normal; transition: transform .2s ease; display: inline-block; }
.gateway:hover .gateway-link i { transform: translateX(4px); }

/* ============================ Stat band ============================ */
.stat-band { padding: 54px var(--gutter) 0; }
.stat-row {
    display: grid; gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    padding: 30px 26px;
    background: var(--apex-gradient);
    border-radius: var(--radius);
    box-shadow: 0 14px 34px rgba(44,162,46,.22);
}
.stat { text-align: center; color: #fff; }
.stat b {
    display: block;
    font-family: var(--font-head); font-weight: 800;
    font-size: clamp(1.8rem, 3.4vw, 2.5rem);
    line-height: 1.1;
}
.stat span { font-size: .85rem; color: rgba(255,255,255,.9); }

/* ========================== Sector cards =========================== */
.sector-grid {
    display: grid; gap: 22px;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}
.sector-card {
    display: flex; flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    color: var(--ink-soft);
    transition: transform .22s ease, box-shadow .22s ease;
}
.sector-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); color: var(--ink-soft); }

.sector-top {
    position: relative;
    height: 96px;
    background: var(--apex-gradient);
    display: grid; place-items: center;
    overflow: hidden;
}
.sector-top::after {
    content: "";
    position: absolute; right: -30px; top: -40px;
    width: 130px; height: 130px; border-radius: 50%;
    background: rgba(255,255,255,.12);
}
.sector-mark {
    position: relative; z-index: 1;
    font-family: var(--font-head); font-weight: 800;
    font-size: 1.5rem; letter-spacing: .06em;
    color: #fff;
}
.sector-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1 1 auto; }
.sector-body h3 { margin-bottom: 6px; }
.sector-body p { font-size: .9rem; margin-bottom: 16px; }
.sector-count {
    margin-top: auto;
    font-family: var(--font-head); font-weight: 700; font-size: .83rem;
    color: var(--apex-dark);
}
.sector-count i { font-style: normal; display: inline-block; transition: transform .2s ease; }
.sector-card:hover .sector-count i { transform: translateX(4px); }

/* ===================== Two-column section layout =================== */
.two-col { display: grid; grid-template-columns: 1.55fr .95fr; gap: 40px; align-items: start; }

/* ========================== Intake list ============================ */
.intake-list { display: grid; gap: 14px; }
.intake {
    display: flex; align-items: center; gap: 18px;
    padding: 16px 18px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.intake:hover { transform: translateX(4px); box-shadow: var(--shadow-lift); border-color: #C6E3B7; }

.intake-date {
    flex: 0 0 auto;
    width: 64px; padding: 10px 0;
    text-align: center;
    border-radius: 12px;
    background: var(--apex-gradient);
    color: #fff;
    line-height: 1.15;
}
.intake-date b { display: block; font-family: var(--font-head); font-size: 1.45rem; font-weight: 800; }
.intake-date span { display: block; font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; }
.intake-date em { display: block; font-style: normal; font-size: .68rem; color: rgba(255,255,255,.8); }

.intake-body { flex: 1 1 auto; min-width: 0; }
.intake-body h3 { font-size: 1.02rem; margin: 6px 0 4px; }
.intake-body h3 a { color: var(--ink); }
.intake-body h3 a:hover { color: var(--apex-green); }
.intake-meta { font-size: .83rem; margin: 0; color: var(--muted); }

.intake-act { flex: 0 0 auto; display: grid; gap: 8px; justify-items: end; }

/* ======================== Announcements ============================ */
.notice-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
}
.notice-head {
    font-size: .82rem; letter-spacing: .12em; text-transform: uppercase;
    color: var(--apex-deep);
    padding-bottom: 12px; margin-bottom: 4px;
    border-bottom: 2px solid var(--apex-lime);
}
.notice-list { list-style: none; margin: 0; padding: 0; }
.notice-list li {
    display: grid; gap: 4px;
    padding: 14px 0;
    border-bottom: 1px dashed var(--line);
}
.notice-list li:last-child { border-bottom: none; }
.notice-list .badge { justify-self: start; }
.notice-list a { font-weight: 600; font-size: .93rem; color: var(--ink); }
.notice-list a:hover { color: var(--apex-green); }
.notice-list .muted { font-size: .82rem; }

.notice-cta {
    margin-top: 20px; padding-top: 20px;
    border-top: 1px solid var(--line);
}
.notice-cta h4 { margin-bottom: 6px; }
.notice-cta p { font-size: .88rem; }

/* ========================== Promo panel ============================ */
.promo-panel {
    padding: 30px 28px;
    border-radius: var(--radius);
    background: var(--apex-gradient);
    color: #fff;
    box-shadow: 0 14px 34px rgba(44,162,46,.22);
}
.promo-panel h3 { color: #fff; margin-bottom: 16px; }
.promo-panel .eyebrow { color: rgba(255,255,255,.9); }
.promo-panel .eyebrow::after { background: rgba(255,255,255,.75); }
.promo-panel .tick-list li::before { background: rgba(255,255,255,.28); }
.promo-panel .tick-list li::after { border-color: #fff; }
.promo-panel .btn { margin-top: 8px; }

/* Steps in the two-column layout number themselves via the shared .steps rules */
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }


/* ---------------------------- Buttons ------------------------------ */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    padding: 12px 24px;
    font-family: var(--font-head);
    font-size: .93rem; font-weight: 700;
    border-radius: 11px;
    border: 2px solid transparent;
    cursor: pointer;
    text-align: center;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--apex-gradient); color: #fff; box-shadow: 0 8px 20px rgba(44,162,46,.3); }
.btn-primary:hover { color: #fff; box-shadow: 0 12px 26px rgba(44,162,46,.38); }
.btn-outline { background: transparent; border-color: var(--apex-green); color: var(--apex-dark); }
.btn-outline:hover { background: var(--apex-green); color: #fff; }
.btn-white { background: #fff; color: var(--apex-deep); }
.btn-white:hover { color: var(--apex-deep); box-shadow: 0 12px 26px rgba(0,0,0,.18); }
.btn-gold { background: var(--apex-gold); color: #21300B; box-shadow: 0 8px 20px rgba(242,194,48,.34); }
.btn-gold:hover { background: var(--apex-gold-dk); color: #21300B; box-shadow: 0 12px 26px rgba(242,194,48,.44); }
.btn-ghost-light { background: transparent; border-color: rgba(255,255,255,.7); color: #fff; }
.btn-ghost-light:hover { background: #fff; color: var(--apex-deep); }
.btn-sm { padding: 8px 16px; font-size: .82rem; border-radius: 9px; }
.btn-block { display: flex; width: 100%; }

/* ----------------------------- Cards ------------------------------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); }

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px;
    box-shadow: var(--shadow);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: #C6E3B7; }

.card-icon {
    width: 48px; height: 48px;
    display: grid; place-items: center;
    border-radius: 13px;
    background: var(--apex-gradient);
    color: #fff;
    font-family: var(--font-head); font-weight: 800; font-size: .95rem;
    letter-spacing: .04em;
    margin-bottom: 16px;
}

/* ------------------------- Program cards --------------------------- */
.program-card {
    display: flex; flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform .22s ease, box-shadow .22s ease;
}
.program-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); }

.program-top {
    padding: 18px 22px;
    background: var(--apex-gradient-soft);
    border-bottom: 1px solid var(--line);
    display: flex; justify-content: space-between; align-items: center; gap: 10px;
}
.program-code { font-family: var(--font-head); font-size: .76rem; font-weight: 700; color: var(--apex-deep); letter-spacing: .05em; }

.program-body { padding: 22px; flex: 1 1 auto; }
.program-body h3 { margin-bottom: 8px; }
.program-body h3 a { color: var(--ink); }
.program-body h3 a:hover { color: var(--apex-green); }
.program-summary { font-size: .93rem; margin-bottom: 16px; }

.meta-list { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 7px; font-size: .86rem; }
.meta-list li { display: flex; gap: 8px; }
.meta-list b { color: var(--ink); font-weight: 600; min-width: 74px; }

.program-foot {
    padding: 16px 22px;
    border-top: 1px solid var(--line);
    background: var(--surface-2);
    display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.fee { font-family: var(--font-head); font-weight: 800; color: var(--apex-deep); font-size: 1.02rem; }

/* ----------------------------- Badges ------------------------------ */
.badge {
    display: inline-block;
    padding: 4px 11px;
    border-radius: 999px;
    font-size: .72rem; font-weight: 700;
    letter-spacing: .04em; text-transform: uppercase;
    background: var(--surface-2);
    color: var(--apex-deep);
    border: 1px solid var(--line);
    white-space: nowrap;
}
.badge-solid  { background: var(--apex-gradient); color: #fff; border-color: transparent; }
.badge-lime   { background: #EEF8DC; color: #4A7411; border-color: #DCEEBE; }
.badge-ok     { background: var(--ok-bg);  color: var(--ok-fg);  border-color: #CBEBC9; }
.badge-warn   { background: var(--warn-bg);color: var(--warn-fg);border-color: #F0DFB4; }
.badge-err    { background: var(--err-bg); color: var(--err-fg); border-color: #F3CFCF; }

/* ----------------------------- Filters ----------------------------- */
.filter-bar {
    display: flex; flex-wrap: wrap; gap: 10px;
    margin-bottom: 30px;
    padding: 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.chip {
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--surface-2);
    font-size: .86rem; font-weight: 600;
    color: var(--ink-soft);
    cursor: pointer;
    transition: .18s ease;
}
.chip:hover { border-color: var(--apex-mid); color: var(--apex-deep); }
.chip.is-active { background: var(--apex-gradient); color: #fff; border-color: transparent; }
.chip.is-active .muted { color: rgba(255,255,255,.85); }

/* ----------------------------- Forms ------------------------------- */
.form-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 34px;
    box-shadow: var(--shadow);
}
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }

label { font-size: .87rem; font-weight: 600; color: var(--ink); }
.req { color: #C0392B; }

input[type=text], input[type=email], input[type=tel], input[type=date],
input[type=number], input[type=password], input[type=search], select, textarea {
    width: 100%;
    padding: 11px 14px;
    font-family: var(--font-body);
    font-size: .95rem;
    color: var(--ink);
    background: var(--surface);
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    transition: border-color .18s ease, box-shadow .18s ease;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--apex-mid);
    box-shadow: 0 0 0 4px rgba(140,198,63,.2);
}
textarea { resize: vertical; min-height: 110px; }
select { appearance: none; background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath fill='%236E8375' d='M7 9 0 2l2-2 5 5 5-5 2 2z'/%3E%3C/svg%3E");
         background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }

.form-legend {
    font-family: var(--font-head); font-weight: 700; color: var(--apex-deep);
    font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
    margin: 28px 0 14px; padding-bottom: 8px; border-bottom: 1px solid var(--line);
}
.form-legend:first-child { margin-top: 0; }

.check-row { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; }
.check-row input { margin-top: 4px; width: 17px; height: 17px; accent-color: var(--apex-green); }

/* ----------------------------- Alerts ------------------------------ */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: .93rem;
    border-left: 4px solid;
}
.alert-success { background: var(--ok-bg);  color: var(--ok-fg);  border-color: var(--apex-green); }
.alert-error   { background: var(--err-bg); color: var(--err-fg); border-color: #C0392B; }
.alert-info    { background: #E8F4FD;       color: #14507F;       border-color: #2E86C1; }
.alert-warning { background: var(--warn-bg);color: var(--warn-fg);border-color: #E1A200; }

.error-list { margin: 0; padding-left: 18px; }

/* ---------------------------- Gallery ------------------------------ */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.gallery-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--surface);
    cursor: zoom-in;
    box-shadow: var(--shadow);
}
.gallery-item img { width: 100%; height: 230px; object-fit: cover; transition: transform .45s ease; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-cap {
    position: absolute; inset: auto 0 0 0;
    padding: 34px 18px 16px;
    background: linear-gradient(to top, rgba(10,45,18,.88), rgba(10,45,18,0));
    color: #fff;
}
.gallery-cap h4 { color: #fff; margin: 0 0 3px; font-size: .98rem; }
.gallery-cap span { font-size: .78rem; color: rgba(255,255,255,.82); }

.lightbox {
    position: fixed; inset: 0; z-index: 200;
    display: none; place-items: center;
    background: rgba(8,35,14,.92);
    padding: 28px;
}
.lightbox.open { display: grid; }
.lightbox img { max-width: min(1000px, 92vw); max-height: 80vh; border-radius: 12px; object-fit: contain; }
.lightbox-cap { color: #fff; text-align: center; margin-top: 16px; font-size: .95rem; }
.lightbox-close {
    position: absolute; top: 20px; right: 24px;
    width: 44px; height: 44px; border-radius: 50%;
    border: none; background: rgba(255,255,255,.16); color: #fff;
    font-size: 1.5rem; cursor: pointer; line-height: 1;
}
.lightbox-close:hover { background: rgba(255,255,255,.3); }

/* --------------------------- Page head ----------------------------- */
.page-head {
    padding: 60px 46px 54px;
    background: var(--apex-gradient);
    color: #fff;
}
.page-head h1 { color: #fff; margin-bottom: .4rem; }
.page-head p { color: rgba(255,255,255,.93); max-width: 62ch; margin: 0; }
.crumb { font-size: .82rem; color: rgba(255,255,255,.82); margin-bottom: 12px; }
.crumb a { color: rgba(255,255,255,.95); }
.crumb a:hover { color: #fff; text-decoration: underline; }

/* ----------------------------- Steps ------------------------------- */
.steps { counter-reset: step; display: grid; gap: 18px; }
.step {
    display: flex; gap: 18px; align-items: flex-start;
    padding: 20px 22px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.step::before {
    counter-increment: step;
    content: counter(step);
    flex: 0 0 auto;
    width: 38px; height: 38px;
    display: grid; place-items: center;
    border-radius: 11px;
    background: var(--apex-gradient);
    color: #fff; font-family: var(--font-head); font-weight: 800;
}
.step h4 { margin-bottom: 3px; }
.step p { margin: 0; font-size: .92rem; }

/* ----------------------------- Table ------------------------------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table.data { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 640px; }
table.data th {
    text-align: left; padding: 13px 16px;
    background: var(--surface-2);
    font-family: var(--font-head); font-size: .78rem;
    text-transform: uppercase; letter-spacing: .06em; color: var(--apex-deep);
    border-bottom: 1px solid var(--line); white-space: nowrap;
}
table.data td { padding: 13px 16px; border-bottom: 1px solid #EEF5EA; vertical-align: middle; }
table.data tr:last-child td { border-bottom: none; }
table.data tbody tr:hover { background: #FAFDF7; }

/* ---------------------------- CTA band ----------------------------- */
.cta-band {
    background: var(--apex-gradient);
    color: #fff;
    padding: 56px 46px;
    text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.93); max-width: 60ch; margin: 0 auto 26px; }

/* ---------------------------- Footer ------------------------------- */
.site-footer { background: #0F2B17; color: #B9CEBF; margin-top: auto; }
.footer-grid {
    max-width: 1120px; margin: 0 auto;
    padding: 52px 46px 34px;
    display: grid; gap: 34px;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.footer-logo { height: 40px; width: auto; margin-bottom: 14px; filter: brightness(1.15); }
.site-footer h4 { color: #fff; margin-bottom: 14px; font-size: .84rem; letter-spacing: .12em; text-transform: uppercase; }
.site-footer p { font-size: .9rem; }
.site-footer .muted { color: #8FA895; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: .9rem; }
.footer-links a { color: #B9CEBF; }
.footer-links a:hover { color: var(--apex-bright); }
.footer-bar {
    border-top: 1px solid rgba(255,255,255,.1);
    padding: 18px 46px;
    text-align: center;
    font-size: .84rem;
    color: #8FA895;
}

/* ---------------------------- Utilities ---------------------------- */
.split { display: grid; grid-template-columns: 1.15fr .85fr; gap: 42px; align-items: start; }
/* Form-led pages give the form more room than the supporting panel */
.split-form { grid-template-columns: 1.7fr .8fr; }
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-3 { margin-top: 1.4rem; }
.mt-4 { margin-top: 2rem; }
.tick-list { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: 10px; }
.tick-list li { position: relative; padding-left: 30px; font-size: .95rem; }
.tick-list li::before {
    content: ""; position: absolute; left: 0; top: .42em;
    width: 17px; height: 17px; border-radius: 50%;
    background: var(--apex-gradient);
}
.tick-list li::after {
    content: ""; position: absolute; left: 5px; top: .72em;
    width: 7px; height: 4px;
    border-left: 2px solid #fff; border-bottom: 2px solid #fff;
    transform: rotate(-45deg);
}

.empty-state {
    padding: 56px 26px; text-align: center;
    background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius);
}

/* -------------------------- Responsive ----------------------------- */
@media (max-width: 1024px) {
    .split, .two-col { grid-template-columns: 1fr; }
    .hero-panel { width: min(300px, 34vw); padding: 22px 20px; }
    .hero-panel h2 { font-size: 1.2rem; }
    .hero-copy { max-width: 34rem; }
    .topbar-tag { display: none; }
    .nav-link { padding: 10px 11px; font-size: .9rem; }
    .main-nav { gap: 14px; }
}

@media (max-width: 900px) {
    /* Nav collapses into a panel that drops down out of the sticky header. */
    .menu-toggle { display: grid; }
    .navbar-inner { min-height: 62px; gap: 14px; }
    .brand img { height: 36px; }

    .main-nav {
        position: absolute; left: 0; right: 0; top: 100%;
        margin-left: 0;
        flex-direction: column; align-items: stretch; gap: 14px;
        padding: 16px var(--gutter) 22px;
        background: var(--surface);
        border-bottom: 1px solid var(--line);
        box-shadow: 0 18px 32px rgba(16,60,25,.14);
        transform: translateY(-14px);
        opacity: 0; visibility: hidden;
        transition: transform .24s ease, opacity .24s ease, visibility .24s;
        z-index: 60;
    }
    .main-nav.open { transform: translateY(0); opacity: 1; visibility: visible; }

    /* the dropdown anchors to this row; the header itself stays sticky */
    .navbar { position: relative; }

    /* Vertical again inside the drawer, so the numbered badges earn their place. */
    .main-nav ul { flex-direction: column; align-items: stretch; gap: 6px; }
    .nav-link { padding: 12px 14px; font-size: .97rem; gap: 12px; }
    .nav-num {
        display: grid; place-items: center;
        flex: 0 0 auto; width: 22px; height: 22px;
        border-radius: 7px;
        background: var(--surface-2); color: var(--apex-dark);
        font-size: .72rem; font-weight: 700;
    }
    .nav-cta { width: 100%; }

    .topbar-inner { justify-content: center; padding-left: 22px; padding-right: 22px; }
    .navbar-inner { padding-left: 22px; padding-right: 22px; }
    .main-nav { padding-left: 22px; padding-right: 22px; }

    .section, .page-head, .cta-band { padding-left: 22px; padding-right: 22px; }
    .footer-grid, .footer-bar { padding-left: 22px; padding-right: 22px; }
    .section { padding-top: 52px; padding-bottom: 52px; }
    .form-card { padding: 22px; }

    /* New homepage blocks */
    .hero-slide { padding: 66px 22px 92px; }
    .hero-arrow { display: none; }
    .gateways, .stat-band { padding-left: 22px; padding-right: 22px; }
    .two-col { gap: 28px; }

    /* Photographic hero on small screens */
    .hero-slider { min-height: 0; }
    .hero-slide { padding: 72px 22px 96px; }
    .hero-panel { display: none; }          /* the stat band below already carries these numbers */
    .hero-controls { right: 22px; bottom: 22px; padding: 6px 10px; gap: 8px; }
    .hero-count { display: none; }
    .hero-dots { left: 22px; bottom: 30px; }
    .ticker-inner { padding: 0 22px; gap: 12px; }
    .ticker-all { display: none; }
}

@media (max-width: 520px) {
    .program-foot { flex-direction: column; align-items: stretch; }
    .program-foot .btn { width: 100%; }
    .gallery-item img { height: 190px; }
    .intake { flex-wrap: wrap; gap: 12px; }
    .intake-body { flex: 1 1 100%; order: 2; }
    .intake-act { flex: 1 1 100%; order: 3; justify-items: stretch;
                  display: flex; align-items: center; justify-content: space-between; }
    .gateways { margin-top: -30px; }
    .topbar-contact { gap: 12px; font-size: .76rem; }
}

@media print {
    .site-header, .nav-backdrop, .site-footer, .btn, .cta-band { display: none !important; }
}
