/* ==========================================================================
   ACCOUNTANTS FOR TOMORROW — Design System
   Tokens bridge the main site with the AFT Exam Portal:
     portal --primary   187 100% 50%  -> #00E5FF  (cyan)
     portal --background 263 76% 9%   -> deep indigo
     portal --radius    .9rem
     portal font        Inter
   ========================================================================== */

/* -------------------------------------------------- 1. TOKENS ----------- */
:root {
  /* ---- Adopted directly from the AFT Exam Portal -----------------------
     portal --background      263 76% 9%   -> #130628
     portal --card/--popover  261 68% 14%  -> #1C0B3C
     portal --muted           263 44% 19%  -> #2B1B46
     portal --secondary       263 53% 20%  -> #2D184E
     portal --border/--input  263 38% 28%  -> #412C63
     portal --muted-foreground 252 95% 86% -> #C7B9FD
     portal --primary/--ring  187 100% 50% -> #00E1FF
     portal --accent          153 100% 50% -> #00FF8C
     portal --radius .9rem, font Inter
     -------------------------------------------------------------------- */

  /* Surfaces */
  --aft-bg:        #130628;
  --aft-bg-soft:   #180A32;
  --aft-surface:   #1C0B3C;
  --aft-surface-2: #2B1B46;
  --aft-secondary: #2D184E;
  --aft-deepest:   #0C0524;

  /* Portal gradients, copied verbatim */
  --aft-grad-page:  linear-gradient(118deg, #0C0524, #120730 55%, #18093C);
  --aft-grad-card:  linear-gradient(145deg, #1B0D49, #120730);
  --aft-grad-card2: linear-gradient(145deg, #18093C, #0C0524);
  --aft-grad-teal:  linear-gradient(135deg, #18093C, #102B36);
  --aft-grad-mint:  linear-gradient(145deg, #063C32, #10234F);

  /* Text ramp (dark UI) */
  --aft-900: #FFFFFF;
  --aft-800: #EFEAFF;
  --aft-700: #DDD5FF;
  --aft-600: #C7B9FD;
  --aft-500: #B3A3EE;
  --aft-400: #9C8BD0;
  --aft-300: #6E5CA3;
  --aft-200: #412C63;
  --aft-100: #2B1B46;
  --aft-50:  #1C0B3C;
  --aft-white: #FFFFFF;

  /* Accent ramp — cyan primary, violet support */
  --aft-indigo-50:  #221046;
  --aft-indigo-100: #2D184E;
  --aft-indigo-200: #412C63;
  --aft-indigo-300: #7C6BB8;
  --aft-indigo-400: #A78BFA;
  --aft-indigo-500: #22D3EE;
  --aft-indigo-600: #00E1FF;
  --aft-indigo-700: #00B8D4;
  --aft-indigo-800: #0E7490;
  --aft-indigo-900: #155E75;

  --aft-navy-900: #0C0524;
  --aft-navy-800: #130628;
  --aft-navy-700: #18093C;
  --aft-navy-600: #2D184E;

  --aft-cyan:  #00E1FF;
  --aft-mint:  #00FF88;
  --aft-amber: #FBBF24;

  /* Semantic */
  --aft-primary: #00FF88;      /* portal link/accent colour */
  --aft-primary-dark: #38FFA0;
  --aft-on-primary: #0C0524;   /* portal --primary-foreground */
  --aft-viz: #00E5FF;          /* portal data-viz cyan */
  --aft-ink: #FFFFFF;
  --aft-body: #C7B9FD;
  --aft-border: #412C63;

  --aft-gradient:      linear-gradient(135deg, #00E1FF 0%, #22D3EE 55%, #7C3AED 190%);
  --aft-gradient-text: none;   /* portal uses a solid mint highlight */
  --aft-gradient-deep: linear-gradient(118deg, #0C0524, #120730 55%, #18093C);

  /* Type */
  --aft-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --aft-fs-eyebrow: .75rem;
  --aft-lh-tight: 1.12;
  --aft-lh-snug: 1.3;
  --aft-lh: 1.5;            /* portal body 16px/24px */

  /* Shape — portal --radius:.9rem */
  --aft-r-sm: .5rem;
  --aft-r: .9rem;
  --aft-r-lg: 1.375rem;    /* portal card radius 22px */
  --aft-r-xl: 1.75rem;
  --aft-r-pill: 999px;

  /* Elevation — portal shadow values */
  --aft-sh-xs: 0 5px 12px rgba(0,0,0,.20);
  --aft-sh-sm: 0 8px 18px rgba(0,0,0,.18);
  --aft-sh:    0 12px 30px rgba(0,0,0,.25);
  --aft-sh-lg: 0 18px 32px rgba(0,0,0,.32);
  --aft-sh-xl: 0 28px 70px rgba(0,0,0,.35);
  --aft-sh-cyan:   0 12px 28px rgba(0,229,255,.28);
  --aft-sh-indigo: 0 12px 28px rgba(0,229,255,.28);

  /* Rhythm */
  --aft-container: 1240px;
  --aft-gutter: 24px;
  --aft-section: clamp(56px, 7vw, 104px);

  /* Motion */
  --aft-ease: cubic-bezier(.4, 0, .2, 1);
  --aft-ease-out: cubic-bezier(.16, 1, .3, 1);
  --aft-dur: .28s;

  --aft-header-h: 78px;    /* portal header 77px */
}

/* -------------------------------------------------- 2. BASE ------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--aft-grad-page);
  background-attachment: fixed;
  font-family: var(--aft-font);
  font-size: 16px;
  line-height: var(--aft-lh);
  color: var(--aft-body);
  background: var(--aft-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Grid/flex children must be allowed to shrink, or wide media blows out
   the layout on phones. (Learned the hard way on another build.) */
body > *, .aft-grid > *, .aft-flex > * { min-width: 0; }

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 .5em;
  color: var(--aft-ink);
  font-weight: 800;
  line-height: var(--aft-lh-snug);
  letter-spacing: -.02em;
}
h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); font-weight: 900; line-height: 1.05; letter-spacing: -.04em; }
h2 { font-size: clamp(1.5rem, 2.6vw, 1.875rem); font-weight: 700; letter-spacing: normal; line-height: 1.25; }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.5rem); }
h4 { font-size: 1.0625rem; }

p { margin: 0 0 1rem; }
a { color: var(--aft-primary); text-decoration: none; transition: color var(--aft-dur) var(--aft-ease); }
a:hover { color: var(--aft-primary-dark); }
img, svg, video { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0 0 1rem; padding-left: 1.15rem; }

/* Accessibility: visible focus everywhere */
:focus-visible {
  outline: 3px solid var(--aft-indigo-400);
  outline-offset: 2px;
  border-radius: var(--aft-r-sm);
}

.aft-skip {
  position: absolute; left: -9999px; top: 0; z-index: 2000;
  background: var(--aft-primary); color: var(--aft-on-primary); padding: 12px 20px;
  border-radius: 0 0 var(--aft-r) 0; font-weight: 700;
}
.aft-skip:focus { left: 0; color: var(--aft-on-primary); }

.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* -------------------------------------------------- 3. LAYOUT ----------- */
.aft-container {
  width: 100%;
  max-width: var(--aft-container);
  margin-inline: auto;
  padding-inline: var(--aft-gutter);
}
.aft-section { padding-block: var(--aft-section); }
.aft-section--soft { background: rgba(255,255,255,.022); }
.aft-section--tight { padding-block: clamp(40px, 4vw, 64px); }

.aft-head { max-width: 680px; margin-bottom: clamp(28px, 3.5vw, 48px); }
.aft-head--center { margin-inline: auto; text-align: center; }
.aft-head--row {
  max-width: none; display: flex; align-items: flex-end;
  justify-content: space-between; gap: 20px 32px; flex-wrap: wrap;
}
.aft-head--row > div { flex: 1 1 420px; min-width: 0; }
.aft-head--row > a { flex: 0 0 auto; padding-bottom: 6px; }

.aft-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: var(--aft-fs-eyebrow); font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--aft-primary); margin-bottom: 14px;
}
.aft-lede { font-size: 1.0625rem; color: var(--aft-500); margin: 0; }

.aft-grad { color: var(--aft-mint); }

/* -------------------------------------------------- 4. BUTTONS ---------- */
.aft-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 24px; min-height: 48px;
  font-family: inherit; font-size: .9375rem; font-weight: 700; letter-spacing: -.01em;
  border: 1px solid transparent; border-radius: .75rem;
  cursor: pointer; text-align: center;
  transition: transform var(--aft-dur) var(--aft-ease),
              box-shadow var(--aft-dur) var(--aft-ease),
              background-color var(--aft-dur) var(--aft-ease),
              color var(--aft-dur) var(--aft-ease);
}
.aft-btn svg { width: 17px; height: 17px; flex: none; transition: transform var(--aft-dur) var(--aft-ease); }
.aft-btn:hover svg { transform: translateX(3px); }

.aft-btn--primary { background: #fff; color: var(--aft-on-primary); box-shadow: 0 8px 18px rgba(0,0,0,.28); }
.aft-btn--primary:hover { background: #fff; color: var(--aft-on-primary); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,255,136,.30); }

.aft-btn--ghost { background: rgba(255,255,255,.05); color: var(--aft-ink); border-color: var(--aft-border); }
.aft-btn--ghost:hover { color: var(--aft-primary); border-color: var(--aft-primary); background: rgba(0,255,136,.08); transform: translateY(-2px); }

.aft-btn--cyan { background: #fff; color: var(--aft-on-primary); box-shadow: 0 8px 18px rgba(0,0,0,.28); }
.aft-btn--cyan:hover { background: #fff; color: var(--aft-on-primary); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,255,136,.30); }

.aft-btn--onDark { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.26); backdrop-filter: blur(8px); }
.aft-btn--onDark:hover { background: rgba(255,255,255,.18); color: #fff; transform: translateY(-2px); }

.aft-btn--sm { padding: 9px 16px; min-height: 40px; font-size: .8125rem; }
.aft-btn--block { width: 100%; }

.aft-link {
  display: inline-flex; align-items: center; gap: 7px;
  font-weight: 700; font-size: .9375rem; color: var(--aft-primary);
}
.aft-link svg { width: 16px; height: 16px; transition: transform var(--aft-dur) var(--aft-ease); }
.aft-link:hover svg { transform: translateX(4px); }

/* -------------------------------------------------- 5. TOPBAR ----------- */
.aft-topbar {
  background: var(--aft-gradient-deep);
  color: rgba(255,255,255,.92);
  font-size: .8125rem;
  position: relative; z-index: 60;
}
.aft-topbar__in {
  display: flex; align-items: center; justify-content: center;
  min-height: 40px; padding-block: 8px; text-align: center;
  overflow: hidden;
}
.aft-topbar__track { display: flex; align-items: center; }
.aft-topbar__msg { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
/* Second copy exists only to make the mobile ticker seamless. */
.aft-topbar__msg[aria-hidden="true"] { display: none; }
.aft-topbar__icon { color: var(--aft-cyan); display: inline-flex; }
.aft-topbar__icon svg { width: 15px; height: 15px; }
.aft-topbar a { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.aft-topbar a:hover { color: var(--aft-cyan); }
.aft-topbar__close {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  z-index: 2; background: var(--aft-navy-800);
  background: none; border: 0; color: rgba(255,255,255,.6); cursor: pointer;
  padding: 6px; line-height: 0; border-radius: var(--aft-r-sm);
}
.aft-topbar__close:hover { color: #fff; }
.aft-topbar[hidden] { display: none; }

/* -------------------------------------------------- 6. HEADER ----------- */
.aft-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(24,9,60,.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,.1);
  transition: box-shadow var(--aft-dur) var(--aft-ease),
              border-color var(--aft-dur) var(--aft-ease),
              background-color var(--aft-dur) var(--aft-ease);
}
.aft-header.is-stuck {
  background: rgba(24,9,60,.98);
  border-bottom-color: rgba(255,255,255,.1);
  box-shadow: var(--aft-sh-sm);
}
.aft-header__in {
  display: flex; align-items: center; gap: 20px;
  min-height: var(--aft-header-h);
}

.aft-logo { display: inline-flex; align-items: center; gap: 11px; flex: none; }
.aft-logo img { height: 56px; width: auto; }
.aft-logo__txt { display: flex; flex-direction: column; line-height: 1.05; }
.aft-logo__txt b { font-size: .9375rem; font-weight: 800; color: #fff; letter-spacing: -.02em; }
.aft-logo__txt span { font-size: .9375rem; font-weight: 800; color: var(--aft-primary); letter-spacing: -.02em; }

.aft-nav { margin-left: auto; }
.aft-nav ul { display: flex; align-items: center; gap: 0; list-style: none; margin: 0; padding: 0; flex-wrap: nowrap; }
.aft-nav a {
  display: block; padding: 9px 11px; border-radius: var(--aft-r-sm); white-space: nowrap;
  font-size: .9063rem; font-weight: 600; color: var(--aft-700);
  transition: color var(--aft-dur) var(--aft-ease), background-color var(--aft-dur) var(--aft-ease);
}
.aft-nav a:hover, .aft-nav .current-menu-item > a, .aft-nav .current_page_item > a {
  color: var(--aft-viz); background: rgba(0,229,255,.08);
}
.aft-nav .menu-item-has-children > a::after {
  content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 7px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px); opacity: .5;
}
.aft-nav li { position: relative; }
.aft-nav .sub-menu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 230px;
  background: var(--aft-surface); border: 1px solid var(--aft-border); border-radius: var(--aft-r);
  box-shadow: var(--aft-sh-lg); padding: 8px; display: block;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: all var(--aft-dur) var(--aft-ease); flex-direction: column; align-items: stretch;
}
.aft-nav li:hover > .sub-menu, .aft-nav li:focus-within > .sub-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}

.aft-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.aft-icnbtn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: var(--aft-r-pill);
  border: 1px solid transparent; background: transparent; color: var(--aft-700);
  cursor: pointer; position: relative;
  transition: background-color var(--aft-dur) var(--aft-ease), color var(--aft-dur) var(--aft-ease);
}
.aft-icnbtn:hover { background: var(--aft-indigo-50); color: var(--aft-primary); }
.aft-icnbtn svg { width: 19px; height: 19px; }
.aft-cart__count {
  position: absolute; top: 2px; right: 2px; min-width: 18px; height: 18px;
  display: grid; place-items: center; padding: 0 5px;
  background: var(--aft-primary); color: var(--aft-on-primary); font-size: .625rem; font-weight: 800;
  border-radius: var(--aft-r-pill); border: 2px solid var(--aft-bg);
}
.aft-burger { display: none; }

/* Header actions must never force the page wider than the viewport. */
.aft-header__in { min-width: 0; }
.aft-actions { min-width: 0; }
.aft-actions .aft-btn { white-space: nowrap; }

/* Search drawer */
.aft-search {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows var(--aft-dur) var(--aft-ease);
  border-top: 1px solid transparent;
}
.aft-search.is-open { grid-template-rows: 1fr; border-top-color: var(--aft-border); }
.aft-search > div { overflow: hidden; }
.aft-search form { display: flex; gap: 10px; padding: 16px 0; }
.aft-search input[type="search"] {
  flex: 1; min-width: 0; height: 48px; padding: 0 16px; font-size: 16px;
  font-family: inherit; color: var(--aft-ink);
  border: 1px solid var(--aft-border); border-radius: var(--aft-r-pill); background: var(--aft-surface-2);
  color: var(--aft-ink);
}
.aft-search input::placeholder { color: var(--aft-400); }
.aft-search input:focus { outline: none; border-color: var(--aft-primary); background: var(--aft-secondary); }

/* Mobile drawer */
.aft-drawer {
  position: fixed; inset: 0; z-index: 90; visibility: hidden; pointer-events: none;
  /* Clip the off-canvas panel so it never contributes to page width. */
  overflow: hidden;
}
.aft-drawer.is-open { visibility: visible; pointer-events: auto; }
.aft-drawer__scrim {
  position: absolute; inset: 0; background: rgba(6,2,16,.66);
  opacity: 0; transition: opacity var(--aft-dur) var(--aft-ease);
  backdrop-filter: blur(3px);
}
.aft-drawer.is-open .aft-drawer__scrim { opacity: 1; }
.aft-drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(380px, 88vw);
  background: var(--aft-surface); box-shadow: var(--aft-sh-xl);
  border-left: 1px solid var(--aft-border);
  transform: translateX(100%); transition: transform .34s var(--aft-ease-out);
  display: flex; flex-direction: column; overflow-y: auto;
  padding: 18px 20px calc(24px + env(safe-area-inset-bottom));
}
.aft-drawer.is-open .aft-drawer__panel { transform: translateX(0); }
.aft-drawer__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.aft-drawer nav ul { list-style: none; margin: 0 0 20px; padding: 0; }
.aft-drawer nav a {
  display: block; padding: 13px 12px; border-radius: var(--aft-r-sm);
  font-size: 1rem; font-weight: 600; color: var(--aft-800);
  border-bottom: 1px solid var(--aft-border);
}
.aft-drawer nav a:hover { background: var(--aft-indigo-50); color: var(--aft-primary); }
.aft-drawer .sub-menu { padding-left: 12px; }
.aft-drawer__cta { display: grid; gap: 10px; margin: 0 0 18px; padding-top: 4px; }

/* -------------------------------------------------- 7. HERO ------------- */
.aft-hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 520px at 88% -8%, rgba(0,225,255,.16), transparent 62%),
    radial-gradient(760px 420px at -6% 8%, rgba(124,58,237,.22), transparent 60%),
    var(--aft-grad-page);
  padding-block: clamp(40px, 5.5vw, 78px);
}
.aft-hero__grid {
  display: grid; grid-template-columns: 1.02fr 1fr;
  gap: clamp(28px, 4vw, 56px); align-items: center;
}
.aft-hero__title { margin-bottom: 18px; }
.aft-hero__lede { font-size: clamp(1rem, 1.25vw, 1.125rem); color: var(--aft-600); max-width: 34em; margin-bottom: 26px; }
.aft-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }

.aft-hero__trust {
  display: flex; flex-wrap: nowrap; align-items: center;
  gap: clamp(12px, 1.6vw, 26px); padding: 0; margin: 0; list-style: none;
}
.aft-hero__trust li {
  display: flex; align-items: center; gap: 8px; white-space: nowrap;
  font-size: clamp(.75rem, .95vw, .875rem); font-weight: 600; color: var(--aft-700);
}
.aft-hero__tick {
  display: grid; place-items: center; width: 22px; height: 22px; flex: none;
  border-radius: var(--aft-r-pill); background: rgba(0,255,136,.12); color: var(--aft-primary);
  border: 1px solid rgba(0,255,136,.25);
}
.aft-hero__tick svg { width: 12px; height: 12px; }

/* Hero media + floating dashboard cards */
.aft-hero__media { position: relative; }
.aft-hero__imgwrap {
  position: relative; border-radius: var(--aft-r-xl); overflow: hidden;
  box-shadow: var(--aft-sh-xl); background: var(--aft-surface-2);
  border: 1px solid var(--aft-border);
  aspect-ratio: 4 / 3.2;
}
.aft-hero__imgwrap img { width: 100%; height: 100%; object-fit: cover; }
/* Shown only when no hero image is configured. */
.aft-imgslot {
  width: 100%; height: 100%;
  background: var(--aft-grad-card);
}
.aft-hero__imgwrap::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(165deg, rgba(0,225,255,.12), transparent 46%);
}

