:root {
  /* Professional palette */
  --brand: #0b3d91;
  /* primary */
  --brand-2: #0a2e6d;
  /* link/hover */
  --accent: #0f7b5f;
  /* apply button */
  --gold: #F4C84A;
  /* Brand gold (CMYK ribbon) */
  --text: #1b1b1e;
  --muted: #596072;
  --bg: #ffffff;
  --soft: #f7f9ff;
  --navy: #0a1326;
  /* topbar */
  --radius: 14px;
  --shadow: 0 12px 30px rgba(20, 30, 60, .12);
  --maxw: 1200px;
  --topbar-height: 44px;
  --nav-height: 96px;
  --header-stack: calc(var(--topbar-height) + var(--nav-height));
  --control-height: 36px;
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable
}

body {
  margin: 0;
  font: 16px/1.55 'Nunito Sans', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg)
}

main {
  margin-top: 0
}

img {
  max-width: 100%;
  display: block
}

a {
  color: var(--brand-2);
  text-decoration: none
}

a:hover {
  text-decoration: underline
}

.container {
  width: 92%;
  max-width: var(--maxw);
  margin: 0 auto
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0
}

/* Top utility bar */
.topbar {
  position: relative;
  z-index: 90;
  background: #0b162b;
  color: #f7f9ff;
  border-bottom: 1px solid rgba(255, 255, 255, .08)
}

.topbar__row {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  justify-content: flex-start;
  min-height: var(--topbar-height);
  padding: .3rem 0
}

.topbar__meta {
  display: flex;
  align-items: center;
  gap: .7rem;
  color: #f7f9ff;
  font-size: .75rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 700;
  white-space: nowrap
}

.topbar__meta::before {
  content: "";
  display: block;
  width: 14px;
  height: 1px;
  background: rgba(255, 255, 255, .3)
}

.topbar__social {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-left: auto;
  margin-right: .9rem
}

.topbar__controls {
  display: flex;
  align-items: center;
  gap: .6rem
}

.topbar-btn,
.topbar-menu summary {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, .22);
  padding: .45rem .9rem;
  color: #f7f9ff;
  background: rgba(10, 16, 28, .52);
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease
}

.topbar-btn:hover,
.topbar-menu summary:hover {
  background: rgba(18, 28, 46, .85);
  border-color: rgba(255, 255, 255, .42);
  text-decoration: none
}

.topbar-btn:focus-visible,
.topbar-menu summary:focus-visible {
  outline: 2px solid rgba(255, 255, 255, .65);
  outline-offset: 2px
}

.topbar-btn--primary {
  background: var(--gold);
  border-color: var(--gold);
  color: #0a1326;
  padding: .45rem 1.1rem
}

.topbar-btn--primary:hover {
  background: #d9ac2c;
  border-color: #d9ac2c;
  color: #0a1326
}

.topbar-btn--ghost {
  background: rgba(10, 16, 28, .52)
}

.topbar-btn--ghost span {
  letter-spacing: .1em
}

.topbar-menu {
  position: relative
}

.topbar-menu summary {
  list-style: none
}

.topbar-menu summary::-webkit-details-marker {
  display: none
}

.topbar-menu summary .icon--chev {
  width: 14px;
  height: 14px;
  opacity: .8;
  margin-left: .2rem
}

.topbar-menu[open] {
  z-index: 5
}

.topbar-menu__panel {
  position: absolute;
  top: calc(100% + .4rem);
  right: 0;
  background: #0b182f;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 10px;
  padding: .5rem .65rem;
  display: grid;
  gap: .3rem;
  min-width: 180px;
  box-shadow: 0 14px 24px rgba(3, 9, 22, .32)
}

.topbar-menu__panel a {
  display: flex;
  align-items: center;
  gap: .35rem;
  padding: .45rem .35rem;
  border-radius: 8px;
  color: #f4f7ff;
  font-size: .72rem;
  letter-spacing: .06em;
  text-transform: uppercase
}

.topbar-menu__panel a:hover {
  background: rgba(214, 40, 40, .16);
  text-decoration: none
}

.topbar-menu__panel a:focus-visible {
  outline: 2px solid rgba(255, 255, 255, .6);
  outline-offset: 2px
}

.social {
  display: flex;
  align-items: center;
  gap: .5rem
}

.topbar .social {
  gap: .5rem
}

.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px
}

.topbar .social a {
  color: #f7f9ff;
  transition: opacity .2s ease, transform .2s ease
}

.topbar .social a:hover {
  opacity: .8;
  transform: translateY(-1px)
}

.social a img {
  width: 20px;
  height: 20px;
  display: block;
  vertical-align: middle
}

.topbar .social a img {
  filter: brightness(100%)
}

@media (max-width:1100px) {
  .topbar__row {
    flex-wrap: wrap;
    justify-content: center
  }

  .topbar__meta::before {
    display: none
  }

  .topbar__social {
    margin: 0
  }

  .topbar__controls {
    justify-content: center
  }
}

@media (max-width:720px) {

  .topbar-btn,
  .topbar-menu summary {
    font-size: .66rem;
    padding: .4rem .8rem
  }

  .topbar-menu__panel {
    left: 0;
    right: auto
  }
}

@media (max-width:520px) {
  .topbar__social {
    display: none
  }

  .topbar-btn,
  .topbar-menu summary {
    width: 100%;
    justify-content: center
  }

  .topbar__controls {
    width: 100%;
    gap: .5rem
  }

  .topbar-btn--primary {
    width: auto
  }
}

/* Compact chip container */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  background: var(--navy);
  color: #cdd5ff;
  border: 1px solid #1c2748;
  padding: .4rem .7rem;
  border-radius: 10px;
  font-size: .87rem
}

/* Main nav */
header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  background: #fff;
  border-bottom: 1px solid rgba(15, 23, 42, .12);
  box-shadow: none
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: var(--nav-height);
  padding: 0;
  gap: 2rem
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem
}

.nav-actions .nav-apply {
  display: none
}

.brand {
  margin-right: 2.4rem;
  filter: none
}

.brand.brand--mark {
  display: block;
  width: 88px;
  height: 88px;
  flex: 0 0 auto;
  min-width: 88px
}

.brand.brand--mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain
}

.nav>nav {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-right: 0
}

.nav>nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 2.4rem;
  align-items: center;
  justify-content: flex-start;
  margin-left: 0
}

.nav>nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: #0f172a;
  font-weight: 600;
  font-family: 'Nunito Sans', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  text-transform: none;
  letter-spacing: .01em;
  font-size: .94rem;
  padding: .3rem 0;
  transition: color .2s ease
}

.nav>nav>ul>li>a {
  cursor: pointer;
}

.nav>nav a[aria-disabled="true"] {
  pointer-events: none;
  cursor: default;
}

.nav>nav a[aria-disabled="true"]:focus-visible {
  outline: 2px solid rgba(255, 255, 255, .7);
  outline-offset: 3px;
  border-radius: 12px;
}

.nav>nav>ul>li>a[aria-disabled="true"] {
  cursor: default;
  user-select: none;
}

.nav>nav>ul>li>a:hover {
  text-decoration: none;
  color: #bb1f24
}

.nav>nav a::after {
  display: none
}

h1,
h2,
h3,
h4,
h5 {
  font-family: 'PT Serif', Georgia, 'Times New Roman', serif
}

@media (min-width:981px) {
  .nav>nav ul {
    flex-wrap: nowrap
  }

  .nav>nav a {
    white-space: nowrap
  }
}

@media (min-width:1400px) {
  .nav>nav ul {
    gap: 3.6rem
  }
}

