
/* ================================================================
   EM TRAININGS — Brand-compliant visual system
   Agency-grade upgrade aligned with EM Advisory Guidelines v1.3
   Master logo palette: Navy #151247 · Ember #F06831 · White #FFFFFF
   Typography: Bricolage Grotesque + Inter + IBM Plex Mono
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400;12..96,500;12..96,600;12..96,700;12..96,800&family=Inter:wght@400;500;600;700;800&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
  --navy: #151247;
  --navy-deep: #09072B;
  --navy-soft: #292560;
  --orange: #F06831;
  --orange-bright: #FF8452;
  --orange-text: #B94A1E;
  --orange-soft: rgba(240, 104, 49, 0.13);
  --cream: #FAF7F2;
  --cream-warm: #F4EFE7;
  --paper: #FFFFFF;
  --ink: #11142E;
  --muted: #5E6475;
  --muted-2: #8A8FA0;
  --line: rgba(21,18,71,0.12);
  --line-2: rgba(21,18,71,0.07);
  --display: 'Bricolage Grotesque', 'Inter', system-ui, sans-serif;
  --body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --container: 1240px;
  --gutter: clamp(20px, 4vw, 56px);
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 22px 70px -46px rgba(9,7,43,.72);
  --shadow-card: 0 20px 50px -38px rgba(9,7,43,.5);
  --ease: cubic-bezier(.16,1,.3,1);
}

html { scroll-padding-top: 96px; }
body {
  font-family: var(--body) !important;
  background:
    radial-gradient(circle at 4% 0%, rgba(240,104,49,.065), transparent 34rem),
    radial-gradient(circle at 92% 10%, rgba(21,18,71,.055), transparent 30rem),
    var(--cream) !important;
  color: var(--ink);
  font-feature-settings: 'cv02','cv03','cv04','cv11';
}
body::before {
  background-image:
    linear-gradient(rgba(21,18,71,.030) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21,18,71,.030) 1px, transparent 1px),
    radial-gradient(circle at 76% 20%, rgba(240,104,49,.035), transparent 36rem) !important;
  background-size: 80px 80px, 80px 80px, auto !important;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.65), transparent 76%);
}

::selection { background: var(--orange); color: white; }
:focus-visible { outline: 3px solid rgba(240,104,49,.45); outline-offset: 3px; }

.display,
.logo,
.section-head h2,
.overview-grid h2,
.outcomes-head h2,
.curr-head h2,
.apply-intro h2,
.fac-head h2,
.why-head h2,
.fees-head h2,
.final-cta h2,
.cta-box h2,
.hero-stat .num,
.price,
.programme-title,
.programme-info h3,
.outcome h3,
.why-item h3,
.fac-card h3,
.cohort-card .when,
.trust-items .item,
footer h2 {
  font-family: var(--display) !important;
  font-variation-settings: normal !important;
}

.display, h1, h2, h3 { letter-spacing: -0.035em !important; }
.display em, h1 em, h2 em, h3 em { font-style: normal !important; color: var(--orange) !important; }
p { text-wrap: pretty; }

.eyebrow,
.logo-text .small,
.trust-label,
.nav-cta,
.btn,
.breadcrumb,
.programme-num,
.programme-meta,
.curr-head .totals,
.day-num,
.fact .k,
.fact .v,
.form-field label,
.footer-foot,
.marquee,
.num,
.cohort-month,
.cohort-format,
.price-note,
.currency {
  font-family: var(--mono) !important;
  letter-spacing: .12em;
}

.eyebrow { color: var(--orange-text) !important; font-weight: 600 !important; }

/* Header */
.site-header {
  background: rgba(250,247,242,.86) !important;
  border-bottom: 1px solid rgba(21,18,71,.08) !important;
  box-shadow: 0 16px 40px rgba(9,7,43,.035);
}
.site-header.scrolled { background: rgba(250,247,242,.94) !important; border-bottom-color: rgba(21,18,71,.13) !important; }
.nav { height: 88px !important; }
.logo { gap: 14px !important; color: var(--navy) !important; font-size: 23px !important; font-weight: 800 !important; }
.logo-mark {
  width: 50px !important; height: 50px !important;
  background: transparent !important; border-radius: 50% !important;
  box-shadow: 0 10px 24px rgba(21,18,71,.18);
  border: 1px solid rgba(21,18,71,.08);
}
.logo-mark img { width: 100% !important; height: 100% !important; object-fit: contain !important; }
.logo-text .small { color: var(--orange-text) !important; font-size: 9.5px !important; margin-top: 7px !important; font-weight: 700 !important; }
.nav-links { gap: 30px !important; }
.nav-links a { font-size: 12px !important; text-transform: uppercase; color: rgba(17,20,46,.78) !important; }
.nav-links a:hover { color: var(--orange-text) !important; }
.nav-links a::after { background: var(--orange) !important; height: 2px !important; bottom: -8px !important; }
.nav-cta {
  border-radius: var(--radius-sm) !important;
  background: var(--navy) !important;
  color: white !important;
  box-shadow: 0 16px 30px -24px rgba(21,18,71,.9);
  text-transform: uppercase;
}
.nav-cta:hover { background: var(--orange) !important; transform: translateY(-2px); }
.nav-toggle span { background: var(--navy) !important; }
.nav-mobile { border: 1px solid var(--line) !important; border-radius: var(--radius) !important; background: rgba(250,247,242,.98) !important; box-shadow: var(--shadow-card); }