.aft-float {
  position: absolute; background: rgba(28,11,60,.88);
  backdrop-filter: blur(14px); border: 1px solid var(--aft-border);
  border-radius: var(--aft-r-lg); box-shadow: var(--aft-sh-lg);
  padding: 16px 18px; z-index: 2;
}
.aft-float__label {
  font-size: .6875rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--aft-400); margin-bottom: 12px;
}

/* Progress card */
.aft-float--progress { top: 7%; left: -5%; width: min(272px, 74%); }
.aft-prog { display: grid; gap: 11px; }
.aft-prog__row { display: grid; gap: 5px; }
.aft-prog__meta { display: flex; justify-content: space-between; font-size: .75rem; font-weight: 600; color: var(--aft-700); }
.aft-prog__meta b { color: var(--aft-ink); font-weight: 800; }
.aft-prog__bar { height: 6px; border-radius: 99px; background: var(--aft-100); overflow: hidden; }
.aft-prog__fill {
  height: 100%; border-radius: 99px; background: var(--aft-viz);
  width: 0; transition: width 1.1s var(--aft-ease-out);
}

/* Score card */
.aft-float--score { top: 10%; right: -3%; width: 168px; text-align: center; }
.aft-float--score .aft-score { font-size: 2.25rem; font-weight: 900; letter-spacing: -.04em; color: var(--aft-ink); line-height: 1; }
.aft-float--score .aft-score span { color: var(--aft-viz); }
.aft-badge-ok {
  display: inline-block; margin-top: 8px; padding: 4px 12px;
  background: rgba(0,255,140,.12); color: var(--aft-mint); border-radius: var(--aft-r-pill);
  border: 1px solid rgba(0,255,140,.28);
  font-size: .6875rem; font-weight: 800; letter-spacing: .04em;
}
.aft-float--score p { margin: 9px 0 0; font-size: .625rem; line-height: 1.35; color: var(--aft-400); }

/* Students pill */
.aft-float--students {
  bottom: 6%; right: 2%;
  display: flex; align-items: center; gap: 12px; padding: 14px 20px;
}
.aft-float--students .aft-ico {
  display: grid; place-items: center; width: 38px; height: 38px; flex: none;
  border-radius: var(--aft-r-pill); background: var(--aft-gradient); color: #fff;
}
.aft-float--students .aft-ico svg { width: 19px; height: 19px; }
.aft-float--students b { display: block; font-size: 1.125rem; font-weight: 900; color: var(--aft-ink); letter-spacing: -.02em; line-height: 1.1; }
.aft-float--students span { font-size: .6875rem; color: var(--aft-400); font-weight: 600; }

/* decorative chips */
.aft-chip-float {
  position: absolute; display: grid; place-items: center;
  width: 54px; height: 54px; border-radius: var(--aft-r-lg);
  background: var(--aft-surface); border: 1px solid var(--aft-border);
  box-shadow: var(--aft-sh); color: var(--aft-primary); z-index: 2;
}
.aft-chip-float svg { width: 24px; height: 24px; }
.aft-chip-float--a { bottom: 26%; left: -3%; color: var(--aft-indigo-600); }
.aft-chip-float--b { top: 58%; right: -4%; background: var(--aft-gradient); color: var(--aft-on-primary); border-color: transparent; }

/* -------------------------------------------------- 8. ACCREDITATION ---- */
.aft-accred {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: auto 1fr auto;
  gap: clamp(18px, 3vw, 38px);
  align-items: center;
  padding: clamp(22px, 2.8vw, 34px) clamp(22px, 3vw, 38px);
  background:
    radial-gradient(520px 220px at 0% 0%, rgba(0,255,136,.07), transparent 65%),
    var(--aft-grad-card);
  border: 1px solid var(--aft-border);
  border-radius: var(--aft-r-lg);
  box-shadow: var(--aft-sh);
}
/* Accent rule anchoring the card */
.aft-accred::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--aft-mint), var(--aft-viz));
}
.aft-accred__badge {
  display: grid; place-items: center; flex: none;
  padding-right: clamp(18px, 3vw, 38px);
  border-right: 1px solid var(--aft-border);
}
.aft-accred__label {
  display: inline-flex; align-items: center; gap: 7px; margin: 0 0 8px;
  font-size: .6875rem; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: var(--aft-mint);
}
.aft-accred__label svg { width: 14px; height: 14px; flex: none; }
.aft-accred__text { margin: 0; font-size: .9375rem; color: var(--aft-500); max-width: 58ch; }
.aft-accred__action { display: flex; justify-content: flex-end; flex: none; }
.aft-accred__badge img {
  height: 76px; width: auto; max-width: 190px; object-fit: contain; flex: none;
  background: #fff; border-radius: var(--aft-r-sm); padding: 8px 12px;
}
.aft-accred__slot {
  display: grid; place-items: center; text-align: center; gap: 6px;
  min-width: 170px; min-height: 76px; padding: 14px;
  border: 2px dashed var(--aft-indigo-300); border-radius: var(--aft-r);
  background: var(--aft-indigo-50); color: var(--aft-indigo-700);
  font-size: .75rem; font-weight: 700; line-height: 1.35;
}
.aft-accred__body h3 { margin: 0 0 7px; font-size: clamp(1.0625rem, 1.5vw, 1.3rem); }

/* Big accreditation feature */
.aft-accredx {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 18px;
  padding: clamp(32px, 4.5vw, 56px) clamp(22px, 4vw, 56px);
  border-radius: var(--aft-r-xl);
  border: 1px solid rgba(0,229,255,.22);
  background:
    radial-gradient(700px 300px at 50% 0%, rgba(0,255,136,.07), transparent 70%),
    var(--aft-grad-teal);
  box-shadow: var(--aft-sh);
}
.aft-accredx__badge {
  display: grid; place-items: center;
  padding: 14px 20px; background: #fff;
  border-radius: var(--aft-r); box-shadow: var(--aft-sh-lg);
}
.aft-accredx__badge img {
  height: 104px; width: auto; max-width: 240px;
  object-fit: contain; display: block;
}
.aft-accredx__title {
  margin: 0; max-width: 20ch;
  font-size: clamp(1.35rem, 2.4vw, 2rem); line-height: 1.2;
}
.aft-accredx__text {
  margin: 0; max-width: 56ch;
  font-size: clamp(.9375rem, 1.15vw, 1.0625rem); color: var(--aft-600);
}
.aft-accredx .aft-btn { margin-top: 6px; }

@media (max-width: 560px) {
  .aft-accredx { gap: 14px; }
  .aft-accredx__badge img { height: 84px; }
  .aft-accredx .aft-btn { width: 100%; }
}

/* -------------------------------------------------- 9. REVIEWS ---------- */
.aft-reviews__top { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 30px; }
.aft-gsum { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.aft-gsum__logo { font-size: 1.375rem; font-weight: 700; letter-spacing: -.02em; }
.aft-gsum__logo i { font-style: normal; }
.aft-gsum__b { color: #4285F4; } .aft-gsum__r { color: #EA4335; }
.aft-gsum__y { color: #FBBC05; } .aft-gsum__g { color: #34A853; }
.aft-gsum__score { font-size: .9375rem; font-weight: 700; color: var(--aft-700); }
.aft-gsum__score span { color: var(--aft-400); font-weight: 500; }

.aft-stars { display: inline-flex; gap: 2px; color: #FBBC05; }
.aft-stars svg { width: 16px; height: 16px; }
.aft-stars--lg svg { width: 21px; height: 21px; }

.aft-rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(300px, 1fr);
  gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 8px; scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.aft-rail::-webkit-scrollbar { display: none; }
.aft-rail > * { scroll-snap-align: start; }

.aft-rev {
  background: var(--aft-grad-card); border: 1px solid var(--aft-border); border-radius: var(--aft-r-lg);
  padding: 22px; display: flex; flex-direction: column; gap: 13px;
  transition: transform var(--aft-dur) var(--aft-ease), box-shadow var(--aft-dur) var(--aft-ease);
}
.aft-rev:hover { transform: translateY(-4px); box-shadow: var(--aft-sh); }
.aft-rev__top { display: flex; align-items: center; justify-content: space-between; }
.aft-rev__quote { margin: 0; font-size: .9375rem; color: var(--aft-700); line-height: 1.7; flex: 1; }
.aft-rev__person { display: flex; align-items: center; gap: 11px; padding-top: 13px; border-top: 1px solid var(--aft-border); }
.aft-rev__avatar {
  width: 40px; height: 40px; border-radius: var(--aft-r-pill); flex: none;
  object-fit: cover; background: var(--aft-gradient); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: .875rem;
}
.aft-rev__name { font-size: .875rem; font-weight: 700; color: var(--aft-ink); }
.aft-rev__src { font-size: .75rem; color: var(--aft-400); }

.aft-railnav { display: inline-flex; gap: 8px; }
.aft-railnav button {
  width: 40px; height: 40px; border-radius: var(--aft-r-pill);
  border: 1px solid var(--aft-border); background: var(--aft-surface); color: var(--aft-700);
  cursor: pointer; display: grid; place-items: center;
  transition: all var(--aft-dur) var(--aft-ease);
}
.aft-railnav button:hover { background: var(--aft-primary); border-color: var(--aft-primary); color: var(--aft-on-primary); }
.aft-railnav svg { width: 17px; height: 17px; }

/* -------------------------------------------------- 10. STATS ----------- */
.aft-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--aft-border);
  border: 1px solid var(--aft-border); border-radius: var(--aft-r-lg); overflow: hidden; }
.aft-stat { background: var(--aft-surface); padding: clamp(20px, 2.6vw, 32px) 20px; text-align: center; }
.aft-stat__ico {
  display: grid; place-items: center; width: 42px; height: 42px; margin: 0 auto 12px;
  border-radius: var(--aft-r); background: var(--aft-indigo-50); color: var(--aft-primary);
}
.aft-stat__ico svg { width: 21px; height: 21px; }
.aft-stat__num { font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 900; color: var(--aft-ink); letter-spacing: -.035em; line-height: 1; }
.aft-stat__lbl { font-size: .8125rem; color: var(--aft-500); margin-top: 7px; font-weight: 600; }

/* -------------------------------------------------- 11. PROGRAMMES ------ */
.aft-progs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.aft-prog-card {
  display: flex; flex-direction: column; background: var(--aft-grad-card);
  border: 1px solid var(--aft-border); border-radius: var(--aft-r-lg); overflow: hidden;
  transition: transform var(--aft-dur) var(--aft-ease), box-shadow var(--aft-dur) var(--aft-ease), border-color var(--aft-dur) var(--aft-ease);
}
.aft-prog-card:hover { transform: translateY(-6px); box-shadow: var(--aft-sh-lg); border-color: rgba(0,229,255,.45); }
/* Logo plate: official marks sit on white so their brand colours are
   reproduced correctly and nothing is recoloured. */
.aft-prog-card__plate {
  display: grid; place-items: center;
  min-height: 108px; padding: 18px 22px; margin: 14px 14px 0;
  background: #fff; border-radius: var(--aft-r);
  box-shadow: inset 0 0 0 1px rgba(15,23,42,.06);
}
.aft-prog-card__plate img {
  /* Wide wordmarks scale by width, square marks by height, so the four
     plates stay optically balanced. */
  max-width: 210px; max-height: 64px; width: auto; height: auto;
  object-fit: contain; mix-blend-mode: multiply;
}
/* Illustrations (not logos) may use the full plate width. */
.aft-prog-card__plate--illus img { max-width: 100%; max-height: 72px; }
.aft-prog-card__glyph {
  display: grid; place-items: center;
  width: 56px; height: 56px; border-radius: var(--aft-r);
  background: linear-gradient(140deg, #EEF2FF, #E3E9FF);
  color: #3B2E7E;
}
.aft-prog-card__glyph svg { width: 28px; height: 28px; }

.aft-prog-card__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.aft-prog-card__body h3 { margin: 0; font-size: 1.0625rem; }
.aft-prog-card__body p { margin: 0; font-size: .875rem; color: var(--aft-500); flex: 1; }

/* -------------------------------------------------- 12. CIMA JOURNEY ---- */
.aft-journey { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(30px, 4vw, 60px); align-items: center; }
.aft-steps { display: flex; align-items: flex-start; justify-content: space-between; position: relative; gap: 8px; }
.aft-steps::before {
  content: ""; position: absolute; left: 6%; right: 6%; top: 29px; height: 2px;
  background: var(--aft-border); z-index: 0;
}
.aft-steps__fill {
  position: absolute; left: 6%; top: 29px; height: 2px; z-index: 1;
  background: var(--aft-gradient); width: 0; transition: width .9s var(--aft-ease-out);
}
.aft-step { position: relative; z-index: 2; flex: 1; text-align: center; background: none; border: 0; cursor: pointer; padding: 0; font-family: inherit; color: inherit; }
.aft-step__dot {
  width: 58px; height: 58px; margin: 0 auto 12px; border-radius: var(--aft-r-pill);
  display: grid; place-items: center; background: var(--aft-surface); color: var(--aft-400);
  border: 2px solid var(--aft-border); box-shadow: var(--aft-sh-xs);
  transition: all var(--aft-dur) var(--aft-ease);
}
.aft-step__dot svg { width: 24px; height: 24px; }
.aft-step.is-active .aft-step__dot,
.aft-step:hover .aft-step__dot { background: var(--aft-gradient); border-color: transparent; color: var(--aft-on-primary); box-shadow: var(--aft-sh-cyan); transform: translateY(-3px); }
.aft-step__t { display: block; font-size: .8125rem; font-weight: 800; color: var(--aft-ink); letter-spacing: -.01em; }
.aft-step__s { display: block; font-size: .6875rem; color: var(--aft-400); margin-top: 3px; line-height: 1.4; }
.aft-step.is-active .aft-step__t { color: var(--aft-primary); }

.aft-journey__panel {
  background: var(--aft-grad-card); border: 1px solid var(--aft-border); border-radius: var(--aft-r-lg);
  padding: clamp(20px, 2.6vw, 30px); box-shadow: var(--aft-sh-sm); margin-top: 26px;
}
.aft-journey__panel h3 { margin: 0 0 8px; }
.aft-journey__panel p { margin: 0; color: var(--aft-500); font-size: .9375rem; }

/* -------------------------------------------------- 13. COURSES --------- */
.aft-courses { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.aft-course {
  display: flex; flex-direction: column; background: var(--aft-grad-card); border: 1px solid var(--aft-border);
  border-radius: var(--aft-r-lg); overflow: hidden;
  transition: transform var(--aft-dur) var(--aft-ease), box-shadow var(--aft-dur) var(--aft-ease);
}
.aft-course:hover { transform: translateY(-6px); box-shadow: var(--aft-sh-lg); }
.aft-course__media { position: relative; aspect-ratio: 16/9; overflow: hidden; background: var(--aft-surface-2); }
.aft-course__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--aft-ease-out); }
.aft-course:hover .aft-course__media img { transform: scale(1.06); }
.aft-course__badge {
  position: absolute; top: 12px; left: 12px; padding: 5px 11px; border-radius: var(--aft-r-pill);
  background: var(--aft-gradient); color: var(--aft-on-primary); font-size: .6875rem; font-weight: 800;
}
.aft-course__body { padding: 18px; display: flex; flex-direction: column; gap: 11px; flex: 1; }
.aft-course__body h3 { margin: 0; font-size: 1rem; line-height: 1.4; }
.aft-course__body h3 a { color: var(--aft-ink); }
.aft-course__body h3 a:hover { color: var(--aft-primary); }
/* WooCommerce/Tutor mark up sale prices with <ins>, which browsers underline. */
.aft-course__price ins, .woocommerce .price ins { text-decoration: none; background: none; color: inherit; }
.aft-course__price del, .woocommerce .price del { opacity: .6; }
.aft-course__meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: .75rem; color: var(--aft-500); font-weight: 600; }
.aft-course__meta span { display: inline-flex; align-items: center; gap: 5px; }
.aft-course__meta svg { width: 14px; height: 14px; color: var(--aft-400); }
.aft-course__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-top: 13px; border-top: 1px solid var(--aft-border); margin-top: auto;
}
.aft-course__price { font-size: 1.125rem; font-weight: 900; color: var(--aft-ink); letter-spacing: -.02em; }
.aft-course__price del { font-size: .875rem; color: var(--aft-400); font-weight: 600; margin-right: 6px; }

.aft-empty {
  padding: 40px; text-align: center; border: 2px dashed var(--aft-border);
  border-radius: var(--aft-r-lg); color: var(--aft-500); background: rgba(255,255,255,.02);
}
.aft-empty b { display: block; color: var(--aft-ink); margin-bottom: 6px; }

/* -------------------------------------------------- 14. EXAM PROMO ------ */
.aft-exam {
  position: relative; overflow: hidden; color: #fff;
  border-radius: var(--aft-r-xl);
  background:
    radial-gradient(760px 420px at 85% 10%, rgba(0,225,255,.20), transparent 60%),
    radial-gradient(620px 400px at 8% 90%, rgba(0,255,140,.14), transparent 62%),
    var(--aft-grad-teal);
  border: 1px solid rgba(0,229,255,.32);   /* portal hero-panel hairline */
  padding: clamp(32px, 4.5vw, 64px);
}
.aft-exam::before {
  content: ""; position: absolute; inset: 0; opacity: .35; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at 50% 40%, #000, transparent 78%);
}
.aft-exam__grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 64px); align-items: center; }
.aft-exam__media { position: relative; padding: 6px 10px; }
.aft-exam h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.5rem); }
.aft-exam p { color: rgba(255,255,255,.78); font-size: 1.0625rem; max-width: 46ch; }
.aft-exam .aft-eyebrow { color: var(--aft-cyan); }
.aft-exam__list { list-style: none; padding: 0; margin: 22px 0; display: grid; gap: 11px; }
.aft-exam__list li { display: flex; align-items: center; gap: 11px; font-size: .9375rem; color: rgba(255,255,255,.9); }
.aft-exam__list svg { width: 18px; height: 18px; color: var(--aft-mint); flex: none; }
.aft-exam__cta { display: flex; flex-wrap: wrap; gap: 12px; }

