/* ============================================================
   YORKSHIRE FUTURES - BRAND.CSS
   Loaded last. Applies the correct 2026 brand colour palette
   to override any legacy pink (#EE365B) values in main.css
   and improvements.css.

   Style Guide Palette:
     Deep Purple  #3d1c4f  - primary brand / header / dark sections
     Mid Purple   #5a2d72  - hover states
     Light Purple #917cb1  - secondary accents, metadata
     Pale Purple  #f0ebf7  - light backgrounds
     Pink Accent  #dc485f  - section labels, card tags, highlights
     Green        #49a573  - positive / success
     Teal         #49a2c6  - trust / education
     Orange CTA   #e16f38  - ALL primary call-to-action buttons
     Charcoal     #3e3f3d  - body text
     Off-white    #f7f6f9  - page backgrounds

   Typography: Poppins (300 Light → 800 ExtraBold)
   Strapline: "Unlocking People, Shaping Futures"
============================================================ */

/* ── CSS TOKENS ─────────────────────────────────────────── */
:root {
  --brand:         #2A1540;
  --brand-mid:     #2A1540;
  --brand-light:   #917cb1;
  --brand-pale:    #f0ebf7;
  --accent-pink:   #dc485f;
  --accent-green:  #49a573;
  --accent-teal:   #49a2c6;
  --accent-orange: #c55322; /* AA contrast with white text */
  --accent-orange-btn: #c55322;
  --accent-orange-light: #f29a68; /* orange text on dark purple */
  --charcoal:      #3e3f3d;
  --off-white:     #f7f6f9;
  --text:          #3e3f3d;
  --muted:         #6b7280;
  --max-w:         1100px;
  --radius:        10px;
}

/* ── GLOBAL BASE ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Poppins', sans-serif;
  color: var(--charcoal);
  background: #fff;
  margin: 0;
}

/* ── SKIP LINK ───────────────────────────────────────────── */
.skip-link {
  position: absolute; left: -999px; top: auto;
  width: 1px; height: 1px; overflow: hidden;
}
.skip-link:focus {
  left: 10px; top: 10px; width: auto; height: auto;
  padding: 8px 12px; background: #fff; color: var(--brand);
  border-radius: 4px; z-index: 9999;
}

/* ── ANNOUNCEMENT BAR ────────────────────────────────────── */
.announcement-bar {
  background: var(--brand);
  border-bottom: 2px solid var(--accent-orange);
  padding: 10px 0;
  text-align: center;
  font-size: 14px;
  color: rgba(255,255,255,0.9);
  position: relative;
}
.announcement-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}
.announcement-bar a {
  color: var(--accent-orange-light);
  font-weight: 700;
  text-decoration: underline;
}
.announcement-bar i { color: var(--accent-orange-light); }
.announcement-close {
  position: absolute; right: 16px; top: 50%;
  transform: translateY(-50%);
  background: none; border: none; color: rgba(255,255,255,0.7);
  font-size: 20px; cursor: pointer; line-height: 1; padding: 0 4px;
}
.announcement-close:hover { color: #fff; }

/* ── HEADER / NAV ────────────────────────────────────────── */
#site-header {
  background: var(--brand)
    url('../../media/brand/page-header-bg.jpg') center center / cover no-repeat;
  position: relative;
  /* Allow dropdown menus to extend outside the header (prevent clipping) */
  overflow: visible !important;
  color: #fff;
  padding: 14px 0 18px; /* tighter header */
  min-height: 72px;
}
#site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(61,28,79,0.92) 0%,
    rgba(90,45,114,0.80) 60%,
    rgba(61,28,79,0.88) 100%
  );
  z-index: 0;
  pointer-events: none;
}
#site-header > * { position: relative; z-index: 1; }
#site-header.scrolled {
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 24px rgba(0,0,0,0.25);
}

/* TOPBAR */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  flex-wrap: nowrap;
  gap: 12px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo-img {
  width: 180px !important;
  height: auto !important;
  display: block;
  filter: brightness(0) invert(1);
}
.logo-strapline {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.04em;
  text-transform: none;
  line-height: 1.1;
  max-width: 260px;
  margin-left: 8px;
  display: block; /* always show the strapline */
}
@media (min-width: 960px) {
  .logo-strapline { display: block; }
}

/* Nav links */
nav[aria-label="Primary navigation"] {
  display: flex;
  gap: 4px;
  align-items: center;
}
nav[aria-label="Primary navigation"] a {
  color: rgba(255,255,255,0.88);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 6px;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}
nav[aria-label="Primary navigation"] a:hover,
nav[aria-label="Primary navigation"] a.nav-active {
  color: #fff;
  background: rgba(255,255,255,0.12);
}
nav[aria-label="Primary navigation"] a.nav-active {
  font-weight: 600;
}

/* Nav dropdown */
.nav-dropdown { position: relative; display: inline-block; }
.nav-dropdown > a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.nav-arrow { font-size: 10px; transition: transform 0.2s; }
.nav-dropdown:hover .nav-arrow { transform: rotate(180deg); }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 8px;
  min-width: 170px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease, top 0.2s ease;
  box-shadow: 0 12px 36px rgba(0,0,0,0.25);
  z-index: 99999 !important;
}
.nav-dropdown { z-index: 99999 !important; }

/* Extra safeguard: if any stylesheet later forces header overflow hidden, ensure
   dropdowns still display by allowing overflow on header and top-level header
   elements using !important. This is safe because dropdowns are positioned
   absolutely and only affect visible layering. */
header, #site-header { overflow: visible !important; }
.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  top: calc(100% + 4px);
}
.dropdown-menu a {
  display: flex !important;
  align-items: center;
  gap: 8px;
  padding: 9px 14px !important;
  border-radius: 6px !important;
  color: rgba(255,255,255,0.82) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  background: transparent !important;
  transition: background 0.15s;
  text-decoration: none;
}
.dropdown-menu a:hover {
  background: rgba(255,255,255,0.1) !important;
  color: #fff !important;
}

/* CTA button in nav */
.cta-btn {
  padding: 10px 20px;
  border-radius: 8px;
  background: var(--accent-orange-btn);
  color: #fff !important;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.cta-btn:hover {
  background: #c8612e;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(225,111,56,0.35);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1000;
}
.hamburger span {
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: 0.3s;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(7px,7px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(7px,-7px); }

/* ── HERO ────────────────────────────────────────────────── */
.hero { padding: 48px 0 52px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.92);
  padding: 6px 18px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 22px;
  backdrop-filter: blur(8px);
  letter-spacing: 0.04em;
}
.hero h1, .hero .hero-h1 {
  font-size: clamp(36px, 5.5vw, 62px);
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
  margin: 0 0 22px;
  letter-spacing: -0.02em;
}
.hero-accent {
  color: var(--accent-orange);
  display: inline;
}
.hero-subtitle {
  color: rgba(255,255,255,0.82);
  font-size: clamp(15px, 2vw, 18px);
  margin-bottom: 28px;
  max-width: 620px;
  line-height: 1.65;
}
.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.hero-trust {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 26px;
}
.hero-trust span {
  color: rgba(255,255,255,0.8);
  font-size: 13.5px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}
.hero-trust i { color: var(--accent-green); font-size: 15px; }

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14.5px;
  text-decoration: none;
  transition: all 0.22s ease;
  cursor: pointer;
  border: 2px solid transparent;
  font-family: 'Poppins', sans-serif;
  line-height: 1;
}
/* Orange - primary CTA (all course cards, explore buttons) */
.btn-primary,
.btn-cta {
  background: var(--accent-orange-btn) !important;
  color: #fff !important;
  border-color: var(--accent-orange-btn) !important;
}
.btn-primary:hover,
.btn-cta:hover {
  background: #c8612e !important;
  border-color: #c8612e !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(225,111,56,0.30);
}
.btn-sm { padding: 8px 16px !important; font-size: 13px !important; }
/* Ghost (hero) */
.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.55);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.9);
}
/* Outline brand (mission block) */
.btn-outline-brand {
  background: transparent;
  color: var(--brand);
  border: 2px solid var(--brand);
  border-radius: 8px;
  padding: 10px 22px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.22s ease;
  font-family: 'Poppins', sans-serif;
}
.btn-outline-brand:hover {
  background: var(--brand);
  color: #fff;
}
/* CTA band buttons */
.btn-white {
  background: #fff;
  color: var(--brand);
  border-color: #fff;
}

/* Compact header for subpages: hide large hero and tighten header */
body.compact-header #site-header {
  /* keep brand background but reduce padding and min-height */
  padding: 6px 0 6px !important;
  min-height: 56px !important;
  background-position: center top;
}

body.compact-header .hero,
body.compact-header .hero-inner {
  display: none !important;
}

body.compact-header .logo-img { width: 140px !important; }
body.compact-header .logo-strapline { display: none !important; }
body.compact-header .topbar { padding: 6px 0 !important; }

/* Ensure main content doesn't jump under sticky header */
body.compact-header main { padding-top: 8px; }

/* ----------------------------------------------------------------------
   Course pages: two-column tick lists
   Put here so it overrides main.css when needed and keeps mobile friendly
------------------------------------------------------------------------ */
.course-list {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0,1fr)) !important;
  column-gap: 2rem !important;
  row-gap: 0.25rem !important;
  list-style: none;
  padding: 0;
  margin: 0;
}
.course-list li {
  padding: 0.6rem 0;
  padding-left: 1.6rem;
  position: relative;
}
.course-list li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--brand) !important;
  font-weight: 700;
}

@media (max-width: 700px) {
  .course-list {
    grid-template-columns: 1fr !important;
  }
}

/* ----------------------------------------------------------------------
   Index hero tweaks: denser first-look and slightly larger logo on desktop
------------------------------------------------------------------------ */
#site-header .logo-img {
  width: 210px !important; /* increase logo slightly on larger screens */
}

@media (max-width: 960px) {
  #site-header .logo-img { width: 160px !important; }
}

.hero {
  padding: 28px 0 30px; /* reduce vertical whitespace in hero */
}
.hero-inner { /* constrain and tighten content spacing */
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 12px;
}
.hero-badge { transform: scale(0.92); padding: 6px 14px; font-size: 12px; }
.hero h1, .hero .hero-h1 { margin-bottom: 10px; } /* reduce gap between title and subtitle */
.hero-subtitle { margin-bottom: 16px; max-width: 560px; }
.hero-buttons { margin-bottom: 8px; }

/* Slight lift for the CTA band so hero feels more grounded */
.cta-band { margin-top: 10px; }

/* Reduce announcement height slightly so header sits closer to hero */
.announcement-bar { padding: 8px 0; }

/* Remove the visible strapline from the header/nav area
   Keeps the footer strapline untouched. */
#site-header .logo-strapline {
  display: none !important;
}

.btn-white:hover {
  background: #f0ebf7;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}
.btn-ghost-white {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: 8px;
  padding: 12px 24px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.22s ease;
}
.btn-ghost-white:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.85);
}

/* ── SECTION LABELS ──────────────────────────────────────── */
.section-label {
  text-align: center;
  margin: 50px 0 28px;
}
.section-label span {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.5px;
  color: var(--accent-pink);
  text-transform: uppercase;
  position: relative;
  padding: 0 20px;
}
.section-label span::before,
.section-label span::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 40px;
  height: 2px;
  background: var(--accent-pink);
  opacity: 0.4;
}
.section-label span::before { right: 100%; margin-right: -18px; }
.section-label span::after  { left: 100%;  margin-left: -18px; }

/* ── CARDS ───────────────────────────────────────────────── */
.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(61,28,79,0.07);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(61,28,79,0.06);
}
.card-img-wrap { position: relative; overflow: hidden; }
.card-media {
  width: 100%; height: 170px;
  object-fit: cover; display: block;
  transition: transform 0.4s ease;
}
.card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* ============================================================
   IMPACT STATS (force visible styling to override legacy conflicts)
   This ensures the 'Our Impact by the Numbers' section shows the
   intended brand gradient and readable white text on all pages.
