/* ==========================================================================
   Digital Aarya — Design System
   Fonts: Manrope (display) + DM Sans (body)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand */
  --navy-900: #0a1c33;
  --navy-800: #102744;
  --navy-700: #143156;
  --navy-600: #17365d;
  --navy-500: #1f4d7c;
  --navy-400: #2b6ba6;
  --gold-400: #e8b64c;
  --gold-300: #f2ce61;
  --gold-100: #fdf6e3;
  --cyan-500: #4fa3c7;
  --cyan-100: #eef6fa;
  --green-600: #1f7a5a;
  --green-100: #e8f5ef;

  /* Semantic */
  --bg: #f7f6f2;
  --bg-soft: #edeae1;
  --surface: #ffffff;
  --surface-2: #f5f3ee;
  --text: #12243a;
  --text-soft: #33465e;
  --muted: #5d6f84;
  --border: #e2e6ec;
  --border-strong: #cbd3dd;
  --header-bg: rgba(10, 28, 51, 0.97);

  /* Effects */
  --shadow-xs: 0 1px 2px rgba(16, 39, 68, 0.06);
  --shadow-sm: 0 4px 14px rgba(16, 39, 68, 0.07);
  --shadow-md: 0 12px 30px rgba(16, 39, 68, 0.09);
  --shadow-lg: 0 26px 56px rgba(16, 39, 68, 0.14);
  --ring: 0 0 0 3px rgba(79, 163, 199, 0.45);

  /* Geometry */
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-xl: 26px;
  --header-h: 76px;
  --anchor-offset: 132px;

  /* Type scale */
  --fs-body: 1rem;
  --fs-sm: 0.875rem;
  --fs-xs: 0.78rem;
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  /* The off-canvas mobile drawer sits to the right of the viewport when
     closed. `clip` contains it without creating a scroll container, so the
     sticky header keeps working. `hidden` is the fallback for older engines. */
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: var(--fs-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
.brand-main {
  font-family: 'Manrope', system-ui, sans-serif;
  color: var(--navy-800);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2.1rem, 1.2rem + 3.6vw, 3.5rem);
  font-weight: 800;
}
h2 {
  font-size: clamp(1.6rem, 1.1rem + 2vw, 2.4rem);
  font-weight: 800;
}
h3 {
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem);
  font-weight: 700;
}
h4 {
  font-size: 1.05rem;
  font-weight: 700;
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--navy-500);
  text-decoration: none;
  transition: color 0.18s ease;
}

a:hover {
  color: var(--navy-700);
}

/* Links inside running text need a non-colour cue, otherwise they are only
   distinguishable by colour — which fails WCAG 1.4.1 for many users. */
p a,
.hero-lede a,
.notice a,
.fine-print a,
.accordion-body a,
.info-card p a,
.audience-box a,
.course-card p a,
.check-list a,
.card-grid p a,
.brochure-heading p a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(31, 77, 124, 0.42);
}

p a:hover,
.hero-lede a:hover,
.notice a:hover,
.fine-print a:hover,
.accordion-body a:hover,
.info-card p a:hover,
.audience-box a:hover,
.course-card p a:hover,
.check-list a:hover,
.card-grid p a:hover,
.brochure-heading p a:hover {
  text-decoration-color: currentColor;
}

ul,
ol {
  margin: 0 0 1rem;
  padding-left: 1.15rem;
}

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

table {
  border-collapse: collapse;
}

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

