/* Self-hosted brand font (Latin subset), downloaded by tools/fetch-fonts.js */
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 300 800; font-display: swap; src: url(../fonts/plus-jakarta-sans.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ==========================================================================
   01 — Design tokens, reset, typography, buttons, utilities
   Look: bright and modern. White and cool light-grey surfaces, photos in their
   real colours, near-black text and footer, and the MVM logo crimson (#920023)
   as the one brand colour for actions and highlights.
   ========================================================================== */

:root {
  /* Brand — the MVM logo crimson */
  --brand: #920023;          /* buttons, links, highlights (9.4:1 on white) */
  --brand-dark: #6f001b;     /* hover / pressed */
  --brand-bright: #c8102e;   /* partner for crimson gradients */
  --brand-50: #fff3f5;       /* soft tint behind icons and badges */
  --brand-100: #fde4e9;
  --brand-200: #f7c3cd;      /* crimson accent readable on dark backgrounds */

  /* Neutrals (cool, so the crimson stands out) */
  --ink: #111318;            /* headings, footer, dark section */
  --ink-2: #1d2029;
  --text: #414652;           /* body text (9:1 on white) */
  --muted: #5f6572;          /* secondary text (5.9:1 on white) */
  --line: #e6e8ed;
  --bg: #ffffff;
  --surface: #f5f6f8;        /* light section background */
  --surface-2: #eceef2;
  --star: #f2a516;
  --success: #13703b;
  --success-bg: #e7f7ed;

  /* Type */
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: var(--font-body);
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-lead: clamp(1.05rem, 0.99rem + 0.3vw, 1.22rem);
  --fs-h3: clamp(1.1rem, 1.02rem + 0.35vw, 1.3rem);
  --fs-h2: clamp(1.8rem, 1.35rem + 1.7vw, 2.8rem);
  --fs-h1: clamp(2.3rem, 1.55rem + 3.2vw, 4.4rem);

  /* Shape & depth */
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --shadow-sm: 0 1px 2px rgb(17 19 24 / 0.05), 0 2px 8px rgb(17 19 24 / 0.05);
  --shadow: 0 14px 34px -14px rgb(17 19 24 / 0.2);
  --shadow-lg: 0 32px 64px -24px rgb(17 19 24 / 0.3);
  --shadow-brand: 0 14px 30px -12px rgb(146 0 35 / 0.5);

  /* Layout */
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(60px, 7vw, 104px);
  --header-h: 76px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;   /* a word too long for its line breaks instead of running off a phone screen */
}

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

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.6em;
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); letter-spacing: -0.024em; line-height: 1.08; }
h2 { font-size: var(--fs-h2); letter-spacing: -0.02em; line-height: 1.14; }
h3 { font-size: var(--fs-h3); font-weight: 700; }
h4 { font-size: 1.08rem; font-weight: 700; letter-spacing: -0.01em; }
h5, h6 { font-size: 1rem; font-weight: 700; letter-spacing: 0; }