@media (max-width:1100px) {
  :root {
    --nav-height: 92px;
    --header-stack: calc(var(--topbar-height) + var(--nav-height));
  }

  main {
    margin-top: calc(var(--topbar-height) + var(--nav-height))
  }

  .nav {
    padding: 0 2.75rem
  }

  .brand {
    margin-right: 2.2rem
  }

  .brand.brand--mark {
    width: 82px;
    height: 82px;
    min-width: 82px
  }

  .nav>nav ul {
    gap: 2.4rem
  }

  .nav>nav a {
    letter-spacing: .02em;
    font-size: .9rem
  }
}

@media (max-width:900px) {
  :root {
    --nav-height: 88px;
    --header-stack: calc(var(--topbar-height) + var(--nav-height));
  }

  main {
    margin-top: calc(var(--topbar-height) + var(--nav-height))
  }

  .nav {
    gap: 2.2rem;
    padding: 0 2.2rem;
    height: var(--nav-height)
  }

  .brand {
    min-width: 74px;
    margin-right: 1.8rem
  }

  .brand.brand--mark {
    width: 74px;
    height: 74px;
    min-width: 74px
  }

  .nav>nav ul {
    gap: 2.1rem
  }

  .nav>nav a {
    letter-spacing: .02em;
    font-size: .9rem
  }

  #menu {
    top: calc(var(--topbar-height) + var(--nav-height))
  }
}

@media (max-width:720px) {
  :root {
    --nav-height: 82px;
    --header-stack: calc(var(--topbar-height) + var(--nav-height));
  }

  main {
    margin-top: calc(var(--topbar-height) + var(--nav-height))
  }

  .nav {
    gap: 1.6rem;
    padding: 0 1.6rem;
    height: var(--nav-height)
  }

  .brand {
    min-width: 64px;
    margin-right: 1.2rem
  }

  .brand.brand--mark {
    width: 64px;
    height: 64px;
    min-width: 64px
  }

  .nav>nav ul {
    gap: 1.6rem
  }

  .nav>nav a {
    font-size: .85rem
  }

  #menu {
    top: calc(var(--topbar-height) + var(--nav-height))
  }
}

.nav>nav a.active {
  position: relative
}

.nav>nav a.active {
  color: #bb1f24
}

.nav>nav a.active::after {
  display: none
}

.search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(15, 23, 42, .12);
  border-radius: 50%;
  background: transparent;
  color: #0f172a;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, color .2s ease
}

.search-btn:hover {
  background: #bb1f24;
  border-color: #bb1f24;
  color: #fff
}

.search-btn svg {
  width: 14px;
  height: 14px;
  stroke: currentColor
}

.hamburger {
  display: none;
  border: none;
  border-radius: 0;
  background: transparent;
  color: #0b3d91;
  padding: .5rem .65rem;
  box-shadow: none
}

/* Home icon link in primary nav */
.nav>nav .home-link {
  display: none
}

/* Generic icon style */
.icon {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round
}

/* Nav dropdowns */
.nav>nav li {
  position: relative
}

.nav>nav li.has-dropdown>a {
  display: inline-flex;
  align-items: center;
  gap: .35rem
}

.nav>nav .submenu-toggle {
  display: none;
  border: 1px solid #e5e9ff;
  background: #fff;
  border-radius: 8px;
  padding: .15rem .35rem
}

.nav>nav .caret {
  width: 14px;
  height: 14px
}

.nav>nav .dropdown {
  display: none;
  position: absolute;
  top: calc(100% - 1px);
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(11, 22, 54, .96) 0%, rgba(7, 15, 36, .96) 100%);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 18px;
  box-shadow: 0 28px 48px rgba(6, 14, 32, .35);
  min-width: 260px;
  padding: 1.1rem 1.3rem;
  z-index: 55;
  backdrop-filter: saturate(130%) blur(6px);
  overflow: hidden
}

.nav>nav .dropdown::before {
  display: none
}

.nav>nav .dropdown li+li {
  margin-top: .55rem;
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding-top: .55rem
}

.nav>nav .dropdown a {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: .4rem .7rem;
  color: #f4f7ff;
  font-weight: 600;
  letter-spacing: .01em;
  text-transform: none;
  font-size: .88rem;
  border-radius: 10px;
  transition: color .2s ease, transform .2s ease, background-color .2s ease
}

.nav>nav .dropdown a:hover {
  color: #f4f7ff;
  text-decoration: none;
  transform: translateX(4px);
  background-color: rgba(45, 56, 72, .85)
}

@media (min-width:981px) {

  .nav>nav li.has-dropdown:hover>.dropdown,
  .nav>nav li.has-dropdown:focus-within>.dropdown {
    display: block
  }

  .nav>nav .submenu-toggle {
    display: none
  }
}

@media (max-width:980px) {

  /* Mobile menu - matches desktop dropdown styling */
  #menu {
    display: none;
    position: absolute;
    top: calc(var(--topbar-height) + var(--nav-height));
    left: 0;
    right: 0;
    background: linear-gradient(180deg, rgba(11, 22, 54, .98) 0%, rgba(7, 15, 36, .98) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    box-shadow: 0 18px 32px rgba(6, 14, 32, .35);
    padding: 1.5rem 1.5rem;
    flex-direction: column;
    align-items: flex-start;
    backdrop-filter: saturate(130%) blur(6px)
  }

  #menu.open {
    display: flex
  }

  .hamburger {
    display: inline-flex;
    border: none;
    background: transparent;
    color: #0b3d91;
    box-shadow: none
  }

  .hamburger:hover {
    background: transparent;
    border-color: transparent
  }

  .nav>nav li.has-dropdown {
    width: 100%
  }

  .nav>nav li.has-dropdown>a {
    justify-content: space-between;
    width: 100%
  }

  /* Mobile menu items - light text on dark background */
  #menu>li>a {
    color: #f4f7ff;
    font-weight: 600
  }

  #menu>li>a:hover {
    color: #fff
  }

  .nav>nav .submenu-toggle {
    display: inline-flex;
    margin-left: auto;
    border: none;
    background: transparent;
    color: #f4f7ff
  }

  .nav>nav .submenu-toggle:hover {
    background: transparent;
    border-color: transparent
  }

  .nav>nav .submenu-toggle .caret {
    stroke: #f4f7ff
  }

  .nav>nav .dropdown {
    position: static;
    display: none;
    border: none;
    box-shadow: none;
    padding: .45rem 0 .45rem 1rem;
    margin: .45rem 0 .75rem;
    background: rgba(255, 255, 255, .05);
    border-radius: 8px;
    transform: none;
    left: auto;
    top: auto;
    backdrop-filter: none
  }

  .nav>nav .dropdown::before {
    display: none
  }

  .nav>nav .dropdown li+li {
    border-top: 1px solid rgba(255, 255, 255, .1);
    padding-top: .4rem;
    margin-top: .4rem
  }

  .nav>nav .dropdown a {
    color: #e5ebff;
    font-size: .9rem;
    padding: .5rem .5rem
  }

  .nav>nav .dropdown a:hover {
    color: #fff;
    background: rgba(255, 255, 255, .1);
    border-radius: 6px
  }

  .nav>nav li.has-dropdown.open>.dropdown {
    display: block
  }

  .nav-actions {
    gap: .5rem
  }

  .nav-actions .nav-apply {
    padding: .5rem .85rem;
    font-size: .92rem
  }
}

/* Hero */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-stack));
  height: calc(100vh - var(--header-stack));
  display: grid;
  place-items: center;
  color: #fff;
  overflow: hidden;
  background: #000
}