============================================================ */
.impact-stats {
  background: var(--brand) !important;
  color: #fff !important;
  padding: 80px 0 !important;
  text-align: center !important;
  margin: 60px 0 !important;
  border-radius: 12px !important;
  border: 1px solid rgba(42,21,64,0.06) !important;
}
.impact-stats h2 { color: var(--brand) !important; margin-bottom: 50px !important; }
.stats-grid { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important; gap: 30px !important; }
.impact-stats {
  background: linear-gradient(135deg, #fff, #fff 100%) !important;
  color: #fff !important;
  padding: 80px 0 !important;
  text-align: center !important;
  margin: 60px 0 !important;
  border-radius: 12px !important;
}
.impact-stats h2 { color: var(--brand) !important; margin-bottom: 50px !important; }
.stats-grid { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important; gap: 30px !important; }
.stat-card {
  background: rgba(255,255,255,0.04) !important;
  padding: 30px !important;
  border-radius: 8px !important;
  border: 1px solid rgba(255,255,255,0.06) !important;
  box-shadow: 0 6px 18px rgba(0,0,0,0.18) !important;
}
.stat-number {
  font-size: 42px !important;
  font-weight: 700 !important;
  margin-bottom: 10px !important;
  color: var(--brand) !important;
}
.stat-card p, .stat-card .stat-label { font-size: 16px !important; margin: 0 !important; color: var(--brand) !important; }
.card-hover:hover {
  margin: 0 0 8px;
  font-size: 15.5px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}
.card-desc { margin: 0 0 14px; color: var(--muted); font-size: 13.5px; line-height: 1.55; }
.card-cta { margin-top: auto; }
.card-tag {
  position: absolute; top: 10px; left: 10px;
  background: var(--accent-orange-btn);
  color: #fff; font-size: 10.5px; font-weight: 700;
  padding: 4px 10px; border-radius: 4px;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.card-overlay {
  position: absolute; inset: 0;
  background: rgba(61,28,79,0.45);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.3s ease;
}
.card-overlay i { color: #fff; font-size: 26px; }
.card-hover:hover .card-overlay { opacity: 1; }

/* Focus grid */
.focus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}
.focus-item, .category-item {
  display: flex;
  align-items: stretch;
}
.focus-item .card,
.category-item .card {
  flex: 1;
}

/* ── STATS BAR ───────────────────────────────────────────── */
.stats-bar {
  /* White background with purple text as requested */
  background: #fff !important;
  padding: 36px 0 !important;
  color: var(--brand) !important;
  border-radius: 0 !important;
  margin: 20px 0 !important;
}
.stats-bar-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}
/* Ensure stats numbers are visible and have strong contrast against the purple background */
/* Ensure numbers and labels are purple on white */
.stats-bar .stat-num { color: var(--brand) !important; }
.stats-bar .stat-label { color: var(--brand) !important; }
/* Remove stray backgrounds (pale boxes) that may be applied elsewhere */
.stats-bar .stat-num,
.stats-bar .stat-label {
  background: transparent !important;
  display: inline-block !important;
  padding: 0 !important;
  margin: 0 !important;
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 44px;
}
.stat-num {
  font-size: 38px;
  font-weight: 800;
  color: var(--brand) !important;
  line-height: 1.1;
}
.stat-label {
  font-size: 12.5px;
  color: rgba(42,21,64,0.95) !important;
  margin-top: 4px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.stat-divider {
  width: 1px;
  height: 52px;
  background: rgba(255,255,255,0.14);
}

/* ── MISSION BLOCK V2 ────────────────────────────────────── */
.mission-block-v2 {
  display: grid;
  grid-template-columns: auto 1fr 1fr;
  gap: 44px;
  align-items: center;
  padding: 70px 0;
  border-bottom: 1px solid rgba(61,28,79,0.08);
}
.mission-icon {
  width: 72px; height: 72px;
  background: linear-gradient(135deg, var(--brand), var(--brand-mid));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.mission-icon i { font-size: 30px; color: #fff; }
.mission-text h2 {
  font-size: 27px; font-weight: 800;
  color: var(--brand); margin: 0 0 8px;
}
.mission-quote {
  font-size: 19px; font-style: italic;
  color: var(--accent-pink); font-weight: 600;
  margin: 0 0 14px;
}
.mission-text p { color: #555; line-height: 1.75; font-size: 14.5px; margin: 0 0 20px; }
.mission-image img {
  width: 100%; border-radius: 12px; object-fit: cover;
  height: 270px; box-shadow: 0 10px 34px rgba(0,0,0,0.12);
}

/* ── ACCREDITATIONS ──────────────────────────────────────── */
.accreditations-section {
  background: linear-gradient(135deg, var(--off-white) 0%, #fff 100%);
  padding: 64px 0; border-radius: 14px; margin: 60px 0; text-align: center;
}
.accreditations-section h2 {
  font-size: 28px; font-weight: 800; color: var(--brand); margin-bottom: 12px;
}
.accreditations-section p { font-size: 15px; color: #666; max-width: 600px; margin: 0 auto 40px; }
.accreditations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px; max-width: 960px; margin: 0 auto;
}
.accred-item { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.accred-logo-wrap {
  width: 120px; height: 72px;
  display: flex; align-items: center; justify-content: center;
  background: #fff; border-radius: 10px; padding: 12px;
  box-shadow: 0 2px 10px rgba(61,28,79,0.07);
  border: 1px solid rgba(61,28,79,0.07);
  transition: background 0.2s;
}
.accred-logo-wrap img { max-height: 52px; max-width: 100px; object-fit: contain; }
.accred-icon-wrap i { font-size: 38px; color: var(--brand-light); }
.accred-item:hover .accred-logo-wrap { background: var(--brand-pale); }
.accred-item p { font-size: 13px; color: #777; margin: 0; font-weight: 500; }

/* ── WHY US SECTION ──────────────────────────────────────── */
.why-us-section {
  background: linear-gradient(135deg, var(--off-white) 0%, var(--brand-pale) 100%);
  padding: 84px 0;
  margin: 60px 0 0;
}
.why-us-section h2 {
  text-align: center; font-size: 32px; font-weight: 800;
  color: var(--brand); margin-bottom: 52px;
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
}

/* Fixed 3-column tile layout (used for the About Us "Our Culture" grid) -    keeps the same .why-card styling and mobile collapse as .why-grid, but
   locks the desktop layout to 3 columns instead of auto-fitting to 4. */
.culture-grid {
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 900px) {
  .culture-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .culture-grid { grid-template-columns: 1fr; }
}
.why-card {
  background: #fff; border-radius: 14px; padding: 34px 26px;
  text-align: center;
  box-shadow: 0 4px 18px rgba(61,28,79,0.07);
  border: 1px solid rgba(61,28,79,0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.why-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 38px rgba(61,28,79,0.13);
}
.why-icon {
  width: 62px; height: 62px;
  background: linear-gradient(135deg, var(--brand), var(--brand-mid));
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.why-icon i { font-size: 24px; color: #fff; }
.why-card h3 { font-size: 17px; font-weight: 700; color: var(--brand); margin: 0 0 10px; }
.why-card p  { font-size: 13.5px; color: #666; line-height: 1.65; margin: 0; }

/* ── CTA BAND ────────────────────────────────────────────── */
.cta-band {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-mid) 100%);
  padding: 72px 0;
}
.cta-band-inner {
  display: flex; align-items: center;
  justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.cta-band-text h2 {
  font-size: 30px; font-weight: 800; color: var(--brand-mid); margin: 0 0 8px;
}
.cta-band-text p { color: var(--brand-mid); font-size: 16px; margin: 0; }
.cta-band-buttons { display: flex; gap: 14px; flex-wrap: wrap; }

/* ── FOOTER ──────────────────────────────────────────────── */
footer {
  background: #1a0d2e;
  color: rgba(255,255,255,0.68);
  padding: 0;
  margin-top: 0;
}
.footer-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 20px;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr 1.5fr;
  gap: 44px;
  padding: 64px 0 44px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-logo {
  height: 40px; width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.9; display: block; margin-bottom: 10px;
}
.footer-strapline {
  font-size: 12px; font-weight: 600;
  color: var(--accent-orange-light); letter-spacing: 0.06em;
  text-transform: uppercase; margin-bottom: 14px !important;
}
.footer-brand > p {
  font-size: 13.5px; line-height: 1.75;
  color: rgba(255,255,255,0.58); margin: 0 0 20px;
}
.footer-socials { display: flex; gap: 10px; }
.footer-socials a {
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.72); text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.footer-socials a:hover { background: var(--accent-orange); color: #fff; border-color: var(--accent-orange); }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col .footer-title {
  font-size: 11px; font-weight: 700;
  letter-spacing: 1.8px; text-transform: uppercase;
  color: rgba(255,255,255,0.38); margin-bottom: 8px;
}
.footer-col a {
  color: rgba(255,255,255,0.65); text-decoration: none; font-size: 13.5px;
  display: flex; align-items: center; gap: 8px; transition: color 0.2s;
}
.footer-col a:hover { color: #fff; }
.footer-col address {
  font-style: normal; color: rgba(255,255,255,0.65); font-size: 13.5px; line-height: 1.75;
}
.footer-more-link { color: var(--accent-orange-light) !important; font-weight: 600; margin-top: 4px; }
.footer-bottom {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 22px 0;
  font-size: 12.5px; color: rgba(255,255,255,0.32);
  flex-wrap: wrap; gap: 8px;
}
.footer-bottom a { color: rgba(255,255,255,0.38); text-decoration: none; transition: color 0.2s; }
.footer-bottom a:hover { color: rgba(255,255,255,0.85); }

/* ── BACK TO TOP ─────────────────────────────────────────── */
.back-to-top {
  position: fixed; bottom: 28px; right: 28px;
  width: 48px; height: 48px;
  background: var(--brand);
  border: 2px solid rgba(255,255,255,0.15);
  color: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; cursor: pointer;
  box-shadow: 0 4px 18px rgba(61,28,79,0.4);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: all 0.3s ease; z-index: 9999;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover {
  background: var(--accent-orange); border-color: var(--accent-orange);
  transform: translateY(-3px);
}

/* ── FOCUS OUTLINE ───────────────────────────────────────── */
a:focus-visible, button:focus-visible {
  outline: 3px solid rgba(225,111,56,0.8);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .mission-block-v2 { grid-template-columns: 1fr; gap: 24px; }
  .mission-icon { display: none; }
  .mission-image img { height: 220px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 1040px) {
  nav[aria-label="Primary navigation"],
  .cta-btn { display: none; }
  .hamburger { display: flex; }
}

@media (max-width: 768px) {
  .topbar { flex-wrap: nowrap; }
  .hero h1, .hero .hero-h1 { font-size: 34px; }
  .hero { padding: 36px 0 40px; }
  .stat-item { padding: 16px 20px; width: 50%; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .stat-divider { display: none; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .cta-band-inner { flex-direction: column; text-align: center; }
  .cta-band-buttons { justify-content: center; }
  .footer-top { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .hero h1, .hero .hero-h1 { font-size: 30px; }
  .hero-trust { gap: 14px; }
  .hero-buttons .btn { padding: 11px 18px; font-size: 13.5px; }
  .why-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }

  /* Mobile nav - displayed inline below topbar when .active */
  nav[aria-label="Primary navigation"].active {
    display: flex !important;
    flex-direction: column;
    gap: 0;
    width: 100%;
    background: var(--brand-mid);
    border-radius: 10px;
    padding: 8px;
    margin-top: 4px;
  }
  nav[aria-label="Primary navigation"].active a {
    border-bottom: 1px solid rgba(255,255,255,0.07);
    border-radius: 6px;
    padding: 12px 14px;
  }
  nav[aria-label="Primary navigation"].active a:last-child { border-bottom: none; }
  .cta-btn { display: inline-flex !important; }
  .topbar { flex-wrap: wrap; }
}

/* Mobile/tablet overlay nav: occupy full width and provide clear tap targets */
@media (max-width: 1040px) {
  nav[aria-label="Primary navigation"] {
    transition: transform 0.28s ease, opacity 0.2s ease;
    position: relative;
  }
  nav[aria-label="Primary navigation"].active {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    left: 0; right: 0; top: 100%;
    transform: translateY(0);
    opacity: 1;
    padding: 12px;
    background: var(--brand-mid);
    border-radius: 10px;
    margin-top: 4px;
    box-shadow: 0 12px 36px rgba(0,0,0,0.24);
    z-index: 999;
  }
  nav[aria-label="Primary navigation"].active a {
    border-bottom: 1px solid rgba(255,255,255,0.07);
    border-radius: 6px;
    padding: 12px 14px;
  }
  nav[aria-label="Primary navigation"].active a:last-child { border-bottom: none; }
  .hamburger { display: flex; }
  nav[aria-label="Primary navigation"] a { font-size: 16px; }
}

/* Ensure nav links and hamburger are focus-visible on mobile */
.hamburger:focus-visible, nav[aria-label="Primary navigation"] a:focus-visible {
  outline: 3px solid rgba(225,111,56,0.9);
  outline-offset: 4px;
}

/* Slightly larger tap targets for nav links */
nav[aria-label="Primary navigation"] a { padding: 10px 12px; }

/* Make stats stack neatly on very small screens */
@media (max-width: 420px) {
  .stats-bar-inner { flex-direction: column; gap: 8px; }
  .stat-item { width: 100%; padding: 10px 12px; }
}

/* Defensive: ensure scrolling isn't accidentally disabled by inline styles or legacy rules */
    /* Ensure nav grows and CTA stays aligned right */
    .topbar nav[aria-label="Primary navigation"] { flex: 1 1 auto; }
    .topbar .cta-btn { margin-left: 18px; flex: 0 0 auto; }
html, body {
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  touch-action: auto !important;
}


/* ══════════════════════════════════════════════════════════
   GOOGLE REVIEWS SLIDER
══════════════════════════════════════════════════════════ */
.greviews-section { text-align: center; }
.greviews-section > h2 { text-align: center; font-size: 30px; font-weight: 800; color: var(--brand); margin-bottom: 8px; }
.greviews-sub {
  color: var(--muted); font-size: 14.5px; margin: 0 0 36px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.greviews-sub i { color: #4285F4; font-size: 16px; }

/* ══════════════════════════════════════════════════════════
   COURSE PRICE TAG (course detail page booking sections)
══════════════════════════════════════════════════════════ */
.course-price-tag {
  display: flex; align-items: center; gap: 12px;
  background: var(--brand-pale); border-radius: 12px;
  padding: 14px 20px; margin: 4px 0 22px;
}
.course-price-tag i {
  color: var(--accent-orange); font-size: 20px; flex: none;
}
.course-price-tag .price-main {
  font-weight: 800; color: var(--brand); font-size: 19px;
}
.course-price-tag .price-sub {
  display: block; font-weight: 500; color: var(--muted); font-size: 13px; margin-top: 2px;
}

/* ══════════════════════════════════════════════════════════
   OPEN COURSES CALENDAR
══════════════════════════════════════════════════════════ */
.oc-wrap {
  display: grid;
  grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
}
@media (max-width: 860px) {
  .oc-wrap { grid-template-columns: 1fr; }
}

.oc-cal-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(61,28,79,0.07);
  border: 1px solid rgba(61,28,79,0.06);
  padding: 22px;
}
.oc-cal-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.oc-cal-header h3 { margin: 0; font-size: 18px; color: var(--brand); }
.oc-cal-nav {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid rgba(61,28,79,0.15); background: #fff; color: var(--brand);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
}
.oc-cal-nav:hover { background: var(--brand); color: #fff; }
.oc-cal-nav:disabled { opacity: 0.35; cursor: not-allowed; background: none; color: var(--brand); }

.oc-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  text-align: center;
}
.oc-cal-dow { font-size: 11px; font-weight: 700; color: var(--muted); padding-bottom: 6px; text-transform: uppercase; }
.oc-cal-day {
  position: relative;
  aspect-ratio: 1 / 1;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
  font-size: 13px;
  color: var(--charcoal);
  background: transparent;
  border: none;
  cursor: default;
}
.oc-cal-day.is-blank { visibility: hidden; }
.oc-cal-day.has-session {
  background: var(--c, var(--accent-teal));
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.oc-cal-day.has-session:hover { transform: translateY(-1px); box-shadow: 0 3px 10px rgba(73,162,198,0.45); }
.oc-cal-day.has-session.selected { outline: 3px solid var(--brand); outline-offset: 2px; }
.oc-cal-day.is-today:not(.has-session) { border: 1.5px solid var(--brand-light); }

.oc-legend { display: flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 12.5px; color: var(--muted); }
.oc-legend-swatch { width: 13px; height: 13px; border-radius: 4px; background: var(--accent-teal); flex: none; }

.oc-list-title { font-size: 18px; color: var(--brand); margin: 0 0 16px; }
.oc-session-card {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  background: #fff; border: 1px solid rgba(61,28,79,0.08); border-radius: 12px;
  padding: 18px 20px; margin-bottom: 14px;
  box-shadow: 0 2px 10px rgba(61,28,79,0.05);
}
.oc-session-card.is-highlighted { border-color: var(--accent-teal); box-shadow: 0 4px 16px rgba(73,162,198,0.2); }
.oc-session-date {
  flex: 0 0 64px; text-align: center; background: var(--brand-pale); border-radius: 10px; padding: 8px 4px;
}
.oc-session-date .oc-day { display: block; font-size: 22px; font-weight: 800; color: var(--brand); line-height: 1.1; }
.oc-session-date .oc-mon { display: block; font-size: 11px; text-transform: uppercase; color: var(--brand-light); font-weight: 700; }
.oc-session-info { flex: 1 1 220px; min-width: 0; }
.oc-session-info h4 { margin: 0 0 4px; font-size: 16px; color: var(--charcoal); }
.oc-session-meta { font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 14px; }
.oc-session-meta i { color: var(--accent-teal); margin-right: 4px; }
.oc-session-price { font-weight: 800; color: var(--brand); font-size: 17px; flex: 0 0 auto; white-space: nowrap; }
.oc-session-price small { display: block; font-size: 11px; font-weight: 500; color: var(--muted); }
.oc-book-btn { flex: 0 0 auto; }

.oc-empty-note {
  color: var(--muted); font-size: 14px; background: var(--off-white);
  border: 1px dashed rgba(61,28,79,0.2); border-radius: 10px; padding: 18px; text-align: center;
}

.oc-book-panel {
  margin-top: 28px; background: var(--brand-pale); border-radius: 14px; padding: 26px 24px;
  display: none;
}
.oc-book-panel.is-open { display: block; }
.oc-book-panel h3 { margin: 0 0 4px; color: var(--brand); }
.oc-book-summary { font-size: 14px; color: var(--charcoal); margin-bottom: 18px; }
.oc-book-summary strong { color: var(--brand); }

@media (max-width: 520px) {
  .oc-session-card { padding: 14px; }
  .oc-session-price { width: 100%; text-align: left; }
}

/* ══════════════════════════════════════════════════════════
   NAV/FOOTER SNIPPET - for applying to all other pages
   Add class="nav-active" to the <a> matching the current page
══════════════════════════════════════════════════════════ */

/* ===== Homepage Google reviews marquee ===== */
.gmq-section { padding: 64px 0 56px; background: var(--off-white); text-align: center; overflow: hidden; }
.gmq-section h2 { font-size: 30px; font-weight: 800; color: var(--brand); margin-bottom: 8px; }
.gmq-wrap { display: flex; flex-direction: column; gap: 18px; margin-top: 8px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.gmq-row { overflow: hidden; }
.gmq-track { display: flex; gap: 0; width: max-content; animation: gmq-scroll 70s linear infinite; }
.gmq-rev .gmq-track { animation-direction: reverse; animation-duration: 80s; }
.gmq-wrap:hover .gmq-track, .gmq-wrap:focus-within .gmq-track { animation-play-state: paused; }
.gmq-card { flex: 0 0 340px; margin-right: 18px; background: #fff; border: 1px solid #ece7f3; border-radius: 14px; padding: 20px 22px; text-align: left;
  box-shadow: 0 4px 14px rgba(42,21,64,.07); display: flex; flex-direction: column; gap: 10px; }
.gmq-card .gstars { color: #f5b301; letter-spacing: 2px; font-size: 16px; }
.gmq-card .gquote { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--text); flex: 1 1 auto; }
@keyframes gmq-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (max-width: 600px) { .gmq-card { flex-basis: 270px; } .gmq-section h2 { font-size: 26px; } }
@media (prefers-reduced-motion: reduce) {
  .gmq-track { animation: none; width: auto; flex-wrap: wrap; justify-content: center; }
  .gmq-card[aria-hidden="true"] { display: none; }
  .gmq-wrap { -webkit-mask-image: none; mask-image: none; padding: 0 16px; }
}

/* ---- Ready to Book contact row: email always on one line, address may wrap ---- */
.contact-details-inline {
  display: flex; flex-wrap: wrap; gap: 14px; align-items: stretch;
}
.contact-details-inline .contact-item { flex: 0 0 auto; }
.contact-details-inline .contact-item:nth-child(3) { flex: 1 1 280px; }
.contact-details-inline .contact-item a[href^="mailto:"] {
  white-space: nowrap; overflow-wrap: normal; word-break: normal;
}
.contact-details-inline .contact-item span { overflow-wrap: break-word; }
@media (max-width: 480px) {
  .contact-details-inline .contact-item { flex: 1 1 100%; padding: 0.85rem; gap: 0.7rem; }
  .contact-details-inline .contact-item a[href^="mailto:"] { font-size: clamp(11px, 3.4vw, 15px); }
}

/* ---- LDSS funding callout (OMMT pages) ---- */
.funding-callout {
  background: #f4f0f9; border: 1px solid #e3dbee; border-left: 5px solid var(--brand-light);
  border-radius: 12px; padding: 28px 32px; margin: 2rem 0; box-sizing: border-box; max-width: 100%;
}
.funding-callout h2 { color: var(--brand); font-size: 1.35rem; margin: 0 0 12px; }
.funding-callout p { margin: 0 0 12px; line-height: 1.65; }
.funding-callout p:last-child { margin-bottom: 0; }
.funding-callout a { color: var(--brand); font-weight: 600; text-decoration: underline; text-decoration-color: var(--accent-orange); text-underline-offset: 3px; }
.funding-callout a:hover { color: var(--accent-orange); }
@media (max-width: 600px) { .funding-callout { padding: 20px 18px; } }

/* Elfsight Google Reviews section (homepage) */
.elfsight-section { padding: 56px 0; overflow: hidden; }
.elfsight-section h2 { text-align: center; margin-bottom: 24px; }

/* Mobile: comfortable tap targets for footer links */
@media (max-width: 768px) {
  footer a { display: inline-block; padding: 6px 0; min-height: 32px; }
}

@media (max-width: 768px) {
  .breadcrumb a, nav[aria-label*="readcrumb"] a, nav.breadcrumb a { display: inline-block; padding: 8px 2px; min-height: 32px; }
  a.qual-badge { min-height: 36px; display: inline-flex; align-items: center; }
}

/* Homepage hero: stack on tablets/phones */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr !important; gap: 28px; padding-left: 20px; padding-right: 20px; }
  .hero-image img { max-width: 100%; }
  .hero-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
  .hero-buttons .btn { white-space: nowrap; }
}

/* Open courses: Stripe pay button + invoice fallback */
.oc-actions { display: flex; flex-direction: column; align-items: stretch; gap: 8px; flex: 0 0 auto; text-align: center; }
.oc-pay-btn { white-space: nowrap; }
.oc-invoice-link { background: none; border: 0; padding: 2px; font: inherit; font-size: 13px; color: var(--brand-light); text-decoration: underline; cursor: pointer; }
.oc-invoice-link:hover { color: var(--brand); }

/* ===== Feedback round 2 ===== */
/* Consistent vertical rhythm for course page sections */
.course-section { margin: 0; padding-top: 36px; padding-bottom: 36px; }
.course-section:nth-child(even) { padding-top: 36px; padding-bottom: 36px; }
.course-section > h2 { margin-bottom: 20px; padding-bottom: 12px; border-bottom-color: var(--brand-light); }
.course-section > h2 + p, .course-section > p:last-child { margin-top: 0; }
.course-section p:last-child, .course-section ul:last-child { margin-bottom: 0; }
.course-section + .course-section { margin-top: 0; }

/* Category pages: cap card width so solo/few cards don't stretch; show more of each image */
.focus-grid.cat-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 340px)); justify-content: start; gap: 24px; }
.cat-grid .card-media, .cat-grid img.card-media { height: auto; aspect-ratio: 3 / 2; object-fit: cover; }

/* Newsletter */
.article-grid .card-media { height: 150px; display: flex; align-items: center; justify-content: center; color: #fff; position: relative; }
.article-grid .card-media i { font-size: 54px; opacity: .95; }
.article-grid .card-media .art-tag { position: absolute; top: 12px; left: 12px; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; background: rgba(255,255,255,.2); padding: 4px 10px; border-radius: 20px; }
.newsletter-intro { margin-bottom: 8px; }
.newsletter-intro + section { padding-top: 0; }

/* Case study illustration strip */
.cs-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 0 0 20px; }
.cs-gallery img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 10px; display: block; }
@media (max-width: 600px) { .cs-gallery { grid-template-columns: 1fr; } }

/* Homepage hero: crossfading training photos */
.hero-slides { position: relative; width: 100%; max-width: 520px; aspect-ratio: 3 / 2; border-radius: 20px; overflow: hidden; box-shadow: 0 25px 60px rgba(0,0,0,.25); background: #2a1540; }
.hero-slides img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; border-radius: 0; box-shadow: none; opacity: 0; animation: heroFade 25s infinite; filter: brightness(1.05) saturate(1.05); }
.hero-slides img:nth-child(1) { animation-delay: 0s; }
.hero-slides img:nth-child(2) { animation-delay: 5s; }
.hero-slides img:nth-child(3) { animation-delay: 10s; }
.hero-slides img:nth-child(4) { animation-delay: 15s; }
.hero-slides img:nth-child(5) { animation-delay: 20s; }
@keyframes heroFade { 0% { opacity: 0; } 4% { opacity: 1; } 20% { opacity: 1; } 24% { opacity: 0; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .hero-slides img { animation: none; } .hero-slides img:first-child { opacity: 1; } }
@media (max-width: 900px) { .hero-slides { max-width: 100%; } }

/* ===== Open courses navigation buttons ===== */
.open-courses-banner {
  display: flex; align-items: center; justify-content: center; gap: 18px;
  margin: 32px 0 8px; padding: 18px 28px; border-radius: 40px;
  background: var(--brand); color: #fff; text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.open-courses-banner:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(42,21,64,.28); background: #3a2056; }
.open-courses-banner .ocb-icon { width: 56px; height: 56px; border-radius: 50%; background: rgba(255,255,255,.12); display: flex; align-items: center; justify-content: center; font-size: 26px; color: #fff; flex: 0 0 auto; }
.open-courses-banner .ocb-text { font-size: clamp(22px, 3.2vw, 34px); font-weight: 700; letter-spacing: .01em; }
@media (max-width: 480px) { .open-courses-banner { padding: 14px 18px; gap: 12px; } .open-courses-banner .ocb-icon { width: 44px; height: 44px; font-size: 20px; } }

.see-booking-btn { display: flex; align-items: center; justify-content: center; width: 100%; margin-top: 14px; padding: 16px 20px; font-size: 1.15rem; border-radius: 12px; box-sizing: border-box; }
.see-booking-btn::after { content: "\f078"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: .8em; margin-left: 10px; }
#book-your-course { scroll-margin-top: 90px; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.booking-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: .5rem; }
.booking-actions .btn { margin: 0; }
.booking-actions [hidden] { display: none !important; }
.booking-form .booking-actions button { align-self: auto; margin-top: 0; }

/* Course lists: 3 across on desktop, 2 on tablet, 1 on mobile */
.focus-grid.cat-grid,
main .focus-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); justify-content: stretch; }
@media (max-width: 900px) { .focus-grid.cat-grid, main .focus-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .focus-grid.cat-grid, main .focus-grid { grid-template-columns: 1fr; } }

/* Plain branded panel used where no photo is shown */
.card-media-plain, .course-hero-plain {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--brand, #2A1540), var(--brand-light, #917cb1));
  color: #fff; font-size: 3.5rem;
}
.card-media-plain { aspect-ratio: 3 / 2; width: 100%; }
.course-hero-plain { aspect-ratio: 3 / 2; width: 100%; border-radius: 12px; }

/* Case study: smaller in-person photo with partner logo badge */
.cs-photo { position: relative; max-width: 420px; margin: 0 auto 20px; }
.cs-photo > img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: 45% 50%; border-radius: 12px; display: block; }
.cs-badge { position: absolute; left: 12px; bottom: 12px; background: #fff; border-radius: 10px; padding: 6px 10px; box-shadow: 0 4px 14px rgba(0,0,0,.25); line-height: 0; }
.cs-badge img { height: 30px; width: auto; display: block; }
@media (max-width: 600px) { .cs-photo { max-width: 100%; } }

/* Courses page: Open Courses as the 9th card */
.card-open-courses { text-decoration: none; color: inherit; display: flex; flex-direction: column; }

.card-open-courses:hover { transform: translateY(-3px); }

/* Related courses: show at most 3 */
.related-grid > :nth-child(n+4) { display: none; }

/* Course detail pages: tighter vertical rhythm */
.course-hero { margin-bottom: 0; padding-bottom: 8px; }
.course-section, .course-section:nth-child(even) { padding-top: 24px; padding-bottom: 24px; }
.course-section > h2 { margin-bottom: 16px; padding-bottom: 10px; }

/* Homepage: popular courses 4 across */
main .focus-grid.popular-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { main .focus-grid.popular-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { main .focus-grid.popular-grid { grid-template-columns: 1fr; } }

/* Open Courses card: bold purple feature card */
.card.card-open-courses {
  background: radial-gradient(circle at 85% 0%, #5b2f86 0%, transparent 55%), linear-gradient(160deg, #2A1540 0%, #4a2575 100%);
  border: 0; color: #fff; overflow: hidden; position: relative;
  box-shadow: 0 14px 34px rgba(42,21,64,.35);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card.card-open-courses:hover { transform: translateY(-4px); box-shadow: 0 20px 44px rgba(42,21,64,.45); }
.card-open-courses .card-media-plain {
  background: transparent; color: #fff; font-size: 0; height: auto; aspect-ratio: 3 / 2;
  position: relative;
}
.card-open-courses .card-media-plain i {
  font-size: 3rem; width: 110px; height: 110px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.12); border: 2px solid rgba(255,255,255,.35);
  box-shadow: 0 0 0 14px rgba(255,255,255,.06), 0 0 0 30px rgba(255,255,255,.03);
}
.card-open-courses .card-body h3 { color: #fff; }
.card-open-courses .card-desc { color: rgba(255,255,255,.85); }
.card-open-courses .btn-primary { background: var(--accent-orange-btn); color: #fff; }

/* Ready to Book? - consistent spacing on every course page */
.course-booking-section { padding-top: 32px; padding-bottom: 40px; }
.course-booking-section > p { margin-bottom: 20px; }
.course-booking-section .course-price-tag { margin: 0 0 20px; }
.course-booking-section .contact-details-inline { margin: 0 0 28px; }
.course-booking-section .booking-cta-row, .course-booking-section .booking-actions { margin-top: 0; padding-bottom: 4px; }
.booking-form-section { margin-top: 8px; }

/* ================= Articles & Newsletter ================= */
.art-page-wrap { padding-bottom: 56px; }
.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
.art-head { margin: 8px 0 28px; }
.art-head h1 { margin: 0 0 8px; }
.art-head p { margin: 0; max-width: 640px; font-size: 1.1rem; color: var(--muted); }

/* Spotlight */
.spotlight { position: relative; display: grid; grid-template-columns: 1.6fr 1fr; gap: 32px; align-items: center; overflow: hidden;
  padding: 44px 48px; border-radius: 24px; color: #fff;
  background: radial-gradient(circle at 92% 8%, rgba(225,111,56,.35), transparent 42%), radial-gradient(circle at 70% 110%, rgba(145,124,177,.45), transparent 50%), linear-gradient(135deg, #2A1540 0%, #43236b 100%);
  box-shadow: 0 22px 50px rgba(42,21,64,.28); }
.spotlight::after { content:""; position:absolute; right:-80px; top:-80px; width:300px; height:300px; border-radius:50%; border:2px solid rgba(255,255,255,.08); box-shadow: 0 0 0 36px rgba(255,255,255,.03); }
.spot-text { position: relative; z-index: 1; }
.spot-eyebrow { display:inline-flex; align-items:center; gap:8px; font-size:.78rem; font-weight:700; letter-spacing:.14em; text-transform:uppercase; color:#ffd2b8; margin-bottom:14px; }
.spotlight h2 { color:#fff; font-size: clamp(1.6rem, 3vw, 2.3rem); line-height:1.15; margin: 0 0 14px; border: 0; padding: 0; }
.spotlight p { color: rgba(255,255,255,.88); margin: 0 0 24px; max-width: 620px; line-height: 1.6; }
.spot-actions { display:flex; flex-wrap:wrap; gap:12px; }
.spot-stat { position:relative; z-index:1; display:flex; justify-content:center; }
.spot-ring { width: 220px; height: 220px; border-radius: 50%; display:flex; flex-direction:column; align-items:center; justify-content:center;
  background: rgba(255,255,255,.07); border: 3px solid var(--accent-orange); box-shadow: 0 0 0 14px rgba(255,255,255,.05), 0 0 0 30px rgba(255,255,255,.03); }
.spot-ring strong { font-size: 3.2rem; line-height: 1; color: #fff; letter-spacing: -.02em; }
.spot-ring span { margin-top: 6px; font-size: .85rem; letter-spacing: .18em; text-transform: uppercase; color: #ffd2b8; font-weight: 600; }

/* Toolbar */
.art-toolbar { display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; margin: 40px 0 8px; padding-bottom: 14px; border-bottom: 2px solid var(--brand-pale); }
.art-tabs { display:flex; flex-wrap:wrap; gap:8px; }
.art-tab { --c: var(--brand); font: inherit; font-weight:600; font-size:.95rem; cursor:pointer; display:inline-flex; align-items:center; gap:8px;
  padding: 10px 18px; border-radius: 999px; border: 2px solid transparent; background: var(--brand-pale); color: var(--brand); transition: all .18s ease; min-height: 44px; }
.art-tab span { font-size:.75rem; background: rgba(42,21,64,.1); border-radius: 999px; padding: 2px 8px; }
.art-tab:hover { border-color: var(--c); }
.art-tab.is-active { background: var(--c); color:#fff; }
.art-tab.is-active span { background: rgba(255,255,255,.25); }
.art-tab.cat-news { --c: var(--accent-orange); }
.art-tab.cat-featured { --c: var(--accent-pink); }
.art-tab.cat-guide { --c: var(--accent-teal); }
.art-tab.cat-training { --c: var(--accent-green); }
.art-view { display:flex; gap:4px; background: var(--brand-pale); border-radius: 12px; padding: 4px; }
.art-view-btn { font: inherit; cursor:pointer; border:0; width:44px; height:40px; border-radius: 9px; background: transparent; color: var(--brand); font-size: 1rem; }
.art-view-btn.is-active { background: var(--brand); color:#fff; }

/* Items */
.art-item { --c: var(--brand); }
.art-item.cat-news, .art-hero.cat-news { --c: var(--accent-orange); }
.art-item.cat-featured, .art-hero.cat-featured { --c: var(--accent-pink); }
.art-item.cat-guide, .art-hero.cat-guide { --c: var(--accent-teal); }
.art-item.cat-training, .art-hero.cat-training { --c: var(--accent-green); }
.art-item[hidden] { display:none !important; }
.art-link { display:flex; gap:20px; text-decoration:none; color:inherit; height:100%; box-sizing:border-box; }
.art-tile { flex: 0 0 84px; height:84px; border-radius: 20px; display:flex; align-items:center; justify-content:center; color:#fff; font-size:1.9rem;
  background: linear-gradient(140deg, var(--c), color-mix(in srgb, var(--c) 60%, #2A1540)); box-shadow: 0 8px 18px color-mix(in srgb, var(--c) 35%, transparent); transition: transform .2s ease; }
.art-body { display:flex; flex-direction:column; min-width:0; }
.art-meta { display:flex; flex-wrap:wrap; align-items:center; gap: 6px 12px; font-size:.8rem; color: var(--muted); margin-bottom: 6px; }
.art-badge { display:inline-block; background: var(--c); color:#fff; font-weight:700; font-size:.7rem; letter-spacing:.08em; text-transform:uppercase; padding: 3px 10px; border-radius: 999px; }
.art-item h3 { margin: 0 0 6px; font-size: 1.15rem; line-height: 1.3; color: var(--brand); transition: color .15s ease; }
.art-item p { margin: 0 0 10px; color: var(--charcoal); font-size: .95rem; line-height: 1.55; }
.art-more { margin-top:auto; font-weight:700; font-size:.9rem; color: var(--c); display:inline-flex; align-items:center; gap:8px; }
.art-more i { transition: transform .2s ease; }
.art-link:hover h3 { color: var(--c); }
.art-link:hover .art-tile { transform: translateY(-3px) rotate(-3deg); }
.art-link:hover .art-more i { transform: translateX(4px); }
.art-link:focus-visible { outline: 3px solid var(--c); outline-offset: 4px; border-radius: 12px; }

/* List layout: two editorial columns */
.art-list[data-view="list"] { display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); column-gap: 56px; }
.art-list[data-view="list"] .art-item { padding: 26px 0; border-bottom: 1px solid #e6dff0; }

/* Grid layout: 4 across on desktop */
.art-list[data-view="grid"] { display:grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 22px; margin-top: 22px; }
.art-list[data-view="grid"] .art-item { background:#fff; border-radius: 18px; box-shadow: 0 6px 22px rgba(42,21,64,.09); overflow:hidden; transition: transform .2s ease, box-shadow .2s ease; }
.art-list[data-view="grid"] .art-item:hover { transform: translateY(-4px); box-shadow: 0 14px 32px rgba(42,21,64,.16); }
.art-list[data-view="grid"] .art-link { flex-direction: column; gap: 0; }
.art-list[data-view="grid"] .art-tile { flex: none; width: 100%; height: 130px; border-radius: 0; font-size: 2.6rem; box-shadow: none; }
.art-list[data-view="grid"] .art-link:hover .art-tile { transform: none; }
.art-list[data-view="grid"] .art-body { padding: 18px 18px 20px; flex: 1; }
.art-list[data-view="grid"] .art-item h3 { font-size: 1.02rem; }
.art-list[data-view="grid"] .art-item p { font-size: .88rem; display:-webkit-box; -webkit-line-clamp:4; -webkit-box-orient:vertical; overflow:hidden; }
.art-empty { text-align:center; color: var(--muted); padding: 40px 0; }

/* Subscribe band */
.art-subscribe { display:grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items:center; margin-top: 56px; padding: 36px 40px; border-radius: 22px; background: var(--brand-pale); border: 1px solid #e0d6ee; }
.art-subscribe h2 { margin: 0 0 6px; font-size: 1.5rem; border: 0; padding: 0; color: var(--brand); }
.art-subscribe p { margin: 0; color: var(--muted); }
.art-subscribe form { display:flex; gap:10px; flex-wrap:wrap; }
.art-subscribe input[type=email] { flex: 1 1 220px; min-width:0; padding: 14px 16px; border:1px solid #cfc3e3; border-radius: 10px; font: inherit; background:#fff; }

/* Article page */
.art-hero { --c: var(--brand); display:flex; gap: 28px; align-items:center; padding: 36px 40px; border-radius: 24px; color:#fff; margin: 8px 0 36px;
  background: radial-gradient(circle at 95% 0%, color-mix(in srgb, var(--c) 55%, transparent), transparent 50%), linear-gradient(135deg, #2A1540, #43236b); box-shadow: 0 20px 44px rgba(42,21,64,.25); }
.art-hero-icon { flex:0 0 96px; height:96px; border-radius: 24px; display:flex; align-items:center; justify-content:center; font-size:2.4rem; background: var(--c); box-shadow: 0 10px 24px rgba(0,0,0,.25); }
.art-hero h1 { color:#fff; margin: 12px 0 8px; font-size: clamp(1.6rem, 3.4vw, 2.4rem); line-height: 1.2; }
.art-hero-meta { margin:0; color: rgba(255,255,255,.8); font-size:.92rem; }
.art-content { max-width: 760px; margin: 0 auto; font-size: 1.05rem; line-height: 1.75; color: var(--charcoal); }
.art-content .lead { font-size: 1.25rem; line-height: 1.6; color: var(--brand); font-weight: 400; margin-top: 0; }
.art-content h2 { margin: 2.2rem 0 .7rem; font-size: 1.5rem; color: var(--brand); border: 0; padding: 0 0 0 16px; border-left: 5px solid var(--accent-orange); line-height: 1.25; }
.art-content ul, .art-content ol { padding-left: 1.3rem; }
.art-content li { margin-bottom: .55rem; }
.art-note { display:flex; gap:14px; background: var(--brand-pale); border-left: 5px solid var(--brand-light); padding: 16px 20px; border-radius: 12px; margin: 1.5rem 0; }
.art-note i { color: var(--brand-light); font-size: 1.3rem; margin-top: 4px; }
.art-note p { margin: 0; }
.art-steps { list-style: none; counter-reset: s; padding: 0; }
.art-steps li { counter-increment: s; position: relative; padding: 16px 18px 16px 70px; background:#fff; border-radius: 14px; box-shadow: 0 4px 16px rgba(42,21,64,.08); margin-bottom: 12px; }
.art-steps li::before { content: counter(s); position:absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 50%; background: var(--accent-orange); color:#fff; font-weight:700; display:flex; align-items:center; justify-content:center; }
.art-compare { display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; margin: 1.5rem 0; }
.art-compare-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.art-compare > div { background:#fff; border-radius: 16px; padding: 20px; box-shadow: 0 4px 16px rgba(42,21,64,.09); border-top: 4px solid var(--brand-light); }
.art-compare h3 { margin: 0 0 8px; font-size: 1.05rem; color: var(--brand); }
.art-compare h3 i { color: var(--accent-orange); margin-right: 8px; }
.art-compare p { margin: 0; font-size: .95rem; line-height: 1.55; }
.art-compare-4 h3 { font-size: 2.2rem; color: var(--accent-orange); line-height: 1; }
.art-table-wrap { overflow-x: auto; }
.art-table { width:100%; border-collapse: collapse; font-size: .97rem; }
.art-table th { text-align:left; background: var(--brand); color:#fff; padding: 12px 14px; }
.art-table td { padding: 12px 14px; border-bottom: 1px solid #e6dff0; }
.art-table tr:nth-child(even) td { background: var(--off-white); }
.art-small { font-size: .85rem; color: var(--muted); }
.art-source { font-size: .9rem; color: var(--muted); margin-top: 2rem; }
.art-cta { display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; margin: 2.5rem 0 1.5rem; padding: 24px 28px; border-radius: 18px; background: linear-gradient(135deg, #2A1540, #43236b); color:#fff; }
.art-cta strong { display:block; font-size:1.15rem; }
.art-cta span { color: rgba(255,255,255,.8); font-size:.95rem; }
.art-back { font-weight:700; text-decoration:none; color: var(--brand); display:inline-flex; gap:8px; align-items:center; }
.art-related { margin-top: 56px; }
.art-related h2 { border:0; padding:0; margin: 0 0 4px; }

/* Responsive */
@media (max-width: 1100px) { .art-list[data-view="grid"] { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 900px) {
  .spotlight { grid-template-columns: 1fr; padding: 32px 24px; }
  .spot-stat { justify-content:flex-start; }
  .spot-ring { width: 150px; height: 150px; box-shadow: 0 0 0 8px rgba(255,255,255,.05); }
  .spot-ring strong { font-size: 2.2rem; }
  .art-list[data-view="list"] { grid-template-columns: 1fr; }
  .art-subscribe { grid-template-columns: 1fr; padding: 28px 22px; }
  .art-compare-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 600px) {
  .art-list[data-view="grid"] { grid-template-columns: 1fr; }
  .art-tile { flex-basis: 64px; height: 64px; font-size: 1.5rem; border-radius: 16px; }
  .art-link { gap: 14px; }
  .art-hero { flex-direction: column; align-items:flex-start; padding: 28px 22px; }
  .art-hero-icon { flex-basis: 72px; width: 72px; height: 72px; font-size: 1.8rem; }
  .art-compare, .art-compare-2 { grid-template-columns: 1fr; }
  .art-tabs { overflow-x:auto; flex-wrap:nowrap; width:100%; padding-bottom: 4px; }
  .art-tab { flex: 0 0 auto; }
  .art-view { display:none; }
}

/* ===== TILE flip cards ===== */
.tile-flip-grid { display:grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; margin: 1rem 0 1.8rem; perspective: 1200px; }
.art-flip-hint { margin: 1.2rem 0 0; }
.tile-card { font: inherit; padding:0; border:0; background:none; cursor:pointer; text-align:left; height: 250px; perspective: 1000px; -webkit-tap-highlight-color: transparent; }
.tile-inner { position:relative; display:block; width:100%; height:100%; transition: transform .7s cubic-bezier(.3,.7,.2,1); transform-style: preserve-3d; }
.tile-card.is-flipped .tile-inner { transform: rotateY(180deg); }
.tile-face { position:absolute; inset:0; display:flex; flex-direction:column; border-radius: 18px; backface-visibility: hidden; -webkit-backface-visibility: hidden; box-sizing:border-box; }
.tile-front { align-items:center; justify-content:center; color:#fff; text-align:center;
  background: radial-gradient(circle at 80% 15%, rgba(225,111,56,.55), transparent 50%), linear-gradient(145deg, #2A1540, #4a2575); box-shadow: 0 10px 28px rgba(42,21,64,.3); }
.tile-front b { font-size: 8rem; line-height: 1; font-weight: 800; color:#fff; letter-spacing: -.02em; text-shadow: 0 6px 18px rgba(0,0,0,.3); }
.tile-front em { position:absolute; bottom: 16px; font-style:normal; font-weight:700; font-size:.75rem; letter-spacing:.14em; text-transform:uppercase; color:#ffd2b8; }
.tile-back { transform: rotateY(180deg); background:#fff; padding: 20px; gap: 8px; box-shadow: 0 6px 22px rgba(42,21,64,.12); border-top: 5px solid var(--accent-orange); }
.tile-back > i { font-size: 1.5rem; color: var(--accent-orange); }
.tile-back strong { font-size: 1.2rem; color: var(--brand); line-height: 1.2; }
.tile-back > span { font-size: .9rem; line-height: 1.5; color: var(--charcoal); }
.tile-card:hover .tile-inner { transform: rotateY(8deg); }
.tile-card.is-flipped:hover .tile-inner { transform: rotateY(172deg); }
.tile-card:focus-visible { outline: 3px solid var(--accent-orange); outline-offset: 4px; border-radius: 18px; }
@media (max-width: 900px) { .tile-flip-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 420px) { .tile-card { height: 270px; } .tile-front b { font-size: 6rem; } }
@media (prefers-reduced-motion: reduce) { .tile-inner { transition: none; } .tile-card:hover .tile-inner { transform: none; } }

/* ===== Article photos ===== */
.art-figure { margin: 2rem 0 2.2rem; }
.art-figure img { display:block; width:100%; height:auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 22px; box-shadow: 0 18px 40px rgba(42,21,64,.2); background: var(--brand-pale); }
.art-figure figcaption { margin-top: 14px; padding-left: 14px; border-left: 4px solid var(--accent-orange); font-size: .92rem; line-height: 1.5; color: var(--muted); }
@media (max-width: 600px) { .art-figure img { border-radius: 16px; } }

.tile-card:focus:not(:focus-visible) { outline: none; }

/* =====================================================================
   DESIGN LANGUAGE v2 - gradients, glow, rounded shapes (sitewide)
   ===================================================================== */
:root {
  --yf-grad: linear-gradient(135deg, #2A1540 0%, #4a2575 100%);
  --yf-glow: radial-gradient(circle at 92% 8%, rgba(225,111,56,.38), transparent 45%), radial-gradient(circle at 6% 110%, rgba(145,124,177,.42), transparent 50%);
  --yf-orange-grad: linear-gradient(135deg, #c55322, #bd4d1c);
  --yf-radius: 22px;
  --yf-shadow: 0 18px 40px rgba(42,21,64,.2);
  --yf-shadow-soft: 0 6px 22px rgba(42,21,64,.09);
}
@keyframes yfRise { from { transform: translateY(0); } to { transform: translateY(-4px); } }

/* Reusable ring motif */
.course-hero::before, .impact-stats::before, .cta-section::before, .stats-bar-inner::before {
  content:""; position:absolute; right:-110px; top:-110px; width:360px; height:360px; border-radius:50%; pointer-events:none;
  border:2px solid rgba(255,255,255,.08); box-shadow: 0 0 0 40px rgba(255,255,255,.03), 0 0 0 80px rgba(255,255,255,.02);
}

/* Header hero (home) */
#site-header::after { content:""; position:absolute; inset:0; pointer-events:none; background: var(--yf-glow); z-index:0; }
#site-header > * { position: relative; z-index: 1; }
.hero-inner { position: relative; z-index: 1; }
.hero-slides, .hero-image img { border-radius: 24px; }

/* Page titles get the brand accent bar */
main h1::after { content:""; display:block; width:64px; height:5px; border-radius:5px; margin-top:12px; background: linear-gradient(90deg, var(--accent-orange), var(--brand-light)); }
.art-hero h1::after, .spotlight h1::after { display:none; }

/* Buttons */
.btn-primary, .btn-cta, .cta-btn { background-image: linear-gradient(135deg, #c55322, #bd4d1c); transition: transform .18s ease, box-shadow .18s ease; }
.btn-primary:hover, .btn-cta:hover, .cta-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(225,111,56,.35); }

/* Cards */
.card { border-radius: 18px; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; box-shadow: var(--yf-shadow-soft); }
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 32px rgba(42,21,64,.16); }

/* Home: stats bar becomes a floating gradient band */
.stats-bar { background: transparent !important; padding: 0 !important; margin: 28px 0 36px !important; }
.stats-bar-inner { position: relative; overflow: hidden; max-width: 1060px; background: var(--yf-glow), var(--yf-grad); border-radius: 24px; padding: 30px 24px; box-shadow: var(--yf-shadow); }
.stats-bar .stat-item { position: relative; z-index: 1; }
.stats-bar .stat-num { color: #fff !important; }
.stats-bar .stat-label { color: #ffd2b8 !important; }
.stats-bar .stat-divider { background: rgba(255,255,255,.2) !important; }

/* Mission */
.mission-icon { background: var(--yf-grad) !important; box-shadow: 0 10px 24px rgba(42,21,64,.3), 0 0 0 8px rgba(145,124,177,.18); }
.mission-image img { border-radius: var(--yf-radius); box-shadow: 16px 16px 0 rgba(225,111,56,.2), var(--yf-shadow); }

/* Accreditations + section blocks */
.accreditations-section { background: linear-gradient(135deg, #f0ebf7 0%, #fff 70%) !important; border-radius: 26px !important; border: 1px solid #e6dff0 !important; }
.accred-logo-wrap { border-radius: 18px !important; box-shadow: var(--yf-shadow-soft); }
.accreditations-section h2::after, #why-heading::after, #gmq-heading::after, .impact-stats h2::after { content:""; display:block; width:56px; height:5px; border-radius:5px; margin: 12px auto 0; background: linear-gradient(90deg, var(--accent-orange), var(--brand-light)); }

/* Why cards (home + about) */
.why-card { border-radius: 22px !important; box-shadow: var(--yf-shadow-soft); border-top: 4px solid var(--brand-light); transition: transform .2s ease, box-shadow .2s ease; }
.why-card:hover { transform: translateY(-5px); box-shadow: 0 16px 34px rgba(42,21,64,.16); }
.why-icon { background: var(--yf-grad) !important; color: #fff !important; border-radius: 18px !important; box-shadow: 0 8px 18px rgba(42,21,64,.28); }

/* Course detail hero banner */
.course-hero { position: relative; overflow: hidden; background: var(--yf-glow), var(--yf-grad); border-radius: 26px; padding: 40px !important; margin: 1.5rem 0 1rem !important; color: #fff; box-shadow: var(--yf-shadow); }
.course-hero > * { position: relative; z-index: 1; }
.course-hero-content h1 { color: #fff !important; }
.course-hero p, .course-subtitle { color: rgba(255,255,255,.9) !important; }
.course-info-item { background: rgba(255,255,255,.1) !important; border: 1px solid rgba(255,255,255,.2) !important; border-radius: 14px !important; }
.course-info-item strong, .course-info-item div strong { color: #fff !important; }
.course-info-item p, .course-info-item div p, .course-info-item span { color: rgba(255,255,255,.82) !important; }
.course-info-item i { color: #ffb48a !important; }
.course-hero-image img { border-radius: 20px !important; box-shadow: 0 18px 40px rgba(0,0,0,.35) !important; }
@media (max-width: 600px) { .course-hero { padding: 26px 20px !important; border-radius: 20px; } }

/* Course section headings: orange bar like articles */
.course-section > h2 { border-bottom: 0 !important; padding: 0 0 0 16px !important; border-left: 5px solid var(--accent-orange); line-height: 1.25; }
.benefit-card { border: 0 !important; border-top: 4px solid var(--brand-light) !important; border-radius: 16px !important; box-shadow: var(--yf-shadow-soft); }
.related-card { border-radius: 18px !important; box-shadow: var(--yf-shadow-soft); transition: transform .2s ease, box-shadow .2s ease; border: 0 !important; border-top: 4px solid var(--brand-light) !important; }
.related-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(42,21,64,.16); }

/* Price tag + contact chips */
.course-price-tag { background: var(--yf-glow), var(--yf-grad) !important; color: #fff !important; border-radius: 18px !important; box-shadow: var(--yf-shadow); }
.course-price-tag .price-main { color: #fff !important; }
.course-price-tag .price-sub { color: rgba(255,255,255,.8) !important; }
.course-price-tag i { color: #ffb48a !important; }
.contact-details-inline .contact-item { border-radius: 14px !important; box-shadow: var(--yf-shadow-soft); background: #fff !important; border: 1px solid #ece6f4; }
.contact-details-inline .contact-item i { color: var(--accent-orange); }

/* Booking form card */
.booking-form-section { border: 0 !important; border-radius: 26px !important; background: linear-gradient(180deg, #f6f2fb 0%, #fff 60%) !important; box-shadow: var(--yf-shadow); position: relative; overflow: hidden; padding-top: 44px; }
.booking-form-section::before { content:""; position:absolute; left:0; right:0; top:0; height:6px; background: linear-gradient(90deg, var(--accent-orange), var(--brand-light), var(--accent-teal)); }

/* Case studies */
.case-study-card { position: relative; overflow: hidden; border-radius: 26px !important; border-left: 0 !important; box-shadow: var(--yf-shadow); }
.case-study-card::before { content:""; position:absolute; left:0; top:0; bottom:0; width:8px; background: linear-gradient(180deg, var(--accent-orange), var(--brand-light)); }
.case-study-tag { background: var(--yf-orange-grad) !important; color: #fff !important; border-radius: 999px; }
.impact-stats { position: relative; overflow: hidden; background: var(--yf-glow), var(--yf-grad) !important; border: 0 !important; border-radius: 26px; padding: 40px 28px !important; box-shadow: var(--yf-shadow); }
.impact-stats h2 { color: #fff !important; position: relative; z-index: 1; }
.impact-stats .stats-grid { position: relative; z-index: 1; }
.impact-stats .stat-card { background: rgba(255,255,255,.1) !important; border: 1px solid rgba(255,255,255,.2) !important; border-radius: 18px !important; box-shadow: none !important; }
.impact-stats .stat-number { color: #fff !important; }
.impact-stats .stat-card p, .impact-stats .stat-card div:not(.stat-number), .impact-stats .stat-label { color: #ffd2b8 !important; }
.cta-section { position: relative; overflow: hidden; background: var(--yf-glow), var(--yf-grad) !important; color: #fff; border-radius: 26px; padding: 48px 28px !important; text-align: center; box-shadow: var(--yf-shadow); }
.cta-section h2, .cta-section p { color: #fff !important; position: relative; z-index: 1; }
.cta-section p { color: rgba(255,255,255,.88) !important; }
.cta-section a { position: relative; z-index: 1; }

/* Open courses page */
.oc-cal-card, .oc-session-card, .oc-book-panel { border-radius: 22px !important; box-shadow: var(--yf-shadow-soft); border: 1px solid #ece6f4 !important; }
.oc-session-date { background: var(--yf-grad) !important; border-radius: 16px !important; box-shadow: 0 8px 18px rgba(42,21,64,.25); }
.oc-session-date .oc-day, .oc-session-date .oc-mon { color: #fff !important; }
.oc-session-date .oc-mon { color: #ffd2b8 !important; }
.oc-list-title { padding-left: 14px; border-left: 5px solid var(--accent-orange); }

/* Team + contact */
.team-member { border-radius: 24px !important; box-shadow: var(--yf-shadow-soft); overflow: hidden; }
.member-image img { border-radius: 20px; }
.yft-box { border-radius: 22px !important; box-shadow: var(--yf-shadow-soft); }
.yft-form { border-radius: 24px; }

/* Footer */
footer { background-image: radial-gradient(circle at 90% 0%, rgba(225,111,56,.16), transparent 40%), radial-gradient(circle at 0% 100%, rgba(145,124,177,.18), transparent 45%); border-top: 4px solid transparent; border-image: linear-gradient(90deg, var(--accent-orange), var(--brand-light), var(--accent-teal)) 1; }

/* Top banner already coloured: soften corners on pill-like items */
.hero-badge { border-radius: 999px; }
@media (prefers-reduced-motion: reduce) { .card, .why-card, .related-card { transition: none; } }
.booking-form-section { margin: 32px 0 24px !important; padding: 48px 40px 40px !important; }
@media (max-width: 600px) { .booking-form-section { padding: 40px 20px 28px !important; border-radius: 20px !important; } }
.team-section h2::after, .why-us-section h2::after { content:""; display:block; width:56px; height:5px; border-radius:5px; margin: 12px auto 0; background: linear-gradient(90deg, var(--accent-orange), var(--brand-light)); }
@media (max-width: 1100px) { .stats-bar-inner { margin-left: 16px; margin-right: 16px; } }

/* Footer legal links */
.footer-legal { display:flex; gap: 20px; flex-wrap: wrap; }

/* ================= Legal pages (Terms, Privacy) ================= */
.legal-wrap { padding-bottom: 56px; }
.legal-hero { margin-bottom: 28px; }
.legal-hero .art-hero-meta { line-height: 1.6; }
.legal-actions { display:flex; flex-wrap:wrap; gap:12px; margin-top: 18px; }
.legal-glance { margin: 0 0 40px; }
.legal-glance-title { font-size: 1.2rem; color: var(--brand); margin: 0 0 16px; border: 0; padding: 0; }
.legal-glance-title small { font-weight: 400; color: var(--muted); font-size: .85rem; margin-left: 6px; }
.legal-glance-grid { display:grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; }
.legal-glance-grid > div { background:#fff; border-radius: 18px; padding: 22px 20px; box-shadow: var(--yf-shadow-soft); border-top: 4px solid var(--brand-light); }
.legal-glance-grid i { width: 46px; height: 46px; border-radius: 14px; display:flex; align-items:center; justify-content:center; color:#fff; font-size: 1.15rem; background: var(--yf-grad); margin-bottom: 12px; box-shadow: 0 8px 16px rgba(42,21,64,.25); }
.legal-glance-grid h3 { margin: 0 0 6px; font-size: 1.05rem; color: var(--brand); }
.legal-glance-grid p { margin: 0; font-size: .92rem; line-height: 1.55; color: var(--charcoal); }

.legal-layout { display:grid; grid-template-columns: 250px minmax(0,1fr); gap: 48px; align-items: start; }
.legal-toc { position: sticky; top: 100px; background: var(--brand-pale); border-radius: 18px; padding: 20px 18px; }
.legal-toc strong { display:block; font-size:.78rem; letter-spacing:.14em; text-transform:uppercase; color: var(--brand-light); margin-bottom: 10px; }
.legal-toc ol { list-style:none; margin:0; padding:0; max-height: 70vh; overflow:auto; }
.legal-toc a { display:flex; gap: 10px; align-items:baseline; padding: 7px 10px; border-radius: 10px; text-decoration:none; color: var(--brand); font-size: .9rem; line-height: 1.35; transition: background .15s ease; }
.legal-toc a span { flex: 0 0 22px; font-weight: 700; color: var(--accent-orange); font-size: .8rem; }
.legal-toc a:hover { background: rgba(42,21,64,.07); }
.legal-toc a.is-active { background: var(--brand); color:#fff; }
.legal-toc a.is-active span { color: #ffb48a; }

.legal-body { max-width: 780px; font-size: 1.02rem; line-height: 1.75; color: var(--charcoal); }
.legal-sec { padding: 4px 0 28px; margin-bottom: 8px; scroll-margin-top: 100px; border-bottom: 1px solid #ece6f4; }
.legal-sec:last-child { border-bottom: 0; }
.legal-sec h2 { display:flex; align-items:center; gap: 14px; font-size: 1.45rem; color: var(--brand); margin: 24px 0 14px; border: 0; padding: 0; line-height: 1.25; }
.legal-num { flex: 0 0 42px; height: 42px; border-radius: 13px; display:flex; align-items:center; justify-content:center; background: var(--accent-orange); color:#fff; font-size: 1.05rem; box-shadow: 0 6px 14px rgba(225,111,56,.35); }
.legal-body p { margin: 0 0 14px; }
.legal-body ol, .legal-body ul { padding-left: 1.4rem; margin: 0 0 14px; }
.legal-body li { margin-bottom: 10px; padding-left: 4px; }
.legal-body li::marker { color: var(--accent-orange); font-weight: 700; }
.legal-alpha { list-style: lower-alpha; }
.legal-paren { list-style: none; counter-reset: p; padding-left: .5rem !important; margin-top: 10px !important; }
.legal-paren > li { counter-increment: p; position: relative; padding-left: 30px; margin-bottom: 6px; }
.legal-paren > li::before { content: counter(p) ")"; position:absolute; left: 0; font-weight: 700; color: var(--brand-light); }
.legal-bullets { list-style: none; padding-left: 0 !important; }
.legal-bullets > li { position: relative; padding-left: 28px; }
.legal-bullets > li::before { content:""; position:absolute; left: 4px; top: .62em; width: 10px; height: 10px; border-radius: 50%; background: var(--yf-orange-grad); }
.legal-xref { font-size: .92rem; color: var(--muted); }
.legal-body a { color: var(--brand); font-weight: 600; text-decoration-color: var(--accent-orange); text-underline-offset: 3px; }

.legal-tiers { display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; margin: 14px 0 6px; }
.legal-tiers > div { background: var(--yf-glow), var(--yf-grad); color:#fff; border-radius: 16px; padding: 18px 16px; box-shadow: var(--yf-shadow-soft); }
.legal-tiers b { display:block; font-size: 2.2rem; line-height: 1; color:#fff; margin-bottom: 6px; }
.legal-tiers span { font-size: .85rem; line-height: 1.4; color: #ffd2b8; display:block; }
.legal-contact { display:grid; gap: 10px; }
.legal-contact > div { display:flex; gap: 14px; align-items:center; background:#fff; border-radius: 14px; padding: 14px 18px; box-shadow: var(--yf-shadow-soft); border: 1px solid #ece6f4; }
.legal-contact i { color: var(--accent-orange); width: 20px; text-align:center; }

@media (max-width: 1000px) { .legal-glance-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 900px) {
  .legal-layout { grid-template-columns: 1fr; gap: 24px; }
  .legal-toc { position: static; padding: 16px; }
  .legal-toc ol { display:flex; flex-wrap: nowrap; gap: 6px; overflow-x:auto; max-height:none; padding-bottom: 4px; }
  .legal-toc li { flex: 0 0 auto; }
  .legal-toc a { background:#fff; white-space: nowrap; }
}
@media (max-width: 600px) {
  .legal-glance-grid { grid-template-columns: 1fr; }
  .legal-tiers { grid-template-columns: 1fr; }
  .legal-sec h2 { font-size: 1.25rem; }
}


/* ============================================================
   FEATURES ADDED OCT 2026: signup, brochure popup, reviews, buttons
   ============================================================ */

/* Dark outlined button for use on light backgrounds (.btn-ghost is white and only suits dark hero areas) */
.btn-ghost-dark {
  background: transparent !important; color: var(--brand) !important;
  border: 2px solid var(--brand) !important;
}
.btn-ghost-dark:hover { background: var(--brand) !important; color: #fff !important; }

/* Open courses: closing call to action */
.oc-footer-cta { text-align: center; max-width: 700px; margin: 40px auto 0; }
.oc-footer-cta p { color: var(--muted); margin-bottom: 16px; }
.oc-footer-cta-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Open courses: keep the booking button and invoice link tidy and left aligned */
.oc-actions { align-items: flex-start !important; text-align: left !important; }
.oc-pay-btn { width: auto; }
.oc-invoice-link { text-align: left; }

/* Email signup (Contact and Open Courses pages). Builds on .art-subscribe */
.yf-signup { margin: 40px 0 0; }
.yf-signup form { align-items: stretch; }
.yf-signup-opts { flex: 0 0 100%; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: var(--charcoal); }
.yf-signup-opts label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.yf-signup-opts input { accent-color: var(--brand); width: 16px; height: 16px; }

/* Elfsight reviews: whole widget opens the Google popup */
.elfsight-section [data-reviews-popup].is-clickable { cursor: pointer; }

/* Course guide download feature (top of the Courses page) */
.guide-feature {
  position: relative; overflow: hidden; display: grid; grid-template-columns: 190px 1fr; gap: 40px; align-items: center;
  margin: 28px 0 36px; padding: 34px 44px; border-radius: 26px; color: #fff;
  background: var(--yf-glow), var(--yf-grad); box-shadow: var(--yf-shadow);
}
.guide-feature::before {
  content: ""; position: absolute; left: -120px; bottom: -170px; width: 380px; height: 380px; border-radius: 50%; pointer-events: none;
  border: 2px solid rgba(255,255,255,.08); box-shadow: 0 0 0 40px rgba(255,255,255,.03);
}
.guide-feature > * { position: relative; z-index: 1; }
.guide-feature-cover img {
  display: block; width: 100%; height: auto; border-radius: 8px; transform: rotate(-4deg);
  box-shadow: 0 20px 40px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.12); transition: transform .25s ease;
}
.guide-feature:hover .guide-feature-cover img { transform: rotate(-1deg) translateY(-4px); }
.guide-feature-tag {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px; border-radius: 999px; margin-bottom: 12px;
  background: var(--accent-orange); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.guide-feature-text h2 { margin: 0 0 8px; color: #fff; font-size: clamp(1.5rem, 3vw, 2.1rem); border: 0; padding: 0; }
.guide-feature-text p { margin: 0 0 22px; max-width: 560px; color: rgba(255,255,255,.88); font-size: 1.02rem; line-height: 1.6; }
.guide-feature-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 700px) {
  .guide-feature { grid-template-columns: 1fr; padding: 28px 22px; text-align: center; gap: 24px; }
  .guide-feature-cover { max-width: 150px; margin: 0 auto; }
  .guide-feature-text p { margin-left: auto; margin-right: auto; }
  .guide-feature-buttons { justify-content: center; }
}

/* Brochure popup */
.brochure-modal {
  position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center;
  padding: 24px; background: rgba(26,13,46,.78); backdrop-filter: blur(3px);
}
.brochure-modal[hidden] { display: none; }
.brochure-panel {
  display: flex; flex-direction: column; width: min(1180px, 100%); height: min(860px, 100%);
  background: #fff; border-radius: 18px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.45);
}
.brochure-bar { display: flex; align-items: center; gap: 16px; padding: 12px 16px; background: var(--brand); color: #fff; }
.brochure-title { font-weight: 700; margin-right: auto; }
.brochure-title i { color: #ffd2b8; margin-right: 8px; }
.brochure-newtab { color: #fff; font-size: 13px; opacity: .85; text-decoration: underline; }
.brochure-newtab:hover { opacity: 1; }
.brochure-close { width: 38px; height: 38px; border: 0; border-radius: 50%; background: rgba(255,255,255,.15); color: #fff; font-size: 18px; cursor: pointer; }
.brochure-close:hover { background: var(--accent-orange); }
.brochure-stage { position: relative; flex: 1 1 auto; background: #f0ebf7; }
.brochure-stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.brochure-loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--muted); }
.brochure-modal.is-loaded .brochure-loading { display: none; }
body.brochure-open { overflow: hidden; }
@media (max-width: 640px) {
  .brochure-modal { padding: 0; }
  .brochure-panel { border-radius: 0; height: 100%; }
  .brochure-newtab { display: none; }
}

/* ============================================================
   RING MOTIF POSITIONS
   Each gradient box places its decorative ring in a different spot, so boxes
   that sit near each other never repeat the same corner.
   ============================================================ */
:root {
  /* Same colours as --yf-glow, with the warm glow moved to the opposite side */
  --yf-glow-flip: radial-gradient(circle at 8% 8%, rgba(225,111,56,.34), transparent 45%), radial-gradient(circle at 94% 108%, rgba(145,124,177,.42), transparent 50%);
}
/* Course page hero: ring half off the right edge, vertically centred */
.course-hero::before { right: -170px; top: 50%; margin-top: -210px; width: 420px; height: 420px; }
/* Stats panel: ring bottom left */
.impact-stats::before { right: auto; top: auto; left: -130px; bottom: -160px; width: 380px; height: 380px; }
/* Closing call to action: ring bottom right, warm glow top left */
.cta-section::before { top: auto; right: -120px; bottom: -170px; width: 400px; height: 400px; }
.cta-section { background: var(--yf-glow-flip), var(--yf-grad) !important; }
/* Home page stats bar: ring top left */
.stats-bar-inner::before { right: auto; top: -140px; left: -120px; width: 340px; height: 340px; }
/* Spotlight panel: ring bottom left */
.spotlight::after { right: auto; top: auto; left: -90px; bottom: -110px; }
@media (max-width: 700px) {
  .course-hero::before, .impact-stats::before, .cta-section::before, .stats-bar-inner::before { transform: scale(.7); }
}

/* Open courses: booking button and course details button sit side by side */
.oc-action-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.oc-details-btn { padding: 10px 18px; font-size: 14px; white-space: nowrap; }

/* Map popup (map-popup.js). Reuses the brochure popup styles. */
.map-panel { width: min(900px, 100%); height: min(640px, 100%); }
.map-address { padding: 12px 18px; font-size: 14px; color: var(--charcoal); background: #fff; border-top: 1px solid #e0d6ee; line-height: 1.5; }
.map-link { color: inherit; text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 3px; cursor: pointer; }
.map-link:hover { color: var(--accent-orange); text-decoration-style: solid; }
footer address .map-link { color: inherit; }


/* ── CONTACT PAGE ────────────────────────────────────────── */
.ct-page { padding-top: 48px; padding-bottom: 64px; }
.ct-intro { text-align: center; max-width: 640px; margin: 0 auto 36px; }
.ct-kicker { display:inline-block; font-size:12px; font-weight:700; letter-spacing:.14em; text-transform:uppercase; color:var(--accent-orange); margin-bottom:8px; }
.ct-intro h1 { font-size: clamp(30px, 5vw, 42px); font-weight:800; color:var(--brand); margin:0 0 12px; }
.ct-intro p { color:#555; line-height:1.7; margin:0; }
.ct-tiles { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; margin-bottom:32px; }
.ct-tile { display:flex; flex-direction:column; align-items:flex-start; gap:6px; background:#fff; border-radius:22px; padding:24px; box-shadow:var(--yf-shadow-soft); text-decoration:none; color:var(--brand); border:1px solid var(--brand-pale); transition:transform .18s ease, box-shadow .18s ease; min-width:0; }
.ct-tile:hover { transform:translateY(-3px); box-shadow:var(--yf-shadow); }
.ct-tile-icon { width:46px; height:46px; border-radius:14px; display:flex; align-items:center; justify-content:center; color:#fff; font-size:18px; margin-bottom:6px; }
.ct-green { background:var(--accent-green); } .ct-orange { background:var(--yf-orange-grad); } .ct-teal { background:var(--accent-teal); }
.ct-tile-label { font-size:12px; font-weight:700; letter-spacing:.1em; text-transform:uppercase; color:#777; }
.ct-tile-value { font-size:17px; font-weight:700; line-height:1.4; overflow-wrap:anywhere; }
.ct-tile-value.ct-email { font-size:15px; }
.ct-tile-link { font-size:14px; font-weight:600; color:var(--accent-orange); margin-top:2px; }
.ct-page .yf-signup { margin:0 0 32px; }
.ct-main { display:grid; grid-template-columns:minmax(0,1.5fr) minmax(0,1fr); gap:28px; align-items:start; }
.ct-form-card { background:#fff; border-radius:22px; padding:34px; box-shadow:var(--yf-shadow-soft); border:1px solid var(--brand-pale); }
.ct-form-card h2 { margin:0 0 6px; font-size:26px; font-weight:800; color:var(--brand); }
.ct-form-sub { margin:0 0 22px; color:#666; }
.ct-row { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.ct-form .form-group { margin-bottom:16px; }
.ct-form label { display:block; font-size:14px; font-weight:600; color:var(--brand); margin-bottom:6px; }
.ct-form input[type=text], .ct-form input[type=tel], .ct-form input[type=email], .ct-form select, .ct-form textarea { width:100%; box-sizing:border-box; padding:12px 14px; border:1.5px solid #ddd6e8; border-radius:12px; font:inherit; background:#faf8fd; color:#222; }
.ct-form input:focus, .ct-form select:focus, .ct-form textarea:focus { outline:none; border-color:var(--brand-light); box-shadow:0 0 0 3px rgba(145,124,177,.25); background:#fff; }
.ct-submit { width:100%; justify-content:center; margin-top:4px; }
.ct-side { display:flex; flex-direction:column; gap:20px; }
.ct-hours { background:var(--yf-grad); color:#fff; border-radius:22px; padding:28px; box-shadow:var(--yf-shadow); }
.ct-hours h2 { margin:0 0 14px; font-size:22px; font-weight:800; color:#fff; }
.ct-hours ul { list-style:none; margin:0; padding:0; }
.ct-hours li { display:flex; justify-content:space-between; gap:12px; padding:9px 0; border-bottom:1px solid rgba(255,255,255,.18); font-size:15px; }
.ct-hours li:last-child { border-bottom:0; }
.ct-hours li span:first-child { font-weight:600; }
.ct-hours .ct-closed { opacity:.7; }
.ct-find { background:var(--brand-pale); border-radius:22px; padding:26px; }
.ct-find h3 { margin:0 0 8px; font-size:18px; font-weight:800; color:var(--brand); }
.ct-find p { margin:0 0 16px; color:#555; line-height:1.6; }
@media (max-width:900px) { .ct-tiles { grid-template-columns:1fr; } .ct-main { grid-template-columns:1fr; } }
@media (max-width:520px) { .ct-row { grid-template-columns:1fr; } .ct-form-card { padding:24px 20px; } .ct-page { padding-top:32px; } }
.ct-intro h1::after { margin-left:auto; margin-right:auto; }


/* ── ARMED FORCES COVENANT BAND ─────────────────────────── */
.covenant-band { margin: 48px auto; max-width: var(--max-w, 1100px); padding: 0 20px; }
.covenant-inner { background: var(--yf-grad); color: #fff; border-radius: 22px; padding: 40px 32px; text-align: center; box-shadow: var(--yf-shadow); }
.covenant-kicker { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #ffd2b8; margin-bottom: 8px; }
.covenant-inner h2 { color: #fff; margin: 0 0 12px; font-size: clamp(22px, 3.5vw, 30px); font-weight: 800; }
.covenant-inner p { max-width: 620px; margin: 0 auto 22px; color: #efe7f7; line-height: 1.7; }
.covenant-inner a.btn-ghost-dark { border-color: #fff !important; color: #fff !important; background: transparent !important; }
.covenant-inner a.btn-ghost-dark:hover { background: #fff !important; color: var(--brand) !important; }
@media (max-width: 520px) { .covenant-inner { padding: 30px 20px; } }


/* ══════════════════════════════════════════════════════════
   MOBILE NAVIGATION AND HEADER (tablet and phone)
   This block is the single source of truth for the small-screen header.
   It deliberately overrides older rules above and in main.css / improvements.css.
══════════════════════════════════════════════════════════ */
.nav-contact, .m-bar { display: none; }

@media (max-width: 1040px) {
  /* announcement bar: one tidy line, close button inside the padding */
  .announcement-bar { padding: 8px 0 !important; font-size: 13px !important; }
  .announcement-inner { padding: 0 44px 0 14px !important; gap: 8px !important; justify-content: center; }
  .announcement-inner i { display: none; }
  .announcement-inner span { line-height: 1.35; }
  .announcement-bar a { white-space: nowrap; }
  .announcement-close { right: 6px !important; width: 36px; height: 36px; font-size: 22px !important; display: flex; align-items: center; justify-content: center; }

  /* header bar: logo left, contact + menu right */
  #site-header .topbar {
    display: flex !important; flex-direction: row !important; flex-wrap: nowrap !important;
    align-items: center; justify-content: flex-start; gap: 10px !important;
    padding: 10px 0 !important; position: relative;
  }
  #site-header .logo { order: 1; margin-right: auto; }
  #site-header .logo-img, body.compact-header .logo-img { width: 132px !important; }
  #site-header .logo-strapline { display: none !important; }
  #site-header .cta-btn { order: 2; display: inline-flex !important; align-items: center; gap: 6px; padding: 9px 14px !important; font-size: 13px !important; border-radius: 10px; margin: 0 !important; white-space: nowrap; }
  #site-header .hamburger { order: 3; display: flex !important; flex-direction: column; justify-content: center; align-items: center; gap: 5px; width: 44px; height: 44px; padding: 0; border-radius: 12px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); cursor: pointer; flex: 0 0 auto; }
  #site-header .hamburger span, .m-bar-menu span { display: block; width: 20px; height: 2px; margin: 0; background: #fff; border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
  #site-header .hamburger.active span:nth-child(1), .m-bar-menu.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  #site-header .hamburger.active span:nth-child(2), .m-bar-menu.active span:nth-child(2) { opacity: 0; }
  #site-header .hamburger.active span:nth-child(3), .m-bar-menu.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* the menu panel: fills the screen under the bar and scrolls on its own */
  body nav[aria-label="Primary navigation"] { display: none !important; }
  body nav[aria-label="Primary navigation"].active {
    display: flex !important; flex-direction: column; align-items: stretch !important; justify-content: flex-start !important; gap: 0;
    position: fixed !important; left: 0; right: 0; bottom: 0; top: 70px; width: auto !important;
    margin: 0 !important; padding: 8px 20px 28px !important; border-radius: 0 !important;
    background: linear-gradient(180deg, #2A1540 0%, #3b1d57 100%) !important;
    overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
    z-index: 2500; box-shadow: 0 20px 40px rgba(0,0,0,.35);
    border-top: 3px solid var(--accent-orange);
    animation: yfMenuIn .22s ease;
  }
  @keyframes yfMenuIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
  body nav[aria-label="Primary navigation"].active > a,
  body nav[aria-label="Primary navigation"].active .nav-dropdown > a {
    display: flex !important; align-items: center; justify-content: space-between;
    min-height: 54px; padding: 14px 4px !important; font-size: 18px !important; font-weight: 600;
    color: #fff !important; border-bottom: 1px solid rgba(255,255,255,.1) !important; border-radius: 0 !important;
    background: transparent !important; text-decoration: none;
  }
  body nav[aria-label="Primary navigation"].active a.nav-active { color: var(--accent-orange-light) !important; }
  body nav[aria-label="Primary navigation"].active a.nav-active::after { display: none !important; }
  body nav[aria-label="Primary navigation"].active .nav-arrow { display: none; }
  body nav[aria-label="Primary navigation"].active .nav-dropdown { display: block; position: static; width: 100%; z-index: auto !important; }
  body nav[aria-label="Primary navigation"].active .dropdown-menu {
    position: static !important; transform: none !important; opacity: 1 !important; visibility: visible !important;
    display: block; min-width: 0; max-height: none !important; height: auto !important; overflow: visible !important; margin: 0; padding: 0 0 6px 14px; background: transparent !important;
    border: 0 !important; border-left: 2px solid rgba(255,255,255,.18) !important; border-radius: 0 !important; box-shadow: none !important;
  }
  body nav[aria-label="Primary navigation"].active .dropdown-menu a {
    display: flex !important; align-items: center; gap: 10px; min-height: 46px; padding: 10px 12px !important;
    font-size: 16px !important; font-weight: 500; color: rgba(255,255,255,.85) !important; border: 0 !important; background: transparent !important;
  }
  body nav[aria-label="Primary navigation"].active .dropdown-menu a i { color: var(--accent-orange-light); width: 18px; text-align: center; }

  body nav[aria-label="Primary navigation"].active .nav-contact { display: grid; gap: 12px; margin-top: 22px; }
  .nav-contact a { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; border-radius: 14px; font-weight: 700; font-size: 16px; text-decoration: none; }
  .nav-contact-call { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.25); }
  .nav-contact-btn { background-image: var(--yf-orange-grad); color: #fff; }
  .nav-contact-open { color: #fff; border: 1px solid rgba(255,255,255,.25); }

  body nav[aria-label="Primary navigation"] .nav-dropdown > a::after, body nav[aria-label="Primary navigation"] .nav-dropdown > a::before { content: none !important; display: none !important; }
  body nav[aria-label="Primary navigation"].active .nav-dropdown { width: 100% !important; box-sizing: border-box; margin: 0 !important; padding: 0 !important; }
  #site-header .hamburger:focus:not(:focus-visible), .m-bar-menu:focus:not(:focus-visible) { outline: none; box-shadow: none; }
  body nav[aria-label="Primary navigation"].active > a { width: 100%; box-sizing: border-box; }
  body nav[aria-label="Primary navigation"].active a { margin-left: 0 !important; margin-right: 0 !important; }

  /* sticky mini bar that appears after the header scrolls away */
  .m-bar { display: flex; position: fixed; top: 0; left: 0; right: 0; z-index: 2600; align-items: center; gap: 10px; padding: 8px 16px; background: #2A1540; box-shadow: 0 4px 18px rgba(0,0,0,.3); border-bottom: 2px solid var(--accent-orange); transform: translateY(-110%); transition: transform .25s ease; }
  .m-bar.show { transform: none; }
  .m-bar-logo { margin-right: auto; display: flex; }
  .m-bar-logo img { width: 112px; height: auto; display: block; }
  .m-bar-call { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #fff; background-image: var(--yf-orange-grad); text-decoration: none; }
  .m-bar-menu { width: 44px; height: 44px; border-radius: 12px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); padding: 0; cursor: pointer; }
}

@media (max-width: 380px) {
  #site-header .cta-btn i { display: none; }
  #site-header .logo-img, body.compact-header .logo-img { width: 118px !important; }
}

/* ══════════════════════════════════════════════════════════
   MOBILE LAYOUT FIXES (phone and small tablet)
══════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .mission-block-v2 .mission-icon { display: none !important; }
  .accreditations-grid { display: grid !important; grid-template-columns: 1fr 1fr; gap: 24px 12px; }
  .accreditations-section { padding: 36px 18px !important; }
  .accred-item p { font-size: 12.5px; }
}

@media (max-width: 760px) {
  .art-subscribe, .yf-signup { grid-template-columns: minmax(0, 1fr) !important; padding: 26px 20px !important; }
  .art-subscribe > *, .yf-signup > * { min-width: 0; }
  .yf-signup form { flex-direction: column; flex-wrap: nowrap; }
  .yf-signup form input[type=email], .yf-signup form .btn { width: 100%; flex: 0 0 auto; box-sizing: border-box; }
  .yf-signup-opts { flex-direction: column; gap: 10px; }
  .oc-action-row { flex-direction: column; align-items: stretch !important; gap: 10px; }
  .oc-action-row .btn, .oc-action-row a { width: 100%; box-sizing: border-box; text-align: center; justify-content: center; }
  .ct-tile { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 14px; padding: 18px; }
  .ct-tile-icon { margin: 0; grid-row: span 2; }
  .ct-tile-label, .ct-tile-value, .ct-tile-link { flex: 1 1 calc(100% - 64px); }
  .ct-tile-label { margin-top: 0; }
}
.back-to-top { z-index: 900 !important; }

@media (max-width: 560px) {
  .art-link { gap: 14px; }
  .art-tile { flex-basis: 52px; height: 52px; border-radius: 14px; font-size: 1.25rem; }
  .art-item h3 { font-size: 1.05rem; }
}

.covenant-logo { background: #fff; border-radius: 14px; padding: 12px 14px; max-width: 500px; margin: 0 auto 24px; box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.covenant-logo img { display: block; width: 100%; height: auto; }


/* ACCREDITATIONS: clickable logos + compact Armed Forces Covenant strip */
.accreditations-section .covenant-strip {
  display: flex; align-items: center; gap: 28px; text-align: left;
  margin: 34px auto 0; max-width: 880px; padding: 20px 26px;
  background: linear-gradient(135deg, #2A1540 0%, #4a2478 100%);
  border-radius: 20px; box-shadow: var(--yf-shadow); position: relative; overflow: hidden;
}
.accreditations-section .covenant-strip::before { content:""; position:absolute; left:0; top:0; bottom:0; width:5px; background: var(--yf-orange-grad, linear-gradient(#e16f38,#dc485f)); }
.accreditations-section .covenant-strip .covenant-logo { flex: 0 0 auto; width: 230px; max-width: 230px; margin: 0; padding: 8px 10px; background:#fff; border-radius: 12px; }
.accreditations-section .covenant-strip .covenant-logo img { display:block; width:100%; height:auto; max-height:none; }
.accreditations-section .covenant-copy { flex: 1 1 auto; min-width: 0; }
.accreditations-section .covenant-copy .covenant-kicker { display:block; font-size: 11px; letter-spacing:.14em; text-transform: uppercase; font-weight:700; color:#ffc9a8; margin: 0 0 4px; }
.accreditations-section .covenant-copy h3 { color:#fff; font-size: 1.15rem; line-height:1.3; margin: 0 0 6px; }
.accreditations-section .covenant-copy h3::after { display:none !important; }
.accreditations-section .covenant-copy p { color: rgba(255,255,255,.86) !important; font-size: 14px; max-width:none; margin: 0 0 10px; text-align:left; }
.accreditations-section .covenant-link { color:#fff; font-weight:700; font-size:14px; text-decoration:none; border-bottom:2px solid var(--accent-orange); padding-bottom:1px; }
.accreditations-section .covenant-link:hover { color:#ffc9a8; }
@media (max-width: 640px) {
  .accreditations-section .covenant-strip { flex-direction: column; text-align:center; padding: 20px 18px; gap: 16px; }
  .accreditations-section .covenant-strip .covenant-logo { width: 220px; }
  .accreditations-section .covenant-copy p { text-align:center; }
}

/* HEADER: brand purple gradient over the artwork, so the rings and dots show through softly */
#site-header::before {
  background: linear-gradient(135deg, rgba(42,21,64,.92) 0%, rgba(74,36,120,.80) 55%, rgba(125,62,105,.62) 100%) !important;
}
#site-header::after { background: radial-gradient(circle at 92% 8%, rgba(225,111,56,.34), transparent 45%), radial-gradient(circle at 6% 110%, rgba(145,124,177,.38), transparent 50%) !important; }
#site-header { background-blend-mode: normal !important; }
/* one dropdown arrow only (the icon), not icon plus a text triangle */
.nav-dropdown > a::after { content: none !important; display: none !important; }


/* ABOUT US PAGE */
.ab-wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px; box-sizing: border-box; }
.ab-hero { position: relative; overflow: hidden; background: var(--yf-glow), var(--yf-grad); color:#fff; padding: 28px 0 64px; margin-bottom: 56px; }
.ab-hero::before { content:""; position:absolute; right:-120px; top:-120px; width:420px; height:420px; border-radius:50%; border:2px solid rgba(255,255,255,.1); box-shadow: 0 0 0 44px rgba(255,255,255,.04), 0 0 0 88px rgba(255,255,255,.025); pointer-events:none; }
.ab-hero .breadcrumb, .ab-hero .breadcrumb a, .ab-hero .breadcrumb span { color: rgba(255,255,255,.8) !important; }
.ab-hero .ab-wrap { position: relative; z-index: 1; }
.ab-kicker { display:inline-block; margin: 26px 0 10px; padding: 6px 14px; border-radius: 30px; background: rgba(255,255,255,.14); color:#ffd9c2; font-size: 12px; font-weight:700; letter-spacing:.14em; text-transform: uppercase; }
.ab-kicker-dark { margin-top:0; background: var(--brand-pale); color: var(--brand); }
.ab-hero h1 { color:#fff !important; font-size: clamp(2.1rem, 5vw, 3.2rem); margin: 0 0 14px; }
.ab-lead { max-width: 640px; font-size: 1.2rem; line-height:1.6; color: rgba(255,255,255,.92) !important; margin:0; }
.ab-story { display:grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items:center; }
.ab-photo { position:relative; }
.ab-photo::before { content:""; position:absolute; inset: 18px -18px -18px 18px; border-radius: 26px; background: var(--yf-orange-grad, linear-gradient(135deg,#e16f38,#dc485f)); opacity:.9; z-index:0; }
.ab-photo img { position:relative; z-index:1; display:block; width:100%; height:auto; border-radius: 26px; box-shadow: var(--yf-shadow); }
.ab-text h2 { font-size: 1.7rem; color: var(--brand); margin: 0 0 14px; }
.ab-text h2::after { content:""; display:block; width:56px; height:5px; border-radius:5px; margin-top:12px; background: linear-gradient(90deg, var(--accent-orange), var(--brand-light)); }
.ab-text p { font-size: 1rem; line-height: 1.7; color: #3a3346; margin: 0 0 14px; }
.ab-stats { display:grid; grid-template-columns: repeat(4, 1fr); margin: 56px 0 0; border-radius: 24px; overflow:hidden; background: var(--yf-grad); box-shadow: var(--yf-shadow); color:#fff; }
.ab-stats > div { padding: 28px 18px; text-align:center; border-right: 1px solid rgba(255,255,255,.15); }
.ab-stats > div:last-child { border-right:0; }
.ab-stats strong { display:block; font-size: 2.2rem; font-weight: 800; line-height:1.1; }
.ab-stats span { display:block; margin-top: 6px; font-size: 13px; color: #ffd9c2; font-weight:600; }
.ab-values { margin-top: 64px; padding: 64px 0; background: linear-gradient(180deg, #f6f2fb 0%, #fff 100%); text-align:center; }
.ab-values h2 { font-size: 2rem; color: var(--brand); margin: 0 0 34px; }
.ab-val-grid { display:grid; grid-template-columns: repeat(3, 1fr); gap: 22px; text-align:left; }
.ab-val { position:relative; background:#fff; border-radius: 22px; padding: 26px 24px 28px; box-shadow: var(--yf-shadow-soft); border-top: 4px solid var(--brand-light); transition: transform .2s ease, box-shadow .2s ease; }
.ab-val:nth-child(3n+1) { border-top-color: var(--accent-orange); }
.ab-val:nth-child(3n+2) { border-top-color: var(--accent-pink); }
.ab-val:nth-child(3n) { border-top-color: var(--accent-teal); }
.ab-val:hover { transform: translateY(-4px); box-shadow: var(--yf-shadow); }
.ab-val-n { position:absolute; right:20px; top:14px; font-size: 2.4rem; font-weight:800; color: #efe9f7; line-height:1; }
.ab-val-ico { width:52px; height:52px; border-radius:16px; display:flex; align-items:center; justify-content:center; color:#fff; font-size:1.3rem; background: var(--yf-grad); margin-bottom: 16px; }
.ab-val h3 { margin: 0 0 8px; font-size: 1.15rem; color: var(--brand); }
.ab-val p { margin:0; font-size: .95rem; line-height:1.6; color:#4a4258; }
.ab-covenant { margin-top: 8px; }
.ab-covenant .covenant-band { margin: 0; }
.ab-cta { margin: 56px 0 72px; }
.ab-cta-btns { display:flex; gap:14px; justify-content:center; flex-wrap:wrap; margin-top: 18px; position:relative; z-index:1; }
@media (max-width: 900px) {
  .ab-story { grid-template-columns: 1fr; gap: 34px; }
  .ab-photo::before { inset: 14px -10px -14px 10px; }
  .ab-stats { grid-template-columns: repeat(2, 1fr); }
  .ab-stats > div:nth-child(2) { border-right:0; }
  .ab-stats > div:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.15); }
  .ab-val-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .ab-wrap { padding: 0 18px; }
  .ab-hero { padding-bottom: 44px; margin-bottom: 40px; }
  .ab-val-grid { grid-template-columns: 1fr; }
  .ab-stats strong { font-size: 1.8rem; }
}
.ab-hero { margin-top: -8px; }
.art-thumb[style*="st-leonards"] { background-position: 50% 35% !important; }

/* ARTICLES GRID: photo thumbnails with a category colour wash; list view keeps the icon tiles */
.art-thumb { display: none; }
.art-list[data-view="grid"] .art-tile { display: none; }
.art-list[data-view="grid"] .art-thumb {
  display: block; position: relative; width: 100%; height: 170px; background-size: cover; background-position: center; background-repeat: no-repeat;
  transition: transform .35s ease;
}
.art-list[data-view="grid"] .art-link { overflow: hidden; }
.art-list[data-view="grid"] .art-thumb::before { content:""; position:absolute; inset:0; background: linear-gradient(to top, rgba(42,21,64,.55) 0%, rgba(42,21,64,0) 55%), linear-gradient(135deg, var(--c) 0%, transparent 70%); opacity:.55; mix-blend-mode: multiply; }
.art-list[data-view="grid"] .art-thumb::after { content:""; position:absolute; left:0; right:0; bottom:0; height:4px; background: var(--c); }
.art-list[data-view="grid"] .art-item:hover .art-thumb { transform: scale(1.04); }
.art-thumb-chip { position:absolute; left:12px; bottom:14px; z-index:1; display:inline-flex; align-items:center; gap:7px; padding:6px 12px; border-radius:30px; background: var(--c); color:#fff; font-size:11.5px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; box-shadow: 0 4px 12px rgba(0,0,0,.25); }
.art-list[data-view="grid"] .art-badge { display: none; }
@media (max-width: 760px) { .art-list[data-view="grid"] .art-thumb { height: 190px; } }
.art-thumb[style*="st-leonards"] { background-position: 50% 35% !important; }

/* Article banner graphics: show whole, no wash or chip (text is in the image) */
.art-list[data-view="grid"] .art-thumb { height: auto !important; aspect-ratio: 2 / 1; }
.art-list[data-view="grid"] .art-thumb-gfx::before, .art-list[data-view="grid"] .art-thumb-gfx .art-thumb-chip { display: none; }
.art-list[data-view="grid"] .art-thumb-gfx::after { height: 4px; }


/* MEET THE TEAM PAGE */
.tm-page .team-section { padding: 0 !important; background: none !important; text-align:center; margin: 0 0 56px; }
.tm-page .team-section > h2 { font-size: 2rem; color: var(--brand); margin: 0 0 30px; }
.tm-page .team-grid { display:grid !important; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 28px; text-align:left; }
.tm-page .team-member { display:flex !important; flex-direction: column !important; background:#fff; border-radius: 26px !important; box-shadow: var(--yf-shadow-soft); overflow:hidden; border-top: 0 !important; transition: transform .2s ease, box-shadow .2s ease; }
.tm-page .team-member:hover { transform: translateY(-5px); box-shadow: var(--yf-shadow); }
.tm-page .member-image { width:100% !important; height: auto !important; aspect-ratio: 1 / 1; position:relative; overflow:hidden; background: var(--brand-pale); border-radius:0 !important; flex: none !important; }
.tm-page .member-image img { width:100% !important; height:100% !important; object-fit: cover; object-position: 50% 18%; border-radius:0 !important; display:block; transition: transform .4s ease; }
.tm-page .team-member:hover .member-image img { transform: scale(1.04); }
.tm-page .member-image::after { content:""; position:absolute; left:0; right:0; bottom:0; height:5px; background: var(--yf-orange-grad, linear-gradient(90deg,#e16f38,#dc485f)); }
.tm-page .team-member:nth-child(2) .member-image::after { background: linear-gradient(90deg, var(--accent-pink), var(--brand-light)); }
.tm-page .team-member:nth-child(3) .member-image::after { background: linear-gradient(90deg, var(--accent-teal), var(--brand-light)); }
.tm-page .team-member:nth-child(4) .member-image::after { background: linear-gradient(90deg, var(--accent-green), var(--accent-teal)); }
.tm-page .member-content { padding: 24px 26px 28px !important; flex:1; }
.tm-page .member-content h3 { font-size: 1.4rem; color: var(--brand); margin: 0 0 4px; }
.tm-page .member-role { margin: 0 0 12px; }
.tm-page .member-role strong { display:inline-block; font-size: 12px; letter-spacing:.08em; text-transform:uppercase; color: var(--accent-orange); font-weight:700; }
.tm-page .member-bio { font-size: .98rem; line-height: 1.65; color:#3f3850; margin: 0 0 16px; }
.tm-page .member-quals { display:flex; flex-wrap:wrap; gap: 8px; }
.tm-page .qual-badge { display:inline-block; font-size: 12.5px; line-height:1.3; padding: 7px 12px; border-radius: 30px; background: var(--brand-pale); color: var(--brand); text-decoration:none; font-weight:600; border:1px solid transparent; transition: background .15s ease, color .15s ease; }
.tm-page a.qual-badge:hover { background: var(--brand); color:#fff; }
.tm-page .greviews-section { margin-top: 8px; }
.tm-page .cta-section { margin: 0 0 72px; }
@media (max-width: 900px) { .tm-page .team-grid { grid-template-columns: 1fr; } .tm-page .member-image { aspect-ratio: 1 / 1; } }

/* Meet the team: compact horizontal cards */
.tm-page .team-grid { gap: 20px; }
.tm-page .team-member { flex-direction: row !important; align-items: stretch; }
.tm-page .member-image { width: 190px !important; min-width: 190px; aspect-ratio: auto !important; height: auto !important; align-self: stretch; }
.tm-page .member-image img { object-position: 50% 15%; }
.tm-page .member-image::after { top:0; bottom:0; left:auto; right:0; width:5px; height:auto; }
.tm-page .member-content { padding: 20px 22px 22px !important; }
.tm-page .member-content h3 { font-size: 1.2rem; }
.tm-page .member-bio { font-size: .9rem; line-height: 1.55; margin-bottom: 12px; }
.tm-page .qual-badge { font-size: 11.5px; padding: 5px 10px; }
.tm-page .member-quals { gap: 6px; }
@media (max-width: 1000px) { .tm-page .team-grid { grid-template-columns: 1fr !important; } }
@media (max-width: 560px) {
  .tm-page .team-member { flex-direction: column !important; }
  .tm-page .member-image { width: 100% !important; min-width: 0; height: 240px !important; }
  .tm-page .member-image img { object-position: 50% 12%; }
  .tm-page .member-image::after { top:auto; left:0; right:0; bottom:0; width:auto; height:5px; }
}
.tm-page .member-image { width: 190px !important; min-width: 190px; height: 190px !important; aspect-ratio: 1 / 1 !important; align-self: flex-start; margin: 22px 0 0 22px; border-radius: 20px !important; }
.tm-page .member-image img { object-position: 50% 30%; }
.tm-page .member-image::after { display: none; }
.tm-page .team-member { border-top: 5px solid var(--accent-orange) !important; }
.tm-page .team-member:nth-child(2) { border-top-color: var(--accent-pink) !important; }
.tm-page .team-member:nth-child(3) { border-top-color: var(--accent-teal) !important; }
.tm-page .team-member:nth-child(4) { border-top-color: var(--accent-green) !important; }
@media (max-width: 560px) { .tm-page .member-image { width: 160px !important; min-width: 0; height: 160px !important; margin: 22px auto 0; } }
.tm-page .member-image { box-shadow: 0 0 0 1px #e6dff0; }


/* CASE STUDIES */
.cs-intro { max-width: 760px; margin: 0 auto 40px; text-align:center; font-size: 1.1rem; line-height:1.7; color:#3f3850; }
.cs2 { display:grid; grid-template-columns: 5fr 7fr; background:#fff; border-radius: 28px; overflow:hidden; box-shadow: var(--yf-shadow); margin-bottom: 56px; }
.cs2-media { position:relative; min-height: 380px; background: var(--brand-pale); }
.cs2-photo { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; display:block; }
.cs2-media::after { content:""; position:absolute; inset:0; background: linear-gradient(to top, rgba(42,21,64,.45), transparent 50%); }
.cs2-badge { position:absolute; left:20px; bottom:20px; z-index:1; background:#fff; border-radius: 14px; padding: 10px 14px; box-shadow: var(--yf-shadow-soft); }
.cs2-badge img { display:block; height: 46px; width:auto; }
.cs2-body { padding: 34px 36px 36px; }
.cs2-tag { display:inline-block; font-size: 11.5px; letter-spacing:.1em; text-transform:uppercase; font-weight:700; padding:6px 12px; border-radius:30px; background: var(--brand-pale); color: var(--brand); }
.cs2-body h2 { font-size: 1.55rem; line-height:1.3; color: var(--brand); margin: 14px 0 22px; }
.cs2-pair { display:grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cs2-box { background: #f8f5fc; border-radius: 18px; padding: 18px 20px; border-left: 4px solid var(--accent-orange); }
.cs2-box:nth-child(2) { border-left-color: var(--accent-teal); }
.cs2-box h3 { margin: 0 0 8px; font-size: 1rem; color: var(--brand); display:flex; align-items:center; gap:8px; }
.cs2-box h3 i { color: var(--accent-orange); }
.cs2-box:nth-child(2) h3 i { color: var(--accent-teal); }
.cs2-box p { margin:0; font-size:.92rem; line-height:1.6; color:#4a4258; }
.cs2-h { margin: 26px 0 12px; font-size: 1.05rem; color: var(--brand); }
.cs2-results { list-style:none; margin:0; padding:0; display:grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cs2-results li { display:flex; gap:12px; align-items:flex-start; background:#fff; border:1px solid #e9e2f2; border-radius: 14px; padding: 12px 14px; font-size:.9rem; line-height:1.45; color:#4a4258; }
.cs2-results li i { color: var(--accent-green); font-size: 1.15rem; margin-top: 2px; }
.cs2-results strong { display:block; color: var(--brand); }
.cs2-quote { position:relative; margin: 26px 0 0; padding: 22px 24px 22px 58px; background: var(--yf-grad); border-radius: 18px; color:#fff; }
.cs2-quote i { position:absolute; left:20px; top:20px; font-size: 1.5rem; color: #ffc9a8; }
.cs2-quote p { margin:0; font-size: .98rem; line-height:1.65; font-style: italic; color: #fff !important; }
@media (max-width: 1000px) { .cs2 { grid-template-columns: 1fr; } .cs2-media { min-height: 260px; } }
@media (max-width: 640px) { .cs2-body { padding: 24px 20px 26px; } .cs2-pair, .cs2-results { grid-template-columns: 1fr; } }
.cs2-pair { grid-template-columns: 1fr !important; }
.cs2-cite { margin-top: 12px; font-size: .85rem; font-weight:700; color:#ffc9a8; font-style: normal; }

/* Category pages: full-width grid under the banner */
.cat-grid { display:grid !important; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important; gap: 24px !important; max-width: 1100px; margin: 0 auto 64px !important; padding: 0 24px; box-sizing: border-box; }
.cat-grid > .card { width:auto !important; max-width:none !important; margin:0 !important; border-radius: 22px; overflow:hidden; box-shadow: var(--yf-shadow-soft); transition: transform .2s ease, box-shadow .2s ease; }
.cat-grid > .card:hover { transform: translateY(-4px); box-shadow: var(--yf-shadow); }

/* Case study: partnership graphic replaces the photo */
.cs2-graphic { position:relative; display:flex; flex-direction:column; align-items:center; justify-content:center; gap: 14px; padding: 40px 28px; overflow:hidden; background: var(--yf-glow), var(--yf-grad); }
.cs2-graphic::before { content:""; position:absolute; right:-120px; top:-120px; width:340px; height:340px; border-radius:50%; border:2px solid rgba(255,255,255,.1); box-shadow: 0 0 0 40px rgba(255,255,255,.04), 0 0 0 80px rgba(255,255,255,.025); }
.cs2-graphic::after { content:""; position:absolute; left:-90px; bottom:-90px; width:260px; height:260px; border-radius:50%; background: rgba(255,255,255,.06); }
.cs2-logo { position:relative; z-index:1; width: min(300px, 86%); padding: 22px 24px; border-radius: 20px; display:flex; align-items:center; justify-content:center; box-shadow: 0 14px 34px rgba(0,0,0,.25); }
.cs2-logo img { display:block; width:100%; height:auto; }
.cs2-logo-hf { background:#fff; }
.cs2-logo-yf { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.28); backdrop-filter: blur(6px); }
.cs2-link { position:relative; z-index:1; display:flex; align-items:center; gap:10px; color:#fff; }
.cs2-link span { display:block; width: 54px; height:2px; background: linear-gradient(90deg, transparent, rgba(255,255,255,.7)); }
.cs2-link span:last-child { background: linear-gradient(270deg, transparent, rgba(255,255,255,.7)); }
.cs2-link i { width:46px; height:46px; border-radius:50%; background: var(--accent-orange); display:flex; align-items:center; justify-content:center; font-size: 1.1rem; box-shadow: 0 6px 16px rgba(0,0,0,.25); }
.cs2-graphic-cap { position:relative; z-index:1; margin: 6px 0 0; font-size: 12px; letter-spacing:.16em; text-transform:uppercase; font-weight:700; color:#ffd9c2 !important; }
.cs2-graphic.cs2-media::after { background: rgba(255,255,255,.06); inset:auto; }

/* Slimmer page banners */
.ab-hero { padding: 8px 0 30px; margin-bottom: 36px; }
.ab-hero::before { width: 300px; height: 300px; right: -100px; top: -140px; box-shadow: 0 0 0 30px rgba(255,255,255,.04), 0 0 0 60px rgba(255,255,255,.025); }
.ab-hero .breadcrumb { margin: 0 !important; padding: 12px 0 4px !important; font-size: 13px; }
.ab-kicker { margin: 10px 0 6px; padding: 4px 11px; font-size: 11px; }
.ab-hero h1 { font-size: clamp(1.7rem, 3.4vw, 2.3rem) !important; margin: 0 0 8px !important; }
.ab-hero h1::after { margin-top: 8px !important; width: 48px !important; height: 4px !important; }
.ab-lead { font-size: 1.02rem; line-height: 1.55; max-width: 680px; }
@media (max-width: 560px) { .ab-hero { padding: 4px 0 22px; margin-bottom: 28px; } .ab-lead { font-size: .95rem; } }

/* CASE STUDY, editorial layout */
.cs3 { margin-bottom: 56px; }
.cs3-quote { position:relative; margin:0 0 44px; padding: 48px 54px 36px; border-radius: 30px; color:#fff; background: var(--yf-glow), var(--yf-grad); box-shadow: var(--yf-shadow); overflow:hidden; }
.cs3-quote::before { content:""; position:absolute; right:-100px; bottom:-130px; width:340px; height:340px; border-radius:50%; border:2px solid rgba(255,255,255,.1); box-shadow: 0 0 0 40px rgba(255,255,255,.04), 0 0 0 80px rgba(255,255,255,.025); pointer-events:none; }
.cs3-qmark { position:absolute; left:40px; top:28px; font-size: 3.2rem; color: rgba(255,201,168,.35); }
.cs3-quote blockquote { position:relative; margin: 0; padding: 18px 0 0 6px; }
.cs3-quote blockquote p { margin:0; font-size: clamp(1.15rem, 2.2vw, 1.6rem); line-height: 1.5; font-weight: 500; color:#fff !important; font-style: normal; }
.cs3-quote figcaption { position:relative; display:flex; align-items:center; gap: 16px; margin-top: 30px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.2); flex-wrap: wrap; }
.cs3-avatar { width:60px; height:60px; border-radius:50%; flex:none; display:flex; align-items:center; justify-content:center; font-weight:800; font-size:1.2rem; letter-spacing:.04em; color:#fff; background: var(--yf-orange-grad, linear-gradient(135deg,#e16f38,#dc485f)); border: 3px solid rgba(255,255,255,.35); overflow:hidden; }
.cs3-avatar img { width:100%; height:100%; object-fit:cover; display:block; }
.cs3-who { display:flex; flex-direction:column; line-height:1.35; }
.cs3-who strong { font-size: 1.05rem; }
.cs3-who span { font-size: .88rem; color:#ffd9c2; }
.cs3-logo { margin-left:auto; background:#fff; border-radius:14px; padding: 10px 14px; }
.cs3-logo img { display:block; height: 40px; width:auto; }
.cs3-head { display:flex; flex-direction:column; align-items:flex-start; margin-bottom: 22px; }
.cs3-head h2 { font-size: clamp(1.3rem, 2.4vw, 1.75rem); line-height:1.3; color: var(--brand); margin: 12px 0 0; max-width: 820px; }
.cs3-steps { display:grid; grid-template-columns: 1fr 1.5fr 1.1fr; gap: 20px; align-items:stretch; }
.cs3-step { position:relative; background:#fff; border-radius: 24px; padding: 28px 26px 26px; box-shadow: var(--yf-shadow-soft); border-top: 5px solid var(--accent-orange); }
.cs3-s2 { border-top-color: var(--accent-teal); }
.cs3-s3 { border-top-color: var(--accent-green); }
.cs3-n { position:absolute; right:20px; top:12px; font-size: 2.6rem; font-weight: 800; color:#f1ebf8; line-height:1; }
.cs3-step h3 { margin: 0 0 12px; font-size: 1.15rem; color: var(--brand); }
.cs3-step p { margin:0; font-size:.95rem; line-height:1.7; color:#4a4258; }
.cs3-results { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap: 12px; }
.cs3-results li { display:flex; gap:12px; align-items:flex-start; font-size:.92rem; line-height:1.45; color:#4a4258; }
.cs3-results li i { color: var(--accent-green); font-size:1.1rem; margin-top:2px; }
.cs3-results strong { display:block; color: var(--brand); }
@media (max-width: 1000px) { .cs3-steps { grid-template-columns: 1fr; } .cs3-quote { padding: 44px 26px 28px; } .cs3-qmark { left:22px; top:20px; } }
@media (max-width: 560px) { .cs3-logo { margin-left:0; } }

/* CASE STUDY, light layout with portrait */
.cs4 { margin-bottom: 56px; }
.cs4-top { display:grid; grid-template-columns: 420px 1fr; gap: 56px; align-items:center; }
.cs4-photo { position:relative; }
.cs4-photo::before { content:""; position:absolute; inset: 22px -22px -22px 22px; border-radius: 34px; background: var(--brand-pale); }
.cs4-photo::after { content:""; position:absolute; right:-14px; top:-14px; width:96px; height:96px; border-radius:50%; background: var(--yf-orange-grad, linear-gradient(135deg,#e16f38,#dc485f)); z-index:0; }
.cs4-photo > img { position:relative; z-index:1; display:block; width:100%; aspect-ratio: 4 / 5; object-fit:cover; object-position: 50% 20%; border-radius: 34px; box-shadow: var(--yf-shadow); }
.cs4-chip { position:absolute; z-index:2; left:18px; bottom:18px; background:#fff; border-radius:14px; padding: 9px 14px; box-shadow: var(--yf-shadow-soft); }
.cs4-chip img { display:block; height: 38px; width:auto; }
.cs4-intro h2 { font-size: clamp(1.3rem, 2.4vw, 1.8rem); line-height:1.3; color: var(--brand); margin: 14px 0 22px; }
.cs4-quote { position:relative; margin:0; padding: 8px 0 8px 26px; border-left: 5px solid var(--accent-orange); }
.cs4-quote p { margin:0; font-size: 1.12rem; line-height:1.7; color: #2c2438; font-style: italic; }
.cs4-by { margin-top: 16px; display:flex; flex-direction:column; line-height:1.35; }
.cs4-by strong { color: var(--brand); font-size: 1.02rem; }
.cs4-by span { color:#6a617a; font-size:.9rem; }
.cs4-story { display:grid; grid-template-columns: 1fr 1.4fr; gap: 0; margin: 64px 0 56px; }
.cs4-story section { padding: 4px 40px 4px 0; }
.cs4-story section + section { padding: 4px 0 4px 40px; border-left: 2px solid #ece6f4; }
.cs4-badge { width:52px; height:52px; border-radius:16px; display:flex; align-items:center; justify-content:center; color:#fff; font-size:1.2rem; margin-bottom: 14px; }
.cs4-b1 { background: var(--accent-orange); } .cs4-b2 { background: var(--accent-teal); }
.cs4-story h3 { margin: 0 0 10px; font-size: 1.3rem; color: var(--brand); }
.cs4-story p { margin:0; line-height:1.75; color:#4a4258; font-size: 1rem; }
.cs4-rh { margin: 0 0 18px; font-size: 1.3rem; color: var(--brand); }
.cs4-tiles { list-style:none; margin:0; padding:0; display:grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cs4-tile { display:flex; flex-direction:column; gap:4px; padding: 24px 22px; border-radius: 22px; background: #f8f5fc; }
.cs4-tile:nth-child(1) { background:#fdf0e9; } .cs4-tile:nth-child(2) { background:#fdebee; } .cs4-tile:nth-child(3) { background:#e9f5fa; } .cs4-tile:nth-child(4) { background:#e8f5ee; }
.cs4-ico { width:46px; height:46px; border-radius:50%; display:flex; align-items:center; justify-content:center; color:#fff; font-size:1.1rem; margin-bottom: 10px; background: var(--accent-orange); }
.cs4-tile:nth-child(2) .cs4-ico { background: var(--accent-pink); } .cs4-tile:nth-child(3) .cs4-ico { background: var(--accent-teal); } .cs4-tile:nth-child(4) .cs4-ico { background: var(--accent-green); }
.cs4-tile strong { color: var(--brand); font-size: 1.02rem; line-height:1.35; }
.cs4-tile > span:last-child { color:#5a516a; font-size:.92rem; line-height:1.45; }
@media (max-width: 1000px) {
  .cs4-top { grid-template-columns: 1fr; gap: 40px; } .cs4-photo { max-width: 380px; margin: 0 auto; }
  .cs4-story { grid-template-columns: 1fr; gap: 28px; margin: 48px 0 40px; }
  .cs4-story section { padding: 0 !important; border-left: 0 !important; }
  .cs4-tiles { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) { .cs4-tiles { grid-template-columns: 1fr; } .cs4-photo::before { inset: 14px -10px -14px 10px; } }

.cs4-story > .cs4-col { padding: 4px 40px 4px 0; background:none; box-shadow:none; border-radius:0; }
.cs4-story > .cs4-col + .cs4-col { padding: 4px 0 4px 40px; border-left: 2px solid #ece6f4; }
@media (max-width: 1000px) { .cs4-story > .cs4-col, .cs4-story > .cs4-col + .cs4-col { padding: 0; border-left: 0; } }

/* CASE STUDIES: index cards */
.csc-grid { display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 26px; margin: 0 0 56px; }
.csc { display:flex; flex-direction:column; background:#fff; border-radius: 24px; overflow:hidden; text-decoration:none; color:inherit; box-shadow: var(--yf-shadow-soft); transition: transform .2s ease, box-shadow .2s ease; }
.csc:hover { transform: translateY(-5px); box-shadow: var(--yf-shadow); }
.csc:focus-visible { outline: 3px solid var(--accent-orange); outline-offset: 4px; }
.csc-thumb { position:relative; display:flex; align-items:center; justify-content:center; gap:10px; padding: 26px 18px; background: var(--yf-glow), var(--yf-grad); overflow:hidden; }
.csc-thumb::before { content:""; position:absolute; right:-70px; top:-90px; width:220px; height:220px; border-radius:50%; border:2px solid rgba(255,255,255,.1); box-shadow: 0 0 0 26px rgba(255,255,255,.04); }
.csc-l { position:relative; z-index:1; display:flex; align-items:center; justify-content:center; border-radius: 14px; padding: 10px 12px; width: 41%; box-sizing: border-box; }
.csc-l img { display:block; width:100%; height:auto; }
.csc-l-hf { background:#fff; box-shadow: 0 8px 20px rgba(0,0,0,.2); }
.csc-l-yf { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.3); }
.csc-x { position:relative; z-index:1; width:34px; height:34px; border-radius:50%; flex:none; display:flex; align-items:center; justify-content:center; color:#fff; font-size:.85rem; background: var(--accent-orange); box-shadow: 0 4px 12px rgba(0,0,0,.25); }
.csc-body { display:flex; flex-direction:column; padding: 22px 24px 24px; flex:1; }
.csc-tag { align-self:flex-start; font-size: 11px; letter-spacing:.1em; text-transform:uppercase; font-weight:700; padding: 5px 11px; border-radius:30px; background: var(--brand-pale); color: var(--brand); margin-bottom: 12px; }
.csc h2 { font-size: 1.12rem; line-height:1.35; color: var(--brand); margin: 0 0 10px; }
.csc p { margin: 0 0 16px; font-size:.92rem; line-height:1.6; color:#4a4258; display:-webkit-box; -webkit-line-clamp:4; -webkit-box-orient:vertical; overflow:hidden; }
.csc-more { margin-top:auto; font-weight:700; font-size:.95rem; color: var(--accent-orange); }
.csc-more i { transition: transform .15s ease; margin-left:4px; }
.csc:hover .csc-more i { transform: translateX(4px); }
.csc-next { justify-content:center; align-items:center; text-align:center; background: var(--brand-pale); border: 2px dashed #cdbfe3; box-shadow:none; }
.csc-next .csc-plus { width:60px; height:60px; margin-top: 34px; border-radius:50%; display:flex; align-items:center; justify-content:center; background:#fff; color: var(--brand); font-size:1.3rem; box-shadow: var(--yf-shadow-soft); }
.csc-next .csc-body { align-items:center; }
@media (max-width: 1000px) { .csc-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 640px) { .csc-grid { grid-template-columns: 1fr; } }

/* CASE STUDY DETAIL */
.csd-banner { display:flex; align-items:center; justify-content:center; gap: 22px; padding: 34px 24px; border-radius: 28px; margin: 0 0 40px; background: var(--yf-glow), var(--yf-grad); box-shadow: var(--yf-shadow); position:relative; overflow:hidden; }
.csd-banner::before { content:""; position:absolute; right:-90px; top:-120px; width:340px; height:340px; border-radius:50%; border:2px solid rgba(255,255,255,.1); box-shadow: 0 0 0 40px rgba(255,255,255,.04), 0 0 0 80px rgba(255,255,255,.025); }
.csd-banner .csc-l { width: 300px; max-width: 38%; padding: 18px 22px; border-radius: 18px; }
.csd-banner .csc-x { width: 52px; height:52px; font-size:1.2rem; }
.csd-cols { display:grid; grid-template-columns: 1.55fr 1fr; gap: 40px; align-items:start; }
.csd-block { display:flex; gap: 20px; margin-bottom: 36px; }
.csd-badge { flex:none; width:56px; height:56px; border-radius:18px; display:flex; align-items:center; justify-content:center; color:#fff; font-size:1.3rem; }
.csd-b1 { background: var(--accent-orange); } .csd-b2 { background: var(--accent-teal); }
.csd-block h2 { margin: 2px 0 10px; font-size: 1.4rem; color: var(--brand); }
.csd-block p { margin:0; line-height:1.8; color:#3f3850; font-size: 1.02rem; }
.csd-side { display:flex; flex-direction:column; gap: 22px; position: sticky; top: 24px; }
.csd-card { background:#fff; border-radius: 24px; padding: 26px 26px 22px; box-shadow: var(--yf-shadow-soft); border-top: 5px solid var(--accent-green); }
.csd-card h2 { margin: 0 0 16px; font-size: 1.2rem; color: var(--brand); }
.csd-results { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap: 14px; }
.csd-results li { display:flex; gap: 14px; align-items:flex-start; font-size:.93rem; line-height:1.45; color:#4a4258; }
.csd-results strong { display:block; color: var(--brand); }
.csd-ico { flex:none; width:38px; height:38px; border-radius:50%; display:flex; align-items:center; justify-content:center; color:#fff; font-size:.95rem; background: var(--accent-orange); }
.csd-results li:nth-child(2) .csd-ico { background: var(--accent-pink); } .csd-results li:nth-child(3) .csd-ico { background: var(--accent-teal); } .csd-results li:nth-child(4) .csd-ico { background: var(--accent-green); }
.csd-quote { margin:0; padding: 28px 26px 24px; border-radius: 24px; background: var(--yf-grad); color:#fff; box-shadow: var(--yf-shadow); }
.csd-quote blockquote { margin:0; }
.csd-quote p { margin:0; font-size: .98rem; line-height:1.7; font-style: italic; color:#fff !important; }
.csd-quote figcaption { display:flex; align-items:center; gap:14px; margin-top: 20px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.2); line-height:1.35; }
.csd-quote figcaption > span { display:flex; flex-direction:column; }
.csd-quote figcaption strong { font-size: 1rem; }
.csd-quote figcaption span span { font-size:.85rem; color:#ffd9c2; }
.csd-avatar { width:60px; height:60px; border-radius:50%; object-fit:cover; object-position: 50% 18%; border: 3px solid rgba(255,255,255,.4); flex:none; }
.csd-nav { margin: 8px 0 0; }
.csd-back { display:inline-flex; align-items:center; gap:8px; font-weight:700; color: var(--brand); text-decoration:none; }
.csd-back:hover { color: var(--accent-orange); }
@media (max-width: 900px) { .csd-cols { grid-template-columns: 1fr; } .csd-side { position:static; } .csd-banner .csc-l { max-width: 40%; padding: 12px 14px; } .csd-banner { gap: 12px; padding: 24px 14px; } .csd-banner .csc-x { width:40px; height:40px; } }
.csd-avatar { width: 72px; height: 72px; object-position: 50% 50%; }


/* BOOKING FORM: compact layout so the whole form is visible after "See Booking Options" */
.booking-form-section { padding: 34px 36px 30px !important; margin: 20px 0 24px !important; }
.booking-form-section h2 { margin: 0 0 18px; }
.booking-form { gap: 14px; }
.booking-form .form-row { gap: 16px; }
.booking-form .form-group { gap: 6px; }
.booking-form .form-group label { font-size: .9rem; }
.booking-form .form-group input,
.booking-form .form-group select,
.booking-form .form-group textarea { padding: 10px 12px; }
.booking-form .form-group textarea { min-height: 84px; resize: vertical; }
.booking-form .bespoke-option { padding: 12px 16px; }
@media (max-width: 600px) { .booking-form-section { padding: 30px 18px 24px !important; } }


/* COURSE DETAIL PAGES: modern card layout (content stays in the page HTML) */
main .container > .course-section,
main .container > .course-section:nth-child(even) {
  margin: 0 0 22px !important; padding: 34px 38px !important;
  background: #fff !important; border: 1px solid #ece6f4 !important; border-radius: 22px !important;
  box-shadow: 0 8px 28px rgba(42,21,64,.06);
}
main .container > .course-section:nth-child(even) { background: linear-gradient(180deg, #faf7fd 0%, #fff 70%) !important; }
main .container > .course-section.booking-form-section { border: 0 !important; }
.course-section h2,
.course-section h2:hover { cursor: default; color: var(--brand) !important; transition: none; }
.course-section h2 { justify-content: flex-start; }
.course-section > h2 { border-left: 0 !important; padding: 0 !important; margin-bottom: 22px; display: flex; align-items: center; gap: 14px; }
.course-section > h2::before { content: ""; flex: 0 0 8px; align-self: stretch; min-height: 28px; border-radius: 4px; background: linear-gradient(180deg, var(--accent-orange), var(--accent-pink)); }

/* lists: clean rows with a small gradient dot, two columns on wide screens */
.course-section .course-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 36px; padding: 0; margin: 0; list-style: none; }
.course-section .course-list li { position: relative; padding: 13px 0 13px 24px; line-height: 1.5; border-bottom: 1px solid #efe9f6; }
.course-section .course-list li::before {
  content: ""; position: absolute; left: 2px; top: 22px; width: 9px; height: 9px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-orange), var(--accent-pink));
}

/* benefit cards */
.benefits-grid { gap: 18px; }
.benefit-card { text-align: left !important; background: #fff; border: 1px solid #ece6f4 !important; border-top: 1px solid #ece6f4 !important; padding: 24px !important; box-shadow: none !important; transition: transform .2s ease, box-shadow .2s ease; }
.benefit-card:hover { transform: translateY(-3px); box-shadow: var(--yf-shadow-soft) !important; }
.benefit-card > i { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 14px; background: var(--brand-pale); color: var(--brand) !important; font-size: 20px; margin: 0 0 14px !important; }
.benefit-card h3 { margin: 0 0 6px; }

/* price + contact row */
.course-booking-section { background: linear-gradient(180deg, #faf7fd 0%, #fff 80%) !important; }

@media (max-width: 760px) {
  main .container > .course-section,
  main .container > .course-section:nth-child(even) { padding: 24px 20px !important; border-radius: 18px !important; }
  .course-section .course-list { grid-template-columns: 1fr; }
}


/* OVERALL SCALE: sit 5% smaller than the browser default on desktop and tablet-landscape screens */
@media (min-width: 900px) { html { zoom: .95; } }


/* ABOUT US: same compact Armed Forces strip as the home page */
.ab-covenant .covenant-strip {
  display: flex; align-items: center; gap: 28px; text-align: left;
  margin: 34px auto 0; max-width: 880px; padding: 20px 26px;
  background: linear-gradient(135deg, #2A1540 0%, #4a2478 100%);
  border-radius: 20px; box-shadow: var(--yf-shadow); position: relative; overflow: hidden;
}
.ab-covenant .covenant-strip::before { content:""; position:absolute; left:0; top:0; bottom:0; width:5px; background: var(--yf-orange-grad, linear-gradient(#e16f38,#dc485f)); }
.ab-covenant .covenant-strip .covenant-logo { flex: 0 0 auto; width: 230px; max-width: 230px; margin: 0; padding: 8px 10px; background:#fff; border-radius: 12px; }
.ab-covenant .covenant-strip .covenant-logo img { display:block; width:100%; height:auto; max-height:none; }
.ab-covenant .covenant-copy { flex: 1 1 auto; min-width: 0; }
.ab-covenant .covenant-copy .covenant-kicker { display:block; font-size: 11px; letter-spacing:.14em; text-transform: uppercase; font-weight:700; color:#ffc9a8; margin: 0 0 4px; }
.ab-covenant .covenant-copy h3 { color:#fff; font-size: 1.15rem; line-height:1.3; margin: 0 0 6px; }
.ab-covenant .covenant-copy h3::after { display:none !important; }
.ab-covenant .covenant-copy p { color: rgba(255,255,255,.86) !important; font-size: 14px; max-width:none; margin: 0 0 10px; text-align:left; }
.ab-covenant .covenant-link { color:#fff; font-weight:700; font-size:14px; text-decoration:none; border-bottom:2px solid var(--accent-orange); padding-bottom:1px; }
.ab-covenant .covenant-link:hover { color:#ffc9a8; }
@media (max-width: 640px) {
  .ab-covenant .covenant-strip { flex-direction: column; text-align:center; padding: 20px 18px; gap: 16px; }
  .ab-covenant .covenant-strip .covenant-logo { width: 220px; }
  .ab-covenant .covenant-copy p { text-align:center; }
}
.ab-covenant { margin: 8px auto 0; max-width: var(--max-w, 1100px); padding: 0 20px; }
.ab-covenant .covenant-strip { max-width: 880px; margin: 0 auto; }
.ab-covenant .covenant-copy h2 { color: #fff; font-size: 1.15rem; line-height: 1.3; margin: 0 0 6px; padding: 0; border: 0; }
.ab-covenant .covenant-copy h2::after { display: none !important; }

/* Sign-up form messages */
.yf-form-msg { flex-basis: 100%; margin: 10px 0 0; padding: 10px 14px; border-radius: 10px; font-size: .92rem; line-height: 1.45; }
.yf-form-msg.is-ok { background: #e8f5ee; color: #1f6b45; }
.yf-form-msg.is-error { background: #fdecef; color: #a3283c; }
.art-subscribe form, .yf-mc-form { position: relative; }


/* FAQ page */
.faq-wrap { max-width: 860px; }
.faq-h { font-size: clamp(1.25rem, 2.6vw, 1.55rem); margin: 38px 0 14px; color: var(--brand); display: flex; align-items: center; gap: 12px; }
.faq-h::before { content: ""; flex: 0 0 8px; align-self: stretch; min-height: 24px; border-radius: 4px; background: linear-gradient(180deg, var(--accent-orange), var(--accent-pink)); }
.faq-list { display: grid; gap: 10px; }
.faq-item { background: #fff; border: 1px solid #ece6f4; border-radius: 16px; transition: box-shadow .2s ease, border-color .2s ease; }
.faq-item[open] { border-color: #d9cdeb; box-shadow: var(--yf-shadow-soft); }
.faq-item summary { list-style: none; cursor: pointer; padding: 18px 56px 18px 22px; font-weight: 600; color: var(--brand); line-height: 1.4; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; background: var(--brand-pale); color: var(--brand); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; font-weight: 500; }
.faq-item[open] summary::after { content: "\2212"; background: var(--brand); color: #fff; }
.faq-item summary:focus-visible { outline: 3px solid var(--accent-orange); outline-offset: 2px; border-radius: 16px; }
.faq-a { padding: 0 22px 20px; color: #4a3a60; line-height: 1.65; }
.faq-a p { margin: 0; }
.faq-a a { color: var(--brand); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.faq-wrap .cta-section { margin-top: 44px; }


/* NAV DROPDOWN: steady hover (no dead gap between the link and the menu) */
@media (min-width: 1041px) {
  .nav-dropdown .dropdown-menu {
    top: 100% !important; margin-top: 6px;
    transition: opacity .18s ease, visibility 0s linear .22s !important;
  }
  .nav-dropdown:hover .dropdown-menu,
  .nav-dropdown:focus-within .dropdown-menu {
    opacity: 1; visibility: visible; top: 100% !important;
    transition: opacity .18s ease, visibility 0s !important;
  }
  .nav-dropdown .dropdown-menu::before { content: ""; position: absolute; left: -12px; right: -12px; top: -14px; height: 14px; }
  .dropdown-menu a { white-space: nowrap; }
}

/* Accessibility statement */
.acc-wrap .acc-sec { margin-bottom: 8px; }
.acc-wrap .acc-sec p { line-height: 1.7; color: #4a3a60; margin: 0 0 12px; }
.acc-wrap .acc-sec a { color: var(--brand); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.acc-list { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 0; }
.acc-list li { position: relative; padding: 12px 0 12px 24px; border-bottom: 1px solid #efe9f6; line-height: 1.6; color: #4a3a60; }
.acc-list li::before { content: ""; position: absolute; left: 2px; top: 21px; width: 9px; height: 9px; border-radius: 50%; background: linear-gradient(135deg, var(--accent-orange), var(--accent-pink)); }

/* FAQ: answers always visible */
.faq-item { padding: 20px 24px; }
.faq-item .faq-q { margin: 0 0 8px; font-size: 1.05rem; font-weight: 600; color: var(--brand); line-height: 1.4; }
.faq-item .faq-a { padding: 0; }
.faq-item .faq-a p { margin: 0 0 8px; line-height: 1.7; color: #4a3a60; }
.faq-item .faq-a p:last-child { margin-bottom: 0; }

/* Open courses: filters and per-course colours */
.oc-filters { display: flex; flex-direction: column; gap: 14px; margin: 0 0 26px; padding: 0; background: none; border: 0; box-shadow: none; }
.oc-filter-group { display: block; }
.oc-filter-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.oc-chips { display: flex; gap: 8px; }
/* location: segmented control */
[data-oc-loc-chips] { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 4px; background: #efe9f7; border-radius: 16px; max-width: 100%; }
[data-oc-loc-chips] .oc-chip { padding: 9px 18px; background: transparent; border: 0; border-radius: 12px; color: #5b4a73; font-size: 14px; font-weight: 600; }
[data-oc-loc-chips] .oc-chip:hover { color: var(--brand); }
[data-oc-loc-chips] .oc-chip.is-active { background: #fff; color: var(--brand); box-shadow: 0 2px 8px rgba(42,21,64,.14); }
/* course: scrollable pill row */
[data-oc-course-chips] { overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
[data-oc-course-chips]::-webkit-scrollbar { display: none; }
[data-oc-course-chips] .oc-chip { flex: none; white-space: nowrap; background: #fff; border: 1.5px solid #e6def0; color: var(--charcoal); }
[data-oc-course-chips] .oc-chip:hover { border-color: var(--c, var(--brand)); }
[data-oc-course-chips] .oc-chip.is-active { background: var(--c, var(--brand)); border-color: var(--c, var(--brand)); color: #fff; }
.oc-chip { --c: var(--brand); display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; font: inherit; font-size: 14px; font-weight: 600; border-radius: 999px; cursor: pointer; transition: background .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease; }
.oc-chip:focus-visible { outline: 3px solid var(--accent-orange); outline-offset: 2px; }
.oc-chip-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c); flex: none; }
.oc-chip.is-active .oc-chip-dot { background: #fff; }
.oc-chip-count { font-size: 12px; font-weight: 600; opacity: .55; }
.oc-legend { flex-wrap: wrap; gap: 6px 16px; }
.oc-legend-item { display: inline-flex; align-items: center; gap: 8px; }
.oc-legend-item .oc-legend-swatch { background: var(--c); }
.oc-session-card { border-left: 5px solid var(--c, var(--accent-teal)); }
.oc-session-card.is-highlighted { border-color: var(--c, var(--accent-teal)); }
.oc-session-info h4 { display: flex; align-items: center; gap: 8px; }
.oc-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--c); flex: none; }
.oc-session-meta i { color: var(--c, var(--accent-teal)); }
@media (max-width: 640px) { [data-oc-loc-chips] { display: flex; } [data-oc-loc-chips] .oc-chip { flex: 1 1 auto; justify-content: center; padding: 9px 12px; font-size: 13px; } }

/* Header always sits above the page content below it, so the nav dropdowns are never covered by a page banner */
#site-header { position: relative; z-index: 200; }
@media (min-width: 1041px) { #site-header .topbar { position: relative; z-index: 5; } }

/* Form confirmation pop-up */
body.yf-modal-open { overflow: hidden; }
.yf-modal { position: fixed; inset: 0; z-index: 10050; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(32,16,52,.62); backdrop-filter: blur(3px); animation: yfFade .2s ease; }
.yf-modal-card { position: relative; width: min(480px, 100%); background: #fff; border-radius: 22px; padding: 38px 32px 30px; text-align: center; box-shadow: 0 30px 70px rgba(20,8,36,.45); animation: yfPop .26s cubic-bezier(.2,.9,.3,1.2); overflow: hidden; }
.yf-modal-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: linear-gradient(90deg, #c55322, #6b3a8f); }
.yf-modal-ico { width: 68px; height: 68px; margin: 0 auto 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 28px; color: #fff; background: linear-gradient(135deg, #3b1d59, #6b3a8f); box-shadow: 0 10px 24px rgba(59,29,89,.35); }
.yf-modal.is-error .yf-modal-ico { background: linear-gradient(135deg, #b32d3f, #d9534f); box-shadow: 0 10px 24px rgba(179,45,63,.3); }
.yf-modal-card h2 { margin: 0 0 10px; font-size: 1.45rem; line-height: 1.25; color: #2a1540; }
.yf-modal-card p { margin: 0 0 14px; color: #4a3a60; line-height: 1.6; }
.yf-modal-card .yf-modal-time { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; background: #f4eefa; color: #3b1d59; font-weight: 600; font-size: .92rem; margin-bottom: 22px; }
.yf-modal-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 6px; }
.yf-modal-btns .btn { min-width: 140px; justify-content: center; cursor: pointer; }
.yf-modal-btns .btn-ghost { color: #3b1d59; border: 2px solid #3b1d59; background: transparent; }
@keyframes yfFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes yfPop { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .yf-modal, .yf-modal-card { animation: none; } }

/* Thank-you page (shown only if the pop-up could not be used) */
.ty-wrap { text-align: center; padding: 8px 0 24px; }
.ty-ico { width: 84px; height: 84px; margin: -42px auto 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 34px; color: #fff; background: linear-gradient(135deg, #3b1d59, #6b3a8f); box-shadow: 0 12px 28px rgba(59,29,89,.35); border: 5px solid #fff; position: relative; }
.ty-card { max-width: 640px; margin: 0 auto 64px; background: #fff; border-radius: 22px; padding: 0 28px 34px; box-shadow: var(--yf-shadow, 0 14px 40px rgba(42,21,64,.12)); }
.ty-card h2 { margin: 0 0 10px; color: #2a1540; font-size: 1.5rem; }
.ty-card p { color: #4a3a60; line-height: 1.65; margin: 0 0 14px; }
.ty-time { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: #f4eefa; color: #3b1d59; font-weight: 600; margin: 4px 0 22px; }
.ty-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.ty-btns .btn-ghost { color: #3b1d59; border: 2px solid #3b1d59; }
.ty-wrap { padding-top: 60px; }
.ty-card a:not(.btn) { color: #c55322; text-decoration: underline; text-underline-offset: 3px; }

/* Category overview pages: intro and closing text under H2 headings */
.cat-intro { max-width: 820px; margin: 8px 0 26px; }
.cat-intro h2 { margin: 0 0 8px; font-size: clamp(1.3rem, 2.4vw, 1.7rem); line-height: 1.25; color: var(--brand, #3b1d59); }
.cat-intro p { margin: 0; color: #4a3a60; line-height: 1.65; }
.cat-intro a { color: #c55322; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.cat-outro { margin: 40px 0 40px; padding: 24px 26px; background: #f7f2fb; border-radius: 16px; max-width: none; }
