/* ============================================================
   UISC Edu Skill — Dental Training & CPD
   Design system v2 · "Clinical clarity"
   Deep navy + teal/aqua accent + clean white.
   Plus Jakarta Sans (display) / Inter (body).
   ============================================================ */

/* Self-hosted variable fonts (OFL) — no third-party requests, GDPR-friendly */
@font-face {
  font-family: 'Plus Jakarta Sans'; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url('../fonts/plus-jakarta-sans-latin-wght-normal.woff2') format('woff2-variations'), url('../fonts/plus-jakarta-sans-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Plus Jakarta Sans'; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url('../fonts/plus-jakarta-sans-latin-ext-wght-normal.woff2') format('woff2-variations'), url('../fonts/plus-jakarta-sans-latin-ext-wght-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url('../fonts/inter-latin-wght-normal.woff2') format('woff2-variations'), url('../fonts/inter-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url('../fonts/inter-latin-ext-wght-normal.woff2') format('woff2-variations'), url('../fonts/inter-latin-ext-wght-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

:root {
  /* Brand */
  --navy-900:   #061430;
  --navy:       #0b1f3f;
  --navy-700:   #14305f;
  --navy-600:   #1f4680;
  --teal:       #0d9488;
  --teal-600:   #0f766e;
  --teal-400:   #2dd4bf;
  --teal-300:   #5eead4;
  --teal-100:   #ccfbf1;
  --teal-50:    #f0fdfa;
  --aqua:       #67e8f9;
  --coral:      #f97316;
  --coral-soft: #ffedd5;

  /* Neutrals */
  --paper:      #f5f8fb;
  --white:      #ffffff;
  --line:       #e2e8f0;
  --line-soft:  #edf2f7;
  --text:       #0f1b2d;
  --muted:      #5a6b82;
  --muted-2:    #8b98ab;

  /* Status */
  --green:      #16a34a;
  --green-soft: #dcfce7;
  --red:        #dc2626;
  --red-soft:   #fee2e2;
  --amber:      #d97706;
  --amber-soft: #fef3c7;

  /* Legacy aliases (admin panel + older partials) */
  --ink:        var(--navy);
  --ink-700:    var(--navy-700);
  --ink-600:    var(--navy-600);
  --gold:       var(--teal);
  --gold-soft:  var(--teal-100);
  --gold-deep:  var(--teal-600);

  /* Effects */
  --radius:     18px;
  --radius-sm:  12px;
  --radius-lg:  26px;
  --radius-xl:  34px;
  --shadow-sm:  0 1px 2px rgba(11,31,63,.05), 0 2px 10px rgba(11,31,63,.04);
  --shadow:     0 10px 32px rgba(11,31,63,.09);
  --shadow-lg:  0 28px 64px rgba(11,31,63,.16);
  --ring:       0 0 0 4px rgba(13,148,136,.22);
  --glow-teal:  0 8px 26px rgba(13,148,136,.32);

  --font-display: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --container:  1240px;
  --ease:       cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset / base ---------- */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--paper);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }
[hidden] { display: none !important; }
input,textarea,select { font-family: inherit; font-size: inherit; }
::selection { background: var(--teal-100); color: var(--navy); }

h1,h2,h3,h4,h5 { font-family: var(--font-display); font-weight: 700; line-height: 1.12; color: var(--navy); letter-spacing: -.02em; }
h1 { font-weight: 800; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.container-narrow { max-width: 860px; }
.section { padding-block: 88px; }
.section-sm { padding-block: 56px; }
.section-white { background: var(--white); border-block: 1px solid var(--line); }
.section-navy { background: var(--navy); color: #fff; }
.center { text-align: center; }
.muted { color: var(--muted); }
.mt-0 { margin-top: 0 !important; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .76rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--teal-600);
}
.eyebrow::before { content: ''; width: 22px; height: 2px; background: var(--teal); border-radius: 2px; }
.eyebrow.center-eb { justify-content: center; }
.eyebrow.on-dark { color: var(--teal-300); }
.eyebrow.on-dark::before { background: var(--teal-400); }
.eyebrow.pill {
  padding: 7px 14px; border-radius: 100px; background: var(--teal-50); border: 1px solid var(--teal-100);
  letter-spacing: .08em; font-size: .74rem;
}
.eyebrow.pill::before { display: none; }

.section-head { max-width: 680px; margin: 0 auto 52px; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 3.8vw, 2.7rem); margin: 14px 0 12px; }
.section-head p { color: var(--muted); font-size: 1.06rem; }
.section-head.left { text-align: left; margin-left: 0; }
.section-head.left .eyebrow { justify-content: flex-start; }
.section-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.section-head-row .section-head { margin: 0; text-align: left; }
.section-head-row .section-head .eyebrow { justify-content: flex-start; }
.section-head-row h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin: 12px 0 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 26px; border-radius: 100px; font-weight: 600; font-size: .95rem;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s, border-color .25s;
  white-space: nowrap; line-height: 1.2;
}
.btn svg { width: 17px; height: 17px; flex-shrink: 0; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--teal); color: #fff; box-shadow: var(--glow-teal); }
.btn-primary:hover { background: var(--teal-600); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(13,148,136,.4); color: #fff; }
.btn-dark { background: var(--navy); color: #fff; box-shadow: var(--shadow-sm); }
.btn-dark:hover { background: var(--navy-700); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-gold { background: var(--teal); color: #fff; box-shadow: var(--glow-teal); }          /* legacy name */
.btn-gold:hover { background: var(--teal-600); transform: translateY(-2px); color: #fff; }
.btn-ghost { background: transparent; color: var(--navy); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--navy); background: var(--navy); color: #fff; }
.btn-light { background: rgba(255,255,255,.1); color: #fff; border: 1.5px solid rgba(255,255,255,.22); backdrop-filter: blur(6px); }
.btn-light:hover { background: rgba(255,255,255,.2); }
.btn-white { background: #fff; color: var(--navy); box-shadow: var(--shadow-sm); }
.btn-white:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-soft { background: var(--teal-50); color: var(--teal-600); border: 1px solid var(--teal-100); }
.btn-soft:hover { background: var(--teal-100); }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 18px; font-size: .86rem; }
.btn-lg { padding: 16px 32px; font-size: 1.02rem; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; color: var(--teal-600); font-weight: 600; font-size: .94rem; transition: gap .2s, color .2s; }
.link-arrow svg { width: 16px; height: 16px; }
.link-arrow:hover { gap: 10px; color: var(--navy); }

/* ---------- Top utility bar ---------- */
.topbar { background: var(--navy-900); color: rgba(255,255,255,.82); font-size: .8rem; letter-spacing: .01em; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; min-height: 40px; gap: 16px; }
.topbar a:hover { color: var(--teal-300); }
.topbar-badges { display: flex; gap: 20px; align-items: center; }
.topbar-badges span { display: inline-flex; gap: 6px; align-items: center; }
.topbar-badges svg { width: 14px; height: 14px; color: var(--teal-400); }
.topbar-links { display: flex; gap: 18px; align-items: center; }
.topbar-links svg { width: 13px; height: 13px; vertical-align: -2px; margin-right: 4px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s;
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(11,31,63,.08); }
.nav { display: flex; align-items: center; gap: 20px; min-height: 84px; }
.brand-logo { display: flex; align-items: center; flex-shrink: 0; padding: 6px 0; }
.brand-logo img { height: 62px; width: auto; display: block; }
/* The logo artwork has navy type, so on dark surfaces it sits in a white card */
.logo-card { display: inline-flex; align-items: center; justify-content: center; background: #fff; border-radius: 14px; padding: 12px 18px; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.logo-card img { display: block; height: 52px; width: auto; }

.nav-links { display: flex; gap: 2px; margin-left: 28px; }
.nav-links > li { position: relative; }
.nav-links > li > a {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 10px 14px; border-radius: 10px; font-weight: 500; font-size: .94rem; color: var(--navy-700);
  transition: background .2s, color .2s; white-space: nowrap;
}
.nav-links > li > a:hover { background: var(--line-soft); color: var(--navy); }
.nav-links > li > a.active { color: var(--teal-600); background: var(--teal-50); }
.nav-links > li > a svg { width: 11px; height: 11px; transition: transform .2s; }
.has-dropdown:hover > a svg { transform: rotate(180deg); }

/* Mega menu */
.has-dropdown .mega-menu {
  position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%) translateY(-8px);
  width: 860px; background: #fff; border: 1px solid var(--line); border-radius: 22px;
  box-shadow: 0 30px 70px rgba(11,31,63,.18); padding: 22px;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .25s var(--ease);
  z-index: 200;
}
.has-dropdown:hover .mega-menu,
.has-dropdown:focus-within .mega-menu { opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.has-dropdown::before { content: ''; position: absolute; top: 100%; left: 0; right: 0; height: 14px; }
.mega-layout { display: grid; grid-template-columns: 1.15fr 1fr; gap: 20px; }
.mega-col-title { font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); font-weight: 700; margin-bottom: 10px; padding: 0 6px; }
.mega-grid { display: grid; grid-template-columns: 1fr; gap: 4px; }
.mega-grid.two { grid-template-columns: 1fr 1fr; }
.mega-item { display: flex; gap: 12px; align-items: center; padding: 10px 10px; border-radius: 12px; transition: background .2s; }
.mega-item:hover { background: var(--teal-50); }
.mega-ic { width: 38px; height: 38px; border-radius: 10px; background: var(--teal-50); color: var(--teal-600); border: 1px solid var(--teal-100); display: grid; place-items: center; flex-shrink: 0; transition: background .2s, color .2s; }
.mega-item:hover .mega-ic { background: var(--teal); color: #fff; }
.mega-ic svg { width: 18px; height: 18px; }
.mega-item b { display: block; color: var(--navy); font-weight: 600; font-size: .9rem; margin-bottom: 1px; }
.mega-item span:not(.mega-ic) { display: block; color: var(--muted); font-size: .76rem; line-height: 1.35; }
.mega-side { background: var(--paper); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.mega-foot-item { display: flex; gap: 12px; align-items: center; padding: 11px 12px; border-radius: 12px; background: #fff; border: 1px solid var(--line-soft); transition: transform .2s, border-color .2s; }
.mega-foot-item:hover { transform: translateY(-1px); border-color: var(--teal-300); }
.mega-foot-item b { display: block; color: var(--navy); font-weight: 600; font-size: .9rem; }
.mega-foot-item span { display: block; color: var(--muted); font-size: .76rem; }
.mega-foot-tag { padding: 5px 9px; border-radius: 100px; font-size: .62rem; font-weight: 800; letter-spacing: .08em; background: var(--green); color: #fff; flex-shrink: 0; }
.mega-foot-tag.tag-gold, .mega-foot-tag.tag-coral { background: var(--coral); color: #fff; }
.mega-foot-tag.tag-teal { background: var(--teal); color: #fff; }
.mega-promo { margin-top: auto; background: var(--navy); color: #fff; border-radius: 14px; padding: 16px; position: relative; overflow: hidden; }
.mega-promo::before { content: ''; position: absolute; inset: 0; background: radial-gradient(240px 140px at 100% 0%, rgba(45,212,191,.35), transparent 60%); }
.mega-promo > * { position: relative; }
.mega-promo b { display: block; font-family: var(--font-display); font-size: .98rem; margin-bottom: 4px; }
.mega-promo span { display: block; color: rgba(255,255,255,.7); font-size: .78rem; margin-bottom: 10px; }

.nav-spacer { flex: 1; }
.nav-drawer-cta { display: none; }
.nav-actions { display: flex; align-items: center; gap: 8px; }

.icon-btn { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: var(--navy); position: relative; transition: background .2s; }
.icon-btn:hover { background: var(--line-soft); }
.icon-btn svg { width: 21px; height: 21px; }
.cart-badge {
  position: absolute; top: 4px; right: 4px; min-width: 18px; height: 18px; padding: 0 5px;
  background: var(--teal); color: #fff; border-radius: 100px; font-size: .66rem;
  font-weight: 700; display: grid; place-items: center;
}
.burger { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--navy); color: #fff; padding-block: 84px 96px; }
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(900px 480px at 85% -10%, rgba(13,148,136,.45), transparent 60%),
    radial-gradient(700px 420px at 0% 110%, rgba(31,70,128,.55), transparent 55%);
}
.hero-grid-bg {
  position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(circle at 60% 30%, #000, transparent 72%);
}
.hero .container { position: relative; z-index: 2; }
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero-inner > * { min-width: 0; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px; padding: 7px 14px 7px 8px; border-radius: 100px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); font-size: .8rem; font-weight: 500;
  color: rgba(255,255,255,.9); margin-bottom: 22px; backdrop-filter: blur(6px);
}
.hero-badge .dot { width: 22px; height: 22px; border-radius: 50%; background: var(--teal); display: grid; place-items: center; }
.hero-badge .dot svg { width: 12px; height: 12px; }
.hero h1 { color: #fff; font-size: clamp(2.5rem, 5vw, 3.9rem); line-height: 1.04; margin: 0 0 20px; overflow-wrap: break-word; }
.hero h1 .accent { color: var(--teal-300); position: relative; white-space: nowrap; }
.hero h1 .accent::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: .06em; height: .16em;
  background: linear-gradient(90deg, rgba(45,212,191,.0), rgba(45,212,191,.55), rgba(45,212,191,0)); border-radius: 4px; z-index: -1;
}
.hero-sub { font-size: 1.14rem; color: rgba(255,255,255,.8); max-width: 540px; margin-bottom: 30px; line-height: 1.65; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero-roles { margin-top: 30px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; color: rgba(255,255,255,.6); font-size: .82rem; }
.hero-roles a {
  padding: 7px 13px; border-radius: 100px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14);
  color: #fff; font-weight: 500; font-size: .8rem; transition: background .2s, border-color .2s;
}
.hero-roles a:hover { background: rgba(45,212,191,.2); border-color: var(--teal-400); }
.hero-trust { margin-top: 36px; display: flex; gap: 34px; flex-wrap: wrap; align-items: center; color: rgba(255,255,255,.6); font-size: .82rem; }
.hero-trust strong { color: #fff; font-size: 1.45rem; font-family: var(--font-display); display: block; line-height: 1.1; }
.hero-trust .stars { color: #fbbf24; }

/* Hero visual: photo + floating cards */
.hero-visual { position: relative; padding: 18px 18px 30px 0; }
.hero-photo {
  position: relative; border-radius: var(--radius-xl); overflow: hidden; aspect-ratio: 4/4.4;
  box-shadow: 0 40px 90px rgba(0,0,0,.4); border: 1px solid rgba(255,255,255,.14);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(6,20,48,.75)); }
.hero-photo-caption { position: absolute; left: 22px; right: 22px; bottom: 20px; z-index: 2; color: #fff; }
.hero-photo-caption b { display: block; font-family: var(--font-display); font-size: 1rem; }
.hero-photo-caption span { color: rgba(255,255,255,.72); font-size: .8rem; }
.float-card {
  position: absolute; background: #fff; color: var(--navy); border-radius: 16px; padding: 12px 14px;
  box-shadow: var(--shadow-lg); display: flex; gap: 12px; align-items: center; z-index: 3;
  animation: floaty 6s ease-in-out infinite;
}
.float-card .ic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; flex-shrink: 0; }
.float-card .ic svg { width: 20px; height: 20px; }
.float-card b { display: block; font-size: .9rem; font-family: var(--font-display); line-height: 1.15; }
.float-card span { display: block; color: var(--muted); font-size: .74rem; margin-top: 2px; }
.float-card.fc-1 { top: 26px; left: -34px; animation-delay: 0s; }
.float-card.fc-2 { right: -22px; top: 34%; animation-delay: 1.5s; }
.float-card.fc-3 { left: -22px; top: 61%; animation-delay: 3s; }
.float-card .ic.teal { background: var(--teal-100); color: var(--teal-600); }
.float-card .ic.navy { background: var(--navy); color: var(--teal-300); }
.float-card .ic.amber { background: var(--amber-soft); color: var(--amber); }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.hero-ring { position: absolute; width: 380px; height: 380px; border-radius: 50%; border: 1px dashed rgba(45,212,191,.35); right: -80px; top: -60px; animation: spin 40s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Trust strip ---------- */
.trust-strip { background: var(--white); border-bottom: 1px solid var(--line); }
.trust-strip .container { display: flex; align-items: center; justify-content: center; gap: 12px 40px; flex-wrap: wrap; padding-block: 22px; }
.trust-strip .label { color: var(--navy); font-family: var(--font-display); font-weight: 700; font-size: .9rem; }
.trust-item { font-weight: 600; color: var(--muted); font-size: .88rem; display: inline-flex; gap: 9px; align-items: center; }
.trust-item svg { width: 20px; height: 20px; color: var(--teal-600); }

/* ---------- Pathway (role) cards ---------- */
.pathway-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.pathway-card {
  position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px 24px; overflow: hidden; display: flex; flex-direction: column; min-height: 100%;
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.pathway-card::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--teal), var(--aqua)); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.pathway-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.pathway-card:hover::before { transform: scaleX(1); }
.pathway-ic { width: 54px; height: 54px; border-radius: 15px; background: var(--navy); color: var(--teal-300); display: grid; place-items: center; margin-bottom: 18px; transition: transform .3s; }
.pathway-ic svg { width: 26px; height: 26px; }
.pathway-card:hover .pathway-ic { transform: rotate(-6deg) scale(1.05); background: var(--teal); color: #fff; }
.pathway-card h3 { font-size: 1.18rem; margin-bottom: 6px; }
.pathway-card p { color: var(--muted); font-size: .9rem; flex: 1; }
.pathway-meta { margin-top: 16px; display: flex; justify-content: space-between; align-items: center; font-size: .82rem; color: var(--muted); }
.pathway-meta .n { font-weight: 700; color: var(--navy); }
.pathway-meta .link-arrow { font-size: .84rem; }

/* Category grid (secondary) */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cat-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; display: flex; gap: 14px; align-items: flex-start;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.cat-ic { width: 46px; height: 46px; border-radius: 12px; background: var(--teal-50); color: var(--teal-600); display: grid; place-items: center; flex-shrink: 0; }
.cat-ic svg { width: 22px; height: 22px; }
.cat-card h3 { font-size: 1.02rem; margin-bottom: 3px; }
.cat-card p { color: var(--muted); font-size: .84rem; }
.cat-count { margin-top: 8px; font-size: .78rem; font-weight: 600; color: var(--teal-600); display: inline-flex; gap: 5px; align-items: center; }

/* ---------- Course cards ---------- */
.course-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.course-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.course-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; container-type: inline-size;
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.course-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.course-thumb { position: relative; aspect-ratio: 16/10; overflow: hidden; background: linear-gradient(135deg, var(--navy-600), var(--navy)); }
.course-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.course-card:hover .course-thumb img { transform: scale(1.06); }
.course-thumb-fallback { position: absolute; inset: 0; display: grid; place-items: center; color: var(--teal-300); }
.course-thumb-fallback svg { width: 46px; height: 46px; opacity: .85; }
.course-thumb::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(6,20,48,.45)); pointer-events: none; }
.course-badges { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; z-index: 2; pointer-events: none; }
.course-badge {
  background: #fff; color: var(--navy); font-size: .68rem; font-weight: 700; padding: 5px 10px; border-radius: 100px; letter-spacing: .03em;
  display: inline-flex; align-items: center; gap: 5px; box-shadow: 0 2px 8px rgba(0,0,0,.12); white-space: nowrap;
}
.course-badge svg { width: 12px; height: 12px; }
.course-badge.free { background: var(--green); color: #fff; }
.course-badge.sale { background: var(--coral); color: #fff; }
.course-badge.core { background: var(--navy); color: var(--teal-300); }
.course-badge.soldout { background: var(--red); color: #fff; }
.course-badge.cat-tag { background: rgba(6,20,48,.78); color: #fff; backdrop-filter: blur(4px); display: inline-block; max-width: 150px; overflow: hidden; text-overflow: ellipsis; line-height: 1.3; }
.course-cpd { position: absolute; left: 12px; bottom: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.95); color: var(--navy); border-radius: 100px; padding: 5px 11px; font-size: .74rem; font-weight: 700; }
.course-cpd svg { width: 13px; height: 13px; color: var(--teal-600); }
.course-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.course-meta { display: flex; gap: 12px; font-size: .77rem; color: var(--muted); margin-bottom: 9px; flex-wrap: wrap; }
.course-meta span { display: inline-flex; gap: 5px; align-items: center; }
.course-meta svg { width: 13px; height: 13px; }
.course-card h3 { font-size: 1.05rem; line-height: 1.3; margin-bottom: 7px; }
.course-card h3 a { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.course-card h3 a:hover { color: var(--teal-600); }
.course-desc { font-size: .86rem; color: var(--muted); margin-bottom: 14px; flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.stars { display: inline-flex; gap: 2px; color: #f59e0b; }
.stars svg { width: 14px; height: 14px; }
.course-rating { display: flex; align-items: center; gap: 7px; font-size: .8rem; color: var(--muted); margin-bottom: 14px; }
.course-rating b { color: var(--navy); }
.course-foot { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; border-top: 1px solid var(--line-soft); gap: 10px; flex-wrap: wrap; }
.price-wrap { display: flex; align-items: baseline; gap: 7px; }
.price { font-family: var(--font-display); font-size: 1.28rem; font-weight: 800; color: var(--navy); letter-spacing: -.02em; }
.price.free { color: var(--green); }
.price-was { font-size: .84rem; color: var(--muted-2); text-decoration: line-through; }
.course-card .btn-sm { padding: 8px 13px; font-size: .8rem; }
@container (max-width: 265px) {
  .course-foot { flex-direction: column; align-items: stretch; }
  .course-foot .btn { width: 100%; }
}

/* Course list row (compact, used in hero/related) */
.course-row { display: flex; gap: 13px; align-items: center; padding: 12px; border-radius: var(--radius-sm); background: rgba(255,255,255,.05); margin-bottom: 8px; transition: background .2s, transform .2s; }
.course-row:hover { background: rgba(255,255,255,.1); transform: translateX(3px); }

/* ---------- Stats band ---------- */
.stats-band { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.stats-band::before { content: ''; position: absolute; inset: 0; background: radial-gradient(700px 320px at 90% 0%, rgba(13,148,136,.35), transparent 60%), radial-gradient(500px 300px at 0% 100%, rgba(31,70,128,.5), transparent 60%); }
.stats-grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.stats-grid > div { padding: 8px 0; border-right: 1px solid rgba(255,255,255,.1); }
.stats-grid > div:last-child { border-right: none; }
.stat-num { font-family: var(--font-display); font-size: 2.8rem; font-weight: 800; color: var(--teal-300); letter-spacing: -.02em; line-height: 1; }
.stat-label { color: rgba(255,255,255,.72); font-size: .92rem; margin-top: 8px; }

/* ---------- CPD explainer ---------- */
.cpd-explainer { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.cpd-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cpd-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; position: relative; overflow: hidden; transition: transform .3s, box-shadow .3s; }
.cpd-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.cpd-card .num { font-family: var(--font-display); font-size: 2.2rem; font-weight: 800; color: var(--teal-600); line-height: 1; letter-spacing: -.03em; }
.cpd-card .num small { font-size: 1rem; font-weight: 700; color: var(--muted); margin-left: 3px; }
.cpd-card b { display: block; color: var(--navy); margin-top: 8px; font-size: .95rem; }
.cpd-card span { display: block; color: var(--muted); font-size: .82rem; margin-top: 3px; line-height: 1.45; }
.cpd-card.dark { background: var(--navy); border-color: var(--navy); color: #fff; grid-column: span 2; display: flex; gap: 18px; align-items: center; }
.cpd-card.dark .num { color: var(--teal-300); }
.cpd-card.dark b { color: #fff; }
.cpd-card.dark span { color: rgba(255,255,255,.7); }
.cpd-card.dark .ic { width: 52px; height: 52px; border-radius: 14px; background: rgba(45,212,191,.15); color: var(--teal-300); display: grid; place-items: center; flex-shrink: 0; }
.cpd-card.dark .ic svg { width: 26px; height: 26px; }
.topic-list { display: grid; gap: 10px; margin-top: 22px; }
.topic-item { display: flex; gap: 12px; align-items: center; padding: 12px 14px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; transition: border-color .2s, transform .2s; }
.topic-item:hover { border-color: var(--teal-300); transform: translateX(3px); }
.topic-item .tick { width: 30px; height: 30px; border-radius: 50%; background: var(--teal-100); color: var(--teal-600); display: grid; place-items: center; flex-shrink: 0; }
.topic-item .tick svg { width: 15px; height: 15px; }
.topic-item b { display: block; color: var(--navy); font-size: .92rem; }
.topic-item span { color: var(--muted); font-size: .8rem; }
.topic-item .hrs { margin-left: auto; font-weight: 700; color: var(--teal-600); font-size: .8rem; white-space: nowrap; }

/* ---------- Steps ---------- */
.steps-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; }
.steps-grid-4::before { content: ''; position: absolute; top: 58px; left: 12%; right: 12%; height: 2px; background: repeating-linear-gradient(90deg, var(--teal-100) 0, var(--teal-100) 8px, transparent 8px, transparent 14px); z-index: 0; }
.step-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 22px; text-align: center; position: relative; z-index: 1; transition: transform .3s, box-shadow .3s, border-color .3s; }
.step-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.step-num { position: absolute; top: 14px; right: 16px; font-family: var(--font-display); font-size: .8rem; color: var(--muted-2); font-weight: 700; letter-spacing: .1em; }
.step-ic { width: 60px; height: 60px; margin: 0 auto 18px; border-radius: 50%; background: var(--navy); color: var(--teal-300); display: grid; place-items: center; box-shadow: 0 8px 20px rgba(11,31,63,.2); transition: transform .3s, background .3s; }
.step-ic svg { width: 24px; height: 24px; }
.step-card:hover .step-ic { transform: rotate(-8deg) scale(1.05); background: var(--teal); color: #fff; }
.step-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.step-card p { color: var(--muted); font-size: .9rem; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.steps-grid .step-card { text-align: left; }
.steps-grid .step-card h3 { font-size: 1.15rem; margin: 10px 0 8px; }

/* ---------- Split / feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split-media { position: relative; }
.split-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); aspect-ratio: 4/3.4; object-fit: cover; width: 100%; background: linear-gradient(135deg, var(--navy-600), var(--navy)); }
.split-badge { position: absolute; bottom: -22px; left: -22px; background: var(--white); padding: 16px 20px; border-radius: 16px; box-shadow: var(--shadow-lg); display: flex; gap: 14px; align-items: center; border: 1px solid var(--line); }
.split-badge .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--teal-100); color: var(--teal-600); display: grid; place-items: center; }
.split-badge .ic svg { width: 22px; height: 22px; }
.split-badge-num { font-family: var(--font-display); font-size: 1.5rem; color: var(--navy); font-weight: 800; line-height: 1; }
.split-badge-label { color: var(--muted); font-size: .8rem; margin-top: 3px; }
.split h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); margin: 14px 0 14px; }
.feature-list { display: grid; gap: 18px; margin-top: 26px; }
.feature-item { display: flex; gap: 16px; }
.feature-ic { width: 46px; height: 46px; border-radius: 12px; background: var(--teal-50); color: var(--teal-600); display: grid; place-items: center; flex-shrink: 0; border: 1px solid var(--teal-100); }
.feature-ic svg { width: 22px; height: 22px; }
.feature-item h4 { font-size: 1.02rem; margin-bottom: 3px; color: var(--navy); }
.feature-item p { color: var(--muted); font-size: .9rem; }

/* Benefit tiles */
.benefit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.benefit-grid.four { grid-template-columns: repeat(4, 1fr); }
.faq-layout.two-col { grid-template-columns: 1fr 1fr; gap: 20px; }
.benefit-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: transform .3s, box-shadow .3s, border-color .3s; }
.benefit-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.benefit-card .ic { width: 50px; height: 50px; border-radius: 14px; background: var(--teal-50); color: var(--teal-600); display: grid; place-items: center; margin-bottom: 16px; border: 1px solid var(--teal-100); }
.benefit-card .ic svg { width: 24px; height: 24px; }
.benefit-card h3 { font-size: 1.1rem; margin-bottom: 6px; }
.benefit-card p { color: var(--muted); font-size: .9rem; }

/* ---------- Testimonials ---------- */
.testimonials-section { background: linear-gradient(180deg, var(--paper) 0%, #eaf3f4 100%); border-block: 1px solid var(--line); }
.testimonials-layout { display: grid; grid-template-columns: 1.35fr 1fr; gap: 24px; align-items: stretch; }
.tst-featured { position: relative; background: var(--navy); color: #fff; border-radius: var(--radius-lg); padding: 44px 40px; overflow: hidden; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; justify-content: center; }
.tst-featured::before { content: ''; position: absolute; inset: 0; background: radial-gradient(520px 320px at 100% 0%, rgba(13,148,136,.45), transparent 60%); }
.tst-featured > * { position: relative; }
.tst-quote-mark { position: absolute; top: 28px; right: 34px; width: 64px; height: 64px; color: var(--teal-300); opacity: .35; }
.tst-featured .stars { margin-bottom: 18px; color: #fbbf24; }
.tst-featured .stars svg { width: 18px; height: 18px; }
.tst-featured-quote { font-family: var(--font-display); font-size: 1.4rem; line-height: 1.4; margin-bottom: 28px; color: #fff; font-weight: 600; letter-spacing: -.01em; }
.tst-featured .tst-author b { color: #fff; }
.tst-featured .tst-author > div > span { color: rgba(255,255,255,.62); }
.tst-featured .tst-course { color: var(--teal-300); }
.tst-side { display: grid; gap: 20px; }
.tst-card-v2 { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 13px; transition: transform .3s, box-shadow .3s; }
.tst-card-v2:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.tst-card-v2 p { color: var(--navy-700); font-size: .94rem; line-height: 1.55; flex: 1; }
.tst-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 24px; }
.tst-author { display: flex; align-items: center; gap: 12px; }
.tst-avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--teal), var(--navy-600)); color: #fff; display: grid; place-items: center; font-weight: 700; font-family: var(--font-display); font-size: 1rem; flex-shrink: 0; }
.tst-author b { display: block; color: var(--navy); font-size: .92rem; }
.tst-author > div > span { color: var(--muted); font-size: .78rem; display: block; }
.tst-course { font-size: .76rem; color: var(--teal-600); font-weight: 600; }

/* ---------- FAQ ---------- */
.faq-layout { display: grid; grid-template-columns: .9fr 1.4fr; gap: 56px; align-items: start; }
.faq-list { display: grid; gap: 10px; }
.faq-item { background: var(--white); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.faq-item[open] { border-color: var(--teal-300); box-shadow: var(--shadow-sm); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; font-weight: 600; color: var(--navy); font-size: .98rem; font-family: var(--font-display); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .plus { width: 28px; height: 28px; border-radius: 50%; background: var(--teal-50); color: var(--teal-600); display: grid; place-items: center; flex-shrink: 0; transition: transform .25s, background .2s; }
.faq-item summary .plus svg { width: 14px; height: 14px; }
.faq-item[open] summary .plus { transform: rotate(45deg); background: var(--teal); color: #fff; }
.faq-body { padding: 0 20px 20px; color: var(--muted); font-size: .93rem; line-height: 1.65; }
.faq-body p + p { margin-top: 10px; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--navy); color: #fff; border-radius: var(--radius-xl); padding: 64px 56px; text-align: center; position: relative; overflow: hidden; }
.cta-band::before { content: ''; position: absolute; inset: 0; background: radial-gradient(600px 300px at 15% 0%, rgba(13,148,136,.5), transparent 60%), radial-gradient(500px 300px at 90% 100%, rgba(31,70,128,.7), transparent 60%); }
.cta-band > * { position: relative; }
.cta-band h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); color: #fff; margin: 14px 0 12px; }
.cta-band p { color: rgba(255,255,255,.78); font-size: 1.06rem; max-width: 560px; margin: 0 auto 28px; }
.cta-band .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta-band.light { background: linear-gradient(135deg, var(--teal-50), #e6f7f5); color: var(--navy); border: 1px solid var(--teal-100); }
.cta-band.light::before { display: none; }
.cta-band.light h2 { color: var(--navy); }
.cta-band.light p { color: var(--muted); }

/* ---------- Newsletter ---------- */
.newsletter-band { background: var(--navy); color: #fff; border-radius: var(--radius-lg); padding: 48px; display: grid; grid-template-columns: 1fr auto; gap: 36px; align-items: center; position: relative; overflow: hidden; }
.newsletter-band::before { content: ''; position: absolute; inset: 0; background: radial-gradient(500px 300px at 100% 0%, rgba(13,148,136,.4), transparent 60%); }
.newsletter-band > * { position: relative; z-index: 2; }
.newsletter-band h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 12px 0 8px; }
.newsletter-band p { color: rgba(255,255,255,.76); max-width: 460px; }
.newsletter-form { display: flex; gap: 10px; align-items: stretch; min-width: 380px; }
.newsletter-form input { flex: 1; padding: 14px 18px; border-radius: 100px; border: 1.5px solid rgba(255,255,255,.2); background: rgba(255,255,255,.08); color: #fff; font-size: .95rem; }
.newsletter-form input::placeholder { color: rgba(255,255,255,.5); }
.newsletter-form input:focus { outline: none; border-color: var(--teal-400); background: rgba(255,255,255,.12); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,.66); padding-block: 64px 0; margin-top: 30px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand-logo { display: inline-block; margin-bottom: 18px; }
.footer-brand-logo img { height: 54px; width: auto; display: block; }
.footer-about { font-size: .9rem; max-width: 360px; margin-bottom: 20px; line-height: 1.6; }
.footer-contact { display: grid; gap: 11px; margin-bottom: 22px; }
.footer-contact > div { display: flex; gap: 11px; align-items: flex-start; font-size: .87rem; line-height: 1.5; }
.footer-contact svg { color: var(--teal-400); flex-shrink: 0; margin-top: 3px; width: 16px; height: 16px; }
.footer-contact a:hover { color: var(--teal-300); }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.07); display: grid; place-items: center; color: #fff; transition: background .2s, transform .2s; }
.footer-social a:hover { background: var(--teal); color: #fff; transform: translateY(-2px); }
.footer-col h4 { color: #fff; font-family: var(--font-body); font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 16px; font-weight: 700; }
.footer-col a { display: block; padding: 5px 0; font-size: .9rem; transition: color .2s; }
.footer-col a:hover { color: var(--teal-300); }
.footer-badges { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.footer-badge { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 100px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); font-size: .74rem; font-weight: 600; color: rgba(255,255,255,.85); }
.footer-badge svg { width: 13px; height: 13px; color: var(--teal-400); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-block: 22px; font-size: .84rem; flex-wrap: wrap; gap: 12px; }
.footer-bottom a:hover { color: #fff; }
.footer-credit-sep { display: inline-block; width: 1px; height: 13px; margin-inline: 12px; background: rgba(255,255,255,.24); vertical-align: -2px; }
.footer-credit { color: rgba(255,255,255,.58); }
.footer-credit a { color: var(--teal-300); font-weight: 600; margin-left: 4px; padding-bottom: 2px; border-bottom: 1px solid rgba(45,212,191,.42); transition: color .22s, border-color .22s; }
.footer-credit a:hover { color: #fff; border-bottom-color: #fff; }

/* ---------- Page hero (interior) ---------- */
.page-hero { background: var(--navy); color: #fff; padding-block: 60px; position: relative; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(700px 360px at 85% -20%, rgba(13,148,136,.4), transparent 60%), radial-gradient(500px 300px at 0% 120%, rgba(31,70,128,.5), transparent 60%); }
.page-hero .container { position: relative; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 2.9rem); margin-bottom: 10px; }
.page-hero p { color: rgba(255,255,255,.78); max-width: 600px; font-size: 1.04rem; }
.page-hero-grid { display: grid; grid-template-columns: 1fr auto; gap: 36px; align-items: end; }
.breadcrumb { display: flex; gap: 9px; font-size: .84rem; color: rgba(255,255,255,.6); margin-bottom: 18px; align-items: center; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--teal-300); }
.breadcrumb .sep { opacity: .5; }
.hero-stats { display: flex; gap: 14px; }
.hero-stats > div { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); padding: 16px 20px; border-radius: 14px; text-align: center; min-width: 110px; backdrop-filter: blur(8px); }
.hero-stats strong { display: block; font-family: var(--font-display); font-size: 1.6rem; color: var(--teal-300); line-height: 1; margin-bottom: 6px; }
.hero-stats span { color: rgba(255,255,255,.7); font-size: .78rem; }
.badge-free { display: inline-flex; padding: 7px 16px; border-radius: 100px; background: var(--green); color: #fff; font-weight: 800; font-size: .76rem; letter-spacing: .12em; margin-bottom: 14px; }

/* ---------- Catalogue ---------- */
.catalog { display: grid; grid-template-columns: 280px 1fr; gap: 32px; align-items: start; }
.filter-panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.filter-panel h4 { font-family: var(--font-body); font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 20px 0 10px; font-weight: 700; }
.filter-panel h4:first-child { margin-top: 0; }
.filter-list a { display: flex; justify-content: space-between; align-items: center; padding: 8px 11px; border-radius: 9px; font-size: .9rem; color: var(--navy-700); transition: background .2s, color .2s; gap: 8px; }
.filter-list a:hover { background: var(--line-soft); color: var(--navy); }
.filter-list a.active { background: var(--teal-50); font-weight: 600; color: var(--teal-600); }
.filter-list a .n { color: var(--muted-2); font-size: .78rem; background: var(--line-soft); padding: 1px 8px; border-radius: 100px; }
.filter-list a.active .n { background: var(--teal-100); color: var(--teal-600); }
.search-box { position: relative; }
.search-box input { width: 100%; padding: 12px 14px 12px 42px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--paper); transition: border-color .2s, box-shadow .2s; }
.search-box input:focus { outline: none; border-color: var(--teal); box-shadow: var(--ring); background: #fff; }
.search-box svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); }
.catalog-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; flex-wrap: wrap; gap: 14px; }
.catalog-toolbar .count { color: var(--muted); font-size: .92rem; }
.catalog-toolbar .count b { color: var(--navy); }
.select-styled { padding: 10px 38px 10px 16px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--white) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235a6b82' stroke-width='2.5'><path d='M6 9l6 6 6-6'/></svg>") no-repeat right 14px center; font-weight: 500; color: var(--navy); cursor: pointer; -webkit-appearance: none; appearance: none; }
.select-styled:focus { outline: none; border-color: var(--teal); box-shadow: var(--ring); }
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.chip { padding: 8px 15px; border-radius: 100px; border: 1.5px solid var(--line); font-size: .84rem; font-weight: 500; color: var(--navy-700); transition: all .2s; background: var(--white); display: inline-flex; align-items: center; gap: 6px; }
.chip:hover { border-color: var(--navy); }
.chip.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.chip .n { opacity: .6; font-size: .78rem; }
.filter-mobile-toggle { display: none; }

/* ---------- Course detail ---------- */
.course-hero { background: var(--navy); color: #fff; padding: 48px 0 150px; position: relative; overflow: hidden; }
.course-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(800px 380px at 90% -20%, rgba(13,148,136,.4), transparent 60%), radial-gradient(500px 300px at 0% 120%, rgba(31,70,128,.5), transparent 60%); }
.course-hero .container { position: relative; }
.course-hero-grid { display: grid; grid-template-columns: 1fr 380px; gap: 44px; align-items: start; }
.course-hero h1 { color: #fff; font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin: 14px 0 12px; max-width: 720px; }
.course-hero .lead { color: rgba(255,255,255,.8); font-size: 1.06rem; max-width: 680px; }
.course-hero-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 100px; font-size: .76rem; font-weight: 700; letter-spacing: .02em; }
.pill svg { width: 13px; height: 13px; }
.pill-teal { background: var(--teal); color: #fff; }
.pill-glass { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.18); }
.pill-soft { background: var(--teal-50); color: var(--teal-600); border: 1px solid var(--teal-100); }
.pill-navy { background: var(--navy); color: var(--teal-300); }
.pill-coral { background: var(--coral-soft); color: #c2410c; }
.pill-green { background: var(--green-soft); color: #15803d; }
.course-hero-meta { display: flex; gap: 22px; margin-top: 22px; flex-wrap: wrap; align-items: center; color: rgba(255,255,255,.8); font-size: .9rem; }
.course-hero-grid > aside { min-height: 1px; }
.detail-grid.overlap { margin-top: -120px; position: relative; z-index: 2; }
.detail-grid.overlap .detail-main { padding-top: 140px; }
.course-hero-meta span { display: inline-flex; gap: 7px; align-items: center; }
.course-hero-meta svg { width: 16px; height: 16px; color: var(--teal-300); }
.course-hero-meta .stars { color: #fbbf24; }
.course-hero-meta b { color: #fff; }

.detail-grid { display: grid; grid-template-columns: 1fr 380px; gap: 44px; align-items: start; }
.detail-main h2 { font-size: 1.5rem; margin: 40px 0 16px; }
.detail-main h2:first-child { margin-top: 0; }
.detail-hero-img { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16/8; margin-bottom: 30px; box-shadow: var(--shadow); background: linear-gradient(135deg, var(--navy-600), var(--navy)); }
.detail-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.fact-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 8px; }
.fact { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; display: flex; gap: 12px; align-items: center; }
.fact .ic { width: 38px; height: 38px; border-radius: 10px; background: var(--teal-50); color: var(--teal-600); display: grid; place-items: center; flex-shrink: 0; }
.fact .ic svg { width: 18px; height: 18px; }
.fact b { display: block; color: var(--navy); font-size: .92rem; font-family: var(--font-display); }
.fact span { color: var(--muted); font-size: .74rem; }
.learn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }
.learn-item { display: flex; gap: 11px; font-size: .94rem; color: var(--navy-700); align-items: flex-start; }
.learn-item svg { width: 20px; height: 20px; color: var(--teal-600); flex-shrink: 0; margin-top: 1px; }
.detail-prose p { color: var(--navy-700); margin-bottom: 14px; line-height: 1.7; }
.audience-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.audience-chips span { padding: 8px 14px; border-radius: 100px; background: var(--white); border: 1px solid var(--line); font-size: .86rem; font-weight: 500; color: var(--navy-700); display: inline-flex; gap: 7px; align-items: center; }
.audience-chips svg { width: 14px; height: 14px; color: var(--teal-600); }

/* Curriculum accordion (course page) */
.curriculum-head { align-items: center; margin-bottom: 6px; }
.curriculum-head h2 { margin: 0; }
.curriculum-summary { display: flex; gap: 10px 20px; font-size: .84rem; color: var(--muted); margin-bottom: 16px; flex-wrap: wrap; }
.curriculum-summary span { display: inline-flex; align-items: center; gap: 7px; }
.curriculum-summary svg { color: var(--teal-600); flex-shrink: 0; }
.curriculum-summary b { color: var(--navy); font-weight: 700; }
.curriculum { display: grid; gap: 8px; }
.curric-item { background: var(--white); border: 1.5px solid var(--line); border-radius: 16px; overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.curric-item:hover { border-color: var(--teal-300); }
.curric-item[open] { border-color: var(--teal-300); box-shadow: var(--shadow-sm); }
.curric-item summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 40px minmax(0, 1fr) 30px; align-items: center; gap: 16px; padding: 15px 18px; }
.curric-item summary::-webkit-details-marker { display: none; }
.curric-item summary:focus-visible { outline: 2px solid var(--teal); outline-offset: -2px; border-radius: 16px; }
.curric-num { width: 40px; height: 40px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); color: var(--navy); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: .84rem; }
.curric-item[open] .curric-num { background: var(--navy); border-color: var(--navy); color: var(--teal-300); }
.curric-head { min-width: 0; display: block; }
.curric-title { display: block; font-weight: 600; color: var(--navy); font-size: .98rem; line-height: 1.35; }
.curric-preview { display: block; color: var(--muted); font-size: .84rem; line-height: 1.4; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.curric-item[open] .curric-preview { display: none; }
.curric-chev { width: 30px; height: 30px; border-radius: 50%; background: var(--line-soft); color: var(--muted); display: grid; place-items: center; transition: transform .25s var(--ease), background .2s, color .2s; }
.curric-item[open] .curric-chev { transform: rotate(180deg); background: var(--teal); color: #fff; }
.curric-body { padding: 0 18px 18px 74px; color: var(--muted); font-size: .92rem; line-height: 1.65; }
.curric-body p { max-width: 68ch; }
@media (max-width: 680px) {
  .curric-item summary { grid-template-columns: 34px minmax(0, 1fr) 26px; gap: 12px; padding: 13px 14px; }
  .curric-num { width: 34px; height: 34px; font-size: .78rem; }
  .curric-chev { width: 26px; height: 26px; }
  .curric-preview { display: none; }
  .curric-body { padding: 0 14px 16px 60px; }
}

/* Buy card */
.buy-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; position: sticky; top: 100px; box-shadow: var(--shadow-lg); }
.buy-card-img { border-radius: 14px; overflow: hidden; aspect-ratio: 16/9; margin-bottom: 18px; background: linear-gradient(135deg, var(--navy-600), var(--navy)); position: relative; }
.buy-card-img img { width: 100%; height: 100%; object-fit: cover; }
.buy-card-img .course-cpd { bottom: 10px; left: 10px; }
.buy-price { display: flex; align-items: baseline; gap: 10px; margin-bottom: 4px; }
.buy-price .price { font-size: 2.2rem; }
.buy-save { color: var(--green); font-weight: 600; font-size: .86rem; margin-bottom: 18px; display: inline-flex; gap: 6px; align-items: center; }
.buy-save::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.buy-features { display: grid; gap: 11px; margin: 22px 0 8px; }
.buy-features li { display: flex; gap: 11px; font-size: .9rem; color: var(--navy-700); align-items: center; }
.buy-features svg { width: 18px; height: 18px; color: var(--teal-600); flex-shrink: 0; }
.buy-guarantee { display: flex; gap: 10px; align-items: center; padding: 12px 14px; background: var(--teal-50); border-radius: 12px; margin-top: 16px; font-size: .82rem; color: var(--teal-600); font-weight: 600; }
.buy-guarantee svg { width: 18px; height: 18px; flex-shrink: 0; }
.buy-team { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line-soft); font-size: .84rem; color: var(--muted); text-align: center; }
.buy-team a { color: var(--teal-600); font-weight: 600; }
.soldout-box { background: var(--red-soft); border: 1px solid #fecaca; color: var(--red); border-radius: 12px; padding: 14px 16px; text-align: center; margin-bottom: 10px; font-size: .9rem; }
.soldout-box b { display: block; font-size: 1rem; margin-bottom: 2px; }

.review-item { padding: 20px 0; border-bottom: 1px solid var(--line-soft); }
.review-item:last-child { border-bottom: none; }
.review-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.review-head b { color: var(--navy); display: block; font-size: .94rem; }
.review-head .role { color: var(--muted); font-size: .78rem; display: block; }
.review-item p { color: var(--navy-700); font-size: .94rem; }
.review-summary { display: flex; gap: 22px; align-items: center; padding: 20px 22px; background: var(--white); border: 1px solid var(--line); border-radius: 16px; margin-bottom: 8px; flex-wrap: wrap; }
.review-summary .big { font-family: var(--font-display); font-size: 2.6rem; font-weight: 800; color: var(--navy); line-height: 1; }
.review-summary .stars svg { width: 18px; height: 18px; }
.review-summary p { color: var(--muted); font-size: .86rem; margin-top: 4px; }

/* ---------- Cart / checkout ---------- */
.cart-grid { display: grid; grid-template-columns: 1fr 380px; gap: 32px; align-items: start; }
.cart-item { display: flex; gap: 18px; padding: 18px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 14px; align-items: center; }
.cart-thumb { width: 116px; height: 76px; border-radius: 12px; object-fit: cover; flex-shrink: 0; background: linear-gradient(135deg, var(--navy-600), var(--navy)); display: grid; place-items: center; color: var(--teal-300); overflow: hidden; }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-thumb svg { width: 28px; height: 28px; }
.cart-item .info { flex: 1; min-width: 0; }
.cart-item .info h3 { font-size: 1.02rem; margin-bottom: 4px; }
.cart-item .info .meta { font-size: .8rem; color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; }
.cart-item .price { font-size: 1.15rem; }
.cart-remove { color: var(--muted); width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; transition: background .2s, color .2s; }
.cart-remove:hover { background: var(--red-soft); color: var(--red); }
.cart-remove svg { width: 18px; height: 18px; }
.summary-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: sticky; top: 100px; box-shadow: var(--shadow-sm); }
.summary-card h3 { font-size: 1.1rem; margin-bottom: 14px; }
.summary-row { display: flex; justify-content: space-between; padding: 8px 0; color: var(--navy-700); font-size: .94rem; }
.summary-row.total { border-top: 1.5px solid var(--line); margin-top: 8px; padding-top: 16px; font-size: 1.25rem; font-weight: 800; color: var(--navy); font-family: var(--font-display); }
.summary-note { display: grid; gap: 8px; margin-top: 16px; font-size: .8rem; color: var(--muted); }
.summary-note span { display: flex; gap: 8px; align-items: center; }
.summary-note svg { width: 14px; height: 14px; color: var(--teal-600); flex-shrink: 0; }
.empty-state { text-align: center; padding: 70px 20px; }
.empty-state .ic { width: 72px; height: 72px; border-radius: 50%; background: var(--teal-50); color: var(--teal-600); display: grid; place-items: center; margin: 0 auto 16px; }
.empty-state .ic svg { width: 32px; height: 32px; }
.empty-state h3 { font-size: 1.4rem; margin-bottom: 8px; }
.empty-state p { color: var(--muted); margin-bottom: 22px; }

.pay-option { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer; transition: border-color .2s, background .2s; margin-bottom: 10px; background: var(--white); }
.pay-option:hover { border-color: var(--teal-300); }
.pay-option input { accent-color: var(--teal); width: 18px; height: 18px; }
.pay-option:has(input:checked) { border-color: var(--teal); background: var(--teal-50); }
.pay-option b { display: block; color: var(--navy); font-size: .94rem; }
.pay-option span { color: var(--muted); font-size: .8rem; }

/* ---------- Forms ---------- */
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow-sm); }
.form-card h3 { font-size: 1.25rem; margin-bottom: 18px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .86rem; margin-bottom: 6px; color: var(--navy); }
.field input, .field textarea, .field select { width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 11px; background: var(--paper); transition: border-color .2s, box-shadow .2s, background .2s; color: var(--text); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--teal); box-shadow: var(--ring); background: #fff; }
.field .hint { color: var(--muted); font-size: .78rem; margin-top: 5px; }
.field .err { color: var(--red); font-size: .8rem; margin-top: 5px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.checkbox-row { display: flex; align-items: center; gap: 9px; font-size: .88rem; color: var(--navy-700); }
.checkbox-row input { width: auto; accent-color: var(--teal); }

.auth-wrap { min-height: calc(100vh - 124px); display: grid; grid-template-columns: 1fr 1fr; }
.auth-side { background: var(--navy); color: #fff; padding: 64px 56px; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.auth-side::before { content: ''; position: absolute; inset: 0; background: radial-gradient(600px 400px at 100% 0%, rgba(13,148,136,.45), transparent 60%), radial-gradient(500px 300px at 0% 100%, rgba(31,70,128,.6), transparent 60%); }
.auth-side > * { position: relative; }
.auth-side h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.3rem); margin: 14px 0 14px; }
.auth-side p { color: rgba(255,255,255,.76); max-width: 420px; }
.auth-side .feature-list { margin-top: 28px; max-width: 420px; }
.auth-side .feature-ic { background: rgba(45,212,191,.15); border-color: rgba(45,212,191,.3); color: var(--teal-300); }
.auth-side .feature-item h4 { color: #fff; }
.auth-side .feature-item p { color: rgba(255,255,255,.66); }
.auth-form { display: grid; place-items: center; padding: 50px 24px; }
.auth-card { width: 100%; max-width: 440px; }
.auth-card .form-card { padding: 38px; }
.auth-head { text-align: center; margin-bottom: 26px; }
.auth-head h1 { font-size: 1.7rem; margin-bottom: 6px; }
.auth-head p { color: var(--muted); font-size: .94rem; }
.auth-foot { text-align: center; margin-top: 20px; color: var(--muted); font-size: .9rem; }
.auth-foot a { color: var(--teal-600); font-weight: 600; }

/* ---------- Alerts / toast ---------- */
.alert { padding: 14px 18px; border-radius: 12px; margin-bottom: 20px; font-size: .92rem; display: flex; gap: 10px; align-items: flex-start; }
.alert-success { background: var(--green-soft); color: #166534; border: 1px solid #bbf7d0; }
.alert-error { background: var(--red-soft); color: #991b1b; border: 1px solid #fecaca; }
.alert-info { background: var(--teal-50); color: var(--teal-600); border: 1px solid var(--teal-100); }
.toast { position: fixed; bottom: 26px; right: 26px; background: var(--navy); color: #fff; padding: 15px 22px; border-radius: 14px; box-shadow: var(--shadow-lg); z-index: 1000; transform: translateY(120%); opacity: 0; transition: transform .4s var(--ease), opacity .4s; display: flex; gap: 11px; align-items: center; max-width: 340px; }
.toast.show { transform: translateY(0); opacity: 1; }
.toast svg { width: 20px; height: 20px; color: var(--teal-300); flex-shrink: 0; }

/* ---------- Account shell ---------- */
.dash-grid { display: grid; grid-template-columns: 250px 1fr; gap: 30px; align-items: start; }
.dash-grid > *, .detail-grid > *, .cart-grid > *, .catalog > * { min-width: 0; }
.table-wrap { overflow-x: auto; }
.dash-grid > *, .detail-grid > *, .cart-grid > *, .catalog > *, .split > *, .cpd-explainer > *, .faq-layout > * { min-width: 0; }
.dash-nav { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; position: sticky; top: 100px; }
.dash-user { display: flex; gap: 12px; align-items: center; padding: 8px 10px 16px; border-bottom: 1px solid var(--line-soft); margin-bottom: 10px; }
.dash-user b { display: block; color: var(--navy); font-size: .92rem; }
.dash-user > div > span { color: var(--muted); font-size: .76rem; }
.dash-nav a { display: flex; align-items: center; gap: 11px; padding: 10px 13px; border-radius: 10px; font-weight: 500; font-size: .92rem; color: var(--navy-700); transition: background .2s, color .2s; }
.dash-nav a:hover { background: var(--line-soft); }
.dash-nav a.active { background: var(--navy); color: #fff; }
.dash-nav a svg { width: 18px; height: 18px; }
.dash-nav .sep { height: 1px; background: var(--line); margin: 10px 6px; }
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; margin-bottom: 28px; }
.mini-stat { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; position: relative; }
.mini-stat .label { color: var(--muted); font-size: .82rem; margin-bottom: 6px; padding-right: 48px; }
.mini-stat .num { font-family: var(--font-display); font-size: 1.9rem; font-weight: 800; color: var(--navy); }
.mini-stat .ic { position: absolute; top: 18px; right: 18px; width: 40px; height: 40px; border-radius: 11px; background: var(--teal-50); color: var(--teal-600); display: grid; place-items: center; }
.mini-stat .ic svg { width: 19px; height: 19px; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 22px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; gap: 12px; flex-wrap: wrap; }
.panel-head h3 { font-size: 1.15rem; }
.enrol-row { display: flex; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.enrol-row:last-child { border-bottom: none; }
.enrol-thumb { width: 84px; height: 56px; border-radius: 10px; overflow: hidden; background: linear-gradient(135deg, var(--navy-600), var(--navy)); flex-shrink: 0; display: grid; place-items: center; color: var(--teal-300); }
.enrol-thumb img { width: 100%; height: 100%; object-fit: cover; }
.enrol-row .info { flex: 1; min-width: 0; }
.enrol-row .info b { display: block; color: var(--navy); font-size: .94rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.enrol-row .info span { color: var(--muted); font-size: .78rem; }
.enrol-row .progress { width: 140px; }

/* ---------- Table ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 12px 14px; border-bottom: 1.5px solid var(--line); font-weight: 700; }
.table td { padding: 14px; border-bottom: 1px solid var(--line-soft); font-size: .92rem; vertical-align: middle; }
.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: var(--paper); }
.tag { display: inline-flex; padding: 4px 11px; border-radius: 100px; font-size: .74rem; font-weight: 700; }
.tag-green { background: var(--green-soft); color: #166534; }
.tag-amber { background: var(--amber-soft); color: #92400e; }
.tag-red { background: var(--red-soft); color: #991b1b; }
.tag-gray { background: var(--line-soft); color: var(--muted); }
.tag-teal { background: var(--teal-100); color: var(--teal-600); }

/* ---------- Progress ---------- */
.progress { height: 8px; background: var(--line-soft); border-radius: 100px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: linear-gradient(90deg, var(--teal), var(--teal-400)); border-radius: 100px; }

/* ---------- Certificate ---------- */
.cert { background: var(--white); border: 3px solid var(--navy); border-radius: 10px; padding: 56px; text-align: center; position: relative; max-width: 820px; margin: 0 auto; box-shadow: var(--shadow-lg); overflow: hidden; }
.cert::before { content: ''; position: absolute; inset: 14px; border: 1px solid var(--teal); border-radius: 4px; pointer-events: none; }
.cert::after { content: ''; position: absolute; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(13,148,136,.08), transparent 70%); right: -160px; top: -160px; pointer-events: none; }
.cert-seal { width: 84px; height: 84px; border-radius: 50%; background: var(--navy); color: var(--teal-300); display: grid; place-items: center; margin: 0 auto 20px; box-shadow: 0 6px 18px rgba(11,31,63,.3); }
.cert-seal svg { width: 40px; height: 40px; }
.cert h2 { font-size: 2.3rem; margin-bottom: 6px; }
.cert .cert-sub { color: var(--muted); letter-spacing: .2em; text-transform: uppercase; font-size: .78rem; margin-bottom: 30px; }
.cert .recipient { font-family: var(--font-display); font-size: 2rem; color: var(--teal-600); border-bottom: 2px solid var(--line); display: inline-block; padding: 0 30px 8px; margin-bottom: 20px; font-weight: 700; }
.cert .cert-course { font-size: 1.25rem; color: var(--navy); margin-bottom: 8px; font-weight: 600; }
.cert .cert-hours { color: var(--muted); font-size: .92rem; margin-bottom: 28px; }
.cert-foot { display: flex; justify-content: space-between; margin-top: 40px; font-size: .84rem; color: var(--muted); gap: 20px; flex-wrap: wrap; }
.cert-foot b { color: var(--navy); display: block; }
.cert-outcomes { text-align: left; margin: 10px auto 0; max-width: 560px; font-size: .8rem; color: var(--muted); }
.cert-outcomes b { color: var(--navy); }

/* ---------- Pagination ---------- */
.pagination-wrap { display: flex; flex-direction: column; align-items: center; gap: 16px; margin-top: 40px; }
.pagination { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0; flex-wrap: wrap; justify-content: center; }
.pagination li a, .pagination li span { min-width: 42px; height: 42px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; border: 1.5px solid var(--line); font-weight: 500; font-size: .9rem; background: var(--white); color: var(--navy-700); transition: all .2s var(--ease); }
.pagination li a:hover { border-color: var(--navy); color: var(--navy); transform: translateY(-1px); }
.pagination li.active span { background: var(--navy); color: #fff; border-color: var(--navy); }
.pagination li.disabled span { opacity: .4; cursor: not-allowed; }
.pagination-info { color: var(--muted); font-size: .86rem; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .float-card, .hero-ring { animation: none; } }

/* ---------- Offers ---------- */
.offer-hero { background: var(--navy); color: #fff; padding-block: 76px; position: relative; overflow: hidden; }
.offer-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(700px 400px at 100% 0%, rgba(13,148,136,.45), transparent 60%); }
.offer-hero-grid { position: relative; display: grid; grid-template-columns: 1.3fr 1fr; gap: 50px; align-items: center; z-index: 2; }
.offer-hero h1 { color: #fff; font-size: clamp(2.1rem, 4.4vw, 3.3rem); line-height: 1.05; margin: 14px 0 18px; }
.offer-hero p { font-size: 1.08rem; color: rgba(255,255,255,.8); max-width: 480px; margin-bottom: 28px; }
.offer-hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.offer-hero-art { position: relative; min-height: 280px; }
.offer-ribbon { position: relative; z-index: 2; width: 260px; height: 260px; background: linear-gradient(135deg, var(--teal), var(--teal-400)); color: var(--navy-900); border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; margin-left: auto; box-shadow: 0 30px 80px rgba(13,148,136,.45); transform: rotate(-8deg); animation: ribbonSway 6s var(--ease) infinite alternate; }
@keyframes ribbonSway { from { transform: rotate(-8deg); } to { transform: rotate(8deg); } }
.offer-ribbon-pct { font-family: var(--font-display); font-size: 5.2rem; font-weight: 800; line-height: 1; letter-spacing: -.04em; }
.offer-ribbon-pct small { font-size: 2rem; vertical-align: super; }
.offer-ribbon-label { font-size: .88rem; letter-spacing: .14em; text-align: center; line-height: 1.5; font-weight: 700; }
.offer-ribbon-label b { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; letter-spacing: 0; display: block; }
.offer-blob { position: absolute; border-radius: 50%; filter: blur(40px); opacity: .5; }
.offer-blob-1 { width: 200px; height: 200px; background: var(--teal); top: 20%; left: -20%; }
.offer-blob-2 { width: 160px; height: 160px; background: var(--navy-600); bottom: -10%; right: 10%; }
.offer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.offer-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; display: flex; flex-direction: column; gap: 12px; transition: transform .3s, box-shadow .3s, border-color .3s; position: relative; overflow: hidden; }
.offer-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: transparent; }
.offer-card::before { content: ''; position: absolute; top: 0; right: 0; width: 120px; height: 120px; background: var(--teal-50); border-radius: 50%; transform: translate(45%, -45%); transition: transform .4s var(--ease); }
.offer-card:hover::before { transform: translate(40%, -40%) scale(1.15); }
.offer-card > * { position: relative; z-index: 1; }
.offer-card-icon { width: 54px; height: 54px; border-radius: 14px; background: var(--navy); color: var(--teal-300); display: grid; place-items: center; }
.offer-card-icon svg { width: 26px; height: 26px; }
.offer-tag { display: inline-flex; padding: 5px 12px; border-radius: 100px; font-size: .68rem; font-weight: 800; letter-spacing: .1em; align-self: flex-start; }
.offer-card h3 { font-size: 1.25rem; line-height: 1.2; }
.offer-card p { color: var(--muted); font-size: .92rem; flex: 1; }
.offer-card .btn { align-self: flex-start; margin-top: 4px; }
.offer-fine { font-size: .74rem; color: var(--muted-2); font-style: italic; }
.offer-code { background: var(--paper); border: 1.5px dashed var(--teal); border-radius: 12px; padding: 12px 16px; display: flex; align-items: center; gap: 14px; }
.offer-code-label { font-size: .7rem; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; font-weight: 700; }
.offer-code-value { font-family: var(--font-display); font-size: 1.2rem; font-weight: 800; color: var(--navy); letter-spacing: .04em; margin-left: auto; user-select: all; cursor: copy; }

/* ---------- News ---------- */
.news-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 34px; flex-wrap: wrap; }
.post-featured { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 44px; box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s; }
.post-featured:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.post-featured-media { position: relative; overflow: hidden; aspect-ratio: 16/11; }
.post-featured-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.post-featured:hover .post-featured-media img { transform: scale(1.04); }
.post-featured-body { padding: 42px 40px; display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.post-featured-body h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.15; }
.post-featured-body h2:hover { color: var(--teal-600); }
.post-featured-body p { color: var(--muted); font-size: .98rem; }
.post-readmore { color: var(--teal-600); font-weight: 600; font-size: .92rem; margin-top: 4px; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: transparent; }
.post-card-media { position: relative; aspect-ratio: 16/10; overflow: hidden; background: linear-gradient(135deg, var(--navy-600), var(--navy)); }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.post-card:hover .post-card-media img { transform: scale(1.05); }
.post-card-body { padding: 20px; display: flex; flex-direction: column; flex: 1; gap: 10px; }
.post-card-body h3 { font-size: 1.1rem; line-height: 1.3; }
.post-card-body h3:hover { color: var(--teal-600); }
.post-card-body p { color: var(--muted); font-size: .88rem; flex: 1; }
.post-fallback { position: absolute; inset: 0; display: grid; place-items: center; color: var(--teal-300); }
.post-fallback svg { width: 40px; height: 40px; }
.post-tag { display: inline-flex; padding: 5px 12px; border-radius: 100px; background: var(--teal-50); color: var(--teal-600); font-size: .7rem; font-weight: 700; letter-spacing: .08em; align-self: flex-start; text-transform: uppercase; }
.post-tag-overlay { position: absolute; top: 12px; left: 12px; padding: 5px 12px; border-radius: 100px; background: rgba(6,20,48,.82); color: #fff; font-size: .68rem; font-weight: 700; letter-spacing: .08em; backdrop-filter: blur(4px); text-transform: uppercase; }
.post-meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-size: .82rem; color: var(--muted); }
.post-meta-dark { color: rgba(255,255,255,.7); }
.post-author { display: inline-flex; align-items: center; gap: 8px; }
.post-author-av { width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, var(--teal), var(--navy-600)); color: #fff; display: grid; place-items: center; font-weight: 700; font-family: var(--font-display); font-size: .78rem; }
.post-hero-img { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 28px; aspect-ratio: 16/8; box-shadow: var(--shadow); }
.post-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.post-lead { font-family: var(--font-display); font-size: 1.25rem; line-height: 1.5; color: var(--navy); padding: 18px 0 24px; border-bottom: 1px solid var(--line); margin-bottom: 28px; font-weight: 600; }
.post-body h2 { font-size: 1.5rem; margin: 32px 0 14px; }
.post-body h3 { font-size: 1.2rem; margin: 24px 0 10px; }
.post-body p { font-size: 1.02rem; line-height: 1.75; color: var(--navy-700); margin-bottom: 16px; }
.post-share { display: flex; align-items: center; gap: 10px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; }
.post-share a { width: 38px; height: 38px; border-radius: 50%; background: var(--line-soft); color: var(--navy); display: grid; place-items: center; transition: background .2s, color .2s, transform .2s; }
.post-share a:hover { background: var(--navy); color: var(--teal-300); transform: translateY(-2px); }

/* ---------- Team / contact ---------- */
.contact-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.contact-row { display: flex; gap: 13px; margin-bottom: 18px; align-items: flex-start; }
.contact-row:last-child { margin-bottom: 0; }
.contact-row .ic { width: 40px; height: 40px; border-radius: 11px; background: var(--teal-50); color: var(--teal-600); display: grid; place-items: center; flex-shrink: 0; }
.contact-row .ic svg { width: 18px; height: 18px; }
.contact-row b { color: var(--navy); display: block; font-size: .92rem; }
.contact-row span, .contact-row a { color: var(--muted); font-size: .9rem; }
.contact-row a:hover { color: var(--teal-600); }
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.timeline { display: grid; gap: 0; position: relative; padding-left: 26px; }
.timeline::before { content: ''; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--teal-100); }
.timeline-item { position: relative; padding-bottom: 26px; }
.timeline-item::before { content: ''; position: absolute; left: -26px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--teal); border: 3px solid var(--teal-100); }
.timeline-item b { display: block; color: var(--navy); font-size: 1rem; font-family: var(--font-display); }
.timeline-item p { color: var(--muted); font-size: .9rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .has-dropdown .mega-menu { width: 720px; }
  .pathway-grid, .course-grid { grid-template-columns: repeat(3, 1fr); }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 44px; }
  .hero-visual { max-width: 520px; margin: 0 auto; padding: 18px 24px 30px; }
  .float-card.fc-1 { left: 0; } .float-card.fc-2 { right: 0; } .float-card.fc-3 { left: 6px; }
  .pathway-grid, .course-grid, .course-grid.cols-3, .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 30px 20px; }
  .stats-grid > div { border-right: none; }
  .steps-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps-grid-4::before { display: none; }
  .testimonials-layout, .cpd-explainer, .faq-layout { grid-template-columns: 1fr; }
  .tst-row, .benefit-grid, .benefit-grid.four, .value-grid, .offer-grid { grid-template-columns: 1fr 1fr; }
  .detail-grid, .cart-grid, .catalog, .dash-grid, .course-hero-grid { grid-template-columns: 1fr; }
  .course-hero { padding-bottom: 48px; }
  .detail-grid.overlap { margin-top: 0; }
  .detail-grid.overlap .detail-main { padding-top: 0; }
  .detail-grid.overlap { display: flex; flex-direction: column; }
  .detail-grid.overlap > aside { order: -1; margin-top: 24px; }
  .filter-panel, .buy-card, .summary-card, .dash-nav { position: static; max-height: none; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .nav-links { gap: 0; margin-left: 12px; }
  .nav-links > li > a { padding: 9px 11px; font-size: .9rem; }
  .fact-strip { grid-template-columns: repeat(2, 1fr); }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .page-hero-grid { grid-template-columns: 1fr; }
  .newsletter-band { grid-template-columns: 1fr; padding: 36px; }
  .newsletter-form { min-width: 0; flex-direction: column; }
  .post-featured { grid-template-columns: 1fr; }
  .post-featured-body { padding: 30px 26px; }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .offer-hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .offer-hero-art { display: flex; justify-content: center; }
  .offer-ribbon { width: 220px; height: 220px; margin: 0; }
  .filter-mobile-toggle { display: inline-flex; margin-bottom: 16px; }
  .filter-panel { display: none; }
  .filter-panel.open { display: block; }
}
@media (max-width: 680px) {
  .section { padding-block: 60px; }
  .nav-links, .topbar-links, .div-hide { display: none; }
  .burger { display: grid; }
  .container { padding-inline: 16px; }
  .brand-logo img { height: 46px; }
  .nav { gap: 10px; min-height: 70px; }
  .nav-actions { gap: 4px; }
  .nav-drawer-cta { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
  .topbar-badges { flex-wrap: wrap; gap: 6px 14px; }
  .hero { padding-block: 52px 60px; }
  .hero h1 { font-size: clamp(1.9rem, 8.5vw, 2.6rem); }
  .hero-sub { font-size: 1.02rem; }
  .hero-trust { gap: 22px; }
  .hero-visual { padding: 12px 14px 24px; }
  .float-card { padding: 9px 11px; }
  .float-card .ic { width: 34px; height: 34px; }
  .float-card b { font-size: .8rem; }
  .float-card span { font-size: .68rem; }
  .float-card.fc-2 { display: none; }
  .hero-ring { display: none; }
  .trust-strip .container { gap: 10px 20px; }
  .pathway-grid, .course-grid, .course-grid.cols-3, .cat-grid, .steps-grid, .learn-grid, .field-row, .cpd-cards, .benefit-grid, .benefit-grid.four, .value-grid, .offer-grid, .fact-strip, .faq-layout.two-col { grid-template-columns: 1fr; }
  .hero-photo-caption { display: none; }
  .enrol-row { flex-wrap: wrap; }
  .enrol-row .info { flex: 1 1 calc(100% - 100px); }
  .enrol-row .progress { width: 100%; order: 5; }
  .enrol-row .btn { margin-left: auto; }
  .cpd-card.dark { grid-column: span 1; }
  .steps-grid-4 { grid-template-columns: 1fr; }
  .tst-row, .post-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-num { font-size: 2.2rem; }
  .cta-band { padding: 40px 22px; border-radius: var(--radius-lg); }
  .cart-item { flex-wrap: wrap; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-credit-sep { display: none; }
  .footer-credit { display: block; margin-top: 8px; }
  .cert { padding: 32px 18px; }
  .cert h2 { font-size: 1.6rem; }
  .cert .recipient { font-size: 1.5rem; }
  .tst-featured { padding: 30px 24px; }
  .tst-featured-quote { font-size: 1.15rem; }
  .form-card, .auth-card .form-card { padding: 24px; }
  .module-body { padding-left: 16px; }
  .course-hero-meta { gap: 14px; }
  .hero-stats { flex-wrap: wrap; }
  .hero-stats > div { flex: 1 1 100px; min-width: 90px; padding: 14px; }
  .offer-ribbon { width: 180px; height: 180px; }
  .offer-ribbon-pct { font-size: 3.8rem; }
  .news-toolbar { flex-direction: column; align-items: stretch; }
  .post-lead { font-size: 1.08rem; }
  .review-summary { gap: 14px; }

  /* Mobile nav drawer */
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--line); padding: 14px 20px 20px; gap: 2px;
    box-shadow: var(--shadow-lg); max-height: calc(100vh - 110px); overflow: auto; margin-left: 0;
  }
  .nav-links.open > li > a { padding: 12px 10px; font-size: 1rem; width: 100%; justify-content: space-between; }
  .nav-links.open .mega-menu { display: none; }
  .nav-links.open .mobile-sub { display: grid; gap: 2px; padding: 4px 0 8px 10px; }
  .nav-links.open .mobile-sub a { display: block; padding: 8px 10px; border-radius: 8px; color: var(--muted); font-size: .92rem; }
  .nav-links.open .mobile-sub a:hover { background: var(--line-soft); color: var(--navy); }
}
.mobile-sub { display: none; }

/* ---------- Print (certificate) ---------- */
@media print {
  .site-header, .topbar, .site-footer, .dash-nav, .no-print, .toast { display: none !important; }
  body { background: #fff; }
  .cert { box-shadow: none; border-color: #000; }
}

/* ============================================================
   ADMIN PANEL — dedicated layout (re-themed to navy/teal)
   ============================================================ */

.admin-body { background: #f3f6f9; min-height: 100vh; margin: 0; }

.admin-sidebar { position: fixed; top: 0; left: 0; bottom: 0; width: 260px; background: var(--navy-900); color: rgba(255,255,255,.7); padding: 22px 16px 30px; overflow-y: auto; z-index: 100; display: flex; flex-direction: column; box-shadow: 4px 0 30px rgba(11,31,63,.08); }
.admin-sidebar::-webkit-scrollbar { width: 6px; }
.admin-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 10px; }
.admin-brand { display: flex; align-items: center; justify-content: center; padding: 14px 14px 20px; margin-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,.08); }
.admin-brand .logo-card { width: 100%; padding: 10px 14px; }
.admin-brand img { height: 46px; width: auto; }
.admin-sidebar-label { font-size: .68rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 700; color: rgba(255,255,255,.4); padding: 16px 14px 8px; }
.admin-nav { display: flex; flex-direction: column; gap: 3px; margin-bottom: 4px; }
.admin-nav a, .admin-nav-logout { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 10px; color: rgba(255,255,255,.78); font-size: .93rem; font-weight: 500; background: transparent; border: none; width: 100%; text-align: left; cursor: pointer; transition: background .2s, color .2s, transform .15s; position: relative; font-family: inherit; }
.admin-nav a svg, .admin-nav-logout svg { width: 19px; height: 19px; flex-shrink: 0; opacity: .85; }
.admin-nav a:hover, .admin-nav-logout:hover { background: rgba(255,255,255,.06); color: #fff; }
.admin-nav a.active { background: var(--teal); color: #fff; box-shadow: 0 4px 12px rgba(13,148,136,.35); }
.admin-nav a.active svg { opacity: 1; }
.admin-nav-badge { margin-left: auto; background: var(--teal); color: #fff; font-size: .7rem; font-weight: 700; padding: 2px 8px; border-radius: 100px; }
.admin-nav a.active .admin-nav-badge { background: #fff; color: var(--teal-600); }
.admin-sidebar-user { display: none; }

.admin-user-menu { position: relative; }
.admin-user-trigger { display: flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 100px; background: var(--paper); border: 1px solid var(--line); transition: background .2s, border-color .2s; cursor: pointer; }
.admin-user-trigger:hover { background: var(--line-soft); border-color: var(--navy-600); }
.admin-user-avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--teal), var(--navy-600)); color: #fff; display: grid; place-items: center; font-weight: 700; font-family: var(--font-display); font-size: .95rem; flex-shrink: 0; overflow: hidden; }
.admin-user-avatar.sm { width: 44px; height: 44px; font-size: 1.05rem; }
.admin-user-avatar img { width: 100%; height: 100%; object-fit: cover; }
.admin-user-info { display: flex; flex-direction: column; line-height: 1.25; text-align: left; }
.admin-user-info b { color: var(--navy); font-size: .86rem; font-weight: 600; }
.admin-user-info span { color: var(--muted); font-size: .72rem; }
.admin-user-chev { color: var(--muted); transition: transform .2s; }
.admin-user-menu.open .admin-user-chev { transform: rotate(180deg); }
.admin-user-dropdown { position: absolute; top: calc(100% + 8px); right: 0; width: 280px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 24px 60px rgba(11,31,63,.14); padding: 8px; z-index: 200; opacity: 0; pointer-events: none; transform: translateY(-8px); transition: opacity .2s, transform .2s var(--ease); }
.admin-user-menu.open .admin-user-dropdown { opacity: 1; pointer-events: auto; transform: translateY(0); }
.admin-dropdown-head { display: flex; align-items: center; gap: 12px; padding: 12px; margin-bottom: 6px; background: var(--paper); border-radius: 10px; }
.admin-dropdown-head b { display: block; color: var(--navy); font-weight: 600; font-size: .92rem; }
.admin-dropdown-head span { color: var(--muted); font-size: .8rem; word-break: break-all; }
.admin-dropdown-item { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 9px; color: var(--navy-700); font-size: .9rem; font-weight: 500; background: transparent; border: none; width: 100%; text-align: left; cursor: pointer; transition: background .2s, color .2s; font-family: inherit; }
.admin-dropdown-item:hover { background: var(--line-soft); color: var(--navy); }
.admin-dropdown-item.danger:hover { background: var(--red-soft); color: var(--red); }
.admin-dropdown-item svg { color: var(--muted); flex-shrink: 0; }
.admin-dropdown-item:hover svg { color: currentColor; }
.admin-dropdown-sep { height: 1px; background: var(--line); margin: 6px 4px; }

.admin-main { margin-left: 260px; min-height: 100vh; }
.admin-topbar { background: #fff; border-bottom: 1px solid var(--line); padding: 16px 32px; display: flex; align-items: center; gap: 16px; position: sticky; top: 0; z-index: 50; }
.admin-burger { display: none; width: 38px; height: 38px; border-radius: 10px; background: transparent; color: var(--navy); align-items: center; justify-content: center; }
.admin-breadcrumb { display: flex; align-items: center; gap: 9px; font-size: .9rem; color: var(--muted); }
.admin-breadcrumb a { color: var(--navy-700); font-weight: 600; }
.admin-breadcrumb a:hover { color: var(--teal-600); }
.admin-breadcrumb .sep { color: var(--muted-2); }
.admin-topbar-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.admin-topbar-link { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 100px; background: var(--paper); border: 1px solid var(--line); color: var(--navy-700); font-weight: 500; font-size: .88rem; transition: background .2s, color .2s, border-color .2s, transform .15s; }
.admin-topbar-link:hover { background: var(--navy); color: #fff; border-color: var(--navy); transform: translateY(-1px); }
.admin-topbar-link svg { flex-shrink: 0; }
@media (max-width: 768px) { .admin-topbar-link span { display: none; } .admin-topbar-link { padding: 10px; } }

.admin-content { padding: 32px; max-width: 1500px; margin: 0 auto; }
.admin-page-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 28px; gap: 18px; flex-wrap: wrap; }
.admin-page-head h1 { font-family: var(--font-display); font-size: 1.8rem; color: var(--navy); margin: 0; letter-spacing: -.02em; line-height: 1.1; }
.admin-page-head p { color: var(--muted); margin-top: 6px; font-size: .95rem; }
.admin-page-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.admin-stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 26px; }
.admin-stat { background: #fff; border-radius: 16px; padding: 22px; border: 1px solid var(--line); position: relative; overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s; }
.admin-stat:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(11,31,63,.06); }
.admin-stat-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 18px; }
.admin-stat-label { color: var(--muted); font-size: .82rem; font-weight: 500; }
.admin-stat-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; }
.admin-stat-ic.ic-gold { background: var(--teal-100); color: var(--teal-600); }
.admin-stat-ic.ic-green { background: var(--green-soft); color: #166534; }
.admin-stat-ic.ic-blue { background: #e3ecf8; color: var(--navy-600); }
.admin-stat-ic.ic-purple { background: #ece8f5; color: #5d4794; }
.admin-stat-ic svg { width: 20px; height: 20px; }
.admin-stat-value { font-family: var(--font-display); font-size: 2rem; font-weight: 800; color: var(--navy); line-height: 1; margin-bottom: 4px; letter-spacing: -.02em; }
.admin-stat-trend { display: inline-flex; gap: 5px; align-items: center; font-size: .82rem; font-weight: 600; }
.admin-stat-trend.up { color: #166534; }
.admin-stat-trend.down { color: var(--red); }
.admin-stat-trend.flat { color: var(--muted); }

.admin-panel { background: #fff; border-radius: 16px; padding: 24px; border: 1px solid var(--line); margin-bottom: 22px; }
.admin-panel-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--line-soft); gap: 14px; flex-wrap: wrap; }
.admin-panel-head h3 { font-family: var(--font-display); font-size: 1.15rem; color: var(--navy); margin: 0; }
.admin-grid-2 { display: grid; grid-template-columns: 2fr 1fr; gap: 22px; margin-bottom: 22px; align-items: start; }

.revenue-chart { display: grid; grid-template-columns: repeat(12, 1fr); gap: 10px; align-items: end; height: 220px; padding: 14px 0; }
.revenue-chart .bar { position: relative; background: linear-gradient(180deg, var(--teal-100) 0%, var(--teal) 100%); border-radius: 6px 6px 0 0; min-height: 6px; transition: opacity .2s, transform .2s; display: flex; flex-direction: column; justify-content: flex-end; }
.revenue-chart .bar:hover { opacity: .8; transform: translateY(-2px); }
.revenue-chart .bar.active { background: linear-gradient(180deg, var(--navy-600) 0%, var(--navy) 100%); }
.revenue-chart .bar::before { content: attr(data-amount); position: absolute; top: -22px; left: 50%; transform: translateX(-50%); font-size: .72rem; font-weight: 600; color: var(--navy); opacity: 0; transition: opacity .2s; white-space: nowrap; }
.revenue-chart .bar:hover::before { opacity: 1; }
.revenue-chart .bar::after { content: attr(data-label); position: absolute; bottom: -22px; left: 50%; transform: translateX(-50%); font-size: .72rem; color: var(--muted); font-weight: 500; }
.revenue-chart-wrap { padding-bottom: 28px; padding-top: 22px; }

.top-courses-list .top-course-row { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.top-courses-list .top-course-row:last-child { border-bottom: none; }
.top-course-thumb { width: 48px; height: 48px; border-radius: 10px; background: linear-gradient(135deg, var(--navy-600), var(--navy)); color: var(--teal-300); display: grid; place-items: center; font-size: 1.3rem; flex-shrink: 0; overflow: hidden; }
.top-course-thumb img { width: 100%; height: 100%; object-fit: cover; }
.top-course-info { flex: 1; min-width: 0; }
.top-course-info b { display: block; color: var(--navy); font-weight: 600; font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-course-info span { color: var(--muted); font-size: .8rem; }
.top-course-num { font-family: var(--font-display); font-size: 1.1rem; font-weight: 800; color: var(--teal-600); }

.activity-feed .activity-row { display: flex; align-items: flex-start; gap: 13px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.activity-feed .activity-row:last-child { border-bottom: none; }
.activity-ic { width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0; display: grid; place-items: center; }
.activity-ic.ic-order { background: var(--green-soft); color: #166534; }
.activity-ic.ic-user { background: #e3ecf8; color: var(--navy-600); }
.activity-ic.ic-review { background: var(--teal-100); color: var(--teal-600); }
.activity-ic svg { width: 16px; height: 16px; }
.activity-body { flex: 1; min-width: 0; }
.activity-body b { color: var(--navy); font-weight: 600; font-size: .9rem; }
.activity-body p { color: var(--muted); font-size: .82rem; margin: 2px 0 0; }
.activity-time { color: var(--muted-2); font-size: .78rem; white-space: nowrap; }

.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); padding: 12px 14px; background: #f7f8fa; border-bottom: 1px solid var(--line); font-weight: 700; }
.admin-table th:first-child { border-top-left-radius: 10px; }
.admin-table th:last-child { border-top-right-radius: 10px; }
.admin-table td { padding: 14px; border-bottom: 1px solid var(--line-soft); font-size: .92rem; color: var(--navy-700); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: #f9fafc; }
.admin-table .row-thumb { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; background: var(--line-soft); display: inline-block; vertical-align: middle; margin-right: 10px; }
.admin-table-actions { display: flex; gap: 6px; justify-content: flex-end; }
.admin-action-btn { width: 32px; height: 32px; border-radius: 8px; display: inline-grid; place-items: center; background: var(--line-soft); color: var(--navy-700); transition: background .2s, color .2s; }
.admin-action-btn:hover { background: var(--navy); color: #fff; }
.admin-action-btn.danger:hover { background: var(--red); }
.admin-action-btn svg { width: 15px; height: 15px; }
.admin-toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 20px; }
.admin-toolbar .search-box { flex: 1; max-width: 360px; }
.admin-toolbar .search-box input { background: #fff; }
.admin-form-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 22px; align-items: start; }
.admin-form-grid .admin-panel { margin-bottom: 0; }

@media (max-width: 1024px) {
  .admin-sidebar { transform: translateX(-100%); transition: transform .3s var(--ease); }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-main { margin-left: 0; }
  .admin-burger { display: inline-flex; }
  .admin-stat-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-grid-2 { grid-template-columns: 1fr; }
  .admin-form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .admin-content { padding: 20px; }
  .admin-topbar { padding: 14px 18px; }
  .admin-stat-grid { grid-template-columns: 1fr; }
  .admin-page-head { flex-direction: column; align-items: stretch; }
}

.avatar-uploader { display: flex; align-items: center; gap: 18px; padding: 14px; background: var(--paper); border-radius: 12px; border: 1px solid var(--line-soft); }
.avatar-preview { width: 78px; height: 78px; border-radius: 50%; overflow: hidden; background: linear-gradient(135deg, var(--teal), var(--navy-600)); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 1.8rem; flex-shrink: 0; }
.avatar-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.avatar-actions .btn { cursor: pointer; }
.avatar-large { width: 120px; height: 120px; border-radius: 50%; overflow: hidden; background: linear-gradient(135deg, var(--teal), var(--navy-600)); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 2.5rem; }
.avatar-large img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ============================================================
   PHOTO LAYER — full-bleed hero, photo cards, photo backgrounds
   ============================================================ */

/* ---------- Full-bleed photo hero ---------- */
.hero.has-photo { padding-block: 92px 104px; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 72% 40%; z-index: 0; }
.hero.has-photo::before {
  z-index: 1;
  background:
    linear-gradient(90deg, var(--navy) 0%, rgba(11,31,63,.97) 30%, rgba(11,31,63,.86) 48%, rgba(11,31,63,.45) 72%, rgba(11,31,63,.6) 100%),
    linear-gradient(180deg, rgba(11,31,63,.35) 0%, transparent 28%, transparent 62%, var(--navy) 100%);
}
.hero.has-photo .hero-grid-bg { z-index: 1; opacity: .22; }
.hero.has-photo .container { z-index: 2; }
.hero.has-photo .hero-inner { grid-template-columns: 1.1fr .9fr; }

.hero-panel-wrap { position: relative; padding: 44px 26px 48px 40px; }
.hero-panel {
  position: relative; background: rgba(9,26,54,.55); border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius-lg); padding: 22px; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 40px 90px rgba(0,0,0,.4); max-width: 460px; margin-left: auto; padding-bottom: 64px;
}
.hero-panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; gap: 12px; }
.hero-panel-head h3 { color: #fff; font-size: 1rem; display: flex; align-items: center; gap: 9px; }
.hero-panel-head h3 .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--teal-400); box-shadow: 0 0 0 4px rgba(45,212,191,.25); }
.hero-panel-head a { color: var(--teal-300); font-size: .8rem; font-weight: 600; white-space: nowrap; }
.hero-course { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 14px; background: rgba(255,255,255,.06); margin-bottom: 8px; transition: background .2s, transform .2s; }
.hero-course:hover { background: rgba(255,255,255,.13); transform: translateX(3px); }
.hero-course img { width: 66px; height: 50px; border-radius: 10px; object-fit: cover; flex-shrink: 0; background: var(--navy-600); }
.hero-course .t { flex: 1; min-width: 0; }
.hero-course b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: #fff; font-size: .86rem; line-height: 1.25; }
.hero-course span { color: rgba(255,255,255,.6); font-size: .74rem; display: block; margin-top: 2px; }
.hero-course .p { color: var(--teal-300); font-weight: 700; font-size: .9rem; white-space: nowrap; }
.hero-panel-foot { display: flex; gap: 10px; margin-top: 14px; }
.hero-panel-foot .btn { flex: 1; }
.hero-panel-wrap .float-card.fc-1 { top: 6px; left: -4px; }
.hero-panel-wrap .float-card.fc-3 { right: 10px; bottom: 30px; left: auto; top: auto; }

/* ---------- Pathway cards with photos ---------- */
.pathway-card.photo { padding: 0; }
.pathway-media { position: relative; aspect-ratio: 16/9.5; overflow: hidden; background: linear-gradient(135deg, var(--navy-600), var(--navy)); }
.pathway-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.pathway-card:hover .pathway-media img { transform: scale(1.06); }
.pathway-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,20,48,.05) 35%, rgba(6,20,48,.6) 100%); }
.pathway-body .pathway-ic { position: relative; z-index: 2; margin: -50px 0 14px; width: 56px; height: 56px; border: 3px solid #fff; box-shadow: 0 8px 20px rgba(11,31,63,.25); }
.pathway-media .pill { position: absolute; top: 14px; right: 14px; z-index: 2; }
.pathway-body { padding: 0 22px 22px; display: flex; flex-direction: column; flex: 1; }

/* Category cards with thumbnails */
.cat-card.thumb { align-items: center; }
.cat-thumb { width: 72px; height: 72px; flex-shrink: 0; position: relative; }
.cat-thumb .im { display: block; width: 100%; height: 100%; border-radius: 16px; overflow: hidden; background: linear-gradient(135deg, var(--navy-600), var(--navy)); }
.cat-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.cat-card:hover .cat-thumb img { transform: scale(1.08); }
.cat-thumb .cat-ic { position: absolute; right: -6px; bottom: -6px; width: 30px; height: 30px; border-radius: 9px; background: #fff; color: var(--teal-600); box-shadow: var(--shadow-sm); }
.cat-thumb .cat-ic svg { width: 15px; height: 15px; }

/* ---------- Sections / bands with a photo background ---------- */
.section-photo { position: relative; overflow: hidden; }
.section-photo > .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.section-photo > .container { position: relative; z-index: 2; }
.stats-band.section-photo::before { z-index: 1; background: linear-gradient(90deg, rgba(11,31,63,.97) 0%, rgba(11,31,63,.9) 50%, rgba(11,31,63,.82) 100%); }

.cta-band.photo .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.cta-band.photo::before { z-index: 1; background: linear-gradient(90deg, rgba(11,31,63,.94) 0%, rgba(11,31,63,.86) 55%, rgba(13,148,136,.55) 100%); }
.cta-band > * { z-index: 2; }
.cta-band.photo { text-align: left; padding: 60px 64px; }
.cta-band.photo .cta-inner { display: grid; grid-template-columns: 1.3fr auto; gap: 32px; align-items: center; }
.cta-band.photo p { margin: 0 0 22px; }
.cta-band.photo .actions { justify-content: flex-start; }

.tst-featured .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; opacity: .32; }
.tst-featured::before { z-index: 1; background: linear-gradient(180deg, rgba(11,31,63,.78) 0%, rgba(11,31,63,.95) 100%), radial-gradient(520px 320px at 100% 0%, rgba(13,148,136,.45), transparent 60%); }
.tst-featured > :not(.bg) { position: relative; z-index: 2; }

/* ---------- Interior page heroes with a photo ---------- */
.page-hero.has-photo { padding-block: 72px; }
.page-hero-img { position: absolute; top: 0; right: 0; bottom: 0; width: 60%; height: 100%; object-fit: cover; object-position: center; z-index: 0; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 40%); mask-image: linear-gradient(90deg, transparent 0%, #000 40%); }
.page-hero.has-photo::before { z-index: 1; background: linear-gradient(90deg, var(--navy) 38%, rgba(11,31,63,.78) 58%, rgba(11,31,63,.42) 100%), linear-gradient(180deg, transparent 45%, rgba(11,31,63,.85) 100%); }
.page-hero .container { z-index: 2; }
.page-hero.has-photo .hero-stats > div { background: rgba(6,20,48,.45); backdrop-filter: blur(10px); }

.course-hero-bg { position: absolute; inset: -40px; width: calc(100% + 80px); height: calc(100% + 80px); object-fit: cover; filter: blur(26px) saturate(1.15); opacity: .38; z-index: 0; }
.course-hero::before { z-index: 1; background: linear-gradient(180deg, rgba(11,31,63,.6) 0%, rgba(11,31,63,.9) 70%, var(--navy) 100%), radial-gradient(800px 380px at 90% -20%, rgba(13,148,136,.35), transparent 60%); }
.course-hero .container { z-index: 2; }

/* ---------- Photo collage in split sections ---------- */
.split-media.collage { padding: 0 34px 34px 0; }
.split-media.collage .collage-small { position: absolute; right: 0; bottom: 0; width: 46%; aspect-ratio: 1.05; object-fit: cover; border-radius: 18px; border: 6px solid var(--white); box-shadow: var(--shadow-lg); }
.split-media.collage .split-badge { bottom: auto; top: -22px; left: -22px; }

/* ---------- Gallery strip ---------- */
.gallery-strip { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; grid-template-rows: 200px 200px; gap: 14px; }
.gallery-strip figure { position: relative; overflow: hidden; border-radius: 18px; margin: 0; background: linear-gradient(135deg, var(--navy-600), var(--navy)); }
.gallery-strip figure:first-child { grid-row: span 2; }
.gallery-strip img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery-strip figure:hover img { transform: scale(1.05); }
.gallery-strip figcaption { position: absolute; left: 14px; bottom: 12px; color: #fff; font-size: .78rem; font-weight: 600; background: rgba(6,20,48,.62); padding: 6px 10px; border-radius: 8px; backdrop-filter: blur(4px); }

/* ---------- Auth side with photo ---------- */
.auth-side .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; opacity: .38; }
.auth-side::before { z-index: 1; background: linear-gradient(180deg, rgba(11,31,63,.82), rgba(11,31,63,.96)), radial-gradient(600px 400px at 100% 0%, rgba(13,148,136,.45), transparent 60%); }
.auth-side > :not(.bg) { position: relative; z-index: 2; }

/* ---------- Photo tile inside CPD explainer ---------- */
.cpd-photo { grid-column: span 2; position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/6; }
.cpd-photo img { width: 100%; height: 100%; object-fit: cover; }
.cpd-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6,20,48,.75), rgba(6,20,48,.1)); }
.cpd-photo .cap { position: absolute; left: 20px; bottom: 16px; z-index: 2; color: #fff; }
.cpd-photo .cap b { display: block; font-family: var(--font-display); font-size: 1rem; }
.cpd-photo .cap span { font-size: .8rem; color: rgba(255,255,255,.75); }

/* ---------- Responsive (photo layer) ---------- */
@media (max-width: 1024px) {
  .hero.has-photo .hero-inner { grid-template-columns: 1fr; }
  .hero-panel-wrap { max-width: 540px; margin: 0 auto; padding: 44px 16px 48px; }
  .hero-panel { margin: 0 auto; }
  .hero-bg { object-position: 65% 30%; }
  .hero.has-photo::before { background: linear-gradient(180deg, rgba(11,31,63,.9) 0%, rgba(11,31,63,.82) 45%, rgba(11,31,63,.92) 100%); }
  .page-hero-img { width: 100%; opacity: .5; -webkit-mask-image: none; mask-image: none; }
  .page-hero.has-photo::before { background: linear-gradient(180deg, rgba(11,31,63,.86), rgba(11,31,63,.96)); }
  .gallery-strip { grid-template-columns: 1fr 1fr; grid-template-rows: 200px 200px 200px; }
  .gallery-strip figure:first-child { grid-row: span 1; grid-column: span 2; }
  .cta-band.photo .cta-inner { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .hero.has-photo { padding-block: 56px 64px; }
  .hero-panel-wrap { padding: 40px 6px 44px; }
  .hero-panel { padding: 16px; }
  .hero-panel-wrap .float-card.fc-1 { left: 0; top: -10px; }
  .hero-panel-wrap .float-card.fc-3 { right: 4px; bottom: 30px; }
  .pathway-media { aspect-ratio: 16/8; }
  .cat-thumb { width: 60px; height: 60px; }
  .gallery-strip { grid-template-columns: 1fr 1fr; grid-template-rows: 160px 160px 160px; gap: 10px; }
  .cta-band.photo { padding: 36px 22px; }
  .split-media.collage { padding: 0 18px 18px 0; }
  .split-media.collage .collage-small { border-width: 4px; }
  .cpd-photo { aspect-ratio: 16/8; }
}

/* ============================================================
   V3 — ROLES LAYER
   Role-led navigation, role landing pages, pricing, certificate
   preview, comparison table, testimonial marquee, site search.
   ============================================================ */

/* ---------- Top bar announcement ---------- */
.topbar-announce { display: inline-flex; align-items: center; gap: 9px; color: #fff; font-weight: 500; }
.topbar-announce .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal-400); box-shadow: 0 0 0 4px rgba(45,212,191,.22); flex-shrink: 0; }
.topbar-announce svg { transition: transform .2s; }
.topbar-announce:hover svg { transform: translateX(3px); }
.topbar-links span { display: inline-flex; gap: 6px; align-items: center; }
.topbar-links span svg { color: var(--teal-400); }

/* ---------- Mega menu with role tiles ---------- */
.has-dropdown .mega-menu { width: min(1040px, calc(100vw - 40px)); }
.mega-layout.three { grid-template-columns: 1.35fr 1fr .85fr; }
.mega-roles { display: grid; gap: 6px; }
.mega-role { display: flex; gap: 12px; align-items: center; padding: 9px 10px; border-radius: 14px; transition: background .2s, transform .2s; }
.mega-role:hover { background: var(--teal-50); transform: translateX(2px); }
.mega-role-photo { position: relative; width: 62px; height: 50px; border-radius: 10px; overflow: hidden; flex-shrink: 0; background: linear-gradient(135deg, var(--navy-600), var(--navy)); }
.mega-role-photo img { width: 100%; height: 100%; object-fit: cover; }
.mega-role-ic { position: absolute; right: -4px; bottom: -4px; width: 24px; height: 24px; border-radius: 7px; background: var(--accent, var(--teal)); color: #fff; display: grid; place-items: center; box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.mega-role-ic svg { width: 13px; height: 13px; }
.mega-role-text { min-width: 0; }
.mega-role-text b { display: block; color: var(--navy); font-weight: 700; font-size: .92rem; line-height: 1.2; }
.mega-role-text span { display: block; color: var(--muted); font-size: .76rem; line-height: 1.35; margin-top: 1px; }
.mega-role-text small { display: block; color: var(--teal-600); font-size: .72rem; font-weight: 600; margin-top: 3px; }
.mega-item.compact { padding: 7px 8px; gap: 10px; }
.mega-item.compact .mega-ic { width: 32px; height: 32px; border-radius: 9px; }
.mega-item.compact .mega-ic svg { width: 15px; height: 15px; }
.mega-item.compact b { font-size: .84rem; }
.mega-item.compact span { font-size: .72rem; }
.mobile-sub-title { display: block; font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted-2); font-weight: 700; padding: 10px 10px 2px; }

/* ---------- Site search ---------- */
.site-search { border-top: 1px solid var(--line); background: #fff; box-shadow: 0 20px 40px rgba(11,31,63,.1); animation: searchIn .25s var(--ease); }
@keyframes searchIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.site-search .container { padding-block: 16px 14px; }
.site-search-form { display: flex; align-items: center; gap: 10px; background: var(--paper); border: 1.5px solid var(--line); border-radius: 100px; padding: 6px 8px 6px 18px; }
.site-search-form:focus-within { border-color: var(--teal); box-shadow: var(--ring); background: #fff; }
.site-search-form > svg { width: 20px; height: 20px; color: var(--muted); flex-shrink: 0; }
.site-search-form input { flex: 1; border: none; background: transparent; font-size: 1rem; padding: 8px 0; min-width: 0; color: var(--text); }
.site-search-form input:focus { outline: none; }
.site-search-form .icon-btn { width: 38px; height: 38px; }
.site-search-quick { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 10px; font-size: .8rem; color: var(--muted); }
.site-search-quick a { padding: 5px 11px; border-radius: 100px; background: var(--line-soft); color: var(--navy-700); font-weight: 500; transition: background .2s, color .2s; }
.site-search-quick a:hover { background: var(--teal); color: #fff; }

/* ---------- Footer ---------- */
.footer-cta { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding: 26px 30px; margin-bottom: 44px; border-radius: 20px; background: linear-gradient(135deg, rgba(13,148,136,.22), rgba(31,70,128,.28)); border: 1px solid rgba(255,255,255,.1); }
.footer-cta h3 { color: #fff; font-size: 1.25rem; margin-top: 8px; }
.footer-cta-roles { display: flex; gap: 8px; flex-wrap: wrap; }
.footer-cta-roles a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 100px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); color: #fff; font-weight: 600; font-size: .86rem; transition: background .2s, transform .2s; }
.footer-cta-roles a svg { width: 15px; height: 15px; color: var(--teal-300); }
.footer-cta-roles a:hover { background: var(--teal); transform: translateY(-2px); }
.footer-cta-roles a:hover svg { color: #fff; }
.footer-grid.five { grid-template-columns: 1.7fr 1fr 1fr 1fr; }

/* ---------- Course card: role badge + topic ---------- */
.course-badge.role-tag { background: var(--role-accent, var(--teal)); color: #fff; }
.course-badge.role-tag svg { width: 12px; height: 12px; }
.course-topic { color: var(--teal-600); font-weight: 600; }
.course-topic svg { color: var(--teal-600); }
.course-enrolled { color: var(--muted-2); margin-left: auto; white-space: nowrap; }
.course-rating { flex-wrap: nowrap; }
.course-rating > span:not(.stars):not(.course-enrolled) { white-space: nowrap; }
@container (max-width: 300px) { .course-enrolled { display: none; } }

/* ---------- Hero role selector ---------- */
.role-tabs { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 26px 0 22px; }
.role-tabs-label { color: rgba(255,255,255,.62); font-size: .82rem; margin-right: 4px; }
.role-tab { display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border-radius: 100px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16); color: #fff; font-weight: 600; font-size: .84rem; transition: background .2s, border-color .2s, transform .2s; }
.role-tab svg { width: 15px; height: 15px; color: var(--teal-300); }
.role-tab:hover { background: rgba(255,255,255,.14); transform: translateY(-1px); }
.role-tab.active { background: #fff; color: var(--navy); border-color: #fff; box-shadow: 0 8px 20px rgba(0,0,0,.2); }
.role-tab.active svg { color: var(--accent, var(--teal)); }
.hero-role-panel { animation: panelIn .35s var(--ease); }
@keyframes panelIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.hero-panel-tag { color: rgba(255,255,255,.62); font-size: .8rem; margin: -8px 0 12px; }
.hero-role-panel .hero-panel-head h3 .dot { background: var(--accent, var(--teal-400)); box-shadow: 0 0 0 4px rgba(255,255,255,.12); }
.hero-v3 .hero-cta .btn-primary { min-width: 240px; }

/* ---------- Role cards ---------- */
.role-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.role-card { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.role-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.role-media { position: relative; aspect-ratio: 16/10; overflow: hidden; background: linear-gradient(135deg, var(--navy-600), var(--navy)); }
.role-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.role-card:hover .role-media img { transform: scale(1.06); }
.role-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,20,48,.05) 40%, rgba(6,20,48,.55) 100%); }
.role-count { position: absolute; top: 14px; right: 14px; z-index: 2; padding: 6px 11px; border-radius: 100px; background: rgba(255,255,255,.92); color: var(--navy); font-size: .74rem; font-weight: 700; }
.role-body { padding: 0 22px 22px; display: flex; flex-direction: column; flex: 1; }
.role-ic { position: relative; z-index: 2; margin: -28px 0 14px; width: 56px; height: 56px; border-radius: 16px; background: var(--accent, var(--teal)); color: #fff; display: grid; place-items: center; border: 3px solid #fff; box-shadow: 0 8px 20px rgba(11,31,63,.22); transition: transform .3s; }
.role-ic svg { width: 26px; height: 26px; }
.role-card:hover .role-ic { transform: rotate(-6deg) scale(1.05); }
.role-card h3 { font-size: 1.2rem; margin-bottom: 4px; }
.role-tagline { color: var(--accent, var(--teal-600)) !important; font-weight: 600; font-size: .82rem !important; margin-bottom: 8px; }
.role-body p { color: var(--muted); font-size: .9rem; }
.role-body > p:not(.role-tagline) { flex: 1; }
.role-path { display: flex; gap: 4px; flex-wrap: wrap; margin: 16px 0 14px; }
.role-path span { font-size: .7rem; font-weight: 700; padding: 4px 9px; border-radius: 100px; background: var(--paper); color: var(--navy-700); border: 1px solid var(--line); position: relative; }
.role-path span:not(:last-child)::after { content: '›'; position: absolute; right: -6px; top: 50%; transform: translateY(-50%); color: var(--muted-2); font-size: .8rem; }
.role-card .link-arrow { font-size: .88rem; color: var(--accent, var(--teal-600)); }

/* ---------- Learning path (home) ---------- */
.path-section { position: relative; overflow: hidden; }
.path-section::before { content: ''; position: absolute; inset: 0; background: radial-gradient(800px 400px at 90% 0%, rgba(13,148,136,.35), transparent 60%), radial-gradient(600px 300px at 0% 100%, rgba(31,70,128,.55), transparent 60%); }
.path-section .container { position: relative; }
.path-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; position: relative; }
.path-steps::before { content: ''; position: absolute; top: 34px; left: 10%; right: 10%; height: 2px; background: repeating-linear-gradient(90deg, rgba(45,212,191,.5) 0, rgba(45,212,191,.5) 8px, transparent 8px, transparent 14px); }
.path-step { position: relative; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 26px 22px 22px; backdrop-filter: blur(6px); transition: transform .3s, background .3s; }
.path-step:hover { transform: translateY(-5px); background: rgba(255,255,255,.09); }
.path-num { width: 44px; height: 44px; border-radius: 50%; background: var(--teal); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; margin-bottom: 16px; box-shadow: 0 8px 20px rgba(13,148,136,.4); position: relative; }
.path-step h3 { color: #fff; font-size: 1.1rem; margin-bottom: 8px; }
.path-step p { color: rgba(255,255,255,.72); font-size: .9rem; margin-bottom: 14px; }
.path-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.path-tags span { font-size: .72rem; padding: 4px 9px; border-radius: 100px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.85); }
.path-cta { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 36px; }

/* ---------- CPD countdown ---------- */
.cpd-card.countdown { grid-column: span 2; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-700) 100%); border-color: var(--navy); color: #fff; }
.countdown-head { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; }
.countdown-head .ic { width: 44px; height: 44px; border-radius: 12px; background: rgba(45,212,191,.16); color: var(--teal-300); display: grid; place-items: center; flex-shrink: 0; }
.countdown-head .ic svg { width: 22px; height: 22px; }
.countdown-head b { display: block; color: #fff; font-family: var(--font-display); font-size: 1rem; margin: 0; }
.countdown-head span { display: block; color: rgba(255,255,255,.66); font-size: .8rem; margin-top: 2px; }
.countdown-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.countdown-item { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: 14px; padding: 16px; }
.countdown-item .num { font-family: var(--font-display); font-size: 2.4rem; font-weight: 800; color: var(--teal-300); line-height: 1; letter-spacing: -.03em; }
.countdown-item b { display: block; color: #fff; font-size: .84rem; margin-top: 8px; }
.countdown-item span { display: block; color: rgba(255,255,255,.6); font-size: .76rem; margin-top: 2px; }

/* ---------- Pricing tiers ---------- */
.tier-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: stretch; }
.tier { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px 26px 26px; display: flex; flex-direction: column; transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.tier:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.tier.featured { background: var(--navy); border-color: var(--navy); color: #fff; box-shadow: var(--shadow-lg); }
.tier-flag { position: absolute; top: -13px; left: 26px; padding: 6px 12px; border-radius: 100px; background: var(--teal); color: #fff; font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; box-shadow: var(--glow-teal); }
.tier-name { font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-600); }
.tier.featured .tier-name { color: var(--teal-300); }
.tier-price { font-family: var(--font-display); font-size: 2.6rem; font-weight: 800; color: var(--navy); letter-spacing: -.03em; line-height: 1.1; margin: 10px 0 12px; }
.tier-price small { font-size: .9rem; font-weight: 600; color: var(--muted); letter-spacing: 0; margin-right: 4px; }
.tier.featured .tier-price { color: #fff; }
.tier.featured .tier-price small { color: rgba(255,255,255,.6); }
.tier p { color: var(--muted); font-size: .9rem; margin-bottom: 18px; }
.tier.featured p { color: rgba(255,255,255,.74); }
.tier ul { display: grid; gap: 10px; margin-bottom: 24px; flex: 1; }
.tier li { display: flex; gap: 9px; align-items: flex-start; font-size: .88rem; color: var(--navy-700); }
.tier li svg { width: 17px; height: 17px; color: var(--teal-600); flex-shrink: 0; margin-top: 1px; }
.tier.featured li { color: rgba(255,255,255,.9); }
.tier.featured li svg { color: var(--teal-300); }
.tier.featured .btn-primary { box-shadow: none; }
.team-band { display: flex; gap: 20px; align-items: center; margin-top: 22px; padding: 22px 26px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); flex-wrap: wrap; }
.team-band-ic { width: 54px; height: 54px; border-radius: 14px; background: var(--teal-50); color: var(--teal-600); border: 1px solid var(--teal-100); display: grid; place-items: center; flex-shrink: 0; }
.team-band-ic svg { width: 26px; height: 26px; }
.team-band > div:not(.team-band-ic) { flex: 1; min-width: 260px; }
.team-band b { display: block; color: var(--navy); font-family: var(--font-display); font-size: 1.05rem; margin-bottom: 3px; }
.team-band span { color: var(--muted); font-size: .9rem; }

/* ---------- Certificate preview ---------- */
.cert-split { align-items: center; }
.cert-preview-wrap { position: relative; padding: 24px 30px 34px 10px; }
.cert-preview { position: relative; background: #fff; border: 2px solid var(--navy); border-radius: 10px; padding: 34px 34px 28px; box-shadow: var(--shadow-lg); overflow: hidden; transform: rotate(-1.5deg); transition: transform .4s var(--ease); }
.cert-preview-wrap:hover .cert-preview { transform: rotate(0); }
.cert-preview::before { content: ''; position: absolute; inset: 9px; border: 1px solid var(--teal); border-radius: 5px; pointer-events: none; }
.cert-preview::after { content: ''; position: absolute; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(13,148,136,.1), transparent 70%); right: -90px; top: -90px; pointer-events: none; }
.cert-preview-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.cert-preview-top img { height: 38px; width: auto; }
.cert-preview-no { font-size: .68rem; color: var(--muted); letter-spacing: .08em; font-weight: 600; }
.cert-preview-kicker { display: block; font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.cert-preview-name { font-family: var(--font-display); font-size: 1.7rem; font-weight: 800; color: var(--teal-600); border-bottom: 2px solid var(--line); display: inline-block; padding-bottom: 6px; margin-bottom: 12px; }
.cert-preview-course { color: var(--navy-700); font-size: .86rem; line-height: 1.5; margin-bottom: 18px; }
.cert-preview-course b { color: var(--navy); font-size: 1rem; }
.cert-preview-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.cert-preview-meta > div { background: var(--paper); border: 1px solid var(--line-soft); border-radius: 10px; padding: 10px 12px; }
.cert-preview-meta b { display: block; color: var(--navy); font-family: var(--font-display); font-size: .96rem; }
.cert-preview-meta span { color: var(--muted); font-size: .68rem; }
.cert-preview-foot { font-size: .68rem; color: var(--muted); border-top: 1px solid var(--line-soft); padding-top: 12px; }
.cert-preview-seal { position: absolute; right: 30px; bottom: 26px; width: 58px; height: 58px; border-radius: 50%; background: var(--navy); color: var(--teal-300); display: grid; place-items: center; box-shadow: 0 8px 20px rgba(11,31,63,.3); }
.cert-preview-seal svg { width: 28px; height: 28px; }
.cert-callout { position: absolute; display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 100px; background: var(--teal); color: #fff; font-size: .76rem; font-weight: 700; box-shadow: var(--glow-teal); animation: floaty 6s ease-in-out infinite; }
.cert-callout svg { width: 13px; height: 13px; }
.cert-callout.c1 { top: 0; right: 0; }
.cert-callout.c2 { left: -8px; bottom: 18px; animation-delay: 1.5s; }
.cert-callout.c3 { right: 40px; bottom: -4px; animation-delay: 3s; }

/* ---------- Comparison table ---------- */
.compare-wrap { overflow-x: auto; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.compare-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.compare-table th, .compare-table td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line-soft); font-size: .92rem; vertical-align: middle; }
.compare-table th { font-family: var(--font-display); color: var(--navy); font-size: .92rem; background: var(--paper); }
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table td:first-child { font-weight: 600; color: var(--navy); width: 30%; }
.compare-table td, .compare-table th { color: var(--muted); }
.compare-table .us { background: var(--teal-50); color: var(--navy-700); font-weight: 500; }
.compare-table th.us { background: var(--teal-100); }
.compare-table td svg { width: 17px; height: 17px; vertical-align: -3px; margin-right: 6px; }
.compare-table td.us svg { color: var(--teal-600); }
.compare-table td:not(.us):not(:first-child) svg { color: var(--red); opacity: .7; }
.compare-brand { display: inline-flex; align-items: center; gap: 8px; color: var(--navy); }
.compare-brand svg { width: 18px; height: 18px; color: var(--teal-600); }
.compare-table.roles th, .compare-table.roles td { text-align: center; }
.compare-table.roles th:first-child, .compare-table.roles td:first-child { text-align: left; }
.compare-table.roles td svg { color: var(--teal-600); margin: 0; }
.compare-table.roles td.small { font-size: .78rem; }

/* ---------- Testimonial marquee ---------- */
.tst-marquee { margin-top: 34px; overflow: hidden; position: relative; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.tst-marquee-track { display: flex; gap: 18px; width: max-content; animation: marquee 70s linear infinite; padding: 6px 0 12px; }
.tst-marquee:hover .tst-marquee-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.tst-mini { width: 340px; flex-shrink: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow-sm); }
.tst-mini-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.tst-mini-head .tst-avatar { width: 36px; height: 36px; font-size: .86rem; }
.tst-mini-head > div { flex: 1; min-width: 0; }
.tst-mini-head b { display: block; color: var(--navy); font-size: .86rem; }
.tst-mini-head span:not(.stars) { display: block; color: var(--muted); font-size: .72rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tst-mini-head .stars svg { width: 12px; height: 12px; }
.tst-mini p { color: var(--navy-700); font-size: .88rem; line-height: 1.5; }
@media (prefers-reduced-motion: reduce) { .tst-marquee-track { animation: none; flex-wrap: wrap; width: auto; } .cert-callout { animation: none; } }

/* ---------- Role landing page ---------- */
.role-hero { position: relative; overflow: hidden; background: var(--navy); color: #fff; padding-block: 72px 84px; }
.role-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 35%; z-index: 0; }
.role-hero::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, var(--navy) 0%, rgba(11,31,63,.96) 34%, rgba(11,31,63,.8) 55%, rgba(11,31,63,.45) 80%, rgba(11,31,63,.55) 100%), linear-gradient(180deg, rgba(11,31,63,.2), transparent 30%, transparent 60%, var(--navy) 100%); }
.role-hero .container { position: relative; z-index: 2; }
.role-hero-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 44px; align-items: end; }
.role-hero h1 { color: #fff; font-size: clamp(2.1rem, 4.4vw, 3.3rem); line-height: 1.06; margin: 16px 0 16px; max-width: 700px; }
.role-hero .lead { color: rgba(255,255,255,.8); font-size: 1.08rem; max-width: 620px; margin-bottom: 26px; line-height: 1.65; }
.role-kicker { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 7px; border-radius: 100px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); font-size: .8rem; font-weight: 600; color: rgba(255,255,255,.92); backdrop-filter: blur(6px); }
.role-kicker .ic { width: 26px; height: 26px; border-radius: 50%; background: var(--accent, var(--teal)); display: grid; place-items: center; }
.role-kicker .ic svg { width: 14px; height: 14px; }
.role-audience { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 26px; font-size: .8rem; }
.role-audience .lbl { color: rgba(255,255,255,.6); }
.role-audience span:not(.lbl) { padding: 6px 12px; border-radius: 100px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); color: #fff; font-weight: 500; }
.role-hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.role-hero-stats > div { background: rgba(6,20,48,.5); border: 1px solid rgba(255,255,255,.14); padding: 18px 20px; border-radius: 16px; backdrop-filter: blur(10px); }
.role-hero-stats strong { display: block; font-family: var(--font-display); font-size: 1.7rem; color: var(--teal-300); line-height: 1; margin-bottom: 6px; }
.role-hero-stats span { color: rgba(255,255,255,.7); font-size: .78rem; }

.outcomes-layout { display: grid; grid-template-columns: .9fr 1.3fr; gap: 56px; align-items: start; }
.outcomes-layout > * { min-width: 0; }
.outcomes-layout h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin: 14px 0 14px; }
.role-topics { margin-top: 26px; }
.role-topics .lbl, .other-roles .lbl { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 700; margin-bottom: 10px; }
.role-topics .chip svg { width: 14px; height: 14px; color: var(--teal-600); }
.outcome-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.outcome { display: flex; gap: 14px; align-items: flex-start; padding: 18px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; transition: transform .25s, border-color .25s, background .25s; }
.outcome:hover { transform: translateY(-3px); border-color: var(--teal-300); background: #fff; }
.outcome .n { font-family: var(--font-display); font-weight: 800; color: var(--teal-600); font-size: .9rem; flex-shrink: 0; padding-top: 2px; }
.outcome p { color: var(--navy-700); font-size: .92rem; line-height: 1.5; }

.cpd-topic-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cpd-topic { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 10px; transition: transform .3s, box-shadow .3s; }
.cpd-topic:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.cpd-topic .pill { align-self: flex-start; }
.cpd-topic h3 { font-size: 1.02rem; }
.cpd-topic p { color: var(--muted); font-size: .84rem; }

.route { position: relative; display: grid; gap: 18px; }
.route::before { content: ''; position: absolute; left: 27px; top: 30px; bottom: 30px; width: 2px; background: repeating-linear-gradient(180deg, var(--teal-100) 0, var(--teal-100) 8px, transparent 8px, transparent 14px); }
.route-step { display: grid; grid-template-columns: 56px 1fr; gap: 22px; align-items: start; }
.route-marker { position: relative; z-index: 1; }
.route-ic { width: 56px; height: 56px; border-radius: 50%; background: var(--navy); color: var(--teal-300); display: grid; place-items: center; box-shadow: 0 8px 20px rgba(11,31,63,.22); border: 4px solid var(--paper); }
.route-ic svg { width: 22px; height: 22px; }
.route-body { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; display: grid; grid-template-columns: .8fr 1.2fr; gap: 24px; align-items: start; transition: box-shadow .3s, border-color .3s; }
.route-step:hover .route-body { box-shadow: var(--shadow); border-color: transparent; }
.route-label { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-600); }
.route-head h3 { font-size: 1.25rem; margin: 6px 0 6px; }
.route-head p { color: var(--muted); font-size: .9rem; }
.route-courses { display: grid; gap: 8px; }
.route-course { display: flex; gap: 12px; align-items: center; padding: 9px 10px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line-soft); transition: background .2s, transform .2s, border-color .2s; }
.route-course:hover { background: var(--teal-50); border-color: var(--teal-100); transform: translateX(3px); }
.route-course img { width: 64px; height: 46px; border-radius: 9px; object-fit: cover; flex-shrink: 0; background: var(--navy-600); }
.route-course .t { flex: 1; min-width: 0; }
.route-course b { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; color: var(--navy); font-size: .88rem; line-height: 1.3; }
.route-course span { color: var(--muted); font-size: .74rem; display: block; margin-top: 2px; }
.route-course .p { color: var(--teal-600); font-weight: 700; font-size: .9rem; white-space: nowrap; }
.route-more { font-size: .82rem; color: var(--teal-600); font-weight: 600; padding: 4px 10px; }

.course-grid-item { display: contents; }
.course-grid-item[hidden] { display: none; }
.other-roles { display: grid; gap: 8px; margin-top: 30px; }
.other-role { display: flex; gap: 12px; align-items: center; padding: 11px 12px; border-radius: 12px; background: var(--white); border: 1px solid var(--line); transition: border-color .2s, transform .2s; }
.other-role:hover { border-color: var(--accent, var(--teal)); transform: translateX(3px); }
.other-role .ic { width: 36px; height: 36px; border-radius: 10px; background: var(--accent, var(--teal)); color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.other-role .ic svg { width: 17px; height: 17px; }
.other-role > span:not(.ic) { flex: 1; }
.other-role b { display: block; color: var(--navy); font-size: .9rem; }
.other-role small { color: var(--muted); font-size: .76rem; }
.other-role > svg { width: 16px; height: 16px; color: var(--muted); }

/* ---------- Catalogue: role bar & active filters ---------- */
.role-bar { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 84px; z-index: 40; }
.role-bar-scroll { display: flex; gap: 6px; overflow-x: auto; padding: 10px 0; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.role-bar-scroll::-webkit-scrollbar { display: none; }
.role-bar-item { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 100px; font-weight: 600; font-size: .88rem; color: var(--navy-700); white-space: nowrap; border: 1.5px solid transparent; transition: background .2s, color .2s, border-color .2s; }
.role-bar-item svg { width: 16px; height: 16px; color: var(--accent, var(--teal-600)); }
.role-bar-item .n { font-size: .74rem; color: var(--muted-2); background: var(--line-soft); padding: 1px 8px; border-radius: 100px; }
.role-bar-item:hover { background: var(--paper); border-color: var(--line); }
.role-bar-item.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.role-bar-item.active svg { color: var(--teal-300); }
.role-bar-item.active .n { background: rgba(255,255,255,.14); color: #fff; }
.filter-label { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.filter-label svg { color: var(--muted-2); flex-shrink: 0; }
.filter-list a.active .filter-label svg { color: var(--teal-600); }
.filter-role-card { margin-top: 20px; padding: 18px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); display: grid; gap: 6px; }
.filter-role-card .ic { width: 40px; height: 40px; border-radius: 11px; background: var(--accent, var(--teal)); color: #fff; display: grid; place-items: center; margin-bottom: 6px; }
.filter-role-card .ic svg { width: 19px; height: 19px; }
.filter-role-card b { color: var(--navy); font-size: .94rem; }
.filter-role-card > span:not(.ic) { color: var(--muted); font-size: .82rem; margin-bottom: 8px; }
.active-filters { display: flex; gap: 8px; flex-wrap: wrap; margin: -6px 0 20px; }
.active-filter { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 100px; background: var(--teal-50); border: 1px solid var(--teal-100); color: var(--teal-600); font-size: .8rem; font-weight: 600; transition: background .2s, color .2s; }
.active-filter svg { width: 12px; height: 12px; }
.active-filter:hover { background: var(--red-soft); border-color: #fecaca; color: var(--red); }
.hero-inline-link { color: var(--teal-300); font-weight: 600; white-space: nowrap; }

/* ---------- Course page: roles, pathway box, outcomes, mobile buy ---------- */
.course-roles { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 20px; font-size: .82rem; }
.course-roles .lbl { color: rgba(255,255,255,.6); }
.course-role-chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 100px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); color: #fff; font-weight: 600; font-size: .8rem; transition: background .2s, transform .2s; }
.course-role-chip svg { width: 14px; height: 14px; color: var(--teal-300); }
.course-role-chip small { color: rgba(255,255,255,.6); font-weight: 500; }
.course-role-chip.primary { background: var(--accent, var(--teal)); border-color: transparent; }
.course-role-chip.primary svg, .course-role-chip.primary small { color: #fff; }
.course-role-chip:hover { transform: translateY(-1px); background: rgba(255,255,255,.16); }
.course-role-chip.primary:hover { background: var(--accent, var(--teal)); filter: brightness(1.08); }
.pathway-box { display: flex; gap: 16px; align-items: center; margin-top: 22px; padding: 16px 18px; border-radius: 14px; background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--accent, var(--teal)); flex-wrap: wrap; }
.pathway-box .ic { width: 42px; height: 42px; border-radius: 11px; background: var(--accent, var(--teal)); color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.pathway-box .ic svg { width: 20px; height: 20px; }
.pathway-box-body { flex: 1; min-width: 220px; }
.pathway-box b { display: block; color: var(--navy); font-size: .92rem; }
.pathway-box span { color: var(--muted); font-size: .84rem; }
.pathway-box span a { color: var(--teal-600); font-weight: 600; }
.dev-outcomes { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.dev-outcomes .lbl { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; width: 100%; }
.dev-outcome { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px 6px 6px; border-radius: 100px; background: var(--paper); border: 1px solid var(--line); font-size: .74rem; color: var(--muted-2); }
.dev-outcome b { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--line-soft); color: var(--muted); font-size: .72rem; }
.dev-outcome.on { background: var(--teal-50); border-color: var(--teal-100); color: var(--navy-700); }
.dev-outcome.on b { background: var(--teal); color: #fff; }
.mobile-buy { display: none; }

/* ---------- Responsive (v3) ---------- */
@media (max-width: 1180px) {
  .mega-layout.three { grid-template-columns: 1.2fr 1fr; }
  .mega-layout.three .mega-side { grid-column: span 2; flex-direction: row; flex-wrap: wrap; }
  .mega-layout.three .mega-side > * { flex: 1 1 200px; }
  .mega-layout.three .mega-promo { flex-basis: 100%; }
  .role-grid, .tier-grid { grid-template-columns: repeat(2, 1fr); }
  .cpd-topic-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1024px) {
  .footer-grid.five { grid-template-columns: 1fr 1fr; }
  .path-steps { grid-template-columns: repeat(2, 1fr); }
  .path-steps::before { display: none; }
  .role-hero-grid, .outcomes-layout, .cert-split { grid-template-columns: 1fr; }
  .role-hero-stats { grid-template-columns: repeat(4, 1fr); }
  .role-hero-img { opacity: .5; }
  .role-hero::before { background: linear-gradient(180deg, rgba(11,31,63,.88), rgba(11,31,63,.97)); }
  .route-body { grid-template-columns: 1fr; }
  .role-bar { top: 0; }
  .cert-preview-wrap { max-width: 560px; margin: 0 auto; }
}
@media (max-width: 680px) {
  .topbar-announce span:not(.dot) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 70vw; }
  .footer-cta { padding: 20px; }
  .footer-cta h3 { font-size: 1.05rem; }
  .role-tabs { gap: 6px; }
  .role-tab { padding: 8px 12px; font-size: .78rem; }
  .role-tabs-label { width: 100%; }
  .hero-v3 .hero-cta .btn { width: 100%; }
  .role-grid, .tier-grid, .path-steps, .outcome-grid, .cpd-topic-grid, .countdown-grid { grid-template-columns: 1fr; }
  .cpd-card.countdown { grid-column: span 1; }
  .role-hero { padding-block: 52px 60px; }
  .role-hero-stats { grid-template-columns: 1fr 1fr; }
  .route::before { display: none; }
  .route-step { grid-template-columns: 1fr; gap: 10px; }
  .route-marker { display: none; }
  .route-body { padding: 18px; }
  .team-band { padding: 18px; }
  .cert-preview { padding: 22px 18px 20px; transform: none; }
  .cert-preview-wrap { padding: 20px 10px 30px 0; }
  .cert-preview-meta { grid-template-columns: 1fr 1fr; }
  .cert-callout.c2 { left: 0; }
  .cert-preview-seal { width: 44px; height: 44px; right: 16px; bottom: 16px; }
  .cert-preview-seal svg { width: 22px; height: 22px; }
  .site-search-form .btn { display: none; }
  .tier-price { font-size: 2.2rem; }
  .pathway-box .btn { width: 100%; }
  .course-roles { font-size: .78rem; }
  .compare-table th, .compare-table td { padding: 12px 14px; font-size: .84rem; }
  .mobile-buy { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 16px; background: rgba(255,255,255,.96); backdrop-filter: blur(12px); border-top: 1px solid var(--line); box-shadow: 0 -10px 30px rgba(11,31,63,.1); transform: translateY(110%); transition: transform .35s var(--ease); }
  .mobile-buy.show { transform: translateY(0); }
  .mobile-buy b { display: block; font-family: var(--font-display); font-size: 1.2rem; color: var(--navy); line-height: 1; }
  .mobile-buy span { display: block; color: var(--muted); font-size: .74rem; margin-top: 3px; }
  .mobile-buy .btn { padding: 12px 20px; }
  body.has-mobile-buy { padding-bottom: 76px; }
}

/* ============================================================
   ADMIN v2 — richer dashboard, filters, moderation, settings
   ============================================================ */
.admin-sidebar-backdrop { display: none; position: fixed; inset: 0; background: rgba(6,20,48,.5); z-index: 90; }
.admin-sidebar-backdrop.show { display: block; }
.admin-nav-badge.warn { background: var(--amber); }
.admin-nav-badge.muted { background: rgba(255,255,255,.14); color: rgba(255,255,255,.8); }
.admin-sidebar-foot { margin-top: auto; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.08); }
.admin-sidebar-site { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 10px; color: rgba(255,255,255,.7); font-size: .9rem; font-weight: 500; transition: background .2s, color .2s; }
.admin-sidebar-site:hover { background: rgba(255,255,255,.06); color: #fff; }
.admin-sidebar-site svg { width: 18px; height: 18px; opacity: .85; }

.admin-search { flex: 1; max-width: 460px; display: flex; align-items: center; gap: 10px; padding: 0 12px 0 14px; height: 42px; border-radius: 100px; background: var(--paper); border: 1px solid var(--line); transition: border-color .2s, box-shadow .2s, background .2s; margin-left: 12px; }
.admin-search:focus-within { border-color: var(--teal); box-shadow: var(--ring); background: #fff; }
.admin-search svg { color: var(--muted); flex-shrink: 0; }
.admin-search input { flex: 1; border: none; background: transparent; font-size: .9rem; min-width: 0; color: var(--text); }
.admin-search input:focus { outline: none; }
.admin-search kbd { font-family: var(--font-body); font-size: .7rem; color: var(--muted-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 7px; background: #fff; }
.admin-topbar-link.primary { background: var(--teal); color: #fff; border-color: var(--teal); box-shadow: var(--glow-teal); }
.admin-topbar-link.primary:hover { background: var(--teal-600); border-color: var(--teal-600); }

.admin-stat-sub { display: flex; gap: 8px; align-items: center; font-size: .8rem; margin-top: 2px; }
.admin-stat-foot { color: var(--muted); font-size: .78rem; margin-top: 8px; }
.admin-stat-grid.mini { grid-template-columns: repeat(4, 1fr); }
.admin-stat-grid.mini .admin-stat { padding: 18px 20px; }
.admin-stat-grid.mini .admin-stat-value { font-size: 1.6rem; margin-top: 6px; }
.admin-stat.highlight { border-color: var(--amber); background: linear-gradient(135deg, #fff, var(--amber-soft)); }
.admin-panel-head .muted { font-weight: 400; }

/* Needs attention */
.attention-grid { grid-template-columns: 1.3fr 1fr; }
.attention-list { display: grid; gap: 8px; }
.attention-item { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-soft); background: var(--paper); transition: border-color .2s, transform .2s, background .2s; }
.attention-item:hover { border-color: var(--teal-300); background: #fff; transform: translateX(2px); }
.attention-item.hot { border-color: #fde68a; background: #fffbeb; }
.attention-item .ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; }
.attention-item .ic-order { background: var(--green-soft); color: #166534; }
.attention-item .ic-user { background: #e3ecf8; color: var(--navy-600); }
.attention-item .ic-review { background: var(--amber-soft); color: var(--amber); }
.attention-item .ic-draft { background: var(--line-soft); color: var(--muted); }
.attention-item .ic-photo { background: var(--teal-100); color: var(--teal-600); }
.attention-item > div { flex: 1; min-width: 0; }
.attention-item b { display: block; color: var(--navy); font-size: .92rem; font-weight: 600; }
.attention-item span:not(.ic) { display: block; color: var(--muted); font-size: .78rem; }
.attention-item .chev { color: var(--muted-2); transform: rotate(-90deg); }
.attention-item.as-form { cursor: default; }
.attention-item.as-form:hover { transform: none; }
.quick-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.quick-actions a { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 10px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line-soft); color: var(--navy-700); font-size: .8rem; font-weight: 600; text-align: center; transition: background .2s, color .2s, transform .2s, border-color .2s; }
.quick-actions a svg { width: 20px; height: 20px; color: var(--teal-600); }
.quick-actions a:hover { background: var(--navy); color: #fff; border-color: var(--navy); transform: translateY(-2px); }
.quick-actions a:hover svg { color: var(--teal-300); }
.catalogue-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.catalogue-summary > div { text-align: center; }
.catalogue-summary b { display: block; font-family: var(--font-display); font-size: 1.1rem; color: var(--navy); }
.catalogue-summary span { color: var(--muted); font-size: .72rem; }

.role-bars { display: grid; gap: 12px; }
.role-bar-row { display: flex; gap: 12px; align-items: center; }
.role-bar-row .ic { width: 34px; height: 34px; border-radius: 9px; color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.role-bar-row > div { flex: 1; min-width: 0; }
.role-bar-head { display: flex; justify-content: space-between; font-size: .84rem; margin-bottom: 5px; }
.role-bar-head b { color: var(--navy); font-weight: 600; }
.role-bar-head span { color: var(--muted); }
.role-bar-row .progress { height: 7px; }
.top-course-info b a:hover { color: var(--teal-600); }

.mod-list { display: grid; gap: 10px; }
.mod-item { padding: 12px 14px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line-soft); }
.mod-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.mod-head b { color: var(--navy); font-size: .88rem; }
.mod-head .stars { color: #f59e0b; letter-spacing: 1px; }
.mod-item p { color: var(--navy-700); font-size: .84rem; line-height: 1.45; }
.mod-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; gap: 10px; font-size: .74rem; color: var(--muted); }

/* Filters / tabs / empty states */
.admin-filters { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 16px 22px; border-bottom: 1px solid var(--line-soft); }
.admin-filters .search-box { flex: 1 1 240px; max-width: 360px; }
.admin-filters .search-box input { background: #fff; padding-block: 10px; }
.admin-filters .select-styled { padding-block: 9px; font-size: .88rem; max-width: 240px; }
.date-field { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--muted); }
.date-field input { padding: 8px 10px; border: 1.5px solid var(--line); border-radius: 10px; font-size: .84rem; color: var(--navy); background: #fff; }
.admin-tabs { display: flex; gap: 4px; margin-bottom: 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.admin-tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; font-size: .9rem; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color .2s, border-color .2s; }
.admin-tabs a:hover { color: var(--navy); }
.admin-tabs a.active { color: var(--navy); border-bottom-color: var(--teal); }
.admin-tabs a span { font-size: .72rem; padding: 1px 8px; border-radius: 100px; background: var(--line-soft); color: var(--muted); }
.admin-tabs a span.warn { background: var(--amber-soft); color: #92400e; }
.admin-empty { display: grid; place-items: center; gap: 6px; padding: 48px 20px; text-align: center; color: var(--muted); }
.admin-empty svg { width: 34px; height: 34px; color: var(--teal-600); margin-bottom: 6px; }
.admin-empty b { color: var(--navy); font-size: 1rem; }
.admin-empty span { font-size: .88rem; }
.admin-action-btn.success:hover { background: var(--green); color: #fff; }
.btn.danger-ghost { color: var(--red); border-color: #f3c9c6; }
.btn.danger-ghost:hover { background: var(--red); border-color: var(--red); color: #fff; }
.kv { display: grid; gap: 12px; font-size: .92rem; }
.kv > div > span:first-child { color: var(--muted); display: block; margin-bottom: 2px; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.kv a { color: var(--teal-600); font-weight: 600; }
.kv code { font-size: .78rem; word-break: break-all; }
.role-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 100px; background: var(--accent, var(--teal)); color: #fff; font-size: .74rem; font-weight: 700; }
.profile-head h1 { font-size: 1.6rem; }
.cert-row { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.cert-row:last-child { border-bottom: none; }
.cert-row .ic { width: 34px; height: 34px; border-radius: 9px; background: var(--teal-100); color: var(--teal-600); display: grid; place-items: center; flex-shrink: 0; }
.cert-row > div { flex: 1; min-width: 0; }
.cert-row b { display: block; color: var(--navy); font-size: .86rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cert-row span:not(.ic) { color: var(--muted); font-size: .74rem; }
.inline-progress { display: flex; gap: 6px; align-items: center; justify-content: flex-end; }
.inline-progress input[type=number] { width: 64px; padding: 6px 8px; border: 1.5px solid var(--line); border-radius: 8px; font-size: .84rem; }

/* Switches */
.switch { position: relative; display: inline-block; width: 42px; height: 24px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch i { position: absolute; inset: 0; background: var(--line); border-radius: 100px; transition: background .2s; cursor: pointer; }
.switch i::before { content: ''; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .2s; }
.switch input:checked + i { background: var(--teal); }
.switch input:checked + i::before { transform: translateX(18px); }
.switch input:focus-visible + i { box-shadow: var(--ring); }
.switch.sm { width: 36px; height: 20px; }
.switch.sm i::before { width: 14px; height: 14px; }
.switch.sm input:checked + i::before { transform: translateX(16px); }
.switch-row { display: flex; gap: 14px; align-items: flex-start; cursor: pointer; }
.switch-row b { display: block; color: var(--navy); font-size: .9rem; font-weight: 600; }
.switch-row small { display: block; color: var(--muted); font-size: .78rem; margin-top: 2px; }

/* Reviews moderation */
.bulk-bar { display: flex; gap: 12px; align-items: center; padding: 12px 22px; background: var(--paper); border-bottom: 1px solid var(--line-soft); flex-wrap: wrap; font-size: .86rem; }
.review-admin-list { display: grid; }
.review-admin { display: flex; gap: 14px; padding: 18px 22px; border-bottom: 1px solid var(--line-soft); align-items: flex-start; }
.review-admin:last-child { border-bottom: none; }
.review-admin.pending { background: #fffdf5; }
.review-admin-check { padding-top: 10px; }
.review-admin-check input { width: 16px; height: 16px; accent-color: var(--teal); }
.review-admin-body { flex: 1; min-width: 0; }
.review-admin-head { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 6px; font-size: .88rem; }
.review-admin-head b { color: var(--navy); }
.review-admin-body p { color: var(--navy-700); font-size: .92rem; line-height: 1.55; }
.review-admin-foot { margin-top: 8px; font-size: .78rem; }
.review-admin-foot a { color: var(--teal-600); font-weight: 600; }
.review-admin-actions { display: flex; gap: 6px; align-items: center; flex-shrink: 0; }
.rating-picker { display: flex; gap: 6px; flex-wrap: wrap; }
.rating-picker label { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 1.5px solid var(--line); border-radius: 10px; cursor: pointer; font-size: .9rem; color: #f59e0b; background: #fff; }
.rating-picker label small { opacity: .25; }
.rating-picker input { accent-color: var(--teal); }
.rating-picker label:has(input:checked) { border-color: var(--teal); background: var(--teal-50); }

/* Roles admin */
.role-admin-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.role-admin-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.role-admin-media { position: relative; aspect-ratio: 16/8; background: linear-gradient(135deg, var(--navy-600), var(--navy)); }
.role-admin-media img { width: 100%; height: 100%; object-fit: cover; }
.role-admin-ic { position: absolute; left: 16px; bottom: -18px; width: 42px; height: 42px; border-radius: 12px; background: var(--accent, var(--teal)); color: #fff; display: grid; place-items: center; border: 3px solid #fff; box-shadow: var(--shadow-sm); }
.role-admin-body { padding: 26px 18px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.role-admin-title { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.role-admin-title b { display: block; color: var(--navy); font-family: var(--font-display); font-size: 1.05rem; }
.role-admin-title span:not(.swatch) { color: var(--muted); font-size: .74rem; font-family: monospace; }
.swatch { width: 18px; height: 18px; border-radius: 6px; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); flex-shrink: 0; }
.role-admin-body p { color: var(--muted); font-size: .84rem; flex: 1; }
.role-admin-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 10px 0; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); text-align: center; }
.role-admin-stats b { display: block; color: var(--navy); font-family: var(--font-display); font-size: 1rem; }
.role-admin-stats span { color: var(--muted); font-size: .7rem; }
.role-admin-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.role-picker { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 4px; }
.role-pick { position: relative; display: flex; gap: 12px; align-items: center; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; background: #fff; transition: border-color .2s, background .2s; }
.role-pick input { accent-color: var(--accent, var(--teal)); width: 16px; height: 16px; flex-shrink: 0; }
.role-pick .ic { width: 30px; height: 30px; border-radius: 8px; background: var(--accent, var(--teal)); color: #fff; display: grid; place-items: center; flex-shrink: 0; opacity: .55; transition: opacity .2s; }
.role-pick .t { flex: 1; min-width: 0; }
.role-pick .t b { display: block; color: var(--navy); font-size: .88rem; font-weight: 600; }
.role-pick .t small { display: block; color: var(--muted); font-size: .72rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.role-pick .primary-flag { display: none; font-size: .64rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; border-radius: 100px; background: var(--accent, var(--teal)); color: #fff; }
.role-pick.on { border-color: var(--accent, var(--teal)); background: #fff; }
.role-pick.on .ic { opacity: 1; }
.role-pick.primary { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent, var(--teal)) 18%, transparent); }
.role-pick.primary .primary-flag { display: inline-block; }

/* Settings */
.settings-layout { display: grid; grid-template-columns: 240px 1fr; gap: 22px; align-items: start; }
.settings-nav { display: grid; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 10px; position: sticky; top: 92px; }
.settings-nav button { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 10px; font-size: .9rem; font-weight: 500; color: var(--navy-700); text-align: left; transition: background .2s, color .2s; }
.settings-nav button svg { color: var(--muted); }
.settings-nav button:hover { background: var(--paper); }
.settings-nav button.active { background: var(--navy); color: #fff; }
.settings-nav button.active svg { color: var(--teal-300); }
.settings-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 22px; }
.settings-fields .field.wide { grid-column: span 2; }
.settings-panel .hint { color: var(--muted); font-size: .78rem; margin-top: 5px; }

/* Search results */
.search-results { display: grid; gap: 18px; }
.search-results .count { font-size: .74rem; padding: 2px 9px; border-radius: 100px; background: var(--teal-100); color: var(--teal-600); margin-left: 6px; vertical-align: 2px; }
.result-list { display: grid; padding: 10px 12px 12px; }
.result-row { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 12px; transition: background .2s; }
.result-row:hover { background: var(--paper); }
.result-row .ic { width: 36px; height: 36px; border-radius: 10px; background: var(--teal-50); color: var(--teal-600); display: grid; place-items: center; flex-shrink: 0; }
.result-row > div { flex: 1; min-width: 0; }
.result-row b { display: block; color: var(--navy); font-size: .92rem; font-weight: 600; }
.result-row span:not(.tag) { display: block; color: var(--muted); font-size: .78rem; }
.result-row .chev { color: var(--muted-2); transform: rotate(-90deg); }

/* Toasts */
.admin-toasts { position: fixed; right: 22px; bottom: 22px; display: grid; gap: 10px; z-index: 1000; max-width: 420px; }
.admin-toast { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: var(--navy); color: #fff; box-shadow: var(--shadow-lg); transform: translateY(20px); opacity: 0; transition: transform .3s var(--ease), opacity .3s; font-size: .9rem; }
.admin-toast.show { transform: none; opacity: 1; }
.admin-toast > svg { flex-shrink: 0; margin-top: 1px; color: var(--teal-300); }
.admin-toast.error { background: #7f1d1d; }
.admin-toast.error > svg { color: #fecaca; }
.admin-toast.info > svg { color: var(--aqua); }
.admin-toast span { flex: 1; }
.admin-toast button { color: rgba(255,255,255,.6); padding: 2px; display: grid; place-items: center; }
.admin-toast button:hover { color: #fff; }

@media (max-width: 1180px) {
  .role-admin-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-search { display: none; }
}
@media (max-width: 1024px) {
  .attention-grid, .settings-layout { grid-template-columns: 1fr; }
  .settings-nav { position: static; display: flex; overflow-x: auto; }
  .settings-nav button { white-space: nowrap; }
  .admin-stat-grid.mini { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .role-admin-grid, .settings-fields, .role-picker, .quick-actions { grid-template-columns: 1fr; }
  .settings-fields .field.wide { grid-column: span 1; }
  .admin-stat-grid.mini { grid-template-columns: 1fr; }
  .review-admin { flex-wrap: wrap; }
  .review-admin-actions { width: 100%; justify-content: flex-end; }
  .admin-toasts { left: 16px; right: 16px; bottom: 16px; max-width: none; }
  .admin-filters { padding: 14px 16px; }
  .admin-filters .select-styled { max-width: none; flex: 1 1 45%; }
}

/* Admin v2 — refinements */
.field .switch-row { display: flex; }
.role-admin-actions form { margin-left: auto; }
.role-admin-actions .btn-sm { padding: 8px 13px; font-size: .8rem; }
.admin-table .course-cell { display: flex; align-items: center; gap: 12px; min-width: 240px; max-width: 420px; }
.admin-table .course-cell .meta { display: block; color: var(--muted); font-size: .76rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 340px; }
.admin-table td.toggle-cell { width: 56px; text-align: center; }
.admin-table th.toggle-th { width: 56px; text-align: center; }
.admin-table .admin-table-actions form { display: inline; }
.admin-form-grid > *, .admin-grid-2 > * { min-width: 0; }
.tag { white-space: nowrap; }
.admin-form-grid.profile-grid { grid-template-columns: 1.7fr 1fr; }
@media (max-width: 1024px) { .admin-form-grid.profile-grid { grid-template-columns: 1fr; } }
@media (max-width: 680px) {
  .admin-main { overflow-x: clip; }
  .admin-topbar { gap: 10px; }
  .admin-topbar-right { gap: 8px; }
  .admin-user-info { display: none; }
  .admin-user-trigger { padding: 4px; gap: 6px; }
  .admin-breadcrumb { font-size: .82rem; min-width: 0; flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .admin-page-head h1 { font-size: 1.45rem; }
  .settings-nav { padding: 6px; }
}

/* ============================================================
   V4 — logo, photo-forward hero, aligned-to marquee, mega menu,
   footer, "Enrol now" pages and the course workspace
   ============================================================ */

/* ---------- Hero v4: the photo shows through the whole width ---------- */
.hero.hero-v4 { padding-block: 60px 68px; min-height: 0; display: flex; align-items: center; }
.hero.hero-v4 .hero-bg { object-position: 62% 38%; }
.hero.hero-v4::before {
  background:
    linear-gradient(90deg, rgba(8,24,52,.86) 0%, rgba(8,24,52,.78) 26%, rgba(8,24,52,.58) 46%, rgba(8,24,52,.22) 66%, rgba(8,24,52,.08) 84%, rgba(8,24,52,.3) 100%),
    linear-gradient(180deg, rgba(8,24,52,.45) 0%, rgba(8,24,52,0) 30%, rgba(8,24,52,0) 60%, rgba(8,24,52,.92) 100%);
}
.hero.hero-v4 .hero-grid-bg { opacity: .12; }
.hero.hero-v4 .hero-inner { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; }
.hero-copy { max-width: 640px; text-shadow: 0 2px 24px rgba(4,14,34,.55); }
.hero-copy .hero-badge { text-shadow: none; }
.hero-v4 h1 { font-size: clamp(2.15rem, 3.6vw, 3.2rem); line-height: 1.06; margin-bottom: 16px; }
.hero-v4 .hero-sub { color: rgba(255,255,255,.88); max-width: 520px; font-size: 1.04rem; line-height: 1.6; margin-bottom: 24px; }
.hero-v4 .hero-cta .btn-primary { min-width: 250px; box-shadow: 0 16px 40px rgba(13,148,136,.4); }
.hero-v4 .hero-cta .btn-light { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.34); }
.hero-roles-pick { margin-top: 22px; padding: 14px 16px; border-radius: 18px; background: rgba(6,20,48,.42); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); display: flex; gap: 8px 14px; align-items: center; flex-wrap: wrap; text-shadow: none; }
.hero-roles-label { color: rgba(255,255,255,.72); font-size: .82rem; font-weight: 600; white-space: nowrap; }
.hero-role-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.hero-role-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px 8px 10px; border-radius: 100px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); color: #fff; font-weight: 600; font-size: .84rem; transition: background .2s, transform .2s, border-color .2s; }
.hero-role-chip svg { width: 15px; height: 15px; color: var(--accent, var(--teal-300)); }
.hero-role-chip small { font-size: .7rem; padding: 2px 7px; border-radius: 100px; background: rgba(255,255,255,.16); color: rgba(255,255,255,.9); }
.hero-role-chip:hover { background: #fff; color: var(--navy); border-color: #fff; transform: translateY(-2px); }
.hero-role-chip:hover small { background: var(--teal-50); color: var(--teal-600); }
.hero-v4 .hero-trust { margin-top: 24px; gap: 12px 30px; text-shadow: 0 2px 16px rgba(4,14,34,.6); color: rgba(255,255,255,.72); }
.hero-side { position: relative; min-height: 340px; }
.hero-side .float-card { animation-duration: 7s; }
.hero-side .float-card.fc-1 { top: 8%; right: 6%; left: auto; }
.hero-side .float-card.fc-2 { top: 44%; right: -6px; left: auto; }
.hero-side .float-card.fc-3 { top: 76%; right: 18%; left: auto; }
.hero-card { background: rgba(255,255,255,.96); color: var(--navy); border-radius: 22px; padding: 20px; box-shadow: 0 40px 90px rgba(0,0,0,.35); max-width: 400px; margin-left: auto; }
.hero-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.hero-card-head .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px var(--teal-100); }
.hero-card-head b { font-family: var(--font-display); font-size: 1rem; }
.hero-card-head a { margin-left: auto; color: var(--teal-600); font-weight: 600; font-size: .82rem; white-space: nowrap; }
.hero-resume { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line-soft); transition: transform .2s, border-color .2s; }
.hero-resume:hover { transform: translateY(-2px); border-color: var(--teal-300); }
.hero-resume img { width: 74px; height: 56px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.hero-resume > span { flex: 1; min-width: 0; }
.hero-resume small { display: block; color: var(--teal-600); font-weight: 700; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; }
.hero-resume b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .9rem; line-height: 1.3; margin: 2px 0 6px; }
.hero-resume .bar { display: block; height: 6px; border-radius: 100px; background: var(--line); overflow: hidden; }
.hero-resume .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--teal), var(--teal-400)); border-radius: 100px; }
.hero-card-note { color: var(--muted); font-size: .88rem; }
.hero-card-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.hero-card-stats > div { background: var(--navy); color: #fff; border-radius: 12px; padding: 10px; text-align: center; }
.hero-card-stats b { display: block; font-family: var(--font-display); font-size: 1.25rem; color: var(--teal-300); line-height: 1.1; }
.hero-card-stats span { font-size: .7rem; color: rgba(255,255,255,.7); }

/* ---------- "Content aligned to" marquee ---------- */
.aligned-strip { display: flex; align-items: stretch; background: #fff; border-bottom: 1px solid var(--line); overflow: hidden; }
.aligned-label { flex-shrink: 0; display: flex; align-items: center; padding: 18px 26px; background: var(--navy); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: .88rem; position: relative; z-index: 2; }
.aligned-label span { display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; }
.aligned-label svg { width: 18px; height: 18px; color: var(--teal-300); }
.aligned-label::after { content: ''; position: absolute; right: -14px; top: 0; bottom: 0; width: 14px; background: var(--navy); clip-path: polygon(0 0, 100% 50%, 0 100%); }
.marquee { flex: 1; min-width: 0; overflow: hidden; position: relative; display: flex; align-items: center; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 40px, #000 calc(100% - 60px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 40px, #000 calc(100% - 60px), transparent 100%); }
.marquee-track { display: flex; gap: 0; width: max-content; animation: marquee 42s linear infinite; padding-left: 26px; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track .trust-item { padding: 20px 26px; white-space: nowrap; border-right: 1px solid var(--line-soft); color: var(--navy-700); }
.marquee-track .trust-item svg { color: var(--teal-600); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; flex-wrap: wrap; width: auto; } .marquee { mask-image: none; -webkit-mask-image: none; } }

/* ---------- Mega menu v4: role pills + popular courses ---------- */
.mega-roles-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 4px 6px 16px; margin-bottom: 16px; border-bottom: 1px solid var(--line-soft); }
.mega-roles-label { display: inline-flex; align-items: center; gap: 7px; font-size: .78rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; margin-right: 6px; }
.mega-roles-label svg { color: var(--teal-600); }
.mega-role-pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px 8px 10px; border-radius: 100px; background: var(--paper); border: 1px solid var(--line); color: var(--navy); font-weight: 600; font-size: .84rem; transition: background .2s, color .2s, transform .2s, border-color .2s; }
.mega-role-pill svg { width: 15px; height: 15px; color: var(--accent, var(--teal)); }
.mega-role-pill small { font-size: .7rem; padding: 2px 7px; border-radius: 100px; background: #fff; color: var(--muted); border: 1px solid var(--line-soft); }
.mega-role-pill:hover { background: var(--navy); color: #fff; border-color: var(--navy); transform: translateY(-1px); }
.mega-role-pill:hover svg { color: var(--teal-300); }
.mega-role-pill:hover small { background: rgba(255,255,255,.14); color: #fff; border-color: transparent; }
.mega-courses { display: grid; gap: 6px; }
.mega-course { display: flex; gap: 12px; align-items: center; padding: 8px; border-radius: 14px; border: 1px solid transparent; transition: background .2s, border-color .2s, transform .2s; }
.mega-course:hover { background: var(--teal-50); border-color: var(--teal-100); transform: translateX(2px); }
.mega-course-img { width: 92px; height: 64px; border-radius: 10px; overflow: hidden; flex-shrink: 0; background: linear-gradient(135deg, var(--navy-600), var(--navy)); }
.mega-course-img img { width: 100%; height: 100%; object-fit: cover; }
.mega-course-text { flex: 1; min-width: 0; }
.mega-course-text small { display: block; color: var(--teal-600); font-weight: 700; font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mega-course-text b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--navy); font-weight: 600; font-size: .88rem; line-height: 1.3; }
.mega-course-price { display: flex; gap: 10px; align-items: baseline; color: var(--navy); font-weight: 700; font-size: .84rem; margin-top: 3px; }
.mega-course-price em { font-style: normal; color: var(--teal-600); font-weight: 600; font-size: .76rem; opacity: 0; transition: opacity .2s; }
.mega-course:hover .mega-course-price em { opacity: 1; }

/* ---------- Header: signed-in learner ---------- */
.nav-user { display: inline-flex; align-items: center; gap: 10px; padding: 5px 12px 5px 5px; border-radius: 100px; border: 1.5px solid var(--line); transition: border-color .2s, background .2s; }
.nav-user:hover { border-color: var(--teal-300); background: var(--teal-50); }
.nav-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: var(--teal-300); display: grid; place-items: center; font-weight: 700; font-size: .8rem; letter-spacing: .02em; flex-shrink: 0; }
.nav-user-text { display: flex; flex-direction: column; line-height: 1.15; }
.nav-user-text b { color: var(--navy); font-size: .84rem; font-weight: 600; white-space: nowrap; }
.nav-user-text small { color: var(--muted); font-size: .7rem; white-space: nowrap; max-width: 150px; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Footer v4 ---------- */
.site-footer { padding-top: 0; margin-top: 60px; }
.footer-top { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding: 26px 32px; transform: translateY(-50%); margin-bottom: -6px; border-radius: 22px; background: linear-gradient(120deg, var(--teal) 0%, #0f766e 55%, var(--navy-700) 100%); color: #fff; box-shadow: 0 24px 60px rgba(11,31,63,.28); }
.footer-top-text { display: flex; gap: 16px; align-items: center; }
.footer-top-ic { width: 52px; height: 52px; border-radius: 16px; background: rgba(255,255,255,.16); display: grid; place-items: center; flex-shrink: 0; }
.footer-top-ic svg { width: 26px; height: 26px; color: #fff; }
.footer-top-text b { display: block; font-family: var(--font-display); font-size: 1.15rem; margin-bottom: 3px; color: #fff; }
.footer-top-text span { color: rgba(255,255,255,.82); font-size: .88rem; }
.footer-top-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.footer-top-actions .btn-primary { background: #fff; color: var(--navy); }
.footer-top-actions .btn-primary:hover { background: var(--paper); }
.footer-grid { grid-template-columns: 1.6fr .95fr 1fr .9fr 1.05fr; gap: 32px 28px; padding: 20px 0 34px; }
.footer-brand-logo.logo-card { padding: 12px 18px; margin-bottom: 20px; box-shadow: 0 12px 30px rgba(0,0,0,.35); }
.footer-brand-logo.logo-card img { height: 56px; }
.footer-social { margin: 0 0 22px; gap: 9px; flex-wrap: wrap; }
.footer-social a { width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.1); }
.footer-social a.is-placeholder { opacity: .85; }
.footer-col a small { font-size: .7rem; margin-left: 6px; padding: 1px 7px; border-radius: 100px; background: rgba(255,255,255,.08); color: rgba(255,255,255,.7); }
.footer-col a:hover small { background: rgba(45,212,191,.2); color: var(--teal-300); }
.footer-contact-col .footer-contact { margin-bottom: 18px; }
.footer-pay { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: .72rem; color: rgba(255,255,255,.5); }
.footer-pay span { width: 100%; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; margin-bottom: 2px; }
.footer-pay b { padding: 5px 10px; border-radius: 8px; background: #fff; color: var(--navy); font-size: .7rem; font-weight: 800; letter-spacing: .04em; }
.footer-pay b.pp { color: #003087; }
.footer-pay b.pp i { font-style: normal; color: #009cde; }
.footer-bottom-links { display: flex; gap: 20px; align-items: center; }
.footer-totop { width: 36px; height: 36px; border-radius: 10px; background: rgba(255,255,255,.08); display: grid; place-items: center; color: #fff; transition: background .2s, transform .2s; }
.footer-totop svg { transform: rotate(-90deg); }
.footer-totop:hover { background: var(--teal); transform: translateY(-2px); }
@media (max-width: 1180px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } .footer-grid .footer-brand { grid-column: span 3; max-width: 560px; } }
@media (max-width: 680px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid .footer-brand { grid-column: span 2; }
  .footer-top { transform: none; margin: 0 0 36px; padding: 22px; }
  .site-footer { padding-top: 40px; }
}

/* ---------- "Enrol now" page ---------- */
.page-hero.has-photo.enrol-hero { padding-block: 56px 150px; }
.enrol-hero p { margin-bottom: 22px; }
.enrol-layout { display: grid; grid-template-columns: 1fr 420px; gap: 32px; align-items: start; margin-top: -96px; position: relative; z-index: 3; }
.enrol-course-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); position: sticky; top: 100px; }
.enrol-course-card .img { aspect-ratio: 16/9; position: relative; background: linear-gradient(135deg, var(--navy-600), var(--navy)); }
.enrol-course-card .img img { width: 100%; height: 100%; object-fit: cover; }
.enrol-course-card .img .pill { position: absolute; top: 14px; left: 14px; }
.enrol-course-card .body { padding: 22px; }
.enrol-course-card h3 { font-size: 1.12rem; line-height: 1.3; margin: 6px 0 8px; }
.enrol-course-card .who { color: var(--muted); font-size: .84rem; margin-bottom: 14px; }
.enrol-price-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 14px 0; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); margin-bottom: 14px; }
.enrol-price-row .price { font-size: 1.7rem; }
.enrol-price-row .was { color: var(--muted); text-decoration: line-through; font-size: .9rem; }
.enrol-includes { display: grid; gap: 9px; }
.enrol-includes li { display: flex; gap: 10px; align-items: center; font-size: .86rem; color: var(--navy-700); }
.enrol-includes svg { width: 17px; height: 17px; color: var(--teal-600); flex-shrink: 0; }
.enrol-steps { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 22px; }
.enrol-steps.on-dark { margin-bottom: 0; position: relative; z-index: 2; }
.enrol-steps.on-dark .enrol-step { color: rgba(255,255,255,.6); }
.enrol-steps.on-dark .enrol-step.active { color: #fff; }
.enrol-steps.on-dark .enrol-step i { background: rgba(255,255,255,.14); color: rgba(255,255,255,.7); }
.enrol-steps.on-dark .enrol-step.done i, .enrol-steps.on-dark .enrol-step.active i { background: var(--teal); color: #fff; }
.enrol-steps.on-dark .enrol-step .sep { background: rgba(255,255,255,.25); }
.enrol-step { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 600; color: var(--muted); }
.enrol-step i { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: .72rem; font-weight: 700; background: var(--line-soft); color: var(--muted); }
.enrol-step.done i, .enrol-step.active i { background: var(--teal); color: #fff; }
.enrol-step.active { color: var(--navy); }
.enrol-step .sep { width: 28px; height: 1px; background: var(--line); }
.form-card.enrol-form h3 { display: flex; align-items: center; gap: 10px; }
.form-card.enrol-form h3 .n { width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: var(--teal-300); display: grid; place-items: center; font-size: .8rem; font-weight: 700; }
.enrol-account { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; background: var(--teal-50); border: 1px solid var(--teal-100); margin-bottom: 18px; font-size: .86rem; color: var(--navy-700); }
.enrol-account .tst-avatar { width: 38px; height: 38px; font-size: .8rem; flex-shrink: 0; }
.enrol-account b { display: block; color: var(--navy); }
.enrol-modules { display: grid; gap: 6px; margin-top: 16px; }
.enrol-modules li { display: flex; gap: 10px; align-items: flex-start; font-size: .84rem; color: var(--navy-700); }
.enrol-modules li i { width: 20px; height: 20px; border-radius: 6px; background: var(--paper); border: 1px solid var(--line); display: grid; place-items: center; font-style: normal; font-size: .68rem; font-weight: 700; color: var(--muted); flex-shrink: 0; margin-top: 1px; }
.enrol-free-cta { text-align: center; padding: 26px; border-radius: 18px; background: linear-gradient(135deg, var(--teal-50), #fff); border: 1px dashed var(--teal-300); }
.enrol-free-cta b { display: block; font-family: var(--font-display); font-size: 1.15rem; color: var(--navy); margin-bottom: 6px; }
.enrol-free-cta p { color: var(--muted); font-size: .88rem; margin-bottom: 16px; }
.enrol-guarantee { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; margin-top: 18px; color: var(--muted); font-size: .8rem; }
.enrol-guarantee span { display: inline-flex; gap: 6px; align-items: center; }
.enrol-guarantee svg { width: 15px; height: 15px; color: var(--teal-600); }
@media (max-width: 1024px) { .enrol-layout { grid-template-columns: 1fr; margin-top: -90px; } .enrol-course-card { position: static; order: -1; } .page-hero.has-photo.enrol-hero { padding-bottom: 120px; } }

/* Success / cancel */
.enrol-result { max-width: 760px; margin: 0 auto; text-align: center; padding: 70px 0 40px; }
.enrol-result .seal { width: 92px; height: 92px; border-radius: 50%; margin: 0 auto 22px; background: var(--teal-50); color: var(--teal-600); display: grid; place-items: center; box-shadow: 0 0 0 12px rgba(13,148,136,.08); }
.enrol-result .seal svg { width: 42px; height: 42px; }
.enrol-result .seal.cancel { background: var(--amber-soft); color: var(--amber); box-shadow: 0 0 0 12px rgba(245,158,11,.08); }
.enrol-result h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 12px; }
.enrol-result p.lead { color: var(--muted); font-size: 1.05rem; max-width: 560px; margin: 0 auto 26px; }
.enrol-result-course { display: flex; gap: 16px; align-items: center; text-align: left; padding: 16px; border-radius: 18px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); max-width: 560px; margin: 0 auto 26px; }
.enrol-result-course img { width: 120px; height: 82px; border-radius: 12px; object-fit: cover; flex-shrink: 0; }
.enrol-result-course b { display: block; color: var(--navy); font-size: 1rem; line-height: 1.3; }
.enrol-result-course span { color: var(--muted); font-size: .82rem; }
.enrol-result-meta { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; color: var(--muted); font-size: .84rem; margin-top: 22px; }
.enrol-result-meta b { color: var(--navy); }

/* ---------- Course workspace (/learn) ---------- */
.page-hero.has-photo.learn-hero { padding-block: 44px 130px; }
.learn-hero .breadcrumb { margin-bottom: 14px; }
.learn-hero h1 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); max-width: 820px; }
.learn-hero-meta { display: flex; gap: 8px 18px; flex-wrap: wrap; color: rgba(255,255,255,.75); font-size: .86rem; margin-top: 12px; }
.learn-hero-meta span { display: inline-flex; gap: 7px; align-items: center; }
.learn-hero-meta svg { width: 15px; height: 15px; color: var(--teal-300); }
.learn-layout { display: grid; grid-template-columns: 1fr 360px; gap: 32px; align-items: start; margin-top: -84px; position: relative; z-index: 3; }
.learn-progress-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow-lg); position: sticky; top: 100px; }
.learn-ring { --p: 0; width: 132px; height: 132px; border-radius: 50%; margin: 6px auto 16px; display: grid; place-items: center; background: conic-gradient(var(--teal) calc(var(--p) * 1%), var(--line-soft) 0); position: relative; }
.learn-ring::before { content: ''; position: absolute; inset: 11px; border-radius: 50%; background: #fff; }
.learn-ring > div { position: relative; text-align: center; }
.learn-ring b { display: block; font-family: var(--font-display); font-size: 1.7rem; color: var(--navy); line-height: 1; }
.learn-ring span { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.learn-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 18px; }
.learn-stats > div { text-align: center; background: var(--paper); border-radius: 12px; padding: 10px 6px; }
.learn-stats b { display: block; font-family: var(--font-display); color: var(--navy); font-size: 1.05rem; }
.learn-stats span { font-size: .7rem; color: var(--muted); }
.learn-cert { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 14px; background: var(--teal-50); border: 1px solid var(--teal-100); margin-bottom: 14px; }
.learn-cert .ic { width: 42px; height: 42px; border-radius: 12px; background: var(--teal); color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.learn-cert .ic svg { width: 20px; height: 20px; }
.learn-cert b { display: block; color: var(--navy); font-size: .9rem; }
.learn-cert span { display: block; color: var(--muted); font-size: .76rem; }
.learn-cert.pending { background: var(--paper); border-color: var(--line); }
.learn-cert.pending .ic { background: var(--line-soft); color: var(--muted); }
.learn-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; margin-bottom: 22px; }
.learn-panel h2 { font-size: 1.25rem; margin-bottom: 6px; }
.learn-panel > p.muted { font-size: .9rem; margin-bottom: 18px; }
.module-list { display: grid; gap: 10px; counter-reset: module; }
.module-list .module { display: grid; grid-template-columns: 44px 1fr auto; gap: 16px; align-items: center; padding: 16px 18px; border-radius: 16px; border: 1px solid var(--line); background: #fff; transition: border-color .2s, box-shadow .2s, background .2s; }
.module-list .module:hover { border-color: var(--teal-300); box-shadow: var(--shadow-sm); }
.module-list .module.done { background: var(--teal-50); border-color: var(--teal-100); }
.module-list .module.next { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(13,148,136,.1); }
.module-list .module.locked-after { opacity: .92; }
.module-list .module-num { width: 44px; height: 44px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); color: var(--navy); font-weight: 700; display: grid; place-items: center; font-size: .9rem; }
.module-list .module.done .module-num { background: var(--teal); border-color: var(--teal); color: #fff; }
.module-list .module.done .module-num svg { width: 18px; height: 18px; }
.module-list .module-text b { display: block; color: var(--navy); font-size: .98rem; margin-bottom: 3px; }
.module-list .module-text span { color: var(--muted); font-size: .86rem; line-height: 1.5; }
.module-list .module-text small { display: inline-flex; gap: 6px; align-items: center; margin-top: 6px; font-size: .74rem; font-weight: 700; color: var(--teal-600); text-transform: uppercase; letter-spacing: .06em; }
.module-list .module-action .btn { white-space: nowrap; }
.module-list .module.done .module-action .btn { background: transparent; border: 1.5px solid var(--teal-300); color: var(--teal-600); }
.learn-complete { text-align: center; padding: 30px; border-radius: 18px; background: linear-gradient(135deg, var(--navy), var(--navy-700)); color: #fff; margin-bottom: 22px; position: relative; overflow: hidden; }
.learn-complete::before { content: ''; position: absolute; inset: 0; background: radial-gradient(420px 200px at 100% 0%, rgba(45,212,191,.35), transparent 60%); }
.learn-complete > * { position: relative; }
.learn-complete .seal { width: 64px; height: 64px; border-radius: 50%; background: var(--teal); display: grid; place-items: center; margin: 0 auto 14px; }
.learn-complete .seal svg { width: 30px; height: 30px; }
.learn-complete h2 { color: #fff; font-size: 1.4rem; margin-bottom: 6px; }
.learn-complete p { color: rgba(255,255,255,.75); font-size: .92rem; max-width: 520px; margin: 0 auto 18px; }
.learn-outcomes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.learn-outcomes li { display: flex; gap: 10px; font-size: .88rem; color: var(--navy-700); align-items: flex-start; }
.learn-outcomes svg { width: 17px; height: 17px; color: var(--teal-600); flex-shrink: 0; margin-top: 2px; }
.learn-next { display: grid; gap: 10px; }
.learn-next a { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 14px; border: 1px solid var(--line); background: #fff; transition: border-color .2s, transform .2s; }
.learn-next a:hover { border-color: var(--teal-300); transform: translateX(2px); }
.learn-next img { width: 72px; height: 54px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.learn-next b { display: block; font-size: .86rem; color: var(--navy); line-height: 1.3; }
.learn-next span { font-size: .76rem; color: var(--muted); }
.learn-next .p { margin-left: auto; font-weight: 700; color: var(--teal-600); font-size: .84rem; white-space: nowrap; }
@media (max-width: 1024px) { .learn-layout { grid-template-columns: 1fr; margin-top: -70px; } .learn-progress-card { position: static; } .learn-outcomes { grid-template-columns: 1fr; } }
@media (max-width: 680px) { .module-list .module { grid-template-columns: 38px 1fr; } .module-list .module-num { width: 38px; height: 38px; } .module-list .module-action { grid-column: 2; } .page-hero.has-photo.learn-hero { padding-bottom: 100px; } }

/* ---------- Account: role path & course rows ---------- */
.role-pick-band { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; padding: 18px 20px; border-radius: 18px; background: linear-gradient(135deg, var(--navy), var(--navy-700)); color: #fff; margin-bottom: 22px; }
.role-pick-band b { display: block; font-family: var(--font-display); font-size: 1.05rem; margin-bottom: 2px; }
.role-pick-band span { color: rgba(255,255,255,.72); font-size: .86rem; }
.role-pick-band form { display: flex; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.role-pick-band select { padding: 10px 14px; border-radius: 10px; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.1); color: #fff; font-weight: 600; min-width: 220px; }
.role-pick-band select option { color: var(--navy); }
.my-role-card { display: flex; gap: 16px; align-items: center; padding: 18px 20px; border-radius: 18px; background: #fff; border: 1px solid var(--line); margin-bottom: 22px; }
.my-role-card .ic { width: 52px; height: 52px; border-radius: 16px; background: var(--accent, var(--teal)); color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.my-role-card .ic svg { width: 24px; height: 24px; }
.my-role-card small { display: block; color: var(--teal-600); font-weight: 700; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }
.my-role-card b { display: block; font-family: var(--font-display); font-size: 1.1rem; color: var(--navy); }
.my-role-card span.t { color: var(--muted); font-size: .86rem; }
.my-role-card .actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.path-rows { display: grid; gap: 8px; }
.path-row { display: grid; grid-template-columns: 34px 78px 1fr auto; gap: 14px; align-items: center; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line-soft); background: var(--paper); }
.path-row .step { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); font-weight: 700; font-size: .8rem; color: var(--muted); }
.path-row.done .step { background: var(--teal); border-color: var(--teal); color: #fff; }
.path-row.active .step { background: var(--navy); border-color: var(--navy); color: var(--teal-300); }
.path-row img { width: 78px; height: 54px; border-radius: 10px; object-fit: cover; }
.path-row .t b { display: block; color: var(--navy); font-size: .9rem; line-height: 1.3; }
.path-row .t span { color: var(--muted); font-size: .78rem; }
.path-row .t .bar { display: block; height: 5px; border-radius: 100px; background: var(--line); margin-top: 8px; max-width: 220px; overflow: hidden; }
.path-row .t .bar i { display: block; height: 100%; background: var(--teal); border-radius: 100px; }
.path-row .act { display: flex; gap: 6px; align-items: center; white-space: nowrap; }
@media (max-width: 680px) { .path-row { grid-template-columns: 34px 1fr; } .path-row img { display: none; } .path-row .act { grid-column: 2; } .my-role-card .actions { margin-left: 0; width: 100%; } }
.buy-enrolled { padding: 12px 14px; border-radius: 12px; background: var(--teal-50); border: 1px solid var(--teal-100); margin-bottom: 12px; }
.buy-enrolled-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: .86rem; }
.buy-enrolled-head b { display: inline-flex; gap: 6px; align-items: center; color: var(--teal-600); }
.buy-enrolled-head span { font-weight: 700; color: var(--navy); }
.buy-enrolled .progress { height: 6px; border-radius: 100px; background: #fff; overflow: hidden; }
.buy-enrolled .progress span { display: block; height: 100%; background: var(--teal); border-radius: 100px; }
.buy-note { display: flex; gap: 7px; align-items: center; justify-content: center; margin-top: 10px; color: var(--muted); font-size: .78rem; text-align: center; }
.buy-note svg { color: var(--teal-600); flex-shrink: 0; }
.btn.is-busy { opacity: .75; pointer-events: none; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 680px) { .form-grid-2 { grid-template-columns: 1fr; } }
.auth-intended { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 14px; background: var(--teal-50); border: 1px solid var(--teal-100); margin-bottom: 18px; transition: transform .2s; }
.auth-intended:hover { transform: translateY(-1px); }
.auth-intended img { width: 68px; height: 50px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.auth-intended small { display: block; color: var(--teal-600); font-weight: 700; font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; }
.auth-intended b { display: block; color: var(--navy); font-size: .9rem; line-height: 1.3; }
.auth-intended em { font-style: normal; color: var(--muted); font-size: .78rem; }

/* ---------- Topic tiles (homepage) ---------- */
.topic-tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.topic-tile { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; }
.topic-tile:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: transparent; }
.topic-tile-media { position: relative; aspect-ratio: 16/10; background: linear-gradient(135deg, var(--navy-600), var(--navy)); overflow: hidden; }
.topic-tile-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.topic-tile:hover .topic-tile-media img { transform: scale(1.06); }
.topic-tile-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,20,48,0) 40%, rgba(6,20,48,.55) 100%); }
.topic-tile-ic { position: absolute; left: 12px; bottom: -18px; z-index: 2; width: 42px; height: 42px; border-radius: 12px; background: #fff; color: var(--teal-600); display: grid; place-items: center; box-shadow: var(--shadow); border: 1px solid var(--line-soft); }
.topic-tile-ic svg { width: 20px; height: 20px; }
.topic-tile-count { position: absolute; right: 12px; bottom: 10px; z-index: 2; color: #fff; font-size: .72rem; font-weight: 700; background: rgba(6,20,48,.55); padding: 4px 9px; border-radius: 100px; backdrop-filter: blur(6px); }
.topic-tile-body { padding: 28px 16px 18px; display: flex; flex-direction: column; flex: 1; }
.topic-tile h3 { font-size: .98rem; line-height: 1.3; margin-bottom: 6px; }
.topic-tile p { color: var(--muted); font-size: .82rem; line-height: 1.5; flex: 1; }
.topic-tile .link-arrow { margin-top: 12px; font-size: .8rem; }
@media (max-width: 1180px) { .topic-tiles { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 680px) { .topic-tiles { grid-template-columns: 1fr 1fr; gap: 12px; } .topic-tile-body { padding: 24px 12px 14px; } .topic-tile p { display: none; } }
@media (max-width: 1024px) { .nav-user-text { display: none; } .nav-user { padding: 4px; border-color: transparent; } }
@media (max-width: 680px) { .nav-user { display: none; } }
.mega-foot-item .mega-foot-tag { color: #fff; display: inline-block; }
@media (max-width: 1024px) {
  .hero.hero-v4 { min-height: 0; padding-block: 64px 72px; display: block; }
  .hero.hero-v4 .hero-inner { grid-template-columns: 1fr; gap: 30px; }
  .hero.hero-v4::before { background: linear-gradient(180deg, rgba(8,24,52,.84) 0%, rgba(8,24,52,.72) 50%, rgba(8,24,52,.94) 100%); }
  .hero-copy { max-width: none; }
  .hero-side { min-height: 0; display: flex; flex-wrap: wrap; gap: 10px; }
  .hero-side .float-card { position: static; animation: none; flex: 1 1 220px; }
  .hero-side .float-card.fc-2 { display: flex; }
  .hero-card { margin: 0; max-width: none; width: 100%; }
}
@media (max-width: 680px) {
  .hero.hero-v4 { padding-block: 52px 56px; }
  .hero-v4 h1 { font-size: clamp(2.1rem, 9vw, 2.6rem); }
  .hero-roles-pick { padding: 12px; }
  .hero-role-chip { font-size: .8rem; padding: 7px 10px 7px 9px; }
  .hero-side .float-card { flex-basis: 100%; }
  .aligned-label { padding: 14px 16px; font-size: .8rem; }
  .marquee-track .trust-item { padding: 16px 18px; font-size: .82rem; }
}

/* ============================================================
   V5 — real people photos, testimonials, insights, FAQ
   ============================================================ */

/* ---------- Avatar (headshot or initials) ---------- */
.avatar { position: relative; width: 44px; height: 44px; border-radius: 50%; overflow: hidden; flex-shrink: 0; display: grid; place-items: center; background: linear-gradient(135deg, var(--teal), var(--navy-600)); color: #fff; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar i { font-style: normal; font-weight: 700; font-family: var(--font-display); font-size: .95rem; letter-spacing: .02em; }
.avatar-sm { width: 34px; height: 34px; }
.avatar-sm i { font-size: .76rem; }
.avatar-lg { width: 62px; height: 62px; }
.avatar-lg i { font-size: 1.25rem; }
.avatar-xl { width: 84px; height: 84px; }
.avatar-xl i { font-size: 1.6rem; }
.avatar-ring { box-shadow: 0 0 0 3px rgba(255,255,255,.22), 0 10px 26px rgba(0,0,0,.28); }
.tst-avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--teal), var(--navy-600)); color: #fff; display: grid; place-items: center; font-weight: 700; font-family: var(--font-display); font-size: 1rem; flex-shrink: 0; overflow: hidden; }

/* ---------- Testimonials v2 ---------- */
.testimonials-section { background: linear-gradient(180deg, var(--paper) 0%, #fff 100%); }
.tst-head { align-items: flex-end; margin-bottom: 30px; }
.tst-score { display: flex; align-items: center; gap: 16px; padding: 16px 22px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-sm); }
.tst-score-num { font-family: var(--font-display); font-size: 2.5rem; font-weight: 800; color: var(--navy); line-height: 1; letter-spacing: -.02em; }
.tst-score-num small { font-size: .9rem; color: var(--muted); font-weight: 600; }
.tst-score .stars { margin-bottom: 4px; }
.tst-score .stars svg { width: 15px; height: 15px; }
.tst-score span:not(.stars) { display: block; color: var(--muted); font-size: .8rem; }

.testimonials-layout { grid-template-columns: 1.25fr 1fr; gap: 22px; }
.tst-featured { padding: 40px; }
.tst-featured .stars svg { width: 19px; height: 19px; }
.tst-featured-quote { font-family: var(--font-display); font-size: clamp(1.15rem, 1.7vw, 1.5rem); line-height: 1.45; margin: 18px 0 30px; color: #fff; font-weight: 600; letter-spacing: -.01em; quotes: '“' '”'; }
.tst-featured-quote::before { content: open-quote; }
.tst-featured-quote::after { content: close-quote; }
.tst-featured .tst-author { gap: 16px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.16); }
.tst-course { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; padding: 4px 10px; border-radius: 100px; background: rgba(45,212,191,.14); border: 1px solid rgba(45,212,191,.3); font-size: .74rem; }
.tst-featured .tst-course { color: var(--teal-300); }

.tst-card-v2 { padding: 22px; gap: 14px; border-radius: 20px; }
.tst-card-top { display: flex; align-items: center; gap: 12px; }
.tst-card-top > div { flex: 1; min-width: 0; }
.tst-card-top b { display: block; color: var(--navy); font-size: .92rem; }
.tst-card-top span:not(.stars) { display: block; color: var(--muted); font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tst-card-top .stars svg { width: 14px; height: 14px; }
.tst-card-v2 blockquote { color: var(--navy-700); font-size: .94rem; line-height: 1.6; flex: 1; }
.tst-card-v2 blockquote::before { content: '“'; }
.tst-card-v2 blockquote::after { content: '”'; }
.tst-on { font-size: .78rem; color: var(--muted); padding-top: 12px; border-top: 1px dashed var(--line); }
.tst-on a { color: var(--teal-600); font-weight: 600; }
.tst-mini { border-radius: 18px; }
.tst-mini p { color: var(--navy-700); }
.tst-mini p::before { content: '“'; }
.tst-mini p::after { content: '”'; }
@media (max-width: 900px) { .tst-head { align-items: flex-start; } .tst-score { align-self: flex-start; } }

/* ---------- Insights / article cards ---------- */
.post-card-body h3 a { color: inherit; }
.post-card:hover .post-card-body h3 a { color: var(--teal-600); }
.post-byline { display: flex; align-items: center; gap: 11px; padding-top: 14px; border-top: 1px solid var(--line-soft); margin-top: auto; }
.post-byline > div { flex: 1; min-width: 0; }
.post-byline b { display: block; color: var(--navy); font-size: .84rem; font-weight: 600; }
.post-byline span { display: block; color: var(--muted); font-size: .74rem; }
.post-go { width: 30px; height: 30px; border-radius: 50%; background: var(--paper); color: var(--navy); display: grid; place-items: center; flex-shrink: 0; transition: background .2s, color .2s, transform .2s; }
.post-card:hover .post-go { background: var(--teal); color: #fff; transform: translateX(2px); }

/* ---------- FAQ v2 ---------- */
.faq-layout { grid-template-columns: .85fr 1.35fr; gap: 48px; }
.faq-intro h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin: 14px 0 14px; }
.faq-help { display: flex; gap: 14px; align-items: center; margin-top: 26px; padding: 16px 18px; border-radius: 16px; background: var(--teal-50); border: 1px solid var(--teal-100); }
.faq-help-ic { width: 44px; height: 44px; border-radius: 13px; background: #fff; color: var(--teal-600); display: grid; place-items: center; flex-shrink: 0; box-shadow: var(--shadow-sm); }
.faq-help-ic svg { width: 21px; height: 21px; }
.faq-help b { display: block; color: var(--navy); font-size: .92rem; }
.faq-help div > span { display: block; color: var(--muted); font-size: .82rem; }
.faq-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.faq-actions .btn svg { width: 16px; height: 16px; }
.faq-list { gap: 12px; }
.faq-item { border-radius: 18px; border-width: 1.5px; }
.faq-item:hover { border-color: var(--teal-300); }
.faq-item[open] { box-shadow: var(--shadow); }
.faq-item summary { padding: 20px 22px; gap: 20px; align-items: flex-start; font-size: 1rem; line-height: 1.4; }
.faq-q { flex: 1; }
.faq-toggle { width: 30px; height: 30px; border-radius: 50%; background: var(--teal-50); color: var(--teal-600); display: grid; place-items: center; flex-shrink: 0; transition: transform .3s var(--ease), background .2s, color .2s; }
.faq-item[open] .faq-toggle { transform: rotate(45deg); background: var(--teal); color: #fff; }
.faq-item[open] summary { padding-bottom: 12px; }
.faq-body { padding: 0 22px 22px; font-size: .94rem; }
.faq-body p { max-width: 62ch; }
@media (max-width: 1024px) { .faq-layout { grid-template-columns: 1fr; gap: 30px; } }
/* Admin: person photo field */
.photo-field { display: flex; gap: 14px; align-items: flex-start; }
.photo-field > div { flex: 1; min-width: 0; }
.photo-field-preview { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line); flex-shrink: 0; background: var(--paper); }

/* ---------- Footer v5 ---------- */
.footer-brand-logo { display: inline-block; margin-bottom: 20px; padding: 0; background: none; box-shadow: none; border-radius: 0; }
.footer-brand-logo img { height: 64px; width: auto; display: block; }
.footer-social-label { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.45); margin-bottom: 10px; }
.footer-social a { border-radius: 12px; }
.footer-contact-cta { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; padding: 9px 16px; border-radius: 100px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); color: #fff; font-size: .84rem; font-weight: 600; transition: background .2s, border-color .2s, transform .2s; }
.footer-contact-cta svg { color: var(--teal-300); }
.footer-contact-cta:hover { background: var(--teal); border-color: var(--teal); transform: translateY(-1px); }
.footer-contact-cta:hover svg { color: #fff; }

.footer-strip { display: flex; align-items: center; justify-content: space-between; gap: 16px 28px; flex-wrap: wrap; margin-top: 4px; padding: 18px 22px; border-radius: 18px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); }
.footer-strip .footer-badges { margin: 0; gap: 10px 18px; }
.footer-badge { background: transparent; border: none; padding: 0; font-size: .82rem; color: rgba(255,255,255,.78); }
.footer-badge svg { width: 16px; height: 16px; }
.footer-pay { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.footer-pay span { width: auto; margin: 0 4px 0 0; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: rgba(255,255,255,.45); }
.footer-pay b { display: inline-flex; align-items: center; justify-content: center; height: 26px; min-width: 46px; padding: 0 9px; border-radius: 6px; background: #fff; font-size: .66rem; font-weight: 800; letter-spacing: .02em; color: var(--navy); box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.footer-pay .pay-paypal { color: #003087; font-size: .74rem; letter-spacing: -.02em; }
.footer-pay .pay-paypal i { font-style: normal; color: #009cde; }
.footer-pay .pay-visa { color: #1a1f71; font-size: .78rem; font-style: italic; letter-spacing: .04em; }
.footer-pay .pay-mc { gap: 0; padding-left: 8px; font-size: .58rem; color: #231f20; letter-spacing: -.01em; }
.footer-pay .pay-mc i { width: 13px; height: 13px; border-radius: 50%; display: inline-block; }
.footer-pay .pay-mc i:first-child { background: #eb001b; }
.footer-pay .pay-mc i:nth-child(2) { background: #f79e1b; margin: 0 4px 0 -5px; }
.footer-pay .pay-amex { color: #016fd0; }
.footer-bottom { margin-top: 8px; }
@media (max-width: 680px) {
  .footer-strip { padding: 16px; margin-top: 28px; }
  .footer-brand-logo img { height: 46px; }
}

/* ---------- Hero height: comfortable on laptops, generous on large screens ---------- */
.hero.hero-v4 .container { width: 100%; }
.hero-v4 .hero-badge { margin-bottom: 16px; }
.hero-v4 .hero-cta .btn-lg { padding: 14px 26px; font-size: .95rem; }
.hero-v4 .hero-trust strong { font-size: 1.3rem; }
@media (min-width: 1500px) {
  .hero.hero-v4 { padding-block: 76px 86px; }
  .hero-v4 h1 { font-size: 3.5rem; }
  .hero-v4 .hero-sub { font-size: 1.1rem; max-width: 560px; }
}
/* Short laptop screens (e.g. 1366×768): keep the whole hero above the fold */
@media (min-width: 1025px) and (max-height: 820px) {
  .hero.hero-v4 { padding-block: 44px 52px; }
  .hero-v4 h1 { font-size: clamp(2rem, 3vw, 2.7rem); }
  .hero-v4 .hero-sub { font-size: .98rem; margin-bottom: 20px; }
  .hero-roles-pick { margin-top: 18px; padding: 12px 14px; }
  .hero-v4 .hero-trust { margin-top: 20px; }
  .hero-side { min-height: 300px; }
}

/* Hero role picker: one compact row on desktop */
@media (min-width: 1200px) {
  .hero-roles-pick { display: inline-flex; width: auto; max-width: 100%; padding: 12px 18px 12px 16px; gap: 14px; }
  .hero-role-chips { flex-wrap: nowrap; }
  .hero-role-chip { white-space: nowrap; }
}
.hero-side .float-card.fc-1 { top: 4%; }
.hero-side .float-card.fc-2 { top: 42%; }
.hero-side .float-card.fc-3 { top: 78%; }
.avatar-brand { background: #fff; border: 1px solid var(--line); }
.avatar-brand img { object-fit: contain; padding: 4px; }
@media (max-width: 1024px) {
  .testimonials-layout { grid-template-columns: 1fr; }
  .tst-featured { padding: 30px 26px; }
}
/* Grid/flex children must be allowed to shrink or long words push the layout wide */
.testimonials-layout > *, .tst-side > *, .tst-row > * { min-width: 0; }
.tst-featured, .tst-card-v2, .tst-mini { min-width: 0; overflow-wrap: anywhere; }
.tst-card-top .stars { flex-shrink: 0; }
.tst-course { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tst-featured .tst-author > div { min-width: 0; }

/* ============================================================
   V6 — article page with sidebar
   ============================================================ */
.article-hero { padding-block: 54px 60px; }
.article-hero h1 { max-width: 900px; font-size: clamp(1.9rem, 3.4vw, 2.85rem); line-height: 1.15; }
.article-tag { display: inline-flex; align-items: center; padding: 6px 14px; border-radius: 100px; background: rgba(45,212,191,.16); border: 1px solid rgba(45,212,191,.3); color: var(--teal-300); font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 16px; }
.article-standfirst { color: rgba(255,255,255,.82); font-size: 1.08rem; line-height: 1.6; max-width: 720px; margin-top: 14px; }
.article-byline { display: flex; align-items: center; gap: 13px; margin-top: 24px; }
.article-byline b { display: block; color: #fff; font-size: .95rem; }
.article-byline span { display: block; color: rgba(255,255,255,.6); font-size: .82rem; }

.article-section { padding-top: 48px; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 348px; gap: 44px; align-items: start; }
.article-main { min-width: 0; }
.article-figure { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16/8; box-shadow: var(--shadow); margin-bottom: 32px; background: var(--paper); }
.article-figure img { width: 100%; height: 100%; object-fit: cover; display: block; }
.article-main .post-body p { font-size: 1.04rem; line-height: 1.8; }
.article-main .post-body p:first-of-type { font-size: 1.14rem; color: var(--navy); }
.article-main .post-body h2 { font-size: 1.45rem; margin: 36px 0 14px; padding-top: 6px; }
.article-main .post-body h2::before { content: ''; display: block; width: 42px; height: 3px; border-radius: 3px; background: var(--teal); margin-bottom: 14px; }
.article-foot { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.article-foot .post-share { flex: 1; margin-top: 34px; }
.article-foot .btn { margin-top: 34px; }
.article-author-card { display: flex; gap: 20px; align-items: flex-start; margin-top: 34px; padding: 24px; border-radius: 20px; background: var(--paper); border: 1px solid var(--line); }
.article-author-card small { display: block; color: var(--teal-600); font-weight: 700; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.article-author-card b { display: block; font-family: var(--font-display); font-size: 1.1rem; color: var(--navy); margin: 2px 0 8px; }
.article-author-card p { color: var(--muted); font-size: .9rem; line-height: 1.6; margin-bottom: 10px; max-width: 60ch; }

/* Sidebar */
.article-sidebar { position: sticky; top: 96px; display: grid; gap: 18px; }
.side-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 20px; box-shadow: var(--shadow-sm); }
.side-title { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-family: var(--font-body); font-weight: 700; margin-bottom: 14px; }
.side-posts { display: grid; gap: 4px; }
.side-post { display: flex; gap: 12px; align-items: center; padding: 8px; margin: 0 -8px; border-radius: 14px; transition: background .2s; }
.side-post:hover { background: var(--teal-50); }
.side-post-img { width: 74px; height: 56px; border-radius: 10px; overflow: hidden; flex-shrink: 0; background: linear-gradient(135deg, var(--navy-600), var(--navy)); display: grid; place-items: center; color: var(--teal-300); }
.side-post-img img { width: 100%; height: 100%; object-fit: cover; }
.side-post-text { min-width: 0; }
.side-post-text small { display: block; color: var(--teal-600); font-weight: 700; font-size: .66rem; text-transform: uppercase; letter-spacing: .06em; }
.side-post-text b { display: block; color: var(--navy); font-size: .87rem; line-height: 1.35; margin: 2px 0 3px; font-weight: 600; }
.side-post-text em { font-style: normal; color: var(--muted); font-size: .74rem; }
.side-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line-soft); width: 100%; color: var(--teal-600); font-weight: 600; font-size: .86rem; }
.side-cats { display: flex; flex-wrap: wrap; gap: 8px; }
.side-cats a { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 100px; background: var(--paper); border: 1px solid var(--line); color: var(--navy-700); font-size: .82rem; font-weight: 600; transition: background .2s, color .2s, border-color .2s; }
.side-cats a span { font-size: .7rem; color: var(--muted); }
.side-cats a:hover, .side-cats a.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.side-cats a:hover span, .side-cats a.active span { color: var(--teal-300); }

.side-course { padding: 0; overflow: hidden; }
.side-card-flag { display: block; padding: 11px 20px; background: var(--teal-50); color: var(--teal-600); font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; border-bottom: 1px solid var(--teal-100); }
.side-course-media { display: block; position: relative; aspect-ratio: 16/9; background: linear-gradient(135deg, var(--navy-600), var(--navy)); overflow: hidden; }
.side-course-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.side-course-media:hover img { transform: scale(1.05); }
.side-course-media .course-cpd { bottom: 10px; left: 10px; }
.side-course-body { padding: 16px 20px 20px; }
.side-course-body small { display: block; color: var(--teal-600); font-weight: 700; font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 5px; }
.side-course-body > b { display: block; font-size: .98rem; line-height: 1.35; margin-bottom: 14px; }
.side-course-body > b a { color: var(--navy); }
.side-course-body > b a:hover { color: var(--teal-600); }
.side-course-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.side-course-foot .price { font-size: 1.15rem; }

.side-cta { background: linear-gradient(140deg, var(--navy) 0%, var(--navy-700) 60%, #0f766e 100%); border-color: transparent; color: #fff; text-align: center; }
.side-cta-ic { width: 48px; height: 48px; border-radius: 14px; background: rgba(255,255,255,.14); display: grid; place-items: center; margin: 0 auto 12px; }
.side-cta-ic svg { width: 24px; height: 24px; color: var(--teal-300); }
.side-cta b { display: block; font-family: var(--font-display); font-size: 1.08rem; margin-bottom: 6px; }
.side-cta p { color: rgba(255,255,255,.75); font-size: .86rem; line-height: 1.55; margin-bottom: 16px; }
.side-cta-link { display: block; margin-top: 10px; color: var(--teal-300); font-size: .82rem; font-weight: 600; }
.side-help { display: flex; gap: 13px; align-items: flex-start; }
.side-help-ic { width: 42px; height: 42px; border-radius: 12px; background: var(--teal-50); color: var(--teal-600); display: grid; place-items: center; flex-shrink: 0; }
.side-help-ic svg { width: 20px; height: 20px; }
.side-help b { display: block; color: var(--navy); font-size: .92rem; }
.side-help span { display: block; color: var(--muted); font-size: .82rem; line-height: 1.5; margin: 3px 0 8px; }
.side-help a { color: var(--teal-600); font-weight: 600; font-size: .84rem; }

@media (max-width: 1024px) {
  .article-layout { grid-template-columns: 1fr; gap: 34px; }
  .article-sidebar { position: static; grid-template-columns: 1fr 1fr; }
  .article-sidebar .side-cta { grid-column: span 2; }
}
@media (max-width: 680px) {
  .article-sidebar { grid-template-columns: 1fr; }
  .article-sidebar .side-cta { grid-column: span 1; }
  .article-hero { padding-block: 40px 46px; }
  .article-figure { aspect-ratio: 16/10; margin-bottom: 24px; }
  .article-foot { flex-direction: column; align-items: stretch; }
  .article-author-card { flex-direction: column; gap: 14px; }
}
.admin-image-preview { height: 90px; border-radius: 10px; border: 1px solid var(--line); object-fit: cover; background: var(--paper); }

/* ── V6 — testimonial strip polish ─────────────────────────────────────── */
.tst-marquee { margin-top: 38px; padding-block: 2px; }
.tst-marquee-track { gap: 20px; padding: 8px 0 16px; }
.tst-mini {
    width: 348px; padding: 20px 22px 18px; border-radius: 20px;
    display: flex; flex-direction: column; gap: 12px;
    border: 1px solid var(--line); background: var(--white);
    box-shadow: 0 1px 2px rgba(11, 31, 63, .05), 0 10px 26px -18px rgba(11, 31, 63, .35);
    position: relative; overflow: hidden;
}
.tst-mini::before {
    content: ''; position: absolute; inset: 0 0 auto 0; height: 3px;
    background: linear-gradient(90deg, var(--teal), var(--teal-300));
    opacity: 0; transition: opacity .3s;
}
.tst-marquee:hover .tst-mini::before { opacity: 1; }
.tst-mini-head { margin-bottom: 0; gap: 11px; }
.tst-mini-head .tst-avatar, .tst-mini-head .avatar-sm { width: 40px; height: 40px; font-size: .84rem; }
.tst-mini-head b { font-size: .88rem; letter-spacing: -.01em; }
.tst-mini-head .stars { align-self: flex-start; margin-top: 2px; }
.tst-mini blockquote { color: var(--navy-700); font-size: .9rem; line-height: 1.58; flex: 1; margin: 0; }
.tst-mini blockquote::before { content: '“'; }
.tst-mini blockquote::after { content: '”'; }
.tst-mini-foot {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding-top: 12px; border-top: 1px dashed var(--line); font-size: .7rem;
}
.tst-verified { display: inline-flex; align-items: center; gap: 5px; color: var(--teal); font-weight: 700; flex-shrink: 0; }
.tst-verified svg { flex-shrink: 0; }
.tst-mini-course { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: right; }
@media (max-width: 680px) {
    .tst-mini { width: 280px; padding: 17px 18px 15px; }
    .tst-mini blockquote { font-size: .86rem; }
}

/* ── V6 — auth: forgotten-password row and notices ─────────────────────── */
.auth-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.auth-link { font-size: .84rem; font-weight: 600; color: var(--teal); }
.auth-link:hover { text-decoration: underline; }
.auth-note {
    display: flex; align-items: flex-start; gap: 10px; margin-bottom: 18px;
    padding: 13px 16px; border-radius: 14px; font-size: .88rem; line-height: 1.5;
    background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46;
}
.auth-note-ic { color: var(--teal); flex-shrink: 0; margin-top: 1px; display: inline-flex; }

/* ── V6 — header fits tablets and small laptops ────────────────────────────
   The full nav needs ~1100px, so between 681px and 1180px it used to push the
   page sideways on every screen (iPad portrait and landscape included). The
   drawer now takes over below 1080px, and 1081–1200px gets tighter spacing. */
@media (max-width: 1200px) {
    .nav-links { margin-left: 10px; }
    .nav-links > li > a { padding: 9px 10px; font-size: .88rem; }
    .nav-actions { gap: 6px; }
    .topbar-links { gap: 16px; }
}
@media (max-width: 1080px) {
    .nav-links, .topbar-links, .div-hide { display: none; }
    .burger { display: grid; }
    .nav { gap: 12px; }
    .nav-drawer-cta { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; padding-top: 14px; border-top: 1px solid var(--line); }

    .nav-links.open {
        display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0;
        background: var(--white); border-bottom: 1px solid var(--line); padding: 14px 20px 20px; gap: 2px;
        box-shadow: var(--shadow-lg); max-height: calc(100vh - 110px); overflow: auto; margin-left: 0; z-index: 60;
    }
    .nav-links.open > li > a { padding: 12px 10px; font-size: 1rem; width: 100%; justify-content: space-between; }
    .nav-links.open .mega-menu { display: none; }
    .nav-links.open .mobile-sub { display: grid; gap: 2px; padding: 4px 0 8px 10px; }
    .nav-links.open .mobile-sub a { display: block; padding: 8px 10px; border-radius: 8px; color: var(--muted); font-size: .92rem; }
    .nav-links.open .mobile-sub a:hover { background: var(--line-soft); color: var(--navy); }
}

/* ── V6 — WhatsApp chat widget ─────────────────────────────────────────────
   Launcher bottom-right, panel above it. WhatsApp green is used only for the
   launcher and the send button so the mark stays recognisable; everything
   inside the panel is the site's own navy/teal. */
:root {
    --wa: #25d366;
    --wa-dark: #1da851;
    --wa-chat-bg: #f2f5f3;
}
.wa-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.wa-widget { position: fixed; right: 24px; bottom: 24px; z-index: 1200; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }

/* ---- Launcher ---- */
.wa-launcher {
    position: relative; width: 60px; height: 60px; border-radius: 50%; border: none; cursor: pointer;
    background: var(--wa); color: #fff; display: grid; place-items: center; flex-shrink: 0;
    box-shadow: 0 6px 16px rgba(37, 211, 102, .34), 0 14px 40px -12px rgba(11, 31, 63, .45);
    transition: transform .28s var(--ease), box-shadow .28s, background .2s;
}
.wa-launcher:hover { background: var(--wa-dark); transform: translateY(-2px) scale(1.04); }
.wa-launcher:active { transform: translateY(0) scale(.97); }
.wa-launcher:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
.wa-launcher-ic, .wa-launcher-x { grid-area: 1 / 1; display: grid; place-items: center; transition: opacity .22s, transform .28s var(--ease); }
.wa-launcher-x { opacity: 0; transform: rotate(-70deg) scale(.6); }
.wa-widget.is-open .wa-launcher { background: var(--navy); box-shadow: 0 0 0 3px rgba(255, 255, 255, .92), 0 8px 22px -6px rgba(11, 31, 63, .5); }
.wa-widget.is-open .wa-launcher-ic { opacity: 0; transform: rotate(70deg) scale(.6); }
.wa-widget.is-open .wa-launcher-x { opacity: 1; transform: none; }

/* Hover label — desktop only, so it never covers content on a phone */
.wa-launcher-label {
    position: absolute; right: calc(100% + 12px); top: 50%; transform: translateY(-50%) translateX(6px);
    background: var(--navy); color: #fff; font-size: .8rem; font-weight: 600; white-space: nowrap;
    padding: 8px 13px; border-radius: 10px; opacity: 0; pointer-events: none;
    transition: opacity .22s, transform .22s var(--ease); box-shadow: var(--shadow);
}
.wa-launcher-label::after {
    content: ''; position: absolute; left: 100%; top: 50%; transform: translateY(-50%);
    border: 5px solid transparent; border-left-color: var(--navy);
}
.wa-launcher:hover .wa-launcher-label, .wa-launcher:focus-visible .wa-launcher-label { opacity: 1; transform: translateY(-50%); }
.wa-widget.is-open .wa-launcher-label { display: none; }

/* "We're online" pip */
.wa-dot {
    position: absolute; top: 3px; right: 3px; width: 13px; height: 13px; border-radius: 50%;
    background: #4ade80; border: 2.5px solid #fff;
}
.wa-dot::after {
    content: ''; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid #4ade80;
    animation: wa-ping 2.4s cubic-bezier(0, 0, .2, 1) infinite;
}
@keyframes wa-ping { 0% { transform: scale(.9); opacity: .9; } 70%, 100% { transform: scale(2.1); opacity: 0; } }
.wa-widget.is-open .wa-dot { display: none; }

/* ---- Teaser ---- */
.wa-teaser {
    position: relative; max-width: 268px; background: var(--white); border: 1px solid var(--line);
    border-radius: 18px 18px 6px 18px; padding: 16px 18px 14px; box-shadow: 0 18px 44px -18px rgba(11, 31, 63, .5);
    animation: wa-rise .42s var(--ease) both;
}
.wa-teaser p { margin: 0 0 11px; font-size: .88rem; line-height: 1.5; color: var(--navy-700); }
.wa-teaser-cta {
    border: none; background: var(--teal-50); color: var(--teal-600); font: inherit; font-size: .82rem; font-weight: 700;
    padding: 7px 14px; border-radius: 999px; cursor: pointer; transition: background .2s;
}
.wa-teaser-cta:hover { background: #ccfbf1; }
.wa-teaser-close {
    position: absolute; top: 8px; right: 8px; width: 24px; height: 24px; border-radius: 50%; border: none;
    background: var(--line-soft); color: var(--muted); display: grid; place-items: center; cursor: pointer; padding: 0;
}
.wa-teaser-close:hover { background: var(--line); color: var(--navy); }
@keyframes wa-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---- Panel ---- */
.wa-panel {
    width: 366px; max-width: calc(100vw - 32px); background: var(--white);
    border-radius: 20px; overflow: hidden; box-shadow: 0 26px 70px -22px rgba(11, 31, 63, .58), 0 2px 8px rgba(11, 31, 63, .1);
    border: 1px solid var(--line); display: flex; flex-direction: column;
    /* Capped so the panel never reaches the header on a laptop screen;
       the message list scrolls inside instead. */
    max-height: calc(100vh - 132px); max-height: min(620px, calc(100dvh - 132px));
    transform-origin: bottom right; animation: wa-pop .3s var(--ease) both;
}
@keyframes wa-pop { from { opacity: 0; transform: translateY(16px) scale(.94); } to { opacity: 1; transform: none; } }

.wa-head {
    display: flex; align-items: center; gap: 12px; padding: 16px 16px 14px; flex-shrink: 0;
    background: linear-gradient(125deg, var(--navy) 0%, #12325c 60%, #0f766e 100%); color: #fff;
}
.wa-avatar { position: relative; width: 44px; height: 44px; flex-shrink: 0; }
.wa-avatar img { width: 44px; height: 44px; border-radius: 50%; object-fit: contain; background: #fff; padding: 3px; }
.wa-presence {
    position: absolute; right: -1px; bottom: -1px; width: 13px; height: 13px; border-radius: 50%;
    background: var(--muted-2); border: 2.5px solid var(--navy);
}
.wa-presence.is-on { background: #4ade80; }
.wa-head-text { flex: 1; min-width: 0; }
.wa-head-text b { display: block; font-family: var(--font-display); font-size: 1rem; letter-spacing: -.01em; }
.wa-head-text span { display: block; font-size: .76rem; color: rgba(255, 255, 255, .74); margin-top: 1px; }
.wa-close {
    width: 32px; height: 32px; border-radius: 50%; border: none; background: rgba(255, 255, 255, .14);
    color: #fff; display: grid; place-items: center; cursor: pointer; flex-shrink: 0; padding: 0; transition: background .2s;
}
.wa-close:hover { background: rgba(255, 255, 255, .26); }

.wa-status {
    display: flex; align-items: flex-start; gap: 7px; margin: 0; padding: 9px 18px;
    background: var(--paper); border-bottom: 1px solid var(--line);
    font-size: .76rem; color: var(--muted); line-height: 1.4;
}
.wa-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted-2); flex-shrink: 0; margin-top: .35em; }
.wa-status.is-open { color: var(--teal-600); }
.wa-status.is-open i { background: #22c55e; }

.wa-body {
    padding: 18px; background: var(--wa-chat-bg);
    background-image: radial-gradient(rgba(11, 31, 63, .05) 1px, transparent 1px);
    background-size: 18px 18px;
    flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
}
.wa-bubble {
    position: relative; background: var(--white); border-radius: 4px 16px 16px 16px;
    padding: 13px 15px 8px; box-shadow: 0 1px 2px rgba(11, 31, 63, .12); max-width: 96%;
}
.wa-bubble p { margin: 0 0 7px; font-size: .88rem; line-height: 1.55; color: var(--navy-700); }
.wa-bubble p:last-of-type { margin-bottom: 4px; }
.wa-bubble time { display: block; text-align: right; font-size: .66rem; color: var(--muted-2); font-variant-numeric: tabular-nums; }

.wa-topics-label { margin: 16px 0 9px; font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.wa-topics { display: flex; flex-wrap: wrap; gap: 7px; }
.wa-topics button {
    font: inherit; font-size: .8rem; font-weight: 600; color: var(--navy-700);
    background: var(--white); border: 1px solid var(--line); border-radius: 999px;
    padding: 7px 13px; cursor: pointer; transition: border-color .2s, background .2s, color .2s, transform .2s;
}
.wa-topics button:hover { border-color: var(--teal); color: var(--teal-600); background: var(--teal-50); transform: translateY(-1px); }
.wa-topics button.is-active { border-color: var(--teal); background: var(--teal); color: #fff; }

.wa-form { padding: 14px 16px 16px; background: var(--white); border-top: 1px solid var(--line); flex-shrink: 0; }
.wa-form textarea {
    width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 11px 13px;
    font: inherit; font-size: .88rem; line-height: 1.5; color: var(--navy); resize: none;
    background: var(--paper); transition: border-color .2s, background .2s;
}
.wa-form textarea:focus { outline: none; border-color: var(--teal); background: var(--white); box-shadow: 0 0 0 3px var(--teal-50); }
.wa-send {
    width: 100%; margin-top: 10px; border: none; border-radius: 12px; cursor: pointer;
    background: var(--wa); color: #fff; font: inherit; font-size: .92rem; font-weight: 700;
    padding: 12px 16px; display: flex; align-items: center; justify-content: center; gap: 9px;
    transition: background .2s, transform .2s;
}
.wa-send:hover { background: var(--wa-dark); transform: translateY(-1px); }
.wa-send:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }
.wa-form small { display: block; margin-top: 9px; font-size: .7rem; line-height: 1.45; color: var(--muted); text-align: center; }

/* Lift clear of the sticky mobile enrol bar and the toast */
body.has-mobile-buy .wa-widget { bottom: 82px; }
body.has-wa .toast { bottom: 100px; }

@media (max-width: 680px) {
    .wa-widget { right: 16px; bottom: 16px; gap: 10px; }
    body.has-mobile-buy .wa-widget { bottom: 78px; }
    .wa-launcher { width: 54px; height: 54px; }
    .wa-launcher-label { display: none; }
    .wa-panel { width: calc(100vw - 32px); max-height: calc(100dvh - 108px); }
    .wa-teaser { max-width: calc(100vw - 96px); }

    /* Tighter on a phone so the panel covers less of the page behind it */
    .wa-head { padding: 13px 14px 12px; }
    .wa-avatar, .wa-avatar img { width: 38px; height: 38px; }
    .wa-head-text b { font-size: .94rem; }
    .wa-status { padding: 8px 15px; }
    .wa-body { padding: 14px; }
    .wa-bubble { padding: 11px 13px 7px; }
    .wa-bubble p { font-size: .85rem; line-height: 1.5; margin-bottom: 6px; }
    .wa-topics-label { margin: 13px 0 8px; }
    .wa-topics { gap: 6px; }
    .wa-topics button { padding: 6px 11px; font-size: .78rem; }
    .wa-form { padding: 12px 14px 13px; }
    .wa-send { padding: 11px 14px; margin-top: 9px; }
    .wa-form small { margin-top: 7px; font-size: .66rem; }
}
@media (prefers-reduced-motion: reduce) {
    .wa-panel, .wa-teaser { animation: none; }
    .wa-dot::after { animation: none; }
    .wa-launcher:hover { transform: none; }
}

/* ══════════════════════════════════════════════════════════════════════════
   V7 — design polish pass
   ══════════════════════════════════════════════════════════════════════════ */

/* ── Course card: one-line meta, clamped copy, pinned footer ─────────────── */
.course-body { padding: 18px 20px 20px; }
.course-meta { flex-wrap: nowrap; overflow: hidden; gap: 12px; margin-bottom: 10px; }
.course-meta span { white-space: nowrap; }
.course-meta .course-topic { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.course-meta .course-topic svg { flex-shrink: 0; }
.course-card h3 { min-height: calc(1.05rem * 1.3 * 2); }              /* two lines reserved: titles align across a row */
.course-desc {
    flex: 0 0 auto;                                                    /* the clamp only works when the box does NOT grow */
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    margin-bottom: 0; line-height: 1.5;
}
.course-rating { margin-top: auto; padding-top: 14px; margin-bottom: 12px; }   /* rating + price sit together at the bottom */
.course-enrolled { color: var(--muted-2); margin-left: auto; white-space: nowrap; font-size: .76rem; }
.course-foot { flex-wrap: nowrap; gap: 12px; }
.price-wrap { display: flex; flex-direction: column; align-items: flex-start; gap: 0; line-height: 1; }
.price { line-height: 1.05; }
.price-was { font-size: .78rem; margin-top: 4px; }
.price-was s { text-decoration-color: var(--muted-2); }
.course-card .btn-sm { padding: 9px 14px; white-space: nowrap; flex-shrink: 0; }
@container (max-width: 265px) {
    .course-foot { flex-direction: row; align-items: center; }
    .course-foot .btn { width: auto; }
}
.course-level {
    position: absolute; right: 12px; bottom: 12px; z-index: 2;
    background: rgba(6, 20, 48, .62); color: #fff; backdrop-filter: blur(6px);
    font-size: .7rem; font-weight: 600; letter-spacing: .02em; padding: 5px 10px; border-radius: 100px;
}

/* ── Every truncated sentence now ends on a word, not mid-word ───────────── */
.clamp-2, .post-card-body p, .topic-tile p, .role-card p, .cat-card p, .related-card p {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ── Headings never leave a single word on the last line ─────────────────── */
h1, h2, h3, .section-head h2, .page-hero h1, .cta-band h2 { text-wrap: balance; }
.section-head p, .page-hero p, .hero-sub { text-wrap: pretty; }
.course-card h3, .course-card h3 a, .post-card h3, .mega-course-text b, .side-post b { text-wrap: initial; }

/* ── Footer: pages that close with their own CTA skip the footer band ─────── */
.site-footer.no-band { padding-top: 72px; margin-top: 0; }
@media (max-width: 680px) { .site-footer.no-band { padding-top: 52px; } }

/* ── CPD explainer: full-width items span the explicit columns only, so a
      one-column phone layout never grows an implicit second column ──────── */
.cpd-card.countdown, .cpd-card.dark, .cpd-photo { grid-column: 1 / -1; }
.cpd-cards .cpd-card:not(.countdown):not(.dark) { grid-column: auto; }

/* ── Home hero on phones: drop the decorative float cards, tidy the stats ─── */
@media (max-width: 680px) {
    .hero-v4 .hero-side { display: none; }
    .hero-v4 .hero-trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 22px; }
    .hero-v4 .hero-trust > div { font-size: .72rem; line-height: 1.3; }
    .hero-v4 .hero-trust strong { font-size: 1.2rem; margin-bottom: 3px; }
}

/* ── Topic tiles: icon fully visible, no orphan tile on phones ───────────── */
/* (V8) the photo box stays clipped — see the topic-tile block in the V8 section */
@media (max-width: 680px) {
    .topic-tiles .topic-tile:last-child:nth-child(odd) { grid-column: 1 / -1; }
    .topic-tiles .topic-tile:last-child:nth-child(odd) .topic-tile-media { aspect-ratio: 16 / 6; }
}

/* ── Role page hero: stats sit level with the copy, not sunk to the floor ── */
.role-hero-inner, .role-hero .hero-inner { align-items: center; }
.role-hero-stats { align-self: center; }

/* ── FAQ "still have a question?" — the icon was white on white ──────────── */
.faq-help-ic { background: var(--teal); color: #fff; }

/* ── Course page ─────────────────────────────────────────────────────────── */
.fact-strip > div span, .fact-strip .fact span { white-space: nowrap; }
.audience-section, .who-for { margin-bottom: 40px; }
.dev-outcomes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dev-outcomes .lbl { grid-column: 1 / -1; }
.dev-outcome { display: flex; align-items: flex-start; gap: 10px; padding: 9px 12px 9px 9px; border-radius: 12px; white-space: normal; line-height: 1.4; font-size: .8rem; }
.dev-outcome b { flex-shrink: 0; margin-top: -1px; }
.dev-outcome span { overflow: visible; text-overflow: clip; white-space: normal; }
@media (max-width: 560px) { .dev-outcomes { grid-template-columns: 1fr; } }

/* ── Offers ribbon reads "UP TO 25% OFF" in that order ───────────────────── */
.offer-ribbon { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.offer-ribbon-label { display: contents; }
.offer-ribbon-label b { order: 3; }
.offer-ribbon-label .up-to { order: 1; font-size: .8rem; letter-spacing: .18em; margin-bottom: 2px; }
.offer-ribbon-pct { order: 2; }

/* ── Auth pages: both columns run the full height of the row ─────────────── */
.auth-wrap { align-items: stretch; }
.auth-side, .auth-form { min-height: 100%; }

/* ── Money-back copy never breaks on its hyphen ──────────────────────────── */
.nowrap { white-space: nowrap; }

.role-hero-grid { align-items: center; }
.audience-chips { margin-bottom: 44px; }                                  /* room before the curriculum heading */
.curriculum-head { margin-top: 0; }
.curriculum-head h2 { margin-top: 0; }

/* ── Dashboard hero actions (replace the duplicated stat tiles) ──────────── */
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; align-self: center; justify-content: flex-end; }
.btn-ghost-light { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .28); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .45); color: #fff; }
@media (max-width: 680px) { .hero-actions { justify-content: flex-start; } }

/* A clamped paragraph must not be the flex spacer — the spacer moves to the
   element after it, otherwise the box grows and paints lines past the ellipsis. */
.post-card-body p, .topic-tile p { flex: 0 0 auto; }
.post-card-body .post-byline, .post-card-body .post-meta, .post-card-body > :last-child { margin-top: auto; }
.topic-tile .link-arrow { margin-top: auto; padding-top: 12px; }
@media (max-width: 680px) { .topic-tile p { display: none; } }

.faq-help-ic { display: grid; color: #fff; }
.faq-help-ic svg { stroke: #fff; }

/* ── Certificate: the artefact learners hand to inspectors ───────────────── */
.cert-page { padding-block: 44px 72px; }
.cert-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; flex-wrap: wrap; gap: 12px; }
.cert-toolbar-actions { display: flex; align-items: center; gap: 14px; }
.cert-toolbar-note { font-size: .78rem; color: var(--muted); }
.cert-help { text-align: center; font-size: .82rem; margin-top: 20px; max-width: 60ch; margin-inline: auto; }

.cert {
    background: #fff; border: 2px solid var(--navy); border-radius: 12px; padding: 40px 52px 36px; text-align: center;
    position: relative; max-width: 900px; margin: 0 auto; box-shadow: 0 30px 80px -30px rgba(11, 31, 63, .45); overflow: hidden;
    background-image:
        radial-gradient(circle at 100% 0%, rgba(13, 148, 136, .09), transparent 42%),
        radial-gradient(circle at 0% 100%, rgba(11, 31, 63, .06), transparent 40%);
}
.cert::before { content: ''; position: absolute; inset: 12px; border: 1px solid var(--teal); border-radius: 6px; pointer-events: none; opacity: .8; }
.cert::after { content: none; }
.cert > * { position: relative; }

.cert-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; }
.cert-logo { height: 54px; width: auto; }
.cert-no { text-align: right; }
.cert-no small { display: block; font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.cert-no b { font-family: var(--font-display); font-size: .92rem; color: var(--navy); letter-spacing: .04em; }

.cert-kicker { display: inline-block; font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: var(--teal-600); font-weight: 700; margin-bottom: 18px; }
.cert-line { color: var(--muted); font-size: .95rem; margin: 0 0 8px; }
.cert .recipient {
    font-family: var(--font-display); font-size: clamp(1.8rem, 3.4vw, 2.5rem); font-weight: 800; color: var(--navy);
    letter-spacing: -.02em; display: inline-block; padding: 0 34px 10px; margin: 2px 0 16px;
    border-bottom: 2px solid var(--teal); line-height: 1.1;
}
.cert .cert-course { font-family: var(--font-display); font-size: 1.32rem; color: var(--navy); margin: 4px auto 6px; font-weight: 700; max-width: 34ch; line-height: 1.25; }
.cert .cert-hours { color: var(--muted); font-size: .9rem; margin-bottom: 26px; }

.cert-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 640px; margin: 0 auto 26px; }
.cert-meta > div { background: var(--paper); border: 1px solid var(--line-soft); border-radius: 12px; padding: 12px 14px; }
.cert-meta b { display: block; color: var(--navy); font-family: var(--font-display); font-size: 1.05rem; letter-spacing: -.01em; }
.cert-meta span { display: block; color: var(--muted); font-size: .7rem; margin-top: 3px; }

.cert-details { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 28px; text-align: left; max-width: 760px; margin: 0 auto; padding-top: 22px; border-top: 1px solid var(--line-soft); }
.cert-details small { display: block; font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: var(--teal-600); font-weight: 700; margin-bottom: 4px; }
.cert-details p { margin: 0; font-size: .78rem; line-height: 1.5; color: var(--navy-700); }

.cert-foot { display: grid; grid-template-columns: 1.2fr 1fr 1.2fr; gap: 20px; margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line); font-size: .78rem; color: var(--muted); text-align: left; align-items: end; }
.cert-foot b { display: block; color: var(--navy); font-size: .84rem; margin-bottom: 2px; }
.cert-foot span { display: block; }
.cert-sign { text-align: center; }
.cert-sign-line { display: block; width: 150px; height: 1px; background: var(--navy); margin: 0 auto 8px; opacity: .55; }
.cert-verify { text-align: right; }
.cert-sign .cert-seal {
    position: static; width: 54px; height: 54px; border-radius: 50%; margin: 0 auto 8px;
    background: var(--navy); color: var(--teal-300); display: grid; place-items: center;
    box-shadow: 0 6px 18px rgba(11, 31, 63, .28); border: 3px solid #fff; outline: 1px solid var(--teal);
}
.cert-sign .cert-seal svg { width: 26px; height: 26px; }
.cert-foot { align-items: end; }

@media (max-width: 760px) {
    .cert { padding: 26px 20px 24px; }
    .cert-meta { grid-template-columns: 1fr; gap: 8px; }
    .cert-details { grid-template-columns: 1fr; }
    .cert-foot { grid-template-columns: 1fr; text-align: left; gap: 14px; }
    .cert-sign, .cert-verify { text-align: left; }
    .cert-sign-line { margin-left: 0; }
    .cert-sign .cert-seal { margin-left: 0; }
    .cert .recipient { padding-inline: 12px; }
}

@media print {
    @page { size: A4 landscape; margin: 10mm; }
    body, .cert-page, .section { background: #fff !important; padding: 0 !important; margin: 0 !important; }
    .container { max-width: none !important; padding: 0 !important; }
    .cert { box-shadow: none; max-width: none; border-color: var(--navy); page-break-inside: avoid; padding: 26px 40px 24px; background-image: none; }
    .cert-meta { margin-bottom: 18px; }
    .cert-details { padding-top: 14px; gap: 10px 24px; }
    .cert-foot { margin-top: 20px; }
    .wa-widget { display: none !important; }
    -webkit-print-color-adjust: exact; print-color-adjust: exact;
}

/* ── Keyboard focus: one on-brand ring everywhere, only for keyboard users ── */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
    outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px;
}
:where(.btn, .hero-role-chip, .topic-tile, .course-card a, .post-card a):focus-visible { outline-offset: 2px; }
:where(input, select, textarea):focus-visible { outline-offset: 0; outline-width: 2px; }
.site-header :where(a, button):focus-visible, .on-dark :where(a, button):focus-visible, .site-footer :where(a, button):focus-visible { outline-color: var(--teal-300); }

/* ══════════════════════════════════════════════════════════════════════════
   V8 — client round: hero overlay, topic tiles, comparison, steps, test pay
   ══════════════════════════════════════════════════════════════════════════ */

/* ── Hero: lighter veil on the left so the practice photo reads through ──── */
.hero.hero-v4::before {
    background:
        linear-gradient(90deg, rgba(8, 24, 52, .66) 0%, rgba(8, 24, 52, .56) 24%, rgba(8, 24, 52, .36) 46%, rgba(8, 24, 52, .14) 66%, rgba(8, 24, 52, .06) 84%, rgba(8, 24, 52, .26) 100%),
        linear-gradient(180deg, rgba(8, 24, 52, .34) 0%, rgba(8, 24, 52, 0) 28%, rgba(8, 24, 52, 0) 58%, rgba(8, 24, 52, .9) 100%);
}
.hero-v4 .hero-copy { text-shadow: 0 1px 2px rgba(4, 14, 34, .5), 0 4px 30px rgba(4, 14, 34, .6); }
.hero-v4 .hero-sub { color: rgba(255, 255, 255, .94); }
@media (max-width: 680px) {
    .hero.hero-v4::before { background: linear-gradient(180deg, rgba(8, 24, 52, .72) 0%, rgba(8, 24, 52, .6) 50%, rgba(8, 24, 52, .94) 100%); }
}

/* ── Topic tiles: photo box always 16:10 and clipped; the icon badge lives in
      the body and hangs up over the photo's bottom edge ────────────────────── */
.topic-tile-media { aspect-ratio: 16 / 10; min-height: 0; max-height: 200px; overflow: hidden; }
.topic-tile-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.topic-tile-body { position: relative; padding-top: 32px; }
.topic-tile-ic { position: absolute; top: -21px; left: 14px; bottom: auto; }
@media (max-width: 680px) {
    .topic-tiles .topic-tile:last-child:nth-child(odd) .topic-tile-media { aspect-ratio: 16 / 7; max-height: 150px; }
}

/* ── Comparison: a highlighted-column feature grid, not a spreadsheet ────── */
.compare-section { background: linear-gradient(180deg, var(--paper) 0%, #fff 100%); }
.compare-section .section-head p { max-width: 60ch; margin-inline: auto; }
.compare-card {
    max-width: 1040px; margin: 0 auto; background: var(--white); border: 1px solid var(--line);
    border-radius: 24px; box-shadow: 0 30px 70px -40px rgba(11, 31, 63, .4), var(--shadow-sm); overflow: hidden;
}
.compare-head, .compare-row, .compare-foot { display: grid; grid-template-columns: 1.15fr 1.25fr 1fr; align-items: stretch; }

/* header */
.compare-head { border-bottom: 1px solid var(--line); }
.compare-head > div { padding: 20px 24px; }
.compare-head-label { display: flex; align-items: end; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.compare-head-us {
    position: relative; display: flex; align-items: center; gap: 12px; padding-top: 30px !important;
    background: linear-gradient(135deg, var(--navy) 0%, #12325c 70%, #0f766e 140%); color: #fff;
}
.compare-head-us img { width: 38px; height: 38px; border-radius: 10px; background: #fff; padding: 4px; object-fit: contain; flex-shrink: 0; }
.compare-head-us b { display: block; font-family: var(--font-display); font-size: 1.05rem; letter-spacing: -.01em; }
.compare-head-us span:not(.compare-head-flag) { display: block; font-size: .76rem; color: rgba(255, 255, 255, .72); margin-top: 2px; }
.compare-head-flag {
    position: absolute; top: 0; left: 24px; transform: translateY(-1px);
    background: var(--teal-300); color: var(--navy); font-size: .62rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
    padding: 4px 10px; border-radius: 0 0 8px 8px;
}
.compare-head-them { display: flex; flex-direction: column; justify-content: center; }
.compare-head-them b { display: block; color: var(--navy-700); font-family: var(--font-display); font-size: .96rem; }
.compare-head-them span { display: block; font-size: .76rem; color: var(--muted); margin-top: 2px; }

/* rows */
.compare-row { border-bottom: 1px solid var(--line-soft); transition: background .2s; }
.compare-row:last-of-type { border-bottom: none; }
.compare-row:hover { background: var(--paper); }
.compare-row > div { padding: 15px 24px; display: flex; align-items: center; gap: 12px; font-size: .9rem; line-height: 1.45; }
.compare-label { color: var(--navy); font-weight: 600; }
.compare-label-ic { width: 32px; height: 32px; border-radius: 9px; background: var(--paper); border: 1px solid var(--line); color: var(--teal-600); display: grid; place-items: center; flex-shrink: 0; }
.compare-label-ic svg { width: 15px; height: 15px; }
.compare-us { background: var(--teal-50); color: var(--navy-700); font-weight: 500; border-inline: 1px solid var(--teal-100); }
.compare-row:hover .compare-us { background: #d9f3ee; }
.compare-them { color: var(--muted); }
.compare-mark { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; }
.compare-mark svg { width: 12px; height: 12px; stroke-width: 3; }
.compare-mark.yes { background: var(--teal); color: #fff; }
.compare-mark.no { background: #fee2e2; color: #b91c1c; }

/* footer */
.compare-foot { grid-template-columns: 1fr auto; align-items: center; gap: 18px; padding: 20px 24px; background: var(--paper); border-top: 1px solid var(--line); }
.compare-foot-text b { display: block; color: var(--navy); font-family: var(--font-display); font-size: 1rem; }
.compare-foot-text span { display: block; color: var(--muted); font-size: .84rem; margin-top: 2px; }
.compare-foot-actions { display: flex; gap: 10px; flex-wrap: wrap; }

@media (max-width: 860px) {
    .compare-head { display: none; }
    .compare-row { grid-template-columns: 1fr; border-bottom: 1px solid var(--line); }
    .compare-row > div { padding: 12px 18px; }
    .compare-label { padding-bottom: 6px !important; padding-top: 16px !important; }
    .compare-us { border-inline: none; border-radius: 12px; margin: 0 14px; }
    .compare-us::before { content: 'UISC Edu Skill'; display: block; font-size: .62rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-600); margin-right: auto; order: -1; width: 100%; }
    .compare-us { flex-wrap: wrap; row-gap: 4px; }
    .compare-them { padding-bottom: 16px !important; }
    .compare-them::before { content: 'Generic e-learning'; display: block; font-size: .62rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); width: 100%; order: -1; }
    .compare-them { flex-wrap: wrap; row-gap: 4px; }
    .compare-foot { grid-template-columns: 1fr; padding: 18px; }
}
@media (max-width: 860px) {
    .compare-us > span:last-child, .compare-them > span:last-child { flex: 1 1 0; min-width: 0; }
    .compare-us .compare-mark, .compare-them .compare-mark { margin-top: 1px; }
}

/* ── How it works: a connected rail, not four loose boxes ────────────────── */
.steps-section { position: relative; }
.steps-rail { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; position: relative; counter-reset: step; }
.steps-rail::before {
    content: ''; position: absolute; top: 30px; left: calc(12.5% + 30px); right: calc(12.5% + 30px); height: 2px;
    background: linear-gradient(90deg, var(--teal) 0%, var(--teal-300) 100%); opacity: .55; border-radius: 2px;
}
.step { position: relative; padding: 0 6px; }
.step-ghost {
    position: absolute; top: -18px; right: 4px; font-family: var(--font-display); font-size: 5.2rem; font-weight: 800; line-height: 1;
    letter-spacing: -.05em; color: var(--teal); opacity: .07; pointer-events: none; user-select: none;
}
.step-marker {
    position: relative; width: 60px; height: 60px; border-radius: 50%; margin: 0 auto 22px;
    background: var(--navy); color: var(--teal-300); display: grid; place-items: center;
    box-shadow: 0 0 0 6px #fff, 0 10px 26px -8px rgba(11, 31, 63, .55); transition: transform .3s var(--ease), background .3s;
}
.step-marker svg { width: 24px; height: 24px; }
.step-marker i {
    position: absolute; right: -6px; bottom: -4px; width: 24px; height: 24px; border-radius: 50%;
    background: var(--teal); color: #fff; font-style: normal; font-family: var(--font-display); font-weight: 800; font-size: .74rem;
    display: grid; place-items: center; border: 2px solid #fff;
}
.step:hover .step-marker { transform: translateY(-4px); background: var(--teal); color: #fff; }
.step-body { text-align: center; }
.step-body h3 { font-size: 1.08rem; margin-bottom: 8px; }
.step-body p { color: var(--muted); font-size: .9rem; line-height: 1.55; margin: 0 auto 14px; max-width: 26ch; }
.step-body p b { color: var(--navy); }
.step-chip {
    display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 100px;
    background: var(--teal-50); color: var(--teal-600); font-size: .74rem; font-weight: 700;
}
.steps-foot {
    display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap;
    margin: 44px auto 0; padding: 14px 20px; max-width: 860px; border-radius: 16px;
    background: var(--paper); border: 1px solid var(--line); color: var(--muted); font-size: .9rem; text-align: center;
}
.steps-foot b { color: var(--navy); }
.steps-foot-ic { width: 32px; height: 32px; border-radius: 9px; background: var(--navy); color: var(--teal-300); display: grid; place-items: center; flex-shrink: 0; }
.steps-foot-ic svg { width: 16px; height: 16px; }
.steps-foot .link-arrow { white-space: nowrap; }

@media (max-width: 960px) {
    .steps-rail { grid-template-columns: 1fr 1fr; gap: 36px 24px; }
    .steps-rail::before { display: none; }
}
@media (max-width: 560px) {
    .steps-rail { grid-template-columns: 1fr; gap: 0; padding-left: 8px; }
    .steps-rail::before { display: block; top: 30px; bottom: 30px; left: 38px; right: auto; width: 2px; height: auto; background: linear-gradient(180deg, var(--teal), var(--teal-300)); }
    .step { display: grid; grid-template-columns: 60px 1fr; gap: 0 18px; padding: 0 0 30px; }
    .step-marker { margin: 0; }
    .step-body { text-align: left; }
    .step-body p { margin-left: 0; max-width: none; }
    .step-ghost { display: none; }
}
.step-ghost { font-size: 4.6rem; right: 10px; top: -14px; }
.steps-foot { justify-content: flex-start; text-align: left; }
.steps-foot > span:not(.steps-foot-ic) { flex: 1 1 320px; }
@media (max-width: 560px) { .steps-foot { text-align: left; } }
@media (max-width: 560px) {
    .steps-rail::before { display: none; }                                 /* rail is drawn per step so it stops at the last marker */
    .step::before { content: ''; position: absolute; left: 29px; top: 64px; bottom: -4px; width: 2px; background: linear-gradient(180deg, var(--teal), var(--teal-300)); opacity: .6; }
    .step:last-child::before { display: none; }
}

/* ── Payment step: PayPal wordmark, test-mode flag, processing screen ────── */
.pay-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 26px; margin-bottom: 12px; flex-wrap: wrap; }
.pay-brand { font-size: 1.25rem; font-weight: 800; letter-spacing: -.5px; color: #003087; flex-shrink: 0; }
.pay-brand span { color: #009cde; }
.pay-option.is-selected { border-color: var(--teal); background: var(--teal-50); }
.pay-test-flag {
    display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 100px;
    background: #fff7e6; border: 1px solid #f5d9a8; color: #9a5b00; font-size: .74rem; font-weight: 700; letter-spacing: .02em;
}
.pay-test-note {
    display: flex; gap: 9px; align-items: flex-start; margin: 10px 0 0; padding: 11px 13px; border-radius: 12px;
    background: #fff7e6; border: 1px dashed #f0cf90; color: #7a4a00; font-size: .8rem; line-height: 1.5;
}
.pay-test-note svg { flex-shrink: 0; margin-top: 2px; }
.pay-test-note b { color: #6b3d00; }
.pay-test-banner {
    display: flex; gap: 10px; align-items: flex-start; text-align: left; max-width: 620px; margin: 22px auto 22px;
    padding: 12px 15px; border-radius: 12px; background: #fff7e6; border: 1px solid #f5d9a8; color: #7a4a00; font-size: .84rem; line-height: 1.5;
}
.pay-test-banner svg { flex-shrink: 0; margin-top: 2px; }

.pay-processing {
    position: fixed; inset: 0; z-index: 1300; display: grid; place-items: center; padding: 20px;
    background: rgba(6, 20, 48, .72); backdrop-filter: blur(8px); animation: wa-rise .3s var(--ease) both;
}
body.pay-processing-open { overflow: hidden; }
.pay-processing-card {
    width: 100%; max-width: 440px; background: #fff; border-radius: 22px; padding: 34px 32px 26px; text-align: center;
    box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .6); animation: wa-pop .35s var(--ease) both;
}
.pay-processing-card img { width: 48px; height: 48px; margin: 0 auto 14px; display: block; }
.pay-processing-card h2 { font-size: 1.3rem; margin: 0 0 6px; letter-spacing: -.01em; }
.pay-processing-card p { color: var(--muted); font-size: .9rem; margin: 0 0 22px; }
.pay-processing-card small { display: block; margin-top: 18px; font-size: .72rem; color: var(--muted-2); }
.pay-spinner { position: relative; width: 56px; height: 56px; margin: 0 auto 18px; }
.pay-spinner::before { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 4px solid var(--teal-50); }
.pay-spinner i { position: absolute; inset: 0; border-radius: 50%; border: 4px solid transparent; border-top-color: var(--teal); animation: pay-spin .9s linear infinite; }
.pay-processing.is-done .pay-spinner i { animation: none; border-color: var(--teal); }
.pay-processing.is-done .pay-spinner::after { content: ''; position: absolute; left: 19px; top: 14px; width: 12px; height: 22px; border: solid var(--teal); border-width: 0 4px 4px 0; transform: rotate(45deg); }
@keyframes pay-spin { to { transform: rotate(360deg); } }
.pay-steps { list-style: none; margin: 0; padding: 0; text-align: left; display: grid; gap: 8px; }
.pay-steps li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--paper); color: var(--muted); font-size: .86rem; transition: background .3s, color .3s; }
.pay-steps li b { color: inherit; font-weight: 700; }
.pay-step-dot { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line-2, var(--line)); flex-shrink: 0; display: grid; place-items: center; transition: all .3s; }
.pay-steps li.is-active { background: var(--teal-50); color: var(--navy); }
.pay-steps li.is-active .pay-step-dot { border-color: var(--teal); border-top-color: transparent; animation: pay-spin .8s linear infinite; }
.pay-steps li.is-done { color: var(--navy-700); }
.pay-steps li.is-done .pay-step-dot { background: var(--teal); border-color: var(--teal); }
.pay-steps li.is-done .pay-step-dot::after { content: ''; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); }
@media (prefers-reduced-motion: reduce) { .pay-spinner i, .pay-steps li.is-active .pay-step-dot { animation: none; } }

/* ── Admin: test-mode notice and test-order badge ────────────────────────── */
.admin-test-banner {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; padding: 11px 16px;
    border-radius: 12px; background: #fff7e6; border: 1px solid #f5d9a8; color: #7a4a00; font-size: .86rem; line-height: 1.45;
}
.admin-test-banner svg { flex-shrink: 0; color: #b86e00; }
.admin-test-banner span { flex: 1 1 320px; }
.admin-test-banner b { color: #6b3d00; }
.admin-test-banner a { font-weight: 700; color: #9a5b00; white-space: nowrap; }
.admin-badge.test { display: inline-block; padding: 3px 9px; border-radius: 100px; background: #fff7e6; border: 1px solid #f5d9a8; color: #9a5b00; font-size: .72rem; font-weight: 700; }

/* ── Certificate print: exactly one A4 landscape page, whatever the screen ── */
@media print {
    @page { size: A4 landscape; margin: 0; }
    html, body { width: 297mm; height: 210mm; margin: 0 !important; padding: 0 !important; background: #fff !important; }
    body > *:not(main), .site-header, .topbar, .site-footer, .wa-widget, .toast, .no-print { display: none !important; }
    main, .cert-page, .cert-page .container { margin: 0 !important; padding: 0 !important; max-width: none !important; width: auto !important; }
    .cert-page { padding: 8mm !important; }

    .cert {
        box-sizing: border-box; width: 281mm; height: 194mm; max-width: none; margin: 0; overflow: hidden;
        display: flex; flex-direction: column; padding: 8mm 12mm 7mm; border-radius: 6mm;
        box-shadow: none; background-image: none; border: 2px solid var(--navy); page-break-inside: avoid; break-inside: avoid;
    }
    .cert::before { inset: 3mm; border-radius: 4mm; }
    .cert-top { margin-bottom: 4mm; }
    .cert-logo { height: 12mm; }
    .cert-kicker { margin-bottom: 3mm; font-size: 8pt; }
    .cert-line { font-size: 9.5pt; margin-bottom: 1.5mm; }
    .cert .recipient { font-size: 24pt; padding: 0 8mm 2mm; margin: 0 0 3mm; }
    .cert .cert-course { font-size: 14pt; margin: 1mm auto 1mm; }
    .cert .cert-hours { font-size: 9pt; margin-bottom: 4mm; }

    .cert-meta { grid-template-columns: repeat(3, 1fr) !important; gap: 3mm; max-width: 170mm; margin-bottom: 4mm; }
    .cert-meta > div { padding: 2.2mm 3mm; }
    .cert-meta b { font-size: 11pt; }
    .cert-meta span { font-size: 7pt; }

    .cert-details { grid-template-columns: 1fr 1fr !important; gap: 2.5mm 8mm; padding-top: 3.5mm; max-width: none; flex: 1 1 auto; min-height: 0; overflow: hidden; }
    .cert-details small { font-size: 6.5pt; margin-bottom: .8mm; }
    .cert-details p { font-size: 7.6pt; line-height: 1.4; }

    .cert-foot { grid-template-columns: 1.2fr 1fr 1.2fr !important; margin-top: 4mm; padding-top: 3mm; font-size: 7.5pt; text-align: left; }
    .cert-foot b { font-size: 8.5pt; }
    .cert-sign { text-align: center; }
    .cert-verify { text-align: right; }
    .cert-sign .cert-seal { width: 12mm; height: 12mm; margin: 0 auto 1.5mm; box-shadow: none; }
    .cert-sign .cert-seal svg { width: 6mm; height: 6mm; }
    .cert-sign-line { width: 40mm; margin-bottom: 1.5mm; }
    .cert-help { display: none !important; }

    * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
}
@media print {
    .cert .recipient, .cert-kicker { align-self: center; }
    .cert .cert-course { align-self: center; }
}