.home-hero {
  min-height: calc(100vh - var(--header-stack));
  height: calc(100vh - var(--header-stack));
  background: #000 url('../assets/video-fallback.jpg') center/cover no-repeat
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .45), rgba(0, 0, 0, .25) 30%, rgba(0, 0, 0, .55));
  z-index: 1
}

.hero .media {
  position: absolute;
  inset: 0;
  z-index: 0;
  -o-object-fit: cover;
  object-fit: cover;
  -o-object-position: center;
  object-position: center;
  width: 100%;
  height: 100%
}

.home-hero .media {
  -o-object-fit: cover;
  object-fit: cover
}

.hero-quote {
  position: absolute;
  bottom: 2.5rem;
  right: 2.5rem;
  z-index: 3;
  max-width: 620px;
  text-align: left;
  margin-left: 1.5rem
}

.hero-quote p {
  margin: 0;
  font-family: 'PT Serif', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 400;
  font-style: italic;
  line-height: 1.5;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6), 0 1px 3px rgba(0, 0, 0, 0.4)
}

@media (max-width: 768px) {
  .hero-quote {
    bottom: 1.5rem;
    right: 1rem;
    left: 1rem;
    max-width: none;
    text-align: center
  }

  .hero-quote p {
    font-size: 1.25rem
  }
}

@media (max-width: 480px) {
  .hero-quote {
    bottom: 1rem
  }

  .hero-quote p {
    font-size: 1.125rem
  }
}

.hero .content {
  position: relative;
  z-index: 2;
  text-align: left;
  width: 92%;
  max-width: var(--maxw);
  padding: 5rem 0 2rem
}

.eyebrow {
  display: inline-block;
  background: rgba(255, 255, 255, .16);
  padding: .35rem .7rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .78rem;
  margin-bottom: .6rem
}

.hero h1 {
  font-size: clamp(2rem, 3.8vw + .5rem, 3.2rem);
  line-height: 1.12;
  margin: .25rem 0 1rem;
  max-width: 820px
}

.hero p.lead {
  font-size: clamp(1rem, 1.2vw + .5rem, 1.25rem);
  color: #e5ebff;
  max-width: 820px
}

.hero .cta-row {
  margin-top: 1rem;
  display: flex;
  gap: .8rem;
  flex-wrap: wrap
}

.btn {
  display: inline-block;
  border-radius: 10px;
  padding: .85rem 1.1rem;
  font-weight: 800
}

.btn.primary {
  background: #fff;
  color: var(--brand-2)
}

.btn.secondary {
  background: #8a93a6;
  color: #fff;
  border: 1px solid var(--brand)
}

.btn.secondary:hover {
  background: var(--brand-2)
}

.btn.btn--outline {
  background: #fff;
  color: var(--brand-2);
  border: 1px solid var(--brand);
  box-shadow: 0 6px 14px rgba(11, 61, 145, .12)
}

.btn.btn--outline:hover {
  background: rgba(11, 61, 145, .08)
}

/* Bottom promo strip */
.promo {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(3, 13, 43, .28);
  color: #d9e2ff;
  z-index: 2;
  backdrop-filter: saturate(130%) blur(3px)
}

.promo .container {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding: .9rem 0
}

/* Sections & cards */
.section {
  padding: 4.5rem 0
}

/* 72px desktop */
@media (max-width:780px) {
  .section {
    padding: 3rem 0
  }

  /* 48px mobile */
  .section-welcome {
    padding: 1.75rem 0
  }
}

.section-light {
  background: var(--soft)
}

.section-soft {
  background: linear-gradient(180deg, #f8faff 0%, #ecf2ff 100%)
}

.section-welcome {
  padding: 2.5rem 0
}

.section-gold {
  background: linear-gradient(180deg, #f4c84a 0%, #e1a830 100%);
  color: #1b1b1e
}

.section-gold h2,
.section-gold p,
.section-gold span {
  color: #1b1b1e
}

.section-navy {
  background: linear-gradient(180deg, #0a1732 0%, #081024 100%);
  color: #f7f9ff
}

.section-navy h2,
.section-navy p,
.section-navy span {
  color: #f7f9ff
}

.section-grey {
  background: linear-gradient(180deg, rgba(11, 61, 145, .08) 0%, rgba(11, 61, 145, .02) 100%)
}

/* Immersive full-width message band */
.immersive-band {
  position: relative
}

.immersive-band .container {
  display: grid;
  place-items: center
}

.immersive-band p {
  color: #d9e2ff;
  text-align: center;
  max-width: 1100px;
  margin: 0;
  font-size: clamp(1.05rem, 1.2vw + .7rem, 1.6rem);
  line-height: 1.6
}

.section h2 {
  font-size: clamp(1.6rem, 1.4vw + 1rem, 2.2rem);
  margin: 0 0 1rem
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem
}

/* Simple two-column grid utility */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 1rem
}

@media (max-width:980px) {
  .grid-3 {
    grid-template-columns: 1fr
  }
}

@media (max-width:980px) {
  .grid-2 {
    grid-template-columns: 1fr
  }
}

/* Welcome section */
.welcome-wrap {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
  align-items: stretch
}

.welcome-copy {
  display: flex;
}

.welcome-quote footer {
  display: block;
  margin-top: .65rem;
  font-style: normal;
  font-weight: 600;
  color: #2f3c58
}

.welcome-banner {
  position: relative;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(15, 40, 89, .06);
  background: #0b1730;
  min-height: 260px
}

.welcome-banner img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(95%)
}

@media (min-width:960px) {
  .welcome-wrap {
    gap: 2.8rem
  }

  .welcome-banner {
    min-height: 340px
  }
}

@media (max-width:720px) {
  .welcome-banner {
    border-radius: 14px
  }

  .welcome-quote {
    padding: 1rem 1.2rem
  }
}

/* Pathways cards */
.pathways-section {
  background: var(--navy)
}

.pathways {
  display: flex;
  flex-direction: column;
  gap: 2.8rem
}

.pathways__header {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  max-width: 620px;
  margin: 0 auto;
  text-align: center
}

.pathways__eyebrow {
  font-size: .78rem;
  letter-spacing: .36em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .6);
  font-weight: 700
}

.pathways__title {
  margin: 0;
  font-size: clamp(2rem, 1.6vw + 1.4rem, 2.8rem);
  color: #f6f8ff
}

.pathways__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem
}

.pathways-card {
  position: relative;
  display: block;
  min-height: 280px;
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  box-shadow: 0 22px 46px rgba(4, 10, 28, .45);
  transition: transform .25s ease, box-shadow .25s ease
}

.pathways-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 32px 64px rgba(4, 10, 28, .55);
  text-decoration: none
}

.pathways-card__image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform .35s ease
}

.pathways-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, rgba(2, 7, 21, .08) 0%, rgba(2, 7, 21, .78) 82%);
  opacity: .88;
  transition: opacity .35s ease
}

.pathways-card:hover .pathways-card__image {
  transform: scale(1.05)
}

.pathways-card:hover::after {
  opacity: 1
}

.pathways-card__label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: .4rem;
  background: linear-gradient(180deg, rgba(2, 7, 21, 0) 0%, rgba(2, 7, 21, .78) 86%, rgba(2, 7, 21, .9) 100%);
  backdrop-filter: saturate(115%) blur(1px)
}

.pathways-card__title {
  font-size: 1.3rem;
  font-weight: 600;
  color: #fdfdff;
  text-shadow: 0 6px 18px rgba(0, 0, 0, .55), 0 0 1px rgba(0, 0, 0, .35)
}

.pathways-card__meta {
  font-size: .92rem;
  font-weight: 500;
  color: rgba(255, 255, 255, .8)
}

.pathways-card--gcse .pathways-card__image {
  background-image: url('../assets/gcse.jpg.avif')
}

