/* ==========================================================================
   Kisumu Maritime Centre (KIMARCE) — site stylesheet (multi-page build)
   --------------------------------------------------------------------------
   1.  Tokens            9.  Glass course cards (home)
   2.  Base             10.  Course catalogue + cards
   3.  Layout           11.  Course detail page
   4.  Buttons          12.  People / leadership
   5.  Header & nav     13.  Gallery + lightbox
   6.  Heroes           14.  News, testimonials
   7.  Shared blocks    15.  Forms
   8.  Home sections    16.  Footer, mobile action bar
                        17.  Motion, responsive, print
   ========================================================================== */

/* 1. TOKENS ------------------------------------------------------------- */
:root {
  --navy: #0A1E3F;
  --navy-2: #102A52;
  --blue: #1B4F8A;
  --teal: #00A8A8;
  --teal-dark: #007C7C;   /* 4.9:1 on white — use for teal text */
  --gold: #D4A843;
  --gold-2: #E0B858;
  --bg: #F8F9FA;
  --surface: #FFFFFF;
  --text: #2D3748;
  --muted: #56657A;
  --border: #E2E8F0;
  --white: #FFFFFF;
  --pending: #B7791F;

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

  --container: 1180px;
  --gutter: 20px;
  --radius: 14px;
  --radius-lg: 20px;
  --header-h: 76px;
  --header-h-sm: 64px;

  --shadow-sm: 0 2px 8px rgba(10, 30, 63, .06);
  --shadow: 0 8px 24px rgba(10, 30, 63, .10);
  --shadow-lg: 0 18px 44px rgba(10, 30, 63, .18);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* 2. BASE --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-wrap: break-word;
}
body.menu-open { overflow: hidden; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 .5em;
  letter-spacing: -.015em;
}
h1 { font-size: clamp(2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.55rem, 3.2vw, 2.3rem); 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(--blue); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--teal-dark); }
.prose a, .text-link { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
ul { margin: 0; padding: 0; list-style: none; }
.prose ul, .bullets { padding-left: 1.2em; list-style: disc; margin-bottom: 1rem; }
.prose li, .bullets li { margin-bottom: .35em; }
img, svg { max-width: 100%; display: block; }
.icon { width: 1.25em; height: 1.25em; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; display: inline-block; vertical-align: middle; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 300;
  background: var(--gold); color: var(--navy); font-weight: 600;
  padding: 12px 20px; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; color: var(--navy); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* 3. LAYOUT ------------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 820px; }
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-tight { padding: clamp(40px, 6vw, 64px) 0; }
.section-alt { background: var(--surface); }
.section-dark { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 60%, #0E3561 100%); color: rgba(255,255,255,.88); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.eyebrow {
  display: inline-block; font-family: var(--font-head); font-size: .78rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--teal-dark); margin-bottom: .6rem;
}
.section-dark .eyebrow, .page-hero .eyebrow, .hero .eyebrow, .courses-glass .eyebrow, .portal-band .eyebrow { color: var(--gold); }
.section-head { max-width: 760px; margin: 0 auto 44px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.section-head p { color: var(--muted); font-size: 1.05rem; margin: 0; }
.section-dark .section-head p { color: rgba(255,255,255,.78); }
.rule::after {
  content: ""; display: block; width: 64px; height: 4px; margin: 16px auto 0; border-radius: 2px;
  background: linear-gradient(90deg, var(--teal), var(--gold));
}
.section-head.left .rule::after, .rule.left::after { margin-left: 0; }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.split.even { grid-template-columns: 1fr 1fr; }
.split.v-center { align-items: center; }
.lead { font-size: 1.12rem; color: var(--muted); }
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; } .mt-2 { margin-top: 2rem; }

/* 4. BUTTONS ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 26px; border: 2px solid transparent; border-radius: 999px;
  font-family: var(--font-head); font-size: .95rem; font-weight: 700; letter-spacing: .01em;
  cursor: pointer; white-space: nowrap; text-decoration: none;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), background-color .22s var(--ease), color .22s var(--ease), border-color .22s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: none; }
.btn-primary { background: var(--teal-dark); color: var(--white); box-shadow: 0 8px 20px rgba(0,124,124,.3); }
.btn-primary:hover { background: #006666; color: var(--white); }
.btn-gold { background: var(--gold); color: var(--navy); box-shadow: 0 8px 20px rgba(212,168,67,.32); }
.btn-gold:hover { background: var(--gold-2); color: var(--navy); }
.btn-outline { border-color: rgba(255,255,255,.75); color: var(--white); background: rgba(255,255,255,.06); }
.btn-outline:hover { background: rgba(255,255,255,.16); border-color: var(--white); color: var(--white); }
.btn-ghost { border-color: var(--blue); color: var(--blue); background: transparent; }
.btn-ghost:hover { background: var(--blue); color: var(--white); }
.btn-lg { min-height: 54px; padding: 14px 34px; font-size: 1.02rem; }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: .85rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* 5. HEADER & NAV ------------------------------------------------------- */
#header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  display: flex; align-items: center; background: transparent;
  transition: background-color .3s var(--ease), height .3s var(--ease), box-shadow .3s var(--ease);
}
body.menu-open #header, #header.scrolled {
  height: var(--header-h-sm); background: rgba(10,30,63,.97); box-shadow: 0 4px 24px rgba(10,30,63,.28);
}
#header::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(10,30,63,.78), rgba(10,30,63,0));
  transition: opacity .3s var(--ease);
}
#header.scrolled::before { opacity: 0; }
.nav-wrap { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.logo { position: relative; z-index: 2; display: flex; align-items: center; gap: 10px; color: var(--white); }
.logo:hover { color: var(--white); }
.logo-mark { width: 46px; height: 46px; flex: none; }
.logo-text { display: flex; flex-direction: column; line-height: 1.05; }
.logo-name { font-family: var(--font-head); font-size: 1.3rem; font-weight: 800; letter-spacing: .06em; }
.logo-name .dot { color: var(--teal); }
.logo-sub { font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.72); }
.nav-list { display: flex; align-items: center; gap: 22px; }
.nav-list > li { flex: none; position: relative; }
.nav-link {
  position: relative; display: inline-flex; align-items: center; gap: 4px;
  color: rgba(255,255,255,.92); font-size: .93rem; font-weight: 500; padding: 8px 0;
  background: none; border: 0; font-family: inherit; cursor: pointer;
}
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--white); }
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: 2px; width: 0; height: 2px;
  background: var(--teal); transition: width .25s var(--ease);
}
.nav-link:hover::after, .nav-link[aria-current="page"]::after, .has-sub.current > .nav-link::after { width: 100%; }
.nav-link .chev { width: 14px; height: 14px; transition: transform .2s var(--ease); }
.submenu {
  position: absolute; top: calc(100% + 8px); left: -16px; min-width: 230px; padding: 8px;
  background: var(--white); border-radius: 12px; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}