.aft-laptop {
  position: relative; border-radius: var(--aft-r-lg); overflow: hidden; margin: 18px 0;
  border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.05);
  box-shadow: 0 28px 70px rgba(0,0,0,.45);
}
.aft-laptop__bar { display: flex; gap: 6px; padding: 11px 14px; background: rgba(255,255,255,.07); border-bottom: 1px solid rgba(255,255,255,.1); }
.aft-laptop__bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.22); }
.aft-laptop__body { padding: 18px; display: grid; gap: 12px; }
.aft-laptop__screen { line-height: 0; }
.aft-laptop__screen img { width: 100%; height: auto; display: block; }
.aft-mini {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--aft-r); padding: 13px 15px;
}
.aft-mini__t { font-size: .6875rem; text-transform: uppercase; letter-spacing: .12em; color: rgba(255,255,255,.55); font-weight: 700; }
.aft-mini__v { font-size: 1.5rem; font-weight: 900; color: #fff; letter-spacing: -.03em; }
.aft-mini__v em { font-style: normal; color: var(--aft-cyan); }
.aft-exam__float {
  position: absolute; background: rgba(28,11,60,.96); color: var(--aft-ink);
  border: 1px solid var(--aft-border); backdrop-filter: blur(10px);
  border-radius: var(--aft-r); padding: 11px 15px; box-shadow: var(--aft-sh-lg); z-index: 3;
}
.aft-exam__float b { display: block; font-size: 1.0625rem; font-weight: 900; letter-spacing: -.02em; }
.aft-exam__float span { font-size: .6875rem; color: var(--aft-400); font-weight: 600; }
.aft-exam__float--a { top: -4%; left: -4%; }
.aft-exam__float--b { bottom: -5%; right: -3%; }

/* -------------------------------------------------- 15. PARTNERS -------- */
.aft-marquee { position: relative; overflow: hidden; }
.aft-marquee::before, .aft-marquee::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 120px; z-index: 2; pointer-events: none;
}
.aft-marquee::before { left: 0; background: linear-gradient(90deg, #150830, transparent); }
.aft-marquee::after { right: 0; background: linear-gradient(270deg, #150830, transparent); }
.aft-marquee__track { display: flex; gap: 18px; width: max-content; will-change: transform; }
.aft-marquee__track--ltr { animation: aft-ltr 46s linear infinite; }
.aft-marquee__track--rtl { animation: aft-rtl 52s linear infinite; }
.aft-marquee:hover .aft-marquee__track,
.aft-marquee__track:focus-within { animation-play-state: paused; }
.aft-marquee + .aft-marquee { margin-top: 18px; }

@keyframes aft-ltr { from { transform: translateX(-50%); } to { transform: translateX(0); } }
@keyframes aft-rtl { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.aft-plogo {
  display: grid; place-items: center; flex: none;
  width: 178px; height: 92px; padding: 18px 22px;
  /* The supplied partner PNGs have solid white backgrounds, so a white card
     lets them sit flush. No official mark is recoloured. */
  background: #fff;
  border: 1px solid var(--aft-border); border-radius: var(--aft-r);
  box-shadow: var(--aft-sh-sm);
  transition: transform var(--aft-dur) var(--aft-ease), box-shadow var(--aft-dur) var(--aft-ease);
}
.aft-plogo:hover { transform: translateY(-4px); box-shadow: var(--aft-sh); }
.aft-plogo img { max-width: 100%; max-height: 52px; width: auto; object-fit: contain; mix-blend-mode: multiply; }

/* -------------------------------------------------- 16. STORY TIMELINE -- */
.aft-story { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(30px, 4vw, 56px); align-items: center; }
.aft-tl { position: relative; display: flex; justify-content: space-between; gap: 10px; }
.aft-tl::before { content: ""; position: absolute; left: 5%; right: 5%; top: 26px; height: 2px; background: var(--aft-border); }
.aft-tl__i { position: relative; flex: 1; text-align: center; }
.aft-tl__dot {
  width: 52px; height: 52px; margin: 0 auto 12px; border-radius: var(--aft-r-pill);
  display: grid; place-items: center; background: var(--aft-surface); border: 2px solid var(--aft-border);
  color: var(--aft-primary); font-weight: 900; font-size: .8125rem; position: relative; z-index: 1;
  transition: all var(--aft-dur) var(--aft-ease);
}
.aft-tl__dot svg { width: 21px; height: 21px; }
.aft-tl__i:hover .aft-tl__dot { background: var(--aft-gradient); color: var(--aft-on-primary); border-color: transparent; transform: translateY(-3px); box-shadow: var(--aft-sh-cyan); }
.aft-tl__l { font-size: .75rem; font-weight: 700; color: var(--aft-600); line-height: 1.45; display: block; }

/* -------------------------------------------------- 17. TEAM ------------ */
.aft-team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.aft-member {
  display: flex; flex-direction: column;
  background: var(--aft-grad-card); border: 1px solid var(--aft-border); border-radius: var(--aft-r-lg);
  overflow: hidden; text-align: center;
  transition: transform var(--aft-dur) var(--aft-ease), box-shadow var(--aft-dur) var(--aft-ease);
}
.aft-member:hover { transform: translateY(-5px); box-shadow: var(--aft-sh-lg); }
/* Source portraits are circular crops on white, so render them as circular
   avatars — the white corners disappear and the cards read consistently. */
.aft-member__ph {
  display: grid; place-items: center;
  padding: 24px 18px 6px;
}
.aft-member__ph img {
  width: clamp(104px, 9vw, 136px); aspect-ratio: 1/1;
  border-radius: var(--aft-r-pill); object-fit: cover;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0,255,136,.22), var(--aft-sh);
}
.aft-member__body {
  padding: 8px 18px 22px; text-align: center;
  display: flex; flex-direction: column; flex: 1;
}
.aft-member__body h3 { margin: 0 0 4px; font-size: 1rem; }
.aft-member__role { font-size: .8125rem; color: var(--aft-primary); font-weight: 700; margin-bottom: 8px; }
.aft-member__cred {
  font-size: .75rem; color: var(--aft-400); margin-bottom: 14px;
  line-height: 1.5;
}
/* Pushes every "View Profile" onto the same baseline regardless of how many
   lines the credentials run to. */
.aft-member__body .aft-link { justify-content: center; margin-top: auto; }

/* -------------------------------------------------- 18. APPROACH -------- */
.aft-approach { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.aft-feat {
  padding: 26px 22px; background: var(--aft-grad-card); border: 1px solid var(--aft-border);
  border-radius: var(--aft-r-lg);
  transition: transform var(--aft-dur) var(--aft-ease), box-shadow var(--aft-dur) var(--aft-ease);
}
.aft-feat:hover { transform: translateY(-5px); box-shadow: var(--aft-sh); }
.aft-feat__ico {
  display: grid; place-items: center; width: 50px; height: 50px; margin-bottom: 16px;
  border-radius: var(--aft-r); background: rgba(0,225,255,.10); color: var(--aft-primary);
  border: 1px solid rgba(0,225,255,.22);
  transition: transform var(--aft-dur) var(--aft-ease), background var(--aft-dur) var(--aft-ease);
}
.aft-feat:hover .aft-feat__ico { background: var(--aft-gradient); color: var(--aft-on-primary); transform: scale(1.06) rotate(-4deg); }
.aft-feat__ico svg { width: 24px; height: 24px; }
.aft-feat h3 { margin: 0 0 7px; font-size: 1rem; }
.aft-feat p { margin: 0; font-size: .875rem; color: var(--aft-500); }

/* -------------------------------------------------- 19. SUCCESS --------- */
.aft-success { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(26px, 3.5vw, 44px); align-items: stretch; }
.aft-story-card {
  display: grid; grid-template-columns: 1fr 1fr; overflow: hidden;
  background: var(--aft-grad-card); border: 1px solid var(--aft-border); border-radius: var(--aft-r-lg);
}
.aft-story-card__img { background: var(--aft-surface-2); min-height: 260px; }
.aft-story-card__img img { width: 100%; height: 100%; object-fit: cover; }
.aft-story-card__body { padding: clamp(20px, 2.4vw, 28px); display: flex; flex-direction: column; gap: 10px; justify-content: center; }
.aft-story-card__q { font-size: 1rem; color: var(--aft-700); line-height: 1.7; margin: 0; }

/* -------------------------------------------------- 20. POSTS ----------- */
.aft-posts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.aft-post {
  display: flex; flex-direction: column; background: var(--aft-grad-card);
  border: 1px solid var(--aft-border); border-radius: var(--aft-r-lg); overflow: hidden;
  transition: transform var(--aft-dur) var(--aft-ease), box-shadow var(--aft-dur) var(--aft-ease);
}
.aft-post:hover { transform: translateY(-5px); box-shadow: var(--aft-sh-lg); }
.aft-post__media { aspect-ratio: 16/10; overflow: hidden; background: var(--aft-surface-2); }
.aft-post__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--aft-ease-out); }
.aft-post:hover .aft-post__media img { transform: scale(1.06); }
.aft-post__body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.aft-post__cat {
  align-self: flex-start; padding: 4px 10px; border-radius: var(--aft-r-pill);
  background: rgba(0,225,255,.12); color: var(--aft-primary);
  font-size: .6875rem; font-weight: 800; letter-spacing: .04em;
}
.aft-post__body h3 { margin: 0; font-size: .9375rem; line-height: 1.45; }
.aft-post__body h3 a { color: var(--aft-ink); }
.aft-post__body h3 a:hover { color: var(--aft-primary); }
.aft-post__ex { font-size: .8125rem; color: var(--aft-500); margin: 0; flex: 1; }
.aft-post__meta { display: flex; gap: 12px; font-size: .6875rem; color: var(--aft-400); font-weight: 600; padding-top: 11px; border-top: 1px solid var(--aft-border); }

/* -------------------------------------------------- 21. FINAL CTA ------- */
.aft-cta {
  position: relative; overflow: hidden; text-align: center; color: #fff;
  padding: clamp(46px, 6vw, 84px) clamp(22px, 4vw, 56px);
  background:
    radial-gradient(700px 360px at 50% -10%, rgba(0,229,255,.2), transparent 62%),
    var(--aft-gradient-deep);
}
.aft-cta h2 { color: #fff; font-size: clamp(1.75rem, 3.4vw, 2.75rem); margin-bottom: 14px; }
.aft-cta p { color: rgba(255,255,255,.76); max-width: 62ch; margin: 0 auto 26px; font-size: 1.0625rem; }
.aft-cta__btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* -------------------------------------------------- 22. FOOTER ---------- */
.aft-footer { background: var(--aft-deepest); border-top: 1px solid var(--aft-border); color: var(--aft-600); font-size: .875rem; }
.aft-footer__grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1.2fr;
  gap: clamp(24px, 3vw, 44px); padding-block: clamp(42px, 5vw, 68px);
}
.aft-footer h4 {
  color: #fff; font-size: .8125rem; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; margin: 0 0 16px;
}
.aft-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.aft-footer a { color: var(--aft-600); }
.aft-footer a:hover { color: var(--aft-cyan); }
.aft-footer__about { max-width: 30ch; margin: 14px 0 18px; line-height: 1.7; }
.aft-footer .aft-logo__txt b, .aft-footer .aft-logo__txt span { color: #fff; }
.aft-footer .aft-logo__txt span { color: var(--aft-primary); }
.aft-social { display: flex; gap: 9px; }
.aft-social a {
  display: grid; place-items: center; width: 38px; height: 38px;
  border-radius: var(--aft-r-pill); background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.8);
  transition: all var(--aft-dur) var(--aft-ease);
}
.aft-social a:hover { background: var(--aft-primary); border-color: transparent; color: var(--aft-on-primary); transform: translateY(-2px); }
.aft-social svg { width: 17px; height: 17px; }
.aft-contact { display: grid; gap: 12px; }
.aft-contact li { display: flex; gap: 11px; align-items: flex-start; }
.aft-contact svg { width: 17px; height: 17px; color: var(--aft-primary); flex: none; margin-top: 3px; }
.aft-footer__bar {
  border-top: 1px solid var(--aft-border);
  padding-block: 20px; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; font-size: .8125rem;
}
.aft-footer__marks { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.aft-footer__marks img { height: 34px; width: auto; max-width: 150px; object-fit: contain; opacity: .9; filter: brightness(0) invert(1); }

/* -------------------------------------------------- 23. ANIMATION ------- */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--aft-ease-out), transform .7s var(--aft-ease-out); }
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: .08s; }
[data-reveal][data-delay="2"] { transition-delay: .16s; }
[data-reveal][data-delay="3"] { transition-delay: .24s; }
[data-reveal][data-delay="4"] { transition-delay: .32s; }

[data-parallax] { will-change: transform; }

/* -------------------------------------------------- 24. PLUGIN SKINS ---- */
/* WooCommerce + Tutor LMS are styled, never overridden structurally. */
.woocommerce ul.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin: 0; padding: 0; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product {
  width: auto !important; margin: 0 !important; float: none !important;
  background: var(--aft-grad-card); border: 1px solid var(--aft-border); border-radius: var(--aft-r-lg);
  overflow: hidden; padding: 0; display: flex; flex-direction: column;
  transition: transform var(--aft-dur) var(--aft-ease), box-shadow var(--aft-dur) var(--aft-ease);
}
.woocommerce ul.products li.product:hover { transform: translateY(-5px); box-shadow: var(--aft-sh-lg); }
.woocommerce ul.products li.product a img {
  margin: 0; border-radius: 0; width: 100%;
  aspect-ratio: 4 / 3; object-fit: cover;
  background: var(--aft-surface-2);
  color: var(--aft-400); font-size: .75rem;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-size: .9375rem !important; font-weight: 700; color: var(--aft-ink); padding: 14px 16px 0; margin: 0;
}
.woocommerce ul.products li.product .price {
  color: var(--aft-ink); font-weight: 900; font-size: 1.0625rem; padding: 8px 16px 0; margin: 0;
}
.woocommerce ul.products li.product .button,
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.woocommerce #respond input#submit {
  background: var(--aft-gradient); color: var(--aft-on-primary); border-radius: var(--aft-r-pill);
  font-weight: 700; padding: 11px 20px; margin: 14px 16px 16px;
  transition: transform var(--aft-dur) var(--aft-ease), box-shadow var(--aft-dur) var(--aft-ease);
}
.woocommerce a.button:hover, .woocommerce button.button:hover { background: var(--aft-primary-dark); color: var(--aft-on-primary); transform: translateY(-2px); box-shadow: var(--aft-sh-cyan); }
.woocommerce .woocommerce-message, .woocommerce .woocommerce-info {
  border-top-color: var(--aft-primary); border-radius: var(--aft-r); background: var(--aft-surface-2); color: var(--aft-body);
}
.woocommerce .woocommerce-message::before, .woocommerce .woocommerce-info::before { color: var(--aft-primary); }

/* Tutor LMS */
.tutor-course-card, .tutor-card {
  border-radius: var(--aft-r-lg) !important; border-color: var(--aft-border) !important;
  box-shadow: var(--aft-sh-xs);
}
.tutor-btn-primary, .tutor-btn.tutor-btn-primary {
  background: var(--aft-gradient) !important; border: 0 !important;
  border-radius: var(--aft-r-pill) !important; font-weight: 700 !important;
}
.tutor-btn-primary:hover { box-shadow: var(--aft-sh-indigo); }
.tutor-color-primary, a.tutor-color-primary { color: var(--aft-primary) !important; }

/* -------------------------------------------------- 25. RESPONSIVE ------ */
@media (max-width: 1320px) {
  .aft-nav a { padding: 9px 8px; font-size: .875rem; }
  .aft-logo img { height: 48px; }
}