.pathways-card--alevel .pathways-card__image {
  background-image: url('../assets/a level.jpg')
}

.pathways-card--entrance .pathways-card__image {
  background-image: url('../assets/entrance exams.jpg.avif')
}

@media (max-width:1080px) {
  .pathways__grid {
    grid-template-columns: repeat(2, 1fr)
  }
}

@media (max-width:720px) {
  .pathways__grid {
    grid-template-columns: 1fr
  }

  .pathways-card {
    min-height: 240px
  }
}

/* Generic 4-column grid utility */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem
}

.grid-2.equal {
  grid-template-columns: repeat(2, 1fr)
}

.card {
  background: #fff;
  border: 1px solid #edf0ff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.15rem
}

.card h3 {
  margin-top: 0
}

.why-cmc {
  display: grid;
  gap: 2.2rem;
  background: #0b162b;
  padding: 2.6rem;
  border-radius: 10px;
  color: #f7f9ff;
  box-shadow: 0 26px 48px rgba(7, 20, 45, .28)
}

.why-cmc__intro h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.9rem, 1.2vw + 1.4rem, 2.6rem)
}

.why-cmc__intro p {
  margin: .6rem 0 0;
  color: rgba(255, 255, 255, .85);
  font-size: 1.02rem;
  line-height: 1.6;
  max-width: 60ch
}

.why-cmc__eyebrow {
  margin: 0;
  color: rgba(255, 255, 255, .72);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: .78rem
}

.why-cmc__grid {
  display: grid;
  gap: 2rem
}

@media (min-width:900px) {
  .why-cmc__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.4rem
  }
}

.why-card {
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  gap: 1.1rem
}

.why-card h3 {
  margin: 0;
  font-size: 1.18rem;
  color: #fff;
  font-weight: 700
}

.why-card--text p {
  margin: .25rem 0;
  color: rgba(255, 255, 255, .82);
  line-height: 1.65
}

.why-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: .55rem;
  font-size: 1rem
}

.why-list li {
  position: relative;
  padding-left: 1.65rem;
  color: rgba(255, 255, 255, .88)
}

.why-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .5rem;
  width: .6rem;
  height: .6rem;
  border-radius: 50%;
  background: #fff
}

.list {
  margin: .4rem 0 1rem;
  padding-left: 0;
  list-style: none
}

.list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: .5rem;
  line-height: 1.55
}

.list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .5rem;
  width: .5rem;
  height: .5rem;
  border-radius: 50%;
  background: #0b3d91
}

.notice {
  background: #f3f7ff;
  border: 1px solid #dfe8ff;
  border-radius: 10px;
  padding: .8rem
}

/* Staff section - vertical list of cards
   Picture on the left, blurb on the right (from stafflayout.jpeg) */
#staff .grid-4 {
  display: flex;
  flex-direction: column;
  gap: 1rem
}

#staff .card {
  display: grid;
  grid-template-columns: 140px 1fr;
  align-items: start;
  gap: 1rem;
  background: #fff;
  padding: .9rem;
  border-radius: 12px;
  max-width: 100%;
  margin: 0
}

#staff .card>img {
  display: block;
  margin: 0;
  max-width: 140px;
  width: 140px;
  height: auto;
  border-radius: 12px
}

#staff .card .content {
  margin: 0
}

#staff .card h3 {
  margin: .1rem 0 .25rem
}

#staff .card p.muted {
  margin: .1rem 0 .4rem
}

#staff .card p {
  font-size: .96rem;
  margin: .35rem 0
}

/* Responsive tweaks for narrow screens */
@media (max-width: 700px) {
  #staff .card {
    grid-template-columns: 110px 1fr
  }

  #staff .card>img {
    width: 110px;
    max-width: 110px
  }
}

@media (max-width: 520px) {
  #staff .card {
    grid-template-columns: 1fr
  }

  #staff .card>img {
    width: 150px;
    max-width: 60%;
    justify-self: center
  }

  #staff .card .content {
    margin-top: .25rem
  }
}


/* Staff cards - removed custom image constraints to keep originals */
/* Footer */
.footer {
  background: #0b162b;
  color: #e7ecff;
  margin-top: 4rem;
  position: relative;
  overflow: hidden
}

.footer a {
  color: #f3f6ff;
  text-decoration: none;
  font-weight: 600;
  transition: color .2s ease, opacity .2s ease
}

.footer a:hover,
.footer a:focus-visible {
  color: #c8d7ff;
  opacity: 1
}

.footer__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr);
  gap: 2.8rem;
  padding: 3.6rem 0 2.6rem
}

.footer__column {
  display: flex;
  flex-direction: column;
  gap: 1.2rem
}

.footer__heading {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff
}

.footer__tagline {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 54ch;
  color: #dfe6ff
}

.footer__principal {
  margin: .6rem 0 0;
  font-size: 1rem;
  line-height: 1.6;
  color: #cfd6ff;
  font-weight: 600;
  letter-spacing: .02em
}

.footer__contact {
  display: flex;
  flex-direction: column;
  gap: .7rem
}

.footer__social-wrap {
  margin-top: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: .75rem
}

.footer__label {
  margin: 0;
  font-size: .85rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: #99b2ff
}

.footer__contact-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: .45rem;
  font-size: .97rem;
  color: #e7ecff
}

.footer__contact-list a {
  color: #f3f6ff;
  font-weight: 600
}

.footer__contact-list a:hover,
.footer__contact-list a:focus-visible {
  color: #c8d7ff
}

.footer__social {
  margin-top: 0;
  gap: .75rem
}

.footer__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: .7rem 1.2rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  font-size: .97rem;
  color: #e7ecff
}

.footer__list a {
  font-weight: 500
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .16);
  background: #0b162b;
  position: relative
}

.footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  padding: 1.2rem 0 1.3rem;
  color: #cfd6ff;
  font-size: .92rem;
  flex-wrap: wrap
}

.footer__meta {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap
}

.footer__meta a {
  font-weight: 600;
  color: #dfe4ff
}

@media (max-width:1100px) {
  .footer__inner {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 2rem
  }
}

@media (max-width:720px) {
  .footer {
    margin-top: 3rem
  }

  .footer__inner {
    grid-template-columns: 1fr;
    padding: 3rem 0 2.4rem
  }

  .footer__column {
    gap: 1rem
  }

  .footer__bottom-inner {
    flex-direction: column;
    align-items: flex-start
  }
}

.footnote {
  border-top: 1px solid #1c2645;
  color: #9fb0ff;
  text-align: center;
  font-size: .9rem;
  padding: 1rem 0
}

/* Search top bar */
.search-topbar {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  background: #fff;
  border-bottom: 1px solid #eef2ff;
  box-shadow: var(--shadow);
  transform: translateY(-100%);
  transition: transform .25s ease;
  z-index: 100
}

.search-topbar.active {
  transform: translateY(0)
}

.search-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .75rem 0
}

.search-form {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex: 1
}

.search-form input {
  width: 100%;
  padding: .75rem 1rem;
  border: 1px solid #e5e9ff;
  border-radius: 8px
}

.search-go,
.search-close {
  border: 1px solid #e5e9ff;
  border-radius: 8px;
  padding: .5rem .65rem;
  background: #fff;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease
}

.search-go:hover,
.search-close:hover {
  background: #f6f8ff;
  border-color: #d7defa;
  box-shadow: 0 3px 10px rgba(20, 30, 60, .12)
}

/* Forms */
label {
  display: block;
  margin-top: .6rem;
  margin-bottom: .2rem
}

input,
select,
textarea {
  width: 100%;
  padding: .7rem .8rem;
  border: 1px solid #e5e9ff;
  border-radius: 6px
}

