/* NextGen — shared styles (premium corporate) */
:root {
  /* Brand: NextGen red #d71920, grey #58585a, light grey #e6e7e8, white */
  --brand-red: #d71920;
  --brand-grey: #58585a;
  --brand-light: #e6e7e8;
  --ink: #1e1e20;
  --charcoal: #2a2a2c;
  --ink-2: var(--brand-grey);
  --muted: #77777a;
  --line: var(--brand-light);
  --bg: #ffffff;
  --bg-soft: #f5f5f6;
  --accent: var(--brand-red);
  --accent-ink: #b3141a;
  --accent-soft: #fbe8e9;
  --accent-on-dark: #f0464c;
  --radius: 4px;
  --radius-lg: 6px;
  --max: 1240px;
  --shadow: 0 1px 2px rgba(30, 30, 32, .04), 0 12px 32px rgba(30, 30, 32, .08);
  --shadow-lg: 0 24px 60px -12px rgba(30, 30, 32, .25);
  --font: "Century Gothic", CenturyGothic, AppleGothic, "Poppins", system-ui, sans-serif;
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
[id] { scroll-margin-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; color: var(--ink-2); }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.15; letter-spacing: -.01em; font-weight: 700; }
h1 { font-size: clamp(2.3rem, 5vw, 4rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); letter-spacing: -.015em; }
h3 { font-size: 1.18rem; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 32px; }
@media (max-width: 600px) { .container { padding: 0 16px; } }

.section { padding: 120px 0; }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--charcoal); color: #fff; }
.section--dark p, .section--dark .lead { color: #c9c9cc; }
@media (max-width: 760px) { .section { padding: 72px 0; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: .76rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 32px; height: 2px; background: currentColor; }
.lead { font-size: 1.18rem; color: var(--ink-2); max-width: 640px; }
.section-head { max-width: 760px; margin-bottom: 64px; }
.section-head--center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head--center .lead { margin: 0 auto; }
.section-head--center .eyebrow::after { content: ""; width: 32px; height: 2px; background: currentColor; }
.section-head--split { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; }
.section-head--split > div { max-width: 680px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 16px 28px; border-radius: var(--radius);
  font-weight: 700; font-size: .86rem; font-family: inherit; letter-spacing: .08em; text-transform: uppercase;
  border: 1.5px solid transparent; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-ink); }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--brand-light); }