::selection {
  background: var(--navy-600);
  color: #fff;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  background: var(--gold-300);
  color: var(--navy-900);
  font-weight: 800;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
  color: var(--navy-900);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   3. Layout helpers
   -------------------------------------------------------------------------- */
.container {
  width: min(1200px, 100% - 2.5rem);
  margin-inline: auto;
}

.container-narrow {
  width: min(860px, 100% - 2.5rem);
  margin-inline: auto;
}

.page-section {
  /* Tightened: was clamp(3.5rem, 6vw, 5.5rem). Trims ~1.75rem top and bottom
     per section without crowding content. */
  padding-block: clamp(2.5rem, 4vw, 3.75rem);
}

.muted-bg {
  background: linear-gradient(180deg, #fff, var(--bg-soft));
  border-block: 1px solid var(--border);
}

.white-bg {
  background: var(--surface);
}

[id] {
  scroll-margin-top: var(--anchor-offset);
}

.section-header {
  max-width: 760px;
  /* Reduced from 2.75rem; this gap repeats on every section of every page. */
  margin: 0 auto 1.75rem;
}

.section-header.center {
  text-align: center;
}

.section-header.left {
  margin-inline: 0;
  max-width: 720px;
}

.section-header p {
  color: var(--muted);
  font-size: 1.05rem;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 0.85rem;
  color: var(--gold-300);
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: var(--navy-500);
}

.lede {
  font-size: 1.1rem;
  color: var(--muted);
}

.muted-copy {
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   4. Buttons, pills, badges
   -------------------------------------------------------------------------- */
.primary-button,
.outline-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 52px;
  padding: 0.75rem 1.75rem;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease,
    border-color 0.18s ease, color 0.18s ease;
}

.primary-button {
  background: var(--gold-400);
  color: var(--navy-900);
  box-shadow: var(--shadow-sm);
}

.primary-button:hover {
  background: var(--gold-300);
  color: var(--navy-900);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.outline-button {
  border-color: var(--navy-600);
  background: transparent;
  color: var(--navy-700);
}

.outline-button:hover {
  background: var(--navy-600);
  color: #fff;
  transform: translateY(-2px);
}

.ghost-button {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  backdrop-filter: blur(4px);
}

.ghost-button:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  transform: translateY(-2px);
}

.primary-button.sm,
.outline-button.sm {
  min-height: 42px;
  padding: 0.5rem 1.1rem;
  font-size: 0.85rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.9rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1rem;
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--navy-500);
}

.text-link::after {
  content: '\2192';
  transition: transform 0.18s ease;
}

.text-link:hover::after {
  transform: translateX(4px);
}

/* Two inline links side by side on a course card (detail + enquire). */
.card-links {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 1.5rem;
  margin-top: 1rem;
}

.card-links .text-link {
  margin-top: 0;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-soft);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.pill.gold {
  background: var(--gold-100);
  border-color: #f0dfae;
  color: #8a6410;
}

.pill.cyan {
  background: var(--cyan-100);
  border-color: #cbe4ef;
  color: var(--navy-500);
}

.pill.green {
  background: var(--green-100);
  border-color: #c3e3d5;
  color: var(--green-600);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

/* --------------------------------------------------------------------------
   5. Header & navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  border-bottom: 1px solid rgba(242, 206, 97, 0.18);
  backdrop-filter: blur(12px);
  transition: box-shadow 0.25s ease;
}

.site-header.is-stuck {
  box-shadow: 0 10px 30px rgba(6, 21, 40, 0.4);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: var(--header-h);
}

/* Brand */
.brand {
  display: inline-flex;
  flex-shrink: 0;
}

/* The visible wordmark doubles as the accessible name — no aria-label, so
   screen readers and sighted users get the same words. */
.brand-sub {
  grid-column: 2;
  grid-row: 2;
  font-size: 0.54rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--gold-300);
  text-transform: uppercase;
}

@media (prefers-reduced-motion: no-preference) {
  .brand-main {
    transition: color 0.18s ease;
  }

  .brand:hover .brand-main {
    color: var(--gold-300);
  }
}

.brand-mark {
  display: inline-grid;
  grid-template-columns: 46px auto;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 0.7rem;
  padding: 0.5rem 0.9rem 0.5rem 0.6rem;
  border: 1px solid rgba(242, 206, 97, 0.5);
  border-radius: 14px;
  background: linear-gradient(145deg, var(--navy-600), var(--navy-800));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 6px 18px rgba(3, 14, 29, 0.35);
}

.brand-mark::before {
  /* Real brand roundel (white disc + yellow orb + wordmark) instead of the old
     CSS-drawn "DA" tile. Same 44px footprint, so the header layout is unchanged. */
  content: '';
  grid-row: 1 / 3;
  width: 44px;
  height: 44px;
  border-radius: 0;
  background: url('assets/logo-reverse.png') center / contain no-repeat;
}

.brand-main {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  font-size: 1.28rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.045em;
  word-spacing: 0.14em;
  white-space: nowrap;
  text-transform: uppercase;
  color: #fff;
}

.brand-sub {
  grid-column: 2;
  grid-row: 2;
  font-size: 0.54rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--gold-300);
  text-transform: uppercase;
}

/* Nav list */
.main-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list > li {
  position: relative;
  display: inline-flex;
}

.main-nav a,
.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 44px;
  padding: 0 0.95rem;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.93rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.18s ease, color 0.18s ease;
}

.main-nav a:hover,
.nav-dropdown-toggle:hover,
.main-nav a[aria-current='page'] {
  background: rgba(242, 206, 97, 0.16);
  color: #fff2c4;
}

.main-nav a[aria-current='page'] {
  box-shadow: inset 0 -2px 0 var(--gold-300);
}

.caret {
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.2s ease;
}

.nav-dropdown-toggle[aria-expanded='true'] .caret {
  transform: rotate(-135deg) translateY(-2px);
}

/* Dropdowns */
.nav-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 250px;
  padding: 0.6rem;
  border: 1px solid rgba(242, 206, 97, 0.25);
  border-radius: var(--radius);
  background: var(--navy-800);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  z-index: 40;
}

.nav-item:hover > .nav-dropdown,
.nav-item:focus-within > .nav-dropdown,
.nav-item.is-open > .nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-dropdown a {
  justify-content: flex-start;
  min-height: 40px;
  border-radius: var(--radius-sm);
  font-size: 0.89rem;
}

.nav-dropdown .dropdown-head {
  margin-bottom: 0.3rem;
  background: rgba(242, 206, 97, 0.14);
  color: var(--gold-300);
  font-weight: 800;
}

.nav-submenu {
  position: relative;
}

.nav-subdropdown {
  position: absolute;
  top: -0.6rem;
  left: calc(100% + 6px);
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 260px;
  padding: 0.6rem;
  border: 1px solid rgba(242, 206, 97, 0.25);
  border-radius: var(--radius);
  background: var(--navy-900);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.nav-submenu:hover > .nav-subdropdown,
.nav-submenu:focus-within > .nav-subdropdown,
.nav-submenu.is-open > .nav-subdropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0);
}