.apply {
  display: inline-block;
  background: #0b162b;
  color: #fff;
  border-radius: 0;
  padding: .6rem 1rem;
  font-weight: 800;
  border: none
}

.apply:hover {
  text-decoration: none;
  opacity: .95
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  margin-top: 1.4rem
}

.button-row .apply {
  display: inline-flex;
  align-items: center;
  justify-content: center
}

.apply.apply--outline {
  background: transparent;
  color: var(--brand);
  border: 2px solid var(--brand)
}

.apply.apply--outline:hover {
  background: rgba(11, 61, 145, .08);
  color: var(--brand-2)
}

.apply-page {
  padding-top: 0
}

.apply-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start
}

.apply-layout__figure {
  flex: 1 1 520px;
  margin: 0
}

.apply-layout__figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  object-fit: cover
}

.apply-layout__content {
  flex: 1 1 320px;
  max-width: 460px
}

.apply-layout__content h1 {
  margin: 0 0 1rem;
  font-size: 2.1rem;
  letter-spacing: .04em;
  text-transform: uppercase
}

.apply-actions {
  display: grid;
  gap: .8rem;
  margin: 1.6rem 0
}

.apply.apply--wide {
  display: block;
  width: 100%;
  text-align: center;
  border-radius: 0;
  padding: .75rem 1.2rem;
  font-size: 1rem
}

.apply.apply--wide:hover {
  text-decoration: none
}

.apply.apply--wide.apply--secondary {
  background: var(--brand-2)
}

.welcome-letter__copy {
  max-width: 62ch
}

.welcome-letter__headline {
  color: #0b162b
}

.welcome-letter__signature {
  border-top: none;
  padding-top: 0;
  margin-top: 1.2rem
}

.section.welcome-letter {
  padding: 3.5rem 0 3.5rem
}

.welcome-letter__copy p {
  color: #0b162b
}

.exam-centre-body {
  background: #f2f4f8
}

.exam-centre-body main.section {
  padding: 3.5rem 0 4rem
}

.exam-centre-intro {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  align-items: stretch
}

.exam-centre-figure {
  flex: 0 1 320px;
  max-width: 320px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 18px 32px rgba(15, 40, 89, .08);
  display: flex
}

.exam-centre-figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover
}

.exam-centre-summary {
  flex: 1 1 320px;
  min-width: 260px
}

.exam-centre-summary h1 {
  margin-top: 0;
  margin-bottom: 1rem
}

.exam-centre-summary p {
  margin-top: 0
}

@media (max-width:700px) {
  .exam-centre-intro {
    gap: 1.8rem;
    align-items: center;
    justify-content: center
  }

  .exam-centre-figure,
  .exam-centre-summary {
    max-width: 100%;
    flex: 1 1 auto
  }

  .exam-centre-intro {
    flex-direction: column
  }

  .exam-centre-figure {
    margin: 0 auto;
    max-width: 420px
  }

  .exam-centre-figure img {
    height: auto
  }
}

.exam-centre-body .page-layout {
  background: #fff;
  border-radius: 26px;
  padding: 3rem;
  box-shadow: 0 22px 48px rgba(15, 29, 52, .08)
}

@media (max-width:900px) {
  .exam-centre-body .page-layout {
    padding: 2.4rem;
    border-radius: 22px
  }
}

@media (max-width:600px) {
  .exam-centre-body main.section {
    padding: 2.5rem 0 3rem
  }

  .exam-centre-body .page-layout {
    padding: 1.8rem;
    border-radius: 18px
  }
}

.signature-stack {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .4rem;
  padding-left: 1.25rem;
  margin-top: 1.4rem
}

.signature-stack--lined::before {
  content: "";
  position: absolute;
  left: 0;
  top: .25rem;
  bottom: .25rem;
  width: 3px;
  border-radius: 999px;
  background: #8a93a6
}

.signature-stack__line {
  display: flex;
  align-items: flex-start
}

.signature-stack__text {
  font-family: 'Spectral', serif;
  font-weight: 600;
  letter-spacing: .02em;
  color: #626b7e;
  text-transform: none
}

.signature-stack__text--name {
  font-size: 1.22rem;
  letter-spacing: .05em;
  font-variant-caps: normal;
  line-height: 1.2;
  font-weight: 700;
  color: #424b5c
}

.signature-stack__text--role {
  font-size: .88rem;
  letter-spacing: .08em;
  text-transform: none;
  color: rgba(113, 122, 138, .78);
  line-height: 1.35
}

@media (max-width:600px) {
  .signature-stack {
    margin-top: 1rem;
    padding-left: 1rem
  }

  .signature-stack--lined::before {
    width: 2px
  }
}

.apply-layout__enrol {
  margin: 2rem 0 0;
  width: 100%;
  max-width: 460px
}

.apply-layout__enrol img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px
}


.muted {
  color: var(--muted)
}

/* Subject toggles (course pages) - clean, link-style buttons */
.subject h3 {
  margin: .1rem 0 .35rem
}

.subject-toggle {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background: transparent;
  border: none;
  padding: 0;
  color: var(--brand-2);
  font: inherit;
  font-weight: 800;
  cursor: pointer
}

.subject-toggle:hover {
  text-decoration: underline
}

.subject-panel {
  margin-top: .4rem
}

/* Single-subject simple presentation */
.single-subject {
  position: relative;
  display: block;
  max-width: 900px;
  margin: 1rem auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow)
}

.single-subject img {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  -o-object-fit: cover;
  object-fit: cover
}

.single-subject .subject-label {
  position: absolute;
  left: .75rem;
  bottom: .6rem;
  background: rgba(10, 19, 38, .65);
  color: #fff;
  padding: .35rem .6rem;
  border-radius: 8px;
  font-weight: 800;
  font-size: 1.05rem;
  backdrop-filter: saturate(120%) blur(2px)
}

/* Page inline hero */
.page-hero {
  margin: 0 0 1rem
}

.page-hero img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: var(--shadow)
}

.exam-intro {
  display: flex;
  gap: 2rem;
  align-items: stretch;
  margin: 0 0 1.25rem;
  flex-wrap: wrap
}

.exam-intro__media {
  flex: 0 1 400px;
  max-width: 460px;
  margin: 0;
  display: flex
}

.exam-intro__media img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  box-shadow: none;
  object-fit: cover
}

.exam-intro__content {
  flex: 1 1 320px;
  min-width: 260px;
  display: flex;
  flex-direction: column;
  gap: 1.6rem
}

.exam-highlight {
  background: rgba(11, 61, 145, .04);
  border-left: 3px solid var(--brand);
  border-radius: 8px;
  padding: .9rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .35rem;
  max-width: 540px
}

.exam-highlight__label {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .065em;
  color: var(--brand)
}

.exam-highlight p {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: #253556;
  line-height: 1.45
}

.exam-overview {
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.2rem
}

.exam-overview h2 {
  margin: 0
}

.exam-benefits {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: .75rem 1.4rem
}

.exam-benefits li {
  position: relative;
  padding-left: 1.3rem;
  font-weight: 500;
  line-height: 1.5;
  color: #2f3c58
}

.exam-benefits li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .5rem;
  width: .45rem;
  height: .45rem;
  border-radius: 50%;
  background: #0b162b;
  opacity: .85
}

.exam-overview__note {
  margin: 0;
  color: #586073;
  max-width: 50ch;
  flex: 1 1 100%
}

.exam-cta {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  align-items: center
}

.exam-cta .btn {
  flex: 0 0 auto
}

.page-section--hire {
  background: #fff;
  border: 1px solid #e3e9ff;
  border-radius: var(--radius);
  padding: 1.9rem;
  margin-top: 2.25rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 24px rgba(15, 40, 89, .06)
}