.submenu a { display: block; padding: 10px 12px; border-radius: 8px; color: var(--navy); font-size: .92rem; font-weight: 500; }
.submenu a:hover, .submenu a[aria-current="page"] { background: #EEF6F8; color: var(--teal-dark); }
@media (hover: hover) and (min-width: 1101px) {
  .has-sub:hover .submenu { opacity: 1; visibility: visible; transform: none; }
  .has-sub:hover .chev { transform: rotate(180deg); }
}
.has-sub.open .submenu { opacity: 1; visibility: visible; transform: none; }
.has-sub.open .chev { transform: rotate(180deg); }
.nav-cta { display: flex; gap: 10px; }
.nav-cta .btn { min-height: 40px; padding: 8px 18px; font-size: .86rem; box-shadow: none; }
.menu-toggle {
  display: none; position: relative; z-index: 2; width: 48px; height: 48px; padding: 0; border: 0;
  background: transparent; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.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: 98; background: rgba(10,30,63,.55); opacity: 0; transition: opacity .3s var(--ease); }
.nav-backdrop.show { opacity: 1; }

/* 6. HEROES ------------------------------------------------------------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center;
  padding: calc(var(--header-h) + 40px) 0 140px; overflow: hidden; color: var(--white);
  background: var(--navy);
}
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: 70% center; transform: scale(1.06); animation: heroZoom 22s ease-in-out infinite alternate; }
@keyframes heroZoom { to { transform: scale(1.14); } }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(10,30,63,.92) 0%, rgba(10,30,63,.7) 42%, rgba(10,30,63,.1) 78%); }
@media (max-width: 900px) { .hero-overlay { background: linear-gradient(180deg, rgba(10,30,63,.75), rgba(10,30,63,.88)); } }
.hero-content { position: relative; z-index: 2; max-width: 760px; }
.hero h1 { color: var(--white); }
.hero h1 .accent { background: linear-gradient(90deg, var(--teal), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { font-size: clamp(1.02rem, 1.6vw, 1.2rem); color: rgba(255,255,255,.88); max-width: 640px; margin-bottom: 30px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.pill {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 14px; border-radius: 999px;
  font-size: .82rem; font-weight: 600; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); color: var(--white);
}
.pill .icon { color: var(--gold); width: 16px; height: 16px; }
.wave-wrap { position: absolute; left: 0; right: 0; bottom: -1px; height: 120px; z-index: 1; pointer-events: none; }
.wave { position: absolute; bottom: 0; left: 0; width: 200%; height: 100%; }
.wave-1 { animation: waveMove 18s linear infinite; }
.wave-2 { animation: waveMove 12s linear infinite reverse; }
.wave-3 { width: 100%; }
@keyframes waveMove { to { transform: translateX(-50%); } }

.page-hero {
  position: relative; overflow: hidden; color: var(--white);
  padding: calc(var(--header-h) + clamp(48px, 7vw, 88px)) 0 clamp(56px, 8vw, 96px);
  background-color: var(--navy);
  background-image: var(--hero-img, none), linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 55%, var(--blue) 100%);
  background-size: cover; background-position: center;
}
.page-hero.has-img::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(10,30,63,.94) 0%, rgba(10,30,63,.78) 50%, rgba(10,30,63,.45) 100%); }
.page-hero .contours { position: absolute; right: -60px; top: 40px; width: min(620px, 70%); opacity: .16; pointer-events: none; }
.page-hero.has-img .contours { display: none; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: var(--white); max-width: 900px; }
.page-hero p.lead { color: rgba(255,255,255,.86); max-width: 720px; }
.crumbs { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 6px; font-size: .85rem; margin-bottom: 18px; color: rgba(255,255,255,.7); }
.crumbs a { color: rgba(255,255,255,.85); }
.crumbs a:hover { color: var(--gold); }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .6; }

/* Course hero quick-facts bar */
.facts-bar {
  position: relative; z-index: 2; margin-top: -44px;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden;
}
.fact { padding: 20px 22px; border-right: 1px solid var(--border); display: flex; gap: 12px; align-items: flex-start; }
.fact:last-child { border-right: 0; }
.fact .icon { width: 26px; height: 26px; color: var(--teal-dark); margin-top: 2px; }
.fact dt { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.fact dd { margin: 2px 0 0; font-family: var(--font-head); font-weight: 700; color: var(--navy); line-height: 1.3; }

/* 7. SHARED BLOCKS ------------------------------------------------------ */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-sm);
}
.card h3 { margin-bottom: .4em; }
.icon-card .icon-badge {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(0,168,168,.14), rgba(212,168,67,.18)); color: var(--teal-dark);
}
.icon-card .icon-badge .icon { width: 26px; height: 26px; }
.icon-card p { color: var(--muted); margin: 0; }
.check-list li { position: relative; padding-left: 32px; margin-bottom: 12px; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--teal-dark) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/14px no-repeat;
}
.section-dark .check-list li::before { background-color: var(--teal); }
.note {
  border-left: 4px solid var(--gold); background: #FFF9EC; padding: 14px 18px; border-radius: 0 10px 10px 0;
  color: #5B4A1F; font-size: .95rem;
}
.note strong { color: #3F3312; }
.source { font-size: .82rem; color: var(--muted); }
.source a { color: var(--muted); text-decoration: underline; }
.tag {
  display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: .74rem;
  font-weight: 700; letter-spacing: .04em; background: #E6F4F4; color: var(--teal-dark);
}
.tag.gold { background: #FBF3DF; color: #7A5A12; }
.tag.navy { background: #E7ECF4; color: var(--navy); }

/* Pending slot — content KIMARCE still has to supply. Set SHOW_PENDING=False
   in build.py to strip every one of these from the output. */
.pending {
  position: relative; border: 2px dashed #D9A441 !important; background: #FFFCF4 !important; box-shadow: none !important;
}
.pending-label {
  display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--pending); background: #FCEFD2; border-radius: 6px; padding: 3px 8px; margin-bottom: 10px;
}
.pending-text { color: #7A6340; font-style: italic; }

/* Accreditation badges with tooltips */
.accred-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.accred {
  position: relative; display: flex; gap: 16px; align-items: flex-start; padding: 22px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.accred-badge {
  flex: none; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--navy), var(--blue)); color: var(--gold);
  font-family: var(--font-head); font-weight: 800; font-size: .86rem; letter-spacing: .04em;
  border: 3px solid var(--gold);
}
.accred > div { min-width: 0; }
.accred p { overflow-wrap: anywhere; }
.accred h3 { font-size: 1.02rem; margin-bottom: .25em; }
.accred p { font-size: .92rem; color: var(--muted); margin: 0; }
.tip-btn {
  display: inline-grid; place-items: center; width: 22px; height: 22px; margin-left: 4px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--bg); color: var(--blue); font-size: .75rem; font-weight: 700; cursor: help; vertical-align: 2px;
}
.tip {
  position: absolute; left: 16px; right: 16px; bottom: calc(100% + 8px); z-index: 5;
  background: var(--navy); color: var(--white); font-size: .86rem; line-height: 1.5; padding: 12px 14px; border-radius: 10px;
  box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(4px); transition: .2s var(--ease);
}
.tip::after { content: ""; position: absolute; left: 30px; top: 100%; border: 7px solid transparent; border-top-color: var(--navy); }
.accred:hover .tip, .accred:focus-within .tip { opacity: 1; visibility: visible; transform: none; }

/* Stats */
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.stat { text-align: center; padding: 26px 16px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); border-top: 4px solid var(--teal); }
.stat-number { display: block; font-family: var(--font-head); font-weight: 800; font-size: clamp(2rem, 4vw, 2.8rem); color: var(--navy); line-height: 1.1; }
.stat-label { display: block; margin-top: 6px; font-size: .9rem; color: var(--muted); }
.stats-band { margin-top: -70px; position: relative; z-index: 3; }