@media (max-width: 1180px) {
  .aft-stats { grid-template-columns: repeat(3, 1fr); }
  .aft-progs, .aft-team, .aft-approach, .aft-posts { grid-template-columns: repeat(2, 1fr); }
  .aft-courses { grid-template-columns: repeat(2, 1fr); }
  .woocommerce ul.products { grid-template-columns: repeat(3, 1fr); }
  .aft-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

@media (max-width: 1024px) {
  .aft-nav { display: none; }
  .aft-burger { display: inline-flex; }
  /* The full "Login / Student Portal" pill does not fit once the nav
     collapses; it is reachable from the mobile drawer instead. */
  .aft-hide-sm { display: none !important; }
  .aft-hero__grid, .aft-journey, .aft-story, .aft-success, .aft-exam__grid { grid-template-columns: 1fr; }
  .aft-accred { grid-template-columns: auto 1fr; }
  .aft-accred .aft-btn { grid-column: 1 / -1; justify-self: start; }
  /* Brief §25: mobile hero leads with headline, text, CTA — then the image. */
  .aft-float--progress { left: 0; }
  .aft-float--score { right: 0; }
  .aft-chip-float { display: none; }
}

@media (max-width: 860px) {
  :root { --aft-gutter: 18px; }
  .aft-stats { grid-template-columns: repeat(2, 1fr); }
  .aft-courses { grid-template-columns: 1fr; }
  .woocommerce ul.products { grid-template-columns: repeat(2, 1fr); }
  .aft-story-card { grid-template-columns: 1fr; }
  .aft-footer__grid { grid-template-columns: 1fr 1fr; }

  /* CIMA journey -> vertical timeline (brief §9) */
  .aft-steps { flex-direction: column; align-items: stretch; gap: 0; }
  .aft-steps::before { left: 28px; right: auto; top: 10px; bottom: 10px; width: 2px; height: auto; }
  .aft-steps__fill { display: none; }
  .aft-step { display: flex; align-items: center; gap: 16px; text-align: left; padding: 10px 0; }
  .aft-step__dot { margin: 0; width: 56px; }
  .aft-step__s { margin-top: 2px; }

  /* Story timeline -> vertical */
  .aft-tl { flex-direction: column; gap: 4px; }
  .aft-tl::before { left: 26px; right: auto; top: 8px; bottom: 8px; width: 2px; height: auto; }
  .aft-tl__i { display: flex; align-items: center; gap: 16px; text-align: left; }
  .aft-tl__dot { margin: 0; }

  /* Programmes swipe rail on mobile (brief §25) */
  .aft-progs {
    display: grid; grid-auto-flow: column; grid-auto-columns: 78%;
    gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
    scrollbar-width: none; padding-bottom: 6px;
  }
  .aft-progs::-webkit-scrollbar { display: none; }
  .aft-progs > * { scroll-snap-align: start; }
  .aft-progs .aft-prog-card:hover { transform: none; }
}

@media (max-width: 380px) {
  .aft-logo img { height: 40px; }
  /* Exam panel padding + gutters exceeded 320px viewports. */
  .aft-exam { padding: 24px 16px; }
  .aft-exam__media { padding: 0; }
  .aft-cta { padding-inline: 16px; }
  /* Smallest phones: the wordmark and three icon buttons no longer fit. */
  .aft-logo__txt { display: none; }
  .aft-icnbtn { width: 38px; height: 38px; }
  .aft-header__in { gap: 10px; }
  :root { --aft-gutter: 14px; }
}

@media (max-width: 560px) {
  .aft-team, .aft-approach, .aft-posts, .aft-footer__grid { grid-template-columns: 1fr; }
  /* Accreditation badge plate has a hard min width — stack it. */
  .aft-accred { grid-template-columns: 1fr; text-align: left; }
  .aft-accred { gap: 16px; padding: 22px 20px; }
  .aft-accred__badge {
    border-right: 0; border-bottom: 1px solid var(--aft-border);
    padding: 0 0 16px; justify-items: start;
  }
  .aft-accred__badge img { height: 62px; }
  .aft-accred__action { justify-content: stretch; }
  .aft-accred__action .aft-btn { width: 100%; }
  .woocommerce ul.products { grid-template-columns: 1fr; }
  .aft-stats { grid-template-columns: 1fr; }
  .aft-hero__cta .aft-btn { width: 100%; }
  .aft-float--progress { position: static; width: 100%; margin-bottom: 14px; }
  .aft-float--score, .aft-float--students { position: static; width: 100%; margin-top: 12px; text-align: left; }
  .aft-hero__imgwrap { aspect-ratio: 4/3; }
  .aft-exam__float { position: static; display: inline-block; margin: 10px 10px 0 0; }
}

/* -------------------------------------------------- 26. MOTION PREFS ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .aft-marquee__track { animation: none !important; }
}

@media print {
  .aft-topbar, .aft-header, .aft-drawer, .aft-cta, .aft-exam { display: none !important; }
}


/* ==========================================================================
   26. PLUGIN THEMING — Tutor LMS ships a light palette via CSS variables.
   Remapping the variables fixes every heading, label, link and border in one
   place, instead of chasing !important overrides through plugin markup.
   ========================================================================== */
:root,
.tutor-wrap,
[class*="tutor-"] {
  --tutor-body-color:            #C7B9FD;
  --tutor-body-color-rgb:        199, 185, 253;
  --tutor-color-secondary:       #DDD5FF;
  --tutor-color-subdued:         #B3A3EE;
  --tutor-color-muted:           #9C8BD0;
  --tutor-color-hints:           #9C8BD0;
  --tutor-color-primary:         #00FF88;
  --tutor-color-primary-rgb:     0, 255, 136;
  --tutor-color-primary-hover:   #38FFA0;
  --tutor-color-primary-hover-rgb: 56, 255, 160;
  --tutor-border-color:          #412C63;
  --tutor-border-color-rgb:      65, 44, 99;
  --tutor-color-gray:            #2B1B46;
  --tutor-color-gray-10:         #1C0B3C;
  --tutor-color-gray-rgb:        43, 27, 70;
  --tutor-color-white:           #1C0B3C;
}

/* Headings inside plugin UI must always read as headings. */
[class*="tutor-"] h1, [class*="tutor-"] h2, [class*="tutor-"] h3,
[class*="tutor-"] h4, [class*="tutor-"] h5,
.woocommerce h1, .woocommerce h2, .woocommerce h3 {
  color: var(--aft-ink);
}

/* Form controls: plugin inputs default to white-on-white here. */
[class*="tutor-"] input[type="text"], [class*="tutor-"] input[type="search"],
[class*="tutor-"] input[type="email"], [class*="tutor-"] input[type="password"],
[class*="tutor-"] select, [class*="tutor-"] textarea,
.woocommerce input[type="text"], .woocommerce input[type="email"],
.woocommerce input[type="tel"], .woocommerce input[type="password"],
.woocommerce textarea, .woocommerce select {
  background: var(--aft-surface-2);
  color: var(--aft-ink);
  border: 1px solid var(--aft-border);
  border-radius: var(--aft-r-sm);
}
[class*="tutor-"] input::placeholder, .woocommerce input::placeholder { color: var(--aft-400); }

[class*="tutor-"] label, .woocommerce label { color: var(--aft-body); }

/* Panels/cards the plugins paint white. */
.tutor-card, .tutor-course-card, .tutor-dashboard-content,
.tutor-course-filter, .tutor-pagination-wrapper,
.woocommerce .cart_totals, .woocommerce-checkout #order_review,
.woocommerce table.shop_table, .woocommerce-MyAccount-content {
  background: var(--aft-surface);
  color: var(--aft-body);
  border-color: var(--aft-border);
}
.woocommerce table.shop_table th, .woocommerce table.shop_table td {
  color: var(--aft-body); border-color: var(--aft-border);
}

/* Tutor pagination / filter links. */
.tutor-pagination-wrapper a, .tutor-pagination-wrapper span,
[class*="tutor-"] .tutor-nav-link { color: var(--aft-body); }
[class*="tutor-"] a:hover { color: var(--aft-primary); }

/* WooCommerce notices on dark. */
.woocommerce-message, .woocommerce-info, .woocommerce-error {
  background: var(--aft-surface-2) !important;
  color: var(--aft-body) !important;
  border-top-color: var(--aft-primary) !important;
}

/* ==========================================================================
   HERO CROSSFADE — two distinct heroes occupying the same space.
   The inactive hero is taken out of flow so the section height always
   follows whichever hero is showing.
   ========================================================================== */
.aft-hero { padding-block: 0; }
.aft-hero__viewport { position: relative; }

.aft-hero__slide {
  position: absolute; inset: 0 auto auto 0; width: 100%;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .9s var(--aft-ease), visibility 0s linear .9s;
}
.aft-hero__slide.is-active {
  position: relative;
  opacity: 1; visibility: visible; pointer-events: auto;
  transition: opacity .9s var(--aft-ease);
}
.aft-hero__slide--brand { padding-block: clamp(40px, 5.5vw, 78px); }

.aft-hero__controls { position: relative; z-index: 3; }
.aft-hero__controls-in {
  display: flex; align-items: center; gap: 14px;
  padding-bottom: clamp(22px, 3vw, 34px);
}
.aft-hero__arrow {
  width: 40px; height: 40px; flex: none; display: grid; place-items: center;
  border-radius: var(--aft-r-pill); cursor: pointer;
  background: rgba(255,255,255,.06); color: var(--aft-700);
  border: 1px solid var(--aft-border);
  transition: all var(--aft-dur) var(--aft-ease);
}
.aft-hero__arrow:hover { background: var(--aft-primary); border-color: var(--aft-primary); color: var(--aft-on-primary); }
.aft-hero__dots { display: flex; align-items: center; gap: 8px; }
.aft-hero__dot {
  width: 9px; height: 9px; padding: 0; border: 0; cursor: pointer;
  border-radius: var(--aft-r-pill); background: var(--aft-300);
  transition: all var(--aft-dur) var(--aft-ease);
}
.aft-hero__dot:hover { background: var(--aft-500); }
.aft-hero__dot.is-active { width: 28px; background: var(--aft-primary); }

/* ==========================================================================
   HERO B — admissions. Deliberately a different composition from hero A:
   full-bleed teal wash, oversized display type, figure bleeding off the
   right edge, routes as a stacked list rather than cards.
   ========================================================================== */
.aft-hero__slide--admissions {
  overflow: hidden;
  background:
    radial-gradient(900px 520px at 76% 6%, rgba(0,229,255,.16), transparent 62%),
    radial-gradient(700px 480px at 6% 92%, rgba(0,255,136,.10), transparent 64%),
    var(--aft-grad-teal);
  /* No bottom padding: the figure is meant to meet the hero baseline. */
  padding-block: clamp(28px, 3.4vw, 46px) 0;
}
.aft-adm__glow {
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(circle at 60% 40%, #000, transparent 76%);
}
.aft-adm {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  gap: clamp(14px, 1.8vw, 32px);
  align-items: end;
}
.aft-adm__copy {
  align-self: center;
  padding-block: clamp(4px, 1vw, 14px) clamp(30px, 3.6vw, 54px);
}

.aft-adm__title {
  margin: 0 0 16px; font-weight: 900; letter-spacing: -.04em; line-height: .94;
  text-transform: uppercase;
}
.aft-adm__title span { display: block; font-size: clamp(1.65rem, 3.6vw, 3rem); color: #fff; }
.aft-adm__title em {
  display: block; font-style: normal; color: var(--aft-mint);
  font-size: clamp(3rem, 8vw, 6.5rem); line-height: .9;
  text-shadow: 0 0 46px rgba(0,255,136,.30);
}
.aft-adm__kicker {
  margin: 0 0 24px; font-size: clamp(.95rem, 1.35vw, 1.2rem); font-weight: 700;
  color: #fff; letter-spacing: -.01em;
}
.aft-adm__kicker::after {
  content: ""; display: block; width: 58px; height: 3px; margin-top: 12px;
  border-radius: 3px; background: var(--aft-mint);
}
.aft-adm__routes { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 12px; }
.aft-adm__routes li {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 16px; border-radius: var(--aft-r);
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(6px);
}
.aft-adm__ico {
  display: grid; place-items: center; width: 34px; height: 34px; flex: none;
  border-radius: var(--aft-r-sm); color: var(--aft-mint);
  background: rgba(0,255,136,.12); border: 1px solid rgba(0,255,136,.26);
}
.aft-adm__ico--alt { color: var(--aft-viz); background: rgba(0,229,255,.12); border-color: rgba(0,229,255,.26); }
.aft-adm__routes b { display: block; font-size: .9375rem; color: #fff; font-weight: 700; }
.aft-adm__routes i { display: block; font-style: normal; font-size: .8125rem; color: rgba(255,255,255,.66); margin-top: 2px; }

.aft-adm__figure {
  position: relative; align-self: end;
  /* Shrink-wrapped to the image so the seal anchors to the person,
     not to the empty column. Pulled toward the viewport edge. */
  width: fit-content; max-width: 100%;
  margin-left: auto; margin-right: calc(var(--aft-gutter) * -1);
  line-height: 0;
}
.aft-adm__figure > img {
  display: block; width: 100%; max-width: 720px; height: auto;
  filter: drop-shadow(0 36px 70px rgba(0,0,0,.55));
}
.aft-adm__seal {
  position: absolute; right: -3%; bottom: 15%; left: auto;
  display: grid; place-items: center; padding: 11px;
  background: #fff; border-radius: var(--aft-r-pill); box-shadow: var(--aft-sh-lg);
}
.aft-adm__seal img { height: 88px; width: auto; }

/* Between 1025-1300px the container narrows but the figure is still pulled
   toward the viewport edge, which pushed the seal off-screen at ~1180px. */
@media (min-width: 1025px) and (max-width: 1300px) {
  .aft-adm__figure { margin-right: 0; }
  .aft-adm__seal { right: 0; }
  .aft-adm__seal img { height: 72px; }
}

@media (max-width: 1024px) {
  .aft-hero__slide--admissions { padding-block: clamp(24px, 3vw, 36px) 0; }
  .aft-adm { grid-template-columns: 1fr; align-items: start; gap: 14px; }

  /* Same treatment as hero A: promote the copy's children so the figure can
     sit between the headline and the supporting content. */
  .aft-adm__copy { display: contents; }
  .aft-adm .aft-eyebrow--chip { order: 1; margin-bottom: 0; }
  .aft-adm__title            { order: 2; margin-bottom: 0; }
  .aft-adm__figure           { order: 3; margin: 2px auto 0; }
  .aft-adm__kicker           { order: 4; margin-bottom: 0; }
  .aft-adm__routes           { order: 5; margin-bottom: 0; }
  .aft-adm .aft-hero__cta    { order: 6; }

  /* Grid items default to min-width:auto — without this the widest child
     stretches the single column past the viewport. */
  .aft-adm .aft-eyebrow--chip,
  .aft-adm__title, .aft-adm__figure, .aft-adm__kicker,
  .aft-adm__routes, .aft-adm .aft-hero__cta { min-width: 0; max-width: 100%; }

  .aft-adm__figure > img { max-width: 360px; margin-inline: auto; }
  .aft-adm__seal { right: 2%; left: auto; bottom: 6%; }
  .aft-adm__seal img { height: 62px; }
}

@media (max-width: 560px) {
  .aft-adm__figure > img { max-width: 310px; }
  .aft-adm__seal { right: 0; left: auto; bottom: 4%; }
  .aft-adm__seal img { height: 52px; }
  .aft-adm__title em { font-size: clamp(2.6rem, 17vw, 4rem); }
}

@media (prefers-reduced-motion: reduce) {
  .aft-hero__slide { transition: none !important; }
}


/* ==========================================================================
   MOBILE CONVERSION BAR — persistent primary actions on small screens.
   ========================================================================== */
.aft-mobar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
  display: none; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(12,5,36,.94);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--aft-border);
}
.aft-mobar .aft-btn { flex: 1 1 0; min-width: 0; min-height: 48px; padding-inline: 12px; }
.aft-mobar .aft-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 860px) {
  .aft-mobar { display: flex; }
  /* Keep the bar from covering the end of the page. */
  body.aft-home .aft-footer__bar,
  .aft-footer__bar { padding-bottom: calc(24px + env(safe-area-inset-bottom) + 58px); }
}

/* --------------------------------------------------- mobile polish ----- */
@media (max-width: 860px) {
  /* Thumb-friendly targets everywhere. */
  .aft-nav a, .aft-drawer nav a { min-height: 48px; display: flex; align-items: center; }
  .aft-icnbtn { min-width: 44px; min-height: 44px; }
  .aft-btn { min-height: 48px; }
  .aft-hero__dot { width: 12px; height: 12px; }
  .aft-hero__dot.is-active { width: 32px; }
  .aft-hero__arrow { width: 44px; height: 44px; }
  /* Remaining sub-44px controls: review rail arrows and the topbar close. */
  .aft-railnav button { width: 44px; height: 44px; }
  .aft-topbar__close { width: 44px; height: 44px; display: grid; place-items: center; padding: 0; }

  /* Primary actions go full width so they are unmissable. */
  .aft-hero__cta { display: grid; grid-template-columns: 1fr; gap: 10px; }
  .aft-hero__cta .aft-btn { width: 100%; }
  .aft-cta__btns { display: grid; grid-template-columns: 1fr; gap: 10px; }
  .aft-cta__btns .aft-btn { width: 100%; }

  /* Tighter vertical rhythm so more content is reachable per scroll. */
  :root { --aft-section: clamp(40px, 8vw, 64px); }
  .aft-head { margin-bottom: 22px; }
}

@media (max-width: 560px) {
  /* Legibility floor on small screens. */
  body { font-size: 16px; }
  .aft-route p, .aft-adm__routes i, .aft-post__ex, .aft-feat p { font-size: .875rem; }
  .aft-prog-card__body p, .aft-rev__quote { font-size: .9375rem; }
}


/* --------------------------------------- partners: single-line header -- */
.aft-phead {
  display: flex; align-items: baseline; flex-wrap: wrap;
  gap: 8px clamp(14px, 1.6vw, 26px);
  margin-bottom: clamp(24px, 3vw, 40px);
}
.aft-phead .aft-eyebrow { margin: 0; flex: none; }
.aft-phead h2 {
  margin: 0; flex: none; white-space: nowrap;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
}
.aft-phead__text {
  margin: 0; flex: 1 1 320px; min-width: 0;
  /* Deliberately not nowrap: forcing one line either truncated the copy or
     pushed the page wider than the viewport at 1200-1280px. */
  font-size: clamp(.8125rem, .95vw, .9375rem);
  color: var(--aft-500); line-height: 1.55;
}
/* Separator between the title and the supporting copy */
.aft-phead h2::after {
  content: ""; display: inline-block; vertical-align: middle;
  width: 1px; height: 1em; margin-left: clamp(14px, 1.6vw, 26px);
  background: var(--aft-border);
}
@media (max-width: 900px) {
  .aft-phead { align-items: flex-start; }
  .aft-phead h2 { white-space: normal; }
  .aft-phead h2::after { display: none; }
  .aft-phead__text { flex-basis: 100%; }
}


/* ===================== MOBILE REFINEMENTS (this round) ================== */

/* 1. Announcement bar: one line, scrolling right-to-left -----------------*/
@media (max-width: 860px) {
  .aft-topbar__in { justify-content: flex-start; padding-right: 44px; }
  .aft-topbar__msg[aria-hidden="true"] { display: inline-flex; }
  .aft-topbar__track {
    width: max-content;
    animation: aft-ticker 22s linear infinite;
  }
  .aft-topbar__msg { padding-right: 48px; }
  .aft-topbar:hover .aft-topbar__track,
  .aft-topbar__track:focus-within { animation-play-state: paused; }
}
@keyframes aft-ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .aft-topbar__track { animation: none !important; }
  .aft-topbar__msg[aria-hidden="true"] { display: none !important; }
}
@media (prefers-reduced-motion: reduce) and (max-width: 860px) {
  /* No motion: let the user scroll the strip instead. */
  .aft-topbar__in { overflow-x: auto; }
}

/* 2. Mobile hero: image sits between the headline and the description ----*/
@media (max-width: 1024px) {
  /* Let the copy's children become grid items so the media can slot between. */
  .aft-hero__slide--brand .aft-hero__copy { display: contents; }
  .aft-hero__slide--brand .aft-hero__grid { gap: 18px; }
  .aft-hero__slide--brand .aft-eyebrow     { order: 1; margin-bottom: 0; }
  .aft-hero__slide--brand .aft-hero__title { order: 2; margin-bottom: 0; }
  .aft-hero__slide--brand .aft-hero__media { order: 3; margin-block: 2px; }
  .aft-hero__slide--brand .aft-hero__lede  { order: 4; margin-bottom: 0; }
  .aft-hero__slide--brand .aft-hero__cta   { order: 5; margin-bottom: 0; }
  .aft-hero__slide--brand .aft-hero__trust { order: 6; }

  /* display:contents promotes these to grid items, and grid items default to
     min-width:auto — the widest one (the no-wrap trust list) was forcing the
     1fr column to 473px inside a 354px grid, overflowing every sibling. */
  .aft-hero__slide--brand .aft-eyebrow,
  .aft-hero__slide--brand .aft-hero__title,
  .aft-hero__slide--brand .aft-hero__lede,
  .aft-hero__slide--brand .aft-hero__cta,
  .aft-hero__slide--brand .aft-hero__trust,
  .aft-hero__slide--brand .aft-hero__media { min-width: 0; max-width: 100%; }
}

/* 3. Programme cards stack vertically on mobile --------------------------*/
@media (max-width: 860px) {
  .aft-progs {
    display: grid; grid-auto-flow: row; grid-template-columns: 1fr;
    grid-auto-columns: auto; gap: 14px; overflow: visible;
  }
  .aft-progs > * { scroll-snap-align: none; }
}

/* 4. Footer: mobile friendly --------------------------------------------*/
@media (max-width: 860px) {
  .aft-footer__grid { grid-template-columns: 1fr 1fr; gap: 26px 20px; padding-block: 36px 28px; }
  .aft-footer h4 { margin-bottom: 12px; }
  .aft-footer ul { gap: 12px; }
  .aft-footer a { display: inline-block; padding-block: 2px; }
  .aft-footer__about { max-width: none; }
}
@media (max-width: 560px) {
  /* Two columns for the link lists keeps the footer roughly half as tall. */
  .aft-footer__grid { grid-template-columns: 1fr 1fr; gap: 22px 18px; }
  .aft-footer__grid > div:first-child { grid-column: 1 / -1; }
  .aft-footer__bar { flex-direction: column; align-items: flex-start; gap: 12px; text-align: left; }
  .aft-footer__marks { order: -1; }
}
@media (max-width: 380px) {
  .aft-footer__grid { grid-template-columns: 1fr; }
}