/* Header actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.88rem;
  font-weight: 700;
}

.header-phone:hover {
  color: var(--gold-300);
}

.header-phone svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.certification-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.4rem 1rem;
  border-top: 1px solid rgba(242, 206, 97, 0.2);
  background: linear-gradient(90deg, var(--navy-900), var(--navy-600), var(--navy-900));
  color: var(--gold-300);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-align: center;
  text-transform: uppercase;
}

.certification-bar::before,
.certification-bar::after {
  width: 20px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-300));
  content: '';
}

.certification-bar::after {
  transform: rotate(180deg);
}

.menu-button {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 0 11px;
  border: 1px solid rgba(242, 206, 97, 0.5);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: var(--gold-300);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-button[aria-expanded='true'] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-button[aria-expanded='true'] span:nth-child(2) {
  opacity: 0;
}

.menu-button[aria-expanded='true'] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-scrim {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: rgba(6, 21, 40, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.nav-scrim.is-visible {
  opacity: 1;
  visibility: visible;
}

/* --------------------------------------------------------------------------
   6. Heroes
   -------------------------------------------------------------------------- */
.hero,
.page-hero {
  position: relative;
  isolation: isolate;
  background-color: var(--navy-700);
  background-image: linear-gradient(120deg, var(--navy-900) 0%, var(--navy-700) 55%, var(--navy-500) 100%);
  overflow: hidden;
}

.hero::before,
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 60% 55% at 82% 18%, rgba(79, 163, 199, 0.32), transparent 62%),
    radial-gradient(ellipse 55% 50% at 72% 96%, rgba(232, 182, 76, 0.24), transparent 60%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(9, 27, 51, 0) 30%, rgba(9, 27, 51, 0.42) 100%);
}

/* Subtle grid texture */
.hero::after,
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 20%, transparent 78%);
}

.hero {
  min-height: min(720px, 84vh);
  display: flex;
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 3rem;
  padding-block: clamp(4rem, 8vw, 6.5rem);
  color: #fff;
}

.hero-copy {
  flex: 1 1 620px;
  max-width: 720px;
}

.hero h1,
.page-hero h1 {
  margin: 0 0 1rem;
  color: #fff;
  font-size: clamp(2.3rem, 1.1rem + 4.4vw, 4.1rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.045em;
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.hero h1 .accent,
.page-hero h1 .accent {
  color: var(--gold-300);
}

.hero-lede {
  max-width: 640px;
  margin: 0.4rem 0 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.3rem);
  font-weight: 500;
}

.hero-sub {
  max-width: 620px;
  margin: 1rem 0 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.02rem;
}

/* Hero visual card */
.hero-visual {
  flex: 0 1 400px;
  display: none;
}

.hero-panel {
  padding: 1.75rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(10px);
}

.hero-panel h2 {
  margin: 0 0 0.35rem;
  color: #fff;
  font-size: 1.2rem;
}

.hero-panel > p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
}

.mode-card {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 1rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
}

.mode-card + .mode-card {
  margin-top: 0.7rem;
}

.mode-card .mode-icon {
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--gold-400);
  color: var(--navy-900);
}

.mode-card .mode-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.mode-card h3 {
  margin: 0 0 0.15rem;
  color: #fff;
  font-size: 1rem;
}

.mode-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.86rem;
  line-height: 1.55;
}

/* Page hero */
.page-hero {
  min-height: 380px;
  display: flex;
  align-items: center;
  background-image: linear-gradient(120deg, var(--navy-900) 0%, var(--navy-700) 60%, var(--navy-500) 100%);
}

.page-hero-inner {
  padding-block: clamp(3rem, 6vw, 4.5rem);
}

.page-hero .hero-lede {
  max-width: 700px;
}

.page-hero .breadcrumb {
  margin-bottom: 1.25rem;
}

/* Breadcrumbs */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.82rem;
  font-weight: 700;
}

.breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255, 255, 255, 0.62);
}

.breadcrumb li + li::before {
  content: '/';
  color: rgba(255, 255, 255, 0.35);
}

.breadcrumb a {
  color: var(--gold-300);
}

.breadcrumb a:hover {
  color: #fff;
}

.breadcrumb [aria-current='page'] {
  color: rgba(255, 255, 255, 0.85);
}

.breadcrumb.dark li {
  color: var(--muted);
}

.breadcrumb.dark li + li::before {
  color: var(--border-strong);
}

.breadcrumb.dark a {
  color: var(--navy-500);
}

.breadcrumb.dark [aria-current='page'] {
  color: var(--text-soft);
}

/* Promo / stat band */
.promo-band {
  position: relative;
  z-index: 3;
  margin-top: -46px;
}

.promo-inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  padding: 1.9rem 1.5rem;
  border: 1px solid rgba(242, 206, 97, 0.22);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--navy-800), var(--navy-600));
  box-shadow: var(--shadow-lg);
}

.promo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: rgba(255, 255, 255, 0.82);
  padding: 0.5rem 0.5rem;
}

