/* ============================================================
   IFPI — Institute of Financial Planning & Investment
   Shared stylesheet. Upload this ONCE into the same folder as
   your HTML pages. Every page links to it with:
   <link rel="stylesheet" href="styles.css">
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  --ink:        #00144D;   /* exact logo navy */
  --ink-2:      #0A1B5C;   /* raised navy (cards on dark) */
  --ink-3:      #000C33;   /* deepest navy */
  --gold:       #F7C750;   /* exact logo gold (coin) */
  --gold-soft:  #EBA91E;   /* exact logo gold (arrow) — used for on-dark small accents */
  --paper:      #F6F7FC;   /* cool off-white background */
  --white:      #FFFFFF;
  --slate:      #3F4468;   /* body text on light */
  --slate-soft: #6A6F93;   /* secondary text on light */
  --mist:       #ECEEF9;   /* light section tint */
  --line:       #E3E6F2;   /* hairlines on light */
  --line-dark:  #33338A;   /* hairlines on dark (indigo) */

  --green:      #0F7A4D;   /* logo's growth-bar green */
  --green-2:    #0B7E83;   /* logo's teal-green */
  --green-soft: #E6F3EC;   /* pale green tint for badges on white */

  --serif: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;   /* headings (theme style) */
  --sans:  "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;    /* body / UI */
  --mono:  "Poppins", system-ui, sans-serif;                               /* labels / numbers */

  --container: 1200px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 18px 50px -24px rgba(20, 23, 58, 0.28);
  --shadow-soft: 0 10px 30px -18px rgba(20, 23, 58, 0.25);
  --section-y: clamp(4rem, 9vw, 7.5rem);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--sans);
  color: var(--slate);
  background: var(--paper);
  line-height: 1.7;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

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

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}
.section { padding-block: var(--section-y); }
.section--dark { background: var(--ink); color: #D9DCEC; }
.section--tint { background: var(--mist); }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: var(--gold);
  display: inline-block;
}
.section--dark .eyebrow { color: var(--gold-soft); }

.section-head { max-width: 42rem; margin-bottom: clamp(2.5rem, 5vw, 3.75rem); }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.85rem); margin-top: 1rem; }
.section-head p { margin-top: 1.1rem; color: var(--slate-soft); font-size: 1.075rem; }
.section--dark .section-head h2 { color: var(--white); }
.section--dark .section-head p { color: #AEB3CC; }

.center { text-align: center; margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.85rem 1.6rem;
  border-radius: 10px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, background-color .18s ease, color .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--gold); color: var(--ink); }
.btn--primary:hover { background: var(--gold-soft); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--on-dark { background: transparent; color: var(--white); border-color: rgba(255,255,255,.35); }
.btn--on-dark:hover { border-color: var(--white); background: rgba(255,255,255,.06); }
.btn svg { width: 18px; height: 18px; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--ink-3);
  color: #AEB3CC;
  font-size: 0.82rem;
  border-bottom: 1px solid var(--line-dark);
}
.topbar .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 42px; flex-wrap: wrap;
}
.topbar a:hover { color: var(--gold-soft); }
.topbar .topbar__contact { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.topbar .topbar__note { font-family: var(--mono); letter-spacing: 0.05em; color: var(--gold-soft); }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(20, 23, 58, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-dark);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; min-height: 74px;
}
.brand { display: flex; align-items: center; gap: 0.7rem; color: var(--white); }
.brand__mark { width: 34px; height: 34px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--serif); font-weight: 600; font-size: 1.35rem; letter-spacing: 0.02em; }
.brand__sub { font-family: var(--mono); font-size: 0.52rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-soft); margin-top: 4px; line-height: 1.35; }

.nav { display: flex; align-items: center; gap: 0.35rem; }
.nav a {
  color: #C9CDE4; font-weight: 500; font-size: 0.96rem;
  padding: 0.5rem 0.85rem; border-radius: 8px;
  transition: color .15s ease, background-color .15s ease;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--white); background: rgba(255,255,255,.06); }
.nav a[aria-current="page"] { color: var(--gold-soft); }

.header-actions { display: flex; align-items: center; gap: 0.75rem; }

.nav-toggle {
  display: none; background: transparent; border: 0; cursor: pointer;
  width: 44px; height: 44px; color: var(--white);
}
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 960px) {
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(320px, 82vw);
    height: 100vh; height: 100dvh; min-height: 100vh; min-height: 100dvh;
    background: var(--ink-2); flex-direction: column; align-items: stretch;
    padding: 6rem 1.5rem 2rem; gap: 0.25rem;
    transform: translateX(100%); transition: transform .28s ease;
    box-shadow: -20px 0 60px -20px rgba(0,0,0,.5);
    overflow-y: auto;
  }
  .nav.open { transform: translateX(0); }
  .nav a { padding: 0.85rem 1rem; font-size: 1.05rem; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .header-actions .btn { display: none; }
}

/* ---------- Hero ---------- */
.hero { background: var(--ink); color: #D9DCEC; position: relative; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 60% at 85% 15%, rgba(200,162,76,.10), transparent 70%),
    radial-gradient(50% 50% at 10% 90%, rgba(45,52,110,.5), transparent 70%);
  pointer-events: none;
}
.hero .container {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.25fr 0.95fr; gap: clamp(2rem, 5vw, 4rem);
  align-items: start; padding-block: clamp(3.5rem, 8vw, 6.5rem);
}
.hero__text { padding-top: 1.5rem; }
.hero__eyebrow { color: var(--gold-soft); }
.hero h1 {
  color: var(--white); font-size: clamp(1.85rem, 3.4vw, 2.9rem);
  line-height: 1.18; margin-top: 1.25rem;
}
.hero h1 { font-weight: 700; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero__lead { margin-top: 1.5rem; font-size: 1.1rem; color: #B9BEDA; max-width: 34rem; }
.hero__cta { margin-top: 2.25rem; display: flex; gap: 0.9rem; flex-wrap: wrap; }
.hero__trust {
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line-dark);
  display: flex; gap: 1.75rem; flex-wrap: wrap;
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.04em; color: #9EA3C2;
}
.hero__trust span { display: inline-flex; align-items: center; gap: 0.5rem; }
.hero__trust span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }

/* Hero analysis-line card (signature element) */
.analysis-card {
  background: linear-gradient(160deg, var(--ink-2), var(--ink-3));
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.6rem 1.4rem;
  box-shadow: var(--shadow);
}
.analysis-card__head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 1rem;
}
.analysis-card__head span { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; color: #8E93B4; text-transform: uppercase; }
.analysis-card__head b { font-family: var(--serif); font-weight: 500; color: var(--white); font-size: 1.1rem; }
.analysis-card svg { width: 100%; height: auto; }
.analysis-card__legend {
  display: flex; gap: 1.25rem; margin-top: 1rem; flex-wrap: wrap;
  font-family: var(--mono); font-size: 0.7rem; color: #9EA3C2; letter-spacing: 0.06em;
}
.analysis-card__legend b { color: var(--gold-soft); font-weight: 500; }

@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; }
  .analysis-card { order: 2; }
}

/* ---------- Stat strip ---------- */
.stats { background: var(--ink-3); color: #D9DCEC; border-top: 1px solid var(--line-dark); }
.stats .container {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--line-dark);
}
.stat { background: var(--ink-3); padding: clamp(1.75rem, 4vw, 2.75rem) 1.25rem; text-align: center; }
.stat__num { font-family: var(--mono); font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--gold-soft); font-weight: 500; letter-spacing: -0.02em; }
.stat__label { margin-top: 0.4rem; font-size: 0.86rem; color: #9EA3C2; letter-spacing: 0.03em; }
@media (max-width: 620px) { .stats .container { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Feature grid (Why IFPI) ---------- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.feature {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.75rem 1.5rem; transition: transform .2s ease, box-shadow .2s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.feature__icon {
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--ink); color: var(--gold);
  display: grid; place-items: center; margin-bottom: 1.1rem;
}
.feature__icon svg { width: 24px; height: 24px; }
.feature h3 { font-family: var(--sans); font-weight: 600; font-size: 1.1rem; color: var(--ink); letter-spacing: 0; }
.feature p { margin-top: 0.55rem; font-size: 0.95rem; color: var(--slate-soft); }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .features { grid-template-columns: 1fr; } }

/* ---------- Programme cards ---------- */
.programmes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.prog {
  display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.prog:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.prog__top { padding: 1.6rem 1.6rem 0; }
.prog__tag {
  display: inline-block;
  font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink); font-weight: 600;
  background: var(--gold); padding: 3px 10px; border-radius: 6px;
}
.prog h3 { font-family: var(--sans); font-weight: 600; font-size: 1.3rem; color: var(--ink); margin-top: 0.6rem; letter-spacing: 0; }
.prog__desc { padding: 0.9rem 1.6rem 1.3rem; color: var(--slate-soft); font-size: 0.96rem; flex: 1; }
.prog__meta {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.1rem;
  padding: 0 1.6rem 1.3rem;
  font-family: var(--mono); font-size: 0.74rem; color: var(--slate); letter-spacing: 0.03em;
}
.prog__meta span { display: inline-flex; align-items: center; gap: 0.4rem; }
.prog__meta svg { width: 14px; height: 14px; color: var(--ink); }
.prog__foot {
  border-top: 1px solid var(--line); padding: 1.05rem 1.6rem;
  display: flex; align-items: center; justify-content: space-between;
  font-weight: 600; color: var(--ink); font-size: 0.95rem;
}
.prog__foot svg { width: 18px; height: 18px; transition: transform .2s ease; }
.prog:hover .prog__foot svg { transform: translateX(4px); }
@media (max-width: 900px) { .programmes { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .programmes { grid-template-columns: 1fr; } }

/* ---------- Learning path (numbered = real sequence) ---------- */
.path { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; counter-reset: step; }
.path__item { position: relative; padding-top: 2.75rem; }
.path__item::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; top: 0; left: 0;
  font-family: var(--mono); font-size: 0.95rem; color: var(--gold);
  font-weight: 600; letter-spacing: 0.05em;
}
.path__item::after {
  content: ""; position: absolute; top: 8px; left: 3.2rem; right: -0.75rem; height: 1px;
  background: linear-gradient(90deg, var(--line-dark), transparent);
}
.path__item:last-child::after { display: none; }
.section--dark .path__item h3 { color: var(--white); font-family: var(--sans); font-weight: 600; font-size: 1.15rem; letter-spacing: 0; }
.section--dark .path__item p { color: #AEB3CC; font-size: 0.95rem; margin-top: 0.5rem; }
@media (max-width: 820px) {
  .path { grid-template-columns: repeat(2, 1fr); gap: 2rem 1.5rem; }
  .path__item::after { display: none; }
}
@media (max-width: 460px) { .path { grid-template-columns: 1fr; } }

/* ---------- Faculty ---------- */
.faculty { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.person {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; text-align: left;
}
.person__photo {
  aspect-ratio: 4 / 3; background: linear-gradient(160deg, var(--ink-2), var(--ink));
  display: grid; place-items: center; color: var(--gold-soft);
  font-family: var(--serif); font-size: 2.8rem;
}
.person__body { padding: 1.35rem 1.5rem 1.6rem; }
.person__body h3 { font-family: var(--sans); font-weight: 600; font-size: 1.15rem; color: var(--ink); letter-spacing: 0; }
.person__role { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); font-weight: 600; margin-top: 0.35rem; }
.person__body p { margin-top: 0.75rem; font-size: 0.93rem; color: var(--slate-soft); }
@media (max-width: 860px) { .faculty { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .faculty { grid-template-columns: 1fr; } }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.quote {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.75rem 1.6rem; position: relative;
}
.quote__mark { font-family: var(--serif); font-size: 3.5rem; line-height: 0.5; color: var(--gold); opacity: .4; height: 1.4rem; }
.quote p { color: var(--slate); font-size: 1rem; }
.quote__by { margin-top: 1.25rem; display: flex; align-items: center; gap: 0.85rem; }
.quote__avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--ink); color: var(--gold-soft); display: grid; place-items: center; font-weight: 600; font-family: var(--mono); flex: none; }
.quote__name { font-weight: 600; color: var(--ink); font-size: 0.95rem; }
.quote__meta { font-size: 0.82rem; color: var(--slate-soft); }
@media (max-width: 860px) { .quotes { grid-template-columns: 1fr; max-width: 34rem; margin-inline: auto; } }

/* ---------- FAQ (native accordion, keyboard-friendly) ---------- */
.faq { max-width: 46rem; margin-inline: auto; }
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  list-style: none; cursor: pointer;
  padding: 1.35rem 0; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  font-family: var(--sans); font-weight: 600; color: var(--ink); font-size: 1.075rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { width: 22px; height: 22px; flex: none; position: relative; transition: transform .2s ease; }
.faq summary .plus::before, .faq summary .plus::after {
  content: ""; position: absolute; background: var(--ink); border-radius: 2px;
}
.faq summary .plus::before { top: 10px; left: 0; right: 0; height: 2px; }
.faq summary .plus::after { left: 10px; top: 0; bottom: 0; width: 2px; }
.faq details[open] summary .plus::after { opacity: 0; }
.faq details[open] summary .plus { transform: rotate(180deg); }
.faq details p { padding: 0 0 1.4rem; color: var(--slate-soft); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--ink); color: #D9DCEC; position: relative; overflow: hidden; }
.cta-band::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(50% 90% at 80% 20%, rgba(200,162,76,.14), transparent 70%);
}
.cta-band .container { position: relative; z-index: 1; text-align: center; }
.cta-band .eyebrow { color: var(--gold-soft); }
.cta-band h2 { color: var(--white); font-size: clamp(1.9rem, 4vw, 2.85rem); }
.cta-band p { margin: 1rem auto 2rem; max-width: 36rem; color: #B9BEDA; }
.cta-band__actions { display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-3); color: #A8ADCB; }
.site-footer .container { padding-block: clamp(3rem, 6vw, 4.5rem); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 2.5rem; }
.footer-col h4 { font-family: var(--sans); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 1.25rem; }
.footer-col p, .footer-col a { font-size: 0.92rem; }
.footer-col ul { list-style: none; padding: 0; display: grid; gap: 0.7rem; }
.footer-col ul a { display: inline-flex; gap: 0.55rem; align-items: baseline; transition: color .15s ease; }
.footer-col ul a:hover { color: var(--white); }
.footer-col ul a::before { content: "\203A"; color: var(--gold); font-weight: 700; }
.footer-brand .brand { color: var(--white); margin-bottom: 1rem; }
.footer-brand p { max-width: 22rem; }
.footer-contact-item { display: flex; gap: 0.75rem; margin-bottom: 1.1rem; }
.footer-contact-item svg { width: 18px; height: 18px; color: var(--gold); flex: none; margin-top: 3px; }
.footer-contact-item b { color: var(--white); font-weight: 600; display: block; font-size: 0.9rem; }
.footer-social { display: flex; gap: 0.6rem; margin-top: 1.4rem; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-dark);
  display: grid; place-items: center; color: #A8ADCB; transition: all .18s ease;
}
.footer-social a:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.footer-social svg { width: 17px; height: 17px; }
.footer-bottom {
  border-top: 1px solid var(--line-dark); margin-top: 3rem; padding-top: 1.75rem;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
  font-size: 0.85rem;
}
.footer-disclaimer {
  margin-top: 1.25rem; font-size: 0.8rem; color: #7B80A0; line-height: 1.6; max-width: 60rem;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } .footer-bottom { flex-direction: column; align-items: flex-start; } }

/* ---------- Scroll reveal (visible by default; only animates if JS enables it) ---------- */
.animate .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.animate .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .animate .reveal { opacity: 1 !important; transform: none !important; }
}

/* ============================================================
   Programme hub + course pages, WhatsApp action, compliance
   ============================================================ */

/* Trust points (replaces numeric stats) */
.stats--points .stat__num { font-size: clamp(1rem, 2.4vw, 1.35rem); line-height: 1.25; }
.stats--points .stat { display: flex; flex-direction: column; align-items: center; gap: 0.6rem; }
.stats--points .stat svg { width: 26px; height: 26px; color: var(--gold); }

/* Breadcrumb */
.breadcrumb { background: var(--ink-3); border-bottom: 1px solid var(--line-dark); }
.breadcrumb .container { display: flex; gap: 0.5rem; align-items: center; padding-block: 0.75rem; font-size: 0.82rem; color: #9EA3C2; flex-wrap: wrap; }
.breadcrumb a { color: #C9CDE4; }
.breadcrumb a:hover { color: var(--gold-soft); }
.breadcrumb span { color: #6C7191; }

/* Course hero */
.course-hero { background: var(--ink); color: #D9DCEC; position: relative; overflow: hidden; }
.course-hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 70% at 88% 10%, rgba(251,212,0,.10), transparent 70%); pointer-events: none; }
.course-hero .container { position: relative; z-index: 1; padding-block: clamp(3rem, 6vw, 4.5rem); max-width: 900px; }
.course-hero h1 { color: var(--white); font-size: clamp(2rem, 4.4vw, 3.2rem); margin-top: 1rem; }
.course-hero__lead { margin-top: 1.1rem; font-size: 1.12rem; color: #B9BEDA; max-width: 46rem; }
.course-chips { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.6rem; }
.chip { display: inline-flex; align-items: center; gap: 0.45rem; font-family: var(--mono); font-size: 0.78rem; font-weight: 500; color: #E7E9F5; background: rgba(255,255,255,.07); border: 1px solid var(--line-dark); padding: 0.4rem 0.85rem; border-radius: 8px; letter-spacing: 0.02em; }
.chip svg { width: 15px; height: 15px; color: var(--gold-soft); }
.course-hero__cta { margin-top: 1.9rem; display: flex; gap: 0.8rem; flex-wrap: wrap; }

/* Course body layout */
.course-layout { display: grid; grid-template-columns: 1fr 340px; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.course-main > * + * { margin-top: 2.75rem; }
.subhead { font-family: var(--serif); font-weight: 600; color: var(--ink); font-size: 1.45rem; margin-bottom: 1.1rem; }
.course-main p { color: var(--slate); }
.lead-p { font-size: 1.08rem; }

/* Syllabus check list */
.syllabus { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem 1.75rem; }
.check-item { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.98rem; color: var(--slate); }
.check-item svg { width: 20px; height: 20px; flex: none; color: var(--ink); margin-top: 2px; }
.check-item svg circle { fill: var(--gold); }
@media (max-width: 560px) { .syllabus { grid-template-columns: 1fr; } }

/* Plain feature rows (how it's taught / outcomes) */
.rowlist { display: grid; gap: 1rem; }
.rowitem { display: flex; gap: 0.9rem; align-items: flex-start; }
.rowitem__ic { width: 40px; height: 40px; flex: none; border-radius: 10px; background: var(--mist); color: var(--ink); display: grid; place-items: center; }
.rowitem__ic svg { width: 20px; height: 20px; }
.rowitem b { color: var(--ink); font-weight: 600; display: block; margin-bottom: 2px; }
.rowitem p { font-size: 0.96rem; color: var(--slate-soft); }

/* Sidebar glance card */
.course-aside { position: sticky; top: 96px; }
.glance-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); overflow: hidden; }
.glance-card__head { background: var(--ink); color: var(--white); padding: 1.1rem 1.4rem; font-family: var(--serif); font-weight: 600; font-size: 1.1rem; }
.glance-card__body { padding: 1.3rem 1.4rem; }
.glance-row { display: flex; justify-content: space-between; gap: 1rem; padding: 0.7rem 0; border-bottom: 1px solid var(--line); font-size: 0.92rem; }
.glance-row:last-of-type { border-bottom: 0; }
.glance-row span { color: var(--slate-soft); }
.glance-row b { color: var(--ink); font-weight: 600; text-align: right; }
.glance-card .btn { width: 100%; justify-content: center; margin-top: 1rem; }

/* Related */
.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
@media (max-width: 820px) { .related { grid-template-columns: 1fr; } }
@media (max-width: 980px) { .course-layout { grid-template-columns: 1fr; } .course-aside { position: static; } }

/* Independence / compliance note */
.independence { background: var(--mist); border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: 10px; padding: 1.1rem 1.3rem; font-size: 0.9rem; color: var(--slate); }
.independence b { color: var(--ink); }

/* WhatsApp floating action */
.wa-fab { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: inline-flex; align-items: center; gap: 0.6rem; background: #25D366; color: #073E24; font-weight: 700; font-family: var(--sans); padding: 0.8rem 1.15rem; border-radius: 999px; box-shadow: 0 12px 30px -10px rgba(0,0,0,.4); transition: transform .18s ease; }
.wa-fab:hover { transform: translateY(-3px); }
.wa-fab svg { width: 22px; height: 22px; }
.wa-fab span { font-size: 0.95rem; }
@media (max-width: 520px) { .wa-fab span { display: none; } .wa-fab { padding: 0.85rem; } }

/* ============================================================
   Homepage v2 — announcement, course finder, spotlight,
   light learning-path, founder card, notice
   ============================================================ */
.announce { background: var(--gold); color: var(--ink); text-align: center; font-weight: 600; font-size: 0.88rem; }
.announce .container { padding-block: 0.55rem; }
.announce a { text-decoration: underline; }

/* Hero microcopy */
.hero__micro { margin-top: 1.4rem; font-size: 0.9rem; color: #9EA3C2; font-family: var(--mono); letter-spacing: 0.02em; }
.hero .course-chips { margin-top: 2rem; }

/* Course finder */
.finder { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.finder .container { padding-block: clamp(2rem, 4vw, 2.75rem); display: flex; align-items: center; gap: 1.5rem 2rem; }
.finder h2 { font-size: 1.4rem; flex: none; white-space: nowrap; }

.finder__viewport { flex: 1; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%); }
.finder__track { display: flex; width: max-content; animation: finderScroll 26s linear infinite; }
.finder__viewport:hover .finder__track { animation-play-state: paused; }
.finder__links { display: flex; gap: 0.7rem; flex-wrap: nowrap; padding-right: 0.7rem; }
.finder__links a { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.6rem 1.05rem; border: 1.5px solid var(--line); border-radius: 999px; font-weight: 600; font-size: 0.92rem; color: var(--ink); white-space: nowrap; transition: all .16s ease; }
.finder__links a:hover { border-color: var(--ink); background: var(--ink); color: var(--white); }

@keyframes finderScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) {
  .finder__track { animation: none; }
  .finder__viewport { overflow: visible; -webkit-mask-image: none; mask-image: none; }
  .finder__links[aria-hidden="true"] { display: none; }
}
@media (max-width: 720px) {
  .finder .container { flex-direction: column; align-items: flex-start; gap: 1rem; }
}


/* Featured programme meta (level/duration/mode/batch) */
.prog__facts { padding: 0 1.6rem 1.3rem; display: grid; gap: 0.4rem; }
.prog__facts div { display: flex; justify-content: space-between; font-size: 0.84rem; color: var(--slate); border-bottom: 1px dashed var(--line); padding-bottom: 0.4rem; }
.prog__facts div:last-child { border-bottom: 0; }
.prog__facts span { color: var(--slate-soft); }
.prog__facts b { color: var(--ink); font-weight: 600; }

/* NISM spotlight */
.spotlight .container { max-width: 900px; }
.spotlight-card { background: var(--ink); color: #D9DCEC; border-radius: var(--radius-lg); padding: clamp(2rem, 4vw, 3rem); text-align: center; position: relative; overflow: hidden; }
.spotlight-card::after { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 90% at 50% 0%, rgba(251,212,0,.12), transparent 70%); }
.spotlight-card > * { position: relative; z-index: 1; }
.spotlight-card h2 { color: var(--white); font-size: clamp(1.6rem, 3.5vw, 2.3rem); }
.spotlight-card p { margin: 1rem auto 1.75rem; max-width: 40rem; color: #B9BEDA; }
.spotlight-note { margin-top: 1.75rem; font-size: 0.85rem; color: #9EA3C2; border-top: 1px solid var(--line-dark); padding-top: 1.25rem; }

/* Learning path — light base (used outside dark sections) */
.path__item h3 { color: var(--ink); font-family: var(--sans); font-weight: 600; font-size: 1.15rem; letter-spacing: 0; }
.path__item p { color: var(--slate-soft); font-size: 0.95rem; margin-top: 0.5rem; }
.section--dark .path__item h3 { color: var(--white); }
.section--dark .path__item p { color: #AEB3CC; }

/* Founder card */
.founder { display: grid; grid-template-columns: 40fr 60fr; gap: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-soft); align-items: stretch; }
.founder__photo { background: linear-gradient(160deg, var(--ink-2), var(--ink)); display: grid; place-items: center; color: var(--gold-soft); font-family: var(--serif); font-size: 3.5rem; min-height: 100%; padding: 0; overflow: hidden; }
.founder__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; display: block; }
.founder__body { padding: 2.25rem 2.25rem 2.25rem 2.25rem; display: flex; flex-direction: column; justify-content: center; }
.founder__body h3 { font-family: var(--serif); font-size: 1.5rem; color: var(--ink); }
.founder__role { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); font-weight: 600; margin: 0.4rem 0 1rem; }
.founder__body p { color: var(--slate); }
@media (max-width: 680px) { .founder { grid-template-columns: 1fr; } .founder__photo { min-height: 200px; } .founder__body { padding: 1.5rem; } }

/* Notice card (temporary student stories) */
.notice { max-width: 40rem; margin-inline: auto; text-align: center; background: var(--mist); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 2.25rem; }
.notice h3 { font-family: var(--serif); font-size: 1.4rem; color: var(--ink); }
.notice p { margin-top: 0.75rem; color: var(--slate-soft); }

/* 5-step process + founder credential list */
.path--five { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 900px) { .path--five { grid-template-columns: repeat(2, 1fr); gap: 2rem 1.5rem; } }
@media (max-width: 460px) { .path--five { grid-template-columns: 1fr; } }
.creds { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: 0.6rem; }
.creds li { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.93rem; color: var(--slate); }
.creds li svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--ink); }
.creds li svg circle { fill: var(--gold); }

/* ============================================================
   Forms, contact layout, thank-you page
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(2rem, 4vw, 3rem); align-items: start; }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }

.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2.25rem); box-shadow: var(--shadow-soft); }
.form-card h3 { font-family: var(--serif); font-size: 1.4rem; color: var(--ink); margin-bottom: 0.4rem; }
.form-card > p.sub { color: var(--slate-soft); font-size: 0.95rem; margin-bottom: 1.5rem; }
.field { margin-bottom: 1.05rem; }
.field label { display: block; font-weight: 600; color: var(--ink); font-size: 0.88rem; margin-bottom: 0.4rem; }
.field .req { color: #C0392B; }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.78rem 0.95rem; border: 1.5px solid var(--line); border-radius: 10px;
  font-family: var(--sans); font-size: 0.98rem; color: var(--ink); background: #fff; transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(251,212,0,.28); }
.field textarea { min-height: 110px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }
.consent { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.86rem; color: var(--slate); margin: 0.5rem 0 1.25rem; }
.consent input { width: auto; margin-top: 3px; flex: none; }
.form-card .btn { width: 100%; justify-content: center; }
.form-note { font-size: 0.8rem; color: var(--slate-soft); margin-top: 0.9rem; text-align: center; }
.form-error { display: none; background: #FDECEA; border: 1px solid #F5C6C0; color: #9B2C2C; padding: 0.8rem 1rem; border-radius: 10px; font-size: 0.9rem; margin-bottom: 1.1rem; }

.info-card { background: var(--ink); color: #D9DCEC; border-radius: var(--radius-lg); padding: 1.75rem; }
.info-card h3 { color: var(--white); font-family: var(--serif); font-size: 1.25rem; margin-bottom: 1.25rem; }
.info-item { display: flex; gap: 0.8rem; margin-bottom: 1.15rem; font-size: 0.92rem; }
.info-item svg { width: 20px; height: 20px; color: var(--gold-soft); flex: none; margin-top: 2px; }
.info-item b { color: var(--white); display: block; font-weight: 600; margin-bottom: 2px; }
.info-item a:hover { color: var(--gold-soft); }
.info-card .btn { width: 100%; justify-content: center; margin-top: 0.5rem; }

.btn--wa { background: #25D366; color: #073E24; }
.btn--wa:hover { background: #1EBE5A; }

/* Thank-you */
.ty { text-align: center; max-width: 620px; margin-inline: auto; }
.ty__check { width: 88px; height: 88px; margin: 0 auto 1.75rem; border-radius: 50%; background: var(--gold); display: grid; place-items: center; }
.ty__check svg { width: 46px; height: 46px; color: var(--ink); }
.ty h1 { font-size: clamp(2rem, 4.5vw, 3rem); color: var(--ink); }
.ty p.lead-p { font-size: 1.1rem; color: var(--slate); margin-top: 1rem; }
.ty__wa { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); padding: 2rem; margin-top: 2.5rem; }
.ty__wa h2 { font-size: 1.4rem; color: var(--ink); }
.ty__wa p { color: var(--slate-soft); margin: 0.6rem 0 1.5rem; }
.ty__actions { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; margin-top: 1.5rem; }

/* ============================================================
   Knowledge Center (blog)
   ============================================================ */
.kc-filter { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.kc-filter button { background: #fff; border: 1.5px solid var(--line); color: var(--ink); font-weight: 600; font-size: 0.88rem; padding: 0.5rem 1.05rem; border-radius: 999px; cursor: pointer; font-family: var(--sans); transition: all .15s ease; }
.kc-filter button:hover { border-color: var(--ink); }
.kc-filter button.on { background: var(--ink); color: #fff; border-color: var(--ink); }

.kc-featured { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 0; background: var(--ink); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 2.5rem; }
.kc-featured__img { background: linear-gradient(150deg, var(--ink-2), var(--ink-3)); min-height: 260px; display: grid; place-items: center; position: relative; overflow: hidden; }
.kc-featured__img svg { width: 70%; height: auto; opacity: .9; }
.kc-featured__body { padding: clamp(1.75rem, 3vw, 2.75rem); color: #D9DCEC; align-self: center; }
.kc-featured__body .post__cat { color: var(--gold-soft); }
.kc-featured__body h3 { font-family: var(--serif); color: #fff; font-size: clamp(1.4rem, 2.6vw, 2rem); margin: 0.6rem 0 0.75rem; }
.kc-featured__body p { color: #B9BEDA; }
.kc-featured__body .rm { margin-top: 1.25rem; display: inline-flex; align-items: center; gap: 0.5rem; color: var(--gold-soft); font-weight: 600; }
@media (max-width: 780px) { .kc-featured { grid-template-columns: 1fr; } }

.kc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 900px) { .kc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .kc-grid { grid-template-columns: 1fr; } }
.post { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.post:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.post__img { height: 150px; display: grid; place-items: center; background: var(--mist); }
.post__img svg { width: 52px; height: 52px; color: var(--ink); opacity: .55; }
.post__body { padding: 1.4rem 1.5rem; flex: 1; display: flex; flex-direction: column; }
.post__cat { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); font-weight: 700; }
.post h3 { font-family: var(--sans); font-weight: 600; font-size: 1.12rem; color: var(--ink); margin: 0.5rem 0 0.5rem; letter-spacing: 0; }
.post p { font-size: 0.93rem; color: var(--slate-soft); flex: 1; }
.post .rm { margin-top: 1rem; font-weight: 600; color: var(--ink); font-size: 0.9rem; display: inline-flex; align-items: center; gap: 0.4rem; }
.post .rm svg { width: 16px; height: 16px; transition: transform .2s ease; }
.post:hover .rm svg { transform: translateX(3px); }

.kc-cta { background: var(--mist); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.75rem, 3vw, 2.5rem); text-align: center; margin-top: 3rem; }
.kc-cta h3 { font-family: var(--serif); font-size: 1.5rem; color: var(--ink); }
.kc-cta p { color: var(--slate-soft); margin: 0.75rem auto 1.5rem; max-width: 34rem; }

/* ============================================================
   Mega-menu (Programmes) + Catalogue page
   ============================================================ */
.site-header .container { position: relative; }
.nav-item { position: static; display: inline-flex; align-items: center; }
.nav-item > a { display: inline-flex; align-items: center; gap: 0.32rem; }
.nav-item.has-mega > a::after { content: ""; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin-left: 0.15rem; margin-top: -3px; opacity: .75; }
.mega {
  position: absolute; top: 100%; left: 0; right: 0;
  background: #fff; border-top: 2px solid var(--gold);
  box-shadow: 0 34px 70px -22px rgba(20,23,58,.4);
  padding: 1.9rem; display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.4rem;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s; z-index: 70;
  border-radius: 0 0 16px 16px;
}
.nav-item.has-mega:hover .mega, .nav-item.has-mega:focus-within .mega { opacity: 1; visibility: visible; transform: none; }
.mega__col h4 { font-family: var(--sans); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.09em; color: var(--ink); font-weight: 700; margin-bottom: 0.7rem; padding-bottom: 0.45rem; border-bottom: 1px solid var(--line); }
.mega__col a { display: block; padding: 0.27rem 0; color: var(--slate); font-size: 0.84rem; font-weight: 500; }
.mega__col a:hover { color: var(--ink); }
.mega__col a.more { color: var(--ink); font-weight: 700; margin-top: 0.35rem; }
@media (max-width: 1120px) { .mega { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 960px) { .mega { display: none !important; } .nav-item.has-mega > a::after { display: none; } .nav-item { display: block; } }

/* Catalogue page */
.cat-nav { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.cat-nav a { padding: 0.5rem 1rem; border: 1.5px solid var(--line); border-radius: 999px; font-weight: 600; font-size: 0.85rem; color: var(--ink); transition: all .15s ease; }
.cat-nav a:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.cat-block { scroll-margin-top: 90px; }
.cat-block + .cat-block { margin-top: 3rem; padding-top: 3rem; border-top: 1px solid var(--line); }
.cat-block h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.cat-block .cat-desc { color: var(--slate-soft); margin: 0.6rem 0 1.5rem; max-width: 62rem; }
.course-pills { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0.8rem; }
.course-pill { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; padding: 0.85rem 1.05rem; border: 1px solid var(--line); border-radius: 11px; background: #fff; color: var(--ink); font-weight: 600; font-size: 0.92rem; transition: all .15s ease; }
.course-pill:hover { border-color: var(--ink); box-shadow: var(--shadow-soft); transform: translateY(-2px); }
.course-pill svg { width: 15px; height: 15px; color: var(--gold); flex: none; }
.nism-note { background: var(--mist); border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: 10px; padding: 1rem 1.25rem; font-size: 0.88rem; color: var(--slate); margin-bottom: 1.5rem; }

/* ============================================================
   Floating action stack + back-to-top
   ============================================================ */
.fab-stack { position: fixed; right: 18px; bottom: 18px; z-index: 65; display: flex; flex-direction: column; gap: 0.7rem; align-items: flex-end; }
.fab { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; box-shadow: 0 12px 28px -8px rgba(0,0,0,.4); position: relative; transition: transform .18s ease; }
.fab:hover { transform: translateY(-3px); }
.fab svg { width: 24px; height: 24px; }
.fab--wa { background: #25D366; color: #073E24; }
.fab--call { background: var(--ink); color: var(--gold); }
.fab--enq { background: var(--gold); color: var(--ink); }
.fab__label { position: absolute; right: 64px; top: 50%; transform: translateY(-50%); white-space: nowrap; background: var(--ink); color: #fff; font-size: 0.8rem; font-weight: 600; padding: 0.4rem 0.7rem; border-radius: 8px; opacity: 0; pointer-events: none; transition: opacity .15s ease; }
.fab__label::after { content: ""; position: absolute; right: -5px; top: 50%; transform: translateY(-50%); border-left: 6px solid var(--ink); border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.fab:hover .fab__label { opacity: 1; }
.fab--pulse::before { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 0 rgba(37,211,102,.5); animation: fabpulse 2.2s infinite; }
@keyframes fabpulse { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,.45);} 70% { box-shadow: 0 0 0 15px rgba(37,211,102,0);} 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0);} }
@media (prefers-reduced-motion: reduce) { .fab--pulse::before { animation: none; } }

.to-top { position: fixed; left: 18px; bottom: 18px; z-index: 65; width: 46px; height: 46px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; border: 0; cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .2s ease, transform .2s ease, visibility .2s; box-shadow: 0 10px 24px -8px rgba(0,0,0,.4); }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top svg { width: 22px; height: 22px; }
@media (max-width: 520px) { .fab { width: 50px; height: 50px; } .fab svg { width: 22px; height: 22px; } }

/* ============================================================
   Header cleanup, real logo image, three-colour brand accents
   ============================================================ */
.brand__mark--img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; background: #fff; flex: none; box-shadow: 0 0 0 1.5px rgba(0,20,77,.18), 0 2px 8px rgba(0,20,77,.12); }

.nav { flex-wrap: nowrap; }
.nav a { white-space: nowrap; font-size: 0.93rem; padding: 0.5rem 0.7rem; }
.site-header .container { gap: 1rem; }
@media (max-width: 1180px) { .nav a { padding: 0.5rem 0.55rem; font-size: 0.89rem; } }

/* Green accents pulling the third logo colour into the UI */
.badge-green { display: inline-flex; align-items: center; gap: 0.35rem; background: var(--green-soft); color: var(--green); font-weight: 700; font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.3rem 0.7rem; border-radius: 999px; }
.check-item svg circle { fill: var(--green); }
.footer-bottom-line { height: 3px; width: 100%; background: linear-gradient(90deg, var(--ink) 0%, var(--green) 50%, var(--gold) 100%); border-radius: 2px; margin-bottom: 1.5rem; }
.prog__tag--green { background: var(--green); color: #fff; }
.rowitem__ic--green { background: var(--green-soft); color: var(--green); }
.analysis-card__legend span:nth-child(2) b { color: var(--green-2); }

/* ============================================================
   Clean/light header (Proschool-style), logo-colours-only
   ============================================================ */
.topbar-clean { background: #fff; border-bottom: 1px solid var(--line); font-size: 0.85rem; }
.topbar-clean .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 40px; flex-wrap: wrap; }
.topbar-clean .tc-left { color: var(--green); font-weight: 700; }
.topbar-clean .tc-right { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.topbar-clean .tc-right a { display: inline-flex; align-items: center; gap: 0.45rem; color: var(--ink); font-weight: 600; }
.topbar-clean .tc-right svg { width: 16px; height: 16px; color: var(--gold-soft); }
.topbar-clean .tc-right a:hover { color: var(--green); }

.site-header { background: rgba(255,255,255,.97); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); box-shadow: 0 1px 0 rgba(0,20,77,.04); }
.site-header .brand__name { color: var(--ink); }
.site-header .brand__sub { color: var(--green); }
.nav a { color: var(--slate); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background: var(--mist); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 700; }
.nav-item.has-mega > a::after { border-color: currentColor; }
.nav-toggle { color: var(--ink); }

@media (max-width: 960px) {
  .nav { background: #fff; box-shadow: -20px 0 60px -20px rgba(0,0,0,.35); opacity: 1; }
  .nav a { color: var(--green); }
  .nav a:hover, .nav a[aria-current="page"] { color: var(--green-2); background: var(--mist); }
  .nav a[aria-current="page"] { font-weight: 700; }
}

.mega { border-top-color: var(--gold); }

/* Hero checklist + colour-coded quick-link grid (Proschool-style, logo colours only) */
.hero-checklist { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: 0.6rem; }
.hero-checklist li { display: flex; align-items: flex-start; gap: 0.6rem; color: #D9DCEC; font-size: 0.98rem; }
.hero-checklist svg { width: 20px; height: 20px; flex: none; margin-top: 2px; color: var(--green-2); background: rgba(15,122,77,.18); border-radius: 50%; padding: 3px; box-sizing: border-box; }

.hero-quicklinks { display: grid; grid-template-columns: repeat(2, minmax(150px,1fr)); gap: 0.85rem; margin-top: 1.6rem; max-width: 420px; }
.qlink { text-align: center; padding: 0.9rem 1rem; border-radius: 10px; font-weight: 700; font-size: 0.98rem; transition: transform .16s ease, filter .16s ease; }
.qlink:hover { transform: translateY(-2px); filter: brightness(1.06); }
.qlink--navy { background: var(--ink-2); color: #fff; border: 1px solid var(--line-dark); }
.qlink--gold { background: var(--gold); color: var(--ink); }
.qlink--green { background: var(--green); color: #fff; }
@media (max-width: 400px) { .hero-quicklinks { grid-template-columns: 1fr 1fr; max-width: none; } }

/* ============================================================
   Lead-verification: math check + honeypot
   ============================================================ */
.verify-row { display: flex; align-items: center; gap: 0.85rem; margin: 0.9rem 0 1.1rem; }
.verify-row .vsum { font-family: var(--mono); font-weight: 700; color: var(--ink); font-size: 1.02rem; white-space: nowrap; }
.verify-row input.vanswer { width: 84px; flex: none; padding: 0.7rem 0.6rem; border: 1.5px solid var(--line); border-radius: 10px; font-family: var(--sans); font-size: 0.98rem; text-align: center; color: var(--ink); }
.verify-row input.vanswer:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(251,212,0,.28); }
.verify-row .vlabel { font-size: 0.85rem; color: var(--slate-soft); }
/* honeypot: invisible to humans, visible to most bots */
.hp-field { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; opacity: 0; overflow: hidden; }

/* ============================================================
   "Need help?" header widget (real number, headset icon)
   ============================================================ */
.need-help { display: flex; align-items: center; gap: 0.65rem; padding-right: 0.9rem; margin-right: 0.4rem; border-right: 1px solid var(--line); }
.need-help__icon { width: 34px; height: 34px; color: var(--ink); flex: none; }
.need-help__text { display: flex; flex-direction: column; line-height: 1.18; }
.need-help__label { font-size: 0.72rem; font-weight: 700; color: var(--green); letter-spacing: 0.02em; }
.need-help__number { font-size: 1.02rem; font-weight: 800; color: var(--ink); white-space: nowrap; }
.need-help__number:hover { color: var(--green); }
@media (max-width: 1180px) { .need-help { display: none; } }

/* ============================================================
   Faculty page + testimonials (dark-card style, real photo)
   ============================================================ */
.fac-hero { background: var(--ink); color: #D9DCEC; }
.fac-hero .container { display: grid; grid-template-columns: 40fr 60fr; gap: clamp(2rem,4vw,3.5rem); align-items: center; padding-block: clamp(2.5rem,5vw,4rem); }
.fac-hero__photo { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line-dark); }
.fac-hero__photo img { width: 100%; display: block; }
.fac-hero h1 { color: #fff; font-size: clamp(1.9rem, 3.6vw, 2.6rem); margin-top: 0.7rem; }
.fac-hero__role { font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); font-weight: 700; margin-top: 0.5rem; }
.fac-hero p.lead-p { color: #B9BEDA; margin-top: 1.1rem; }
.fac-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 0.9rem; margin-top: 1.8rem; }
.fac-stat { background: rgba(255,255,255,.05); border: 1px solid var(--line-dark); border-radius: 12px; padding: 0.9rem 0.7rem; text-align: center; }
.fac-stat b { display: block; font-family: var(--mono); color: var(--gold); font-size: 1.1rem; }
.fac-stat span { font-size: 0.74rem; color: #AEB3CC; }
@media (max-width: 780px) { .fac-hero .container { grid-template-columns: 1fr; } .fac-stats { grid-template-columns: repeat(2,1fr); } }

/* Testimonials — dark card style matching reference */
.testi-head { text-align: center; max-width: 40rem; margin: 0 auto 2.5rem; }
.testi-head .eyebrow { justify-content: center; }
.testi-head h2 { font-size: clamp(1.8rem,3.6vw,2.5rem); margin-top: 0.8rem; position: relative; display: inline-block; padding-bottom: 0.9rem; }
.testi-head h2::after { content:""; position:absolute; bottom:0; left:50%; transform:translateX(-50%); width:90px; height:3px; background:var(--gold); border-radius:2px; }
.testi-head p { color: var(--slate-soft); margin-top: 1rem; }
.testi-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.testi-card { background: var(--ink); border-radius: var(--radius-lg); padding: 1.75rem; text-align: left; color: #D9DCEC; display: flex; flex-direction: column; }
.testi-stars { color: var(--gold); font-size: 1rem; letter-spacing: 0.15em; margin-bottom: 0.9rem; }
.testi-card__avatar { width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.08); border: 1.5px solid var(--line-dark); display: grid; place-items: center; color: var(--gold-soft); font-family: var(--sans); font-weight: 700; font-size: 0.85rem; flex: none; overflow: hidden; }
.testi-card p { font-size: 0.92rem; color: #C9CDE4; line-height: 1.65; flex: 1; }
.testi-card__by { display: flex; align-items: center; gap: 0.8rem; margin-top: 1.3rem; }
.testi-card__name { color: #fff; font-weight: 700; font-size: 0.92rem; }
.testi-card__role { color: #9EA3C2; font-size: 0.8rem; margin-top: 0.1rem; }
@media (max-width: 860px) { .testi-grid { grid-template-columns: 1fr; max-width: 26rem; margin-inline: auto; } }

/* ============================================================
   About page
   ============================================================ */
.about-hero { background: var(--ink); color: #D9DCEC; }
.about-hero .container { padding-block: clamp(2.5rem,5vw,4rem); max-width: 760px; }
.about-hero h1 { color: #fff; font-size: clamp(1.9rem,3.6vw,2.8rem); margin-top: 0.8rem; }
.about-hero p.lead-p { color: #B9BEDA; margin-top: 1.1rem; }

.value-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.25rem; }
.value-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; }
.value-card__ic { width: 42px; height: 42px; border-radius: 10px; background: var(--mist); color: var(--ink); display: grid; place-items: center; margin-bottom: 1rem; }
.value-card__ic svg { width: 22px; height: 22px; }
.value-card h3 { font-family: var(--sans); font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.value-card p { margin-top: 0.5rem; font-size: 0.92rem; color: var(--slate-soft); }
@media (max-width: 860px) { .value-grid { grid-template-columns: 1fr; max-width: 26rem; margin-inline: auto; } }

.about-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,4vw,3.5rem); align-items: center; }
@media (max-width: 860px) { .about-split { grid-template-columns: 1fr; } }

/* ============================================================
   Legal pages
   ============================================================ */
.legal { max-width: 840px; margin-inline: auto; }
.legal h1 { font-size: clamp(1.8rem,3.4vw,2.4rem); }
.legal .updated { font-family: var(--mono); font-size: 0.8rem; color: var(--slate-soft); margin-top: 0.6rem; }
.legal h2 { font-size: 1.25rem; margin-top: 2.4rem; margin-bottom: 0.8rem; color: var(--ink); }
.legal h2:first-of-type { margin-top: 1.8rem; }
.legal p, .legal li { color: var(--slate); font-size: 0.98rem; line-height: 1.75; }
.legal ul, .legal ol { padding-left: 1.3rem; margin: 0.8rem 0; }
.legal li { margin-bottom: 0.5rem; }
.legal a { color: var(--ink); text-decoration: underline; }
.legal-toc { background: var(--mist); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.5rem; margin: 1.8rem 0 2.2rem; }
.legal-toc b { display: block; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink); margin-bottom: 0.6rem; }
.legal-toc a { display: block; font-size: 0.9rem; padding: 0.2rem 0; }

/* ============================================================
   Need Help — top bar variant (moved from nav row)
   ============================================================ */
.need-help-tc { display: inline-flex; align-items: center; gap: 0.45rem; }
.need-help-tc svg { width: 18px; height: 18px; color: var(--ink); flex: none; }
.need-help-tc__text { display: flex; align-items: baseline; gap: 0.4rem; }
.need-help-tc__label { font-size: 0.78rem; font-weight: 700; color: var(--green); }
.need-help-tc__number { font-size: 0.85rem; font-weight: 800; color: var(--ink); white-space: nowrap; }
.need-help-tc:hover .need-help-tc__number { color: var(--green); }
@media (max-width: 720px) { .need-help-tc__label { display: none; } }

/* ============================================================
   Hero lead-form card (THIS BLOCK WAS MISSING — root cause of
   the invisible-label / missing-white-card bug, fixed now)
   ============================================================ */
.hero-form {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2rem);
  box-shadow: 0 30px 70px -20px rgba(0,20,77,.45);
  border-top: 4px solid var(--gold);
}
.hero-form h3 { font-family: var(--serif); color: var(--ink); font-size: 1.35rem; font-weight: 700; }
.hero-form p.sub { color: var(--slate-soft); font-size: 0.92rem; margin: 0.4rem 0 1.2rem; }
.hero-form .mini { font-size: 0.76rem; color: var(--slate-soft); text-align: center; margin-top: 0.8rem; }
@media (max-width: 860px) { .hero-form { order: 2; } }

/* ============================================================
   Brochure button — dedicated green, consistent everywhere
   ============================================================ */
.btn--green { background: var(--green); color: #fff; border-color: var(--green); }
.btn--green:hover { background: var(--green-2); border-color: var(--green-2); }

/* Live pulsing dot before "Admissions open..." */
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green); margin-right: 0.5rem; position: relative; top: -1px; }
.live-dot::before { content: ""; position: absolute; inset: -4px; border-radius: 50%; background: var(--green); opacity: 0.5; animation: liveDotPulse 1.8s ease-out infinite; }
@keyframes liveDotPulse { 0% { transform: scale(0.6); opacity: 0.6; } 100% { transform: scale(2.2); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .live-dot::before { animation: none; display: none; } }

/* Contact page — location map */
.map-card { margin-top: 1.25rem; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-soft); }
.map-card iframe { display: block; }
