/* ============================================================
   HAC Programs Section — scoped styles
   Loads AFTER main.css. Reuses main.css tokens (--red, etc.).
   Brand rules: primary #ED1C24, dark-red #B5121F, tertiary #2A2E3A.
   NEVER use #2085E0 here (reserved for Strategy & Management).
   ============================================================ */

:root {
  --prog-red: #ed1c24;
  --prog-red-dark: #b5121f;
  --prog-ink: #2a2e3a;       /* tertiary dark — body/headers */
  --prog-line: #e0e0dd;
  --prog-deep: #0d1b2a;      /* near-black hero ink (matches --text-dark) */
  --prog-deep-2: #142536;    /* subtle lift for ink panels */
}

/* ── Page-level scope wrapper ───────────────────────────────── */
.programs-page { color: var(--prog-ink); }
.programs-page .red-bar { background: var(--prog-red); }

/* ── HERO (course + hub) ────────────────────────────────────── */
.prog-hero {
  position: relative;
  background: var(--prog-deep);
  color: #fff;
  overflow: hidden;
  border-top: 3px solid var(--prog-red);
}
/* faint structural depth — no consumer gradient */
.prog-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(105deg, #0a141f 0%, var(--prog-deep) 55%, var(--prog-deep-2) 100%);
  z-index: 0;
}
.prog-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10rem 2.5rem 5rem;
  position: relative;
  z-index: 2;
}
@media (max-width: 768px) { .prog-hero-inner { padding: 8rem 1.25rem 3.5rem; } }

/* ── Full-bleed image hero (photo + overlaid copy/logos) ─────── */
.prog-hero-image {
  min-height: 30rem;
  height: 34vw; max-height: 520px;
  padding: 0;
  display: flex; align-items: center;
}
.prog-hero-image::before { display: none; }   /* replaced by the image scrim below */
.prog-hero-image .prog-hero-vid {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}
/* subtle scrim: darken left (for white text) + a touch on the right (for logos) */
.prog-hero-image::after {
  content: '';
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(10,12,16,0.78) 0%, rgba(10,12,16,0.42) 34%, rgba(10,12,16,0.10) 58%, rgba(10,12,16,0.34) 100%);
}
/* content row — matches .container width/padding so both sides are symmetric */
.prog-hero-image-inner {
  position: relative; z-index: 2;
  width: 100%; max-width: 1440px; margin: 0 auto;
  padding: 0 2.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}
/* Left — heading, blurb, button (all left-aligned) */
.prog-hero-copy { max-width: 38rem; }
.prog-hero-copy h1 {
  font-size: clamp(1.9rem, 3.6vw, 3.2rem);
  font-weight: 700; letter-spacing: 0.01em; line-height: 1.05;
  text-transform: uppercase; color: #fff; white-space: nowrap;
  margin: 0 0 1.25rem;   /* single line */
}
.prog-hero-copy p {
  font-size: clamp(0.95rem, 1.15vw, 1.125rem);
  font-weight: 300; line-height: 1.6;
  color: rgba(255,255,255,0.9);
  margin: 0 0 1.85rem;   /* fills .prog-hero-copy → ~3 lines */
}
.prog-hero-copy .btn-prog { box-shadow: none; }
/* Right — "Accredited by" + Highfield + CPD logos.
   Label is left-aligned to the Highfield logo's left edge (align-items:flex-start). */
.prog-hero-accred {
  flex: none;
  display: flex; flex-direction: column; align-items: flex-start; gap: 1rem;
}
.prog-hero-accred-label {
  font-size: clamp(0.9rem, 1.15vw, 1.1rem); font-weight: 300;
  color: rgba(255,255,255,0.9);
}
.prog-hero-accred-logos { display: flex; align-items: center; gap: 2.25rem; }
.prog-hero-logo-highfield { height: clamp(4rem, 6vw, 6.5rem); width: auto; display: block; }
.prog-hero-logo-cpd { height: clamp(4.6rem, 7vw, 7.6rem); width: auto; display: block; }

@media (max-width: 900px) {
  .prog-hero-image { height: auto; min-height: 0; padding: 5.5rem 0 3rem; }
  .prog-hero-image-inner { flex-direction: column; align-items: flex-start; gap: 2.5rem; }
  .prog-hero-accred { align-items: flex-start; }
}
@media (max-width: 768px) {
  .prog-hero-image-inner { padding: 0 1.25rem; }
}