.promo-item + .promo-item {
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.promo-number {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(1.9rem, 1.2rem + 2vw, 2.9rem);
  font-weight: 800;
  line-height: 1;
  color: var(--gold-300);
}

.promo-label {
  margin-top: 0.6rem;
  font-size: 0.9rem;
  line-height: 1.45;
}

/* --------------------------------------------------------------------------
   7. Cards & grids
   -------------------------------------------------------------------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
}

.card-grid.cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card-grid.cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-box,
.benefit-item,
.stat-box,
.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.feature-box p,
.benefit-item p,
.info-card p,
.stat-box p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

a.feature-box {
  display: block;
  color: inherit;
}

a.feature-box:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
  color: inherit;
}

.benefit-item h3,
.feature-box h3 {
  margin: 0 0 0.5rem;
}

.card-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 1.1rem;
  border-radius: 14px;
  background: linear-gradient(140deg, var(--cyan-100), var(--gold-100));
  color: var(--navy-600);
}

.card-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.program-icon {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin-bottom: 1.1rem;
  border-radius: 18px;
  background: linear-gradient(140deg, var(--cyan-100), var(--gold-100));
  border: 1px solid var(--border);
  color: var(--navy-600);
  font-family: 'Manrope', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.check-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding: 0.35rem 0 0.35rem 1.75rem;
  color: var(--muted);
  line-height: 1.6;
}

.check-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 9px;
  height: 5px;
  border-left: 2px solid var(--green-600);
  border-bottom: 2px solid var(--green-600);
  transform: rotate(-45deg);
}

.check-list li strong {
  color: var(--text);
}

.dot-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.dot-list li {
  position: relative;
  padding: 0.3rem 0 0.3rem 1.15rem;
  color: var(--muted);
  line-height: 1.6;
}

.dot-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-400);
}

.split-callout,
.cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(1.75rem, 4vw, 3rem);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: linear-gradient(125deg, #fff, var(--bg-soft));
  box-shadow: var(--shadow-md);
}

.cta-panel {
  margin-top: 3rem;
}

.split-callout h2,
.cta-panel h2 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2.1rem);
}

.split-callout p,
.cta-panel p {
  margin: 0;
  color: var(--muted);
}

.cta-panel .eyebrow {
  margin-bottom: 0.5rem;
}

.notice {
  display: flex;
  gap: 0.9rem;
  margin: 0 0 2rem;
  padding: 1.1rem 1.3rem;
  border: 1px solid #f0dfae;
  border-left: 4px solid var(--gold-400);
  border-radius: var(--radius);
  background: var(--gold-100);
  color: var(--text-soft);
  font-size: 0.94rem;
}

.notice svg {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin-top: 0.2rem;
  fill: none;
  stroke: #8a6410;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.notice p {
  margin: 0;
}

.fine-print {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   8. Learning-mode comparison
   -------------------------------------------------------------------------- */
.mode-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.mode-tile {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.mode-tile .mode-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  align-self: flex-start;
  margin-bottom: 1rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: var(--navy-600);
  color: var(--gold-300);
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.mode-tile h3 {
  font-size: 1.5rem;
}

.mode-tile > p {
  color: var(--muted);
}

.mode-tile .check-list {
  margin-top: 0.5rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--border);
}

/* --------------------------------------------------------------------------
   9. Level ladder / career path
   -------------------------------------------------------------------------- */
.ladder {
  display: grid;
  gap: 1.25rem;
}

.ladder-step {
  position: relative;
  display: grid;
  grid-template-columns: 74px 1fr auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.6rem 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

a.ladder-step:hover {
  transform: translateX(4px);
  border-color: var(--gold-400);
  box-shadow: var(--shadow-md);
  color: inherit;
}

.ladder-num {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: linear-gradient(140deg, var(--cyan-100), var(--gold-100));
  color: var(--navy-600);
  font-family: 'Manrope', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
}

.ladder-num small {
  display: block;
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ladder-body h3 {
  margin: 0 0 0.3rem;
  font-size: 1.2rem;
}

.ladder-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.ladder-meta {
  display: grid;
  justify-items: end;
  gap: 0.2rem;
  text-align: right;
}

.ladder-meta .count {
  font-family: 'Manrope', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--navy-600);
  line-height: 1;
}

.ladder-meta .count-label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   10. Course catalogue (filterable cards)
   -------------------------------------------------------------------------- */
.catalogue-controls {
  display: grid;
  gap: 1.1rem;
  margin-bottom: 2rem;
  padding: 1.4rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
}

.filter-label {
  margin-right: 0.25rem;
  color: var(--muted);
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.filter-chip {
  min-height: 40px;
  padding: 0.4rem 1rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text-soft);
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.filter-chip:hover {
  border-color: var(--navy-500);
  color: var(--navy-700);
}

.filter-chip.is-active {
  background: var(--navy-600);
  border-color: var(--navy-600);
  color: #fff;
}

.search-field {
  position: relative;
  display: flex;
  align-items: center;
}

.search-field svg {
  position: absolute;
  left: 1rem;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 2;
  stroke-linecap: round;
  pointer-events: none;
}

.search-field input {
  width: 100%;
  min-height: 50px;
  padding: 0 1rem 0 3rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}

.search-field input:focus {
  outline: none;
  border-color: var(--navy-500);
  box-shadow: var(--ring);
}

.catalogue-status {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}

.course-card {
  display: flex;
  flex-direction: column;
  padding: 1.3rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.course-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.course-card.is-hidden,
.course-group.is-hidden {
  display: none;
}

.course-group + .course-group {
  margin-top: 3rem;
}

.course-group-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  margin-bottom: 1.35rem;
  padding-bottom: 0.9rem;
  border-bottom: 2px solid var(--border);
}

.course-group-head h2 {
  margin: 0;
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem);
}

.course-group-head p {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.course-group-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.course-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}

.course-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
  line-height: 1.35;
}

.course-tools {
  margin: 0 0 1.1rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.course-tools strong {
  display: block;
  color: var(--text-soft);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.course-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.course-fee {
  font-family: 'Manrope', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--navy-700);
  line-height: 1.1;
}

.course-fee small {
  display: block;
  color: var(--muted);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.course-duration {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.course-duration svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.empty-state {
  display: none;
  padding: 3rem 1.5rem;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--muted);
  text-align: center;
}

.empty-state.is-visible {
  display: block;
}

.empty-state h3 {
  margin: 0 0 0.4rem;
  color: var(--text);
}

/* --------------------------------------------------------------------------
   11. Tables
   -------------------------------------------------------------------------- */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  min-width: 720px;
  text-align: left;
}

thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 0.9rem 1.1rem;
  background: var(--navy-600);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  white-space: nowrap;
}

tbody td {
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-soft);
  font-size: 0.92rem;
  vertical-align: top;
}