/* CTA banner */
.cta-banner { background: linear-gradient(120deg, var(--teal-dark), var(--blue)); color: var(--white); padding: clamp(44px, 6vw, 64px) 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-banner h2 { color: var(--white); margin-bottom: .3em; }
.cta-banner p { margin: 0; color: rgba(255,255,255,.9); }

/* Ticker */
.ticker { display: flex; align-items: stretch; background: var(--navy); color: var(--white); overflow: hidden; }
.ticker-label { flex: none; display: flex; align-items: center; padding: 0 20px; background: var(--gold); color: var(--navy); font-family: var(--font-head); font-weight: 800; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; }
.ticker-viewport { flex: 1; overflow: hidden; }
.ticker-track { display: flex; width: max-content; animation: ticker 60s linear infinite; }
.ticker:hover .ticker-track, .ticker:focus-within .ticker-track, .ticker-track.paused { animation-play-state: paused; }
.ticker-item { padding: 14px 36px; white-space: nowrap; font-size: .92rem; position: relative; }
.ticker-item a { color: var(--white); }
.ticker-item a:hover { color: var(--gold); }
.ticker-item::before { content: ""; position: absolute; left: 14px; top: 50%; width: 7px; height: 7px; margin-top: -3px; border-radius: 50%; background: var(--teal); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* Accordions (native <details>) */
.accordion { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.accordion + .accordion { margin-top: 12px; }
.accordion summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 14px; padding: 18px 20px;
  font-family: var(--font-head); font-weight: 700; color: var(--navy); min-height: 56px;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary .icon-badge { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; flex: none; background: #E6F4F4; color: var(--teal-dark); }
.accordion summary .meta { margin-left: auto; font-family: var(--font-body); font-weight: 500; font-size: .85rem; color: var(--muted); white-space: nowrap; }
.accordion summary .chev { margin-left: auto; width: 18px; height: 18px; flex: none; transition: transform .2s var(--ease); color: var(--muted); }
.accordion[open] summary .chev { transform: rotate(180deg); }
.accordion .acc-body { padding: 0 20px 20px 74px; color: var(--text); }
.accordion .acc-body p:last-child, .accordion .acc-body ul:last-child { margin-bottom: 0; }

/* Timeline / steps */
.steps { counter-reset: step; display: grid; gap: 18px; }
.steps.row { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.steps.row3 { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 26px; }
.steps.row3 .step p { color: var(--text); }
.step { position: relative; padding: 24px 20px 20px; background: var(--surface); border-radius: var(--radius); border: 1px solid var(--border); }
.step::before {
  counter-increment: step; content: counter(step); position: absolute; top: -16px; left: 20px;
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--gold); color: var(--navy); font-family: var(--font-head); font-weight: 800;
}
.step h3 { font-size: 1rem; margin-top: 8px; }
.step p { font-size: .92rem; color: var(--muted); margin: 0; }

/* Career pathway */
.pathway { display: flex; align-items: stretch; gap: 0; }
.path-node {
  flex: 1; padding: 22px 18px; border-radius: var(--radius); background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.16); text-align: center;
}
.path-node.current { background: rgba(0,168,168,.22); border-color: var(--teal); }
.path-node .lvl { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--gold); font-weight: 700; }
.path-node h3 { font-size: 1.02rem; margin: 6px 0 4px; }
.path-node p { font-size: .86rem; margin: 0; color: rgba(255,255,255,.76); }
.path-arrow { flex: none; display: grid; place-items: center; width: 40px; color: var(--gold); }
.path-arrow .icon { width: 24px; height: 24px; }

/* 8. HOME ---------------------------------------------------------------- */
.why-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.founder-band { display: grid; grid-template-columns: 340px 1fr; gap: clamp(28px, 5vw, 60px); align-items: center; }
.portrait {
  position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius-lg); overflow: hidden;
  background: linear-gradient(160deg, var(--blue), var(--navy)); box-shadow: var(--shadow-lg);
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait .monogram {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 800; font-size: 4.2rem; color: rgba(255,255,255,.9); letter-spacing: .04em;
}
.portrait .monogram small { position: absolute; bottom: 16px; left: 16px; right: 16px; font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; text-align: center; color: var(--gold); }
blockquote.quote {
  margin: 0; padding: 22px 26px; border-left: 4px solid var(--gold); background: rgba(212,168,67,.08);
  border-radius: 0 12px 12px 0; font-size: 1.1rem; font-style: italic; color: var(--navy);
}
.section-dark blockquote.quote { color: var(--white); background: rgba(255,255,255,.06); }
.portal-band {
  display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center;
  padding: clamp(26px, 4vw, 40px); border-radius: var(--radius-lg);
  background: linear-gradient(120deg, var(--navy), var(--blue)); color: rgba(255,255,255,.88); box-shadow: var(--shadow-lg);
}
.portal-band h2, .portal-band h3 { color: var(--white); }
.portal-band ul { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 10px; }
.portal-band li { display: flex; gap: 8px; align-items: center; font-size: .93rem; }
.portal-band li .icon { color: var(--gold); width: 18px; height: 18px; }

/* 9. GLASS COURSE CARDS (home) ------------------------------------------ */
.courses-glass { position: relative; overflow: hidden; background: linear-gradient(160deg, #081833 0%, var(--navy) 45%, #0F3A66 100%); }
.courses-glass .section-head h2 { color: var(--white); }
.courses-glass .section-head p { color: rgba(255,255,255,.8); }
.blobs { position: absolute; inset: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; animation: blobMove 20s ease-in-out infinite alternate; }
.blob-1 { width: 420px; height: 420px; background: var(--teal); top: -80px; left: -60px; }
.blob-2 { width: 360px; height: 360px; background: var(--gold); bottom: -100px; right: 10%; animation-delay: -6s; opacity: .35; }
.blob-3 { width: 300px; height: 300px; background: var(--blue); top: 30%; right: -80px; animation-delay: -12s; }
@keyframes blobMove { to { transform: translate(60px, 40px) scale(1.12); } }
.glass-grid { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.glass-card {
  --lift: 0px; position: relative; display: flex; flex-direction: column; padding: 26px 22px; min-height: 250px;
  border-radius: var(--radius-lg); color: var(--white); isolation: isolate;
  animation: floaty var(--float-duration, 7s) ease-in-out var(--float-delay, 0s) infinite;
  transition: box-shadow .3s var(--ease);
}
.glass-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.glass-card:hover, .glass-card:focus-within { --lift: -10px; animation-play-state: paused; box-shadow: 0 24px 50px rgba(0,0,0,.35); }
@keyframes floaty { 0%, 100% { transform: translateY(var(--lift)); } 50% { transform: translateY(calc(var(--lift) - 10px)); } }
.glass-card .icon-badge { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: rgba(0,168,168,.25); color: var(--gold); margin-bottom: 16px; }
.glass-card .icon-badge .icon { width: 24px; height: 24px; }
.glass-card h3 { color: var(--white); font-size: 1.1rem; }
.glass-card .meta { font-size: .88rem; color: rgba(255,255,255,.8); margin-bottom: 14px; }
.glass-card .fee { font-family: var(--font-head); font-weight: 700; color: var(--gold); margin-top: auto; }
.glass-card a.stretched { color: var(--white); font-weight: 600; font-size: .9rem; display: inline-flex; gap: 6px; align-items: center; margin-top: 8px; }
.glass-card a.stretched::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.glass-card a.stretched:hover { color: var(--gold); }

/* 10. CATALOGUE --------------------------------------------------------- */
.explorer { display: grid; grid-template-columns: 270px 1fr; gap: 32px; align-items: start; }
.filters { position: sticky; top: calc(var(--header-h-sm) + 20px); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.filters h2 { font-size: 1.05rem; margin-bottom: 12px; }
.filter-group { border: 0; padding: 0; margin: 0 0 18px; }
.filter-group legend { font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 38px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg);
  color: var(--text); font-size: .86rem; font-weight: 500; cursor: pointer; font-family: inherit; transition: .15s var(--ease);
}
.chip:hover { border-color: var(--teal); }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
.filter-actions { display: flex; justify-content: space-between; align-items: center; gap: 10px; border-top: 1px solid var(--border); padding-top: 14px; }
.link-btn { background: none; border: 0; color: var(--blue); font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer; padding: 6px 0; text-decoration: underline; }
.results-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.results-bar p { margin: 0; color: var(--muted); }
.select-wrap select {
  min-height: 42px; padding: 8px 36px 8px 14px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface);
  font: inherit; font-size: .9rem; color: var(--text); appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2356657A' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 18px;
}
.course-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.course-card {
  position: relative; display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius);
  border: 1px solid var(--border); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.course-card:hover, .course-card:focus-within { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.course-card[hidden] { display: none; }
.cc-media {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  background-color: var(--navy);
  background-image: var(--card-img, none), linear-gradient(135deg, var(--c1, var(--navy)), var(--c2, var(--blue)));
  background-size: cover; background-position: center;
}
.cc-media .cc-icon { position: absolute; right: 16px; bottom: 12px; width: 72px; height: 72px; color: rgba(255,255,255,.35); stroke-width: 1.4; }
.cc-media.has-img .cc-icon { display: none; }
.cc-badges { position: absolute; left: 12px; top: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.cc-badges .tag { background: rgba(255,255,255,.94); }
.cc-body { flex: 1; display: flex; flex-direction: column; padding: 20px; }
.cc-body h3 { font-size: 1.08rem; margin-bottom: 10px; }
.cc-body h3 a { color: var(--navy); }
.cc-body h3 a::after { content: ""; position: absolute; inset: 0; }
.cc-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: .88rem; color: var(--muted); margin-bottom: 12px; }
.cc-meta span { display: inline-flex; gap: 6px; align-items: center; }
.cc-meta .icon { width: 16px; height: 16px; color: var(--teal-dark); }
.cc-more { font-size: .88rem; color: var(--text); border-top: 1px dashed var(--border); padding-top: 10px; margin-bottom: 12px; }
@media (hover: hover) and (pointer: fine) {
  .cc-more { max-height: 0; opacity: 0; overflow: hidden; padding-top: 0; border-color: transparent; margin: 0; transition: max-height .3s var(--ease), opacity .3s var(--ease); }
  .course-card:hover .cc-more, .course-card:focus-within .cc-more { max-height: 120px; opacity: 1; padding-top: 10px; border-color: var(--border); margin-bottom: 12px; }
}
.cc-foot { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.cc-fee { font-family: var(--font-head); font-weight: 800; color: var(--navy); }
.cc-fee.muted { font-weight: 600; font-size: .9rem; color: var(--muted); }
.cc-cta { white-space: nowrap; font-weight: 700; font-size: .9rem; color: var(--teal-dark); display: inline-flex; gap: 4px; align-items: center; }
.empty-state { text-align: center; padding: 40px 20px; border: 2px dashed var(--border); border-radius: var(--radius); color: var(--muted); }
.filter-toggle { display: none; }

/* 11. COURSE DETAIL ----------------------------------------------------- */
.course-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(28px, 4vw, 56px); align-items: start; }
.course-main > section { padding: 44px 0; border-bottom: 1px solid var(--border); }
.course-main > section:first-child { padding-top: 0; }
.course-main > section:last-child { border-bottom: 0; }
.course-main h2 { font-size: clamp(1.35rem, 2.6vw, 1.8rem); }
.aside-card { position: sticky; top: calc(var(--header-h-sm) + 20px); background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 26px; border-top: 5px solid var(--gold); }
.aside-card h2 { font-size: 1.15rem; }
.aside-card .btn { width: 100%; margin-bottom: 10px; }
.aside-list { margin: 14px 0 18px; font-size: .93rem; }
.aside-list li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--border); }
.aside-list li span:first-child { color: var(--muted); }
.aside-list li span:last-child { font-weight: 600; color: var(--navy); text-align: right; }
.downloads { display: grid; gap: 12px; }
.download {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--surface); color: var(--navy); font-weight: 600;
}
.download:hover { border-color: var(--teal); color: var(--teal-dark); }
.download .icon { width: 28px; height: 28px; color: var(--teal-dark); }
.download small { display: block; font-weight: 400; color: var(--muted); font-size: .82rem; }
.outcome-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.outcome { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); }
.outcome .icon { width: 24px; height: 24px; color: var(--teal-dark); margin-top: 2px; }
.outcome strong { display: block; color: var(--navy); font-family: var(--font-head); font-size: .96rem; }
.outcome span { font-size: .88rem; color: var(--muted); }
.related { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }

/* 12. PEOPLE ------------------------------------------------------------ */
.profile { display: grid; grid-template-columns: 300px 1fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
.profile + .profile { margin-top: 56px; padding-top: 56px; border-top: 1px solid var(--border); }
.profile .role { color: var(--teal-dark); font-weight: 700; font-family: var(--font-head); margin-bottom: 4px; }
.profile .creds { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 18px; }
.team-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.team-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.team-card .portrait { aspect-ratio: 1 / 1; border-radius: 0; box-shadow: none; }
.team-card .portrait .monogram { font-size: 2.6rem; }
.team-body { padding: 20px; }
.team-body h3 { margin-bottom: 2px; font-size: 1.05rem; }
.team-body .role { color: var(--teal-dark); font-weight: 600; font-size: .9rem; margin-bottom: 10px; }
.team-body p { font-size: .9rem; color: var(--muted); }
.team-body .field { font-size: .82rem; color: #7A6340; border-top: 1px dashed #E8D3A6; padding-top: 10px; margin-top: 10px; }

/* 13. GALLERY ----------------------------------------------------------- */
.gallery-filters { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 28px; }
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.g-item { margin: 0; position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--navy); }
.g-item[hidden] { display: none; }
.g-item.wide { grid-column: span 2; aspect-ratio: 8 / 3; }
.gallery { grid-auto-flow: dense; }
.g-item button { all: unset; display: block; width: 100%; height: 100%; cursor: zoom-in; }
.g-item button:focus-visible { outline: 3px solid var(--teal); outline-offset: -3px; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.g-item:hover img { transform: scale(1.05); }
.g-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 12px 10px; font-size: .82rem; color: var(--white); background: linear-gradient(transparent, rgba(10,30,63,.88)); }
.g-slot {
  display: flex; flex-direction: column; justify-content: flex-end; height: 100%; padding: 14px; color: rgba(255,255,255,.9);
  background: linear-gradient(135deg, var(--c1, var(--navy)), var(--c2, var(--blue)));
  border: 2px dashed rgba(212,168,67,.7); border-radius: 12px;
}
.g-slot .icon { width: 34px; height: 34px; color: rgba(255,255,255,.45); margin-bottom: auto; }
.g-slot strong { font-size: .88rem; font-family: var(--font-head); }
.g-slot small { font-size: .74rem; color: var(--gold); word-break: break-all; }
.lightbox { position: fixed; inset: 0; z-index: 400; background: rgba(5,14,30,.94); display: none; align-items: center; justify-content: center; padding: 60px 16px; }
.lightbox.open { display: flex; }
.lightbox figure { margin: 0; max-width: 1100px; width: 100%; text-align: center; }
.lightbox img { max-height: 78vh; margin: 0 auto; border-radius: 10px; object-fit: contain; }
.lightbox figcaption { color: rgba(255,255,255,.85); margin-top: 12px; font-size: .95rem; }
.lb-btn { position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: var(--white); cursor: pointer; display: grid; place-items: center; }
.lb-btn:hover { background: rgba(255,255,255,.25); }
.lb-close { top: 14px; right: 14px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }

/* Lite video embed — loads the YouTube player only on click */
.video {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; background: #000 center/cover no-repeat;
  box-shadow: var(--shadow-lg);
}
.video button { all: unset; position: absolute; inset: 0; cursor: pointer; display: grid; place-items: center; background: linear-gradient(transparent 40%, rgba(10,30,63,.8)); }
.video .play { width: 76px; height: 76px; border-radius: 50%; background: var(--gold); display: grid; place-items: center; color: var(--navy); box-shadow: 0 10px 30px rgba(0,0,0,.4); transition: transform .2s var(--ease); }
.video button:hover .play, .video button:focus-visible .play { transform: scale(1.08); }
.video .play svg { width: 30px; height: 30px; fill: currentColor; stroke: none; margin-left: 4px; }
.video .v-cap { position: absolute; left: 20px; right: 20px; bottom: 16px; color: var(--white); font-weight: 600; font-size: .95rem; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* 14. NEWS & TESTIMONIALS ----------------------------------------------- */
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.news-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.news-card .nc-top { height: 8px; background: linear-gradient(90deg, var(--teal), var(--gold)); }
.news-card .nc-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.news-card time { font-size: .82rem; color: var(--muted); }
.news-card h3 { font-size: 1.06rem; margin: 8px 0 10px; }
.news-card p { font-size: .93rem; color: var(--text); }
.news-card .nc-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: .86rem; }
.article { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(22px, 4vw, 40px); scroll-margin-top: calc(var(--header-h-sm) + 20px); }
.article + .article { margin-top: 28px; }
.article header { margin-bottom: 14px; }
.article h2 { font-size: clamp(1.3rem, 2.6vw, 1.7rem); margin: 10px 0 6px; }
.article .meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: .86rem; color: var(--muted); }
.news-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; }
.news-side { position: sticky; top: calc(var(--header-h-sm) + 20px); }
.news-side ul li { padding: 8px 0; border-bottom: 1px solid var(--border); font-size: .92rem; }
.testimonial { display: flex; flex-direction: column; gap: 14px; background: var(--surface); border-radius: var(--radius-lg); padding: 28px; border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.section-dark .testimonial:not(.pending) { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); }
.section-dark .testimonial:not(.pending) p { color: rgba(255,255,255,.88); }
.testimonial .who { display: flex; gap: 12px; align-items: center; margin-top: auto; }
.testimonial .avatar { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; background: var(--gold); color: var(--navy); flex: none; }
.testimonial .who strong { display: block; color: var(--navy); }
.section-dark .testimonial:not(.pending) .who strong { color: var(--white); }
.testimonial .who span { font-size: .85rem; color: var(--muted); }
.section-dark .testimonial:not(.pending) .who span { color: rgba(255,255,255,.7); }
.section-dark .pending, .section-dark .pending h3 { color: var(--text); }