.btn--outline-light { border-color: rgba(255, 255, 255, .6); color: #fff; background: transparent; }
.btn--outline-light:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(4px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.link-arrow { font-weight: 700; font-size: .86rem; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); display: inline-flex; gap: 8px; align-items: center; }
.link-arrow:hover { color: var(--accent-ink); }

/* Top bar */
.topbar { background: var(--charcoal); color: #c9c9cc; font-size: .8rem; letter-spacing: .02em; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; height: 40px; gap: 24px; }
.topbar-left, .topbar-right { display: flex; gap: 24px; align-items: center; }
.topbar a:hover { color: #fff; }
.topbar svg { display: inline-block; vertical-align: -2px; margin-right: 6px; color: #fff; }
@media (max-width: 900px) { .topbar { display: none; } }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50; background: #fff;
  border-bottom: 1px solid var(--line); transition: box-shadow .2s;
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(30, 30, 32, .06); }
.nav { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.logo { display: flex; align-items: center; flex: none; }
.logo img { height: 46px; width: auto; }
@media (max-width: 600px) { .logo img { height: 38px; } }
.nav-links { display: flex; align-items: center; gap: 2px; height: 100%; }
.nav-links a {
  position: relative; padding: 10px 14px; font-size: .92rem; font-weight: 600; color: var(--ink);
  border-radius: var(--radius); transition: color .2s, background .2s;
}
.nav-links a:not(.btn)::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: -2px; height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.nav-links a:not(.btn):hover { color: var(--accent); background: var(--brand-light); }
.nav-links a:not(.btn):hover::after, .nav-links a[aria-current="page"]:not(.btn)::after { transform: scaleX(1); }
.nav-links .btn { margin-left: 16px; padding: 13px 22px; color: #fff; }
.nav-toggle {
  display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 24px; height: 2px; background: var(--ink); position: relative; transition: transform .25s, background .25s;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1140px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0; height: auto; background: #fff;
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 24px;
    border-bottom: 1px solid var(--line); box-shadow: 0 16px 32px rgba(30, 30, 32, .08);
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
  }
  .nav-open .nav-links { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a { padding: 16px 8px; font-size: 1.02rem; border-bottom: 1px solid var(--line); }
  .nav-links a:not(.btn)::after { display: none; }
  .nav-links a[aria-current="page"] { color: var(--accent); }
  .nav-links .btn { margin: 16px 0 0; padding: 16px; border-bottom: 0; }
}

/* Photo heroes */
.hero {
  position: relative; color: #fff; background-color: var(--ink); background-position: center; background-size: cover; background-repeat: no-repeat;
  min-height: min(760px, calc(100vh - var(--header-h) - 40px)); display: flex; align-items: center;
  padding: 120px 0 160px; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(20, 20, 22, .94) 0%, rgba(20, 20, 22, .82) 42%, rgba(20, 20, 22, .35) 100%);
}
.hero::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 38%; height: 6px; background: var(--accent);
}
.hero > .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 64px; align-items: center; }
.hero h1 { color: #fff; max-width: 760px; }
.hero h1 .accent { color: var(--accent-on-dark); }
.hero .eyebrow { color: #fff; }
.hero .eyebrow::before { background: var(--accent); }
.hero .lead { color: #d8d8db; margin: 24px 0 40px; font-size: 1.22rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 48px; font-size: .88rem; color: #d8d8db; }
.hero-badges li { display: flex; align-items: center; gap: 8px; }
.hero-badges svg { color: var(--accent-on-dark); flex: none; }

.hero-card {
  background: rgba(255, 255, 255, .97); color: var(--ink); border-radius: var(--radius-lg); padding: 32px;
  box-shadow: var(--shadow-lg); position: relative; border-top: 4px solid var(--accent);
}
.hero-card h3 { font-size: .76rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.hero-card ul li {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 14px 0; border-top: 1px solid var(--line); font-weight: 600; font-size: .98rem;
}
.hero-card ul li:first-child { border-top: 0; }
.hero-card ul li span:last-child { font-size: .78rem; color: var(--muted); font-weight: 500; white-space: nowrap; }
.hero-card .tag {
  position: absolute; top: -16px; right: 24px; background: var(--ink); color: #fff;
  font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 7px 12px; border-radius: var(--radius);
}
.hero-card .btn { width: 100%; margin-top: 16px; }

@media (max-width: 960px) {
  .hero { padding: 72px 0 120px; min-height: 0; }
  .hero::before { background: linear-gradient(180deg, rgba(20, 20, 22, .85), rgba(20, 20, 22, .92)); }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
}

.page-hero {
  position: relative; color: #fff; background-color: var(--ink); background-position: center; background-size: cover; background-repeat: no-repeat;
  padding: 128px 0 112px; overflow: hidden;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(20, 20, 22, .92) 0%, rgba(20, 20, 22, .75) 50%, rgba(20, 20, 22, .4) 100%);
}
.page-hero::after { content: ""; position: absolute; left: 0; bottom: 0; width: 24%; height: 5px; background: var(--accent); }
.page-hero > .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(2.2rem, 4.4vw, 3.5rem); max-width: 820px; color: #fff; }
.page-hero .eyebrow { color: #fff; }
.page-hero .eyebrow::before { background: var(--accent); }
.page-hero .lead { margin-top: 20px; color: #d8d8db; }
.page-hero .btn--ghost { border-color: rgba(255, 255, 255, .6); color: #fff; }
.page-hero .btn--ghost:hover { background: #fff; color: var(--ink); }
.breadcrumb { font-size: .82rem; color: #b8b8bc; margin-bottom: 28px; letter-spacing: .04em; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { margin: 0 8px; opacity: .6; }
@media (max-width: 760px) { .page-hero { padding: 80px 0 72px; } .page-hero::before { background: rgba(20, 20, 22, .82); } }

/* Stats (overlapping card) */
.stats-wrap { position: relative; z-index: 2; margin-top: -88px; }
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); background: #fff;
  box-shadow: var(--shadow-lg); border-radius: var(--radius-lg); overflow: hidden;
}
.stats--flat { box-shadow: none; border: 1px solid var(--line); }
.stat { padding: 40px 32px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat strong { display: block; font-size: clamp(2.2rem, 3.6vw, 3rem); letter-spacing: -.02em; line-height: 1; margin-bottom: 12px; color: var(--accent); }
.stat span { color: var(--ink-2); font-size: .86rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
@media (max-width: 760px) {
  .stats-wrap { margin-top: -64px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 28px 18px; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .stat span { font-size: .74rem; }
}

/* Grids & cards */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 36px;
  transition: box-shadow .25s, transform .25s, border-color .25s; display: flex; flex-direction: column;
}
.card::before {
  content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 3px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform .3s; border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.card:hover { box-shadow: var(--shadow); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }
a.card:hover { transform: translateY(-4px); }
.card p { font-size: .98rem; }
.card .link-arrow { margin-top: auto; padding-top: 12px; }
.card-icon {
  width: 52px; height: 52px; border-radius: var(--radius); background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; margin-bottom: 28px;
}
.card ul.ticks { margin: 4px 0 16px; }
.ticks li { position: relative; padding-left: 26px; margin: 9px 0; font-size: .95rem; color: var(--ink-2); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .5em; width: 13px; height: 7px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg);
}
.card--feature { background: var(--charcoal); color: #fff; border-color: var(--charcoal); }
.card--feature p, .card--feature .ticks li { color: #c9c9cc; }
.card--feature .card-icon { background: rgba(255, 255, 255, .08); color: var(--accent-on-dark); }
.card--feature .link-arrow { color: var(--accent-on-dark); }

/* Image cards */
.img-card {
  position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden; transition: box-shadow .25s, transform .25s;
}
.img-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.img-card .img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-soft); }
.img-card .img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.img-card:hover .img img { transform: scale(1.05); }
.img-card .body { padding: 32px; display: flex; flex-direction: column; flex: 1; }
.img-card .body p { font-size: .98rem; }
.img-card .link-arrow { margin-top: auto; padding-top: 8px; }
.img-card .num-tag { font-size: .74rem; font-weight: 700; letter-spacing: .18em; color: var(--accent); text-transform: uppercase; margin-bottom: 10px; }

/* Split with media */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 88px; align-items: center; }
.split--wide-media { grid-template-columns: 1.1fr .9fr; }
@media (max-width: 960px) { .split, .split--wide-media { grid-template-columns: 1fr; gap: 48px; } }
.media { position: relative; isolation: isolate; }
.media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); }
.media--tall img { aspect-ratio: 4 / 5; }
.media::before {
  content: ""; position: absolute; width: 45%; height: 55%; border: 3px solid var(--accent);
  left: -20px; bottom: -20px; z-index: -1; border-radius: var(--radius-lg);
}
.media--right::before { left: auto; right: -20px; }
.media-badge {
  position: absolute; right: -24px; bottom: 32px; background: var(--charcoal); color: #fff; padding: 22px 26px;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); max-width: 220px;
}
.media-badge strong { display: block; font-size: 2.2rem; line-height: 1; color: var(--accent-on-dark); margin-bottom: 6px; }
.media-badge span { font-size: .82rem; color: #c9c9cc; }
@media (max-width: 960px) { .media::before { display: none; } .media-badge { right: 16px; bottom: 16px; } }

.panel { background: var(--bg-soft); border-radius: var(--radius-lg); padding: 40px; }
.panel-list li { display: flex; gap: 18px; padding: 20px 0; border-top: 1px solid var(--line); }
.panel-list li:first-child { border-top: 0; padding-top: 0; }
.panel-list .num {
  flex: none; width: 40px; height: 40px; border-radius: var(--radius); background: var(--accent); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: .85rem;
}
.panel-list h4 { margin: 6px 0 4px; font-size: 1.04rem; }
.panel-list p { margin: 0; font-size: .95rem; }
.section--dark .panel-list li { border-color: rgba(255, 255, 255, .12); }
.section--dark .panel-list h4 { color: #fff; }

/* Pills */
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  padding: 9px 16px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line);
  font-size: .88rem; font-weight: 600; color: var(--ink-2);
}
.section--dark .pill { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .25); }

/* Clients */
.clients { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); background: #fff; }
.clients li {
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 30px 16px; text-align: center; font-weight: 700; color: var(--brand-grey); font-size: .98rem;
  display: grid; place-items: center; min-height: 100px; letter-spacing: .02em; transition: color .2s, background .2s;
}
.clients li:hover { color: var(--accent); background: var(--bg-soft); }
@media (max-width: 900px) { .clients { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .clients { grid-template-columns: repeat(2, 1fr); } .clients li { font-size: .88rem; padding: 20px 10px; } }

/* CTA band (photo) */
.cta-band {
  position: relative; overflow: hidden; color: #fff; border-radius: var(--radius-lg); padding: 80px 72px;
  background-color: var(--charcoal); background-position: center; background-size: cover; background-repeat: no-repeat;
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.cta-band::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20, 20, 22, .95), rgba(20, 20, 22, .78)); }
.cta-band::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--accent); }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { margin: 0 0 10px; max-width: 600px; color: #fff; }
.cta-band p { color: #c9c9cc; margin: 0; max-width: 540px; }
.cta-band .btn--ghost { border-color: rgba(255, 255, 255, .6); color: #fff; }
.cta-band .btn--ghost:hover { background: #fff; color: var(--ink); }
@media (max-width: 760px) { .cta-band { padding: 48px 28px; } }

/* Course catalogue */
.catalogue-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 36px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter {
  padding: 11px 18px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff;
  font: inherit; font-size: .88rem; font-weight: 600; color: var(--ink-2); cursor: pointer; transition: all .2s;
}
.filter:hover { background: var(--brand-light); border-color: var(--brand-light); color: var(--ink); } /* light grey, like the cards */
.filter.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.search { position: relative; flex: 1 1 260px; max-width: 340px; }
.search input {
  width: 100%; padding: 13px 16px 13px 44px; border-radius: var(--radius); border: 1px solid var(--line);
  font: inherit; font-size: .95rem; background: #fff; color: var(--ink);
}
.search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); }
@media (max-width: 640px) { .search { max-width: none; } }

.course-group { margin-bottom: 44px; }
.course-group h3 { display: flex; align-items: baseline; gap: 10px; font-size: 1.1rem; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.course-group h3 small { color: var(--muted); font-weight: 500; font-size: .82rem; }
.course-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 900px) { .course-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .course-list { grid-template-columns: 1fr; } }
.course {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; background: #fff;
  display: flex; justify-content: space-between; align-items: center; gap: 12px; font-weight: 600; font-size: .95rem;
  transition: border-color .2s;
}
.course .modes { display: flex; gap: 4px; flex: none; }
.course .modes i {
  font-style: normal; font-size: .68rem; font-weight: 700; color: var(--muted);
  border: 1px solid var(--line); border-radius: 3px; padding: 2px 6px;
}
.empty { padding: 48px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius-lg); }

/* Pricing */
.price { font-size: 2.2rem; font-weight: 700; letter-spacing: -.01em; margin: 10px 0 4px; }
.price small { font-size: .88rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.card--feature .price small, .card--feature .form-note { color: #a3a3a7; }
.from { font-size: .76rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .14em; }

/* Projects */
.projects { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.projects a {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; font-weight: 700; font-size: .95rem;
  display: flex; flex-direction: column; gap: 4px; transition: border-color .2s, background .2s;
}
.projects a:hover { border-color: var(--accent); background: var(--bg-soft); }
.projects a span { font-weight: 400; color: var(--muted); font-size: .82rem; }
@media (max-width: 900px) { .projects { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .projects { grid-template-columns: 1fr; } }

/* Forms */
.form { display: grid; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field label { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 8px; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; padding: 15px 16px; border-radius: var(--radius); border: 1px solid #d4d5d7;
  font: inherit; font-size: .98rem; color: var(--ink); background: #fff;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.form-note { font-size: .85rem; color: var(--muted); }
.form-card { background: #fff; border-radius: var(--radius-lg); padding: 48px; box-shadow: var(--shadow); border-top: 4px solid var(--accent); }
@media (max-width: 560px) { .form-card { padding: 28px 20px; } }

.contact-list li { display: flex; gap: 18px; padding: 24px 0; border-top: 1px solid var(--line); }
.contact-list li:first-child { border-top: 0; }
.contact-list .card-icon { margin: 0; flex: none; }
.contact-list strong { display: block; margin-bottom: 2px; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.contact-list a:hover { color: var(--accent); }

/* Assessments */
.assess-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1000px) { .assess-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .assess-grid { grid-template-columns: 1fr; } }
.assess-app h3 { margin-bottom: 4px; }
.assess-family { border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; overflow: hidden; }
.assess-family header { display: flex; align-items: center; gap: 14px; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.assess-family header .app-badge {
  width: 42px; height: 42px; border-radius: var(--radius); display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 1rem; flex: none;
}
.assess-family header h3 { margin: 0; font-size: 1.08rem; }
.assess-family ul { padding: 8px 12px 14px; }
.assess-family button {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 14px 12px; background: none; border: 0; border-radius: var(--radius); font: inherit; font-size: .95rem; font-weight: 600;
  color: var(--ink); cursor: pointer; text-align: left; transition: background .2s, color .2s;
}
.assess-family button:hover { background: var(--bg-soft); color: var(--accent); }
.assess-family button small { color: var(--muted); font-weight: 500; font-size: .78rem; }

.quiz { max-width: 860px; margin: 0 auto; }
.quiz-card { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); border-top: 4px solid var(--accent); padding: 48px; }
@media (max-width: 600px) { .quiz-card { padding: 28px 18px; } }
.quiz-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.quiz-title { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.timer { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-variant-numeric: tabular-nums; padding: 8px 14px; border-radius: var(--radius); background: var(--bg-soft); }
.timer.low { background: var(--accent-soft); color: var(--accent); }
.progress { height: 4px; background: var(--line); border-radius: 4px; overflow: hidden; margin-bottom: 36px; }
.progress span { display: block; height: 100%; background: var(--accent); transition: width .3s; }
.question { font-size: clamp(1.2rem, 2.4vw, 1.5rem); font-weight: 700; line-height: 1.35; margin-bottom: 28px; }
.options { display: grid; gap: 12px; margin-bottom: 32px; }
.option {
  display: flex; gap: 16px; align-items: center; width: 100%; text-align: left; padding: 18px 20px;
  border: 1.5px solid var(--line); border-radius: var(--radius); background: #fff; font: inherit; font-size: 1rem; color: var(--ink);
  cursor: pointer; transition: border-color .15s, background .15s;
}
.option:hover { border-color: #bfc0c3; }
.option .key { flex: none; width: 32px; height: 32px; border-radius: var(--radius); border: 1.5px solid var(--line); display: grid; place-items: center; font-weight: 700; font-size: .85rem; color: var(--muted); }
.option[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.option[aria-pressed="true"] .key { background: var(--accent); border-color: var(--accent); color: #fff; }
.quiz-nav { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.score-ring { width: 168px; height: 168px; margin: 0 auto 24px; position: relative; }
.score-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.score-ring strong { position: absolute; inset: 0; display: grid; place-items: center; font-size: 2.4rem; }
.result-head { text-align: center; margin-bottom: 32px; }
.result-head .lead { margin: 0 auto; }
.review { margin-top: 32px; border-top: 1px solid var(--line); }
.review li { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.review li b { display: block; margin-bottom: 4px; }
.review li::marker { font-weight: 700; }
.review .ok { color: #1f7a4d; }
.review .no { color: var(--accent); }
.rules li { display: flex; gap: 12px; margin: 12px 0; color: var(--ink-2); }
.rules svg { flex: none; color: var(--accent); margin-top: 3px; }

/* Footer */
.site-footer {
  position: relative; overflow: hidden; background: var(--brand-grey); color: rgba(255, 255, 255, .85);
  padding: 0 0 32px; font-size: .95rem; border-top: 5px solid var(--accent);
}
.site-footer::before {
  content: ""; position: absolute; right: -140px; bottom: -60px; width: 760px; height: 280px;
  background: url("../img/logo-white.png") right bottom / contain no-repeat; opacity: .05; pointer-events: none;
}
.site-footer > .container { position: relative; z-index: 1; }
.site-footer p { color: rgba(255, 255, 255, .85); }

.footer-contact { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid rgba(255, 255, 255, .16); }
.fc-card { display: flex; align-items: center; gap: 18px; padding: 36px 28px; border-left: 1px solid rgba(255, 255, 255, .16); transition: background .25s; }
.fc-card:first-child { border-left: 0; padding-left: 0; }
.fc-card:hover { background: rgba(255, 255, 255, .05); }
.fc-icon {
  width: 52px; height: 52px; border-radius: 50%; background: var(--accent); color: #fff;
  display: grid; place-items: center; flex: none; transition: background .25s, transform .25s;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .18);
}
.fc-card:hover .fc-icon { background: #fff; color: var(--accent); transform: scale(1.05); }
.fc-card small { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .65); margin-bottom: 4px; }
.fc-card strong { color: #fff; font-size: 1.02rem; }

.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 56px; padding-top: 72px; }
.footer-brand p { max-width: 340px; }
.site-footer .logo { margin-bottom: 24px; }
.site-footer .logo img { height: 72px; }
.site-footer h4 {
  color: #fff; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase;
  margin-bottom: 24px; padding-bottom: 14px; position: relative;
}
.site-footer h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 72px; height: 2px; background: #fff; }
.footer-links li { margin: 0; }
.footer-links a {
  display: inline-flex; align-items: center; gap: 0; padding: 7px 0; color: rgba(255, 255, 255, .85);
  transition: color .2s, gap .25s;
}
.footer-links a::before {
  content: ""; width: 0; height: 2px; background: var(--accent); transition: width .25s, margin .25s; margin-right: 0;
}
.footer-links a:hover { color: #fff; }
.footer-links a:hover::before { width: 14px; margin-right: 10px; }

.socials { display: flex; gap: 10px; margin-top: 24px; }
.socials a {
  width: 40px; height: 40px; border-radius: 50%; background: #fff; color: var(--brand-grey);
  display: grid; place-items: center; transition: all .2s;
}
.socials a:hover { background: var(--accent); color: #fff; transform: translateY(-2px); }
.footer-accred { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.footer-accred span { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 7px 11px; border: 1px solid rgba(255, 255, 255, .4); border-radius: var(--radius); color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .16); margin-top: 64px; padding-top: 26px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: .85rem;
}
.footer-bottom-links { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 24px; }
.footer-bottom a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.to-top {
  display: inline-flex; align-items: center; gap: 8px; background: var(--accent); border: 1px solid var(--accent);
  color: #fff; font: inherit; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 8px 14px; border-radius: var(--radius); cursor: pointer; transition: background .2s, border-color .2s;
}
.to-top:hover { background: #fff; border-color: #fff; color: var(--accent); }

@media (max-width: 1000px) {
  .footer-contact { grid-template-columns: 1fr; }
  .fc-card { border-left: 0; padding: 22px 0; border-top: 1px solid rgba(255, 255, 255, .16); }
  .fc-card:first-child { border-top: 0; padding-top: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 44px; padding-top: 56px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .site-footer::before { width: 420px; right: -120px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* Reveal */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .img-card .img img { transition: none; }
}

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mt-0 { margin-top: 0; }
.center { text-align: center; }
[hidden] { display: none !important; }
@media (min-width: 1001px) { .span-2 { grid-column: span 2; } }

/* Course detail */
a.course { color: var(--ink); }
.course-layout { display: grid; grid-template-columns: 1fr 380px; gap: 64px; align-items: start; }
.course-aside { position: sticky; top: calc(var(--header-h) + 24px); }
.course-aside .form-card { padding: 32px; gap: 16px; }
.course-facts { display: grid; grid-template-columns: repeat(2, 1fr); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.course-facts > div { padding: 24px 28px; border-bottom: 1px solid var(--line); }
.course-facts > div:nth-child(odd) { border-right: 1px solid var(--line); }
.course-facts > div:nth-last-child(-n+2) { border-bottom: 0; }
.course-facts span { display: block; font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.course-facts strong { font-size: 1.02rem; }
@media (max-width: 1140px) { .course-layout { grid-template-columns: 1fr; gap: 48px; } .course-aside { position: static; max-width: 640px; } }
@media (max-width: 560px) {
  .course-facts { grid-template-columns: 1fr; }
  .course-facts > div:nth-child(odd) { border-right: 0; }
  .course-facts > div:nth-last-child(2) { border-bottom: 1px solid var(--line); }
  [data-course-outline] .ticks { columns: 1 !important; }
}

/* Client logos (drop greyscale-friendly logo files into assets/img/clients/) */
.logo-wall { display: grid; grid-template-columns: repeat(6, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); background: #fff; }
.logo-wall li { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); min-height: 112px; display: grid; place-items: center; padding: 24px 20px; }
.logo-wall img { max-height: 44px; max-width: 100%; width: auto; filter: grayscale(1); opacity: .65; transition: filter .3s, opacity .3s; }
.logo-wall li:hover img { filter: none; opacity: 1; }
.logo-wall .wordmark { font-weight: 700; color: #9a9a9e; font-size: .95rem; text-align: center; letter-spacing: .02em; transition: color .3s; }
.logo-wall li:hover .wordmark { color: var(--ink); }
@media (max-width: 900px) { .logo-wall { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .logo-wall { grid-template-columns: repeat(2, 1fr); } .logo-wall li { min-height: 88px; padding: 16px 12px; } .logo-wall .wordmark { font-size: .85rem; } }

/* Testimonials */
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 1100px) { .testimonials { grid-template-columns: 1fr; max-width: 720px; margin: 0 auto; } }
.quote { margin: 0; position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 44px 36px 36px; display: flex; flex-direction: column; }
.quote::before { content: "\201C"; position: absolute; top: 4px; left: 28px; font-size: 5rem; line-height: 1; color: var(--accent); font-family: Georgia, serif; }
.quote blockquote { margin: 16px 0 28px; font-size: 1.04rem; line-height: 1.7; color: var(--ink); }
.quote footer { margin-top: auto; display: flex; align-items: center; gap: 14px; padding-top: 20px; border-top: 1px solid var(--line); }
.quote .avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--charcoal); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .9rem; flex: none; }
.quote cite { font-style: normal; font-weight: 700; display: block; }
.quote small { color: var(--muted); }
.placeholder-note { background: #fff7e0; border: 1px dashed #d9a400; color: #6b5200; padding: 10px 14px; border-radius: var(--radius); font-size: .85rem; margin-bottom: 28px; }

/* Mobile polish */
.nav-contact { display: none; }
@media (max-width: 1140px) {
  .nav-contact { display: flex; gap: 10px; flex-wrap: wrap; padding: 18px 8px 4px; font-size: .9rem; color: var(--ink-2); }
  .nav-links .nav-contact a { padding: 0; border: 0; font-size: .9rem; font-weight: 600; color: var(--ink-2); }
  .nav-contact span { opacity: .4; }
}
@media (max-width: 960px) {
  .hero-card { display: none; }
  .hero { padding: 64px 0 112px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .lead, .hero .lead { font-size: 1.06rem; }
  .hero-actions .btn { flex: 1 1 100%; }
  .section-head { margin-bottom: 40px; }
  .section-head--split .btn { width: 100%; }
  .card, .img-card .body { padding: 26px 22px; }
  .panel { padding: 26px 20px; }
  .media-badge { padding: 16px 18px; max-width: 180px; }
  .media-badge strong { font-size: 1.7rem; }
  .cta-band .hero-actions { width: 100%; }
  .quote { padding: 40px 24px 26px; }
  .page-hero h1 { font-size: 2rem; }
  .breadcrumb { margin-bottom: 18px; }
}
.outline-card { display: flex; align-items: center; gap: 20px; margin-top: 24px; padding: 24px 28px; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius-lg); background: var(--bg-soft); flex-wrap: wrap; }
.outline-card .outline-icon { width: 52px; height: 52px; border-radius: var(--radius); background: #fff; color: var(--accent); display: grid; place-items: center; flex: none; border: 1px solid var(--line); }
.outline-card div { flex: 1 1 200px; }
.outline-card strong { display: block; }
.outline-card span { font-size: .9rem; color: var(--muted); }
@media (max-width: 560px) { .outline-card .btn { width: 100%; } }

/* Business card */
.bc-page { position: relative; padding: 72px 0 96px; background-color: var(--ink); background-position: center top; background-size: cover; background-repeat: no-repeat; }
.bc-page::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 20, 22, .9) 0%, rgba(20, 20, 22, .82) 320px, var(--bg-soft) 320px); }
.bc-page > .container { position: relative; z-index: 1; }
.bc { max-width: 560px; margin: 0 auto; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; border-top: 5px solid var(--accent); }
.bc-top { text-align: center; padding: 44px 32px 28px; }
.bc-avatar { width: 136px; height: 136px; margin: 0 auto 22px; border-radius: 50%; padding: 5px; background: #fff; box-shadow: 0 0 0 3px var(--accent), var(--shadow); overflow: hidden; display: grid; place-items: center; }
.bc-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.bc-avatar span { width: 100%; height: 100%; border-radius: 50%; background: var(--charcoal); color: #fff; display: grid; place-items: center; font-size: 2.6rem; font-weight: 700; letter-spacing: .02em; }
.bc-name { font-size: clamp(1.8rem, 6vw, 2.3rem); margin-bottom: 6px; }
.bc-roles { color: var(--accent); font-weight: 700; font-size: .92rem; letter-spacing: .04em; margin-bottom: 16px; }
.bc-depts { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.bc-depts span { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 6px 10px; border-radius: var(--radius); background: var(--bg-soft); color: var(--brand-grey); border: 1px solid var(--line); }
.bc-actions { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.bc-action { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 20px 6px; font: inherit; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); background: none; border: 0; border-left: 1px solid var(--line); cursor: pointer; transition: background .2s; }
.bc-action:first-child { border-left: 0; }
.bc-action:hover { background: var(--bg-soft); }
.bc-ic { width: 50px; height: 50px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; transition: transform .2s; }
.bc-action:hover .bc-ic { transform: scale(1.06); }
.bc-actions:has(.bc-action[hidden]) { grid-template-columns: repeat(3, 1fr); }
.bc-details { padding: 8px 32px; }
.bc-details li { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.bc-details li:last-child { border-bottom: 0; }
.bc-details span { font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding-top: 3px; flex: none; }
.bc-details a { font-weight: 600; text-align: right; word-break: break-word; }
.bc-details a:hover { color: var(--accent); }
.bc-save { display: flex; width: calc(100% - 64px); margin: 8px 32px 32px; }
.bc-section { padding: 28px 32px; border-top: 1px solid var(--line); }
.bc-section h2 { font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.bc-section p { font-size: .95rem; }
.bc-areas { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.bc-area { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); font-weight: 700; font-size: .88rem; color: var(--ink); transition: border-color .2s, background .2s, color .2s; }
.bc-area-ic { width: 38px; height: 38px; border-radius: 50%; background: var(--bg-soft); color: var(--brand-grey); display: grid; place-items: center; flex: none; transition: background .2s, color .2s; }
.bc-area-go { margin-left: auto; color: var(--accent); transition: transform .2s; }
.bc-area:hover { border-color: var(--accent); color: var(--accent); }
.bc-area:hover .bc-area-go { transform: translateX(3px); }
.bc-area.is-mine .bc-area-ic, .bc-area:hover .bc-area-ic { background: var(--accent); color: #fff; }
.bc-depts a { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 6px 10px; border-radius: var(--radius); background: var(--accent-soft); color: var(--accent); border: 1px solid transparent; transition: background .2s, color .2s; }
.bc-depts a:hover { background: var(--accent); color: #fff; }
@media (max-width: 420px) { .bc-areas { grid-template-columns: 1fr; } }
.bc-share { display: flex; gap: 24px; align-items: center; justify-content: space-between; background: var(--bg-soft); }
.bc-share-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.bc-chip { font: inherit; font-size: .8rem; font-weight: 700; padding: 8px 12px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); color: var(--ink); cursor: pointer; transition: border-color .2s, color .2s; }
.bc-chip:hover { border-color: var(--accent); color: var(--accent); }
.bc-qr { flex: none; background: #fff; padding: 10px; border-radius: var(--radius); border: 1px solid var(--line); }
.bc-qr img, .bc-qr canvas { display: block; }
.bc-missing { padding: 48px 32px; text-align: center; }
@media (max-width: 520px) {
  .bc-page { padding: 32px 0 64px; }
  .bc-top { padding: 36px 20px 24px; }
  .bc-details, .bc-section { padding-left: 20px; padding-right: 20px; }
  .bc-save { width: calc(100% - 40px); margin: 8px 20px 28px; }
  .bc-action { font-size: .7rem; }
  .bc-ic { width: 44px; height: 44px; }
  .bc-share { flex-direction: column; align-items: flex-start; }
  .bc-details li { flex-direction: column; gap: 4px; }
  .bc-details a { text-align: left; }
}
.course-dur { display: block; margin-top: 3px; font-size: .78rem; font-weight: 500; color: var(--muted); }

/* Policy pages */
.policy-layout { display: grid; grid-template-columns: 260px 1fr; gap: 64px; align-items: start; }
.policy-toc { position: sticky; top: calc(var(--header-h) + 24px); border-left: 3px solid var(--accent); padding: 4px 0 4px 20px; font-size: .9rem; }
.policy-toc strong { display: block; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.policy-toc ol { margin: 0; padding-left: 18px; }
.policy-toc li { margin: 8px 0; color: var(--muted); }
.policy-toc a:hover { color: var(--accent); }
.prose { max-width: 760px; }
.prose h2 { font-size: 1.4rem; margin: 48px 0 14px; padding-top: 8px; }
.prose h2:first-of-type { margin-top: 24px; }
.prose ul { list-style: disc; padding-left: 22px; margin: 0 0 1em; color: var(--ink-2); }
.prose li { margin: 8px 0; }
.prose a { color: var(--accent); font-weight: 600; }
.prose mark { background: #fff1b8; color: #5c4600; padding: 1px 4px; border-radius: 3px; }
.policy-meta { font-size: .9rem; color: var(--muted); }
@media (max-width: 900px) { .policy-layout { grid-template-columns: 1fr; gap: 32px; } .policy-toc { position: static; } }
.prose h3 { font-size: 1.05rem; margin: 24px 0 8px; }
.table-wrap { overflow-x: auto; margin: 16px 0 20px; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.policy-table { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 520px; }
.policy-table th { text-align: left; background: var(--charcoal); color: #fff; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; padding: 12px 16px; }
.policy-table td { padding: 12px 16px; border-top: 1px solid var(--line); vertical-align: top; color: var(--ink-2); }
.policy-table td:first-child { font-weight: 700; color: var(--ink); width: 34%; }
.policy-table tr:nth-child(even) td { background: var(--bg-soft); }
.prose ol.steps { list-style: none; counter-reset: s; padding: 0; margin: 16px 0; }
.prose ol.steps li { counter-increment: s; position: relative; padding: 4px 0 12px 48px; margin: 0; color: var(--ink-2); }
/* Centre the number box on the first line of text (4px padding + 28px line - 32px box, halved = 2px):
   in the middle for a one-line step, level with the top line for a longer one. */
.prose ol.steps li::before { content: counter(s); position: absolute; left: 0; top: 2px; width: 32px; height: 32px; border-radius: var(--radius); background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .85rem; }
@media print {
  .topbar, .site-header, .site-footer, .policy-toc, .placeholder-note, .hero-actions, .breadcrumb { display: none !important; }
  .page-hero { background: none !important; color: #000; padding: 0 0 16px; }
  .page-hero::before, .page-hero::after { display: none; }
  .page-hero h1, .page-hero .lead, .page-hero .eyebrow { color: #000 !important; }
  .section { padding: 0; }
  .policy-layout { display: block; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .policy-table th { background: #eee !important; color: #000 !important; }
  a { color: #000 !important; }
}
.policy-layout > * { min-width: 0; }

/* Solid round red icons (site-wide) */
.card-icon { border-radius: 50%; background: var(--accent); color: #fff; box-shadow: 0 6px 16px rgba(215, 25, 32, .22); }
.card--feature .card-icon { background: var(--accent); color: #fff; }
.card:hover .card-icon { transform: scale(1.05); }
.card-icon { transition: transform .25s; }
.outline-card .outline-icon { border-radius: 50%; background: var(--accent); color: #fff; border: 0; }
.panel-list .num { border-radius: 50%; }
.bc-area-ic { background: var(--accent); color: #fff; }
.bc-area.is-mine { background: var(--accent-soft); border-color: transparent; }

/* Contact form spacing */
.contact-split { grid-template-columns: 1.35fr 1fr; gap: 72px; }
.form-row { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
@media (max-width: 1100px) { .contact-split { grid-template-columns: 1fr; gap: 56px; } .contact-split .form-card { max-width: 760px; } }

/* Course cards v2 */
.course-group h3 { gap: 12px; align-items: center; }
.group-ic { width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; flex: none; }
.course-group h3 .count { margin-left: auto; font-size: .78rem; font-weight: 700; color: var(--accent); background: var(--accent-soft); padding: 4px 10px; border-radius: 999px; }
.course-list { gap: 16px; }
.course { position: relative; flex-direction: column; align-items: stretch; justify-content: space-between; gap: 18px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; transition: transform .25s, box-shadow .25s, border-color .25s; overflow: hidden; }
.course::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--accent); transform: scaleY(0); transform-origin: top; transition: transform .3s; }
.course:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.course:hover::before { transform: scaleY(1); }
.course-head { display: flex; align-items: flex-start; gap: 14px; }
.course-ic { width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; flex: none; box-shadow: 0 4px 12px rgba(215, 25, 32, .2); }
.course-title { font-weight: 700; font-size: .98rem; line-height: 1.4; color: var(--ink); padding-top: 2px; flex: 1; transition: color .2s; }
.course-go { color: var(--accent); font-weight: 700; opacity: 0; transform: translateX(-6px); transition: opacity .2s, transform .2s; padding-top: 2px; }
.course:hover .course-go { opacity: 1; transform: none; }
.course-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.course-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 5px; font-size: .76rem; font-weight: 700; color: var(--ink); background: var(--bg-soft); padding: 5px 10px; border-radius: 999px; white-space: nowrap; }
.chip svg { color: var(--accent); }
.chip--muted { color: var(--muted); font-weight: 600; }
.chip--muted svg { color: var(--muted); }
.course .modes { display: flex; gap: 5px; }
.mode-ic { width: 28px; height: 28px; border-radius: 50%; background: var(--bg-soft); color: var(--brand-grey); display: grid; place-items: center; flex: none; transition: background .2s, color .2s; }
.course-dur { display: none; }
.mode-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin: -8px 0 32px; padding: 14px 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); font-size: .88rem; font-weight: 600; }
.legend-label { color: var(--muted); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; }
.legend-item { display: inline-flex; align-items: center; gap: 8px; }
.legend-item .mode-ic { background: var(--accent); color: #fff; }
/* Course card hover: light grey box, no red edge */
.course::before { display: none; }
.course:hover { background: var(--brand-light); border-color: var(--brand-light); box-shadow: none; transform: none; }
.course:hover .chip { background: #fff; }
.course:hover .course-meta { border-top-color: #dcdde0; }
/* Other cards match the course cards: on hover only the background turns light grey (no shadow, red line or movement).
   Dark feature cards keep their dark background so the white text stays readable. */
.card:hover { background: var(--brand-light); border-color: var(--brand-light); box-shadow: none; }
.card:hover::before { transform: scaleX(0); }
a.card:hover, .card:hover .card-icon { transform: none; }
.card--feature:hover { background: var(--charcoal); border-color: var(--charcoal); }
.card { transition: background-color .2s, border-color .2s; } /* same gentle fade as the course cards */
.assess-family header .app-badge { border-radius: 50%; background: var(--accent); color: #fff; box-shadow: 0 4px 12px rgba(215, 25, 32, .2); }
/* Course card meta on one line */
.course-meta { flex-wrap: nowrap; }
.course-chips { flex-wrap: nowrap; min-width: 0; }
.course .modes { margin-left: auto; flex: none; }
.chip { padding: 5px 9px; }
.mode-ic { width: 26px; height: 26px; }
/* Course card refinements */
.course-title { padding-top: 0; }
.chip--duration { gap: 7px; padding: 3px 12px 3px 4px; font-size: .82rem; }
.course:hover .mode-ic, .course .mode-ic { background: var(--bg-soft); color: var(--brand-grey); }
.chip, .chip svg { flex: none; }
.course-meta { gap: 8px; }
.course-chips { gap: 5px; }
.course:hover .course-title { color: var(--ink); }
.chip { padding: 5px 8px; gap: 4px; }
.chip--duration { padding: 3px 10px 3px 3px; gap: 6px; }
.course .modes { gap: 4px; }
.course-group h3 small { font-size: inherit; font-weight: 500; color: var(--muted); }
.course-desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .86rem; line-height: 1.5; color: var(--ink-2); margin-top: -8px; }

/* Category banners */
.course-group { margin-bottom: 56px; }
.group-banner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 150px; padding: 28px 32px; margin-bottom: 20px; border-radius: var(--radius-lg); overflow: hidden; background-color: var(--charcoal); background-size: cover; background-position: center; color: #fff; }
.group-banner::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20, 20, 22, .92) 0%, rgba(20, 20, 22, .78) 55%, rgba(20, 20, 22, .35) 100%); }
.group-banner::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--accent); }
.group-banner > * { position: relative; z-index: 1; }
.group-banner-text { max-width: 640px; }
.course-group .group-banner h3 { color: #fff; margin: 0 0 6px; padding: 0; border: 0; font-size: 1.35rem; }
.course-group .group-banner h3 small { color: rgba(255, 255, 255, .7); }
.group-banner p { margin: 0; color: #d8d8db; font-size: .95rem; }
.group-banner-btn { flex: none; }
@media (max-width: 700px) { .group-banner { flex-direction: column; align-items: flex-start; padding: 24px 22px; } .group-banner-btn { width: 100%; } }

/* Level pathway */
.path-note { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: .9rem; color: var(--ink-2); margin: 0 0 16px; }
.path-note span { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #fff; background: var(--accent); padding: 4px 10px; border-radius: 999px; }
.course-path { gap: 40px; }
.course-path .course { overflow: visible; }
.course-path .course:not(:last-child)::after {
  content: "→"; position: absolute; top: 50%; right: -34px; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: .9rem; z-index: 2;
  box-shadow: 0 4px 10px rgba(215, 25, 32, .25);
}
@media (max-width: 900px) { .course-path .course:nth-child(2n)::after { display: none; } }
@media (max-width: 560px) {
  .course-path { gap: 36px; }
  .course-path .course:not(:last-child)::after { display: grid; content: "↓"; top: auto; bottom: -32px; right: 50%; transform: translateX(50%); }
}
.group-banner-text { max-width: 880px; }
.group-banner p, .course-desc, .lead { text-wrap: pretty; }
.group-banner p { text-wrap: balance; }
.course-desc { font-weight: 400; }
/* Learning path arrows: bold, centred SVG; keep cards inside the row */
.course-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .course-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .course-list { grid-template-columns: minmax(0, 1fr); } }
.course-path { gap: 32px; }
.course-path .course { padding: 20px 18px; }
.course-path .course:not(:last-child)::after {
  content: ""; right: -30px; width: 28px; height: 28px;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M12 3.5l-1.8 1.8 5.4 5.4H3.5v2.6h12.1l-5.4 5.4 1.8 1.8 8.5-8.5z'/%3E%3C/svg%3E") center / 16px 16px no-repeat;
}
@media (max-width: 560px) {
  .course-path .course:not(:last-child)::after { content: ""; right: 50%; bottom: -32px; transform: translateX(50%) rotate(90deg); }
}
/* More breathing room around learning path arrows */
.course-path { gap: 56px; }
.course-path .course:not(:last-child)::after { right: -42px; }
@media (max-width: 900px) { .course-path { column-gap: 56px; row-gap: 24px; } }
@media (max-width: 560px) {
  .course-path { row-gap: 52px; }
  .course-path .course:not(:last-child)::after { right: 50%; bottom: -40px; }
}
/* Course facts: three across */
.course-facts { grid-template-columns: repeat(3, 1fr); }
.course-facts > div { border-bottom: 0; border-right: 1px solid var(--line); }
.course-facts > div:last-child { border-right: 0; }
@media (max-width: 700px) {
  .course-facts { grid-template-columns: 1fr; }
  .course-facts > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .course-facts > div:last-child { border-bottom: 0; }
}

/* Assessments page: facts, how it works, level buttons */
.assess-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 28px; }
.assess-fact { position: relative; background: var(--charcoal); color: #fff; border-radius: var(--radius-lg); padding: 26px 24px 22px; overflow: hidden; }
.assess-fact::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 4px; background: var(--accent); }
.assess-fact-ic { position: absolute; right: 18px; top: 18px; width: 44px; height: 44px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; }
.assess-fact strong { display: block; font-size: 2.2rem; line-height: 1; margin-bottom: 8px; }
.assess-fact > span:last-child { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #c9c9cc; }
.assess-how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.assess-step { position: relative; display: flex; gap: 16px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; }
.assess-step-num { position: absolute; right: 18px; top: 10px; font-size: 3rem; font-weight: 700; color: var(--brand-light); line-height: 1; }
.assess-step-ic { flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; box-shadow: 0 6px 16px rgba(215, 25, 32, .22); }
.assess-step h3 { margin: 4px 0 4px; font-size: 1.05rem; }
.assess-step p { margin: 0; font-size: .92rem; position: relative; }
.assess-note { display: flex; align-items: center; gap: 10px; margin: 18px 0 0; font-size: .88rem; color: var(--muted); }
.assess-note svg { color: var(--accent); flex: none; }
.assess-family button { padding: 12px 10px; gap: 12px; justify-content: flex-start; }
.assess-family button:hover { background: var(--brand-light); color: var(--ink); }
.lvl-num { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .95rem; }
.lvl-text { display: flex; flex-direction: column; line-height: 1.3; }
.lvl-text strong { font-size: .95rem; }
.lvl-text small { color: var(--muted); font-weight: 500; font-size: .78rem; margin-top: 2px; }
.lvl-go { margin-left: auto; color: var(--accent); font-weight: 700; transition: transform .2s; }
.assess-family button:hover .lvl-go { transform: translateX(3px); }
.assess-family ul { padding: 10px 10px 14px; }
@media (max-width: 1000px) { .assess-facts { grid-template-columns: repeat(2, 1fr); } .assess-how { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .assess-fact strong { font-size: 1.8rem; } .assess-fact { padding: 22px 18px 18px; } .assess-fact-ic { width: 36px; height: 36px; right: 14px; top: 14px; } }
.fc-card:hover .fc-icon { background: #fff; color: var(--accent); box-shadow: 0 6px 16px rgba(0, 0, 0, .18); outline: none; border: 0; }
.assess-family header { background: var(--brand-light); border-bottom: 1px solid #d6d7d9; }
.assess-family ul { padding: 10px 12px 14px 28px; }
/* Assessment options: red letter blocks, light grey hover */
.option .key { background: var(--accent); border-color: var(--accent); color: #fff; border-radius: var(--radius); }
.option:hover { background: var(--brand-light); border-color: var(--brand-light); }
.option[aria-pressed="true"], .option[aria-pressed="true"]:hover { background: var(--accent-soft); border-color: var(--accent); }
.option[aria-pressed="true"] .key { background: var(--accent-ink); border-color: var(--accent-ink); }
/* Remember details */
.remember-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.check { display: inline-flex; align-items: center; gap: 10px; font-size: .92rem; color: var(--ink-2); cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.link-btn { background: none; border: 0; padding: 0; font: inherit; font-size: .88rem; font-weight: 600; color: var(--accent); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
/* Path cards: keep chips and delivery icons apart; Outline matches icon colour */
.course-path { column-gap: 48px; }
.course-path .course:not(:last-child)::after { right: -38px; }
.course-path .course { padding: 20px 16px; }
.course-path .mode-ic { width: 24px; height: 24px; }
.course-path .chip { padding: 4px 7px; }
.course-path .chip--duration { padding: 3px 9px 3px 3px; }
.course-meta { column-gap: 10px; }
.chip--muted, .chip--muted svg { color: var(--brand-grey); }
@media (max-width: 560px) { .course-path .course:not(:last-child)::after { right: 50%; bottom: -40px; } }
.chip--link { cursor: pointer; transition: background .2s, color .2s; }
.chip--link:hover, .course:hover .chip--link:hover { background: var(--accent); color: #fff; }
.chip--link:hover svg { color: #fff; }
.course-facts { background: var(--brand-light); border-color: #d6d7d9; }
.course-facts > div { border-color: #d6d7d9; }
/* Course enquiry: structured fields with bold headings */
.enquiry-intro { background: var(--bg-soft); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 14px 16px; }
.enquiry-intro p { margin: 0; font-size: .92rem; color: var(--ink); }
.enquiry-intro p + p { margin-top: 6px; color: var(--ink-2); }
.course-aside .field label { font-weight: 700; color: var(--ink); }
.form-row--tight { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; }
.input-suffix { position: relative; display: flex; align-items: center; }
.input-suffix input { padding-right: 104px; }
.input-suffix span { position: absolute; right: 14px; font-size: .88rem; color: var(--muted); pointer-events: none; }
/* No decorative red frame behind images */
.media::before { display: none !important; }
/* Result email confirmation and resend */
.result-email { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin: 8px auto 6px; max-width: 680px; padding: 18px 20px; background: var(--bg-soft); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius-lg); text-align: left; }
.result-email-ic { flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; }
.result-email > div { flex: 1 1 260px; }
.result-email strong { display: block; font-size: 1rem; }
.result-email span[data-email-detail] { font-size: .9rem; color: var(--ink-2); }
.result-resend { flex: none; }
[data-preview-note] { margin: 0 0 24px; }
/* Document view / download buttons */
.doc-card { display: flex; flex-direction: column; }
.doc-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 12px; }
.btn--sm { padding: 11px 16px; font-size: .78rem; gap: 8px; }
.btn--ghost-red { background: #fff; color: var(--accent); border-color: var(--accent); }
.btn--ghost-red:hover { background: var(--accent); color: #fff; }
.outline-card .doc-actions { margin-top: 0; padding-top: 0; }

/* Business area banners (Training, Creative Media, Risk Assessments, Recruitment) share one height */
.page-hero--area { display: flex; align-items: center; min-height: 660px; padding-top: 96px; padding-bottom: 96px; }
.page-hero--area > .container { width: 100%; }
@media (max-width: 1140px) { .page-hero--area { min-height: 600px; } }
@media (max-width: 760px) { .page-hero--area { min-height: 640px; padding-top: 72px; padding-bottom: 72px; } }
@media (max-width: 420px) { .page-hero--area { min-height: 700px; } }

/* Course cards stay still on hover: only the background colour changes */
.course, .course:hover, .course:focus-visible { transform: none !important; }
.course { transition: background-color .2s, border-color .2s; }

/* Numbered lists: text sits in the vertical middle of its red number circle */
.panel-list li { align-items: center; }
.panel-list h4 { margin: 0 0 4px; }

/* Business card: neutral department tags; labels bold, details regular, same size */
.bc-depts a, .bc-depts span { background: var(--bg-soft); color: var(--brand-grey); border: 1px solid var(--line); }
.bc-depts a:hover { background: var(--brand-light); color: var(--ink); }
.bc-area.is-mine { background: transparent; border-color: var(--line); }
.bc-details li { font-size: .95rem; }
.bc-details span { font-size: .95rem; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--ink); padding-top: 0; }
.bc-details a, .bc-details a:link, .bc-details a:visited { font-weight: 400; color: var(--ink-2); }
.bc-details a:hover { color: var(--accent); }

/* Business card: no red ring on the photo; share buttons all the same size */
.bc-avatar { box-shadow: var(--shadow); padding: 0; }
.bc-share-btns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.bc-share-btns .bc-chip { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 44px; padding: 8px 6px; }
.bc-share-btns .bc-chip[hidden] { display: none; }
@media (max-width: 420px) { .bc-share-btns { grid-template-columns: repeat(2, 1fr); } }

/* Long web addresses and emails in text wrap on small phones instead of sticking out */
main p a, main li a, main td a { overflow-wrap: anywhere; }