tbody td:first-child {
  color: var(--text);
  font-weight: 700;
}

tbody tr:last-child td {
  border-bottom: 0;
}

tbody tr:hover td {
  background: var(--surface-2);
}

.table-hint {
  display: none;
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   12. Diploma highlight
   -------------------------------------------------------------------------- */
.diploma-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid var(--border);
  border-top: 4px solid var(--gold-400);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.diploma-card h3 {
  margin: 0 0 0.5rem;
}

.diploma-card p {
  margin: 0;
  color: var(--muted);
}

.module-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.module-row li {
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text-soft);
  font-size: 0.8rem;
  font-weight: 700;
}

.diploma-meta {
  display: grid;
  justify-items: end;
  gap: 0.15rem;
  text-align: right;
  padding-left: 2rem;
  border-left: 1px solid var(--border);
}

.diploma-meta .meta-label {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.diploma-meta .meta-value {
  font-family: 'Manrope', sans-serif;
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--navy-700);
  line-height: 1.1;
}

/* --------------------------------------------------------------------------
   13. Accordion / FAQ
   -------------------------------------------------------------------------- */
.accordion {
  display: grid;
  gap: 0.75rem;
  max-width: 860px;
  margin-inline: auto;
}

.accordion-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.accordion-item[open] {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.accordion-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.4rem;
  color: var(--navy-800);
  font-family: 'Manrope', sans-serif;
  font-size: 1.02rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.accordion-item summary::-webkit-details-marker {
  display: none;
}

.accordion-item summary::after {
  content: '';
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
  border-right: 2px solid var(--navy-500);
  border-bottom: 2px solid var(--navy-500);
  transform: rotate(45deg) translateY(-3px);
  transition: transform 0.2s ease;
}

.accordion-item[open] summary::after {
  transform: rotate(-135deg) translateY(-3px);
}

.accordion-body {
  padding: 0 1.4rem 1.3rem;
  color: var(--muted);
  line-height: 1.75;
}

.accordion-body > :last-child {
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   14. Forms
   -------------------------------------------------------------------------- */
.enquiry-form {
  display: grid;
  gap: 1.15rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field label {
  color: var(--text-soft);
  font-size: 0.85rem;
  font-weight: 800;
}

.field label .req {
  color: #b4413a;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.field textarea {
  min-height: 130px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  background: var(--surface);
  border-color: var(--navy-500);
  box-shadow: var(--ring);
}

.field input[aria-invalid='true'],
.field select[aria-invalid='true'],
.field textarea[aria-invalid='true'] {
  border-color: #b4413a;
}

.select-wrap {
  position: relative;
}

.select-wrap::after {
  content: '';
  position: absolute;
  right: 1.1rem;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.select-wrap select {
  appearance: none;
  padding-right: 2.75rem;
}

.field-error {
  margin: 0;
  color: #b4413a;
  font-size: 0.8rem;
  font-weight: 700;
}

.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
}

.checkbox-field input {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin-top: 0.25rem;
  accent-color: var(--navy-600);
}

.checkbox-field label {
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.6;
}

.form-submit-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.form-submit-row .primary-button,
.form-submit-row .outline-button {
  flex: 1 1 auto;
  justify-content: center;
}

.email-fallback {
  margin-top: 0.5rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--border-strong);
  border-left: 4px solid var(--cyan-500);
  border-radius: var(--radius-sm);
  background: var(--cyan-100);
  font-size: 0.9rem;
}

.email-fallback h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
}

.email-fallback p {
  margin: 0 0 0.5rem;
}

.email-fallback-address a {
  font-weight: 700;
  word-break: break-all;
}

/* The composed message, kept selectable so it can be copied by hand. */
.email-fallback-body {
  padding: 0.7rem 0.85rem;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-family: ui-monospace, 'SFMono-Regular', Consolas, monospace;
  font-size: 0.82rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
  user-select: all;
}

.email-fallback[hidden] {
  display: none;
}

/* -------------------------------------------------------------------------- */
/* Founder / leadership block
   -------------------------------------------------------------------------- */
.founder {
  display: grid;
  /* Portrait leads: a wider photo column, copy fills the rest. */
  grid-template-columns: minmax(0, 46%) minmax(0, 1fr);
  gap: 2.75rem;
  /* Stretch, not centre: the photo fills its track so the row has no
     dead space under a shorter column. */
  align-items: stretch;
}

.founder-photo {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.founder-photo img {
  display: block;
  width: 100%;
  /* Fill the stretched column; the crop is portrait so cover crops the
     background, never her face. */
  height: 100%;
  min-height: 26rem;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  background: var(--gold-100);
}

.founder-caption {
  margin: 0.75rem 0 0;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--muted);
  text-align: center;
}

.founder-copy h2 {
  margin: 0 0 0.25rem;
}

.founder-role {
  margin: 0 0 1rem;
  font-weight: 700;
  color: var(--navy-600);
}

.founder-points {
  margin: 1.25rem 0;
}

.founder-quote {
  margin: 1.25rem 0;
  padding: 0.9rem 1.1rem;
  border-left: 4px solid var(--gold-400);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--gold-100);
  font-size: 1.02rem;
  font-style: italic;
  color: var(--navy-800);
}

.founder-quote p {
  margin: 0;
}

.founder-poster-link {
  display: inline-block;
  margin-top: 1.25rem;
}