/* ── Compact hub hero (reference: Morson-style band) ────────── */
.prog-hero-compact .prog-hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  padding: 7rem 2.5rem 2.5rem;   /* top offset clears the fixed nav */
  min-height: 0;
}
.prog-hero-compact .prog-hero-text { max-width: 30rem; }
.prog-hero-compact h1 {
  font-size: clamp(2rem, 3.6vw, 3rem);
  margin-bottom: 1rem;
}
.prog-hero-compact .prog-hero-value { margin-bottom: 0; max-width: 38ch; }

/* Logo lockup: Highfield | HAC */
.prog-hero-logos {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-shrink: 0;
}
.prog-hero-logos .logo-highfield { height: 5rem; width: auto; }
.prog-hero-logos .logo-hac { height: 3.25rem; width: auto; }
.prog-hero-logos .logo-divider {
  width: 1px;
  height: 4.5rem;
  background: rgba(255,255,255,0.35);
  flex-shrink: 0;
}
@media (max-width: 860px) {
  .prog-hero-compact .prog-hero-inner { flex-direction: column; align-items: flex-start; gap: 2.25rem; }
  .prog-hero-logos { gap: 1.5rem; }
  .prog-hero-logos .logo-highfield { height: 4rem; }
  .prog-hero-logos .logo-hac { height: 2.75rem; }
  .prog-hero-logos .logo-divider { height: 3.5rem; }
}

.prog-hero-watermark {
  position: absolute;
  right: -2rem; bottom: -3rem;
  height: 22rem; width: auto;
  opacity: 0.07;
  z-index: 1;
  pointer-events: none;
}
.prog-eyebrow {
  display: inline-flex; align-items: center; gap: 0.85rem;
  font-size: 0.6875rem; font-weight: 500; letter-spacing: normal;
  text-transform: uppercase; color: rgba(255,255,255,0.72);
  margin-bottom: 1.75rem;
}
.prog-eyebrow .line { width: 2.25rem; height: 2px; background: var(--prog-red); opacity: 1; }

.prog-hero h1 {
  font-size: clamp(2.25rem, 4.5vw, 3.75rem);
  font-weight: 500; line-height: 1.08; letter-spacing: -0.03em;
  color: #fff; max-width: 20ch; margin-bottom: 1.5rem;
}
.prog-hero-value {
  font-size: 1.0625rem; font-weight: 300; line-height: 1.7;
  color: rgba(255,255,255,0.82); max-width: 46ch; margin-bottom: 2.5rem;
}

/* Highfield accreditation badge */
.accred-badge {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.22);
  padding: 0.5rem 0.95rem;
  font-size: 0.6875rem; font-weight: 500; letter-spacing: normal;
  text-transform: uppercase; color: rgba(255,255,255,0.9);
  margin-bottom: 1.75rem;
}
.accred-badge .dot { width: 6px; height: 6px; background: var(--prog-red); border-radius: 50%; }

/* ── Generic section frame ──────────────────────────────────── */
.prog-section { padding: 4.5rem 0; }
.prog-section.tight { padding: 3rem 0; }
.prog-section .container { max-width: 1200px; }
.prog-section-head { margin-bottom: 2.5rem; }
.prog-section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  letter-spacing: -0.02em; line-height: 1.2; color: var(--prog-ink);
}
.prog-section-head .red-bar { background: var(--prog-red); }
.prog-section-head .prog-lead { margin-top: 1rem; }
.prog-lead { font-size: 1.0625rem; font-weight: 300; color: var(--text-mid); line-height: 1.75; max-width: 60ch; }

/* Partnership block title (hub) */
.partnership-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  letter-spacing: -0.02em; line-height: 1.2;
  margin-bottom: 1.25rem; color: var(--prog-ink);
}