/* 15. FORMS ------------------------------------------------------------- */
.form-card { background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: clamp(22px, 4vw, 36px); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label, .field .label { font-size: .88rem; font-weight: 600; color: var(--navy); }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 11px 14px; border-radius: 10px; border: 1.5px solid #CBD5E1;
  background: var(--white); font: inherit; font-size: 16px; color: var(--text); transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal-dark); box-shadow: 0 0 0 3px rgba(0,168,168,.2); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #C53030; }
.field .err { font-size: .82rem; color: #C53030; min-height: 0; }
.field .hint { font-size: .82rem; color: var(--muted); }
.field .consent, .consent { display: flex; flex-direction: row; gap: 10px; align-items: flex-start; font-size: .88rem; font-weight: 400; color: var(--muted); }
.consent input { width: 20px; height: 20px; margin-top: 3px; flex: none; accent-color: var(--teal-dark); }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 14px; padding: 14px 16px; border-radius: 10px; font-weight: 500; display: none; }
.form-status.ok { display: block; background: #E6F6EF; color: #1E6B47; }
.form-status.bad { display: block; background: #FDECEC; color: #9B2C2C; }
.form-card button[type="submit"][disabled] { opacity: .7; cursor: progress; }
.contact-cards { display: grid; gap: 14px; }
.contact-card { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); }
.contact-card .icon { width: 24px; height: 24px; color: var(--teal-dark); margin-top: 2px; }
.contact-card strong { display: block; color: var(--navy); }
.map { border: 0; width: 100%; height: 360px; border-radius: var(--radius-lg); box-shadow: var(--shadow); background: #DDE6EE; }
.map-slot { display: grid; place-items: center; height: 360px; border-radius: var(--radius-lg); background: linear-gradient(135deg, #DDE9F2, #F0F5F9); text-align: center; padding: 20px; }
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
table.fees { width: 100%; border-collapse: collapse; font-size: .94rem; min-width: 640px; }
table.fees th, table.fees td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
table.fees thead th { background: var(--navy); color: var(--white); font-family: var(--font-head); font-size: .85rem; letter-spacing: .03em; }
table.fees tbody tr:last-child td { border-bottom: 0; }
table.fees tbody tr:nth-child(even) { background: #FAFBFC; }

/* 16. FOOTER + MOBILE ACTION BAR ---------------------------------------- */
.footer { background: #071630; color: rgba(255,255,255,.74); padding: 64px 0 0; font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
.footer h2 { color: var(--white); font-size: .95rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 14px; }
.footer a { color: rgba(255,255,255,.78); }
.footer a:hover { color: var(--gold); }
.footer li { margin-bottom: 8px; }
.footer .logo { margin-bottom: 14px; }
.footer-accred { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.footer-accred span { padding: 4px 10px; border: 1px solid rgba(255,255,255,.2); border-radius: 6px; font-size: .74rem; font-weight: 700; letter-spacing: .06em; color: var(--gold); }
.footer-bottom { margin-top: 44px; border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0; font-size: .84rem; }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.action-bar { display: none; }

/* 17. MOTION ------------------------------------------------------------ */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.visible { opacity: 1; transform: none; }

/* PHOTOS ---------------------------------------------------------------- */
.hero-slides { position: absolute; inset: 0; }
.hero-slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; animation: slideFade 36s infinite; transform: scale(1.04); }
@keyframes slideFade { 0% { opacity: 0; transform: scale(1.04); } 3% { opacity: 1; } 16.7% { opacity: 1; } 20% { opacity: 0; transform: scale(1.1); } 100% { opacity: 0; } }
.hero-captions { position: absolute; right: 16px; bottom: 126px; z-index: 3; margin: 0; padding: 0; list-style: none; width: min(520px, calc(100% - 32px)); text-align: right; }
.hero-captions li { position: absolute; right: 0; bottom: 0; white-space: nowrap; max-width: 100%; font-size: .74rem; color: rgba(255,255,255,.78); background: rgba(10,30,63,.55); padding: 4px 10px; border-radius: 6px; opacity: 0; animation: slideFade 36s infinite; }
.hero-captions a, .hero-credit a, .g-cap small a { color: inherit; text-decoration: underline; }
.hero-credit { position: absolute; right: 16px; top: calc(var(--header-h) + 10px); z-index: 2; margin: 0; font-size: .72rem; color: rgba(255,255,255,.72); background: rgba(10,30,63,.5); padding: 3px 9px; border-radius: 6px; }
.cc-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.course-card:hover .cc-media img { transform: scale(1.05); }
.cc-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,30,63,.35) 0%, transparent 40%); pointer-events: none; }
.cc-badges { z-index: 1; }
.g-cap small { display: block; font-size: .7rem; opacity: .8; margin-top: 2px; }
.footer { position: relative; isolation: isolate; }
.footer-bg { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center 40%; filter: grayscale(1) contrast(1.05); }
.footer::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(7,22,48,.92) 0%, rgba(7,22,48,.72) 45%, rgba(7,22,48,.92) 100%); }

/* Courses page header slideshow */
.page-hero.has-slides { background-image: none; }
.ps-slides { position: absolute; inset: 0; z-index: 0; }
.ps-slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transform: scale(1.03); transition: opacity 1.2s var(--ease), transform 6s linear; }
.ps-slide.active { opacity: 1; transform: scale(1.09); }
.page-hero.has-slides::before { z-index: 1; }
.page-hero.has-slides .container { z-index: 2; }
.ps-labels { position: absolute; left: 0; right: 0; bottom: 22px; z-index: 2; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); height: 36px; }
.ps-label { position: absolute; left: var(--gutter); bottom: 0; display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3); color: #fff; font-size: .84rem; font-weight: 600; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .6s var(--ease), transform .6s var(--ease), visibility .6s; backdrop-filter: blur(4px); }
.ps-label .icon { width: 15px; height: 15px; color: var(--gold); }
.ps-label.active { opacity: 1; visibility: visible; transform: none; }
.ps-label:hover { background: rgba(255,255,255,.24); color: #fff; }
.ps-dots { position: absolute; right: max(var(--gutter), calc((100% - var(--container)) / 2 + var(--gutter))); bottom: 32px; z-index: 2; display: flex; gap: 6px; }
.ps-dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: rgba(255,255,255,.45); cursor: pointer; transition: width .3s var(--ease), background .3s; }
.ps-dot.active { width: 22px; background: var(--gold); }
.page-hero.has-slides { padding-bottom: clamp(88px, 10vw, 120px); }