/* Marquee */
.marquee { background: var(--navy-deep) !important; color: rgba(255,255,255,.84) !important; border-bottom: 1px solid rgba(255,255,255,.08) !important; }
.marquee-track .dot { background: var(--orange) !important; box-shadow: 0 0 0 5px rgba(240,104,49,.13); }

/* Buttons */
.btn, .cohort-cta, .programme-cta, .form-submit button {
  border-radius: var(--radius-sm) !important;
  font-weight: 750 !important;
  letter-spacing: .02em !important;
}
.cohort-card .cohort-cta {
  box-sizing: border-box;
  justify-content: center;
  line-height: 1.15;
  max-width: 100%;
  padding: 14px 20px;
  text-align: center;
}
.cohort-card .cohort-cta .arrow { flex: 0 0 auto; }
.btn-primary,
.form-submit button,
.cohort-card.featured .cohort-cta {
  background: var(--orange) !important;
  color: #fff !important;
  box-shadow: 0 16px 34px -26px rgba(240,104,49,.75);
}
.btn-primary:hover,
.form-submit button:hover,
.cohort-card.featured .cohort-cta:hover { background: #D85D2C !important; transform: translateY(-2px); }
.btn-ghost { border: 1.5px solid currentColor !important; color: inherit !important; background: transparent !important; }
.hero .btn-ghost, .p-hero .btn-ghost { color: white !important; border-color: rgba(255,255,255,.55) !important; }
.btn-ghost:hover { background: var(--navy) !important; color: white !important; }

/* Hero / signature system */
.hero,
.p-hero {
  background:
    radial-gradient(circle at 88% 12%, rgba(240,104,49,.18), transparent 24rem),
    linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 56%, #1F1B5A 100%) !important;
  color: white !important;
  isolation: isolate;
  overflow: hidden;
}
.hero { padding: clamp(76px, 11vh, 132px) 0 clamp(92px, 13vh, 154px) !important; }
.p-hero { padding: 52px 0 clamp(72px, 9vh, 120px) !important; }
.hero::before,
.p-hero::before {
  content: '' !important; position: absolute; inset: 0; z-index: -2;
  background-image:
    linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px),
    radial-gradient(circle at 35% 44%, rgba(255,255,255,.065) 0 1px, transparent 2px);
  background-size: 70px 70px, 70px 70px, 80px 80px;
  mask-image: radial-gradient(ellipse at 36% 40%, #000 0 35%, transparent 72%);
}
.hero::after,
.p-hero::after {
  content: '' !important; position: absolute; right: -11vw; top: -18%; width: min(46vw, 680px); height: 140%; z-index: -1;
  background: linear-gradient(180deg, rgba(240,104,49,.96), rgba(240,104,49,.22));
  clip-path: polygon(54% 0, 100% 0, 47% 100%, 0% 100%);
  filter: drop-shadow(-24px 0 44px rgba(240,104,49,.12));
  opacity: .88;
}
.hero h1,
.p-hero h1 { color: white !important; font-weight: 800 !important; max-width: 950px; }
.hero h1 em,
.p-hero h1 em { color: var(--orange-bright) !important; }
.hero-lead,
.p-hero .promise { color: rgba(255,255,255,.78) !important; }
.hero-lead strong,
.p-hero .promise strong { color: white !important; }
.hero-side {
  padding: 34px !important; border-top: 0 !important;
  border: 1px solid rgba(255,255,255,.14) !important;
  border-radius: var(--radius) !important;
  background: linear-gradient(180deg, rgba(255,255,255,.105), rgba(255,255,255,.045)) !important;
  backdrop-filter: blur(12px);
  box-shadow: 0 32px 80px -50px rgba(0,0,0,.55);
}
.hero-stat + .hero-stat { border-top: 1px solid rgba(255,255,255,.12); padding-top: 24px; }
.hero-stat .num { color: white !important; font-weight: 800 !important; }
.hero-stat .num em { color: var(--orange-bright) !important; }
.hero-stat .lbl { color: rgba(255,255,255,.7) !important; }

/* Detail hero card */
.p-aside,
.cta-box,
.form-card,
.fees-card,
.cohort-card,
.fac-card,
.why-item,
.outcome,
.day,
.programme {
  border-radius: var(--radius) !important;
  border: 1px solid var(--line) !important;
  box-shadow: var(--shadow-card);
}
.p-aside {
  background: rgba(255,255,255,.96) !important;
  color: var(--ink) !important;
  border: 1px solid rgba(255,255,255,.35) !important;
  box-shadow: 0 34px 80px -50px rgba(0,0,0,.65) !important;
  backdrop-filter: blur(14px);
}
.p-aside h4 { color: var(--navy) !important; }
.p-aside .price { color: var(--navy) !important; font-weight: 800 !important; }
.p-aside .price .currency { color: var(--orange-text) !important; }
.fact { border-bottom-color: var(--line) !important; }
.fact .k { color: var(--muted) !important; }
.fact .v { color: var(--navy) !important; font-weight: 700 !important; }
.call-row, .call-row a { color: var(--muted) !important; }
.call-row a { color: var(--orange-text) !important; }
.p-aside h4,
.p-aside .price-note,
.p-aside .fact .k,
.p-aside .fact .v,
.p-aside .btn,
.p-aside .call-row,
.p-aside .call-row a {
  font-family: var(--body) !important;
  letter-spacing: 0 !important;
}
.virtual-badge {
  background: rgba(240,104,49,.14) !important;
  color: var(--orange-bright) !important;
  border-color: rgba(240,104,49,.35) !important;
  border-radius: 999px !important;
}
.virtual-badge .pulse,
.virtual-badge .pulse::after { background: var(--orange-bright) !important; }

/* Breadcrumb */
.breadcrumb { color: var(--muted) !important; padding-top: 26px !important; }
.breadcrumb a:hover { color: var(--orange-text) !important; }
.breadcrumb .current { color: var(--navy) !important; }

/* Sections */
.trust,
.apply,
.outcomes,
.fees,
.final-cta { background: var(--cream-warm) !important; border-color: var(--line) !important; }
.programmes,
.overview,
.curriculum,
.faculty,
.why,
.audience { background: transparent !important; }
.section-head h2,
.overview-grid h2,
.outcomes-head h2,
.curr-head h2,
.apply-intro h2,
.fac-head h2,
.why-head h2,
.fees-head h2 { color: var(--navy) !important; font-weight: 800 !important; }
.section-head h2 em,
.overview-grid h2 em,
.outcomes-head h2 em,
.curr-head h2 em,
.apply-intro h2 em,
.fac-head h2 em,
.why-head h2 em,
.fees-head h2 em { color: var(--orange) !important; }
.head-meta, .overview-body p, .why-item p, .fac-card p, .aud-intro p, .apply-intro p { color: var(--muted) !important; }
.overview-quote {
  color: var(--navy) !important;
  border-left: 0 !important;
  padding: 28px 30px !important;
  border-radius: var(--radius) !important;
  background: white !important;
  box-shadow: var(--shadow-card);
  position: relative;
}
.overview-quote::before {
  content: '';
  position: absolute; left: 0; top: 18px; bottom: 18px; width: 5px;
  background: var(--orange); border-radius: 0 6px 6px 0;
}

/* Programme list / cards */
.programme-list { gap: 18px !important; }
.programme {
  padding: 34px 32px !important;
  background: rgba(255,255,255,.86) !important;
  border-top: 1px solid var(--line) !important;
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s var(--ease) !important;
  overflow: hidden;
}
.programme::before {
  content: ''; position: absolute; right: -90px; top: -40px; width: 220px; height: 220px;
  background: var(--orange-soft); transform: rotate(28deg); opacity: 0; transition: opacity .28s var(--ease);
}
.programme:hover { transform: translateY(-4px); border-color: rgba(240,104,49,.35) !important; box-shadow: 0 30px 70px -45px rgba(9,7,43,.6) !important; }
.programme:hover::before { opacity: 1; }
.programme-num { color: var(--orange-text) !important; }
.programme-info h3 { color: var(--navy) !important; font-weight: 800 !important; }
.programme-info p { color: var(--muted) !important; }
.programme-meta span,
.programme-cta { color: var(--navy) !important; }
.programme-cta { border: 1px solid var(--line) !important; padding: 12px 16px; background: var(--cream) !important; }
.programme:hover .programme-cta { background: var(--orange) !important; color: white !important; border-color: var(--orange) !important; }

/* Cards and learning blocks */
.outcomes-grid { background: transparent !important; border: 0 !important; gap: 18px !important; }
.outcome { background: white !important; border: 1px solid var(--line) !important; padding: 30px !important; }
.outcome .num { color: var(--orange-text) !important; }
.outcome h3 { color: var(--navy) !important; font-weight: 800 !important; }
.outcome p { color: var(--muted) !important; }
.outcome[style*="background: var(--navy)"] { background: var(--navy) !important; }
.outcome[style*="background: var(--orange)"] { background: var(--orange) !important; }
.outcome[style*="background: var(--navy)"] h3,
.outcome[style*="background: var(--navy)"] p,
.outcome[style*="background: var(--orange)"] h3,
.outcome[style*="background: var(--orange)"] p { color: white !important; }
.outcome[style*="background: var(--navy)"] .num,
.outcome[style*="background: var(--orange)"] .num { color: rgba(255,255,255,.8) !important; }

.day { background: white !important; overflow: hidden; }
.day + .day { margin-top: 14px !important; }
.day summary { padding: 24px 28px !important; }
.day[open] summary { border-bottom-color: var(--line) !important; }
.day-num { color: var(--orange-text) !important; }
.day-title { color: var(--navy) !important; font-weight: 800 !important; }
.day-content { padding: 0 28px 28px !important; color: var(--muted) !important; }
.day-topics li::before { background: var(--orange) !important; }

/* Cohorts / fee / why / faculty */
.cohort-card,
.fees-card,
.why-item,
.fac-card,
.cta-box,
.form-card { background: white !important; }
.cohort-card.featured { background: var(--navy) !important; color: white !important; border-color: rgba(255,255,255,.12) !important; }
.cohort-card.featured * { color: inherit; }
.cohort-card.featured .cohort-month,
.cohort-card.featured .cohort-format { color: var(--orange-bright) !important; }
.cohort-card .when,
.fees-card .price,
.why-item h3,
.fac-card h3,
.cta-box h2 { color: var(--navy) !important; font-weight: 800 !important; }
.fees-card .price span,
.cohort-month,
.cohort-format,
.why-item .num,
.fac-card .role { color: var(--orange-text) !important; }
.fac-card,
.why-item { transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.fac-card:hover,
.why-item:hover { transform: translateY(-4px); box-shadow: 0 28px 60px -42px rgba(9,7,43,.56); }

/* Forms */
.form-card { padding: clamp(28px, 4vw, 44px) !important; }
.form-field input,
.form-field select,
.form-field textarea,
.input {
  border: 1px solid rgba(21,18,71,.18) !important;
  border-radius: 12px !important;
  background: #fff !important;
  color: var(--ink) !important;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus,
.input:focus {
  border-color: var(--orange) !important;
  box-shadow: 0 0 0 4px rgba(240,104,49,.14) !important;
  outline: none !important;
}
.form-field label { color: var(--navy) !important; font-weight: 700 !important; }

/* Trust and footer */
.trust-items .item { color: var(--navy) !important; font-weight: 700 !important; opacity: .82 !important; }
footer {
  background:
    linear-gradient(135deg, var(--navy-deep), var(--navy)) !important;
  color: white !important;
  position: relative; overflow: hidden;
}
footer::after {
  content: ''; position: absolute; right: -8vw; bottom: -25%; width: min(42vw, 540px); height: 80%;
  background: linear-gradient(180deg, rgba(240,104,49,.88), rgba(240,104,49,.2));
  clip-path: polygon(54% 0, 100% 0, 48% 100%, 0 100%); opacity: .55;
}
footer .container { position: relative; z-index: 1; }
footer .logo { color: white !important; }
footer p, footer li, footer a { color: rgba(255,255,255,.72) !important; }
footer h5 { color: var(--orange-bright) !important; }
footer a:hover { color: white !important; }
.footer-foot { border-top-color: rgba(255,255,255,.12) !important; }
.socials a { border: 1px solid rgba(255,255,255,.16) !important; background: rgba(255,255,255,.06) !important; }
.socials a:hover { background: var(--orange) !important; border-color: var(--orange) !important; color: white !important; }

/* Utility refinements */
.fade-up { transform: translateY(18px); }
.fade-up.in { transform: translateY(0); }
@media (max-width: 980px) {
  .hero::after, .p-hero::after { opacity: .32; width: 72vw; }
  .programme { padding: 26px 24px !important; }
  .nav { height: 76px !important; }
  .logo-mark { width: 44px !important; height: 44px !important; }
}
@media (max-width: 700px) {
  .hero h1, .p-hero h1 { letter-spacing: -0.045em !important; }
  .btn { width: 100%; justify-content: center; }
  .cohort-card .cohort-cta {
    width: 100%;
    padding-inline: 16px;
  }
  .hero-side { padding: 24px !important; }
  .p-aside { margin-top: 12px; }
  .breadcrumb { font-size: 12px !important; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none !important; }
  *, *::before, *::after { scroll-behavior: auto !important; }
}


/* ================================================================
   EM TRAININGS — v1.1 Requested refinements
   - sticky header
   - no scrolling marquee strip
   - improved programme and why-card formatting
   ================================================================ */
html { scroll-padding-top: 108px !important; }
.site-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 1000 !important;
  background: rgba(250,247,242,.90) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  box-shadow: 0 14px 36px rgba(9,7,43,.04) !important;
}
.site-header.scrolled {
  background: rgba(250,247,242,.96) !important;
  box-shadow: 0 18px 42px rgba(9,7,43,.075) !important;
}
.nav-links a,
.nav-mobile a {
  font-family: var(--body) !important;
  font-weight: 800 !important;
  letter-spacing: .075em !important;
}
.marquee { display: none !important; }

.programme-list { gap: 22px !important; }
.programme {
  grid-template-columns: 78px minmax(0, 1.25fr) minmax(320px, .9fr) 64px !important;
  align-items: stretch !important;
  gap: clamp(22px, 3vw, 42px) !important;
  padding: clamp(28px, 3.4vw, 44px) !important;
  background: rgba(255,255,255,.94) !important;
}
.programme .num {
  width: 72px !important;
  height: 72px !important;
  border-radius: 16px !important;
  display: grid !important;
  place-items: center !important;
  background: var(--cream-warm) !important;
  border: 1px solid var(--line) !important;
  color: rgba(21,18,71,.46) !important;
  font-size: 34px !important;
  font-weight: 800 !important;
  letter-spacing: -.05em !important;
  line-height: 1 !important;
}
.programme:hover .num { background: var(--navy) !important; color: white !important; border-color: var(--navy) !important; }
.programme-info { min-width: 0 !important; }
.programme-info h3 { font-size: clamp(28px, 2.4vw, 42px) !important; line-height: 1.08 !important; margin-bottom: 14px !important; max-width: 720px !important; }
.programme-info p { max-width: 740px !important; font-size: clamp(15px, 1.15vw, 17px) !important; line-height: 1.68 !important; }
.programme-meta { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 12px !important; padding-top: 0 !important; align-content: center !important; }
.programme-meta > div { padding: 14px 16px !important; border-radius: 14px !important; background: var(--cream) !important; border: 1px solid var(--line-2) !important; }
.programme-meta dt { margin-bottom: 8px !important; color: rgba(21,18,71,.52) !important; }
.programme-meta dd { font-size: 15px !important; line-height: 1.35 !important; color: var(--navy) !important; font-weight: 750 !important; letter-spacing: .01em !important; }
.programme-meta dd.price { font-size: 18px !important; color: var(--navy) !important; }
.programme-cta { display: grid !important; place-items: center !important; padding: 0 !important; background: transparent !important; border: 0 !important; }
.programme-cta .circle { width: 58px !important; height: 58px !important; border-radius: 18px !important; border: 1px solid var(--line) !important; background: var(--cream) !important; color: var(--navy) !important; font-size: 20px !important; }
.programme:hover .programme-cta .circle { background: var(--orange) !important; border-color: var(--orange) !important; color: white !important; }

.why { background: radial-gradient(circle at 86% 8%, rgba(240,104,49,.10), transparent 25rem), linear-gradient(180deg, rgba(255,255,255,0), rgba(244,239,231,.72)) !important; color: var(--ink) !important; }
.why::before { display: none !important; }
.why-head { margin-bottom: clamp(44px, 6vw, 72px) !important; }
.why-grid { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: clamp(18px, 2.4vw, 28px) !important; align-items: stretch !important; }
.why-item { position: relative !important; overflow: hidden !important; min-height: 255px !important; padding: 38px 32px 34px !important; display: flex !important; flex-direction: column !important; justify-content: flex-start !important; border-top: 1px solid var(--line) !important; background: rgba(255,255,255,.96) !important; }
.why-item::before { content: '' !important; position: absolute !important; left: 0 !important; right: 0 !important; top: 0 !important; height: 5px !important; background: linear-gradient(90deg, var(--orange), rgba(240,104,49,.08)) !important; }
.why-item .why-num { position: absolute !important; top: 18px !important; right: 18px !important; width: 38px !important; height: 30px !important; border-radius: 8px !important; display: grid !important; place-items: center !important; padding: 0 !important; background: var(--navy) !important; color: var(--orange-bright) !important; font-family: var(--mono) !important; font-size: 12px !important; font-weight: 700 !important; letter-spacing: .06em !important; line-height: 1 !important; }
.why-item h3 { color: var(--navy) !important; font-size: clamp(23px, 2vw, 31px) !important; line-height: 1.12 !important; max-width: calc(100% - 44px) !important; margin: 20px 0 18px !important; }
.why-item p { color: var(--muted) !important; font-size: 15.5px !important; line-height: 1.68 !important; margin: 0 !important; }
.trust { display: none !important; }
@media (max-width: 1100px) { .programme { grid-template-columns: 72px minmax(0, 1fr) !important; } .programme-meta { grid-column: 2 !important; } .programme-cta { display: none !important; } .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
@media (max-width: 720px) { .programme { grid-template-columns: 1fr !important; gap: 18px !important; padding: 24px !important; } .programme .num { width: 58px !important; height: 58px !important; font-size: 26px !important; } .programme-meta { grid-column: auto !important; grid-template-columns: 1fr !important; } .why-grid { grid-template-columns: 1fr !important; } .why-item { min-height: auto !important; padding: 34px 26px 30px !important; } .why-item h3 { max-width: 100% !important; padding-right: 46px !important; } }

/* Detail page programme snapshot/application card should scroll normally, not stick. */
.p-aside { position: static !important; top: auto !important; }

/* ----------------------------------------------------------------
   Contrast fixes for sections where earlier rules collide with their
   actual background colour. Without these, text is invisible until
   the user selects it (selection highlight provides the only contrast).
   ---------------------------------------------------------------- */

/* Direct Enrolment box: brand sheet flips .cta-box to a white background,
   but the heading and contact row still inherit cream from the original
   navy-box design. Force dark text so it reads on white. */
.cta-box h3 { color: var(--navy) !important; }
.cta-box .contact-row {
  color: var(--muted) !important;
  border-top-color: var(--line) !important;
  flex-wrap: wrap;
  gap: 10px 20px !important;
}
.cta-box .contact-row a { color: var(--navy) !important; }
.cta-box .contact-row a[href^="tel:"] {
  flex: 0 0 auto;
  white-space: nowrap;
}
.cta-box .contact-row a[href^="mailto:"] {
  min-width: 0;
  overflow-wrap: anywhere;
}
.cta-box .contact-row a:hover { color: var(--orange) !important; }

@media (max-width: 560px) {
  .cta-box .contact-row {
    align-items: flex-start !important;
    flex-direction: column;
  }
  .cta-box .contact-row > span { display: none; }
}

/* Faculty section on sub-pages: .fac-section uses a navy background,
   but the blanket .fac-head h2 rule forces it to navy text. Keep the
   heading light so it reads on the dark section. */
.fac-section .fac-head h2 { color: var(--cream) !important; }
.fac-section .fac-head h2 em { color: var(--orange-bright) !important; }

.hp-field {
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  height: 0 !important;
  left: -10000px !important;
  opacity: 0 !important;
  overflow: hidden !important;
  position: absolute !important;
  pointer-events: none !important;
  white-space: nowrap !important;
  width: 1px !important;
}

.form-option {
  align-items: flex-start;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  gap: 14px;
  margin-bottom: 24px;
  padding: 16px 18px;
}

.form-option input {
  accent-color: var(--orange);
  flex: 0 0 auto;
  margin-top: 3px;
}

.form-option strong {
  display: block;
  font-size: 14.5px;
  font-weight: 750;
  line-height: 1.35;
}

.form-option small {
  color: var(--muted);
  display: block;
  font-size: 12.5px;
  line-height: 1.45;
  margin-top: 4px;
}

.form-alert {
  border-radius: 12px;
  font-size: 13.5px;
  line-height: 1.45;
  margin-bottom: 20px;
  padding: 14px 16px;
}

.form-alert[data-state="error"] {
  background: rgba(240,104,49,.12);
  border: 1px solid rgba(240,104,49,.3);
  color: var(--orange-text);
}

.form-success {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(26px, 4vw, 40px);
}

.form-success:focus { outline: none; }
.form-success h4 {
  color: var(--navy);
  font-family: var(--display);
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.08;
  margin-bottom: 12px;
}

.form-success p {
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.6;
  margin-bottom: 22px;
}

.cohort-cards:not(.single) {
  grid-template-columns: repeat(auto-fit, minmax(min(430px, 100%), 1fr)) !important;
  gap: clamp(20px, 2.5vw, 32px) !important;
}

.cohort-card {
  display: flex;
  flex-direction: column;
  min-height: clamp(380px, 32vw, 480px);
  padding: clamp(30px, 3.4vw, 44px) !important;
}

.cohort-card .tag {
  align-self: flex-start;
  max-width: 100%;
  white-space: normal;
}

.cohort-card .meta {
  gap: 12px !important;
  margin-top: 22px;
}

.cohort-card .cohort-cta {
  margin-top: auto;
}

@media (min-width: 1180px) {
  .cohort-card .meta .row {
    align-items: baseline;
    display: grid !important;
    gap: 24px;
    grid-template-columns: minmax(120px, .65fr) minmax(220px, 1fr);
  }

  .cohort-card .meta .row strong {
    justify-self: end;
    text-align: right;
  }
}

@media (max-width: 760px) {
  .cohort-card {
    min-height: auto;
  }
}