/* 5. Build credit --------------------------------------------------------*/
.aft-footer__credit { display: inline-flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.aft-footer__heart { color: #FF4D6D; font-style: normal; }
.aft-footer__credit a { color: var(--aft-600); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.aft-footer__credit a:hover { color: var(--aft-primary); }


/* ---- mobile hero/topbar polish ---------------------------------------- */
@media (max-width: 860px) {
  /* Fade the ticker out behind the dismiss button instead of running under it. */
  .aft-topbar::after {
    content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 56px;
    background: linear-gradient(90deg, transparent, var(--aft-navy-800) 55%);
    pointer-events: none; z-index: 1;
  }
  .aft-topbar__close { background: transparent; }

  /* Eyebrow: tighter tracking so it breaks cleanly rather than mid-phrase. */
  .aft-eyebrow { font-size: .6875rem; letter-spacing: .08em; }

  /* Keep the hero image from pushing the description out of reach. */
  .aft-hero__slide--brand .aft-hero__imgwrap { aspect-ratio: 16 / 11; }
  .aft-hero__slide--brand .aft-hero__imgwrap img { object-position: center 22%; }

  /* Decorative dashboard cards are noise on a phone and cost ~400px of
     scroll before the description and CTA. */
  .aft-hero__slide--brand .aft-float { display: none; }
  .aft-hero__slide--brand .aft-chip-float { display: none; }
}


/* ==========================================================================
   BLOG — single post: editorial layout, TOC sidebar, readable prose
   ========================================================================== */
.aft-single__head { padding: clamp(28px, 4vw, 52px) 0 clamp(20px, 2.6vw, 30px); }
.aft-crumbs {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px;
  font-size: .8125rem; color: var(--aft-400);
}
.aft-crumbs a { color: var(--aft-500); }
.aft-crumbs a:hover { color: var(--aft-primary); }

.aft-single__title {
  margin: 0 0 14px; max-width: 24ch;
  font-size: clamp(1.75rem, 3.6vw, 3rem); line-height: 1.1; letter-spacing: -.035em;
}
.aft-single__standfirst {
  margin: 0 0 20px; max-width: 62ch;
  font-size: clamp(1rem, 1.3vw, 1.1875rem); color: var(--aft-600); line-height: 1.6;
}
.aft-single__meta {
  display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; margin: 0; padding: 0;
  font-size: .8125rem; color: var(--aft-400);
}
.aft-single__meta li { display: inline-flex; align-items: center; gap: 7px; }
.aft-single__meta svg { width: 15px; height: 15px; color: var(--aft-primary); }

.aft-single__layout {
  display: grid; grid-template-columns: 290px minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  padding-bottom: clamp(40px, 5vw, 72px);
  align-items: start;
}
.aft-single__main { min-width: 0; }

.aft-single__hero {
  margin: 0 0 clamp(22px, 3vw, 34px); border-radius: var(--aft-r-lg); overflow: hidden;
  border: 1px solid var(--aft-border);
}
.aft-single__hero img { width: 100%; height: auto; display: block; }

/* ---- sidebar ---------------------------------------------------------- */
.aft-aside { min-width: 0; }
.aft-aside__inner { position: sticky; top: calc(var(--aft-header-h) + 16px); display: grid; gap: 18px; }
.aft-aside__title {
  margin: 0 0 12px; font-size: .75rem; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase; color: var(--aft-400);
}

.aft-toc, .aft-rel, .aft-aside__cta {
  padding: 18px; border-radius: var(--aft-r);
  background: var(--aft-grad-card); border: 1px solid var(--aft-border);
}
.aft-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; counter-reset: toc; }
.aft-toc li { position: relative; }
.aft-toc a {
  display: block; padding: 7px 10px 7px 14px; border-radius: var(--aft-r-sm);
  font-size: .8125rem; line-height: 1.45; color: var(--aft-600);
  border-left: 2px solid transparent;
  transition: color var(--aft-dur) var(--aft-ease), background var(--aft-dur) var(--aft-ease),
              border-color var(--aft-dur) var(--aft-ease);
}
.aft-toc a:hover { color: var(--aft-ink); background: rgba(255,255,255,.04); }
.aft-toc a.is-current {
  color: var(--aft-primary); border-left-color: var(--aft-primary);
  background: rgba(0,255,136,.08); font-weight: 600;
}
.aft-toc__l3 a { padding-left: 26px; font-size: .78125rem; color: var(--aft-500); }

.aft-rel ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.aft-rel li[hidden] { display: none; }
.aft-rel a { display: flex; gap: 11px; align-items: flex-start; }
.aft-rel__thumb { flex: none; width: 54px; height: 54px; border-radius: var(--aft-r-sm); overflow: hidden; background: var(--aft-surface-2); }
.aft-rel__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.aft-rel__t { display: block; font-size: .8125rem; font-weight: 600; color: var(--aft-700); line-height: 1.4; }
.aft-rel a:hover .aft-rel__t { color: var(--aft-primary); }
.aft-rel__m { display: block; font-size: .6875rem; color: var(--aft-400); margin-top: 4px; }

.aft-aside__cta { text-align: center; }
.aft-aside__cta p { margin: 0 0 12px; font-size: .8125rem; color: var(--aft-600); }

/* ---- prose ------------------------------------------------------------ */
.aft-prose {
  font-size: clamp(1rem, 1.12vw, 1.0625rem);
  line-height: 1.75; color: var(--aft-600);
  max-width: 72ch;
}
.aft-prose > * + * { margin-top: 1.1em; }
.aft-prose h2 {
  margin-top: 2em; margin-bottom: .6em; scroll-margin-top: calc(var(--aft-header-h) + 20px);
  font-size: clamp(1.25rem, 2vw, 1.625rem); line-height: 1.25; color: var(--aft-ink);
}
.aft-prose h2::after {
  content: ""; display: block; width: 46px; height: 3px; margin-top: 12px;
  border-radius: 3px; background: var(--aft-primary);
}
.aft-prose h3 {
  margin-top: 1.6em; margin-bottom: .5em; scroll-margin-top: calc(var(--aft-header-h) + 20px);
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem); color: var(--aft-ink);
}
.aft-prose h4 {
  margin: 1.8em 0 .5em; font-size: 1.0625rem; font-weight: 800;
  color: var(--aft-800); letter-spacing: -.01em;
}
.aft-prose p { margin: 0; }
.aft-prose strong { color: var(--aft-800); font-weight: 700; }
.aft-prose em { color: var(--aft-500); }
.aft-prose a { color: var(--aft-primary); text-decoration: underline; text-underline-offset: 3px; }
.aft-prose a:hover { color: var(--aft-mint); }

.aft-prose ul, .aft-prose ol { margin: 0; padding-left: 0; list-style: none; display: grid; gap: 10px; }
.aft-prose li { position: relative; padding-left: 28px; }
.aft-prose ul > li::before {
  content: ""; position: absolute; left: 6px; top: .62em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--aft-primary);
}
.aft-prose ol { counter-reset: aftol; }
.aft-prose ol > li { counter-increment: aftol; }
.aft-prose ol > li::before {
  content: counter(aftol); position: absolute; left: 0; top: .1em;
  width: 20px; height: 20px; border-radius: 50%;
  background: rgba(0,255,136,.12); border: 1px solid rgba(0,255,136,.3);
  color: var(--aft-primary); font-size: .6875rem; font-weight: 800;
  display: grid; place-items: center;
}
.aft-prose blockquote {
  margin: 1.4em 0; padding: 16px 20px; border-left: 3px solid var(--aft-primary);
  background: rgba(255,255,255,.03); border-radius: 0 var(--aft-r) var(--aft-r) 0;
  color: var(--aft-700); font-style: italic;
}
.aft-prose code {
  background: var(--aft-surface-2); padding: 2px 6px; border-radius: 5px;
  font-size: .9em; color: var(--aft-viz);
}
.aft-prose img { border-radius: var(--aft-r); }
.aft-prose hr { border: 0; border-top: 1px solid var(--aft-border); margin: 2em 0; }

/* ---- tables ----------------------------------------------------------- */
.aft-table-wrap {
  margin: 1.6em 0; max-width: none;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  border: 1px solid var(--aft-border); border-radius: var(--aft-r);
  background: var(--aft-surface);
}
.aft-prose table {
  width: 100%; border-collapse: collapse; font-size: .9375rem; min-width: 480px;
}
.aft-prose thead th {
  position: sticky; top: 0;
  background: var(--aft-secondary); color: var(--aft-ink);
  font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  text-align: left; padding: 13px 16px; white-space: nowrap;
  border-bottom: 1px solid var(--aft-border);
}
.aft-prose tbody th, .aft-prose tbody td {
  padding: 13px 16px; border-bottom: 1px solid rgba(255,255,255,.07);
  vertical-align: top;
}
.aft-prose tbody th {
  text-align: left; font-weight: 600; color: var(--aft-ink);
}
.aft-prose tbody td { color: var(--aft-600); }
.aft-prose tbody tr:last-child th, .aft-prose tbody tr:last-child td { border-bottom: 0; }
.aft-prose tbody tr:nth-child(even) { background: rgba(255,255,255,.022); }
.aft-prose tbody tr:hover { background: rgba(0,255,136,.05); }

/* ---- tags + pager ------------------------------------------------------ */
.aft-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.aft-tags a {
  padding: 6px 13px; border-radius: var(--aft-r-pill); font-size: .75rem; font-weight: 600;
  background: var(--aft-surface-2); border: 1px solid var(--aft-border); color: var(--aft-600);
}
.aft-tags a:hover { border-color: var(--aft-primary); color: var(--aft-primary); }

.aft-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 34px; }
.aft-pager__a {
  display: grid; gap: 6px; padding: 16px 18px; border-radius: var(--aft-r);
  background: var(--aft-grad-card); border: 1px solid var(--aft-border);
  transition: border-color var(--aft-dur) var(--aft-ease), transform var(--aft-dur) var(--aft-ease);
}
.aft-pager__a:hover { border-color: var(--aft-primary); transform: translateY(-2px); }
.aft-pager__a span {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .6875rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--aft-primary);
}
.aft-pager__a b { font-size: .875rem; color: var(--aft-ink); font-weight: 600; line-height: 1.4; }
.aft-pager__a--next { text-align: right; }
.aft-pager__a--next span { justify-content: flex-end; }

@media (max-width: 1024px) {
  /* Mobile reading order: article first, then TOC and sidebar extras. */
  .aft-single__layout { display: flex; flex-direction: column; }
  .aft-single__main { order: 1; width: 100%; }
  .aft-aside { order: 2; width: 100%; }
  .aft-aside__inner { position: static; }
  .aft-prose { max-width: none; }
}
@media (max-width: 560px) {
  .aft-pager { grid-template-columns: 1fr; }
  .aft-pager__a--next { text-align: left; }
  .aft-pager__a--next span { justify-content: flex-start; }
  .aft-prose table { font-size: .875rem; min-width: 420px; }
}

/* -------------------------------------------------- 18. PAGE SYSTEM ----- */
.aft-page-hero {
  position: relative; overflow: hidden; padding-block: clamp(72px, 9vw, 128px) clamp(56px, 7vw, 96px);
  background:
    radial-gradient(circle at 82% 14%, rgba(0,229,255,.12), transparent 28rem),
    radial-gradient(circle at 16% 12%, rgba(124,58,237,.16), transparent 25rem),
    var(--aft-grad-page);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.aft-page-hero::after {
  content: ""; position: absolute; inset: auto -8% -50% 42%; height: 360px;
  background: radial-gradient(ellipse, rgba(0,255,136,.08), transparent 68%); pointer-events: none;
}
.aft-page-hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(360px, .98fr); align-items: center; gap: clamp(36px, 7vw, 110px); }
.aft-page-hero__copy { max-width: 720px; }
.aft-page-hero__copy h1 { max-width: 720px; margin-bottom: 22px; font-size: clamp(2.25rem, 5vw, 3.75rem); }
.aft-page-hero__lede { max-width: 650px; margin: 0; color: var(--aft-600); font-size: 1.125rem; line-height: 1.5; }
.aft-page-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.aft-page-hero__proof { display: flex; flex-wrap: wrap; gap: 0; margin-top: 44px; }
.aft-page-hero__proof > div { display: grid; gap: 3px; min-width: 135px; padding-right: 26px; margin-right: 26px; border-right: 1px solid var(--aft-border); }
.aft-page-hero__proof > div:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.aft-page-hero__proof strong { color: var(--aft-ink); font-size: 1.35rem; }
.aft-page-hero__proof span { color: var(--aft-400); font-size: .75rem; line-height: 1.35; }
.aft-page-hero__media { position: relative; min-height: 520px; display: grid; place-items: end center; }
.aft-page-hero__image-wrap { position: relative; width: min(100%, 550px); min-height: 500px; display: grid; place-items: end center; border: 1px solid rgba(0,229,255,.28); border-radius: 28px; background: linear-gradient(145deg, rgba(28,11,60,.96), rgba(9,32,50,.9)); box-shadow: 0 28px 70px rgba(0,0,0,.34), 0 0 80px rgba(0,229,255,.08); overflow: hidden; }
.aft-page-hero__image-wrap::before { content: ""; position: absolute; width: 330px; height: 330px; top: 35px; right: 35px; border-radius: 50%; background: radial-gradient(circle, rgba(0,229,255,.24), rgba(0,229,255,0) 68%); }
.aft-page-hero__image-wrap::after { content: ""; position: absolute; inset: 22px; border: 1px solid rgba(255,255,255,.08); border-radius: 20px; pointer-events: none; }
.aft-page-hero__image-wrap img { position: relative; z-index: 1; width: 100%; height: 100%; max-height: 560px; object-fit: contain; object-position: center bottom; }
.aft-page-hero__floating-card { position: absolute; z-index: 3; left: -28px; bottom: 40px; display: flex; align-items: center; gap: 11px; max-width: 260px; padding: 14px 17px; border: 1px solid rgba(255,255,255,.14); border-radius: 14px; background: rgba(20,8,52,.92); box-shadow: 0 18px 40px rgba(0,0,0,.3); backdrop-filter: blur(12px); }
.aft-page-hero__floating-icon { display: grid; place-items: center; flex: none; width: 38px; height: 38px; color: var(--aft-primary); border-radius: 11px; background: rgba(0,255,136,.12); }
.aft-page-hero__floating-card span:last-child { display: grid; gap: 3px; }
.aft-page-hero__floating-card b { color: var(--aft-ink); font-size: .78rem; line-height: 1.25; }
.aft-page-hero__floating-card small { color: var(--aft-400); font-size: .68rem; line-height: 1.25; }
.aft-page-hero--generic .aft-page-hero__copy { max-width: 800px; margin-inline: auto; text-align: center; }
.aft-page-hero--generic .aft-page-hero__copy .aft-eyebrow { justify-content: center; }
.aft-page-hero--generic .aft-page-hero__lede { margin-inline: auto; }
.aft-page-content-section { padding-top: clamp(36px, 5vw, 72px); }
.aft-page-content { max-width: 960px; margin-inline: auto; padding: clamp(24px, 5vw, 64px); border: 1px solid var(--aft-border); border-radius: var(--aft-r-lg); background: var(--aft-grad-card2); box-shadow: var(--aft-sh); }
.aft-page-content .aft-prose { max-width: 780px; margin-inline: auto; }
.aft-page-content .aft-prose > img, .aft-page-content .aft-prose figure, .aft-page-content .aft-prose .wp-block-image { margin-inline: auto; }
.aft-page-content .aft-prose img { margin-block: 18px; }