.page-section--hire::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--brand) 0%, rgba(11, 61, 145, .3) 100%)
}

.page-section--hire h2 {
  margin-top: 0;
  margin-bottom: .75rem
}

.page-section--hire p {
  color: #3a435d;
  margin: 0 0 1.2rem;
  line-height: 1.55
}

.page-section--hire .hire-summary {
  font-weight: 600;
  font-size: 1.03rem;
  color: var(--brand-2)
}

.page-section--hire .hire-note {
  color: #5c657b;
  margin-bottom: 1.45rem
}

.page-section--hire .button-row {
  margin-top: 1.35rem;
  gap: .9rem
}

.page-section--hire .button-row .apply {
  min-width: 170px
}

@media (max-width:768px) {
  .exam-intro {
    flex-direction: column;
    gap: 1.5rem
  }

  .exam-intro__media,
  .exam-intro__content {
    max-width: none;
    width: 100%
  }

  .exam-highlight {
    max-width: none;
    border-left-width: 2px;
    padding: .85rem 1.1rem
  }

  .page-section--hire {
    padding: 1.65rem;
    margin-top: 2rem;
    box-shadow: 0 10px 20px rgba(15, 40, 89, .06)
  }
}

@media (max-width:620px) {
  .exam-benefits {
    grid-template-columns: 1fr
  }

  .page-section--hire {
    padding: 1.45rem
  }

  .exam-highlight {
    padding: .8rem 1rem;
    border-left-width: 2px
  }
}

/* International page: full-width hero under header */
.page-international .section {
  padding-top: 0
}

.page-international .page-hero {
  width: 100vw;
  margin: 0 0 1rem;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw)
}

.page-international .page-hero img {
  border-radius: 12px;
  box-shadow: none
}

/* International page: main + aside layout */
.layout-main-aside {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.2rem;
  align-items: start
}

@media (max-width:980px) {
  .layout-main-aside {
    grid-template-columns: 1fr
  }
}

@media (max-width:980px) {
  .page-toc {
    position: static;
    margin: 2.5rem 0 0;
    gap: .8rem;
    margin-left: 0
  }
}

@media (max-width:600px) {
  .page-toc__list a {
    gap: .45rem
  }
}

/* Sidebar panel component */
.sp-card {
  background: var(--soft);
  border: 1px solid #e5e9ff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem
}

.page-toc {
  position: sticky;
  top: calc(var(--header-stack) + 1.4rem);
  margin-left: 1.2rem;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 1rem
}

.page-toc__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: .01em
}

.page-toc__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .6rem
}

.page-toc__list a {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  line-height: 1.3
}

.page-toc__list a::before {
  content: "";
  display: inline-block;
  width: .45rem;
  height: .45rem;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px rgba(187, 31, 36, .15)
}

.page-toc__list a:hover,
.page-toc__list a:focus {
  color: var(--brand-2);
  text-decoration: none
}

.page-toc__list a:focus-visible {
  outline: 2px solid var(--brand-2);
  outline-offset: 2px;
  border-radius: 999px
}

.sp-title {
  margin: .1rem 0 .6rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  display: flex;
  align-items: center;
  gap: .6rem
}

.sp-title::after {
  content: "";
  height: 1px;
  background: #e5e9ff;
  flex: 1
}

.sp-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: block
}

.sp-list li {
  display: block
}

.sp-list li+li {
  border-top: 1px solid #eef2ff
}

.sp-link {
  display: block;
  width: 100%;
  padding: .9rem .6rem;
  color: var(--text);
  text-decoration: none;
  border-radius: 8px;
  position: relative
}

.sp-link:hover,
.sp-link:focus {
  background: var(--navy);
  color: #fff
}

.sp-link:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px
}

/* Current item: full-width filled bar */
.sp-list .current .sp-link {
  background: var(--navy);
  color: #fff;
  font-weight: 800
}

/* International page: main + aside layout */
/* (removed sidebar styles for international page) */

/* Pricing */
.price {
  margin: .2rem 0 0;
  font-weight: 800;
  color: var(--brand)
}

.price .num {
  font-size: 1.6rem
}

/* Responsive map embed */
.map-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow)
}

.map-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0
}

/* Responsive video embed */
.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow)
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0
}

/* Proof card (video + banner) */

/* Home: testimonials wall */
.section-gold h2 {
  margin-bottom: 2.5rem
}

.t-wall {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  justify-items: stretch
}

.t-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, .08);
  box-shadow: 0 4px 16px rgba(15, 40, 89, .04);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease
}

.t-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(15, 40, 89, .12);
  border-color: rgba(11, 61, 145, .2)
}

.t-card__photo {
  position: relative;
  aspect-ratio: 1/1;
  overflow: hidden;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef)
}

.t-card__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0) 60%, rgba(255, 255, 255, .02) 100%);
  pointer-events: none
}

.t-card__photo picture,
.t-card__photo img {
  display: block;
  width: 100%;
  height: 100%
}

.t-card__photo img {
  -o-object-fit: cover;
  object-fit: cover;
  filter: saturate(.95) brightness(1.02);
  transition: transform .5s cubic-bezier(.25, .46, .45, .94), filter .3s ease
}

.t-card:hover .t-card__photo img {
  transform: scale(1.04);
  filter: saturate(1) brightness(1.04)
}

.t-card__body {
  display: none
}

.t-card blockquote {
  display: none
}

.t-card footer {
  display: none
}

@media (max-width:1080px) {
  .t-wall {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem
  }
}

@media (max-width:640px) {
  .t-wall {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem
  }

  .t-card {
    border-radius: 12px
  }

  .t-card:hover {
    transform: translateY(-4px)
  }
}

/* Gallery grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2rem
}

.gallery-item {
  overflow: hidden;
  background-color: transparent
}

.gallery-item img {
  display: block;
  width: 100%;
  height: auto
}

@media (max-width:980px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem
  }
}

@media (max-width:720px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem
  }
}

@media (max-width:480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1rem
  }
}

/* ===== MOBILE PRODUCTION ENHANCEMENTS ===== */

/* Ensure minimum touch targets (44x44px) for accessibility */
@media (max-width:980px) {

  .nav>nav a,
  .topbar-btn,
  .hamburger,
  .submenu-toggle,
  .social a,
  .btn,
  .apply {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center
  }

  /* Better mobile menu styling */
  #menu {
    max-height: calc(100vh - var(--header-stack));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch
  }

  #menu>li {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, .1)
  }

  #menu>li:last-child {
    border-bottom: none
  }

  #menu>li>a {
    padding: 1rem 0;
    width: 100%;
    min-height: 48px;
    color: #f4f7ff
  }

  /* Mobile dropdown items */
  .nav>nav .dropdown a {
    padding: .85rem 1rem;
    min-height: 44px
  }

  /* Improve hamburger button */
  .hamburger {
    min-width: 80px;
    font-weight: 700;
    font-size: .9rem
  }
}

/* Prevent horizontal scroll on mobile */
html,
body {
  overflow-x: hidden;
  max-width: 100vw
}

/* Improve tap highlighting on iOS */
a,
button {
  -webkit-tap-highlight-color: rgba(11, 61, 145, .15)
}

/* Prevent text size adjustment on orientation change */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%
}

/* Safe area insets for notched devices */
@supports(padding:max(0px)) {
  .topbar {
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right))
  }

  .footer {
    padding-bottom: max(1.5rem, env(safe-area-inset-bottom))
  }

  @media (max-width:980px) {
    #menu {
      padding-left: max(1.5rem, env(safe-area-inset-left));
      padding-right: max(1.5rem, env(safe-area-inset-right))
    }
  }
}