@media (max-width: 900px) {
  .founder {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.75rem;
    text-align: center;
  }

  .founder-photo {
    max-width: 460px;
    margin-inline: auto;
  }

  .founder-photo img {
    /* Natural ratio on small screens: never crop the portrait. */
    height: auto;
    min-height: 0;
    aspect-ratio: 1064 / 1224;
  }

  .founder-points {
    text-align: left;
  }

  .founder-copy .pill-row {
    justify-content: center;
  }

  .founder-quote {
    text-align: left;
  }
}

/* Between the 3-column desktop layout and the single-column mobile layout,
   two columns keep card text readable instead of squeezing three across. */
@media (min-width: 781px) and (max-width: 1080px) {
  .course-grid,
  .card-grid,
  .card-grid.cols-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* A three-item row would leave one card stranded on its own line. */
  .card-grid:has(> :nth-child(3):last-child) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* -------------------------------------------------------------------------- */
/* Free tax-education series (Know Your Tax)
   -------------------------------------------------------------------------- */
.series-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.series-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.series-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.series-card img {
  display: block;
  width: 100%;
  height: auto;
  /* Thumbnails are tall infographics: contain rather than crop. */
  object-fit: contain;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}

.series-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.5rem;
  padding: 1.1rem 1.2rem 1.3rem;
}

.series-card-body h3 {
  margin: 0;
  font-size: 1.05rem;
}

.series-card-body p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-soft);
}

.series-card-body .text-link {
  margin-top: auto;
}

.form-status {
  margin: 0;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 700;
}

.form-status[data-state='error'] {
  background: #fdeeed;
  border: 1px solid #f2c9c6;
  color: #8e2f29;
}

.form-status[data-state='success'] {
  background: var(--green-100);
  border: 1px solid #c3e3d5;
  color: #14614a;
}

.form-status[data-state='pending'] {
  background: var(--gold-100);
  border: 1px solid #f0dfae;
  color: #8a6410;
}

.form-status:empty {
  display: none;
}

/* --------------------------------------------------------------------------
   15. Contact cards
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 1.75rem;
  align-items: start;
}

.contact-tile {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  color: inherit;
  transition: border-color 0.18s ease, background 0.18s ease;
}

a.contact-tile:hover {
  border-color: var(--gold-400);
  background: var(--gold-100);
  color: inherit;
}

.contact-tile .card-icon {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  margin: 0;
  border-radius: 12px;
}

.contact-tile .card-icon svg {
  width: 22px;
  height: 22px;
}

.contact-tile h3 {
  margin: 0 0 0.15rem;
  font-size: 1rem;
}

.contact-tile p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.contact-stack {
  display: grid;
  gap: 0.75rem;
}

.brochure-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: inherit;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.brochure-link:hover {
  border-color: var(--cyan-500);
  background: var(--cyan-100);
  transform: translateY(-2px);
  color: inherit;
}

.brochure-link strong {
  display: block;
  color: var(--navy-700);
  font-size: 0.98rem;
}

.brochure-link small {
  display: block;
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.brochure-link .arrow {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--navy-500);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* --------------------------------------------------------------------------
   16. Steps / process
   -------------------------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 1.3rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.step::before {
  counter-increment: step;
  content: '0' counter(step);
  display: block;
  margin-bottom: 0.75rem;
  font-family: 'Manrope', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1;
  color: var(--gold-400);
}

.step h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   17. Audience bands
   -------------------------------------------------------------------------- */
.audience-box {
  padding: 1.6rem 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface-2);
}

.audience-box h3 {
  margin: 0 0 0.9rem;
}

.story-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.story-grid p {
  color: var(--muted);
  line-height: 1.8;
}

.story-grid .info-card {
  position: sticky;
  top: calc(var(--anchor-offset) + 1rem);
}

.audience-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem 2rem;
}

/* --------------------------------------------------------------------------
   18. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: linear-gradient(180deg, var(--navy-800), var(--navy-900));
  color: rgba(255, 255, 255, 0.72);
  padding-top: 3.5rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}

.footer-brand {
  margin-bottom: 1.1rem;
}

.footer-brand .brand-mark {
  background: linear-gradient(145deg, var(--navy-600), var(--navy-900));
}

.footer-brand-block p {
  max-width: 34ch;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.7;
}

.footer-contact {
  display: grid;
  gap: 0.35rem;
  margin: 1.1rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.9rem;
  font-weight: 700;
}

.footer-contact a {
  color: var(--gold-300);
}

/* ISO 9001 badge - shared by the footer (all pages) and the contact page.
   Colour is inherited so the same rule works on dark and light surfaces. */
.iso-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  max-width: 36ch;
  margin-top: 1.25rem;
  font-size: 0.85rem;
  line-height: 1.5;
  text-decoration: none;
}

.iso-badge img {
  flex: 0 0 auto;
  width: 84px;
  height: auto;
}

.iso-badge:hover {
  text-decoration: underline;
}

/* Footer sits on navy: the default link blue was nearly invisible there. */
.site-footer .iso-badge {
  color: rgba(255, 255, 255, 0.78);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-links h3 {
  margin: 0 0 0.5rem;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.92rem;
}

.footer-links a:hover {
  color: var(--gold-300);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  padding-block: 1.25rem;
}

.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.footer-bottom p {
  margin: 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.85rem;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.75);
}

/* --------------------------------------------------------------------------
   19. Sticky mobile action bar
   -------------------------------------------------------------------------- */