/* About page */
.aft-trust-strip { border-bottom: 1px solid var(--aft-border); background: rgba(255,255,255,.018); }
.aft-trust-strip__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; color: var(--aft-500); font-size: .82rem; }
.aft-trust-strip__marks { display: flex; align-items: center; gap: 14px; color: var(--aft-ink); letter-spacing: .12em; font-size: .78rem; }
.aft-trust-strip__marks i { width: 4px; height: 4px; border-radius: 50%; background: var(--aft-primary); }
.aft-about-story__grid, .aft-about-pathways__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .92fr); align-items: center; gap: clamp(44px, 8vw, 112px); }
.aft-about-story__media, .aft-about-pathways__media { position: relative; }
.aft-about-story__media > img, .aft-about-pathways__media > img { width: 100%; aspect-ratio: 1.12; object-fit: cover; border: 1px solid var(--aft-border); border-radius: 24px; box-shadow: var(--aft-sh-lg); }
.aft-about-story__badge { position: absolute; right: -24px; bottom: 28px; display: grid; gap: 2px; min-width: 150px; padding: 17px 20px; border: 1px solid rgba(0,255,136,.26); border-radius: 15px; background: rgba(28,11,60,.94); box-shadow: var(--aft-sh); }
.aft-about-story__badge strong { color: var(--aft-primary); font-size: 1.65rem; line-height: 1; }
.aft-about-story__badge span { color: var(--aft-700); font-size: .75rem; line-height: 1.35; }
.aft-about-story__copy h2, .aft-about-pathways__copy h2 { max-width: 560px; font-size: clamp(1.5rem, 2.6vw, 1.875rem); }
.aft-about-story__copy > p:not(.aft-eyebrow), .aft-about-pathways__copy > p:not(.aft-eyebrow) { max-width: 620px; color: var(--aft-500); font-size: 1.02rem; line-height: 1.75; }
.aft-about-story__points { display: grid; gap: 14px; margin-top: 26px; }
.aft-about-story__points > div { display: grid; grid-template-columns: 30px 1fr; column-gap: 10px; align-items: start; }
.aft-about-story__points span { grid-row: span 2; color: var(--aft-primary); }
.aft-about-story__points b { color: var(--aft-ink); font-size: .9rem; }
.aft-about-story__points small { color: var(--aft-400); line-height: 1.45; }
.aft-about-purpose__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 1040px; margin-inline: auto; }
.aft-purpose-card { position: relative; min-height: 280px; padding: 32px; border: 1px solid var(--aft-border); border-radius: var(--aft-r-lg); overflow: hidden; background: var(--aft-grad-card); }
.aft-purpose-card::after { content: ""; position: absolute; width: 190px; height: 190px; right: -80px; bottom: -90px; border-radius: 50%; background: rgba(0,229,255,.12); }
.aft-purpose-card--vision { background: var(--aft-grad-mint); }
.aft-purpose-card__icon { display: grid; place-items: center; width: 50px; height: 50px; margin-bottom: 28px; color: var(--aft-primary); border-radius: 14px; background: rgba(0,255,136,.12); }
.aft-purpose-card .aft-eyebrow { margin-bottom: 10px; }
.aft-purpose-card h3 { max-width: 420px; font-size: 1.45rem; }
.aft-purpose-card > p:last-child { position: relative; z-index: 1; max-width: 540px; margin: 0; color: var(--aft-600); line-height: 1.65; }
.aft-about-values__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.aft-value-card { min-height: 205px; padding: 24px; border: 1px solid var(--aft-border); border-radius: var(--aft-r); background: rgba(255,255,255,.025); transition: transform var(--aft-dur) var(--aft-ease), border-color var(--aft-dur) var(--aft-ease), background var(--aft-dur) var(--aft-ease); }
.aft-value-card:hover { transform: translateY(-4px); border-color: rgba(0,255,136,.45); background: rgba(0,255,136,.055); }
.aft-value-card__icon { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 24px; color: var(--aft-viz); border-radius: 12px; background: rgba(0,229,255,.1); }
.aft-value-card h3 { margin-bottom: 8px; font-size: 1.03rem; }
.aft-value-card p { margin: 0; color: var(--aft-500); font-size: .87rem; line-height: 1.55; }
.aft-about-pathways { background: rgba(255,255,255,.018); }
.aft-about-pathways__media > img { aspect-ratio: 1.18; }
.aft-about-pathways__caption { position: absolute; left: 22px; bottom: 22px; display: grid; grid-template-columns: 34px 1fr; column-gap: 10px; align-items: center; max-width: 290px; padding: 12px 15px; border: 1px solid rgba(255,255,255,.16); border-radius: 13px; background: rgba(12,5,36,.9); backdrop-filter: blur(10px); }
.aft-about-pathways__caption > span { grid-row: span 2; display: grid; place-items: center; color: var(--aft-primary); }
.aft-about-pathways__caption b { color: var(--aft-ink); font-size: .82rem; }
.aft-about-pathways__caption small { color: var(--aft-500); font-size: .68rem; }
.aft-about-pathways__list { display: grid; gap: 12px; margin-top: 28px; }
.aft-about-pathways__list a { display: grid; grid-template-columns: 38px 1fr 20px; gap: 13px; align-items: center; padding: 16px 17px; border: 1px solid var(--aft-border); border-radius: 13px; background: rgba(255,255,255,.03); color: var(--aft-ink); }
.aft-about-pathways__list a:hover { border-color: var(--aft-primary); background: rgba(0,255,136,.06); }
.aft-about-pathways__number { color: var(--aft-primary); font-size: .75rem; font-weight: 800; }
.aft-about-pathways__list a > span:nth-child(2) { display: grid; gap: 3px; }
.aft-about-pathways__list b { font-size: .9rem; }
.aft-about-pathways__list small { color: var(--aft-500); font-size: .75rem; line-height: 1.4; }
.aft-about-pathways__list svg { color: var(--aft-primary); }
.aft-about-cta { padding-top: 0; }
.aft-about-cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: clamp(28px, 5vw, 52px); border: 1px solid rgba(0,255,136,.25); border-radius: 24px; background: linear-gradient(118deg, #063C32, #10234F); box-shadow: var(--aft-sh-lg); }
.aft-about-cta__inner h2 { max-width: 640px; margin-bottom: 10px; font-size: clamp(1.5rem, 2.6vw, 1.875rem); }
.aft-about-cta__inner p:last-child { margin: 0; color: var(--aft-600); }
.aft-about-cta__actions { display: flex; flex-wrap: wrap; gap: 10px; flex: none; }

/* Answer Base / AI assistant */
.aft-page-hero--assistant { background: radial-gradient(circle at 75% 50%, rgba(0,229,255,.16), transparent 26rem), var(--aft-grad-page); }
.aft-assistant-hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, .75fr); align-items: center; gap: clamp(34px, 8vw, 130px); }
.aft-assistant-hero__visual { position: relative; min-height: 330px; display: grid; place-items: center; }
.aft-assistant-hero__orb { display: grid; place-items: center; width: 220px; height: 220px; border: 1px solid rgba(0,229,255,.55); border-radius: 50%; background: radial-gradient(circle at 35% 25%, rgba(0,255,136,.28), rgba(0,229,255,.1) 42%, rgba(28,11,60,.2) 70%); box-shadow: 0 0 0 22px rgba(0,229,255,.04), 0 0 80px rgba(0,229,255,.2); color: var(--aft-primary); }
.aft-assistant-hero__orb::before, .aft-assistant-hero__orb::after { content: ""; position: absolute; border: 1px solid rgba(0,229,255,.25); border-radius: 50%; transform: rotate(-25deg); }
.aft-assistant-hero__orb::before { width: 280px; height: 120px; }
.aft-assistant-hero__orb::after { width: 120px; height: 280px; }
.aft-assistant-hero__mini-card { position: absolute; display: grid; grid-template-columns: 18px 1fr; column-gap: 9px; align-items: center; padding: 12px 14px; border: 1px solid rgba(255,255,255,.15); border-radius: 13px; background: rgba(20,8,52,.9); box-shadow: var(--aft-sh); backdrop-filter: blur(10px); }
.aft-assistant-hero__mini-card b { color: var(--aft-ink); font-size: .75rem; }
.aft-assistant-hero__mini-card small { grid-column: 2; color: var(--aft-400); font-size: .67rem; }
.aft-assistant-hero__mini-card--top { top: 18px; right: 0; }
.aft-assistant-hero__mini-card--bottom { bottom: 14px; left: 0; }
.aft-assistant-hero__mini-card--bottom span { grid-row: span 2; color: var(--aft-primary); }
.aft-status-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--aft-primary); box-shadow: 0 0 0 5px rgba(0,255,136,.12); }
.aft-assistant-section { background: rgba(255,255,255,.018); }
.aft-assistant-embed { max-width: 1120px; margin-inline: auto; padding: 10px; border: 1px solid var(--aft-border); border-radius: 22px; background: #10062b; box-shadow: var(--aft-sh-xl); }
.aft-assistant-embed__bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 48px; padding: 0 14px; }
.aft-assistant-embed__brand, .aft-assistant-embed__status { display: inline-flex; align-items: center; gap: 8px; font-size: .75rem; }
.aft-assistant-embed__brand { color: var(--aft-ink); }
.aft-assistant-embed__brand > span { display: grid; place-items: center; width: 25px; height: 25px; color: var(--aft-primary); border-radius: 8px; background: rgba(0,255,136,.12); }
.aft-assistant-embed__status { color: var(--aft-400); }
.aft-assistant-embed__status i { width: 7px; height: 7px; border-radius: 50%; background: var(--aft-primary); }
.aft-assistant-embed__frame { overflow: hidden; border-radius: 15px; background: #fff; }
.aft-assistant-embed iframe { display: block; width: 100%; height: min(760px, 78vh); min-height: 650px; border: 0; background: #fff; }
.aft-assistant-guidance { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: 1120px; margin: 22px auto 0; }
.aft-assistant-guidance > div { display: grid; grid-template-columns: 34px 1fr; column-gap: 10px; align-items: start; padding: 18px; border: 1px solid var(--aft-border); border-radius: var(--aft-r); background: var(--aft-grad-card2); }
.aft-assistant-guidance > div > span { grid-row: span 2; display: grid; place-items: center; width: 34px; height: 34px; color: var(--aft-viz); border-radius: 10px; background: rgba(0,229,255,.1); }
.aft-assistant-guidance b { color: var(--aft-ink); font-size: .83rem; }
.aft-assistant-guidance small { color: var(--aft-500); font-size: .73rem; line-height: 1.45; }

@media (max-width: 900px) {
  .aft-page-hero__grid, .aft-assistant-hero__grid { grid-template-columns: 1fr; gap: 38px; }
  .aft-page-hero__copy, .aft-page-hero__copy h1 { max-width: 760px; }
  .aft-page-hero__media { min-height: 410px; max-width: 560px; margin-inline: auto; width: 100%; }
  .aft-page-hero__image-wrap { min-height: 410px; }
  .aft-about-story__grid, .aft-about-pathways__grid { grid-template-columns: 1fr; gap: 42px; }
  .aft-about-story__media, .aft-about-pathways__media { max-width: 680px; width: 100%; margin-inline: auto; }
  .aft-about-purpose__grid { grid-template-columns: 1fr; max-width: 680px; }
  .aft-about-values__grid { grid-template-columns: repeat(2, 1fr); }
  .aft-assistant-hero__visual { max-width: 500px; margin-inline: auto; width: 100%; }
  .aft-assistant-guidance { grid-template-columns: 1fr; max-width: 700px; }
  .aft-about-cta__inner { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 640px) {
  .aft-page-hero { padding-block: 58px 56px; }
  .aft-page-hero__copy h1 { font-size: clamp(2rem, 9.2vw, 2.75rem); }
  .aft-page-hero__lede { font-size: 1rem; }
  .aft-page-hero__proof { margin-top: 32px; }
  .aft-page-hero__proof > div { min-width: 0; flex: 1 1 30%; padding-right: 12px; margin-right: 12px; }
  .aft-page-hero__proof span { font-size: .67rem; }
  .aft-page-hero__media { min-height: 330px; }
  .aft-page-hero__image-wrap { min-height: 330px; border-radius: 20px; }
  .aft-page-hero__floating-card { left: 10px; bottom: 18px; max-width: 220px; padding: 11px 12px; }
  .aft-trust-strip__in { align-items: flex-start; flex-direction: column; justify-content: center; gap: 8px; padding-block: 18px; }
  .aft-trust-strip__marks { gap: 10px; }
  .aft-about-story__badge { right: 12px; bottom: 14px; min-width: 125px; padding: 12px 14px; }
  .aft-about-purpose__grid, .aft-about-values__grid { grid-template-columns: 1fr; }
  .aft-purpose-card { min-height: 0; padding: 25px; }
  .aft-about-cta__inner { padding: 26px 22px; }
  .aft-about-cta__actions, .aft-page-hero__actions { width: 100%; }
  .aft-about-cta__actions .aft-btn, .aft-page-hero__actions .aft-btn { flex: 1 1 180px; }
  .aft-assistant-hero__visual { min-height: 280px; }
  .aft-assistant-hero__orb { width: 170px; height: 170px; }
  .aft-assistant-hero__orb::before { width: 225px; height: 100px; }
  .aft-assistant-hero__orb::after { width: 100px; height: 225px; }
  .aft-assistant-hero__mini-card--top { right: 0; top: 5px; }
  .aft-assistant-hero__mini-card--bottom { left: 0; bottom: 4px; }
  .aft-assistant-embed { padding: 6px; border-radius: 16px; }
  .aft-assistant-embed__bar { align-items: flex-start; flex-direction: column; gap: 5px; padding: 9px 10px; }
  .aft-assistant-embed iframe { min-height: 720px; height: 760px; }
  .aft-page-content { padding: 22px 18px; border-radius: var(--aft-r); }
}

/* -------------------------------------------------- 19. TYPE CONTRACT ---
   Keep imported WordPress, Elementor, Tutor and WooCommerce content inside
   the same typography system as the AFT homepage. */
body, button, input, select, textarea {
  font-family: var(--aft-font) !important;
}

#aft-main { font-size: 1rem; }

#aft-main .aft-prose,
#aft-main .aft-page-content {
  font-family: var(--aft-font) !important;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--aft-600);
}
#aft-main .aft-prose *,
#aft-main .aft-page-content * {
  font-family: var(--aft-font) !important;
}
#aft-main .aft-prose :where(p, li, td, th, blockquote, figcaption),
#aft-main .aft-page-content :where(p, li, td, th, blockquote, figcaption) {
  font-size: 1rem !important;
  line-height: 1.5 !important;
  font-weight: 400 !important;
}
#aft-main .aft-prose :where(h1, h2, h3, h4, h5, h6),
#aft-main .aft-page-content :where(h1, h2, h3, h4, h5, h6) {
  font-family: var(--aft-font) !important;
  color: var(--aft-ink) !important;
  line-height: 1.25 !important;
  letter-spacing: -.02em !important;
}
#aft-main .aft-prose h1,
#aft-main .aft-page-content h1 { font-size: clamp(2.25rem, 5vw, 3.75rem) !important; font-weight: 900 !important; }
#aft-main .aft-prose h2,
#aft-main .aft-page-content h2 { font-size: clamp(1.5rem, 2.6vw, 1.875rem) !important; font-weight: 700 !important; }
#aft-main .aft-prose h3,
#aft-main .aft-page-content h3 { font-size: clamp(1.15rem, 1.8vw, 1.5rem) !important; font-weight: 700 !important; }
#aft-main .aft-prose h4,
#aft-main .aft-page-content h4 { font-size: 1.0625rem !important; font-weight: 700 !important; }

/* Bold is reserved for short labels and meaningful emphasis, not whole
   paragraphs pasted from an old page builder. */
#aft-main .aft-prose strong,
#aft-main .aft-prose b,
#aft-main .aft-page-content strong,
#aft-main .aft-page-content b { font-weight: 600 !important; color: inherit !important; }
#aft-main .aft-prose p span[style*="font-weight"],
#aft-main .aft-prose li span[style*="font-weight"],
#aft-main .aft-page-content p span[style*="font-weight"],
#aft-main .aft-page-content li span[style*="font-weight"] { font-weight: 400 !important; }

/* Tutor LMS course pages */
#aft-main .tutor-wrap {
  max-width: var(--aft-container);
  margin-inline: auto;
  padding: clamp(48px, 6vw, 88px) var(--aft-gutter);
  color: var(--aft-body);
  font-size: 1rem;
  line-height: 1.5;
}
#aft-main .tutor-wrap * { font-family: var(--aft-font) !important; }
#aft-main .tutor-wrap .tutor-fs-3 { font-size: clamp(2rem, 4vw, 3rem) !important; font-weight: 800 !important; color: var(--aft-ink) !important; }
#aft-main .tutor-wrap .tutor-fs-4 { font-size: 1.25rem !important; font-weight: 700 !important; color: var(--aft-ink) !important; }
#aft-main .tutor-wrap .tutor-course-list { gap: 20px; }
#aft-main .tutor-wrap .tutor-card {
  overflow: hidden;
  border: 1px solid var(--aft-border) !important;
  border-radius: var(--aft-r-lg) !important;
  background: var(--aft-grad-card) !important;
  box-shadow: var(--aft-sh-sm) !important;
}
#aft-main .tutor-wrap .tutor-card:hover { border-color: rgba(0,255,136,.55) !important; box-shadow: var(--aft-sh) !important; }
#aft-main .tutor-wrap .tutor-card-image-top { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
#aft-main .tutor-wrap .tutor-card-body,
#aft-main .tutor-wrap .tutor-card-footer { padding: 18px !important; background: transparent !important; border-color: var(--aft-border) !important; }
#aft-main .tutor-wrap .tutor-course-name { color: var(--aft-ink) !important; font-size: 1rem !important; font-weight: 700 !important; line-height: 1.35 !important; }
#aft-main .tutor-wrap .tutor-meta,
#aft-main .tutor-wrap .tutor-meta-value,
#aft-main .tutor-wrap .tutor-fs-7 { color: var(--aft-500) !important; font-size: .78rem !important; }
#aft-main .tutor-wrap .tutor-course-price,
#aft-main .tutor-wrap .tutor-course-price * { color: var(--aft-ink) !important; font-size: .95rem !important; font-weight: 700 !important; }
#aft-main .tutor-wrap .tutor-btn { border-radius: .7rem !important; font-family: var(--aft-font) !important; font-weight: 700 !important; }
#aft-main .tutor-wrap .tutor-btn-primary,
#aft-main .tutor-wrap .tutor-btn-outline-primary:hover { color: var(--aft-on-primary) !important; background: #fff !important; border-color: #fff !important; }
#aft-main .tutor-wrap .tutor-btn-outline-primary { color: var(--aft-primary) !important; border-color: var(--aft-border) !important; background: transparent !important; }
#aft-main .tutor-wrap .tutor-form-control { min-height: 44px; color: var(--aft-ink) !important; background: var(--aft-surface) !important; border: 1px solid var(--aft-border) !important; border-radius: .7rem !important; }

/* WooCommerce checkout, account and cart surfaces */
body.woocommerce #aft-main,
body.woocommerce-page #aft-main { color: var(--aft-body); }
body.woocommerce #aft-main .woocommerce,
body.woocommerce-page #aft-main .woocommerce { max-width: var(--aft-container); margin-inline: auto; padding: clamp(48px, 6vw, 88px) var(--aft-gutter); font-family: var(--aft-font) !important; }
body.woocommerce #aft-main .woocommerce *,
body.woocommerce-page #aft-main .woocommerce * { font-family: var(--aft-font) !important; }
body.woocommerce #aft-main .woocommerce h1,
body.woocommerce #aft-main .woocommerce h2,
body.woocommerce #aft-main .woocommerce h3 { color: var(--aft-ink) !important; font-weight: 700 !important; }
body.woocommerce #aft-main .woocommerce a.button,
body.woocommerce #aft-main .woocommerce button.button,
body.woocommerce #aft-main .woocommerce input.button { border: 0 !important; border-radius: .7rem !important; background: #fff !important; color: var(--aft-on-primary) !important; font-weight: 700 !important; padding: 12px 18px !important; }
body.woocommerce #aft-main .woocommerce .input-text,
body.woocommerce #aft-main .woocommerce select { color: var(--aft-ink) !important; background: var(--aft-surface) !important; border: 1px solid var(--aft-border) !important; border-radius: .7rem !important; }
body.woocommerce #aft-main .woocommerce table.shop_table { border-color: var(--aft-border) !important; border-radius: var(--aft-r) !important; background: var(--aft-surface) !important; color: var(--aft-600) !important; }
body.woocommerce #aft-main .woocommerce .woocommerce-info,
body.woocommerce #aft-main .woocommerce .woocommerce-message { border-top-color: var(--aft-primary) !important; background: rgba(0,255,136,.08) !important; color: var(--aft-700) !important; }

@media (max-width: 640px) {
  #aft-main .tutor-wrap,
  body.woocommerce #aft-main .woocommerce,
  body.woocommerce-page #aft-main .woocommerce { padding-inline: 18px; }
}

/* -------------------------------------------------- 20. TEAM PAGE ------- */
.aft-team-hero {
  position: relative; overflow: hidden; padding-block: clamp(70px, 9vw, 120px) clamp(56px, 7vw, 92px);
  background: radial-gradient(circle at 78% 22%, rgba(0,229,255,.14), transparent 28rem), radial-gradient(circle at 15% 15%, rgba(124,58,237,.16), transparent 25rem), var(--aft-grad-page);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.aft-team-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, .8fr); align-items: center; gap: clamp(38px, 8vw, 120px); }