/* Better focus states for accessibility */
a:focus-visible,
button:focus-visible,
.apply:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion:reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important
  }

  .hero .media {
    display: none
  }
}

/* High contrast mode support */
@media (prefers-contrast:high) {
  :root {
    --brand: #000080;
    --text: #000;
    --muted: #333
  }

  .btn,
  .apply {
    border: 2px solid currentColor
  }
}

/* Print styles */
@media print {

  .topbar,
  .hamburger,
  .nav-actions,
  .footer__social,
  .social {
    display: none !important
  }

  body {
    font-size: 12pt;
    line-height: 1.4;
    color: #000;
    background: #fff
  }

  a {
    color: #000;
    text-decoration: underline
  }

  .hero {
    min-height: auto;
    height: auto;
    page-break-after: always
  }

  .section {
    page-break-inside: avoid
  }
}

/* Mobile form inputs - larger touch targets */
@media (max-width:768px) {

  input,
  select,
  textarea {
    font-size: 16px !important;
    min-height: 48px;
    padding: .9rem 1rem
  }

  input[type="checkbox"],
  input[type="radio"] {
    min-width: 24px;
    min-height: 24px
  }

  label {
    padding: .5rem 0
  }
}

/* Landscape phone optimizations */
@media (max-height:500px) and (orientation:landscape) {

  .hero,
  .home-hero {
    min-height: 100vh;
    height: auto
  }

  .topbar {
    position: relative
  }

  header {
    position: relative
  }

  #menu {
    max-height: 60vh
  }
}

/* Prevent pull-to-refresh interference on mobile */
html {
  overscroll-behavior-y: contain
}

/* Smooth scrolling disabled for users who prefer reduced motion */
@media (prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto
  }
}

/* Better link/button states for touch */
@media (hover:none) and (pointer:coarse) {

  a:hover,
  button:hover,
  .apply:hover {
    text-decoration: none
  }

  .btn:active,
  .apply:active {
    transform: scale(0.98);
    opacity: 0.9
  }

  .pathways-card:hover {
    transform: none;
    box-shadow: 0 22px 46px rgba(4, 10, 28, .45)
  }

  .t-card:hover {
    transform: none
  }
}

/* Ensure video doesn't cause layout issues on mobile */
@media (max-width:768px) {
  .hero .media {
    object-position: center center
  }

  .home-hero {
    background-position: center
  }
}

/* Fix for iOS momentum scrolling in menus */
#menu {
  -webkit-overflow-scrolling: touch
}

/* Improve text readability on small screens */
@media (max-width:480px) {
  body {
    font-size: 15px;
    line-height: 1.6
  }

  h1 {
    font-size: 1.75rem !important
  }

  h2 {
    font-size: 1.4rem !important
  }

  .welcome-lead,
  .welcome-body {
    font-size: 1rem
  }
}

/* ===== COMPREHENSIVE MOBILE PRODUCTION FIXES ===== */

/* Mobile-first hero video/media fixes */
@media (max-width:768px) {

  /* Fix hero to use dynamic viewport height for mobile browsers */
  .hero,
  .home-hero {
    min-height: 100svh;
    /* Small viewport height - accounts for mobile browser chrome */
    min-height: -webkit-fill-available;
    /* iOS Safari fallback */
    height: 100svh;
    height: -webkit-fill-available;
  }

  /* Ensure video/gif fills the hero properly */
  .hero .media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    /* Ensure video doesn't get clipped on mobile */
    min-width: 100%;
    min-height: 100%;
  }

  /* Better video fallback background sizing */
  .home-hero {
    background-size: cover;
    background-position: center center;
  }
}

/* Extra small mobile hero adjustments */
@media (max-width:480px) {

  .hero,
  .home-hero {
    /* Slightly reduce hero height on very small screens to show content below */
    min-height: 85svh;
    min-height: 85vh;
    height: auto;
  }
}

/* Mobile header improvements */
@media (max-width:980px) {
  :root {
    --topbar-height: 40px;
    --nav-height: 70px;
  }

  /* Unstick header on mobile for more viewport space */
  header {
    position: relative;
    top: auto;
  }

  /* Reset main margin since header is not fixed */
  main {
    margin-top: 0 !important;
  }

  /* Hero accounts for non-sticky header */
  .hero,
  .home-hero {
    min-height: 100svh;
    min-height: 100vh;
  }
}

/* Mobile topbar compact layout */
@media (max-width:768px) {
  .topbar__row {
    padding: .35rem 0;
    flex-wrap: wrap;
    gap: .5rem;
  }

  .topbar__tagline {
    font-size: .65rem;
    letter-spacing: .08em;
    width: 100%;
    text-align: center;
    order: 3;
  }

  .topbar__meta {
    justify-content: center;
    width: 100%;
  }

  .topbar__meta::before {
    display: none;
  }

  .topbar__controls {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: .4rem;
  }

  .topbar-btn {
    font-size: .7rem;
    padding: .4rem .7rem;
    min-height: 36px;
  }

  .topbar-btn--primary {
    padding: .4rem .9rem;
  }
}

/* Hide phone number text on very small screens, keep icon */
@media (max-width:400px) {
  .topbar-btn--ghost span {
    display: none;
  }

  .topbar-btn--ghost {
    padding: .4rem;
    min-width: 36px;
    justify-content: center;
  }
}

/* Mobile navigation improvements */
@media (max-width:980px) {
  .nav {
    height: var(--nav-height);
    padding: 0 1rem;
    gap: 1rem;
  }

  .brand.brand--mark {
    width: 55px;
    height: 55px;
    min-width: 55px;
  }

  .hamburger {
    font-size: .85rem;
    padding: .55rem .9rem;
    min-height: 44px;
    min-width: 70px;
    font-weight: 700;
    border-radius: 10px;
    border: 1px solid rgba(11, 61, 145, .25);
    background: rgba(255, 255, 255, .98);
    color: var(--brand);
  }

  /* Mobile menu full-screen takeover */
  #menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(11, 22, 54, .99) 0%, rgba(7, 15, 36, .99) 100%);
    padding: 5rem 1.5rem 2rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 999;
  }

  #menu>li {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
  }

  #menu>li>a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    font-size: 1.1rem;
    min-height: 56px;
  }

  .nav>nav .dropdown {
    background: rgba(255, 255, 255, .08);
    margin: .5rem 0 1rem;
    padding: .5rem 0;
    border-radius: 10px;
  }

  .nav>nav .dropdown a {
    padding: .9rem 1rem;
    font-size: 1rem;
    min-height: 48px;
  }
}

/* Close button for mobile menu */
@media (max-width:980px) {


  .hamburger[aria-expanded="true"] {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1000;
    background: transparent;
  }
}

/* Mobile welcome section layout */
@media (max-width:900px) {
  .welcome-wrap {
    flex-direction: column;
    gap: 2rem;
  }

  .welcome-copy {
    gap: 1rem;
    text-align: center;
  }

  .welcome-eyebrow {
    font-size: 1rem;
  }

  .welcome-title {
    font-size: clamp(1.75rem, 5vw, 2.4rem);
  }

  .welcome-lead {
    font-size: 1rem;
  }

  .welcome-body {
    font-size: .95rem;
  }

  .welcome-highlights {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1rem;
  }

  .welcome-highlight {
    max-width: none;
  }

  .welcome-highlight img {
    max-height: 140px;
  }

  .welcome-caption {
    font-size: .8rem;
  }

  .welcome-banner {
    border-radius: 12px;
    min-height: 200px;
  }
}

