/*
Theme Name: Elmbridge College
Theme URI: https://www.elmbridgecollege.co.uk/
Author: Built for Elmbridge College
Description: A custom theme for Elmbridge College. Course content is edited through labelled fields rather than a page builder, so the layout cannot be broken by an editor. No plugin dependencies and no third-party requests at page load.
Version: 1.2.0
Requires at least: 6.4
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: elmbridge
*/

/* ---------------------------------------------------------------------------
   Fonts — self-hosted. No third-party request is made when a page loads, which
   keeps the site out of the Google Fonts / GDPR argument entirely.
   --------------------------------------------------------------------------- */

@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('assets/fonts/inter-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('assets/fonts/inter-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('assets/fonts/inter-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url('assets/fonts/inter-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Jakarta'; font-style: normal; font-weight: 600; font-display: swap; src: url('assets/fonts/plus-jakarta-sans-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Jakarta'; font-style: normal; font-weight: 700; font-display: swap; src: url('assets/fonts/plus-jakarta-sans-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Jakarta'; font-style: normal; font-weight: 800; font-display: swap; src: url('assets/fonts/plus-jakarta-sans-latin-800-normal.woff2') format('woff2'); }

/* ---------------------------------------------------------------------------
   Tokens — Design Direction B
   --------------------------------------------------------------------------- */

:root {
  --ink-900: #0F1720;
  --ink-800: #16212C;
  --body:    #1B2530;
  --teal-700:#0E7C6B;
  --teal-800:#0B6153;
  --teal-900:#08453C;
  --teal-050:#E4F2EF;
  --amber:   #E8A33D;
  --surface: #F5F7F8;
  --grey:    #5A6672;
  --line:    #DFE5E9;
  --line-soft:#EBEFF2;
  --white:   #FFFFFF;

  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --display: 'Jakarta', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius: 10px;
  --radius-sm: 6px;
  --shell: 1180px;
  --gutter: 24px;

  --shadow-card: 0 1px 2px rgba(15,23,32,.06), 0 8px 24px -14px rgba(15,23,32,.24);
  --shadow-lift: 0 2px 6px rgba(15,23,32,.08), 0 20px 40px -20px rgba(15,23,32,.32);
}

/* ---------------------------------------------------------------------------
   Base
   --------------------------------------------------------------------------- */

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: var(--teal-800); text-underline-offset: 3px; }
a:hover { color: var(--teal-900); }

h1, h2, h3, h4, h5 {
  font-family: var(--display);
  color: var(--ink-900);
  line-height: 1.15;
  letter-spacing: -.022em;
  margin: 0 0 .5em;
  font-weight: 800;
}
h1 { font-size: clamp(34px, 5vw, 54px); }
h2 { font-size: clamp(26px, 3.4vw, 36px); }
h3 { font-size: clamp(20px, 2.2vw, 24px); font-weight: 700; }
h4 { font-size: 18px; font-weight: 700; }

p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.25em; }

:focus-visible {
  outline: 3px solid var(--teal-700);
  outline-offset: 3px;
  border-radius: 3px;
}

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

.skip-link {
  position: absolute; left: 16px; top: -60px;
  background: var(--ink-900); color: #fff;
  padding: 12px 18px; border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  z-index: 999; font-weight: 600; text-decoration: none;
  transition: top .15s ease;
}
.skip-link:focus { top: 0; color: #fff; }

.shell { max-width: var(--shell); margin: 0 auto; padding: 0 var(--gutter); }
.shell-narrow { max-width: 780px; margin: 0 auto; padding: 0 var(--gutter); }

.eyebrow {
  font-size: 12px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--teal-800); margin: 0 0 12px;
}
.eyebrow-light { color: var(--amber); }