.aft-team-hero__copy { max-width: 720px; }
.aft-team-hero__copy h1 { max-width: 680px; margin-bottom: 22px; font-size: clamp(2.25rem, 5vw, 3.75rem); }
.aft-team-hero__stats { display: flex; flex-wrap: wrap; gap: 0; margin-top: 42px; }
.aft-team-hero__stats > div { display: grid; gap: 3px; min-width: 140px; padding-right: 24px; margin-right: 24px; border-right: 1px solid var(--aft-border); }
.aft-team-hero__stats > div:last-child { padding-right: 0; margin-right: 0; border-right: 0; }
.aft-team-hero__stats strong { color: var(--aft-ink); font-size: 1.35rem; }
.aft-team-hero__stats span { color: var(--aft-400); font-size: .75rem; line-height: 1.35; }
.aft-team-hero__visual { position: relative; min-height: 420px; display: grid; place-items: center; }
.aft-team-hero__portrait { width: min(100%, 500px); overflow: hidden; border: 1px solid rgba(0,229,255,.36); border-radius: 26px; background: linear-gradient(145deg, #1B0D49, #102B36); box-shadow: var(--aft-sh-xl); }
.aft-team-hero__portrait img { width: 100%; aspect-ratio: 1.45; object-fit: cover; object-position: center top; }
.aft-team-hero__visual-card { position: absolute; left: -20px; bottom: 18px; display: grid; grid-template-columns: 38px 1fr; column-gap: 10px; align-items: center; max-width: 245px; padding: 13px 15px; border: 1px solid rgba(255,255,255,.16); border-radius: 14px; background: rgba(20,8,52,.94); box-shadow: var(--aft-sh); backdrop-filter: blur(10px); }
.aft-team-hero__visual-card > span { grid-row: span 2; display: grid; place-items: center; width: 38px; height: 38px; color: var(--aft-primary); border-radius: 11px; background: rgba(0,255,136,.12); }
.aft-team-hero__visual-card b { color: var(--aft-ink); font-size: .8rem; }
.aft-team-hero__visual-card small { color: var(--aft-400); font-size: .68rem; line-height: 1.3; }
.aft-team-intro { padding-block: 24px; border-bottom: 1px solid var(--aft-border); background: rgba(255,255,255,.018); }
.aft-team-intro__in { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.aft-team-intro__in > span { display: grid; place-items: center; flex: none; width: 48px; height: 48px; color: var(--aft-primary); border-radius: 13px; background: rgba(0,255,136,.1); }
.aft-team-intro__in p { max-width: 610px; margin: 0 auto 0 0; color: var(--aft-500); font-size: .95rem; }
.aft-team-founder__grid { display: grid; grid-template-columns: minmax(300px, .72fr) minmax(0, 1fr); align-items: center; gap: clamp(42px, 8vw, 110px); }
.aft-team-founder__media { position: relative; max-width: 500px; }
.aft-team-founder__media > img { width: 100%; aspect-ratio: 1.2; object-fit: cover; object-position: center top; border: 1px solid var(--aft-border); border-radius: 24px; box-shadow: var(--aft-sh-lg); }
.aft-team-founder__badge { position: absolute; right: -18px; bottom: 22px; display: grid; gap: 3px; padding: 13px 16px; border: 1px solid rgba(0,255,136,.28); border-radius: 13px; background: rgba(20,8,52,.95); box-shadow: var(--aft-sh); }
.aft-team-founder__badge b { color: var(--aft-ink); font-size: .8rem; }
.aft-team-founder__badge small { color: var(--aft-primary); font-size: .68rem; }
.aft-team-founder__copy { max-width: 680px; }
.aft-team-founder__copy h2 { max-width: 580px; font-size: clamp(1.5rem, 2.6vw, 1.875rem); }
.aft-team-founder__copy > p:not(.aft-eyebrow) { color: var(--aft-500); font-size: 1rem; line-height: 1.5; }
.aft-team-founder__credentials { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 24px; }
.aft-team-founder__credentials span { display: inline-flex; align-items: center; gap: 7px; padding: 8px 11px; border: 1px solid var(--aft-border); border-radius: var(--aft-r-pill); color: var(--aft-600); font-size: .72rem; }
.aft-team-founder__credentials svg { color: var(--aft-primary); }
.aft-team-operations__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 1120px; margin-inline: auto; }
.aft-team-lecturers__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.aft-team-card { overflow: hidden; border: 1px solid var(--aft-border); border-radius: var(--aft-r-lg); background: var(--aft-grad-card); box-shadow: var(--aft-sh-sm); transition: transform var(--aft-dur) var(--aft-ease), border-color var(--aft-dur) var(--aft-ease), box-shadow var(--aft-dur) var(--aft-ease); }
.aft-team-card:hover { transform: translateY(-5px); border-color: rgba(0,255,136,.48); box-shadow: var(--aft-sh); }
.aft-team-card__image { overflow: hidden; background: var(--aft-surface-2); }
.aft-team-card__image img { width: 100%; aspect-ratio: 1.25; object-fit: cover; object-position: center top; transition: transform .5s var(--aft-ease-out); }
.aft-team-card--stanley .aft-team-card__image img { object-fit: contain; object-position: center; }
.aft-team-card__placeholder { display: grid; place-items: center; align-content: center; gap: 10px; aspect-ratio: 1.25; color: var(--aft-primary); background: radial-gradient(circle at 50% 30%, rgba(0,229,255,.22), transparent 42%), var(--aft-grad-card2); }
.aft-team-card__placeholder small { color: var(--aft-500); font-size: .72rem; font-weight: 600; }
.aft-team-card:hover .aft-team-card__image img { transform: scale(1.035); }
.aft-team-card__body { padding: 19px 19px 22px; }
.aft-team-card__body .aft-eyebrow { margin-bottom: 8px; font-size: .64rem; }
.aft-team-card__body h3 { margin-bottom: 5px; color: var(--aft-ink); font-size: 1.02rem; line-height: 1.25; }
.aft-team-card__cred { display: block; margin-bottom: 12px; color: var(--aft-primary); font-size: .7rem; font-weight: 700; letter-spacing: .03em; }
.aft-team-card__body > p:last-child { margin: 0; color: var(--aft-500); font-size: .82rem; line-height: 1.5; }
.aft-team-lecturers { background: rgba(255,255,255,.018); }
.aft-team-cta { padding-top: 0; }
.aft-team-cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: clamp(28px, 5vw, 52px); border: 1px solid rgba(0,255,136,.25); border-radius: 24px; background: linear-gradient(118deg, #063C32, #10234F); box-shadow: var(--aft-sh-lg); }
.aft-team-cta__inner h2 { max-width: 650px; margin-bottom: 10px; font-size: clamp(1.5rem, 2.6vw, 1.875rem); }
.aft-team-cta__inner p:last-child { margin: 0; color: var(--aft-600); }

@media (max-width: 1024px) {
  .aft-team-hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .aft-team-hero__copy { max-width: 760px; }
  .aft-team-hero__visual { max-width: 620px; width: 100%; margin-inline: auto; }
  .aft-team-lecturers__grid { grid-template-columns: repeat(3, 1fr); }
  .aft-team-founder__grid { gap: 46px; }
}
@media (max-width: 760px) {
  .aft-team-hero__copy h1 { font-size: clamp(2rem, 9.2vw, 2.75rem); }
  .aft-team-hero__stats > div { min-width: 0; flex: 1 1 30%; padding-right: 12px; margin-right: 12px; }
  .aft-team-hero__stats span { font-size: .68rem; }
  .aft-team-intro__in { align-items: flex-start; flex-wrap: wrap; }
  .aft-team-intro__in p { flex: 1 1 240px; }
  .aft-team-intro__in .aft-trust-strip__marks { flex-basis: 100%; margin-left: 60px; }
  .aft-team-founder__grid { grid-template-columns: 1fr; }
  .aft-team-founder__media { max-width: 620px; width: 100%; margin-inline: auto; }
  .aft-team-operations__grid, .aft-team-lecturers__grid { grid-template-columns: repeat(2, 1fr); }
  .aft-team-cta__inner { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 520px) {
  .aft-team-hero__visual { min-height: 300px; }
  .aft-team-hero__portrait { border-radius: 19px; }
  .aft-team-hero__visual-card { left: 10px; bottom: 10px; }
  .aft-team-founder__badge { right: 10px; bottom: 14px; }
  .aft-team-operations__grid, .aft-team-lecturers__grid { grid-template-columns: 1fr; }
  .aft-team-card__image img { aspect-ratio: 1.35; }
  .aft-team-cta__inner { padding: 26px 22px; }
}

/* -------------------------------------------------- 21. PROGRAMME + INSTITUTION PAGES ------- */
.aft-program-hero, .aft-profile-hero, .aft-services-hero, .aft-contact-hero {
  position: relative; overflow: hidden; padding-block: clamp(70px, 9vw, 124px) clamp(56px, 7vw, 92px);
  background: radial-gradient(circle at 82% 18%, rgba(0,229,255,.13), transparent 27rem), radial-gradient(circle at 14% 16%, rgba(124,58,237,.18), transparent 25rem), var(--aft-grad-page);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.aft-program-hero::after, .aft-profile-hero::after, .aft-services-hero::after, .aft-contact-hero::after { content: ""; position: absolute; right: -8%; bottom: -45%; width: 54%; height: 420px; border-radius: 50%; background: radial-gradient(ellipse, rgba(0,255,136,.08), transparent 68%); pointer-events: none; }
.aft-program-hero__grid, .aft-profile-hero__grid, .aft-services-hero__grid, .aft-contact-hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(350px, .8fr); align-items: center; gap: clamp(38px, 8vw, 115px); }
.aft-program-hero__copy, .aft-profile-hero__grid > div:first-child, .aft-services-hero__grid > div:first-child, .aft-contact-hero__grid > div:first-child { max-width: 730px; }
.aft-program-hero__copy h1, .aft-profile-hero h1, .aft-services-hero h1, .aft-contact-hero h1 { max-width: 700px; margin-bottom: 22px; font-size: clamp(2.35rem, 5vw, 3.85rem); }
.aft-program-hero__visual, .aft-profile-hero__visual, .aft-services-hero__visual, .aft-contact-hero__visual { position: relative; min-height: 420px; display: grid; place-items: center; }
.aft-program-hero__visual-card { position: relative; width: min(100%, 500px); overflow: hidden; border: 1px solid rgba(0,229,255,.3); border-radius: 26px; background: linear-gradient(145deg, rgba(29,12,62,.98), rgba(9,36,49,.94)); box-shadow: var(--aft-sh-xl); }
.aft-program-hero__visual-card > img { width: 100%; aspect-ratio: 1.08; object-fit: cover; object-position: center; opacity: .9; }
.aft-program-hero__visual-card--person > img { aspect-ratio: 1.08; object-fit: contain; object-position: center bottom; padding: 14px 28px 0; }
.aft-program-hero__visual-card--flp > img { aspect-ratio: 1.08; object-fit: cover; object-position: center; }
.aft-program-hero__visual-card::after { content: ""; position: absolute; inset: 18px; border: 1px solid rgba(255,255,255,.09); border-radius: 18px; pointer-events: none; }
.aft-program-hero__visual-badge { position: absolute; z-index: 2; left: -23px; bottom: 28px; display: grid; grid-template-columns: 38px 1fr; column-gap: 10px; align-items: center; max-width: 280px; padding: 13px 15px; border: 1px solid rgba(255,255,255,.16); border-radius: 14px; background: rgba(20,8,52,.95); box-shadow: var(--aft-sh); backdrop-filter: blur(10px); }
.aft-program-hero__visual-badge > svg { grid-row: span 2; color: var(--aft-primary); }
.aft-program-hero__visual-badge b { color: var(--aft-ink); font-size: .8rem; line-height: 1.2; }
.aft-program-hero__visual-badge small { color: var(--aft-400); font-size: .68rem; line-height: 1.3; }
.aft-program-trust { border-bottom: 1px solid var(--aft-border); background: rgba(255,255,255,.018); }
.aft-program-trust__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; color: var(--aft-500); font-size: .82rem; }
.aft-program-intro__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); gap: clamp(42px, 8vw, 120px); align-items: start; }
.aft-program-intro__grid h2 { max-width: 540px; font-size: clamp(1.65rem, 3vw, 2.25rem); }
.aft-program-intro__grid > div:last-child > p { max-width: 650px; margin: 0 0 17px; color: var(--aft-500); font-size: 1rem; line-height: 1.72; }
.aft-program-intro__note { display: flex; align-items: center; gap: 9px; color: var(--aft-700) !important; font-size: .88rem !important; }
.aft-program-intro__note svg { flex: none; color: var(--aft-primary); }
.aft-program-levels__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.aft-program-level { position: relative; display: flex; flex-direction: column; min-height: 405px; padding: 25px; border: 1px solid var(--aft-border); border-radius: var(--aft-r-lg); background: var(--aft-grad-card); box-shadow: var(--aft-sh-sm); transition: transform var(--aft-dur) var(--aft-ease), border-color var(--aft-dur) var(--aft-ease); }
.aft-program-level:hover { transform: translateY(-4px); border-color: rgba(0,255,136,.42); }
.aft-program-level__top { display: flex; align-items: center; gap: 12px; margin-bottom: 19px; }
.aft-program-level__top > span { display: grid; place-items: center; width: 38px; height: 38px; color: var(--aft-primary); border: 1px solid rgba(0,255,136,.25); border-radius: 11px; background: rgba(0,255,136,.08); font-size: .72rem; font-weight: 800; }
.aft-program-level__top b { color: var(--aft-ink); font-size: 1.05rem; }
.aft-program-level > p { margin: 0 0 19px; color: var(--aft-500); font-size: .88rem; line-height: 1.55; }
.aft-program-level ul { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.aft-program-level li { display: flex; align-items: flex-start; gap: 8px; color: var(--aft-600); font-size: .79rem; line-height: 1.4; }
.aft-program-level li svg { flex: none; margin-top: 1px; color: var(--aft-primary); }
.aft-program-level__award { display: grid; gap: 3px; margin-top: auto; padding-top: 20px; border-top: 1px solid var(--aft-border); }
.aft-program-level__award small { color: var(--aft-400); font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; }
.aft-program-level__award strong { color: var(--aft-700); font-size: .78rem; }
.aft-text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--aft-primary); font-size: .82rem; font-weight: 700; text-decoration: none; }
.aft-text-link:hover { color: var(--aft-mint); }
.aft-text-link svg { transition: transform .2s ease; }
.aft-text-link:hover svg { transform: translateX(3px); }
.aft-program-level .aft-text-link { margin-top: 17px; }
.aft-program-video { padding-top: 0; }
.aft-program-video__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: clamp(25px, 4vw, 42px); border: 1px solid var(--aft-border); border-radius: var(--aft-r-lg); background: linear-gradient(120deg, rgba(4,59,49,.78), rgba(16,35,79,.78)); }
.aft-program-video__inner h2 { max-width: 590px; margin-bottom: 10px; font-size: clamp(1.45rem, 2.5vw, 1.9rem); }
.aft-program-video__inner p:last-child { max-width: 650px; margin: 0; color: var(--aft-600); line-height: 1.55; }
.aft-program-video__inner > .aft-btn { flex: none; }
.aft-program-cta { padding-top: 0; }
.aft-program-cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: clamp(28px, 5vw, 54px); border: 1px solid rgba(0,255,136,.25); border-radius: 24px; background: linear-gradient(118deg, #063C32, #10234F); box-shadow: var(--aft-sh-lg); }
.aft-program-cta__inner h2 { max-width: 660px; margin-bottom: 10px; font-size: clamp(1.5rem, 2.6vw, 1.95rem); }
.aft-program-cta__inner p:last-child { margin: 0; color: var(--aft-600); }
.aft-journey-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.aft-journey-card { min-height: 215px; padding: 23px; border: 1px solid var(--aft-border); border-radius: var(--aft-r); background: rgba(255,255,255,.025); }
.aft-journey-card > span { color: var(--aft-primary); font-size: .72rem; font-weight: 800; letter-spacing: .1em; }
.aft-journey-card h3 { margin: 26px 0 9px; font-size: 1rem; }
.aft-journey-card p { margin: 0; color: var(--aft-500); font-size: .84rem; line-height: 1.55; }
.aft-icon-card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.aft-icon-card-grid--three { grid-template-columns: repeat(3, 1fr); }
.aft-icon-card { min-height: 208px; padding: 24px; border: 1px solid var(--aft-border); border-radius: var(--aft-r); background: rgba(255,255,255,.025); transition: transform var(--aft-dur) var(--aft-ease), border-color var(--aft-dur) var(--aft-ease), background var(--aft-dur) var(--aft-ease); }
.aft-icon-card:hover { transform: translateY(-4px); border-color: rgba(0,255,136,.42); background: rgba(0,255,136,.045); }
.aft-icon-card > span { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 25px; color: var(--aft-primary); border-radius: 12px; background: rgba(0,255,136,.1); }
.aft-icon-card h3 { margin-bottom: 8px; font-size: 1rem; }
.aft-icon-card p { margin: 0; color: var(--aft-500); font-size: .84rem; line-height: 1.55; }
.aft-platform-section__grid { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); gap: clamp(42px, 8vw, 108px); align-items: start; }
.aft-platform-section__copy { max-width: 540px; }
.aft-platform-section__copy h2 { margin-bottom: 14px; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.aft-platform-section__copy > p:not(.aft-eyebrow) { margin-bottom: 22px; color: var(--aft-500); line-height: 1.7; }
.aft-platform-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 13px; }
.aft-platform-list article { display: grid; grid-template-columns: 34px 1fr; gap: 11px; padding: 16px; border: 1px solid var(--aft-border); border-radius: 13px; background: rgba(255,255,255,.025); }
.aft-platform-list article > span { display: grid; place-items: center; width: 34px; height: 34px; color: var(--aft-primary); border-radius: 10px; background: rgba(0,255,136,.1); }
.aft-platform-list h3 { margin: 0 0 4px; font-size: .86rem; }
.aft-platform-list p { margin: 0; color: var(--aft-500); font-size: .75rem; line-height: 1.45; }
.aft-flp-logos { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 18px; }
.aft-flp-logos img { width: auto; max-width: 72px; height: 28px; object-fit: contain; filter: grayscale(1) brightness(1.7); opacity: .72; }
.aft-flp-support__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); align-items: center; gap: clamp(42px, 8vw, 110px); }
.aft-flp-support__media, .aft-profile-story__media, .aft-culture-section__media { position: relative; }
.aft-flp-support__media > img { width: 100%; aspect-ratio: 1.18; object-fit: cover; border: 1px solid var(--aft-border); border-radius: 24px; box-shadow: var(--aft-sh-lg); }
.aft-flp-support__media > span, .aft-profile-story__media > span, .aft-culture-section__media > span { position: absolute; left: 20px; bottom: 20px; display: grid; gap: 3px; max-width: 265px; padding: 13px 16px; border: 1px solid rgba(255,255,255,.16); border-radius: 13px; background: rgba(18,7,49,.92); box-shadow: var(--aft-sh); backdrop-filter: blur(9px); }
.aft-flp-support__media b, .aft-profile-story__media strong, .aft-culture-section__media b { color: var(--aft-ink); font-size: .8rem; }
.aft-flp-support__media small, .aft-profile-story__media small, .aft-culture-section__media small { color: var(--aft-400); font-size: .68rem; line-height: 1.35; }
.aft-flp-support__copy h2, .aft-profile-story__grid h2, .aft-culture-section__grid h2 { max-width: 580px; margin-bottom: 15px; font-size: clamp(1.6rem, 3vw, 2.15rem); }
.aft-flp-support__copy > p:not(.aft-eyebrow), .aft-profile-story__grid > div:last-child > p:not(.aft-eyebrow), .aft-culture-section__grid > div:last-child > p:not(.aft-eyebrow) { color: var(--aft-500); line-height: 1.7; }
.aft-check-list { display: grid; gap: 11px; margin: 24px 0; }
.aft-check-list > div { display: flex; align-items: flex-start; gap: 9px; color: var(--aft-600); font-size: .84rem; line-height: 1.45; }
.aft-check-list svg { flex: none; color: var(--aft-primary); margin-top: 1px; }
.aft-steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.aft-steps-grid article { position: relative; min-height: 195px; padding: 23px; border: 1px solid var(--aft-border); border-radius: var(--aft-r); background: var(--aft-grad-card); }
.aft-steps-grid article > span { display: grid; place-items: center; width: 38px; height: 38px; color: var(--aft-primary); border-radius: 50%; background: rgba(0,255,136,.1); font-size: .72rem; font-weight: 800; }
.aft-steps-grid h3 { margin: 24px 0 8px; font-size: 1rem; }
.aft-steps-grid p { margin: 0; color: var(--aft-500); font-size: .82rem; line-height: 1.5; }
.aft-flp-careers__grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 60px; align-items: center; }
.aft-flp-careers h2 { max-width: 520px; font-size: clamp(1.6rem, 3vw, 2.15rem); }
.aft-flp-careers__grid > div:first-child > p:last-child { max-width: 550px; color: var(--aft-500); line-height: 1.65; }
.aft-role-cloud { display: flex; flex-wrap: wrap; gap: 10px; }
.aft-role-cloud span { padding: 12px 15px; border: 1px solid var(--aft-border); border-radius: var(--aft-r-pill); background: rgba(255,255,255,.04); color: var(--aft-700); font-size: .8rem; }
.aft-faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(42px, 8vw, 110px); align-items: start; }
.aft-faq-grid > div:first-child h2 { max-width: 510px; font-size: clamp(1.6rem, 3vw, 2.15rem); }
.aft-faq-grid > div:first-child > p:not(.aft-eyebrow) { max-width: 500px; color: var(--aft-500); line-height: 1.65; }
.aft-faq-list { display: grid; gap: 10px; }
.aft-faq-list details { border: 1px solid var(--aft-border); border-radius: 13px; background: rgba(255,255,255,.025); }
.aft-faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 17px 19px; color: var(--aft-ink); cursor: pointer; font-size: .88rem; font-weight: 700; list-style: none; }
.aft-faq-list summary::-webkit-details-marker { display: none; }
.aft-faq-list summary span { color: var(--aft-primary); font-size: 1.2rem; font-weight: 400; }
.aft-faq-list details[open] summary span { transform: rotate(45deg); }
.aft-faq-list details p { margin: 0; padding: 0 19px 18px; color: var(--aft-500); font-size: .84rem; line-height: 1.6; }