@media (max-width:500px) {
  .welcome-highlights {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .welcome-highlight {
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    max-width: 280px;
    margin: 0 auto;
  }

  .welcome-highlight img {
    width: 80px;
    height: 80px;
    max-height: 80px;
    flex-shrink: 0;
  }

  .welcome-caption {
    text-align: left;
  }
}

/* Mobile pathways cards */
@media (max-width:768px) {
  .pathways-section {
    padding: 3rem 0;
  }

  .pathways__header {
    gap: .4rem;
    margin: 0 auto 2rem;
  }

  .pathways__eyebrow {
    font-size: .7rem;
    letter-spacing: .25em;
  }

  .pathways__title {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
  }

  .pathways__grid {
    gap: 1rem;
  }

  .pathways-card {
    min-height: 200px;
    border-radius: 14px;
  }

  .pathways-card__label {
    padding: 1.2rem;
  }

  .pathways-card__title {
    font-size: 1.15rem;
  }
}

/* Mobile testimonials */
@media (max-width:640px) {
  .section-gold {
    padding: 3rem 0;
  }

  .section-gold h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .t-wall {
    gap: .75rem;
  }

  .t-card {
    border-radius: 10px;
  }
}

/* Mobile international section */
@media (max-width:768px) {
  .section-grey {
    padding: 3rem 0;
  }

  .section-grey h2 {
    font-size: 1.4rem;
    text-align: center;
  }

  .section-grey p {
    font-size: .95rem;
    text-align: center;
  }

  .grid-2.equal {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .page-hero {
    margin: 0 0 .75rem;
  }

  .page-hero img {
    border-radius: 10px;
  }
}

/* Mobile exam boards logos */
@media (max-width:768px) {
  .section[aria-label="Accredited exam boards"] {
    padding: 2rem 0;
  }

  .section[aria-label="Accredited exam boards"] .container>div {
    gap: 1.5rem !important;
  }

  .section[aria-label="Accredited exam boards"] img {
    height: 32px !important;
  }
}

@media (max-width:480px) {
  .section[aria-label="Accredited exam boards"] .container>div {
    gap: 1rem !important;
  }

  .section[aria-label="Accredited exam boards"] img {
    height: 26px !important;
  }
}

/* Mobile footer */
@media (max-width:768px) {
  .footer {
    margin-top: 2rem;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2.5rem 0 2rem;
  }

  .footer__heading {
    font-size: 1.1rem;
    text-align: center;
  }

  .footer__tagline {
    font-size: .95rem;
    text-align: center;
  }

  .footer__principal {
    text-align: center;
  }

  .footer__contact {
    align-items: center;
  }

  .footer__contact-list {
    text-align: center;
    font-size: .9rem;
  }

  .footer__social-wrap {
    align-items: center;
  }

  .footer__social {
    justify-content: center;
  }

  .footer__column--links {
    text-align: center;
  }

  .footer__list {
    grid-template-columns: 1fr 1fr;
    gap: .6rem;
    font-size: .9rem;
  }

  .footer__bottom-inner {
    flex-direction: column;
    gap: .75rem;
    text-align: center;
    padding: 1rem 0;
  }
}

/* Safe area handling for notched devices (iPhone X+, etc) */
@supports(padding:max(0px)) {
  @media (max-width:980px) {
    body {
      padding-left: env(safe-area-inset-left);
      padding-right: env(safe-area-inset-right);
    }

    .hero,
    .home-hero {
      padding-top: env(safe-area-inset-top);
    }

    .footer {
      padding-bottom: max(2rem, env(safe-area-inset-bottom));
    }

    #menu {
      padding-top: max(5rem, calc(3rem + env(safe-area-inset-top)));
      padding-left: max(1.5rem, env(safe-area-inset-left));
      padding-right: max(1.5rem, env(safe-area-inset-right));
      padding-bottom: max(2rem, env(safe-area-inset-bottom));
    }

    .cookie-consent {
      padding-bottom: max(1rem, env(safe-area-inset-bottom));
    }
  }
}

/* Landscape mobile optimizations */
@media (max-width:900px) and (orientation:landscape) {

  .hero,
  .home-hero {
    min-height: 100svh;
    min-height: 100vh;
    height: auto;
  }

  /* Allow content scrolling in landscape */
  .section-welcome {
    padding: 2rem 0;
  }

  .welcome-wrap {
    flex-direction: row;
    gap: 2rem;
  }

  .welcome-copy {
    text-align: left;
    flex: 1;
  }

  .welcome-banner {
    flex: 1;
    max-width: 40%;
  }

  .welcome-highlights {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Very small landscape phones */
@media (max-height:500px) and (orientation:landscape) {

  .hero,
  .home-hero {
    min-height: auto;
    height: auto;
    padding: 2rem 0;
  }

  #menu {
    padding-top: 1rem;
  }
}

/* Improved touch feedback */
@media (hover:none) and (pointer:coarse) {
  .pathways-card:active {
    transform: scale(0.98);
    opacity: .95;
  }

  .t-card:active {
    transform: scale(0.98);
  }

  .apply:active,
  .btn:active {
    transform: scale(0.97);
    opacity: .9;
  }

  /* Remove hover effects that don't work well on touch */
  .nav>nav a:hover::after {
    width: 0;
  }
}

/* iOS-specific fixes */
@supports (-webkit-touch-callout:none) {

  /* Fix for iOS Safari 100vh issue */
  .hero,
  .home-hero {
    min-height: -webkit-fill-available;
  }

  /* Prevent iOS from zooming on input focus */
  input,
  select,
  textarea {
    font-size: 16px;
  }
}

/* Fix video autoplay on mobile - ensure it shows */
@media (max-width:768px) {
  .home-hero video.media {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
  }
}

/* Ensure container doesn't overflow on mobile */
@media (max-width:768px) {
  .container {
    width: 94%;
    padding-left: .5rem;
    padding-right: .5rem;
  }
}

/* Mobile-specific section padding */
@media (max-width:768px) {
  .section {
    padding: 2.5rem 0;
  }

  .section-welcome {
    padding: 2rem 0;
  }

  .section-soft {
    background: linear-gradient(180deg, #f8faff 0%, #fff 100%);
  }
}

/* Welcome Text Styling Updates */
.welcome-copy {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  color: #22304a;
}

.welcome-eyebrow {
  font-size: 1.15rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: normal;
  color: #2f3c58;
  line-height: 1.6;
  margin: 0 0 0.5rem 0;
  display: block;
}

.welcome-title {
  margin: 0 0 1rem 0;
  font-family: 'PT Serif', serif;
  font-size: clamp(2.2rem, 2vw + 1.8rem, 3.2rem);
  line-height: 1.15;
  color: #09142d;
}

.welcome-lead {
  margin: 0 0 1.2rem 0;
  font-size: 1.15rem;
  font-weight: 500;
  color: #2f3c58;
  line-height: 1.6;
  max-width: 65ch;
}

.welcome-body {
  margin: 0;
  color: #3a435d;
  line-height: 1.75;
  font-size: 1.05rem;
  max-width: 65ch;
}

.welcome-highlights {
  margin: 1.5rem 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  justify-items: center
}

.welcome-highlight {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: none;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .65rem;
  max-width: 240px
}

.welcome-highlight img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 220px;
  object-fit: contain;
  border-radius: inherit
}

.welcome-caption {
  margin: 0;
  font-size: .95rem;
  font-weight: 700;
  color: #0a2e6d;
  text-transform: capitalize;
  letter-spacing: .01em;
  text-align: center
}

.welcome-quote {
  margin: 1.2rem 0 0;
  padding: 1rem 1.1rem;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-left: 3px solid var(--brand);
  font-style: italic;
  color: #2f3c58
}