/* ── Cohort dates block ─────────────────────────────────────── */
.cohort-strip {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0; border-top: 2px solid var(--prog-red);
}
.cohort-card {
  padding: 1.75rem 1.5rem;
  border-right: 1px solid var(--prog-line);
  border-bottom: 1px solid var(--prog-line);
  background: #fff;
}
.cohort-card:last-child { border-right: none; }
.cohort-card.next { background: #fff7f7; }
.cohort-tag {
  font-size: 0.6rem; font-weight: 600; letter-spacing: normal; text-transform: uppercase;
  color: var(--prog-red); margin-bottom: 0.6rem;
}
.cohort-date { font-size: 1.25rem; font-weight: 500; letter-spacing: -0.01em; color: var(--prog-ink); }
.cohort-meta { font-size: 0.8125rem; font-weight: 300; color: var(--text-mid); margin-top: 0.35rem; }

/* Sub-heading inside two-col / standalone blocks */
.prog-col-head {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 0.5rem;
  color: var(--prog-ink);
}

/* Section-head spacing variants (replaces inline margins) */
.prog-section-head.head-sm { margin-bottom: 1.25rem; }
.prog-section-head.head-md { margin-bottom: 1.5rem; }

/* Off-white section background (replaces inline style) */
.prog-section.bg-soft { background: var(--off-white); }

/* ── "Who / What" two-col list ──────────────────────────────── */
.prog-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
@media (max-width: 768px) { .prog-cols { grid-template-columns: 1fr; gap: 2rem; } }
.prog-ticklist { list-style: none; padding: 0; margin: 1.25rem 0 0; }
.prog-ticklist li {
  position: relative; padding-left: 1.75rem; margin-bottom: 0.9rem;
  font-size: 0.95rem; font-weight: 300; color: var(--text-mid); line-height: 1.65;
}
.prog-ticklist li::before {
  content: ''; position: absolute; left: 0; top: 0.5rem;
  width: 0.6rem; height: 0.6rem; background: var(--prog-red);
}

/* ── Trainer credentials card ───────────────────────────────── */
.trainer-card {
  display: grid; grid-template-columns: 280px 1fr; gap: 0;
  background: var(--prog-ink); color: #fff; overflow: hidden;
}
@media (max-width: 768px) { .trainer-card { grid-template-columns: 1fr; } }
.trainer-photo { background: #1f222c; position: relative; min-height: 340px; }
.trainer-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.trainer-photo .ph {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 1.5rem; font-size: 0.75rem; letter-spacing: normal;
  color: rgba(255,255,255,0.4); text-transform: uppercase; line-height: 1.7;
}
.trainer-body { padding: 3rem; }
.trainer-body .role { font-size: 0.6875rem; font-weight: 500; letter-spacing: normal; text-transform: uppercase; color: rgba(255,255,255,0.6); margin-bottom: 0.75rem; }
.trainer-body h3 { font-size: 1.75rem; font-weight: 500; color: #fff; margin-bottom: 1.25rem; letter-spacing: -0.01em; }
.trainer-body p { font-size: 0.95rem; font-weight: 300; color: rgba(255,255,255,0.78); line-height: 1.75; margin-bottom: 1.5rem; }
.trainer-creds { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.trainer-creds span {
  font-size: 0.6875rem; font-weight: 400; letter-spacing: 0.04em;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.18);
  padding: 0.4rem 0.8rem; color: rgba(255,255,255,0.9);
}

/* ── Investment / pricing block ─────────────────────────────── */
.invest-block {
  background: #fff; border: 1px solid var(--prog-line);
  padding: 2.75rem; display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center;
}
@media (max-width: 768px) { .invest-block { grid-template-columns: 1fr; gap: 1.5rem; } }
.price-row { display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.price-old {
  font-size: 1.5rem; font-weight: 300; color: var(--text-light);
  text-decoration: line-through; text-decoration-color: var(--prog-red);
}
.price-now { font-size: 2.75rem; font-weight: 600; color: var(--prog-red); letter-spacing: -0.02em; line-height: 1; }
.price-vat { font-size: 0.8125rem; font-weight: 300; color: var(--text-mid); margin-top: 0.5rem; }
.intro-badge {
  display: inline-block; margin-top: 0.85rem;
  background: var(--prog-red); color: #fff;
  font-size: 0.625rem; font-weight: 600; letter-spacing: normal; text-transform: uppercase;
  padding: 0.35rem 0.7rem;
}

/* ── Refund policy callout ──────────────────────────────────── */
.refund-callout {
  background: var(--off-white); border-left: 3px solid var(--prog-red);
  padding: 1.75rem 2rem;
}
.refund-callout h4 { font-size: 0.6875rem; font-weight: 600; letter-spacing: normal; text-transform: uppercase; color: var(--prog-red); margin-bottom: 0.75rem; }
.refund-callout p { font-size: 0.95rem; font-weight: 300; color: var(--text-mid); line-height: 1.7; max-width: 70ch; }

/* ── Buttons (Programs CTA) ─────────────────────────────────── */
.btn-prog {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  background: var(--prog-red); color: #fff;
  font-size: 0.8125rem; font-weight: 500; letter-spacing: normal;
  padding: 0.95rem 1.85rem; text-decoration: none; border: none; cursor: pointer;
  transition: background 180ms ease;
}
.btn-prog:hover { background: var(--prog-red-dark); }
.prog-hero .btn-prog { box-shadow: none; }
.btn-prog-light { background: #fff; color: var(--prog-red-dark); }
.btn-prog-light:hover { background: rgba(255,255,255,0.9); }

/* ── FAQ ────────────────────────────────────────────────────── */
.faq-item { border-bottom: 1px solid var(--prog-line); }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  padding: 1.4rem 0; font-size: 1.0625rem; font-weight: 500; color: var(--prog-ink);
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-family: inherit;
}
.faq-q svg { width: 16px; height: 16px; flex-shrink: 0; stroke: var(--prog-red); transition: transform 240ms ease; }
.faq-item.open .faq-q svg { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 280ms ease; }
.faq-a-inner { padding: 0 0 1.4rem; font-size: 0.95rem; font-weight: 300; color: var(--text-mid); line-height: 1.75; max-width: 70ch; }

/* ── Placeholder marker (for content you'll provide) ────────── */
.ph-block {
  border: 1px dashed var(--prog-red); background: #fff8f8;
  padding: 1.25rem 1.5rem; color: var(--prog-red-dark);
  font-size: 0.8125rem; font-weight: 400; line-height: 1.6;
}
.ph-block strong { font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; font-size: 0.6875rem; display: block; margin-bottom: 0.4rem; }

/* ── Secondary CTA band (course pages) ──────────────────────── */
.prog-cta-band {
  background: var(--prog-deep);
  color: #fff;
  border-top: 3px solid var(--prog-red);
  text-align: center;
}
.prog-cta-band h2 {
  color: #fff; font-size: clamp(1.6rem, 3vw, 2.4rem);
  letter-spacing: -0.02em; margin-bottom: 1rem;
}
.prog-cta-band p {
  color: rgba(255,255,255,0.78); font-weight: 300;
  max-width: 48ch; margin: 0 auto 2rem; line-height: 1.7;
}

/* ── Hub: partnership + course cards ────────────────────────── */
.partnership-strip {
  background: var(--off-white); border-top: 1px solid var(--prog-line); border-bottom: 1px solid var(--prog-line);
}
.partnership-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
@media (max-width: 768px) { .partnership-inner { grid-template-columns: 1fr; } }

.partnership-roles { display: grid; gap: 1.25rem; }
.role-item { background: #fff; border-top: 2px solid var(--prog-ink); padding: 1.75rem 1.75rem 1.75rem 0; }
.role-item h4 { font-size: 0.6875rem; font-weight: 600; letter-spacing: normal; text-transform: uppercase; color: var(--prog-ink); margin-bottom: 0.7rem; }
.role-item h4::before { content: ''; display: inline-block; width: 1.5rem; height: 2px; background: var(--prog-red); vertical-align: middle; margin-right: 0.65rem; }
.role-item p { font-size: 0.95rem; font-weight: 300; color: var(--text-mid); line-height: 1.65; }

/* Footnotes + inline links */
.prog-footnote { margin-top: 2rem; font-size: 0.8125rem; font-weight: 300; color: var(--text-mid); }
.prog-inline-link { color: var(--prog-red); text-decoration: none; border-bottom: 1px solid var(--prog-red); transition: color 160ms ease, border-color 160ms ease; }
.prog-inline-link:hover { color: var(--prog-red-dark); border-color: var(--prog-red-dark); }

/* ── Why HAC — accreditation pillars ────────────────────────── */
.why-hac {
  background: #f7f7f8;
  border-top: 1px solid var(--prog-line);
  border-bottom: 1px solid var(--prog-line);
}
.why-hac-head { max-width: none; margin-bottom: 3rem; }
.why-hac-eyebrow {
  display: inline-block;
  font-size: 0.6875rem; font-weight: 600; letter-spacing: normal;
  text-transform: uppercase; color: var(--prog-red); margin-bottom: 1rem;
}
.why-hac-head h2 {
  font-size: clamp(1.5rem, 3.4vw, 2.6rem);
  font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; color: var(--prog-ink);
  margin-bottom: 1rem; white-space: nowrap;
}
.why-hac-sub {
  font-size: 1.0625rem; font-weight: 300; color: var(--text-mid); line-height: 1.7;
}

/* Three-column pillar grid with subtle navy dividers */
.why-pillars {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 2.75rem;
}
.why-pillar { position: relative; }
.why-pillar + .why-pillar::before {
  content: ''; position: absolute; left: -1.375rem; top: 0.25rem; bottom: 0.25rem;
  width: 1px; background: rgba(42, 46, 58, 0.14);
}
@media (max-width: 768px) {
  .why-pillars { grid-template-columns: 1fr; gap: 2.5rem; }
  .why-pillar + .why-pillar::before { display: none; }
}

/* Pillar icons — monochrome line glyphs.
   Row height reserves space for the tallest icon (the certificate thumbnail)
   so all three headings align on the same baseline. */
.why-pillar-icon { display: flex; align-items: center; height: 7rem; margin-bottom: 1.5rem; }
.why-pillar-icon svg { width: 2.25rem; height: 2.25rem; color: var(--prog-red); }
.why-pillar-icon-navy svg { color: var(--prog-ink); }

/* Pillar 2 — HAC certificate sample thumbnail */
.why-pillar-cert img {
  height: 7rem; width: auto; display: block;
  border: 1px solid var(--prog-line);
  box-shadow: 0 6px 18px rgba(13,27,42,0.08);
}

/* Pillar 3 — HAC trainer headshots (overlapping avatar row) */
.why-pillar-trainers { align-items: center; }
.why-pillar-trainers img {
  width: 4.75rem; height: 4.75rem; border-radius: 50%;
  object-fit: cover; display: block;
}
.why-pillar-trainers img + img { margin-left: -1.15rem; }   /* overlap */

/* Pillar 1 — Highfield + CPD mini-logo lockup */
.why-pillar-logos { gap: 1.25rem; }
.why-pillar-logos img { height: 3rem; width: auto; display: block; }
.why-logo-divider { width: 1px; height: 2.25rem; background: rgba(42, 46, 58, 0.18); }

.why-pillar h3 {
  font-size: 1.375rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.25;
  color: var(--prog-ink); margin-bottom: 0.85rem;
}
.why-pillar p {
  font-size: 1rem; font-weight: 300; color: var(--text-mid); line-height: 1.7;
}

/* Optional full-width credentials strip */
.why-hac-strip {
  margin-top: 3rem; padding-top: 1.75rem;
  border-top: 1px solid var(--prog-line);
  font-size: 0.8125rem; font-weight: 400; letter-spacing: 0.02em;
  color: var(--text-mid); text-align: center;
}

/* ════════════════════════════════════════════════════════════════
   COURSE CATALOGUE — Section 3 (filter bar + uniform card grid)
   ════════════════════════════════════════════════════════════════ */

.catalogue-head { max-width: 60ch; margin-bottom: 2rem; }
.catalogue-eyebrow {
  display: inline-block;
  font-size: 0.6875rem; font-weight: 600; letter-spacing: normal;
  text-transform: uppercase; color: var(--prog-red); margin-bottom: 1rem;
}
.catalogue-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 500; letter-spacing: -0.02em; line-height: 1.2;
  color: var(--prog-ink); margin-bottom: 0.85rem;
}
.catalogue-sub { font-size: 1.0625rem; font-weight: 300; color: var(--text-mid); line-height: 1.7; }

/* ── Filter bar — sticky navy band below the nav ──────────────── */
.catalogue-filters {
  position: sticky; top: 0; z-index: 40;
  background: #0d0d0d;
  border-top: 3px solid var(--prog-red);
  padding: 1.5rem 1.75rem 1.25rem;
  margin-bottom: 2.5rem;
  display: flex; flex-direction: column; gap: 1rem;
}
.filter-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; }
.filter-row-primary { gap: 0.75rem; }
.filter-row-search { margin-bottom: 0.25rem; }

/* ── Search field (sits on the dark filter band) ──────────────── */
.filter-row-search { width: 100%; }
.catalogue-search {
  position: relative;
  display: flex; align-items: center;
  width: 100%; max-width: 30rem;
}
.catalogue-search .catalogue-search-icon {
  position: absolute; left: 0.95rem; top: 50%;
  transform: translateY(-50%);
  width: 1.05rem; height: 1.05rem;
  flex: none;
  color: rgba(255, 255, 255, 0.5);
  pointer-events: none;
}
.catalogue-search-input {
  width: 100%;
  font-family: inherit; font-size: 0.875rem; font-weight: 400; letter-spacing: 0.01em;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 2rem;
  padding: 0.6rem 2.5rem 0.6rem 2.6rem;
  transition: border-color 180ms ease, background 180ms ease;
}
.catalogue-search-input::placeholder { color: rgba(255, 255, 255, 0.55); }
.catalogue-search-input:focus {
  outline: none;
  border-color: var(--prog-red);
  background: rgba(255, 255, 255, 0.12);
}
/* hide the native clear control; we use our own */
.catalogue-search-input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.catalogue-search-clear {
  position: absolute; right: 0.55rem;
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.6rem; height: 1.6rem;
  background: transparent; border: none; cursor: pointer;
  color: rgba(255, 255, 255, 0.7); border-radius: 50%;
  transition: background 160ms ease, color 160ms ease;
}
.catalogue-search-clear:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }
.catalogue-search-clear svg { width: 0.85rem; height: 0.85rem; }
@media (max-width: 768px) { .catalogue-search { max-width: 100%; } }
.filter-row-secondary { padding-top: 0.25rem; }
.filter-label {
  font-size: 0.625rem; font-weight: 600; letter-spacing: normal; text-transform: uppercase;
  color: rgba(255,255,255,0.5); margin-right: 0.5rem;
}

/* Primary stream pills */
.fpill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: inherit; font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.01em;
  background: transparent; color: #fff;
  border: 1px solid rgba(255,255,255,0.28);
  padding: 0.55rem 1.05rem; cursor: pointer; border-radius: 2rem;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}
.fpill:hover { border-color: rgba(255,255,255,0.6); }
.fpill .fpill-meta { font-size: 0.6875rem; font-weight: 400; color: rgba(255,255,255,0.55); }
.fdot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.fdot-red { background: var(--prog-red); }
.fdot-blue { background: #2085e0; }
/* qualification-level dots: L4 red · L3 silver · L2 bronze */
.fdot-silver { background: linear-gradient(145deg, #e6e8ea, #a9adb2); }
.fdot-bronze { background: linear-gradient(145deg, #d9a679, #a9743f); }
/* active: filled with stream colour. Red is the default for all/iso/food-safety. */
.fpill.is-active { background: var(--prog-red); border-color: var(--prog-red); color: #fff; }
.fpill.is-active .fpill-meta { color: rgba(255,255,255,0.85); }
/* on the red active fill the metallic dots read as broken — use a clean solid
   white dot with a subtle ring instead so the label stays legible */
.fpill.is-active .fdot { background: #fff; box-shadow: 0 0 0 2px rgba(255,255,255,0.35); }
/* leadership pill fills blue when active */
.fpill[data-value="leadership"].is-active { background: #2085e0; border-color: #2085e0; }

/* Secondary chips */
.fchip {
  font-family: inherit; font-size: 0.75rem; font-weight: 500; letter-spacing: 0.02em;
  background: transparent; color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.22);
  padding: 0.35rem 0.85rem; cursor: pointer; border-radius: 2rem;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}
.fchip:hover { border-color: rgba(255,255,255,0.5); }
.fchip.is-active { background: #fff; color: var(--prog-ink); border-color: #fff; }

/* ── Card grid — uniform height, 3/2/1 columns ────────────────── */
.catalogue-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
  align-items: stretch;
}
@media (max-width: 1024px) { .catalogue-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .catalogue-grid { grid-template-columns: 1fr; } }

.cat-card {
  position: relative;
  display: flex; flex-direction: column;
  background: #f4f4f5;
  overflow: hidden;
  transition: box-shadow 220ms ease, transform 220ms ease;
}
.cat-card:hover { box-shadow: 0 14px 36px rgba(13,27,42,0.12); transform: translateY(-3px); }

/* ── Image — full bleed top, angled corner cut (bottom-right) ── */
.cat-card-media {
  display: block; position: relative;
  aspect-ratio: 16 / 10;          /* matches the 800×500 export */
  background: #e4e4e6;            /* shows while image is empty/loading */
  overflow: hidden;
  /* notched bottom-right corner, as in the reference */
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 2.25rem), calc(100% - 2.25rem) 100%, 0 100%);
}
.cat-card-media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 400ms ease;
}
.cat-card:hover .cat-card-media img { transform: scale(1.04); }

/* ── Body ── */
.cat-card-body {
  flex: 1 1 auto;
  display: flex; flex-direction: column;
  padding: 1.75rem 1.75rem 1.85rem;
}
.cat-card h3 {
  font-size: 1.375rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.25;
  color: var(--prog-ink); margin-bottom: 1rem;
}
.cat-card h3 a {
  color: inherit; text-decoration: none;
  transition: color 160ms ease;
}
.cat-card h3 a:hover { color: var(--prog-red); }

.cat-card p {
  font-size: 0.95rem; font-weight: 300; color: var(--text-mid); line-height: 1.6;
  margin: 0 0 1.75rem;
  flex: 1 1 auto;                  /* pushes the buttons to the bottom */
}

/* ── Action buttons (Course Details + View Dates) ── */
.cat-actions { display: flex; gap: 0.85rem; flex-wrap: nowrap; }
.cat-btn {
  flex: 1 1 0; min-width: 0;            /* share the row equally, never wrap */
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.9375rem; font-weight: 500; letter-spacing: 0.01em;
  padding: 0.85rem 1rem; text-decoration: none; cursor: pointer;
  white-space: nowrap;
  /* notched corners, matching the reference buttons */
  clip-path: polygon(0 0, calc(100% - 0.7rem) 0, 100% 0.7rem, 100% 100%, 0.7rem 100%, 0 calc(100% - 0.7rem));
  transition: background 180ms ease, color 180ms ease;
}
.cat-btn-ghost { background: #fff; color: var(--prog-ink); }
.cat-btn-ghost:hover { background: #ececed; }
.cat-btn-go { background: var(--prog-red); color: #fff; }
.cat-btn-go:hover { background: var(--prog-red-dark); }
/* "Coming soon" — non-interactive placeholder for parked courses */
.cat-btn-soon { background: #e4e4e2; color: #8a8d94; cursor: default; pointer-events: none; }
/* parked cards read as inactive: dim the media + title, no hover lift */
.cat-card.is-soon .cat-card-media img { filter: grayscale(0.35); }
.cat-card.is-soon:hover .cat-card-media img { transform: none; }
.cat-card.is-soon h3 { color: var(--prog-ink); }

/* Hidden by filter */
.cat-card[hidden] { display: none; }

/* Empty state — spans full grid */
.catalogue-empty {
  grid-column: 1 / -1;
  text-align: center; padding: 3.5rem 1.5rem;
  border: 1px dashed var(--prog-line); background: var(--off-white);
}
.catalogue-empty h3 { font-size: 1.25rem; font-weight: 500; color: var(--prog-ink); margin-bottom: 0.65rem; }
.catalogue-empty p { font-size: 0.95rem; font-weight: 300; color: var(--text-mid); line-height: 1.7; max-width: 46ch; margin: 0 auto 1.75rem; }
@media (max-width: 768px) {
  .catalogue-filters { padding: 1.25rem 1.25rem 1rem; margin-left: -1.25rem; margin-right: -1.25rem; }
}

/* ── Payment result pages ───────────────────────────────────── */
.pay-result { min-height: 70vh; display: flex; align-items: center; justify-content: center; padding: 8rem 1.5rem 4rem; }
.pay-result-inner { max-width: 540px; text-align: center; }
.pay-icon { width: 72px; height: 72px; margin: 0 auto 2rem; display: flex; align-items: center; justify-content: center; border-radius: 50%; }
.pay-icon.ok { background: #eafaf0; }
.pay-icon.ok svg { stroke: #1a9e54; }
.pay-icon.fail { background: #fdecec; }
.pay-icon.fail svg { stroke: var(--prog-red); }
.pay-result h1 { font-size: clamp(1.75rem, 3vw, 2.5rem); letter-spacing: -0.02em; margin-bottom: 1rem; color: var(--prog-ink); }
.pay-result p { font-size: 1rem; font-weight: 300; color: var(--text-mid); line-height: 1.75; margin-bottom: 2rem; }
.pay-result .btn-row { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── Checkout page ──────────────────────────────────────────── */
.checkout-back {
  margin-left: auto; font-size: 0.8125rem; font-weight: 500; color: var(--text-mid);
  text-decoration: none; letter-spacing: 0.02em;
}
.checkout-back:hover { color: var(--prog-red); }
.checkout-wrap { max-width: 1080px; margin: 0 auto; padding: 8rem 2rem 5rem; }
.checkout-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 3.5rem; align-items: start; }
@media (max-width: 820px) { .checkout-grid { grid-template-columns: 1fr; gap: 2.5rem; } }

.checkout-form-col h1 { font-size: clamp(1.6rem, 3vw, 2.25rem); letter-spacing: -0.02em; margin-bottom: 0.4rem; }
.checkout-sub { font-size: 0.95rem; color: var(--text-mid); font-weight: 300; margin-bottom: 2rem; }

.field { margin-bottom: 1.25rem; }
.field label { display: block; font-size: 0.75rem; font-weight: 500; letter-spacing: normal; text-transform: uppercase; color: var(--prog-ink); margin-bottom: 0.5rem; }
.field label .opt { color: var(--text-light); text-transform: none; letter-spacing: 0; font-weight: 300; }
.field input, .field select {
  width: 100%; font-family: inherit; font-size: 0.95rem; color: var(--prog-ink);
  padding: 0.8rem 0.9rem; border: 1px solid var(--prog-line); background: #fff;
  border-radius: 0; transition: border-color 180ms ease;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--prog-red); }
.field-row { display: grid; grid-template-columns: 120px 1fr; gap: 1rem; }

.form-error { color: var(--prog-red-dark); font-size: 0.875rem; font-weight: 400; margin: 0 0 1rem; }
.checkout-pay { width: 100%; justify-content: center; padding: 1.05rem; font-size: 0.9375rem; margin-top: 0.5rem; }
.checkout-pay:disabled { opacity: 0.7; cursor: wait; transform: none; }
.checkout-secure { display: flex; align-items: center; gap: 0.5rem; justify-content: center; font-size: 0.75rem; font-weight: 300; color: var(--text-light); margin-top: 1rem; }
.checkout-secure svg { stroke: var(--text-light); }

.checkout-summary { background: var(--off-white); border: 1px solid var(--prog-line); padding: 2rem; position: sticky; top: 7rem; }
@media (max-width: 820px) { .checkout-summary { position: static; } }
.checkout-summary h2 { font-size: 0.75rem; font-weight: 600; letter-spacing: normal; text-transform: uppercase; color: var(--prog-ink); margin-bottom: 1.5rem; }
.summary-course { display: flex; flex-direction: column; gap: 0.3rem; padding-bottom: 1.25rem; margin-bottom: 1.25rem; border-bottom: 1px solid var(--prog-line); }
.summary-course .lvl { font-size: 0.6875rem; font-weight: 600; letter-spacing: normal; text-transform: uppercase; color: var(--prog-red); }
.summary-course .nm { font-size: 1.125rem; font-weight: 500; color: var(--prog-ink); }
.summary-lines { display: flex; flex-direction: column; gap: 0.75rem; }
.sline { display: flex; justify-content: space-between; font-size: 0.9375rem; font-weight: 300; color: var(--text-mid); }
.sline.total { margin-top: 0.75rem; padding-top: 1rem; border-top: 1px solid var(--prog-line); font-weight: 600; color: var(--prog-ink); font-size: 1.0625rem; }
.sline.total span:last-child { color: var(--prog-red); }
.summary-refund { margin-top: 1.75rem; padding-top: 1.5rem; border-top: 1px solid var(--prog-line); }
.summary-refund h4 { font-size: 0.6875rem; font-weight: 600; letter-spacing: normal; text-transform: uppercase; color: var(--prog-red); margin-bottom: 0.6rem; }
.summary-refund p { font-size: 0.8125rem; font-weight: 300; color: var(--text-mid); line-height: 1.65; }

/* The [hidden] attribute must always win over display rules below
   (e.g. .confirming display:flex), or hidden checkout states still show. */
.programs-page [hidden] { display: none !important; }

/* ── Return / confirming page ───────────────────────────────── */
.confirming { min-height: 60vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 8rem 1.5rem; }
.spinner { width: 38px; height: 38px; border: 3px solid var(--prog-line); border-top-color: var(--prog-red); border-radius: 50%; margin: 0 auto 1.5rem; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Sticky reserve bar (course pages, mobile) ──────────────── */
.reserve-bar {
  position: sticky; bottom: 0; z-index: 50;
  background: #fff; border-top: 1px solid var(--prog-line);
  padding: 1rem 1.5rem; display: none;
  justify-content: space-between; align-items: center; gap: 1rem;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.08);
}
.reserve-bar .rb-price { font-size: 0.8125rem; font-weight: 300; color: var(--text-mid); }
.reserve-bar .rb-price strong { display: block; font-size: 1.125rem; font-weight: 600; color: var(--prog-red); }
@media (max-width: 768px) { .reserve-bar { display: flex; } }