/* Company profile */
.aft-profile-hero__visual, .aft-services-hero__visual { width: min(100%, 500px); justify-self: end; }
.aft-profile-hero__visual > img, .aft-services-hero__visual > img { width: 100%; aspect-ratio: 1.05; object-fit: cover; border: 1px solid rgba(0,229,255,.3); border-radius: 26px; box-shadow: var(--aft-sh-xl); }
.aft-profile-hero__visual > span, .aft-services-hero__visual > span { position: absolute; left: -22px; bottom: 26px; display: grid; gap: 3px; padding: 13px 16px; border: 1px solid rgba(255,255,255,.16); border-radius: 13px; background: rgba(20,8,52,.94); box-shadow: var(--aft-sh); }
.aft-profile-hero__visual b, .aft-services-hero__visual b { color: var(--aft-ink); font-size: .8rem; }
.aft-profile-hero__visual small, .aft-services-hero__visual small { color: var(--aft-400); font-size: .68rem; }
.aft-profile-story__grid, .aft-culture-section__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); align-items: center; gap: clamp(44px, 8vw, 112px); }
.aft-profile-story__media > img, .aft-culture-section__media > img { width: 100%; aspect-ratio: 1.15; object-fit: cover; border: 1px solid var(--aft-border); border-radius: 24px; box-shadow: var(--aft-sh-lg); }
.aft-profile-story__media > span { align-items: start; }
.aft-profile-story__media strong { color: var(--aft-primary); font-size: 1.35rem; }
.aft-profile-story__grid > div:last-child > p:not(.aft-eyebrow) { max-width: 630px; }
.aft-advantage-section .aft-icon-card-grid { grid-template-columns: repeat(3, 1fr); }
.aft-market-section { background: rgba(255,255,255,.018); }
.aft-market-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.aft-market-grid article { overflow: hidden; border: 1px solid var(--aft-border); border-radius: var(--aft-r); background: var(--aft-grad-card); }
.aft-market-grid img { width: 100%; aspect-ratio: 1.4; object-fit: cover; }
.aft-market-grid article > div { padding: 19px; }
.aft-market-grid h3 { margin-bottom: 8px; font-size: .95rem; }
.aft-market-grid p { margin: 0; color: var(--aft-500); font-size: .8rem; line-height: 1.55; }
.aft-culture-section__media > img { aspect-ratio: 1.18; }
.aft-partners-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.aft-partners-grid article { min-height: 230px; padding: 24px; border: 1px solid var(--aft-border); border-radius: var(--aft-r); background: rgba(255,255,255,.025); }
.aft-partners-grid article > span { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 22px; color: var(--aft-primary); border-radius: 12px; background: rgba(0,255,136,.1); }
.aft-partners-grid h3 { margin-bottom: 8px; font-size: .98rem; }
.aft-partners-grid p { margin: 0 0 16px; color: var(--aft-500); font-size: .82rem; line-height: 1.55; }
.aft-partners-grid small { color: var(--aft-400); font-size: .7rem; word-break: break-word; }

/* Products and services */
.aft-services-hero__visual { position: relative; }
.aft-services-hero__visual > img { aspect-ratio: 1.16; }
.aft-services-section .aft-head { margin-bottom: 34px; }
.aft-services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.aft-service-card { overflow: hidden; border: 1px solid var(--aft-border); border-radius: var(--aft-r-lg); background: var(--aft-grad-card); box-shadow: var(--aft-sh-sm); transition: transform var(--aft-dur) var(--aft-ease), border-color var(--aft-dur) var(--aft-ease); }
.aft-service-card:hover { transform: translateY(-5px); border-color: rgba(0,255,136,.45); }
.aft-service-card__image { position: relative; overflow: hidden; }
.aft-service-card__image img { width: 100%; aspect-ratio: 1.55; object-fit: cover; transition: transform .5s var(--aft-ease-out); }
.aft-service-card:hover .aft-service-card__image img { transform: scale(1.04); }
.aft-service-card__image > span { position: absolute; right: 14px; bottom: 14px; display: grid; place-items: center; width: 36px; height: 36px; color: var(--aft-on-primary); border-radius: 50%; background: var(--aft-primary); }
.aft-service-card__body { padding: 20px; }
.aft-service-card__body .aft-eyebrow { margin-bottom: 8px; font-size: .63rem; }
.aft-service-card__body h3 { margin-bottom: 9px; font-size: 1.05rem; line-height: 1.3; }
.aft-service-card__body > p { margin: 0 0 16px; color: var(--aft-500); font-size: .84rem; line-height: 1.55; }
.aft-services-support { padding-top: 0; }
.aft-services-support__inner { display: flex; align-items: center; justify-content: space-between; gap: 34px; padding: clamp(27px, 4vw, 44px); border: 1px solid var(--aft-border); border-radius: var(--aft-r-lg); background: linear-gradient(120deg, rgba(4,59,49,.74), rgba(16,35,79,.74)); }
.aft-services-support__inner h2 { max-width: 620px; margin-bottom: 10px; font-size: clamp(1.45rem, 2.5vw, 1.9rem); }
.aft-services-support__inner p:last-child { max-width: 690px; margin: 0; color: var(--aft-600); line-height: 1.55; }
.aft-services-support__steps { display: grid; gap: 10px; min-width: 170px; }
.aft-services-support__steps span { display: flex; align-items: center; gap: 10px; color: var(--aft-700); font-size: .8rem; }
.aft-services-support__steps b { color: var(--aft-primary); font-size: .7rem; }

/* Contact */
.aft-contact-hero__visual { width: min(100%, 470px); justify-self: end; min-height: 350px; border: 1px solid rgba(0,229,255,.28); border-radius: 26px; background: radial-gradient(circle at 50% 35%, rgba(0,229,255,.2), transparent 42%), linear-gradient(145deg, rgba(28,11,60,.96), rgba(9,32,50,.9)); box-shadow: var(--aft-sh-xl); }
.aft-contact-hero__visual > div { display: grid; justify-items: center; gap: 10px; text-align: center; }
.aft-contact-hero__visual > div > span { display: grid; place-items: center; width: 78px; height: 78px; color: var(--aft-primary); border: 1px solid rgba(0,255,136,.3); border-radius: 24px; background: rgba(0,255,136,.1); }
.aft-contact-hero__visual b { color: var(--aft-ink); font-size: 1.1rem; }
.aft-contact-hero__visual small { color: var(--aft-500); }
.aft-contact-details__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 1050px; margin-inline: auto; }
.aft-contact-details__grid article { min-height: 180px; padding: 24px; border: 1px solid var(--aft-border); border-radius: var(--aft-r); background: rgba(255,255,255,.025); }
.aft-contact-details__grid article > span { display: grid; place-items: center; width: 43px; height: 43px; margin-bottom: 18px; color: var(--aft-primary); border-radius: 12px; background: rgba(0,255,136,.1); }
.aft-contact-details__grid .aft-eyebrow { margin-bottom: 7px; font-size: .65rem; }
.aft-contact-details__grid strong, .aft-contact-details__grid small { display: block; }
.aft-contact-details__grid strong { color: var(--aft-ink); font-size: .86rem; line-height: 1.5; overflow-wrap: anywhere; }
.aft-contact-details__grid small { margin-top: 3px; color: var(--aft-500); font-size: .78rem; line-height: 1.5; }
.aft-contact-form__grid { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: clamp(40px, 8vw, 110px); align-items: start; }
.aft-contact-form__grid > div:first-child h2 { max-width: 520px; font-size: clamp(1.65rem, 3vw, 2.25rem); }
.aft-contact-form__grid > div:first-child > p:not(.aft-eyebrow) { max-width: 520px; color: var(--aft-500); line-height: 1.7; }
.aft-contact-form__promise { display: flex; align-items: flex-start; gap: 10px; margin-top: 27px; }
.aft-contact-form__promise > span { color: var(--aft-primary); }
.aft-contact-form__promise div { display: grid; gap: 3px; }
.aft-contact-form__promise b { color: var(--aft-700); font-size: .84rem; }
.aft-contact-form__promise small { color: var(--aft-400); font-size: .72rem; }
.aft-contact-form__box { min-height: 360px; padding: clamp(20px, 3vw, 32px); border: 1px solid var(--aft-border); border-radius: var(--aft-r-lg); background: var(--aft-grad-card); box-shadow: var(--aft-sh-sm); }
.aft-contact-form__box .ff-el-group label { color: var(--aft-700); }
.aft-contact-form__box input, .aft-contact-form__box textarea, .aft-contact-form__box select { color: var(--aft-ink) !important; border-color: var(--aft-border) !important; border-radius: 10px !important; background: rgba(255,255,255,.06) !important; }
.aft-contact-form__box button, .aft-contact-form__box .ff-btn-submit { border: 0 !important; border-radius: 10px !important; background: var(--aft-primary) !important; color: var(--aft-on-primary) !important; font-weight: 800 !important; }
.aft-contact-form__fallback { display: grid; justify-items: start; align-content: center; min-height: 310px; }
.aft-contact-form__fallback > span { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 20px; color: var(--aft-primary); border-radius: 13px; background: rgba(0,255,136,.1); }
.aft-contact-form__fallback .aft-eyebrow { margin-bottom: 7px; }
.aft-contact-form__fallback h3 { margin-bottom: 10px; font-size: 1.3rem; }
.aft-contact-form__fallback p:not(.aft-eyebrow) { max-width: 420px; margin-bottom: 22px; color: var(--aft-500); line-height: 1.6; }
.aft-contact-map { padding-top: 0; }
.aft-contact-map__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, .8fr); gap: clamp(35px, 7vw, 100px); align-items: center; }
.aft-contact-map__inner h2 { max-width: 560px; font-size: clamp(1.5rem, 2.8vw, 2rem); }
.aft-contact-map__inner p:not(.aft-eyebrow) { max-width: 560px; color: var(--aft-500); line-height: 1.65; }
.aft-contact-map__visual { display: grid; justify-items: center; gap: 8px; min-height: 240px; padding: 35px; border: 1px solid rgba(0,229,255,.24); border-radius: 22px; background: radial-gradient(circle at 50% 38%, rgba(0,229,255,.16), transparent 45%), var(--aft-grad-card); }
.aft-contact-map__visual > span { display: grid; place-items: center; width: 63px; height: 63px; margin-bottom: 8px; color: var(--aft-primary); border-radius: 50%; background: rgba(0,255,136,.1); }
.aft-contact-map__visual b { color: var(--aft-ink); }
.aft-contact-map__visual small { color: var(--aft-500); text-align: center; line-height: 1.5; }

@media (max-width: 1024px) {
  .aft-program-hero__grid, .aft-profile-hero__grid, .aft-services-hero__grid, .aft-contact-hero__grid { grid-template-columns: 1fr; gap: 42px; }
  .aft-program-hero__copy, .aft-profile-hero__grid > div:first-child, .aft-services-hero__grid > div:first-child, .aft-contact-hero__grid > div:first-child { max-width: 780px; }
  .aft-program-hero__visual, .aft-profile-hero__visual, .aft-services-hero__visual, .aft-contact-hero__visual { width: min(100%, 620px); justify-self: start; }
  .aft-journey-grid { grid-template-columns: repeat(2, 1fr); }
  .aft-icon-card-grid { grid-template-columns: repeat(2, 1fr); }
  .aft-icon-card-grid--three, .aft-advantage-section .aft-icon-card-grid { grid-template-columns: repeat(3, 1fr); }
  .aft-services-grid { grid-template-columns: repeat(2, 1fr); }
  .aft-market-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .aft-program-hero__copy h1, .aft-profile-hero h1, .aft-services-hero h1, .aft-contact-hero h1 { font-size: clamp(2rem, 9vw, 2.8rem); }
  .aft-program-trust__in { align-items: flex-start; flex-direction: column; padding-block: 20px; }
  .aft-flp-logos { justify-content: flex-start; }
  .aft-program-intro__grid, .aft-platform-section__grid, .aft-flp-support__grid, .aft-flp-careers__grid, .aft-faq-grid, .aft-profile-story__grid, .aft-culture-section__grid, .aft-contact-form__grid, .aft-contact-map__inner { grid-template-columns: 1fr; gap: 34px; }
  .aft-program-levels__grid, .aft-journey-grid, .aft-icon-card-grid, .aft-icon-card-grid--three, .aft-advantage-section .aft-icon-card-grid, .aft-services-grid, .aft-partners-grid, .aft-contact-details__grid { grid-template-columns: repeat(2, 1fr); }
  .aft-program-video__inner, .aft-program-cta__inner, .aft-services-support__inner { align-items: flex-start; flex-direction: column; }
  .aft-platform-list { grid-template-columns: 1fr 1fr; }
  .aft-market-grid { grid-template-columns: repeat(2, 1fr); }
  .aft-contact-hero__visual { min-height: 300px; }
}
@media (max-width: 520px) {
  .aft-program-hero__visual-badge, .aft-profile-hero__visual > span, .aft-services-hero__visual > span { left: 10px; bottom: 12px; }
  .aft-program-levels__grid, .aft-journey-grid, .aft-icon-card-grid, .aft-icon-card-grid--three, .aft-advantage-section .aft-icon-card-grid, .aft-services-grid, .aft-market-grid, .aft-partners-grid, .aft-contact-details__grid, .aft-platform-list, .aft-steps-grid { grid-template-columns: 1fr; }
  .aft-program-level { min-height: 0; }
  .aft-program-video__inner, .aft-program-cta__inner, .aft-services-support__inner { padding: 25px 21px; }
  .aft-contact-form__box { padding: 18px; }
}

/* -------------------------------------------------- 27. TUTOR LOGIN + REGISTRATION ------- */
/* Tutor's dark palette maps --tutor-color-white to a dark surface. Keep the
   account actions and headings bright and readable on the AFT dark UI. */
#aft-main .tutor-login-wrap,
#aft-main #tutor-registration-wrap {
  color: var(--aft-ink) !important;
  background: var(--aft-grad-card) !important;
  border: 1px solid var(--aft-border) !important;
  border-radius: var(--aft-r-lg) !important;
  box-shadow: var(--aft-sh-lg) !important;
}
#aft-main .tutor-login-wrap .tutor-login-form-wrapper,
#aft-main #tutor-registration-form { color: var(--aft-ink) !important; }
#aft-main .tutor-login-wrap .tutor-h3,
#aft-main #tutor-login-form .tutor-label,
#aft-main #tutor-login-form label,
#aft-main #tutor-login-form .tutor-small,
#aft-main #tutor-registration-form label,
#aft-main #tutor-registration-form .tutor-label,
#aft-main #tutor-registration-form .tutor-small,
#aft-main #tutor-registration-form .tutor-form-group,
#aft-main #tutor-registration-form .tutor-form-row,
#aft-main #tutor-registration-form .tutor-form-col-12 {
  color: #fff !important;
}
#aft-main #tutor-login-form .tutor-btn-link,
#aft-main #tutor-login-form .tutor-btn-link-gray,
#aft-main #tutor-registration-form .tutor-btn-link,
#aft-main #tutor-registration-form a,
#aft-main .tutor-login-wrap a {
  color: #fff !important;
  text-decoration-color: rgba(255,255,255,.55) !important;
}
#aft-main #tutor-login-form .tutor-btn-link:hover,
#aft-main #tutor-login-form .tutor-btn-link-gray:hover,
#aft-main #tutor-registration-form .tutor-btn-link:hover,
#aft-main #tutor-registration-form a:hover { color: var(--aft-primary) !important; }
#aft-main #tutor-login-form .tutor-form-control,
#aft-main #tutor-registration-form .tutor-form-control {
  color: #fff !important;
  background: rgba(255,255,255,.07) !important;
  border-color: rgba(255,255,255,.22) !important;
}
#aft-main #tutor-login-form .tutor-form-control::placeholder,
#aft-main #tutor-registration-form .tutor-form-control::placeholder { color: rgba(255,255,255,.66) !important; }
#aft-main #tutor-login-form .tutor-form-control:focus,
#aft-main #tutor-registration-form .tutor-form-control:focus { border-color: var(--aft-primary) !important; box-shadow: 0 0 0 3px rgba(0,255,136,.12) !important; }
#aft-main #tutor-login-form .tutor-btn-primary,
#aft-main #tutor-registration-form .tutor-btn-primary {
  color: var(--aft-on-primary) !important;
  background: var(--aft-primary) !important;
  border-color: var(--aft-primary) !important;
}
#aft-main #tutor-login-form .tutor-btn-primary:hover,
#aft-main #tutor-registration-form .tutor-btn-primary:hover { color: var(--aft-on-primary) !important; background: var(--aft-mint) !important; }
#aft-main .tutor-login-wrap .tutor-login-error,
#aft-main #tutor-registration-form .tutor-alert,
#aft-main #tutor-registration-form .tutor-alert * { color: #fff !important; }
.aft-registration-trap { position: absolute !important; left: -10000px !important; top: auto !important; width: 1px !important; height: 1px !important; overflow: hidden !important; opacity: 0 !important; pointer-events: none !important; }
#aft-main .tutor-login-wrap { max-width: 520px !important; margin: clamp(40px, 7vw, 90px) auto !important; }
#aft-main #tutor-registration-wrap { max-width: 560px !important; margin: clamp(40px, 7vw, 90px) auto !important; }

@media (max-width: 560px) {
  #aft-main .tutor-login-wrap,
  #aft-main #tutor-registration-wrap { margin-block: 28px !important; border-radius: 16px !important; }
}