.action-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 44;
  display: none;
  gap: 0.5rem;
  padding: 0.6rem 0.75rem calc(0.6rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 -6px 20px rgba(16, 39, 68, 0.12);
  backdrop-filter: blur(10px);
}

.action-bar a {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 46px;
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  font-weight: 800;
}

.action-bar svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.action-bar .ab-primary {
  background: var(--gold-400);
  color: var(--navy-900);
}

.action-bar .ab-outline {
  border: 1px solid var(--navy-600);
  color: var(--navy-700);
}

.action-bar .ab-whatsapp {
  background: #1f9d55;
  color: #fff;
}

/* --------------------------------------------------------------------------
   20. Brochure viewer
   -------------------------------------------------------------------------- */
.brochure-page {
  padding-bottom: 3rem;
}

.brochure-heading {
  padding-block: 2.5rem 1.5rem;
}

.brochure-heading h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.7rem, 1.2rem + 2vw, 2.5rem);
}

.brochure-heading > p {
  max-width: 70ch;
  color: var(--muted);
}

.brochure-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.25rem;
}

.brochure-switcher a {
  padding: 0.65rem 1.15rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--navy-700);
  font-size: 0.88rem;
  font-weight: 800;
}

.brochure-switcher a:hover {
  border-color: var(--navy-500);
}

.brochure-switcher a.is-active {
  background: var(--navy-600);
  border-color: var(--navy-600);
  color: #fff;
}

.brochure-viewer {
  display: block;
  width: 100%;
  height: min(80vh, 1080px);
  min-height: 520px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-soft);
  box-shadow: var(--shadow-md);
}

/* --------------------------------------------------------------------------
   21. Sitemap & legal pages
   -------------------------------------------------------------------------- */
.sitemap-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem;
}