.lede { font-size: 19px; color: #37424E; }

/* ---------------------------------------------------------------------------
   Buttons
   --------------------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans);
  font-size: 15px; font-weight: 600;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, transform .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--teal-700); color: #fff; }
.btn-primary:hover { background: var(--teal-800); color: #fff; }
.btn-dark { background: var(--ink-900); color: #fff; }
.btn-dark:hover { background: #1D2A37; color: #fff; }
.btn-ghost { border-color: rgba(255,255,255,.35); color: #fff; }
.btn-ghost:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.08); }
.btn-outline { border-color: var(--teal-700); color: var(--teal-800); background: #fff; }
.btn-outline:hover { background: var(--teal-050); color: var(--teal-900); }

/* ---------------------------------------------------------------------------
   Header
   --------------------------------------------------------------------------- */

.utility-bar {
  background: #08131A; color: #93A6B2;
  font-size: 12.5px;
}
.utility-bar .shell {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; min-height: 40px; flex-wrap: wrap;
}
.utility-bar .accred {
  text-transform: uppercase; letter-spacing: .1em; font-size: 11px; font-weight: 600;
}
.utility-bar a { color: #C6D3DB; text-decoration: none; }
.utility-bar a:hover { color: #fff; text-decoration: underline; }
.utility-links { display: flex; gap: 22px; }

.site-header {
  background: var(--ink-900);
  position: relative; z-index: 40;
}
.site-header .shell {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: 78px;
}

.brand,
.custom-logo-link { display: flex; align-items: center; gap: 12px; text-decoration: none; }
svg.brand-mark {
  width: 40px; height: 40px; flex: 0 0 40px; display: block;
}
/* The uploaded logo is a high-DPI export, so it must be sized by CSS rather
   than left at its natural pixel width. */
.custom-logo { height: 44px; width: auto; max-width: 260px; }
@media (max-width: 560px) { .custom-logo { height: 36px; } }
.brand-text { line-height: 1.1; }
.brand-name {
  display: block; font-family: var(--display); font-weight: 800;
  font-size: 20px; color: #fff; letter-spacing: -.02em;
}
.brand-sub {
  display: block; font-size: 10px; letter-spacing: .16em;
  text-transform: uppercase; color: #8FA3AE; font-weight: 600; margin-top: 2px;
}


.primary-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: center; gap: 28px;
}
.primary-nav a {
  font-family: var(--display); font-weight: 600; font-size: 15px;
  color: #D3DDE3; text-decoration: none; padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.primary-nav a:hover,
.primary-nav .current-menu-item > a,
.primary-nav .current_page_item > a {
  color: #fff; border-bottom-color: var(--amber);
}

.header-cta { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none; background: none; border: 1.5px solid #33424F;
  color: #fff; border-radius: var(--radius-sm);
  padding: 10px 14px; font-size: 14px; font-weight: 600;
  font-family: var(--sans); cursor: pointer; align-items: center; gap: 8px;
}
.nav-toggle:hover { border-color: #57697A; }

/* ---------------------------------------------------------------------------
   Hero
   --------------------------------------------------------------------------- */

.hero {
  position: relative;
  background:
    radial-gradient(1200px 520px at 78% -8%, rgba(14,124,107,.42), transparent 62%),
    linear-gradient(158deg, #0F1720 0%, #101C26 48%, #08453C 100%);
  color: #fff;
  overflow: hidden;
}
.hero::after {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.055) 1px, transparent 1px);
  background-size: 26px 26px;
  pointer-events: none;
}
.hero-media {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: .28;
}
.hero .shell { position: relative; z-index: 2; padding-top: 92px; padding-bottom: 96px; }
.hero-inner { max-width: 780px; }
.hero h1 { color: #fff; margin-bottom: 18px; }
.hero .lede { color: #B7C6D0; font-size: 19.5px; max-width: 62ch; }
.hero-note {
  display: inline-block; margin-top: 6px;
  font-size: 14px; color: #8FA3AE;
  border-left: 3px solid var(--amber); padding-left: 12px;
}
.hero-actions { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }

.hero-stats {
  position: relative; z-index: 2;
  border-top: 1px solid rgba(255,255,255,.12);
}
.hero-stats .shell {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; padding-top: 0; padding-bottom: 0;
}
.hero-stat { padding: 24px 0; }
.hero-stat b {
  display: block; font-family: var(--display); font-weight: 800;
  font-size: 26px; color: #fff; letter-spacing: -.02em;
}
.hero-stat span { font-size: 13px; color: #93A6B2; }

/* ---------------------------------------------------------------------------
   Sections
   --------------------------------------------------------------------------- */

.section { padding: 76px 0; }
.section-tight { padding: 56px 0; }
.section-surface { background: var(--surface); }
.section-dark { background: var(--ink-900); color: #C3CED5; }
.section-dark h2, .section-dark h3 { color: #fff; }

.section-head { max-width: 68ch; margin-bottom: 40px; }
.section-head p { color: #47535F; font-size: 18px; margin-bottom: 0; }

/* ---------------------------------------------------------------------------
   Course listing
   --------------------------------------------------------------------------- */

.filter-bar {
  display: flex; align-items: center; gap: 10px;
  flex-wrap: wrap; margin-bottom: 32px;
}
.filter-label {
  font-size: 12px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--grey); margin-right: 6px;
}
.filter-chip {
  font-family: var(--sans); font-size: 14px; font-weight: 600;
  padding: 9px 16px; border-radius: 99px;
  border: 1.5px solid var(--line); background: #fff; color: var(--body);
  cursor: pointer; transition: all .15s ease;
}
.filter-chip:hover { border-color: var(--teal-700); color: var(--teal-800); }
.filter-chip[aria-pressed="true"] {
  background: var(--teal-700); border-color: var(--teal-700); color: #fff;
}
.filter-count { font-size: 14px; color: var(--grey); margin-left: auto; }

.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  list-style: none; margin: 0; padding: 0;
}

.course-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}
.course-card:hover {
  box-shadow: var(--shadow-lift);
  transform: translateY(-3px);
  border-color: #CBD6DD;
}
.course-card.is-hidden { display: none; }

.course-card-media {
  height: 132px; position: relative;
  background: linear-gradient(135deg, var(--teal-700), var(--ink-900));
}
.course-card-media img { width: 100%; height: 100%; object-fit: cover; }
.course-card-media::after {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.09) 1px, transparent 1px);
  background-size: 20px 20px;
}
.course-card-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }

.pill {
  display: inline-block; align-self: flex-start;
  font-size: 10.5px; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 5px;
  background: var(--teal-050); color: #0A5C50;
  margin-bottom: 12px;
}
.course-card h3 { font-size: 20px; margin-bottom: 10px; }
.course-card h3 a { color: var(--ink-900); text-decoration: none; }
.course-card h3 a:hover { color: var(--teal-800); }
.course-card p { font-size: 15px; color: #4A5560; margin-bottom: 16px; }

.course-card-meta {
  display: flex; flex-wrap: wrap; gap: 6px 16px;
  font-size: 13px; color: var(--grey);
  margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line-soft);
}
.course-card-meta span { display: inline-flex; align-items: center; gap: 6px; }
.course-card-meta span::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%;
  background: var(--amber); flex: 0 0 5px;
}
.course-card-meta .meta-fee { font-weight: 700; color: var(--ink-900); }
.course-card-meta .meta-fee::before { background: var(--teal-700); }
.course-card-link {
  margin-top: 14px; font-size: 14.5px; font-weight: 600;
  color: var(--teal-800); text-decoration: none;
}
.course-card-link:hover { text-decoration: underline; }

.no-results {
  padding: 48px 24px; text-align: center;
  border: 1px dashed var(--line); border-radius: var(--radius);
  color: var(--grey);
}

/* ---------------------------------------------------------------------------
   Course detail
   --------------------------------------------------------------------------- */

.course-hero {
  background: linear-gradient(158deg, #0F1720 0%, #101C26 55%, #0A3B34 100%);
  color: #fff; padding: 56px 0 0;
}
.breadcrumbs {
  font-size: 13px; color: #8FA3AE; margin-bottom: 26px;
}
.breadcrumbs a { color: #B7C6D0; text-decoration: none; }
.breadcrumbs a:hover { color: #fff; text-decoration: underline; }
.breadcrumbs span { margin: 0 8px; opacity: .55; }

.course-hero h1 { color: #fff; margin-bottom: 12px; }
.course-hero .qualification {
  font-size: 17px; color: #B7C6D0; margin-bottom: 34px;
}

.facts-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius) var(--radius) 0 0;
  border-bottom: 0;
  overflow: hidden;
}
.fact {
  padding: 18px 22px;
  border-right: 1px solid rgba(255,255,255,.12);
}
.fact:last-child { border-right: 0; }
.fact dt {
  font-size: 11px; font-weight: 700; letter-spacing: .11em;
  text-transform: uppercase; color: #8FA3AE; margin-bottom: 5px;
}
.fact dd {
  margin: 0; font-family: var(--display); font-weight: 700;
  font-size: 19px; color: #fff;
}

.accred-note {
  background: rgba(232,163,61,.10);
  border: 1px solid rgba(232,163,61,.30);
  border-radius: var(--radius);
  padding: 18px 22px; margin-top: 26px;
  display: flex; gap: 14px; align-items: flex-start;
}
.accred-note .mark {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%;
  background: var(--amber); color: #0F1720;
  display: grid; place-items: center; font-weight: 800; font-size: 14px;
  font-family: var(--display);
}
.accred-note strong { display: block; color: #fff; font-size: 15px; margin-bottom: 3px; }
.accred-note p { margin: 0; font-size: 14.5px; color: #C3CED5; }

.course-body { padding: 64px 0; }
.course-layout {
  display: grid; grid-template-columns: minmax(0,1fr) 320px;
  gap: 56px; align-items: start;
}

.course-section { margin-bottom: 52px; }
.course-section:last-child { margin-bottom: 0; }
.course-section > h2 {
  font-size: 13px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--teal-800);
  padding-bottom: 12px; border-bottom: 2px solid var(--line);
  margin-bottom: 24px;
}
.prose p { font-size: 17.5px; color: #2C3742; }
.prose p:last-child { margin-bottom: 0; }

.module-table { width: 100%; border-collapse: collapse; }
.module-table th {
  text-align: left; font-size: 11px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--grey);
  padding: 0 0 10px; border-bottom: 1px solid var(--line);
}
.module-table th:last-child { text-align: right; }
.module-table td {
  padding: 13px 0; border-bottom: 1px solid var(--line-soft);
  font-size: 16px;
}
.module-table td:last-child {
  text-align: right; white-space: nowrap;
  font-weight: 600; font-size: 14px; color: var(--teal-800);
}
.module-table tr:last-child td { border-bottom: 0; }

.req-list { list-style: none; margin: 0; padding: 0; }
.req-list li {
  position: relative; padding-left: 26px; margin-bottom: 12px;
  font-size: 16.5px;
}
.req-list li::before {
  content: ''; position: absolute; left: 0; top: 11px;
  width: 12px; height: 2px; background: var(--amber);
}

.career-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 10px; list-style: none; margin: 0; padding: 0;
}
.career-grid li {
  background: var(--surface); border: 1px solid var(--line-soft);
  border-left: 3px solid var(--teal-700);
  border-radius: var(--radius-sm);
  padding: 13px 16px; font-size: 15.5px; font-weight: 500;
}

.progression-box {
  background: var(--teal-050);
  border: 1px solid #C3E0DA;
  border-radius: var(--radius);
  padding: 26px;
}
.progression-box p { font-size: 16.5px; color: #123B35; }
.progression-box p:last-child { margin-bottom: 0; }
.route-list {
  list-style: none; margin: 18px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.route-list li {
  background: #fff; border: 1px solid #BCD9D3;
  border-radius: 99px; padding: 8px 15px;
  font-size: 14px; font-weight: 600; color: #0A5C50;
}

/* Sticky enquiry rail */
.course-aside { position: sticky; top: 24px; }
.enquiry-card {
  background: var(--ink-900); color: #C3CED5;
  border-radius: var(--radius); padding: 26px;
}
.enquiry-card h3 { color: #fff; font-size: 20px; margin-bottom: 10px; }
.enquiry-card p { font-size: 14.5px; margin-bottom: 18px; }

.fee-block {
  border: 1px solid rgba(232,163,61,.32);
  background: rgba(232,163,61,.10);
  border-radius: var(--radius-sm);
  padding: 16px 18px; margin-bottom: 18px;
}
.fee-block dt {
  font-size: 11px; font-weight: 700; letter-spacing: .11em;
  text-transform: uppercase; color: var(--amber); margin-bottom: 4px;
}
.fee-block dd {
  margin: 0; font-family: var(--display); font-weight: 800;
  font-size: 30px; color: #fff; letter-spacing: -.02em; line-height: 1.1;
}
.fee-block .fee-note {
  display: block; margin-top: 7px; font-size: 13px;
  font-family: var(--sans); font-weight: 400; color: #B7C6D0; letter-spacing: 0;
}

/* The fee gets its own tint on the facts strip so the number that matters most
   is not just one of five identical cells. */
.fact-fee { background: rgba(232,163,61,.12); }
.fact-fee dt { color: var(--amber); }
.enquiry-card .btn { width: 100%; justify-content: center; }
.enquiry-card .btn + .btn { margin-top: 10px; }
.enquiry-contact {
  margin-top: 20px; padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.14);
  font-size: 14px;
}
.enquiry-contact dt {
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: #7E919D; font-weight: 700; margin-bottom: 3px;
}
.enquiry-contact dd { margin: 0 0 12px; }
.enquiry-contact dd:last-child { margin-bottom: 0; }
.enquiry-contact a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.3); }
.enquiry-contact a:hover { border-bottom-color: #fff; }

/* ---------------------------------------------------------------------------
   Forms
   --------------------------------------------------------------------------- */

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; }
.field-full { grid-column: 1 / -1; }
.field label {
  font-size: 14px; font-weight: 600; color: var(--ink-900); margin-bottom: 7px;
}
.field .req { color: #B4441F; }
.field input, .field select, .field textarea {
  font-family: var(--sans); font-size: 16px;
  padding: 13px 14px;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; color: var(--body);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--teal-700);
  box-shadow: 0 0 0 3px rgba(14,124,107,.14);
  outline: none;
}
.field textarea { resize: vertical; min-height: 130px; }
.field-hint { font-size: 13px; color: var(--grey); margin-top: 6px; }
/* Stop the submit button stretching to the full grid width. */
.field > .btn { align-self: flex-start; }
@media (max-width: 560px) { .field > .btn { align-self: stretch; justify-content: center; } }

/* .field sets column direction; the consent row has to override it. */
.field.consent {
  flex-direction: row;
  gap: 11px;
  align-items: flex-start;
  font-size: 14.5px;
}
.field.consent input { margin-top: 3px; flex: 0 0 auto; width: 18px; height: 18px; }
.field.consent label { margin-bottom: 0; font-weight: 400; line-height: 1.55; }

.honeypot { position: absolute; left: -9999px; }

.form-notice {
  padding: 16px 20px; border-radius: var(--radius-sm);
  margin-bottom: 26px; font-size: 15.5px;
}
.form-notice-sent { background: var(--teal-050); border: 1px solid #A9D2CA; color: #0A4C42; }
.form-notice-error { background: #FCECE7; border: 1px solid #F0C4B6; color: #8A3418; }

/* ---------------------------------------------------------------------------
   Contact page
   --------------------------------------------------------------------------- */

.contact-layout {
  display: grid; grid-template-columns: minmax(0,1fr) 340px;
  gap: 56px; align-items: start;
}
.contact-panel {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px;
}
.contact-panel h3 { font-size: 19px; margin-bottom: 18px; }
.contact-panel dl { margin: 0; }
.contact-panel dt {
  font-size: 11px; font-weight: 700; letter-spacing: .11em;
  text-transform: uppercase; color: var(--grey); margin-bottom: 4px;
}
.contact-panel dd { margin: 0 0 18px; font-size: 16px; }
.contact-panel dd:last-child { margin-bottom: 0; }

.placeholder-flag {
  display: inline-block; font-size: 11px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  background: #FFF3D6; color: #7A5410;
  border: 1px solid #EBD3A0; border-radius: 4px;
  padding: 2px 7px; margin-left: 8px; vertical-align: 2px;
}

/* ---------------------------------------------------------------------------
   Page + generic content
   --------------------------------------------------------------------------- */

.page-hero {
  background: var(--ink-900); color: #fff; padding: 62px 0;
}
.page-hero h1 { color: #fff; margin-bottom: 10px; }
.page-hero p { color: #B7C6D0; font-size: 18.5px; max-width: 62ch; margin: 0; }

.entry-content { font-size: 17.5px; }
.entry-content h2 { margin-top: 1.8em; }

/* ---------------------------------------------------------------------------
   Footer
   --------------------------------------------------------------------------- */

.site-footer { background: var(--ink-900); color: #93A6B2; padding: 64px 0 0; }
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px; padding-bottom: 48px;
}
.site-footer h4 {
  color: #fff; font-size: 13px; font-weight: 700;
  letter-spacing: .11em; text-transform: uppercase; margin-bottom: 16px;
}
.site-footer p { font-size: 14.5px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 10px; font-size: 14.5px; }
.site-footer a { color: #C3CED5; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-brand .brand,
.footer-brand .custom-logo-link { margin-bottom: 16px; }
.footer-legal {
  border-top: 1px solid rgba(255,255,255,.10);
  padding: 22px 0 32px;
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  font-size: 13px;
}

/* ---------------------------------------------------------------------------
   Level groups (Level 3, Level 5) on the homepage and course listing
   --------------------------------------------------------------------------- */

.level-group + .level-group { margin-top: 60px; }
.level-group-head {
  margin-bottom: 26px; padding-left: 16px;
  border-left: 4px solid var(--teal-700);
  max-width: 68ch;
}
.level-group-head h3 { font-size: 24px; margin-bottom: 6px; }
.level-group-head p { color: #47535F; font-size: 16.5px; margin: 0; }

/* ---------------------------------------------------------------------------
   WhatsApp enquiry: button, tappable number, homepage band, contact panel.
   WhatsApp green with near-black green text: 8.9:1 contrast, passes AA.
   --------------------------------------------------------------------------- */

.btn-whatsapp { background: #25D366; color: #04301A; }
.btn-whatsapp:hover { background: #1FBB59; color: #04301A; }

.wa-number {
  display: inline-flex; align-items: center; gap: 14px;
  background: #25D366; color: #04301A;
  padding: 16px 24px; border-radius: var(--radius);
  text-decoration: none;
  transition: background-color .15s ease, transform .15s ease;
}
.wa-number:hover { background: #1FBB59; color: #04301A; transform: translateY(-1px); }
.wa-number-label { display: block; font-size: 13px; font-weight: 600; line-height: 1.3; }
.wa-number-digits {
  display: block; font-family: var(--display); font-weight: 800;
  font-size: 24px; letter-spacing: -.01em; line-height: 1.2;
  white-space: nowrap;
}
@media (max-width: 420px) {
  .wa-number { padding: 14px 18px; gap: 12px; }
  .wa-number-digits { font-size: 20px; }
}

.wa-band { background: var(--teal-900); color: #D6EAE6; padding: 52px 0; }
.wa-band-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 28px; flex-wrap: wrap;
}
.wa-band h2 { color: #fff; margin-bottom: 8px; }
.wa-band p { margin: 0; max-width: 52ch; font-size: 17px; }

.wa-panel {
  background: var(--teal-900); color: #D6EAE6;
  border-radius: var(--radius); padding: 26px; margin-bottom: 20px;
}
.wa-panel h3 { color: #fff; font-size: 19px; margin-bottom: 8px; }
.wa-panel p { font-size: 15px; margin-bottom: 18px; }
.wa-panel .wa-number { width: 100%; }

/* ---------------------------------------------------------------------------
   WhatsApp float
   --------------------------------------------------------------------------- */

.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  display: inline-flex; align-items: center; gap: 10px;
  background: #25D366; color: #04301A;
  font-size: 14px; font-weight: 700;
  padding: 13px 18px; border-radius: 99px;
  text-decoration: none;
  box-shadow: 0 6px 22px -6px rgba(4,48,26,.5);
}
.wa-float:hover { background: #1FBB59; color: #04301A; }

/* ---------------------------------------------------------------------------
   Responsive
   --------------------------------------------------------------------------- */

@media (max-width: 1020px) {
  .course-layout { grid-template-columns: 1fr; gap: 44px; }
  .course-aside { position: static; }
  .contact-layout { grid-template-columns: 1fr; gap: 40px; }
  .contact-aside { order: -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .primary-nav {
    display: none; position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--ink-800);
    border-top: 1px solid rgba(255,255,255,.10);
    padding: 12px 0 20px;
  }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .primary-nav li { border-bottom: 1px solid rgba(255,255,255,.07); }
  .primary-nav a {
    display: block; padding: 15px var(--gutter);
    border-bottom: 0; font-size: 16px;
  }
  .primary-nav a:hover { background: rgba(255,255,255,.05); border-bottom: 0; }
  .header-cta .btn { display: none; }
  .site-header .shell { position: relative; flex-wrap: wrap; }

  .hero .shell { padding-top: 60px; padding-bottom: 64px; }
  .hero-stats .shell { grid-template-columns: 1fr 1fr; }
  .hero-stat { padding: 18px 0; }

  .facts-strip { grid-template-columns: 1fr 1fr; }
  .fact { border-bottom: 1px solid rgba(255,255,255,.12); }
  .fact:nth-child(2n) { border-right: 0; }
  .fact:nth-last-child(-n+2) { border-bottom: 0; }

  .section { padding: 56px 0; }
  .form-grid { grid-template-columns: 1fr; }
  .utility-bar .accred { display: none; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .course-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .brand-name { font-size: 17px; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .filter-count { width: 100%; margin-left: 0; }
  .wa-float span { display: none; }
  .wa-float { padding: 15px; }
}

/* ---------------------------------------------------------------------------
   Print
   --------------------------------------------------------------------------- */

@media print {
  .site-header, .utility-bar, .site-footer, .wa-float, .course-aside, .filter-bar { display: none; }
  .course-hero { background: none; color: #000; padding: 0; }
  .course-hero h1, .fact dd { color: #000; }
  body { font-size: 12pt; }
}