p { margin: 0 0 1em; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-dark); }
strong { color: var(--ink); font-weight: 700; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
::selection { background: var(--brand-100); color: var(--ink); }

:focus-visible { outline: 3px solid var(--brand-bright); outline-offset: 3px; border-radius: 6px; }

.icon { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.2em; }

/* ---------- accessibility helpers ---------- */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: var(--radius-sm);
  background: var(--ink); color: #fff; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- containers ---------- */
.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.container--content { max-width: 960px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 48px; padding: 0.72em 1.45em;
  border: 1.5px solid transparent; border-radius: 999px;
  font: 700 0.95rem/1.2 var(--font-body); letter-spacing: -0.005em;
  text-decoration: none; cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn .icon { transition: transform 0.2s; }
.btn:hover .icon { transform: translateX(3px); }
.btn--primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-brand); }
.btn--primary:hover { background: var(--brand-dark); color: #fff; }
.btn--outline { border-color: var(--line); color: var(--ink); background: #fff; }
.btn--outline:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-50); }
.btn--light { background: #fff; color: var(--ink); box-shadow: 0 10px 24px -12px rgb(0 0 0 / 0.4); }
.btn--light:hover { background: #fff; color: var(--brand); }
.btn--ghost { border-color: rgb(255 255 255 / 0.4); color: #fff; background: rgb(255 255 255 / 0.1); }
.btn--ghost:hover { background: #fff; border-color: #fff; color: var(--ink); }

/* ---------- small utilities ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.55em;
  margin: 0 0 1rem; padding: 0.42em 0.95em;
  border-radius: 999px; background: var(--brand-50);
  font: 700 0.74rem/1.2 var(--font-body);
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--brand);
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.lead { font-size: var(--fs-lead); color: var(--ink); }
.text-center { text-align: center; }
.nowrap { white-space: nowrap; }
/* On the narrowest phones a kept-together word such as "Speech-Language" is wider than the screen in a large title. */
@media (max-width: 340px) { .nowrap { white-space: normal; } }
.text-right { text-align: right; }
.stack > * + * { margin-top: 1rem; }
.badge { display: inline-flex; align-items: center; gap: 0.4em; padding: 0.32em 0.8em; border-radius: 999px; font-size: 0.76rem; font-weight: 700; white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge--success { background: var(--success-bg); color: var(--success); }
.badge--brand { background: var(--brand-50); color: var(--brand); }
.rounded-media img { border-radius: var(--radius-lg); margin-bottom: 1.5rem; }

@media (max-width: 640px) {
  .hide-sm { display: none !important; }
}

/* ---------- sections fade in as they scroll into view (only when the script is running) ---------- */
.js-reveal [data-reveal] { opacity: 0; transform: translateY(20px); }
.js-reveal [data-reveal].is-revealed { opacity: 1; transform: none; transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }

@media (prefers-reduced-motion: reduce) {
  .js-reveal [data-reveal] { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ==========================================================================
   02 — Top bar, header & navigation, footer, floating actions, enquiry pop-up
   ========================================================================== */

/* ---------- top bar (crimson, like the logo) ---------- */
.topbar { background: var(--brand); color: rgb(255 255 255 / 0.9); font-size: 0.8rem; font-variant-numeric: tabular-nums; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 40px; }
.topbar ul { display: flex; align-items: center; gap: 1.4rem; margin: 0; padding: 0; list-style: none; }
.topbar a { display: inline-flex; align-items: center; gap: 0.45em; color: inherit; text-decoration: none; font-weight: 500; }
.topbar__contact a, .topbar__links li:not(.topbar__social) > a { min-height: 40px; }   /* as tall as the bar, so the phone number is easy to tap */
.topbar a:hover { color: #fff; text-decoration: underline; }
.topbar .icon { color: rgb(255 255 255 / 0.75); }
.topbar__contact span { word-spacing: 0.12em; }
.topbar__social { gap: 0.2rem !important; display: flex; }
.topbar__social a { width: 28px; height: 28px; justify-content: center; border-radius: 50%; }
.topbar__social a:hover { background: rgb(255 255 255 / 0.16); text-decoration: none; }
.topbar__social .icon { color: #fff; width: 15px; height: 15px; }

@media (max-width: 760px) {
  .topbar__social { display: none !important; }
  .topbar__links span { max-width: 44vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

/* ---------- header ---------- */
/* No backdrop-filter here: it would make the fixed mobile menu position itself inside the header. */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(255 255 255 / 0.97);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s;
}
.site-header.is-scrolled { box-shadow: 0 10px 30px -18px rgb(17 19 24 / 0.35); }
.site-header__inner { display: flex; align-items: center; gap: 1.5rem; min-height: var(--header-h); }
/* A phone held sideways has very little height: the header scrolls away with the page instead of covering a fifth of it. */
@media (max-height: 480px) and (orientation: landscape) and (max-width: 950px) { .site-header { position: static; } }
.brand { display: flex; align-items: center; flex: none; margin-right: auto; text-decoration: none; }
.brand__logo { height: 52px; width: auto; max-width: 240px; object-fit: contain; }
.brand__text { font: 800 1.1rem/1.2 var(--font-head); color: var(--ink); }

.brand__lockup { display: inline-flex; align-items: center; gap: 0.45rem; }
.brand__emblem { width: 62px; height: 62px; object-fit: contain; }
.brand__name { max-width: 190px; font: 800 1.04rem/1.12 var(--font-head); letter-spacing: -0.01em; color: var(--brand); }

/* Logos with white lettering sit on a crimson badge inside the white header. */
.site-header--dark .brand { padding: 6px 14px; border-radius: 14px; background: var(--brand); box-shadow: var(--shadow-brand); }
.site-header--dark .brand__logo { height: 44px; }
.site-header--dark .brand__name { color: #fff; }

/* With the ☰ menu the logo gives way to the button. The Speech & Hearing clinic has no logo image,
   only its 53-character name, and on a phone that pushed the ☰ button off the right edge of the
   screen. The name now takes the room that is left and wraps, a little smaller on phones. */
@media (max-width: 1160px) {
  .brand { flex: 0 1 auto; min-width: 0; }
  .brand__lockup, .brand__name { min-width: 0; }
  .brand__logo { min-width: 0; max-width: min(240px, 100%); }
  .brand__emblem, .nav-toggle { flex: none; }
}
/* the same ☰ menu when the menu does not fit (main.js → html.nav-compact) */
html.nav-compact .brand { flex: 0 1 auto; min-width: 0; }html.nav-compact .brand__lockup, html.nav-compact .brand__name { min-width: 0; }html.nav-compact .brand__logo { min-width: 0; max-width: min(240px, 100%); }html.nav-compact .brand__emblem, html.nav-compact .nav-toggle { flex: none; }


@media (max-width: 480px) {
  .site-header__inner { gap: 0.75rem; }
  .site-header--dark .brand { padding-inline: 12px; }
  .brand__lockup { gap: 0.55rem; }
  .brand__emblem { width: 52px; height: 52px; }
  .brand__name { font-size: 0.95rem; }
}

/* hamburger */
.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 14px;
  background: #fff; cursor: pointer;
}
.nav-toggle__icon { display: grid; gap: 5px; width: 20px; }
.nav-toggle__icon span { height: 2px; border-radius: 2px; background: var(--ink); transition: transform 0.25s, opacity 0.25s; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* nav list (desktop) */
.site-nav { display: flex; align-items: center; gap: 1.1rem; }
.nav-list, .submenu { margin: 0; padding: 0; list-style: none; }
.nav-list { display: flex; align-items: center; gap: 0.1rem; }
.nav-item { position: relative; }
.nav-item__row { display: flex; align-items: center; }
.nav-link {
  display: inline-flex; align-items: center; gap: 0.3em;
  padding: 0.55rem 0.75rem; border: 0; border-radius: 999px; background: none;
  font: 600 0.9rem/1.3 var(--font-body); color: var(--ink);
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color 0.15s, color 0.15s;
}
.nav-link .icon { width: 14px; height: 14px; transition: transform 0.2s; }
.nav-link:hover, .nav-item:hover > .nav-item__row > .nav-link { color: var(--brand); background: var(--brand-50); }
.nav-link[aria-current="page"], .nav-item.is-active > .nav-item__row > .nav-link { color: var(--brand); }
.submenu-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 32px; margin-left: -8px; padding: 0;
  border: 0; background: none; color: var(--muted); cursor: pointer; border-radius: 8px;
}
.submenu-toggle .icon { width: 14px; height: 14px; transition: transform 0.2s; }

.submenu {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 10;
  min-width: 270px; padding: 0.5rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
}
.submenu::before { content: ""; position: absolute; inset: -12px 0 auto; height: 12px; }
.submenu .nav-link { display: flex; width: 100%; justify-content: space-between; white-space: normal; font-weight: 500; padding: 0.55rem 0.8rem; border-radius: 10px; }
.submenu .submenu { top: -0.5rem; left: 100%; margin-left: 6px; }
.submenu .submenu::before { inset: 0 auto 0 -10px; width: 10px; height: auto; }
.submenu .nav-link--button .icon { transform: rotate(-90deg); }
.nav-item.is-wide > .submenu { min-width: 540px; column-count: 2; column-gap: 0.25rem; }
.nav-item.is-wide > .submenu > .nav-item { break-inside: avoid; }

@media (min-width: 1161px) {html:not(.nav-compact) .nav-item:hover > .submenu, html:not(.nav-compact) .nav-item:focus-within > .submenu, html:not(.nav-compact) .nav-item.is-open > .submenu { opacity: 1; visibility: visible; transform: none; }html:not(.nav-compact) .nav-list > .nav-item:nth-last-child(-n + 2) > .submenu { left: auto; right: 0; }html:not(.nav-compact) .nav-list > .nav-item:nth-last-child(-n + 3) .submenu .submenu { left: auto; right: 100%; margin: 0 6px 0 0; }
}

.nav-cta { min-height: 44px; padding-inline: 1.25em; flex: none; white-space: nowrap; }   /* never on two lines: if it does not fit, the menu becomes the ☰ button */
/* a drop-down that would reach past the right edge of the screen opens towards the left (main.js) */
.nav-list > .nav-item > .submenu.submenu--flip { left: auto; right: 0; }
.submenu .submenu.submenu--flip { left: auto; right: 100%; margin: 0 6px 0 0; }

/* nav (mobile) */
@media (max-width: 1160px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: fixed; inset: var(--nav-top, 120px) 0 0 0; z-index: 40;
    flex-direction: column; align-items: stretch; gap: 1rem;
    padding: 0.75rem var(--gutter) 2rem;
    background: #fff; overflow-y: auto; overscroll-behavior: contain;
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  }
  .site-nav.is-open { visibility: visible; opacity: 1; transform: none; }
  .nav-list { flex-direction: column; align-items: stretch; }
  .nav-item { border-bottom: 1px solid var(--line); }
  .nav-item__row { justify-content: space-between; }
  .nav-link { width: 100%; padding: 0.95rem 0.25rem; font-size: 1rem; justify-content: space-between; white-space: normal; border-radius: 0; }
  .nav-link:hover, .nav-item:hover > .nav-item__row > .nav-link { background: none; }
  .submenu-toggle { width: 44px; height: 44px; margin: 0; }
  .submenu, .submenu .submenu {
    position: static; display: none; min-width: 0; margin: 0 0 0.75rem; padding: 0 0 0 0.9rem;
    border: 0; border-left: 2px solid var(--brand-100); border-radius: 0; box-shadow: none;
    opacity: 1; visibility: visible; transform: none; column-count: auto !important;
  }
  .nav-item.is-open > .submenu { display: block; }
  .nav-item.is-open > .nav-item__row .icon { transform: rotate(180deg); }
  .submenu .nav-item { border-bottom: 0; }
  .submenu .nav-link { padding: 0.6rem 0.25rem; }
  .submenu .nav-link--button .icon { transform: none; }
  .nav-cta { width: 100%; }
  body.nav-open { overflow: hidden; }
}
/* the same ☰ menu when the menu does not fit (main.js → html.nav-compact) */
html.nav-compact .nav-toggle { display: inline-flex; }html.nav-compact .site-nav {
    position: fixed; inset: var(--nav-top, 120px) 0 0 0; z-index: 40;
    flex-direction: column; align-items: stretch; gap: 1rem;
    padding: 0.75rem var(--gutter) 2rem;
    background: #fff; overflow-y: auto; overscroll-behavior: contain;
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  }html.nav-compact .site-nav.is-open { visibility: visible; opacity: 1; transform: none; }html.nav-compact .nav-list { flex-direction: column; align-items: stretch; }html.nav-compact .nav-item { border-bottom: 1px solid var(--line); }html.nav-compact .nav-item__row { justify-content: space-between; }html.nav-compact .nav-link { width: 100%; padding: 0.95rem 0.25rem; font-size: 1rem; justify-content: space-between; white-space: normal; border-radius: 0; }html.nav-compact .nav-link:hover, html.nav-compact .nav-item:hover > .nav-item__row > .nav-link { background: none; }html.nav-compact .submenu-toggle { width: 44px; height: 44px; margin: 0; }html.nav-compact .submenu, html.nav-compact .submenu .submenu {
    position: static; display: none; min-width: 0; margin: 0 0 0.75rem; padding: 0 0 0 0.9rem;
    border: 0; border-left: 2px solid var(--brand-100); border-radius: 0; box-shadow: none;
    opacity: 1; visibility: visible; transform: none; column-count: auto !important;
  }html.nav-compact .nav-item.is-open > .submenu { display: block; }html.nav-compact .nav-item.is-open > .nav-item__row .icon { transform: rotate(180deg); }html.nav-compact .submenu .nav-item { border-bottom: 0; }html.nav-compact .submenu .nav-link { padding: 0.6rem 0.25rem; }html.nav-compact .submenu .nav-link--button .icon { transform: none; }html.nav-compact .nav-cta { width: 100%; }html.nav-compact body.nav-open { overflow: hidden; }



/* ---------- footer ---------- */
.site-footer { position: relative; background: var(--ink); color: rgb(255 255 255 / 0.68); font-size: 0.93rem; overflow: hidden; }
.site-footer::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, var(--brand), var(--brand-bright), var(--brand)); }
.footer-grid { display: grid; grid-template-columns: 1.55fr 1.5fr 0.95fr 1.2fr; gap: clamp(28px, 4vw, 56px); padding-block: clamp(56px, 7vw, 88px) clamp(40px, 5vw, 64px); }
.footer-brand__logo { display: inline-block; padding: 12px 16px; background: #fff; border-radius: var(--radius); }
.footer-brand__logo img { height: 46px; width: auto; }
.footer-brand__logo--dark { background: var(--brand); }
.footer-brand__logo .brand__emblem { width: 42px; height: 42px; }
.footer-brand__name { margin: 1.15rem 0 0.5rem; font: 800 1.18rem/1.3 var(--font-head); letter-spacing: -0.015em; color: #fff; }
.footer-brand__text { margin: 0 0 1.4rem; font-size: 0.9rem; line-height: 1.65; color: rgb(255 255 255 / 0.6); }
.footer-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1.6rem; }
.footer-actions .btn { min-height: 44px; padding: 0.6em 1.25em; font-size: 0.88rem; }
/* buttons keep their own colours inside the dark footer */
.site-footer .btn:hover { text-decoration: none; }
.site-footer .btn--light { color: var(--ink); }
.site-footer .btn--light:hover { color: var(--brand); }
.site-footer .btn--ghost { color: #fff; }
.site-footer .btn--ghost:hover { color: var(--ink); }
.footer-social { display: flex; align-items: center; gap: 0.9rem; flex-wrap: wrap; }
.footer-social__label { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: rgb(255 255 255 / 0.5); }
.footer-title { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1.2rem; font: 700 0.78rem/1.2 var(--font-body); letter-spacing: 0.14em; text-transform: uppercase; color: #fff; }
.footer-title::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: var(--brand-bright); }
.footer-links, .footer-contact { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.6rem; }
/* two columns that flow down and across, so wrapped names leave no gaps */
.footer-links--two { display: block; columns: 2; column-gap: 1.5rem; }
.footer-links--two li { break-inside: avoid; margin-bottom: 0.6rem; }
.footer-links a { display: inline-block; transition: transform 0.15s, color 0.15s; }
.footer-links a:hover { transform: translateX(3px); }
.site-footer a { color: rgb(255 255 255 / 0.8); text-decoration: none; transition: color 0.15s; }
.site-footer a:hover, .site-footer a[aria-current="page"] { color: #fff; text-decoration: underline; text-decoration-color: var(--brand-bright); text-underline-offset: 4px; }
.footer-contact li { display: flex; gap: 0.7rem; align-items: flex-start; }
.footer-contact .icon { margin-top: 0.3em; color: var(--brand-200); }
.social-links { display: flex; gap: 0.5rem; }
.social-links a { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 50%; background: rgb(255 255 255 / 0.08); }
.social-links a:hover { background: var(--brand); }
.footer-bottom { border-top: 1px solid rgb(255 255 255 / 0.1); font-size: 0.84rem; }
.footer-bottom__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; padding-block: 1.3rem; }
.footer-bottom p { margin: 0; }
.footer-bottom__links { display: flex; flex-wrap: wrap; gap: 0 0.4rem; align-items: center; }
.footer-bottom__links a { display: inline-block; padding-block: 0.3rem; }
.footer-bottom__links a.footer-top-link { display: inline-flex; align-items: center; gap: 0.3rem; }
.footer-top-link .icon { width: 14px; height: 14px; transform: rotate(180deg); }

@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; max-width: 620px; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .footer-links--two { columns: 1; }
}

/* ---------- floating actions (tablets & desktops) ---------- */
.floating-actions { position: fixed; right: 18px; bottom: 24px; z-index: 45; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.fab {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  border: 0; border-radius: 999px; cursor: pointer; text-decoration: none;
  box-shadow: 0 14px 28px -12px rgb(17 19 24 / 0.5);
  transition: transform 0.2s, background-color 0.2s;
}
.fab:hover { transform: translateY(-2px); }
.fab--enquire { padding: 0.85rem 1.3rem; background: var(--brand); color: #fff; font: 700 0.9rem/1 var(--font-body); }
.fab--enquire:hover { background: var(--brand-dark); }
.fab--whatsapp { width: 56px; height: 56px; background: #25d366; color: #fff; }
.fab--whatsapp .icon { width: 28px; height: 28px; }
.fab--whatsapp:hover { color: #fff; }

/* ---------- action bar (phones): call, WhatsApp, enquire, apply always one tap away ---------- */
.mobile-bar { display: none; }
@media (max-width: 760px) {
  .floating-actions { display: none; }
  body { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
  .mobile-bar {
    position: fixed; inset: auto 0 0; z-index: 45;
    display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    background: rgb(255 255 255 / 0.98); border-top: 1px solid var(--line);
    box-shadow: 0 -12px 28px -20px rgb(17 19 24 / 0.5);
  }
  .mobile-bar__item {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    min-height: 54px; padding: 4px; border: 0; border-radius: 14px; background: none;
    font: 700 0.75rem/1.2 var(--font-body); color: var(--ink); text-decoration: none; cursor: pointer;
  }
  .mobile-bar__item .icon { width: 22px; height: 22px; color: var(--brand); }
  .mobile-bar__item:hover { color: var(--brand); background: var(--brand-50); }
  .mobile-bar__item--primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-brand); }
  .mobile-bar__item--primary .icon { color: #fff; }
  .mobile-bar__item--primary:hover { background: var(--brand-dark); color: #fff; }
  body.nav-open .mobile-bar { display: none; }
}

/* ---------- enquiry pop-up ---------- */
.enquiry-dialog {
  width: min(600px, calc(100% - 24px)); max-height: calc(100dvh - 32px); padding: 0; overflow: auto;
  border: 0; border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-lg);
  overscroll-behavior: contain;
}
.enquiry-dialog::backdrop { background: rgb(17 19 24 / 0.6); }
.enquiry-dialog .enquiry-card { border: 0; box-shadow: none; border-radius: 0; }
.enquiry-dialog .enquiry-card__title { padding-right: 3rem; }
.enquiry-dialog__close {
  position: sticky; top: 12px; float: right; z-index: 1; margin: 12px 12px 0 0;
  display: inline-flex; width: 42px; height: 42px; align-items: center; justify-content: center;
  border: 0; border-radius: 50%; background: var(--surface-2); color: var(--ink); cursor: pointer;
}
.enquiry-dialog__close:hover { background: var(--brand); color: #fff; }

/* ==========================================================================
   03 — Home page sections
   ========================================================================== */

.section { padding-block: var(--section); }
.section--tint { background: var(--surface); }
.section--dark {
  position: relative; isolation: isolate; overflow: hidden;
  background:
    radial-gradient(55% 70% at 100% 0%, rgb(146 0 35 / 0.55), transparent 70%),
    radial-gradient(45% 60% at 0% 100%, rgb(200 16 46 / 0.2), transparent 70%),
    var(--ink);
  color: rgb(255 255 255 / 0.78);
}
.section--dark .section-title, .section--dark h3 { color: #fff; }
.section--dark .eyebrow { background: rgb(255 255 255 / 0.1); color: #fff; }
.section--dark .eyebrow::before { background: var(--brand-bright); }

.section-heading { max-width: 780px; margin-bottom: clamp(32px, 4.5vw, 56px); }
.section-heading--center { margin-inline: auto; text-align: center; }
.section-heading--left { margin-bottom: 1.4rem; }
.section-title { margin: 0; }
.section-lead { margin: 1rem 0 0; font-size: var(--fs-lead); color: var(--text); }
.section-head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: clamp(32px, 4.5vw, 56px); }
.section-head-row .section-heading { margin: 0; }

/* two-column media + text */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.split--single { grid-template-columns: minmax(0, 820px); justify-content: center; }
.split--form { align-items: start; grid-template-columns: 1.05fr 0.95fr; }
.split--profile { grid-template-columns: 0.8fr 1.2fr; align-items: start; }
.split__media img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
@media (max-width: 900px) {
  .split, .split--form, .split--profile { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- hero: rounded, photos and video in their real colours ---------- */
.hero {
  position: relative; display: flex; align-items: center;
  min-height: min(84vh, 760px); margin: 12px 12px 0;
  border-radius: var(--radius-xl); overflow: hidden; isolation: isolate;
  color: #fff; background: var(--ink);
}
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__image, .hero__video { width: 100%; height: 100%; object-fit: cover; }
.hero__video { position: absolute; inset: 0; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgb(10 11 14 / 0.8) 0%, rgb(10 11 14 / 0.55) 42%, rgb(10 11 14 / 0.08) 78%),
    linear-gradient(0deg, rgb(10 11 14 / 0.5) 0%, transparent 42%);
}
.hero__content { padding-block: clamp(80px, 11vw, 136px); max-width: var(--container); }
.home--group .hero__content { padding-bottom: clamp(116px, 14vw, 176px); }
.hero__content > * { max-width: 720px; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 0.6em; margin-bottom: 1.4rem; padding: 0.5em 1.05em;
  border: 1px solid rgb(255 255 255 / 0.28); border-radius: 999px; background: rgb(255 255 255 / 0.12);
  font-size: 0.84rem; font-weight: 600; letter-spacing: 0.01em; color: #fff;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.hero__eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brand-bright); box-shadow: 0 0 0 4px rgb(200 16 46 / 0.3); }
.hero__title { color: #fff; font-size: var(--fs-h1); margin-bottom: 1.3rem; text-shadow: 0 2px 30px rgb(0 0 0 / 0.25); }
.hero__text { font-size: var(--fs-lead); color: rgb(255 255 255 / 0.88); margin-bottom: 2.2rem; max-width: 600px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.hero .btn--light { background: rgb(255 255 255 / 0.14); color: #fff; border-color: rgb(255 255 255 / 0.4); box-shadow: none; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.hero .btn--light:hover { background: #fff; color: var(--ink); }

/* key figures across the foot of the banner */
.hero__stats {
  display: flex; flex-wrap: wrap; gap: 0 clamp(24px, 4vw, 56px); margin: clamp(32px, 4vw, 52px) 0 0;
  max-width: none; padding-top: clamp(20px, 2.5vw, 28px); border-top: 1px solid rgb(255 255 255 / 0.22);
}
.hero-stat { display: grid; gap: 0.1rem; }
.hero-stat dd { margin: 0; font: 800 clamp(1.5rem, 1.1rem + 1.4vw, 2.3rem)/1.1 var(--font-head); letter-spacing: -0.03em; color: #fff; }
.hero-stat dt { font-size: 0.82rem; font-weight: 600; color: rgb(255 255 255 / 0.72); }
@media (max-width: 640px) {
  .hero__stats { gap: 1rem 1.5rem; }
  .hero-stat { min-width: 40%; }
}
@media (max-width: 640px) {
  .hero { margin: 8px 8px 0; border-radius: var(--radius-lg); min-height: 0; }
  .hero__media::after { background: linear-gradient(180deg, rgb(10 11 14 / 0.45) 0%, rgb(10 11 14 / 0.78) 100%); }
}

/* ---------- student shortcuts (group home) ---------- */
.quick-links { position: relative; z-index: 3; margin-top: -68px; }
.quick-links__grid {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0;
  margin: 0; padding: 0.6rem; list-style: none;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
}
.quick-link {
  display: flex; align-items: center; gap: 0.8rem; height: 100%; padding: 0.95rem 1rem; border-radius: var(--radius);
  color: var(--ink); text-decoration: none; transition: background-color 0.2s, color 0.2s;
}
.quick-link:hover { background: var(--brand-50); color: var(--brand); }
.quick-link__icon { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 14px; background: var(--brand-50); color: var(--brand); transition: background-color 0.2s, color 0.2s; }
.quick-link:hover .quick-link__icon { background: var(--brand); color: #fff; }
.quick-link__icon .icon { width: 22px; height: 22px; }
.quick-link__text { display: grid; line-height: 1.3; }
.quick-link__text strong { font-size: 0.94rem; color: inherit; }
.quick-link__text small { font-size: 0.77rem; color: var(--muted); }
@media (max-width: 1100px) { .quick-links__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .quick-links { margin-top: -36px; }
  .quick-links__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0.4rem; }
  .quick-link { flex-direction: column; align-items: flex-start; gap: 0.55rem; padding: 0.9rem; }
}

/* ---------- approved & affiliated: one large card per body ---------- */
.approvals { background: var(--surface); }
/* Up to three bodies sit centred; four make two rows of two; five or more go three across. */
.approval-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 340px)); justify-content: center; gap: clamp(16px, 1.8vw, 24px); margin: 0; padding: 0; list-style: none; }
.approval-grid:has(> :nth-child(4)):not(:has(> :nth-child(5))) { grid-template-columns: repeat(2, minmax(0, 360px)); }
.approval-grid:has(> :nth-child(5)) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.approval-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: clamp(24px, 3vw, 36px) clamp(18px, 2.5vw, 28px);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.approval-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.approval-card__logo { display: grid; place-items: center; width: 120px; height: 120px; margin-bottom: 1.15rem; }
.approval-card__logo img { width: 100%; height: 100%; object-fit: contain; }
.approval-card__name { margin: 0 0 0.3rem; font-size: 1.16rem; }
.approval-card__full { margin: 0 0 1.1rem; font-size: 0.86rem; line-height: 1.5; color: var(--muted); }
.approval-card__name:last-child, .approval-card__full:last-child { margin-bottom: 0; }
.badge--approved { background: var(--success-bg); color: var(--success); }
.badge--affiliated { background: var(--brand-50); color: var(--brand); }
.badge--recognised { background: #fff4e0; color: #8a5300; }
@media (max-width: 900px) {
  .approval-grid, .approval-grid:has(> :nth-child(4)), .approval-grid:has(> :nth-child(5)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .approval-grid, .approval-grid:has(> :nth-child(4)), .approval-grid:has(> :nth-child(5)) { grid-template-columns: 1fr; }
  .approval-card { padding: 1.4rem 1.2rem; }
  .approval-card__logo { width: 84px; height: 84px; margin-bottom: 0.9rem; }
  .approval-card__name { font-size: 1.05rem; }
  .approval-card__full { margin-bottom: 0.9rem; }
}

/* ---------- about ---------- */
/* about images are often ready-made collages with their own shapes, so they get no extra frame */
.about__media { position: relative; }
.about__media img { box-shadow: none; }
.about { overflow-x: clip; } /* the badge must not widen the page on phones */
.about__link { margin-top: 1.5rem; }
.about__badge {
  position: absolute; left: -18px; bottom: 28px; margin: 0;
  display: grid; padding: 1rem 1.3rem; border-radius: 20px;
  background: linear-gradient(135deg, var(--brand), var(--brand-bright)); color: #fff; box-shadow: var(--shadow-brand);
  line-height: 1.1;
}
.about__badge small { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: rgb(255 255 255 / 0.8); }
.about__badge strong { color: #fff; font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; }
@media (max-width: 640px) { .about__badge { left: 12px; bottom: 12px; padding: 0.7rem 1rem; } .about__badge strong { font-size: 1.5rem; } }

/* ---------- colleges ---------- */
.colleges { background: var(--surface); }
.college-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 1.5rem; }
/* ten colleges: five across on wide screens, so no row is left half empty */
@media (min-width: 1200px) {
  .colleges .college-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.1rem; }
  .colleges .college-card__body { padding: 1.1rem 1.15rem 1.25rem; }
  .colleges .college-card__title { font-size: 1rem; }
}
.college-card__link {
  display: flex; flex-direction: column; height: 100%;
  background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden;
  color: inherit; text-decoration: none; transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.college-card__link:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: transparent; color: inherit; }
.college-card__media { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--surface-2); overflow: hidden; }
.college-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.college-card__media::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, rgb(10 11 14 / 0.86)); }
.college-card__link:hover .college-card__media img { transform: scale(1.06); }
.college-card__body { display: flex; flex-direction: column; gap: 0.45rem; padding: 1.1rem 1.35rem 1.35rem; flex: 1; }
/* the college's name sits on its photograph */
.college-card__title { position: absolute; z-index: 1; inset: auto 1rem 0.9rem; font: 800 1.05rem/1.28 var(--font-head); letter-spacing: -0.015em; color: #fff; text-shadow: 0 1px 12px rgb(0 0 0 / 0.35); }
/* a card whose name sits under the photo (department and service cards) keeps it in the text column */
.college-card__body > .college-card__title { position: static; color: var(--ink); text-shadow: none; }
.college-card__text { font-size: 0.88rem; line-height: 1.55; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.college-card__more { margin-top: auto; padding-top: 0.6rem; display: inline-flex; align-items: center; gap: 0.4em; font-weight: 700; font-size: 0.86rem; color: var(--brand); }
.college-card__more .icon { transition: transform 0.2s; }
.college-card__link:hover .college-card__more .icon { transform: translateX(4px); }

/* ---------- carousel ---------- */
.carousel { position: relative; }
.carousel__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, calc((100% - 3rem) / 3));
  gap: 1.5rem; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  padding-bottom: 0.75rem; scrollbar-width: thin;
}
.carousel__track > * { scroll-snap-align: start; }
.carousel__controls { display: flex; justify-content: flex-end; gap: 0.6rem; margin-top: 1.25rem; }
.carousel__btn { display: inline-flex; width: 48px; height: 48px; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--ink); cursor: pointer; transition: background-color 0.2s, color 0.2s, border-color 0.2s; }
.carousel__btn:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
@media (max-width: 900px) { .carousel__track { grid-auto-columns: minmax(240px, 78%); } }

.course-slide { position: relative; border-radius: 22px; overflow: hidden; background: var(--ink); aspect-ratio: 4 / 5; }
.course-slide > a, .course-slide { color: #fff; text-decoration: none; }
.course-slide > a { display: block; height: 100%; }
.course-slide img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.course-slide:hover img { transform: scale(1.06); }
.course-slide__body { position: absolute; inset: auto 0 0; display: grid; gap: 0.5rem; padding: 4rem 1.3rem 1.3rem; background: linear-gradient(transparent, rgb(10 11 14 / 0.88)); }
.course-slide--plain .course-slide__body { inset: 0; align-content: end; background: linear-gradient(150deg, var(--brand-bright), var(--brand) 55%, var(--brand-dark)); }
.course-slide__title { font: 800 1.15rem/1.3 var(--font-head); letter-spacing: -0.015em; }
.course-slide__text { font-size: 0.86rem; line-height: 1.5; color: rgb(255 255 255 / 0.85); }
.course-slide__text--badge { justify-self: start; padding: 0.3em 0.8em; border-radius: 999px; background: rgb(255 255 255 / 0.16); font-size: 0.78rem; font-weight: 700; color: #fff; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }

/* ---------- programmes ---------- */
.programme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0.9rem; margin: 0; padding: 0; list-style: none; }
.programme-grid.is-collapsed:not(.is-searching) .programme:nth-child(n + 13) { display: none; }
.programme[hidden] { display: none; }
.programme__inner {
  display: flex; align-items: center; gap: 0.9rem; height: 100%;
  padding: 0.9rem 1rem; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; color: var(--ink); text-decoration: none; font-weight: 600; line-height: 1.4;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
a.programme__inner:hover { border-color: var(--brand-200); box-shadow: var(--shadow); transform: translateY(-2px); color: var(--ink); }
.programme__icon { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 14px; background: var(--brand-50); color: var(--brand); }
.programme__icon img { width: 28px; height: 28px; object-fit: contain; }
.programme__title { flex: 1; font-size: 0.93rem; }
.programme__inner > .icon { color: var(--muted); transition: transform 0.2s, color 0.2s; }
a.programme__inner:hover > .icon { color: var(--brand); transform: translateX(3px); }
.programmes__more { margin-top: 2rem; text-align: center; }
.programmes__more .icon { transition: transform 0.2s; }
.programmes__more [aria-expanded="true"] .icon { transform: rotate(180deg); }

.programme-search { position: relative; max-width: 640px; margin: 0 auto clamp(28px, 3.5vw, 40px); }
.programme-search > .icon { position: absolute; left: 1.2rem; top: 28px; transform: translateY(-50%); width: 20px; height: 20px; color: var(--brand); pointer-events: none; }
.programme-search input {
  width: 100%; min-height: 56px; padding: 0.8rem 1.2rem 0.8rem 3.2rem;
  border: 1.5px solid var(--line); border-radius: 999px; background: #fff;
  font: 500 1rem/1.3 var(--font-body); color: var(--ink); box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.programme-search input::placeholder { color: var(--muted); }
.programme-search input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-100); }
.programme-search__empty { margin: 1rem 0 0; text-align: center; color: var(--text); }

/* ---------- programmes offered (college homes, from the site menu) ---------- */
.offered__group + .offered__group { margin-top: 2.4rem; }
.offered__heading { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 1rem; font-size: 1.1rem; }
.offered__heading::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.offered__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 0.8rem; margin: 0; padding: 0; list-style: none; }
.offered__item {
  display: flex; align-items: center; gap: 0.85rem; height: 100%; padding: 0.85rem 1rem;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; color: var(--ink); font-weight: 600; font-size: 0.93rem; line-height: 1.4; text-decoration: none;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}
.offered__item > span { flex: 1; }
.offered__item > .icon:first-child { box-sizing: content-box; padding: 9px; border-radius: 12px; background: var(--brand-50); color: var(--brand); }
.offered__item > .icon:last-child { color: var(--muted); transition: transform 0.2s, color 0.2s; }
.offered__item:hover { color: var(--ink); box-shadow: var(--shadow); transform: translateY(-2px); border-color: var(--brand-200); }
.offered__item:hover > .icon:last-child { transform: translateX(3px); color: var(--brand); }

/* ---------- why choose us (dark) ---------- */
.feature-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.8rem 1rem; margin: 1.6rem 0 0; padding: 0; list-style: none; }
.feature-list li { display: flex; gap: 0.9rem; align-items: flex-start; padding: 0.95rem 1.05rem; border-radius: var(--radius); background: rgb(255 255 255 / 0.05); border: 1px solid rgb(255 255 255 / 0.08); color: #fff; font-weight: 500; line-height: 1.45; }
.feature-list__num { flex: none; font: 800 0.95rem/1.45 var(--font-head); color: var(--brand-200); }
/* artwork here is often a cut-out PNG, so no frame or crop */
.features__media img { box-shadow: none; border-radius: 0; object-fit: contain; max-height: 640px; }
@media (max-width: 600px) { .feature-list { grid-template-columns: 1fr; } }

/* ---------- campus tour ---------- */
.tour { background: #fff; }
.tour__inner { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.tour__points { display: grid; gap: 0.7rem; margin: 1.25rem 0 1.9rem; padding: 0; list-style: none; }
.tour__points li { display: flex; align-items: center; gap: 0.7rem; font-weight: 600; color: var(--ink); }
.tour__points .icon { display: inline-block; width: 28px; height: 28px; padding: 6px; border-radius: 50%; background: var(--brand-50); color: var(--brand); }
.tour__player { position: relative; isolation: isolate; }
.tour__player::before { content: ""; position: absolute; inset: 18% -14px -14px 18%; z-index: -1; border-radius: var(--radius-lg); background: linear-gradient(135deg, var(--brand), var(--brand-bright)); }
.tour__player video { width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); background: var(--ink); box-shadow: var(--shadow-lg); object-fit: cover; }
@media (max-width: 900px) {
  .tour__inner { grid-template-columns: 1fr; }
  .tour__player::before { inset: 18% -8px -8px 18%; }
}

/* ---------- testimonials ---------- */
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.testimonial { position: relative; margin: 0; padding: 2rem 1.8rem 1.6rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); display: flex; flex-direction: column; transition: box-shadow 0.25s, transform 0.25s; }
.testimonial:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.testimonial__quote { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 1rem; border-radius: 14px; background: var(--brand-50); color: var(--brand); }
.testimonial__quote .icon { width: 22px; height: 22px; }
.testimonial__title { margin: 0 0 0.2rem; font: 800 1.1rem/1.3 var(--font-head); letter-spacing: -0.015em; color: var(--ink); }
.testimonial blockquote { margin: 0.6rem 0 1.3rem; flex: 1; color: var(--text); }
.testimonial figcaption { display: flex; align-items: center; gap: 0.8rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.testimonial figcaption > span:last-child { display: grid; line-height: 1.35; }
.testimonial figcaption > span:last-child > span { font-size: 0.84rem; color: var(--muted); }
.avatar { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 50%; background: linear-gradient(135deg, var(--brand-bright), var(--brand)); color: #fff; font: 700 0.92rem/1 var(--font-body); letter-spacing: 0.04em; }
.stars { display: flex; gap: 2px; margin: 0.3rem 0 0; color: #d9dbe0; }
.stars .is-on { color: var(--star); }
.stars .icon { width: 16px; height: 16px; }

/* ---------- placements ---------- */
.logo-wall { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.logo-wall li { display: grid; place-items: center; padding: 1.1rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: box-shadow 0.2s; }
.logo-wall li:hover { box-shadow: var(--shadow-sm); }
.logo-wall img { max-height: 56px; width: auto; object-fit: contain; filter: grayscale(1); opacity: 0.75; transition: filter 0.2s, opacity 0.2s; }
.logo-wall li:hover img { filter: none; opacity: 1; }

/* ---------- news ---------- */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 1.5rem; }
.news-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: box-shadow 0.25s, transform 0.25s; }
.news-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.news-card__media { display: block; aspect-ratio: 16 / 10; background: var(--surface-2); overflow: hidden; }
.news-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.news-card:hover .news-card__media img { transform: scale(1.05); }
.news-card__placeholder { display: grid; place-items: center; height: 100%; background: linear-gradient(135deg, var(--brand-bright), var(--brand) 60%, var(--brand-dark)); color: #fff; }
.news-card__placeholder .icon { width: 56px; height: 56px; opacity: 0.9; }
.news-card__body { padding: 1.3rem 1.4rem 1.5rem; }
.news-card__meta { display: flex; align-items: center; gap: 0.4rem; margin: 0 0 0.6rem; font-size: 0.8rem; font-weight: 600; color: var(--muted); }
.news-card__meta .icon { color: var(--brand); }
.news-card__title { margin: 0 0 0.5rem; font-size: 1.12rem; line-height: 1.35; }
.news-card__title a { color: var(--ink); text-decoration: none; }
.news-card__title a:hover { color: var(--brand); }
.news-card__excerpt { margin: 0; font-size: 0.92rem; line-height: 1.6; color: var(--muted); }

/* ---------- call to action: a crimson card ---------- */
.cta-band { padding-block: clamp(16px, 3vw, 32px) clamp(48px, 6vw, 88px); background: #fff; }
.cta-band__inner {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem;
  padding: clamp(36px, 5vw, 64px) clamp(24px, 5vw, 64px);
  border-radius: var(--radius-xl);
  background: linear-gradient(120deg, var(--brand-dark) 0%, var(--brand) 45%, var(--brand-bright) 100%);
  color: rgb(255 255 255 / 0.88); box-shadow: var(--shadow-brand);
}
.cta-band__inner::before, .cta-band__inner::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; }
.cta-band__inner::before { width: 420px; height: 420px; right: -120px; top: -200px; background: radial-gradient(circle, rgb(255 255 255 / 0.18), transparent 65%); }
.cta-band__inner::after { width: 280px; height: 280px; left: -100px; bottom: -160px; background: radial-gradient(circle, rgb(255 255 255 / 0.1), transparent 65%); }
.cta-band__title { color: #fff; margin-bottom: 0.4rem; }
.cta-band p { margin: 0; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }

/* ==========================================================================
   04 — Inner pages: page header, structured layouts, forms, map, team, site map
   ========================================================================== */

/* ---------- page header ----------
   A band of brand-tinted light with the title set large on it. Everything here is painted by the
   browser — no photograph to wait for — so the top of every page appears the moment the HTML lands.
   A news post, which has a photograph of its own, gets the two-column variant further down. */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden;
  background:
    radial-gradient(64% 130% at 90% -24%, var(--brand-100), transparent 60%),
    radial-gradient(46% 120% at 2% 118%, var(--brand-50), transparent 66%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}
/* Concentric rings in the corner: quiet texture, nothing to download. */
.page-hero::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  right: -6%; top: -58%; width: min(40rem, 52%); aspect-ratio: 1; border-radius: 50%;
  background: repeating-radial-gradient(circle, transparent 0 38px, var(--brand-200) 38px 39.5px);
  opacity: 0.55;
  -webkit-mask-image: radial-gradient(circle, #000 48%, transparent 72%);
  mask-image: radial-gradient(circle, #000 48%, transparent 72%);
}
.page-hero__inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding-block: clamp(36px, 5.5vw, 72px); }
/* the usual case: title alone — a crisp title bar, not an empty stage */
.page-hero--plain .page-hero__inner { grid-template-columns: minmax(0, 1fr); padding-block: clamp(34px, 4.4vw, 64px); }
.page-hero__eyebrow { display: inline-flex; align-items: center; gap: 0.55em; margin: 0 0 0.9rem; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand); }
.page-hero__eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: currentColor; }
.page-hero__title { max-width: 20ch; margin: 0; color: var(--ink); font-size: clamp(2rem, 1.45rem + 2.4vw, 3.4rem); letter-spacing: -0.015em; text-wrap: balance; }
.page-hero--plain .page-hero__title { max-width: 24ch; }
/* a short crimson rule, so the title sits on something */
.page-hero--plain .page-hero__title::after {
  content: ""; display: block; width: 84px; height: 4px; margin-top: clamp(18px, 2.2vw, 26px);
  border-radius: 999px; background: linear-gradient(90deg, var(--brand), var(--brand-bright));
}
.page-hero__meta { display: flex; align-items: center; gap: 0.45rem; margin: 1.1rem 0 0; font-weight: 600; color: var(--muted); }
.page-hero__meta .icon { color: var(--brand); }
.page-hero__media { position: relative; isolation: isolate; }
.page-hero__media::before { content: ""; position: absolute; inset: 14% -14px -14px 14%; z-index: -1; border-radius: var(--radius-lg); background: linear-gradient(135deg, var(--brand), var(--brand-bright)); }
.page-hero__image { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-lg); }
@media (max-width: 800px) {
  .page-hero__inner { grid-template-columns: minmax(0, 1fr); gap: 1.6rem; }
  .page-hero__media::before { inset: 14% -8px -8px 14%; }
  .page-hero__image { aspect-ratio: 16 / 9; }
  .page-hero::after { top: -34%; right: -28%; width: 30rem; }
}

.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 0 0.35rem; margin: 0 0 0.8rem; padding: 0; list-style: none; font-size: 0.84rem; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 0.35rem; min-width: 0; padding-block: 0.3rem; color: var(--muted); }
.breadcrumbs li + li::before { content: "›"; color: var(--muted); opacity: 0.7; }
/* the padding makes each link a comfortable target for a thumb */
.breadcrumbs a { margin-block: -0.3rem; padding-block: 0.3rem; color: var(--text); font-weight: 600; text-decoration: none; }
.breadcrumbs a:hover { color: var(--brand); text-decoration: underline; }
.breadcrumbs [aria-current] { color: var(--brand); font-weight: 600; }

.section--page { padding-block: clamp(44px, 6vw, 88px); }

/* ---------- about layout ---------- */
.prose--center { max-width: 760px; margin: 0 auto 2.5rem; text-align: center; }
.image-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.image-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: box-shadow 0.25s, transform 0.25s; }
.image-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.image-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
/* SVG artwork in these cards is an icon, not a photo */
.image-card img[src$=".svg"] { width: 64px; height: 64px; aspect-ratio: auto; margin: 1.5rem 1.4rem 0; padding: 10px; border-radius: 16px; background: var(--brand-50); object-fit: contain; }
.image-card__body { padding: 1.3rem 1.4rem 1.5rem; }
.image-card__body h3 { margin-bottom: 0.4rem; }
.image-card__body p { margin: 0; font-size: 0.95rem; }

.icon-row { display: flex; gap: 1.1rem; align-items: flex-start; padding: 1.3rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.icon-row__icon { display: grid; place-items: center; width: 56px; height: 56px; flex: none; border-radius: 16px; background: var(--brand-50); }
.icon-row__icon img { width: 32px; height: 32px; object-fit: contain; }
.icon-row h3 { margin-bottom: 0.3rem; font-size: 1.12rem; }
.icon-row p:last-child, .icon-row .prose > :last-child { margin-bottom: 0; }

.profile__photo img { aspect-ratio: 4 / 5; object-fit: cover; object-position: top; }

/* ---------- organisational chart ---------- */
.org-chart { display: grid; gap: 1.25rem; justify-items: center; text-align: center; }
.org-level { position: relative; display: flex; justify-content: center; width: 100%; }
.org-level + .org-level::before { content: ""; position: absolute; top: -1.25rem; left: 50%; height: 1.25rem; border-left: 2px solid var(--line); }
.org-level--row, .org-level--grid { display: grid; gap: 1rem; }
.org-level--row { grid-template-columns: repeat(auto-fit, minmax(150px, 190px)); justify-content: center; }
.org-level--grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.org-node { padding: 0.9rem 1.4rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; font-weight: 700; color: var(--ink); box-shadow: var(--shadow-sm); }
.org-node--root { background: var(--ink); color: #fff; border-color: var(--ink); font-size: 1.1rem; }
.org-node--lead { background: var(--brand); color: #fff; border-color: var(--brand); min-width: 240px; }
.org-node--link { display: grid; gap: 0.3rem; text-decoration: none; transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s; }
.org-node--link:hover { border-color: var(--brand-200); transform: translateY(-2px); box-shadow: var(--shadow); color: var(--brand); }
.org-node small { font-weight: 500; color: var(--muted); font-size: 0.78rem; }

/* ---------- admission status ---------- */
.status-list { display: grid; gap: 0.7rem; margin: 0 0 2rem; padding: 0; list-style: none; }
.status-list__item { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.95rem 1.2rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: border-color 0.2s, box-shadow 0.2s; }
.status-list__item:hover { border-color: var(--brand-200); box-shadow: var(--shadow-sm); }
.status-list__name { font-weight: 700; color: var(--ink); }
.status-list__name a { color: inherit; text-decoration: none; }
.status-list__name a:hover { color: var(--brand); text-decoration: underline; }

/* ---------- contact ---------- */
.contact-list { display: grid; gap: 0.9rem; margin: 0 0 2rem; padding: 0; list-style: none; }
.contact-list__item { display: flex; align-items: center; gap: 1rem; font-weight: 600; color: var(--ink); }
/* the e-mail address may break, or it pushes the page sideways on a small phone */
.contact-list__item > span:not(.contact-list__icon) { min-width: 0; overflow-wrap: anywhere; }
.contact-list__item a { display: inline-block; padding-block: 0.3rem; color: inherit; text-decoration: none; }
.contact-list__item a:hover { color: var(--brand); }
.contact-list__icon { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 14px; background: var(--brand-50); color: var(--brand); }

/* ---------- enquiry form ---------- */
.enquiry-card { padding: clamp(22px, 3vw, 36px); background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.enquiry-card__title { margin-bottom: 0.4rem; font-size: 1.55rem; }
.enquiry-card__text { margin-bottom: 1.4rem; font-size: 0.95rem; color: var(--muted); }
.enquiry-card__alt { margin: 1.3rem 0 0; padding-top: 1rem; border-top: 1px solid var(--line); font-size: 0.88rem; color: var(--muted); }

.enquiry-form { display: grid; gap: 0.95rem; }
.field { display: grid; gap: 0.35rem; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.95rem; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.field label { font-size: 0.84rem; font-weight: 700; color: var(--ink); }
.field label span { color: var(--brand); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 0.7rem 0.95rem;
  border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface);
  font: 500 1rem/1.4 var(--font-body); color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}
.field textarea { min-height: 100px; resize: vertical; }
.field select { appearance: none; padding-right: 2.5rem; cursor: pointer; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23920023' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 0.95rem center / 18px no-repeat; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #d3d7de; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); background-color: #fff; box-shadow: 0 0 0 4px var(--brand-100); }
.field input:user-invalid, .field select:user-invalid { border-color: #c0392b; }
.field-trap { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.85rem; line-height: 1.5; color: var(--text); cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: 0.1rem 0 0; flex: none; accent-color: var(--brand); cursor: pointer; }
.enquiry-form__submit { width: 100%; margin-top: 0.25rem; min-height: 52px; }
.enquiry-form__submit:disabled { opacity: 0.65; cursor: progress; }
.enquiry-form__status { margin: 0; font-size: 0.92rem; font-weight: 600; }
.enquiry-form__status:empty { display: none; }
.enquiry-form__status.is-busy { color: var(--muted); }
.enquiry-form__status.is-ok { padding: 0.85rem 1rem; border-radius: 12px; background: var(--success-bg); color: var(--success); }
.enquiry-form__status.is-error { padding: 0.85rem 1rem; border-radius: 12px; background: #fdecea; color: #a4221a; }

/* ---------- campus map (local image, link opens directions) ---------- */
.map-card { margin: 1.5rem 0 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-sm); }
.map-card__image { position: relative; display: block; }
.map-card__image img { width: 100%; aspect-ratio: 5 / 3; object-fit: cover; transition: transform 0.5s; }
.map-card__image:hover img { transform: scale(1.02); }
.map-card__cta {
  position: absolute; right: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.62rem 1.05rem; border-radius: 999px; background: var(--brand); color: #fff;
  font-weight: 700; font-size: 0.88rem; box-shadow: var(--shadow-brand);
}
.map-card__image:hover .map-card__cta { background: var(--brand-dark); }
.map-card__caption { display: grid; grid-template-columns: auto 1fr; gap: 0.2rem 0.6rem; padding: 0.95rem 1.15rem; font-size: 0.9rem; font-weight: 600; color: var(--ink); }
.map-card__caption .icon { margin-top: 0.2em; color: var(--brand); }
.map-card__caption small { grid-column: 2; font-size: 0.75rem; font-weight: 500; color: var(--muted); }

/* ---------- team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1.5rem; }
.team-card { padding: 0.8rem 0.8rem 1.3rem; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); transition: box-shadow 0.25s, transform 0.25s; }
.team-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.team-card img, .team-card__placeholder { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: top; border-radius: var(--radius); margin-bottom: 1rem; background: var(--surface); }
.team-card__placeholder { display: grid; place-items: center; color: var(--muted); }
.team-card__placeholder .icon { width: 56px; height: 56px; }
.team-card h3 { margin-bottom: 0.2rem; font-size: 1.05rem; }
.team-card p { margin: 0; font-size: 0.86rem; color: var(--muted); }

/* ---------- site map ---------- */
.sitemap__intro { margin-bottom: 2rem; }
.sitemap { columns: 3 320px; column-gap: 1.5rem; }
.sitemap__site { break-inside: avoid; margin: 0 0 1.5rem; padding: 1.35rem 1.45rem; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; }
.sitemap__title { display: flex; gap: 0.6rem; align-items: baseline; margin: 0 0 0.85rem; font-size: 1.08rem; }
.sitemap__title::before { content: ""; width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--brand); transform: translateY(-2px); }
.sitemap__title a { color: var(--ink); text-decoration: none; }
.sitemap__title a:hover { color: var(--brand); }
.sitemap__list { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.35rem; font-size: 0.92rem; }
.sitemap__list a { color: var(--text); text-decoration: none; }
.sitemap__list a:hover { color: var(--brand); text-decoration: underline; }

/* ---------- news & misc ---------- */
.back-link { margin-top: 2.5rem; }
.not-found { text-align: center; }
.not-found .footer-links { margin-top: 2.5rem; text-align: left; }
.footer-links--columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0.6rem 2rem; padding: 0; list-style: none; }

/* ---------- course pages: one structure for every programme ----------
   Hero with this year's admissions and the three ways in (Apply / WhatsApp / Call), a strip of key
   facts, then the detail beside an enquiry form that stays in view on a wide screen. */
.page-hero__lead { max-width: 62ch; margin: 1.1rem 0 0; font-size: var(--fs-lead); color: var(--text); }
.page-hero__actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.6rem; }
.btn--whatsapp { background: #128c4a; color: #fff; box-shadow: 0 14px 30px -14px rgb(18 140 74 / 0.6); }
.btn--whatsapp:hover { background: #0e7a3f; color: #fff; }

.course-facts { border-bottom: 1px solid var(--line); background: var(--bg); }
.course-facts__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 0; margin: 0; }
.course-fact { padding: clamp(18px, 2.2vw, 26px) clamp(14px, 1.8vw, 24px); border-left: 1px solid var(--line); }
.course-fact:first-child { border-left: 0; padding-left: 0; }
.course-fact dt { margin: 0 0 0.35rem; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand); }
.course-fact dd { margin: 0; font-weight: 700; color: var(--ink); line-height: 1.4; }
.course-fact small { display: block; margin-top: 0.2rem; font-size: 0.84rem; font-weight: 500; color: var(--muted); }

.section--course { padding-top: clamp(32px, 4vw, 56px); }
.course { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); gap: clamp(28px, 4.5vw, 64px); align-items: start; }
.course__aside { position: sticky; top: 96px; }
.course-toc ul, .prose .course-toc ul { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 2rem; padding: 0; list-style: none; }
.course-toc li { margin: 0; padding: 0; }
.course-toc li::before { content: none; }
.course-toc a { display: inline-block; padding: 0.4rem 0.85rem; border: 1px solid var(--line); border-radius: 999px; font-size: 0.86rem; font-weight: 600; color: var(--ink); text-decoration: none; background: #fff; }
.course-toc a:hover { border-color: var(--brand-200); color: var(--brand); }
.course-block { scroll-margin-top: 110px; padding-bottom: clamp(20px, 2.6vw, 34px); margin-bottom: clamp(20px, 2.6vw, 34px); border-bottom: 1px solid var(--line); }
.course-block:last-child { border-bottom: 0; }
.course-block > h2 { margin-top: 0; }
.course-quote { margin: 0 0 1rem; padding: 1.1rem 1.3rem; border-left: 4px solid var(--brand); border-radius: var(--radius-sm); background: var(--surface); }
.course-quote p { margin: 0 0 0.5rem; }
.course-quote footer { font-weight: 700; color: var(--ink); }
.course-location .map-card { margin: 0; }

@media (max-width: 960px) {
  .course { grid-template-columns: 1fr; }
  .course__aside { position: static; }
  .course-fact { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
  .course-fact:first-child { border-top: 0; }
}

/* ==========================================================================
   05 — Migrated page content (.prose) and its small class vocabulary
   (.cols .col .media-text .panel .info-card .card-grid .gallery .table-wrap
    .btn-row .check-list .file-link details)
   ========================================================================== */

.prose { color: var(--text); overflow-wrap: break-word; font-size: 1.02rem; }
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose h2 { margin: 2.6rem 0 1rem; font-size: clamp(1.5rem, 1.25rem + 1vw, 2.1rem); }
.prose h3 { margin: 2rem 0 0.8rem; }
.prose h4, .prose h5, .prose h6 { margin: 1.6rem 0 0.6rem; }
.prose h4 { color: var(--brand); }
.prose ul, .prose ol { margin: 0 0 1.3rem; padding-left: 1.3rem; }
.prose li { margin-bottom: 0.5rem; }
.prose li::marker { color: var(--brand); }
.prose figure { margin: 1.75rem 0; }
.prose img { border-radius: var(--radius); }
.prose figure img { margin-inline: auto; }
.prose figcaption { margin-top: 0.6rem; font-size: 0.85rem; color: var(--muted); text-align: center; }
.prose blockquote { position: relative; margin: 2rem 0; padding: 1.4rem 1.6rem 1.4rem 1.8rem; border-radius: var(--radius); background: var(--surface); font-size: 1.06rem; color: var(--ink); }
.prose blockquote::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 4px; border-radius: 4px; background: var(--brand); }
.prose blockquote p:last-child { margin: 0; }

/* columns */
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: clamp(20px, 3vw, 40px); margin: 0 0 1.75rem; align-items: start; }
.col > :last-child { margin-bottom: 0; }
.col--aside { padding: 1.5rem; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
@media (min-width: 900px) {
  .cols:has(> .col--aside) { grid-template-columns: minmax(240px, 0.4fr) 1fr; }
}
/* boxes side by side are the same height */
.cols:has(> .panel), .cols:has(> .col--aside) { align-items: stretch; }
.cols > .panel { margin-bottom: 0; }

/* image beside text */
.media-text { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(20px, 4vw, 48px); align-items: center; margin: 0 0 2.2rem; }
.media-text--right .media-text__media { order: 2; }
.media-text__media img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.media-text__content > :last-child { margin-bottom: 0; }
@media (max-width: 760px) {
  .media-text { grid-template-columns: 1fr; }
  .media-text--right .media-text__media { order: 0; }
}

/* boxes & cards */
.panel { padding: clamp(18px, 3vw, 28px); margin: 0 0 1.5rem; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.panel > :last-child { margin-bottom: 0; }
.syllabus-note { margin-top: 2.2rem; background: var(--brand-50); border-color: var(--brand-100); }
.prose .syllabus-note h3 { margin: 0 0 0.4rem; font-size: 1.12rem; color: var(--brand); }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 1.25rem; margin: 0 0 1.75rem; }
.info-card { display: flex; flex-direction: column; gap: 0.45rem; height: 100%; padding: 1.5rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); transition: border-color 0.2s, box-shadow 0.25s, transform 0.25s; }
.info-card:hover { border-color: var(--brand-200); box-shadow: var(--shadow); transform: translateY(-2px); }
.info-card h2, .info-card h3, .info-card h4 { margin: 0.25rem 0 0.2rem; font-size: 1.12rem; color: var(--ink); }
.info-card p { margin: 0; font-size: 0.95rem; }
.info-card__icon { width: 52px; height: 52px; object-fit: contain; }
img.info-card__icon { padding: 8px; border-radius: 14px; background: var(--brand-50); }
div.info-card__icon { display: grid; place-items: center; border-radius: 14px; background: var(--brand-50); color: var(--brand); }
div.info-card__icon svg { width: 28px; height: 28px; fill: currentColor; }
a > .info-card, .prose a:has(> .info-card) { color: inherit; text-decoration: none; }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0.8rem; margin: 1.5rem 0; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); cursor: zoom-in; transition: transform 0.35s, box-shadow 0.35s; }
.gallery img:hover { transform: scale(1.02); box-shadow: var(--shadow); }
.gallery--large { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; margin: 0; }

/* tables */
.table-wrap { margin: 1.75rem 0; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
.prose table:not(.table-wrap table) { display: block; overflow-x: auto; margin: 1.75rem 0; border: 1px solid var(--line); border-radius: var(--radius); }
.prose th, .prose td { padding: 0.8rem 1rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose thead th, .prose tr:first-child th { background: var(--ink); color: #fff; font-weight: 700; }
.prose tbody tr:nth-child(even) { background: var(--surface); }
.prose tr:last-child td { border-bottom: 0; }

/* buttons & lists */
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.25rem 0; }
.prose .btn { text-decoration: none; }
.prose .btn:not(.btn--outline) { background: var(--brand); color: #fff; }
.prose .btn:not(.btn--outline):hover { background: var(--brand-dark); }
.check-list { list-style: none; padding-left: 0 !important; }
.check-list li { position: relative; padding-left: 2rem; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 0.3em;
  width: 1.3rem; height: 1.3rem; border-radius: 50%;
  background: var(--brand-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23920023' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 60% no-repeat;
}
.col--aside .check-list a { color: var(--ink); text-decoration: none; font-weight: 600; }
.col--aside .check-list a:hover { color: var(--brand); }

.file-link a {
  display: inline-flex; align-items: center; gap: 0.65rem; padding: 0.75rem 1.15rem;
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  font-weight: 700; color: var(--ink); text-decoration: none; transition: border-color 0.2s, color 0.2s, box-shadow 0.2s;
}
.file-link a::before { content: ""; width: 22px; height: 22px; flex: none; background: var(--brand); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 2v6h6M9 15h6M9 18h4'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 2v6h6M9 15h6M9 18h4'/%3E%3C/svg%3E") center / contain no-repeat; }
.file-link a:hover { border-color: var(--brand-200); color: var(--brand); box-shadow: var(--shadow-sm); }

/* accordion */
.prose details { margin: 0 0 0.75rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: box-shadow 0.2s; }
.prose details[open] { box-shadow: var(--shadow-sm); }
.prose summary { padding: 1rem 1.25rem; font-weight: 700; color: var(--ink); cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.prose summary::-webkit-details-marker { display: none; }
.prose summary::after { content: "+"; display: grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--brand-50); font-size: 1.2rem; line-height: 1; color: var(--brand); }
.prose details[open] summary::after { content: "–"; }
.prose details > :not(summary) { padding-inline: 1.25rem; }
.prose details > :last-child { padding-bottom: 1rem; }

/* embedded forms & maps */
.prose .enquiry-card, .prose .map-card { margin: 1.75rem 0; }
.prose .map-card img, .prose .enquiry-card img { border-radius: 0; }

/* image lightbox */
.lightbox { padding: 0; border: 0; background: transparent; max-width: 92vw; max-height: 92vh; }
.lightbox::backdrop { background: rgb(10 11 14 / 0.88); }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: var(--radius); }
.lightbox button { position: fixed; top: 16px; right: 16px; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #fff; cursor: pointer; font-size: 1.4rem; }

/* ==========================================================================
   MVM Hospitals: clinic cards, care at home, clinic list, address card, notices
   ========================================================================== */

/* four clinics: four across on wide screens, two on tablets */
@media (min-width: 1200px) { .colleges .college-grid--four { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; } }
@media (min-width: 700px) and (max-width: 1199px) { .college-grid--four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- care at home ---------- */
.home-care__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 1.5rem; }
.home-care__card {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: 20px; color: inherit; text-decoration: none;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.home-care__card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; color: inherit; }
.home-care__media { background: var(--surface-2); min-height: 200px; }
.home-care__media img { width: 100%; height: 100%; object-fit: cover; }
.home-care__body { display: flex; flex-direction: column; gap: 0.55rem; padding: 1.4rem 1.5rem; }
.home-care__title { display: flex; align-items: center; gap: 0.5rem; font: 800 1.1rem/1.3 var(--font-head); color: var(--ink); }
.home-care__title .icon { flex: none; width: 22px; height: 22px; color: var(--brand); }
.home-care__text { font-size: 0.92rem; line-height: 1.6; color: var(--muted); }
.home-care__card:hover .college-card__more .icon { transform: translateX(4px); }
@media (max-width: 560px) { .home-care__card { grid-template-columns: 1fr; } .home-care__media { aspect-ratio: 16 / 9; min-height: 0; } }

.section-more { margin: 2rem 0 0; text-align: center; }

/* ---------- clinic list (appointment and contact pages) ---------- */
.clinic-list { display: grid; gap: 1rem; margin: 1.5rem 0; padding: 0; list-style: none; }
.clinic-list__item { padding: 1.15rem 1.25rem; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: var(--radius); }
.clinic-list__name { margin: 0 0 0.35rem; font-size: 1.05rem; }
.clinic-list__name a { color: var(--ink); text-decoration: none; }
.clinic-list__name a:hover { color: var(--brand); }
.clinic-list__address { display: flex; gap: 0.5rem; margin: 0 0 0.8rem; font-size: 0.88rem; line-height: 1.5; color: var(--muted); }
.clinic-list__address .icon { flex: none; width: 18px; height: 18px; margin-top: 0.1em; color: var(--brand); }
.clinic-list__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; }
.btn--small { min-height: 40px; padding: 0.45em 1em; font-size: 0.85rem; }
.btn--small .icon { width: 16px; height: 16px; }
.contact-clinics__title { margin: 2.25rem 0 0; font-size: var(--fs-h3); }

/* ---------- notice ---------- */
.notice { display: flex; gap: 0.75rem; margin: 1.5rem 0 0; padding: 1rem 1.15rem; background: var(--brand-50); border-radius: var(--radius); font-size: 0.9rem; line-height: 1.55; color: var(--ink-2); }
.notice .icon { flex: none; width: 22px; height: 22px; color: var(--brand); }

/* ---------- a clinic's own address, with directions (clinics away from the main campus) ---------- */
.map-card--address { background: linear-gradient(135deg, var(--brand-50), #fff 70%); }
.map-card__address { display: grid; grid-template-columns: auto 1fr; gap: 1rem 1rem; align-items: start; padding: 1.5rem; color: inherit; text-decoration: none; }
.map-card__pin { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--brand); color: #fff; box-shadow: var(--shadow-brand); }
.map-card__pin .icon { width: 24px; height: 24px; }
.map-card__place { display: grid; gap: 0.3rem; font-size: 0.95rem; line-height: 1.55; }
.map-card__place strong { font-size: 1.05rem; color: var(--ink); }
.map-card__address .btn { grid-column: 2; justify-self: start; }
@media (max-width: 480px) { .map-card__address .btn { grid-column: 1 / -1; } }

/* ---------- footer: a second heading in the clinics column ---------- */
.footer-title--spaced { margin-top: 2rem; }

/* ---------- 404 buttons ---------- */
.btn-row--center { justify-content: center; }

/* clinic services: three across (six cards make two full rows); four when there are exactly four */
@media (min-width: 900px) {
  .services .college-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .services .college-grid:has(> :nth-child(4):last-child) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* line icons in content cards (<span data-icon="…">): drawn with a stroke, not filled */
div.info-card__icon svg.icon { fill: none; stroke: currentColor; }

/* service tree: a service and its branches, as a diagram that reflows on phones (Speech & Hearing) */
.service-tree { margin: 1.5rem 0 2.5rem; text-align: center; }
.service-tree__root { display: inline-block; margin: 0; padding: 0.7rem 1.6rem; border-radius: 999px; background: var(--brand); color: #fff; font: 800 1.05rem/1.3 var(--font-head); }
.service-tree__branches { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 1.25rem; margin-top: 1.5rem; padding-top: 1.5rem; border-top: 2px solid var(--brand-200); }
.service-tree__branch { padding: 1.25rem; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.service-tree__node { margin: 0 0 1rem; font: 800 1rem/1.3 var(--font-head); color: var(--ink); }
.prose .service-tree ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; margin: 0; padding: 0; list-style: none; }
.prose .service-tree li { margin: 0; padding: 0.55rem 0.9rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--brand-100); font-size: 0.92rem; font-weight: 600; line-height: 1.35; color: var(--ink); }
.prose .service-tree li a { color: inherit; text-decoration: none; }
.prose .service-tree li:has(a):hover { border-color: var(--brand); color: var(--brand); }
@media (max-width: 700px) { .service-tree__branches { grid-template-columns: 1fr; } }

/* a team member without a photo yet: initials on a soft tint */
.team-card__placeholder { font: 800 2.2rem/1 var(--font-head); color: var(--brand); background: var(--brand-50); border-radius: 14px; }
.prose .team-grid { margin: 2rem 0; }
.prose .team-card h3 { margin: 0.8rem 0 0.2rem; }
.prose .team-card img { margin: 0; }

/* =====================================================================
   Phone layout (Oct 2026)
   A tighter, app-like layout for screens up to 760px wide: shorter
   pages, full-width buttons, swipeable rows instead of very long
   stacks, compact cards and a lighter footer. Desktop is unchanged.
   ===================================================================== */
@media (max-width: 760px) {
  :root {
    --section: 56px;
    --fs-h1: clamp(2.05rem, 1.55rem + 2.6vw, 2.6rem);
    --fs-h2: clamp(1.7rem, 1.4rem + 1.6vw, 2.1rem);
    --fs-lead: 1.04rem;
    --radius-lg: 22px;
    --radius-xl: 26px;
  }
  body { line-height: 1.65; -webkit-tap-highlight-color: rgb(146 0 35 / 0.12); }

  /* The phone number and links in the top strip are in the bottom bar and the menu */
  .topbar { display: none; }
  .site-header__inner { min-height: 64px; gap: 0.75rem; }
  .brand__emblem { width: 48px; height: 48px; }
  .brand__logo { height: 44px; }
  .brand__name { font-size: 0.95rem; max-width: 210px; }

  /* Section rhythm */
  .section-heading, .section-head-row { margin-bottom: 26px; }
  .section-lead { margin-top: 0.7rem; }
  .section--page { padding-block: 36px 44px; }
  .eyebrow { margin-bottom: 0.7rem; font-size: 0.72rem; }

  /* Home and college heroes */
  .hero__content { padding-block: 64px 32px; }
  .hero__eyebrow { margin-bottom: 1rem; font-size: 0.78rem; }
  .hero__title { margin-bottom: 1rem; }
  .hero__text { margin-bottom: 1.6rem; font-size: 1.02rem; line-height: 1.6; }
  .hero__actions { display: grid; grid-template-columns: 1fr; gap: 0.6rem; }
  .hero__actions .btn { width: 100%; min-height: 50px; }
  .hero__actions .btn--primary { order: -1; }
  .hero__stats { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 32px; }
  .hero-stat, .hero-stat + .hero-stat { padding: 0.9rem 0.4rem 0 0; border-left: 0; }
  .hero-stat dd { font-size: clamp(1.08rem, 4.6vw, 1.5rem); letter-spacing: -0.035em; white-space: nowrap; }
  .hero-stat dt { font-size: 0.62rem; letter-spacing: 0.08em; line-height: 1.35; }

  /* Inner page headers */
  .page-hero--plain .page-hero__inner { padding-block: 30px 30px; }
  .page-hero__inner { padding-block: 32px; gap: 1.4rem; }
  .page-hero__title, .page-hero--plain .page-hero__title { font-size: clamp(1.85rem, 1.5rem + 2vw, 2.3rem); line-height: 1.05; letter-spacing: -0.035em; }
  .page-hero__eyebrow { margin-bottom: 0.7rem; font-size: 0.72rem; letter-spacing: 0.14em; }
  .page-hero__eyebrow::before { width: 22px; }
  .breadcrumbs { font-size: 0.8rem; }
  .breadcrumbs ol { row-gap: 0.15rem; }
  .page-hero__actions { display: grid; grid-template-columns: 1fr; gap: 0.6rem; margin-top: 1.3rem; }
  .page-hero__actions .btn { width: 100%; }

  /* Buttons */
  .btn { min-height: 48px; padding: 0.75em 1.35em; }
  .btn-row { gap: 0.6rem; }

  /* Quick links: icon beside the label, three short rows */
  .quick-links__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.55rem; }
  .quick-link { flex-direction: row; align-items: center; gap: 0.7rem; padding: 0.8rem 0.85rem; border-radius: 16px; }
  .quick-link__icon { width: 40px; height: 40px; border-radius: 12px; }
  .quick-link__icon .icon { width: 20px; height: 20px; }
  .quick-link__text strong { font-size: 0.95rem; }
  .quick-link__text small { font-size: 0.74rem; }

  /* Swipeable rows: approvals (five or more), testimonials, campus news */
  .approval-grid:has(> :nth-child(5)),
  .testimonial-grid,
  .section.news .news-grid {
    display: flex; flex-wrap: nowrap; justify-content: flex-start; gap: 12px; margin-inline: calc(-1 * var(--gutter)); padding: 4px var(--gutter) 14px;
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .approval-grid:has(> :nth-child(5))::-webkit-scrollbar, .testimonial-grid::-webkit-scrollbar, .section.news .news-grid::-webkit-scrollbar { display: none; }
  .approval-grid:has(> :nth-child(5)) > *, .testimonial-grid > *, .section.news .news-grid > * { flex: 0 0 auto; scroll-snap-align: start; }
  .approval-grid.approval-grid:has(> :nth-child(5)) > * { flex: 0 0 44%; min-width: 148px; }
  .testimonial-grid > * { width: 84%; }
  .section.news .news-grid > * { width: 82%; }
  .section.news .news-grid--featured .news-card { flex-direction: column; }
  .section.news .news-grid--featured .news-card .news-card__media { flex: none; aspect-ratio: 16 / 10; min-height: 0; }

  /* Approval cards */
  .approval-card { padding: 1rem 0.7rem 0.9rem; }
  .approval-card__logo { width: 60px; height: 60px; margin-bottom: 0.55rem; }
  .approval-card__name { font-size: 0.95rem; }
  .approval-card__full { font-size: 0.82rem; line-height: 1.4; }

  /* College cards: a compact list with a thumbnail */
  .college-grid { grid-template-columns: 1fr; gap: 10px; }
  .college-card__link { flex-direction: row; align-items: stretch; border-radius: 18px; }
  .college-card__media { flex: 0 0 104px; aspect-ratio: auto; min-height: 104px; }
  .college-card__media::after { display: none; }
  .college-card__body { justify-content: center; gap: 0.25rem; padding: 0.85rem 0.95rem; }
  .college-card__title { font-size: 1.02rem; line-height: 1.22; }
  .college-card__text { font-size: 0.8rem; line-height: 1.45; -webkit-line-clamp: 2; }
  .college-card__more { padding-top: 0.15rem; font-size: 0.8rem; }

  /* Testimonials and news cards */
  .testimonial { padding: 1.5rem 1.3rem 1.25rem; }
  .testimonial__quote .icon { width: 34px; height: 34px; }
  .testimonial blockquote { font-size: 0.97rem; margin: 0.5rem 0 1rem; }
  .news-card__body { padding: 1.05rem 1.1rem 1.2rem; }
  .news-card__title { font-size: 1.1rem; }

  /* Programme carousels: swipe on a phone, so the arrow buttons can go */
  .carousel__track { grid-auto-columns: 80%; gap: 12px; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); scrollbar-width: none; }
  .carousel__track::-webkit-scrollbar { display: none; }
  .carousel__controls { display: none !important; }
  .course-slide { aspect-ratio: 4 / 4.6; }

  /* Programme list: short rows, eight before Show all */
  .programme-grid { gap: 0.5rem; }
  .programme__inner { gap: 0.8rem; padding: 0.7rem 0.9rem; }
  .programme__icon { width: 40px; height: 40px; border-radius: 12px; }
  .programme__icon img { width: 24px; height: 24px; }
  .programme-grid.is-collapsed:not(.is-searching) .programme:nth-child(n + 9) { display: none; }

  /* Feature tiles and lists */
  .feature-list { gap: 0.6rem; margin-top: 1.3rem; }
  .feature-list li { padding: 1rem 1.1rem; }
  .feature-list__num { font-size: 1.9rem; }
  .feature-grid { gap: 8px; margin-top: 1.6rem; }
  .feature-card { gap: 0.85rem; padding: 0.85rem 1rem; }
  .feature-card__icon { width: 42px; height: 42px; border-radius: 12px; }
  .feature-card__icon .icon { width: 20px; height: 20px; }

  /* Course facts strip: two facts per row */
  .course-facts__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1.2rem; }
  .course-fact, .course-fact:first-child { padding: 0.95rem 0; border-left: 0; border-top: 1px solid rgb(255 255 255 / 0.1); }
  .course-fact:nth-child(-n + 2) { border-top: 0; }
  .course-fact dd { font-size: 1rem; }

  /* Content pages */
  .page-layout { gap: 28px; }
  .page-layout__main .prose h2 { font-size: 1.55rem; }
  .page-layout__main .prose h3 { font-size: 1.18rem; }
  .page-layout__main .prose > p:first-child { font-size: 1.06rem; }
  .media-text { gap: 1.6rem; }
  /* tall portrait photos would fill the whole screen */
  .media-text__media img { max-height: 360px; object-fit: cover; }
  .card-grid { gap: 0.8rem; }
  .info-card { padding: 1.2rem; }
  .panel { padding: 1.2rem 1.15rem; }
  .gallery:not(.gallery--pairs):not(.gallery--logos) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.55rem; }
  .gallery img { border-radius: 12px; }
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.7rem; }
  .team-card { padding: 0.55rem 0.55rem 1rem; }
  .team-card h3 { font-size: 1rem; }
  .team-card p { font-size: 0.84rem; }
  /* the admissions box beside the content repeats the band below it and the bottom bar */
  .page-aside__cta { display: none; }
  .page-aside { gap: 0.8rem; }
  .sitemap__title a { display: inline-block; padding-block: 0.3rem; }

  /* Admissions band */
  .cta-band { padding-block: 8px 44px; }
  .cta-band__inner { gap: 1.3rem; padding: 30px 22px; border-radius: 24px; }
  .cta-band__title { font-size: 1.7rem; }
  .cta-band p { font-size: 0.98rem; }
  .cta-band__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.55rem; width: 100%; }
  .cta-band__actions .btn { width: 100%; min-height: 46px; padding: 0.65em 0.6em; font-size: 0.9rem; }
  /* first button full width; with an even count the last one too, so no button sits alone */
  .cta-band__actions .btn:first-child, .cta-band__actions .btn:last-child:nth-child(even) { grid-column: 1 / -1; }
  /* a phone number does not fit half a row */
  .cta-band__actions:has(> .btn[href^="tel:"]) { grid-template-columns: 1fr; }

  /* Trust block (chairman) */
  .trust-block__quote { margin: -2rem 0 0 0.6rem; padding: 1.05rem 1.15rem; }

  /* Footer: shorter, two columns of links */
  .footer-wordmark { display: none; }
  .footer-grid { gap: 30px; padding-block: 44px 30px; }
  .footer-links, .footer-links--two { display: grid; grid-template-columns: 1fr 1fr; gap: 0.55rem 1rem; columns: auto; }
  .footer-links--two li { margin-bottom: 0; }
  .footer-links a { font-size: 0.9rem; }
  .footer-title { margin-bottom: 0.85rem; }
  .footer-actions .btn { flex: 1 1 auto; white-space: nowrap; }
  .footer-bottom__inner { padding-block: 1rem; font-size: 0.8rem; }
}

@media (max-width: 340px) { .cta-band__actions { grid-template-columns: 1fr; } }
@media (max-width: 380px) {
  .quick-link__text small { display: none; }
  .college-card__media { flex-basis: 88px; }
}

/* Touch screens: no hover lifts, which stick after a tap */
@media (hover: none) {
  .btn:hover, .quick-link:hover, .approval-card:hover, .college-card__link:hover, .testimonial:hover, .news-card:hover, .info-card:hover, .feature-list li:hover, .feature-card:hover, .team-card:hover, .carousel__btn:hover { transform: none; }
  .quick-link:hover { color: var(--ink); box-shadow: none; border-color: var(--line); }
  .quick-link:hover::before { transform: translateY(101%); }
  .quick-link:hover .quick-link__icon { background: var(--brand-50); color: var(--brand); }
  .quick-link:hover .quick-link__text small { color: var(--muted); }
  .college-card__link:hover .college-card__media img, .news-card:hover .news-card__media img { transform: none; }
  a.programme__inner:hover { color: var(--ink); border-color: var(--line); transform: none; }
  a.programme__inner:hover::before { transform: scaleX(0); }
  a.programme__inner:hover .programme__icon { background: var(--brand-50); color: var(--brand); }
}

/* =====================================================================
   Back to the group site (Nov 2026): the "MVM Educational Institutions"
   top-bar link is a clear pill, and on phones the top strip comes back
   with only that link.
   ===================================================================== */
.topbar__home a { gap: 0.45rem; padding: 0 0.85rem; margin-block: 5px; min-height: 30px !important; border-radius: 999px; background: rgb(255 255 255 / 0.16); color: #fff; font-weight: 700; }
.topbar__home a:hover { background: #fff; color: var(--brand); }
.topbar__home .icon { display: none; }
.topbar__home a::before { content: "\2190"; font-weight: 400; }
@media (max-width: 760px) {
  .topbar:has(.topbar__home) { display: block; }
  .topbar:has(.topbar__home) .topbar__inner { min-height: 38px; justify-content: flex-start; }
  .topbar:has(.topbar__home) .topbar__contact,
  .topbar:has(.topbar__home) .topbar__links > li:not(.topbar__home) { display: none !important; }
  .topbar__home.topbar__home { display: list-item !important; }
  .topbar__home a { min-height: 28px !important; padding: 0 0.8rem; font-size: 0.78rem; }
  .topbar__home span { max-width: none !important; }
}