/* Accreditation logos in the footer */
.accred-strip { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; padding-bottom: 36px; margin-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.12); }
.accred-strip p { margin: 0; font-family: var(--font-head); font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.accred-strip ul { display: flex; flex-wrap: wrap; gap: 14px; }
.accred-strip li { margin: 0; }
.accred-strip a { display: grid; place-items: center; height: 84px; min-width: 110px; padding: 10px 16px; background: #fff; border-radius: 12px; box-shadow: 0 4px 14px rgba(0,0,0,.25); transition: transform .2s var(--ease); }
.accred-strip a:hover { transform: translateY(-2px); }
.accred-strip img { max-height: 64px; width: auto; }
.accred-strip li.wide img { max-height: 48px; }

/* RESPONSIVE ------------------------------------------------------------ */
@media (max-width: 1140px) {
  .glass-grid, .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .course-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps.row { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 30px; }
}
@media (max-width: 1100px) {
  .menu-toggle { display: flex; }
  #nav {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 1; width: min(360px, 88vw);
    padding: calc(var(--header-h-sm) + 16px) 22px 28px; background: var(--navy); overflow-y: auto;
    transform: translateX(100%); visibility: hidden; transition: transform .32s var(--ease), visibility .32s;
  }
  #nav.open { transform: none; visibility: visible; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list > li { border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav-link { width: 100%; justify-content: space-between; padding: 14px 0; font-size: 1.02rem; min-height: 48px; }
  .nav-link::after { display: none; }
  .submenu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: transparent; padding: 0 0 10px 12px; display: none; min-width: 0; }
  .has-sub.open .submenu { display: block; }
  .submenu a { color: rgba(255,255,255,.85); padding: 10px 12px; }
  .submenu a:hover, .submenu a[aria-current="page"] { background: rgba(255,255,255,.08); color: var(--gold); }
  .nav-cta { flex-direction: column; margin-top: 18px; border: 0 !important; }
  .nav-cta .btn { min-height: 50px; font-size: .95rem; }
  .explorer { grid-template-columns: 1fr; }
  .filters { position: static; display: none; }
  .filters.open { display: block; }
  .filter-toggle { display: inline-flex; }
  .course-layout { grid-template-columns: 1fr; }
  .aside-card { position: static; }
  .news-layout { grid-template-columns: 1fr; }
  .news-side { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .grid-3, .grid-4, .accred-grid, .news-grid, .team-grid, .related { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split, .split.even, .founder-band, .profile { grid-template-columns: 1fr; }
  .founder-band .portrait, .profile .portrait { max-width: 300px; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact:nth-child(2) { border-right: 0; }
  .fact:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .portal-band { grid-template-columns: 1fr; }
  .pathway { flex-direction: column; }
  .path-arrow { width: auto; height: 34px; transform: rotate(90deg); }
}
@media (max-width: 700px) {
  :root { --gutter: 16px; }
  html { scroll-padding-top: calc(var(--header-h-sm) + 12px); }
  .grid-2, .grid-3, .grid-4, .accred-grid, .news-grid, .team-grid, .related, .glass-grid, .why-grid, .course-grid, .outcome-grid, .form-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .g-item.wide { grid-column: span 2; }
  .steps.row, .steps.row3 { grid-template-columns: 1fr; row-gap: 30px; }
  .hero { padding-bottom: 120px; }
  .ps-dots { display: none; }
  .ps-labels { bottom: 18px; }
  .hero-captions { bottom: 112px; right: 12px; }
  .hero-captions li { font-size: .66rem; white-space: normal; }
  .hero-credit { font-size: .66rem; left: 12px; right: 12px; text-align: right; background: none; }
  .hero .btn-row .btn { flex: 1 1 100%; }
  .glass-card { animation: none; min-height: 0; }
  .glass-card::before { -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
  .blob { filter: blur(56px); }
  .blob-3 { display: none; }
  .accordion .acc-body { padding-left: 20px; }
  .accordion summary .meta { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .accred-strip { gap: 14px; }
  .accred-strip ul { gap: 10px; }
  .accred-strip a { height: 70px; min-width: 0; padding: 8px 12px; }
  .accred-strip img { max-height: 52px; }
  .accred-strip li.wide img { max-height: 36px; }
  .logo-sub { display: none; }
  .ticker-label { padding: 0 12px; font-size: .7rem; }
  .cta-inner .btn { width: 100%; }
  body { padding-bottom: 68px; }
  .action-bar {
    display: grid; grid-template-columns: repeat(3, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    background: var(--navy); box-shadow: 0 -6px 20px rgba(0,0,0,.2); padding-bottom: env(safe-area-inset-bottom);
  }
  .action-bar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 60px; color: var(--white); font-size: .76rem; font-weight: 600; }
  .action-bar a .icon { width: 22px; height: 22px; color: var(--gold); }
  .action-bar a.primary { background: var(--teal-dark); }
  .action-bar a.primary .icon { color: var(--white); }
}
@media (max-width: 420px) {
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat { padding: 18px 10px; }
  .facts-bar { grid-template-columns: 1fr; }
  .fact { border-right: 0 !important; border-bottom: 1px solid var(--border); }
  .fact:last-child { border-bottom: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide:first-child, .hero-captions li:first-child { opacity: 1; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
@media print {
  #header, .action-bar, .ticker, .nav-backdrop, .wave-wrap, .cta-banner, .aside-card .btn { display: none !important; }
  .hero, .page-hero { min-height: 0; padding: 20px 0; background: none !important; color: #000; }
  .page-hero h1, .hero h1 { color: #000; }
  body { background: #fff; }
}