.sitemap-list {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sitemap-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: inherit;
  box-shadow: var(--shadow-xs);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.sitemap-list a:hover {
  transform: translateX(4px);
  border-color: var(--gold-400);
  box-shadow: var(--shadow-sm);
  color: inherit;
}

.sitemap-list strong {
  display: block;
  color: var(--navy-700);
}

.sitemap-list small {
  display: block;
  margin-top: 0.1rem;
  color: var(--muted);
  font-size: 0.83rem;
}

.sitemap-list .arrow {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--navy-500);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.legal-wrap {
  display: grid;
  gap: 1.4rem;
  max-width: 860px;
}

.legal-wrap .info-card h2 {
  margin: 0 0 0.6rem;
  font-size: 1.3rem;
}

.legal-wrap .info-card p:last-child {
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   22. Scroll reveal

   The hidden state is gated behind `.has-js`, which script.js adds to <html>.
   Without JavaScript — or if the IntersectionObserver never fires (headless
   renderers, print, some crawlers) — the failsafe timer in script.js reveals
   everything. Content is never permanently invisible.
   -------------------------------------------------------------------------- */
.reveal {
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.has-js .reveal {
  opacity: 0;
  transform: translateY(22px);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .has-js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   23. Responsive
   -------------------------------------------------------------------------- */
@media (min-width: 1080px) {
  .hero-visual {
    display: block;
  }
}

@media (max-width: 1080px) {
  .course-grid,
  .card-grid,
  .card-grid.cols-4 {
    /* Three items read better as one row than as 2 + an orphan, so keep
       three columns until the single-column breakpoint. */
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .promo-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .promo-item:nth-child(3) {
    border-left: 0;
  }

  .promo-item:nth-child(n + 3) {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }
}

@media (max-width: 1000px) {
  :root {
    --anchor-offset: 120px;
  }

  .menu-button {
    display: flex;
  }

  .header-phone {
    display: none;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 55;
    width: min(340px, 86vw);
    height: 100dvh;
    padding: 5.5rem 1.25rem 2rem;
    overflow-y: auto;
    background: linear-gradient(160deg, var(--navy-700), var(--navy-900));
    border-left: 1px solid rgba(242, 206, 97, 0.24);
    box-shadow: -20px 0 50px rgba(6, 21, 40, 0.4);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.28s ease, visibility 0.28s ease;
  }

  .main-nav.is-open {
    transform: translateX(0);
    visibility: visible;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    width: 100%;
  }

  .nav-list > li {
    display: block;
    width: 100%;
  }

  .main-nav a,
  .nav-dropdown-toggle {
    justify-content: space-between;
    width: 100%;
    min-height: 52px;
    padding: 0 1rem;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.05);
  }

  .nav-dropdown,
  .nav-subdropdown {
    position: static;
    width: 100%;
    min-width: 0;
    margin: 0.35rem 0 0.5rem;
    padding: 0.4rem;
    border-color: rgba(242, 206, 97, 0.18);
    background: rgba(0, 0, 0, 0.24);
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
    display: none;
  }

  .nav-item.is-open > .nav-dropdown,
  .nav-submenu.is-open > .nav-subdropdown {
    display: flex;
  }

  .nav-dropdown a {
    background: transparent;
    min-height: 46px;
  }

  .contact-grid,
  .mode-grid,
  .sitemap-groups,
  .story-grid,
  .audience-columns {
    grid-template-columns: 1fr;
  }

  .story-grid .info-card {
    position: static;
  }

  .footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-brand-block {
    grid-column: 1 / -1;
  }
}

@media (max-width: 780px) {
  body {
    padding-bottom: 68px;
  }

  .action-bar {
    display: flex;
  }

  .container,
  .container-narrow {
    width: calc(100% - 2rem);
  }

  .card-grid,
  .card-grid.cols-2,
  .card-grid.cols-4,
  .course-grid,
  .steps,
  .promo-inner,
  .form-row {
    grid-template-columns: 1fr;
  }

  .promo-item + .promo-item {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .promo-band {
    margin-top: -30px;
  }

  .promo-inner {
    padding: 1.4rem 1rem;
  }

  .ladder-step {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .ladder-num {
    width: 60px;
    height: 60px;
  }

  .ladder-meta {
    justify-items: start;
    text-align: left;
  }

  .diploma-card {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .diploma-meta {
    justify-items: start;
    text-align: left;
    padding-left: 0;
    padding-top: 1.25rem;
    border-left: 0;
    border-top: 1px solid var(--border);
  }

  .split-callout,
  .cta-panel {
    flex-direction: column;
    align-items: flex-start;
  }

  .split-callout .primary-button,
  .cta-panel .primary-button,
  .cta-row .primary-button,
  .cta-row .outline-button,
  .cta-row .ghost-button {
    width: 100%;
  }

  .course-card-foot {
    flex-wrap: wrap;
  }

  .table-hint {
    display: block;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .certification-bar {
    font-size: 0.62rem;
    letter-spacing: 0.06em;
  }

  .certification-bar::before,
  .certification-bar::after {
    width: 10px;
  }

  .brand-mark {
    grid-template-columns: 38px auto;
    column-gap: 0.55rem;
    padding: 0.4rem 0.7rem 0.4rem 0.5rem;
  }

  .brand-mark::before {
    width: 36px;
    height: 36px;
    font-size: 0.82rem;
  }

  .brand-main {
    font-size: 1.05rem;
  }

  .brand-sub {
    font-size: 0.46rem;
  }

  .hero {
    min-height: auto;
  }

  .brochure-viewer {
    height: 70vh;
    min-height: 420px;
  }
}

@media (max-width: 400px) {
  .header-actions .primary-button {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   23b. Responsive fixes (15 Nov 2026 device sweep)
   -------------------------------------------------------------------------- */
/* Header buttons never break onto two lines. */
.header-actions .primary-button,
.header-actions .ghost-button,
.header-actions .outline-button {
  white-space: nowrap;
}

/* Small laptops and iPad landscape (1001–1240px): the phone number squeezed
   the nav and wrapped onto two lines; the Call button in the menu and the
   phone in the footer still carry it. */
@media (min-width: 1001px) and (max-width: 1240px) {
  .header-phone { display: none; }
  .main-nav a, .nav-dropdown-toggle { padding: 0 0.7rem; }
}

/* Small uppercase labels stay readable on every screen (min 12px). */
.course-fee small,
.course-tools strong,
.diploma-meta .meta-label {
  font-size: 0.75rem;
}

/* Grid items may shrink below their content; wide tables scroll inside the
   card instead of pushing the card past the screen edge (360px phones). */
.card-grid > *,
.course-grid > * {
  min-width: 0;
}

@media (max-width: 780px) {
  /* Phone header: a compact Enquire button. */
  .header-actions .primary-button.sm,
  .header-actions .primary-button {
    min-height: 44px;
    padding: 0 1rem;
    font-size: 0.88rem;
  }
}

/* Touch screens: text links get a finger-sized hit area (44px). */
@media (pointer: coarse) {
  .card-links .text-link,
  .text-link {
    min-height: 44px;
    margin-top: 0.25rem;
  }
  .card-links { column-gap: 1.25rem; }
  td a,
  .table-wrap td a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  .checkbox-field input[type='checkbox'],
  .consent-field input[type='checkbox'],
  input[type='checkbox'],
  input[type='radio'] {
    width: 22px;
    height: 22px;
  }
}

/* --------------------------------------------------------------------------
   23c. Student & Teacher Login link
   -------------------------------------------------------------------------- */
.header-login svg,
.nav-login svg {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}
.header-actions .header-login {
  gap: 0.45rem;
  min-height: 44px;
  padding: 0 1rem;
  white-space: nowrap;
}
.nav-list > li.nav-login-item { display: none; }

/* Narrow laptops / iPad landscape: Login shows as a person icon (its name is
   still read out by screen readers and shown on hover). */
@media (min-width: 1001px) and (max-width: 1100px) {
  .header-actions .header-login { padding: 0 0.8rem; }
  .header-login span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

/* Phones and tablets: the header has room only for Enquire + menu, so the
   login lives at the bottom of the menu as a clear outlined button. */
@media (max-width: 1000px) {
  .header-actions .header-login { display: none; }
  .nav-list > li.nav-login-item {
    display: block;
    margin-top: 0.75rem;
    padding-top: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
  }
  .main-nav .nav-login {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 52px;
    border: 2px solid var(--gold-300, #f2ce61);
    border-radius: var(--radius-sm, 10px);
    color: var(--gold-300, #f2ce61);
    font-weight: 800;
    background: transparent;
  }
}

/* --------------------------------------------------------------------------
   24. Print
   -------------------------------------------------------------------------- */
@media print {
  .site-header,
  .action-bar,
  .site-footer,
  .cta-row,
  .nav-scrim,
  .catalogue-controls,
  .brochure-viewer {
    display: none !important;
  }

  .has-js .reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  body {
    background: #fff;
    color: #000;
    padding-bottom: 0;
  }

  .page-section {
    padding-block: 1rem;
  }

  .table-wrap {
    overflow: visible;
  }

  table {
    min-width: 0;
    font-size: 10pt;
  }

  a[href^='http']::after {
    content: ' (' attr(href) ')';
    font-size: 8pt;
  }
}
