/* ============================================================
   Second Career Training — Block child theme (Hello Elementor)
   Adapted from the static-site stylesheet so block markup using
   the original class names renders identically. Includes the
   scoped header/footer styles and block-compat mappings.
   ============================================================ */

:root {
  --red: #D80621;
  --red-dark: #A30416;
  --red-deep: #7C0210;
  --ink: #17171C;
  --ink-2: #43434C;
  --muted: #67676F;
  --line: #E9E6E2;
  --paper: #FFFFFF;
  --wash: #FAF8F6;
  --tint: #FCF0F1;
  --tint-2: #F8E1E4;
  --ring: rgba(216, 6, 33, 0.30);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-soft: 0 14px 36px rgba(23, 23, 28, 0.09);
  --shadow-lift: 0 18px 44px rgba(23, 23, 28, 0.13);
  --radius-card: 16px;
  --radius-input: 12px;
  --radius-panel: 24px;
  --head-h: 72px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Outfit", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip; /* decorative art (rings, CN Tower, skyline) bleeds off-canvas */
}

::selection { background: var(--red); color: #fff; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
p { margin: 0; }

:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 4px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.sct-svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.sct-content-anchor { display: block; height: 0; outline: none; }

.sct-skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 100001;
  padding: 10px 18px; border-radius: 999px;
  background: var(--red); color: #fff;
  font-size: 0.92rem; font-weight: 600; text-decoration: none;
}
.sct-skip-link:focus {
  left: 16px; outline: 2px solid #fff; outline-offset: 2px;
  box-shadow: 0 0 0 4px var(--red);
}

/* ---------- layout ---------- */

.wrap { max-width: 1180px; margin-inline: auto; padding-inline: clamp(20px, 4vw, 32px); }

.section { padding-block: clamp(64px, 8.5vw, 104px); }
.section-tight { padding-block: clamp(48px, 6vw, 72px); }

.band-wash { background: var(--wash); }
.band-tint { background: var(--tint); }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }

/* Grid items may shrink below their content's min-content width: without
   this the intrinsic size of grid-column images (minmax(auto, 1fr) tracks)
   blows the layout wider than the viewport and the page scrolls sideways
   on tablets. */
.grid-2 > *, .grid-3 > *, .hero-in > *, .split > *, .spot-grid > *,
.prog-grid > *, .steps > *, .stats-grid > *, .ws-grid > *, .video-grid > *,
.check-grid > *, .join-wrap > *, .foot-top > *, .ws-featured > *,
.cert-strip > *, .value-grid > *, .benefit-grid > *, .cta-split > * { min-width: 0; }

.sec-head { max-width: 660px; margin-bottom: clamp(36px, 5vw, 56px); }
.sec-head h2, .sec-head .wp-block-heading {
  font-size: clamp(1.8rem, 3.1vw, 2.45rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.12;
}
.sec-head p { margin-top: 14px; color: var(--muted); max-width: 58ch; }
.sec-head.on-red h2, .sec-head.on-red .wp-block-heading, .sec-head.on-red p { color: #fff; }
.sec-head.on-red p { color: rgba(255, 255, 255, 0.82); }

/* ---------- type helpers ---------- */

.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--red); margin-bottom: 16px;
}
.kicker::before { content: ""; width: 22px; height: 2px; background: var(--red); border-radius: 2px; }

.lead { color: var(--muted); font-size: 1.11rem; max-width: 58ch; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 26px; border-radius: 999px;
  font-size: 0.98rem; font-weight: 600; letter-spacing: 0.01em;
  white-space: nowrap; border: 1.5px solid transparent;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease),
              color 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn i { font-size: 1.15em; }

.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); box-shadow: 0 10px 26px rgba(216, 6, 33, 0.30); }

.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #000; }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }

.btn-white { background: #fff; color: var(--red); }
.btn-white:hover { background: #FFEDEF; }

.btn-sm { padding: 10px 20px; font-size: 0.92rem; }
.btn-lg { padding: 15px 32px; font-size: 1.03rem; }

/* ---------- chips & icon discs ---------- */

.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 14px; border-radius: 999px;
  font-size: 0.82rem; font-weight: 600;
  background: var(--tint); color: var(--red-dark);
}
.chip i { font-size: 1.05em; }
.chip p { margin: 0; }
.chip-outline { background: #fff; border: 1px solid var(--line); color: var(--ink-2); }

.icon-disc {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 999px;
  background: var(--tint); color: var(--red);
  font-size: 1.5rem; flex: none;
}
.icon-disc i { font-size: 1.5rem; }
.icon-disc.solid { background: var(--red); color: #fff; }
.icon-disc.lg { width: 64px; height: 64px; font-size: 1.9rem; }

/* ---------- topbar ---------- */

.topbar { background: var(--red); color: #fff; font-size: 0.88rem; }
.topbar-in {
  display: flex; align-items: center; justify-content: space-between; gap: 10px 16px;
  padding-block: 9px; flex-wrap: wrap;
}
.topbar-note { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.topbar-note i { font-size: 1.1em; }
.topbar-contact { display: flex; gap: 8px 22px; flex-wrap: wrap; margin-left: auto; }
.topbar-contact a, .topbar-contact-text { display: inline-flex; align-items: center; gap: 7px; opacity: 0.95; white-space: nowrap; }
.topbar-contact a:hover { opacity: 1; text-decoration: underline; }
.topbar-contact i { font-size: 1.05em; flex: none; }

/* ---------- header / nav (PHP fallback) ---------- */

.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s var(--ease);
}
.admin-bar .site-head { top: 32px; }

/* Sticky on block templates: a sticky element can never move past its
   parent's box, and .site-head is wrapped in the short template-part
   <header>. So the part wrapper itself is the sticky element. The
   negative top equals the red top-bar height (measured into
   --sct-topbar-h by theme.js), letting the top bar scroll away while
   the white bar pins to the viewport edge. Falls back to 0 = whole
   part sticks when JS is off. The sticky .site-head above remains for
   the PHP fallback header (Elementor pages), where it is a direct
   child of <body>. */
.wp-site-blocks > header.wp-block-template-part {
  position: sticky;
  top: calc(-1 * var(--sct-topbar-h, 0px));
  z-index: 50;
}
body.admin-bar .wp-site-blocks > header.wp-block-template-part {
  top: calc(32px - var(--sct-topbar-h, 0px));
}
.wp-site-blocks > header.wp-block-template-part.sct-stuck .site-head {
  box-shadow: 0 12px 32px rgba(23, 23, 28, 0.12);
}
/* In-page anchors (e.g. #join) must not hide under the pinned bar */
.site-main [id] { scroll-margin-top: calc(var(--head-h) + 20px); }

.head-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: var(--head-h); }

.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.brand-leaf { width: 30px; height: 30px; color: var(--red); flex: none; }
/* Site Identity logo (sct/brand): height-capped so wide lockups fit the bar */
.brand .sct-brand-logo {
  display: block; width: auto; max-width: 240px;
  max-height: clamp(36px, 4.5vw, 48px); height: auto;
}
.brand-name { font-size: 1.28rem; font-weight: 700; letter-spacing: -0.02em; }
.brand-name--light { color: #fff; }

.nav { display: flex; align-items: center; gap: clamp(16px, 2vw, 26px); }
.nav a {
  font-size: 0.95rem; font-weight: 500; color: var(--ink-2);
  padding-block: 6px; position: relative; white-space: nowrap;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0;
  height: 2px; background: var(--red); border-radius: 2px;
  transition: right 0.3s var(--ease);
}
.nav a:hover, .nav a.active { color: var(--ink); }
.nav a:hover::after, .nav a.active::after { right: 0; }

.head-cta { display: flex; align-items: center; gap: 14px; flex: none; }
.nav-toggle { display: none; font-size: 1.7rem; line-height: 1; padding: 6px; color: var(--ink); }

.m-nav { border-top: 1px solid var(--line); background: #fff; padding: 18px clamp(20px, 4vw, 32px) 26px; }
.m-nav a {
  display: block; padding: 12px 4px; font-size: 1.05rem; font-weight: 600;
  border-bottom: 1px solid var(--line); color: var(--ink-2);
}
.m-nav a.active, .m-nav a:hover { color: var(--red); }
.m-nav .btn { margin-top: 18px; width: 100%; display: inline-flex; justify-content: center; padding: 13px 26px; }

/* ---------- home hero ---------- */

.hero { overflow: hidden; }
.hero-in {
  display: grid; grid-template-columns: 1.04fr 0.96fr; gap: clamp(36px, 5vw, 60px);
  align-items: center; padding-block: clamp(48px, 6.5vw, 88px) clamp(56px, 7vw, 92px);
}
.hero h1, .hero .wp-block-heading {
  font-size: clamp(2.45rem, 4.9vw, 3.8rem);
  font-weight: 750; line-height: 1.06; letter-spacing: -0.028em;
}
.hero h1 em, .hero .wp-block-heading em { font-style: normal; color: var(--red); white-space: nowrap; }
.hero .lead { margin-top: 20px; }
.hero-ctas { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }

.hero-art {
  position: relative; min-height: 380px; height: 100%;
  border-radius: var(--radius-panel);
  background: linear-gradient(155deg, #FDF2F3 8%, var(--tint-2) 55%, #F3D4D9 100%);
  overflow: hidden;
}
.hero-art .leaf-big {
  position: absolute; right: -12%; bottom: -18%;
  width: 78%; height: auto; color: var(--red); opacity: 0.16;
}
.hero-art .leaf-solid {
  position: absolute; left: 10%; top: 14%;
  width: 64px; height: 64px; color: var(--red);
}
.hero-art .ring {
  position: absolute; border: 1.5px solid rgba(216, 6, 33, 0.18); border-radius: 999px;
}
.hero-art .ring.r1 { width: 300px; height: 300px; left: -90px; top: -90px; }
.hero-art .ring.r2 { width: 190px; height: 190px; right: 16%; top: 34%; border-color: rgba(216, 6, 33, 0.12); }
.hero-art .dots {
  position: absolute; left: 12%; bottom: 12%;
  width: 120px; height: 76px;
  background-image: radial-gradient(rgba(216, 6, 33, 0.35) 1.6px, transparent 1.6px);
  background-size: 18px 18px;
}

/* trust strip under hero */

.trust { border-block: 1px solid var(--line); background: #fff; }
.trust-in {
  display: flex; align-items: center; justify-content: space-between;
  gap: 22px; padding-block: 22px; flex-wrap: wrap;
}
.trust-item { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; font-size: 0.98rem; }
.trust-item i { color: var(--red); font-size: 1.5rem; flex: none; }
.trust-copy { display: block; }
.trust-copy p { margin: 0; }
.trust-copy .trust-sub { font-weight: 400; color: var(--muted); font-size: 0.88rem; }

/* ---------- stats band ---------- */

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.stat { padding: 10px 26px; border-left: 1px solid var(--line); }
.stat:first-child, .stat:first-of-type { border-left: 0; padding-left: 0; }
.stat-num {
  font-size: clamp(2.1rem, 3.4vw, 2.9rem); font-weight: 800;
  letter-spacing: -0.03em; color: var(--red); line-height: 1.1; font-variant-numeric: tabular-nums;
}
.stat-label { color: var(--muted); font-size: 0.95rem; margin-top: 6px; }

/* ---------- cards ---------- */

.card {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-card); padding: 26px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: transparent; }
.card h3, .card .wp-block-heading {
  font-size: 1.14rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.3;
}
.card p { color: var(--muted); font-size: 0.96rem; margin-top: 8px; }
.card .chip { margin-bottom: 16px; }
.card-icon-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.card-arrow {
  color: var(--red); font-size: 1.3rem; opacity: 0; transform: translateX(-6px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.card:hover .card-arrow { opacity: 1; transform: translateX(0); }
.card-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }

.card-cta { margin-top: 12px; }
.card-cta a { color: var(--red); font-weight: 600; font-size: 0.95rem; }
.card-cta a:hover { text-decoration: underline; }

.program-media {
  position: relative; overflow: hidden; border-radius: 12px;
  aspect-ratio: 16 / 9; margin-bottom: 20px; background: var(--tint);
}
.program-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.55s var(--ease);
}
.program-media .wp-block-image { height: 100%; }
.program-media .icon-disc {
  position: absolute; left: 14px; bottom: 14px;
  width: 44px; height: 44px; border: 3px solid #fff;
  box-shadow: 0 8px 20px rgba(23, 23, 28, 0.16);
}
.card:hover .program-media img { transform: scale(1.035); }

/* featured program card (wide) */
.card-featured {
  display: grid; grid-template-columns: 320px 1fr; gap: 26px; align-items: center;
  background: linear-gradient(140deg, var(--tint) 0%, #fff 65%);
}
.card-featured .art {
  align-self: stretch; height: auto; min-height: 190px; width: 100%; aspect-ratio: auto;
  margin-bottom: 0; border-radius: 12px;
  background: var(--tint);
}
.card-featured h3, .card-featured .card-body .wp-block-heading { font-size: 1.4rem; }
.card-featured .card-body { display: block; }
.card-featured .chip { display: inline-flex; margin-bottom: 16px; }
.card-featured .card-arrow { position: absolute; right: 24px; bottom: 24px; }

.spot-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px;
}
.spot-grid .card-featured { grid-column: 1 / -1; }
[id] { scroll-margin-top: 92px; }
.meta-line { display: flex; gap: 14px; align-items: center; color: var(--ink-2); font-size: 0.88rem; margin-top: 12px; flex-wrap: wrap; }
.meta-line span, .meta-item { display: inline-flex; align-items: center; gap: 6px; }
.meta-line i, .meta-item i { color: var(--red); }
.meta-item p { margin: 0; }

/* ---------- steps ---------- */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; }
.step .step-head { display: flex; align-items: center; gap: 12px; }
.step .step-head i { color: var(--red); font-size: 1.6rem; flex: none; }
.step .step-head h3, .step .step-head .wp-block-heading {
  font-size: 1.5rem; font-weight: 750; letter-spacing: -0.02em; margin: 0;
}
.step p { color: var(--muted); margin-top: 10px; max-width: 34ch; }
.step:not(:last-child) { position: relative; }
.step:not(:last-child)::after {
  content: ""; position: absolute; right: -24px; top: 16px;
  width: 16px; height: 2px; background: var(--tint-2); border-radius: 2px;
}

/* ---------- split rows (zigzag, max 2) ---------- */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 5vw, 64px); align-items: center; }
.split + .split { margin-top: clamp(56px, 7vw, 84px); }
.split.flip .split-art { order: 2; }
.split-art {
  /* width: 100% pins the art to its grid track; without it the
     min-height transfers through the aspect ratio into a 320px*5/3 =
     533px width that overflows the track and scrolls the page sideways
     between 961px and ~1134px viewports. */
  width: 100%;
  border-radius: var(--radius-panel); min-height: 320px; aspect-ratio: 5 / 3;
  background: var(--tint); position: relative; overflow: hidden;
}
.split-art img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.split-art .wp-block-image { height: 100%; }
.split:hover .split-art img { transform: scale(1.025); }
.split-copy h2, .split-copy .wp-block-heading {
  font-size: clamp(1.7rem, 2.8vw, 2.3rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15;
}
.split-copy > p { color: var(--muted); margin-top: 14px; }
.tick-list { margin-top: 22px; display: grid; gap: 12px; }
.tick-list span, .tick-item { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; font-size: 0.99rem; }
.tick-list i, .tick-item i { color: var(--red); font-size: 1.25rem; margin-top: 2px; flex: none; }
.tick-item p { margin: 0; }
.split-copy .btn { margin-top: 28px; }
.split-copy .wp-block-buttons { margin-top: 28px; }

/* ---------- red band (workshops teaser / CTA) ---------- */

.band-red {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%); color: #fff;
}
.band-red .tower-mark {
  position: absolute; left: clamp(40px, 8vw, 140px); bottom: -0.9%; top: auto; /* scales with band height: ~3px on the CTA band, ~6px on the taller workshops band */
  height: 100%; width: auto; /* full band height - the base always sits on the ground */
  opacity: 0.5; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 18%, #000 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 18%, #000 100%);
}
@media (max-width: 782px) {
  /* mobile: move the tower to the right so it does not sit behind the text;
     cap its height so very tall bands (stacked rows) keep it modest */
  .band-red .tower-mark {
    left: auto; right: clamp(10px, 5vw, 48px);
    height: min(100%, 340px); opacity: 0.4;
  }
}
.band-red .wrap { position: relative; z-index: 1; }

/* Decorative art on the workshops band only: layered city skyline rising on
   the right + maple leaves accent. Red-on-red cutouts, kept behind the
   content (.wrap z-index 1). Other band-red sections (page CTAs) stay clean. */
.band-workshops::before {
  content: ""; position: absolute; right: 0; bottom: -1px;
  width: min(52%, 660px); aspect-ratio: 1928 / 816;
  background: url("../img/city-skyline-layered.png") right bottom / 100% 100% no-repeat;
  opacity: 0.55; pointer-events: none;
}
.band-workshops::after {
  content: ""; position: absolute; right: clamp(20px, 4vw, 64px); top: clamp(18px, 3vw, 42px);
  width: clamp(120px, 14vw, 220px); aspect-ratio: 1536 / 1024;
  background: url("../img/maple-leaves-trio.png") center / 100% 100% no-repeat;
  opacity: 0.9; pointer-events: none;
}
@media (max-width: 782px) {
  .band-workshops::before { width: 58%; opacity: 0.4; }
  .band-workshops::after { width: 108px; right: 14px; top: 12px; opacity: 0.75; }
}
.session-row {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  background: rgba(255, 255, 255, 0.10); border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-card); padding: 18px 22px; flex-wrap: wrap;
}
.session-row + .session-row { margin-top: 14px; }
.session-when {
  display: inline-flex; align-items: center; gap: 10px; font-weight: 700; white-space: nowrap;
}
.session-when i { font-size: 1.3rem; }
.session-when p { margin: 0; }
.session-row h3, .session-row .wp-block-heading { font-size: 1.06rem; font-weight: 600; margin: 0; }
.band-red .session-row .chip { background: rgba(255, 255, 255, 0.14); color: #fff; margin-bottom: 0; }

.cta-split { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.cta-split h2, .cta-split .wp-block-heading {
  font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 750; letter-spacing: -0.025em; line-height: 1.12;
}
.cta-split p { color: rgba(255, 255, 255, 0.85); margin-top: 10px; }
.cta-split .note { font-size: 0.92rem; }

/* ---------- testimonials ---------- */

/* Slider shell: heading row carries the subtle prev/next controls */
.quote-top {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 18px; flex-wrap: wrap;
}
.quote-nav { display: flex; gap: 8px; flex: none; padding-bottom: 6px; }
.quote-nav[hidden] { display: none; }
.quote-btn {
  width: 38px; height: 38px; border-radius: 999px; padding: 0; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid var(--line); color: var(--muted);
  font-size: 1.05rem; line-height: 1; cursor: pointer;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.quote-btn:hover { color: var(--red); border-color: var(--red); background: var(--tint-2); }
.quote-btn:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

.quote-track {
  /* card width in % (not vw) so the mobile centering padding matches exactly */
  display: grid; grid-auto-flow: column; grid-auto-columns: min(400px, 82%);
  gap: 22px; overflow-x: auto;
  scrollbar-width: none; /* autoscroll slider - the bar is hidden */
  scroll-behavior: smooth; /* JS drives the positions; no CSS snap so smooth scrolls are not re-snapped */
}
.quote-track::-webkit-scrollbar { display: none; }
.quote-track:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) {
  .quote-track { scroll-behavior: auto; }
}
/* Mobile: the active card always sits centered. Fixed symmetric side
   padding + a card width of (track - both paddings) keep every position —
   first, middle, and last — exactly centered, and the slider's card-step
   scroll math stays linear (step = card + gap). */
@media (max-width: 600px) {
  .quote-track { grid-auto-columns: 100%; padding-inline: 28px; }
}
.quote-card { scroll-snap-align: start; display: flex; flex-direction: column; gap: 18px; }
.quote-card .wp-block-quote {
  margin: 0; font-size: 1.03rem; line-height: 1.55; color: var(--ink-2);
}
.quote-card .wp-block-quote p { margin: 0; }
.quote-who { display: flex; align-items: center; gap: 13px; margin-top: auto; }
.avatar {
  display: flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 999px; flex: none;
  background: var(--tint-2); color: var(--red-dark);
  font-weight: 700; font-size: 0.95rem; letter-spacing: 0.02em;
}
.quote-meta { display: block; }
.quote-name { font-size: 0.97rem; font-weight: 700; }
.quote-role { color: var(--muted); font-size: 0.87rem; }

/* ---------- page hero (subpages) ---------- */

.page-hero { background: var(--wash); border-bottom: 1px solid var(--line); }
.page-hero-in { padding-block: clamp(52px, 7vw, 84px); max-width: 780px; }
.page-hero h1 {
  font-size: clamp(2.2rem, 4.2vw, 3.2rem); font-weight: 750;
  line-height: 1.08; letter-spacing: -0.028em;
}
.page-hero h1 em { font-style: normal; color: var(--red); white-space: nowrap; }
.page-hero .lead { margin-top: 18px; }
.page-hero .hero-ctas { margin-top: 28px; }

/* ---------- program filter ---------- */

.filter-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 34px; }
.filter-btn {
  padding: 9px 20px; border-radius: 999px; border: 1.5px solid var(--line);
  font-size: 0.92rem; font-weight: 600; color: var(--ink-2); background: #fff;
  transition: all 0.25s var(--ease);
}
.filter-btn:hover { border-color: var(--red); color: var(--red); }
.filter-btn.active { background: var(--red); border-color: var(--red); color: #fff; }

.prog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.prog-grid .card.is-hidden { display: none; }
.skill-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.skill-tags span {
  font-size: 0.8rem; font-weight: 600; color: var(--ink-2);
  background: var(--wash); border: 1px solid var(--line);
  padding: 4px 12px; border-radius: 999px;
}

/* certificate strip */
.cert-strip {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 56px); align-items: center;
  border: 1px solid var(--line); border-radius: var(--radius-panel); padding: clamp(28px, 4vw, 44px);
  background: linear-gradient(135deg, #fff 55%, var(--tint));
}
.cert-strip h2 { font-size: clamp(1.5rem, 2.5vw, 2rem); font-weight: 700; letter-spacing: -0.02em; }
.cert-chips { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.cert-chips span {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--tint-2); color: var(--red-dark);
  font-weight: 600; font-size: 0.9rem; padding: 9px 18px; border-radius: 999px;
}
.cert-chips i { color: var(--red); }

/* ---------- job readiness editorial rows ---------- */

.svc-rows { border-top: 1px solid var(--line); }
.svc-row {
  display: grid; grid-template-columns: 64px 1fr auto; gap: 24px; align-items: center;
  padding-block: clamp(24px, 3.4vw, 34px); border-bottom: 1px solid var(--line);
  position: relative; transition: background 0.25s var(--ease);
}
.svc-row:hover { background: var(--wash); }
.svc-row h3 { font-size: 1.3rem; font-weight: 700; letter-spacing: -0.015em; }
.svc-row p { color: var(--muted); margin-top: 6px; max-width: 60ch; font-size: 0.98rem; }
.svc-row .card-arrow { position: static; opacity: 1; transform: none; font-size: 1.6rem; }
.svc-row:hover .card-arrow { transform: translateX(4px); }

.check-band { border-radius: var(--radius-panel); padding: clamp(30px, 4.5vw, 52px); }
.check-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 36px; margin-top: 28px; }
.check-grid li { display: flex; gap: 13px; align-items: flex-start; font-weight: 500; }
.check-grid li i { color: var(--red); font-size: 1.3rem; margin-top: 3px; flex: none; }

/* ---------- workshops page ---------- */

.ws-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.ws-card { display: flex; flex-direction: column; }
.ws-card .top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.ws-media {
  position: relative; overflow: hidden; aspect-ratio: 16 / 9;
  border-radius: 12px; margin-bottom: 18px; background: var(--tint);
}
.ws-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.55s var(--ease);
}
.ws-card:hover .ws-media img { transform: scale(1.035); }
.ws-meta { display: flex; gap: 18px; margin-top: auto; padding-top: 18px; }
.ws-meta span { display: inline-flex; align-items: center; gap: 7px; font-size: 0.88rem; color: var(--ink-2); }
.ws-meta i { color: var(--red); font-size: 1.15rem; }
.ws-card .btn { margin-top: 20px; align-self: flex-start; }
.ws-featured { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; }
.ws-featured .art {
  border-radius: 12px; min-height: 210px; margin-bottom: 0;
  background: var(--tint); position: relative; overflow: hidden;
}

.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.value-item { text-align: left; }
.value-item i { font-size: 1.9rem; color: var(--red); }
.value-item h3 { font-size: 1.05rem; font-weight: 700; margin-top: 12px; }
.value-item p { color: var(--muted); font-size: 0.92rem; margin-top: 6px; }

/* ---------- membership ---------- */

.join-wrap { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(36px, 5vw, 64px); align-items: start; }
.join-copy h1 {
  font-size: clamp(2.2rem, 4.2vw, 3.2rem); font-weight: 750; line-height: 1.08; letter-spacing: -0.028em;
}
.join-copy h1 em { font-style: normal; color: var(--red); white-space: nowrap; }
.join-copy .lead { margin-top: 18px; }
.join-points { margin-top: 30px; display: grid; gap: 14px; }
.join-points li { display: flex; gap: 13px; align-items: flex-start; font-weight: 500; }
.join-points i { color: var(--red); font-size: 1.3rem; margin-top: 2px; }

.form-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-panel);
  padding: clamp(26px, 3.5vw, 40px); box-shadow: var(--shadow-soft);
}
.form-card h2 { font-size: 1.3rem; font-weight: 700; }
.form-card .form-sub { color: var(--muted); font-size: 0.94rem; margin: 6px 0 24px; }

.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.f-block { margin-bottom: 16px; }
.f-block label { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 7px; }
.f-block label .req { color: var(--red); }
.f-block input, .f-block select, .f-block textarea {
  width: 100%; font: inherit; font-size: 0.97rem; color: var(--ink);
  background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--radius-input);
  padding: 12px 15px; transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.f-block textarea { resize: vertical; min-height: 96px; }
.f-block input:focus, .f-block select:focus, .f-block textarea:focus {
  outline: none; border-color: var(--red); box-shadow: 0 0 0 3px var(--ring);
}
.f-block input::placeholder, .f-block textarea::placeholder { color: #9B9BA3; }
.f-block .hint { font-size: 0.82rem; color: var(--muted); margin-top: 6px; }

/* branded select dropdowns (shell styles apply without JS; the JS
   enhancement in membership-form.js swaps in a button + listbox) */
.sct-select-shell { position: relative; display: block; }
.sct-select-shell select {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  padding-right: 44px; cursor: pointer;
}
.sct-select-shell::after {
  content: ""; position: absolute; right: 17px; top: 50%;
  width: 9px; height: 9px;
  border-right: 2px solid var(--red); border-bottom: 2px solid var(--red);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.sct-select-shell.is-enhanced::after { display: none; }
.sct-select-shell.is-enhanced .sct-select-native-hidden {
  position: absolute; width: 1px; height: 1px; margin: 0; padding: 0; border: 0;
  opacity: 0; pointer-events: none;
}
.sct-select-btn {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; font: inherit; font-size: 0.97rem; text-align: left;
  color: var(--ink);
  background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--radius-input);
  padding: 12px 15px; cursor: pointer;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.sct-select-btn:focus-visible {
  outline: none; border-color: var(--red); box-shadow: 0 0 0 3px var(--ring);
}
/* Hello Elementor's reset.css paints every button red on :hover/:focus
   (0,1,1) — out-compete it so the dropdown control stays on-brand. */
.sct-select-shell .sct-select-btn:hover,
.sct-select-shell .sct-select-btn:focus,
.sct-select-shell .sct-select-btn:active {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--line);
}
.sct-select-shell .sct-select-btn:focus-visible {
  outline: none; border-color: var(--red); box-shadow: 0 0 0 3px var(--ring);
}
.sct-select-btn .sct-select-value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sct-select-btn.is-placeholder .sct-select-value { color: #9B9BA3; }
.sct-select-caret {
  flex: none; width: 9px; height: 9px;
  border-right: 2px solid var(--red); border-bottom: 2px solid var(--red);
  transform: rotate(45deg) translate(-1px, -1px);
  transition: transform 0.2s var(--ease);
}
.sct-select-btn[aria-expanded="true"] .sct-select-caret { transform: rotate(-135deg) translate(-2px, -2px); }
.sct-select-shell.sct-select-invalid .sct-select-btn { border-color: var(--red); }
.sct-mb-has-error .sct-select-btn { border-color: var(--red); }

.sct-select-list {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30;
  margin: 0; padding: 6px; list-style: none;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow-soft);
  max-height: 264px; overflow: auto;
  opacity: 0; transform: translateY(-6px);
  transition: opacity 0.16s var(--ease), transform 0.16s var(--ease);
}
.sct-select-list.is-open { opacity: 1; transform: none; }
.sct-select-list.is-up { top: auto; bottom: calc(100% + 6px); transform: translateY(6px); }
.sct-select-list.is-up.is-open { transform: none; }
.sct-select-option {
  padding: 9px 14px; border-radius: 8px;
  font-size: 0.95rem; color: var(--ink); cursor: pointer;
}
.sct-select-option:hover, .sct-select-option.is-active { background: var(--tint); color: var(--red-dark); }
.sct-select-option[aria-selected="true"] { background: var(--red); color: #fff; font-weight: 600; }
.sct-select-option[aria-selected="true"]:hover, .sct-select-option[aria-selected="true"].is-active { background: var(--red-dark); }

@media (prefers-reduced-motion: reduce) {
  .sct-select-list, .sct-select-caret { transition: none; }
}
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.87rem; color: var(--muted); }
.consent input { width: 17px; height: 17px; margin-top: 3px; accent-color: var(--red); flex: none; }
.form-card .btn { width: 100%; margin-top: 22px; }

.form-success { display: none; text-align: center; padding: 30px 10px; }
.form-success.show { display: block; }
.form-success i { font-size: 3rem; color: var(--red); }
.form-success h3 { margin-top: 14px; font-size: 1.25rem; }
.form-success p { color: var(--muted); margin-top: 8px; }

/* membership form: honeypot, validation errors, thank-you panel */

.sct-hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.sct-mb-alert {
  background: var(--tint); border: 1px solid var(--tint-2); border-radius: var(--radius-input);
  padding: 12px 16px; font-size: 0.92rem; color: var(--ink); margin: 0 0 18px;
}
.f-error-msg { color: var(--red); font-size: 0.85rem; margin: 6px 0 0; }
.sct-mb-has-error input, .sct-mb-has-error select, .sct-mb-has-error textarea { border-color: var(--red); }

.sct-mb-form { transition: opacity 0.32s var(--ease), transform 0.32s var(--ease); }
.sct-mb-form.sct-mb-out { opacity: 0; transform: translateY(-14px); pointer-events: none; }

/* Thank-you panel: hidden by default, revealed by the form JS (.is-in) after
   a fetch success, or by the #join-thanks fragment (:target) after the no-JS
   admin-post redirect. Markup is server-rendered inside the form card. */
.sct-mb-thanks { display: none; text-align: center; padding: clamp(24px, 4vw, 44px) 10px; }
.sct-mb-thanks.is-in, .sct-mb-thanks:target { display: block; }
.form-card:has(.sct-mb-thanks:target) .sct-mb-form { display: none; }
.sct-mb-thanks-leaf { width: clamp(76px, 9vw, 116px); height: auto; margin-inline: auto; color: var(--red); }
.sct-mb-thanks h3 { margin-top: 18px; font-size: clamp(1.5rem, 2.6vw, 1.9rem); font-weight: 750; letter-spacing: -0.02em; }
.sct-mb-thanks h3:focus { outline: none; }
.sct-mb-thanks p { color: var(--muted); margin-top: 10px; }
.sct-mb-thanks-top {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 24px;
  font-weight: 600; font-size: 0.95rem; color: var(--red); text-decoration: none;
}
.sct-mb-thanks-top:hover { text-decoration: underline; }

.sct-mb-thanks.is-in .sct-mb-thanks-leaf {
  animation: sct-mb-leaf-in 0.7s var(--ease) both, sct-mb-leaf-float 5s ease-in-out 1s infinite;
}
.sct-mb-thanks.is-in h3 { animation: sct-mb-rise 0.55s var(--ease) 0.28s both; }
.sct-mb-thanks.is-in p, .sct-mb-thanks.is-in .sct-mb-thanks-top { animation: sct-mb-rise 0.55s var(--ease) 0.44s both; }

@keyframes sct-mb-leaf-in {
  0% { transform: scale(0.3) rotate(-14deg); opacity: 0; }
  60% { transform: scale(1.08) rotate(3deg); opacity: 1; }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}
@keyframes sct-mb-leaf-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}
@keyframes sct-mb-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .sct-mb-form, .sct-mb-form.sct-mb-out { transition: none; }
  .sct-mb-thanks.is-in .sct-mb-thanks-leaf,
  .sct-mb-thanks.is-in h3,
  .sct-mb-thanks.is-in p,
  .sct-mb-thanks.is-in .sct-mb-thanks-top { animation: none; }
}

.benefit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.benefit-card { padding: 28px; border-radius: var(--radius-card); background: #fff; border: 1px solid var(--line); }
.benefit-card.tinted { background: var(--tint); border-color: var(--tint-2); }
.benefit-card.solid { background: var(--red); border-color: var(--red); color: #fff; }
.benefit-card.solid h3 { color: #fff; }
.benefit-card.solid p { color: rgba(255, 255, 255, 0.85); }
.benefit-card h3 { font-size: 1.1rem; font-weight: 700; margin-top: 16px; }
.benefit-card p { color: var(--muted); font-size: 0.94rem; margin-top: 8px; }

/* FAQ */
.faq-list { max-width: 780px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-card); background: #fff; }
.faq-item + .faq-item { margin-top: 14px; }
.faq-item summary {
  list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 20px 24px; font-weight: 600; font-size: 1.05rem; cursor: pointer;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary i { color: var(--red); font-size: 1.3rem; transition: transform 0.3s var(--ease); flex: none; }
.faq-item[open] summary i { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 24px 22px; color: var(--muted); max-width: 62ch; }

/* ---------- newcomers timeline ---------- */

.timeline { position: relative; max-width: 760px; }
.timeline::before {
  content: ""; position: absolute; left: 27px; top: 18px; bottom: 18px;
  width: 2px; background: var(--tint-2);
}
.tl-item { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 26px; padding-bottom: clamp(30px, 4vw, 44px); }
.tl-item:last-child { padding-bottom: 0; }
.tl-item .icon-disc { position: relative; z-index: 1; background: #fff; border: 2px solid var(--tint-2); }
.tl-item:hover .icon-disc { background: var(--red); color: #fff; border-color: var(--red); }
.tl-item h3 { font-size: 1.28rem; font-weight: 700; letter-spacing: -0.015em; padding-top: 10px; }
.tl-item p { color: var(--muted); margin-top: 6px; max-width: 56ch; }

.quote-band {
  border-radius: var(--radius-panel); padding: clamp(34px, 5vw, 60px);
  background: linear-gradient(135deg, var(--tint), #fff);
  border: 1px solid var(--tint-2);
}
.quote-band blockquote {
  font-size: clamp(1.2rem, 2.2vw, 1.5rem); line-height: 1.5; font-weight: 500;
  color: var(--ink); max-width: 30em; letter-spacing: -0.01em;
}
.quote-band .quote-who { margin-top: 22px; }

/* ---------- vlog gallery ---------- */

.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.video-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-card); overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.video-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.video-thumb {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(150deg, #26374A, #17171C);
}
.video-card:nth-child(3n+2) .video-thumb { background: linear-gradient(150deg, var(--red), var(--red-dark)); }
.video-card:nth-child(3n) .video-thumb { background: linear-gradient(150deg, var(--ink-2), var(--ink)); }
.video-thumb::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.10) 1.4px, transparent 1.4px);
  background-size: 16px 16px;
}
.video-thumb .video-ep {
  position: absolute; left: 12px; top: 12px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em;
  color: #fff; background: rgba(0, 0, 0, 0.4); padding: 3px 10px; border-radius: 999px;
}
.video-thumb .video-play {
  position: relative; z-index: 1;
  width: 60px; height: 60px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.15); border: 1.5px solid rgba(255, 255, 255, 0.55);
  color: #fff; font-size: 1.6rem;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.video-card:hover .video-play {
  transform: scale(1.1); background: var(--red); border-color: var(--red);
}
.video-thumb .video-duration {
  position: absolute; right: 12px; bottom: 12px;
  font-size: 0.78rem; font-weight: 600; color: #fff;
  background: rgba(0, 0, 0, 0.6); padding: 3px 9px; border-radius: 7px;
}
.video-info { padding: 18px 20px 20px; }
.video-info h3 { font-size: 1.05rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.35; }
.video-info p { color: var(--muted); font-size: 0.88rem; margin-top: 6px; }
.video-more { text-align: center; margin-top: 34px; }
.video-thumb.photo img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; transition: transform 0.55s var(--ease);
}
.video-card:hover .video-thumb.photo img { transform: scale(1.04); }
.video-ep i { font-size: 1em; }

/* ---------- footer ---------- */

.footer {
  position: relative; overflow: hidden;
  background: #26374A; color: rgba(255, 255, 255, 0.78);
}
.foot-skyline {
  position: absolute; right: 0; bottom: 0;
  width: min(62%, 900px); height: auto;
  pointer-events: none;
}
/* Footer decor: maple leaves on both sides, dimmed for the navy background
   (left one mirrored, grounded in the empty bottom-left corner). */
.footer::before {
  content: ""; position: absolute; left: clamp(16px, 4vw, 72px); bottom: clamp(16px, 3vw, 44px);
  width: clamp(120px, 15vw, 230px); aspect-ratio: 1536 / 1024;
  background: url("../img/maple-leaves-trio.png") center / 100% 100% no-repeat;
  transform: scaleX(-1);
  opacity: 0.2; pointer-events: none;
}
.footer::after {
  content: ""; position: absolute; right: clamp(16px, 4vw, 72px); top: clamp(16px, 3vw, 44px);
  width: clamp(120px, 15vw, 230px); aspect-ratio: 1536 / 1024;
  background: url("../img/maple-leaves-trio.png") center / 100% 100% no-repeat;
  opacity: 0.2; pointer-events: none;
}
@media (max-width: 782px) {
  .footer::before { width: 96px; left: 14px; bottom: 56px; opacity: 0.16; }
  .footer::after { width: 96px; right: 14px; top: 14px; opacity: 0.16; }
}
.footer-in { position: relative; z-index: 1; padding-block: clamp(44px, 6vw, 64px) 0; }
.foot-top { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.foot-brand .brand-name, .footer .brand .brand-name { color: #fff; }
.foot-brand p { margin-top: 14px; font-size: 0.95rem; max-width: 36ch; color: rgba(255, 255, 255, 0.62); }
.foot-social { display: flex; gap: 10px; margin-top: 20px; }
.foot-social a, .foot-social .wp-social-link {
  width: 40px; height: 40px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent; color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-size: 1.15rem;
  transition: all 0.25s var(--ease);
}
.foot-social .wp-social-link svg { width: 20px; height: 20px; }
.foot-social a:hover, .foot-social .wp-social-link:hover { background: var(--red); border-color: var(--red); color: #fff; }
.foot-col h4, .foot-col .wp-block-heading { color: #fff; font-size: 0.95rem; font-weight: 700; margin-bottom: 16px; }
.foot-col a { display: block; padding-block: 6px; font-size: 0.94rem; color: rgba(255, 255, 255, 0.72); }
.foot-col a:hover { color: #fff; }
.foot-col p { font-size: 0.94rem; padding-block: 6px; display: flex; gap: 10px; align-items: flex-start; }
.foot-col p i { color: var(--red); margin-top: 4px; flex: none; }
.foot-bottom {
  margin-top: clamp(36px, 5vw, 52px); border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-block: 22px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: 0.86rem; color: rgba(255, 255, 255, 0.5);
}
.foot-bottom span, .foot-bottom p { display: inline-block; padding-block: 0; }
.foot-tagline { color: rgba(255, 255, 255, 0.5); }

/* ---------- contact list (Contact Row block) ---------- */

.sct-contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.sct-contact-item {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.94rem; line-height: 1.55; color: rgba(255, 255, 255, 0.78);
}
.sct-contact-item i {
  color: var(--red); font-size: 1.15rem; line-height: 1;
  height: calc(0.94rem * 1.55);
  display: inline-flex; align-items: center;
  margin-top: 0; flex: none;
}
.foot-col .sct-contact-item a { padding-block: 0; line-height: 1.55; color: rgba(255, 255, 255, 0.78); }
.foot-col .sct-contact-item a:hover { color: #fff; }

/* ---------- reveal motion ---------- */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* Reveal animations are front-end only (IntersectionObserver adds .in).
   Inside the block editor the script never runs, so keep every block
   fully visible and clickable there. */
.editor-styles-wrapper .reveal,
.editor-styles-wrapper .reveal:not(.in) {
  opacity: 1;
  transform: none;
  transition: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card:hover, .btn, .svc-row, .tl-item .icon-disc, .faq-item summary i, .card-arrow { transition: none; }
  .card:hover { transform: none; }
  .program-media img { transition: none; }
  .card:hover .program-media img { transform: none; }
  .ws-media img { transition: none; }
  .ws-card:hover .ws-media img { transform: none; }
  .split-art img { transition: none; }
  .split:hover .split-art img { transform: none; }
}

/* ---------- responsive ---------- */

@media (max-width: 1120px) {
  /* PHP fallback header (Elementor pages) */
  .nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .head-cta .btn { display: none; }
  /* Block header: the inline nav collapses into the off-canvas drawer
     (.wp-block-navigation.nav out-specifies WP's
     .wp-block-navigation.is-layout-flex { display: flex }). The Join Free
     CTA STAYS in the bar next to the hamburger; the desktop rule further
     down keeps it displayed at every width. */
  .site-head .wp-block-navigation.nav { display: none; }
  .site-head .head-actions { gap: 8px; }
  .site-head .sct-nav-toggle { margin-right: 0; }
  .site-head .wp-block-site-title a { font-size: clamp(1.05rem, 2.6vw, 1.28rem); }
}

@media (max-width: 960px) {
  .hero-in { grid-template-columns: 1fr; }
  .hero-art { min-height: 300px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 0; }
  .stat { padding: 0 22px; }
  .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .spot-grid, .prog-grid, .benefit-grid, .value-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .step:not(:last-child)::after { display: none; }
  .split, .join-wrap, .cert-strip, .ws-featured { grid-template-columns: 1fr; }
  .split.flip .split-art { order: 0; }
  .foot-top, .foot-top.foot-top-blocks { grid-template-columns: 1fr 1fr; }
  .video-grid { grid-template-columns: repeat(2, 1fr); }
  .video-grid .video-card:last-child { grid-column: 1 / -1; }
}

@media (max-width: 782px) {
  .admin-bar .site-head { top: 46px; }
  body.admin-bar .wp-site-blocks > header.wp-block-template-part {
    top: calc(46px - var(--sct-topbar-h, 0px));
  }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .topbar-in { flex-direction: column; align-items: flex-start; gap: 6px; }
  .topbar-contact { margin-left: 0; gap: 6px 16px; }
  .grid-2, .grid-3, .spot-grid, .prog-grid, .benefit-grid, .value-grid, .ws-grid, .check-grid, .f-row, .video-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.35rem; }
  .hero-ctas .btn { flex: 1 1 auto; }
  .card-featured { grid-template-columns: 1fr; }
  .card-featured .art { height: auto; aspect-ratio: 16 / 9; }
  .session-row { flex-direction: column; align-items: flex-start; }
  .cta-split { flex-direction: column; align-items: flex-start; }
  .foot-top, .foot-top.foot-top-blocks { grid-template-columns: 1fr; }
  .svc-row { grid-template-columns: 52px 1fr; }
  .svc-row .card-arrow { display: none; }
  .trust-in { flex-direction: column; align-items: flex-start; gap: 16px; }
  /* Keep brand + CTA + hamburger on one line on narrow phones */
  .site-head .sct-header-cta { padding: 8px 14px; font-size: 0.85rem; }
  .site-head .wp-block-site-title a { font-size: 1rem; }
}

@media (max-width: 420px) {
  /* Let the brand shrink and wrap so brand + CTA + hamburger fit 360px.
     The .wp-block-group.brand compound out-specifies the flex:none rule in
     the block-compat layer further down; .site-head .sct-nav-toggle
     out-specifies the base toggle rule likewise. */
  .site-head .wp-block-group.brand { flex: 0 1 auto; min-width: 0; }
  .site-head .brand-leaf { width: 24px; height: 24px; }
  .site-head .wp-block-site-title a { font-size: 0.95rem; line-height: 1.15; white-space: normal; }
  .site-head .sct-header-cta { padding: 7px 12px; font-size: 0.8rem; }
  .site-head .sct-nav-toggle { width: 40px; height: 40px; font-size: 1.5rem; margin-right: 0; }
}

/* ============================================================
   Block theme compatibility
   ============================================================ */

/* Neutralize WP's automatic flow gap between sibling blocks inside our
   class-driven layout groups (stats-grid, steps, split, etc.) — the design
   system supplies its own spacing. Then re-add the intentional sibling
   margins at matching specificity. */
.wp-block-group.is-layout-flow > * + * { margin-block-start: 0; }
.wp-block-group.is-layout-flow > * + .split { margin-block-start: clamp(56px, 7vw, 84px); }
.wp-block-group.is-layout-flow > * + .session-row { margin-block-start: 14px; }
.wp-block-group.is-layout-flow > * + .faq-item { margin-block-start: 14px; }
.wp-block-group.is-layout-flow > * + .benefit-card { margin-block-start: 0; }

/* Site title inside the brand group */
.wp-block-group.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.wp-block-group.brand .brand-leaf { width: 30px; height: 30px; color: var(--red); flex: none; }
.wp-block-site-title { margin: 0; }
.wp-block-site-title a {
  font-size: 1.28rem; font-weight: 700; letter-spacing: -0.02em;
  color: var(--ink); text-decoration: none;
}
.footer .wp-block-site-title a { color: #fff; }

/* Header actions group + CTA block */
.site-head .head-actions { display: flex; align-items: center; gap: 14px; flex: none; }
.site-head .sct-header-cta { display: inline-flex; }

/* Navigation block in the header */
.site-head .nav { margin-left: auto; }
.site-head .nav .wp-block-navigation__container {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 26px);
  flex-wrap: nowrap;
}
/* Core fallback: flat page list — keep it on one line, tight gaps */
.site-head .nav ul.wp-block-page-list {
  display: flex;
  flex-wrap: nowrap;
  gap: clamp(16px, 2vw, 26px);
  margin: 0;
}
.site-head .nav .wp-block-pages-list__item,
.site-head .nav .wp-block-navigation-item { margin: 0; white-space: nowrap; }
.site-head .nav .wp-block-navigation-item__content {
  font-size: 0.95rem; font-weight: 500; color: var(--ink-2);
  padding-block: 6px; position: relative; white-space: nowrap;
}
.site-head .nav .wp-block-navigation-item__content::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0;
  height: 2px; background: var(--red); border-radius: 2px;
  transition: right 0.3s var(--ease);
}
.site-head .nav .wp-block-navigation-item__content:hover,
.site-head .nav .current-menu-item > .wp-block-navigation-item__content {
  color: var(--ink);
}
.site-head .nav .wp-block-navigation-item__content:hover::after,
.site-head .nav .current-menu-item > .wp-block-navigation-item__content::after { right: 0; }

/* ---------- off-canvas mobile menu (block header) ----------
   Hamburger lives in .head-actions; the drawer is a fixed right-side
   canvas that slides in from the right edge. theme.js clones the
   header nav, CTA and top-bar contacts into the shell rendered by
   parts/header.html. */

.sct-nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  margin-right: -10px;
  border-radius: 10px; color: var(--ink);
  font-size: 1.7rem; line-height: 1;
  transition: color 0.3s var(--ease), background 0.3s var(--ease);
}
.sct-nav-toggle:hover { color: var(--red); background: var(--tint); }
/* After the base rule so the override wins the cascade at equal specificity. */
@media (max-width: 1120px) {
  .sct-nav-toggle { display: inline-flex; }
}

.sct-drawer-root {
  position: fixed; inset: 0; z-index: 99990;
  overscroll-behavior: contain;
}
.sct-drawer-root[hidden] { display: none; }

.sct-drawer-backdrop {
  position: absolute; inset: 0;
  background: rgba(23, 23, 28, 0.55);
  opacity: 0;
  transition: opacity 0.32s var(--ease);
}
.sct-drawer-root.is-open .sct-drawer-backdrop { opacity: 1; }

.sct-drawer {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(400px, 88vw);
  display: flex; flex-direction: column;
  background: var(--paper);
  box-shadow: -24px 0 60px rgba(23, 23, 28, 0.25);
  transform: translateX(105%);
  visibility: hidden;
  transition: transform 0.38s var(--ease), visibility 0s linear 0.38s;
}
.sct-drawer-root.is-open .sct-drawer {
  transform: translateX(0);
  visibility: visible;
  transition: transform 0.38s var(--ease), visibility 0s;
}
body.sct-drawer-open { overflow: hidden; }

/* Keep the drawer head clear of the fixed admin bar for logged-in users. */
body.admin-bar .sct-drawer { top: 32px; }
@media (max-width: 782px) {
  body.admin-bar .sct-drawer { top: 46px; }
}

.sct-drawer-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 14px 12px 22px;
  border-bottom: 1px solid var(--line);
  min-height: 64px; flex: none;
}
.sct-drawer-brand { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.sct-drawer-brand .brand-leaf { width: 26px; height: 26px; }
.sct-drawer-brand .wp-block-site-title a { font-size: 1.15rem; white-space: nowrap; }
.sct-drawer-close {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; flex: none;
  border-radius: 10px; color: var(--ink);
  font-size: 1.5rem; line-height: 1;
  transition: color 0.3s var(--ease), background 0.3s var(--ease);
}
.sct-drawer-close:hover { color: var(--red); background: var(--tint); }

.sct-drawer-nav { padding: 8px 22px 16px; overflow-y: auto; }
.sct-drawer-nav .wp-block-navigation__container,
.sct-drawer-nav ul.wp-block-page-list {
  display: block; margin: 0;
}
.sct-drawer-nav .wp-block-navigation-item,
.sct-drawer-nav .wp-block-pages-list__item { display: block; margin: 0; }
.sct-drawer-nav .wp-block-navigation-item__content {
  display: block; padding: 14px 2px;
  font-size: 1.08rem; font-weight: 600; color: var(--ink-2);
  border-bottom: 1px solid var(--line); white-space: normal;
}
.sct-drawer-nav .wp-block-navigation-item__content::after { display: none; }
.sct-drawer-nav .wp-block-navigation-item__content:hover,
.sct-drawer-nav .current-menu-item > .wp-block-navigation-item__content { color: var(--red); }

.sct-drawer-foot {
  margin-top: auto; flex: none;
  display: grid; gap: 16px;
  padding: 20px 22px 26px;
  background: var(--wash);
  border-top: 1px solid var(--line);
}
.sct-drawer-foot .btn { width: 100%; justify-content: center; }
.sct-drawer-contact { display: grid; gap: 12px; }
.sct-drawer-contact a, .sct-drawer-contact .topbar-contact-text {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink-2); font-weight: 500; font-size: 0.95rem;
}
.sct-drawer-contact i { color: var(--red); font-size: 1.15rem; }

@media (prefers-reduced-motion: reduce) {
  .sct-drawer-backdrop, .sct-drawer,
  .sct-drawer-root.is-open .sct-drawer { transition: none; }
  .sct-nav-toggle, .sct-drawer-close { transition: none; }
}

/* Buttons rendered by the core buttons block */
.wp-block-buttons { gap: 14px; flex-wrap: wrap; }
.wp-block-button__link {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 26px; border-radius: 999px;
  font-family: inherit; font-size: 0.98rem; font-weight: 600; letter-spacing: 0.01em; line-height: 1.2;
  white-space: nowrap; border: 1.5px solid transparent; cursor: pointer;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.wp-block-button__link:hover { transform: none; }
.wp-block-button__link:active { transform: translateY(1px); }
.wp-block-button.is-style-sct-lg .wp-block-button__link { padding: 15px 32px; font-size: 1.03rem; }

/* Button style variants (also registered via register_block_style so the
   rules apply inside the editor canvas, where inline styles do not load).
   !important beats the global button element styles Gutenberg injects into
   the editor canvas. */
.wp-block-button.is-style-sct-red .wp-block-button__link,
.wp-block-button .is-style-sct-red .wp-block-button__link {
  background: var(--red) !important; color: #fff !important; border: 1.5px solid transparent;
}
.wp-block-button.is-style-sct-ghost .wp-block-button__link,
.wp-block-button .is-style-sct-ghost .wp-block-button__link {
  background: transparent !important; color: var(--ink) !important; border: 1.5px solid var(--ink);
}
.wp-block-button.is-style-sct-white .wp-block-button__link,
.wp-block-button .is-style-sct-white .wp-block-button__link {
  background: #fff !important; color: var(--red) !important; border: 1.5px solid transparent;
}
.wp-block-button.is-style-sct-red .wp-block-button__link:hover { background: var(--red-dark) !important; color: #fff !important; box-shadow: 0 10px 26px rgba(216, 6, 33, 0.30); }
.wp-block-button.is-style-sct-ghost .wp-block-button__link:hover { background: var(--ink) !important; color: #fff !important; }
.wp-block-button.is-style-sct-white .wp-block-button__link:hover { background: #FFEDEF !important; color: var(--red) !important; }

/* Chips rendered as paragraph blocks must not inherit the .card p rules */
.card .chip {
  color: var(--red-dark);
  font-size: 0.82rem;
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 16px;
}
.card .chip p,
.chip p { margin: 0; }
/* .card p targets the chip's inner paragraph directly (muted, 0.96rem);
   inherit the styled chip wrapper's static-site look instead. */
.card .chip p { color: inherit; font-size: inherit; }

/* Images */
.wp-block-image { margin: 0; }
.wp-block-image img { height: auto; }
.program-media .wp-block-image img, .split-art .wp-block-image img, .ws-media .wp-block-image img { width: 100%; height: 100%; }
.ws-media .wp-block-image { height: 100%; }

/* Headings and paragraphs normalize to the static design */
.wp-block-heading { margin: 0; }
.card p, .split-copy p { color: var(--muted); }
/* Workshops cards render the Save My Seat button as a core button block;
   keep the static-site placement (.ws-card .btn equivalent). */
.ws-card .wp-block-buttons { margin-top: 20px; align-self: flex-start; }
.ws-card .wp-block-button { align-self: flex-start; }
/* On stacked (<=960px) workshop featured cards the 16/9 aspect ratio
   transfers the art panel's min-height into an oversized min-width and
   overflows the viewport; use the image's natural ratio instead. */
@media (max-width: 960px) {
  .ws-featured .art.ws-media { aspect-ratio: auto; min-height: 0; }
}

/* Footer blocks */
.footer .wp-block-group.foot-brand .brand { color: #fff; }
.foot-desc { margin-top: 14px; font-size: 0.95rem; max-width: 36ch; color: rgba(255, 255, 255, 0.62); }
.foot-nav .wp-block-navigation__container { display: block; }
.foot-nav .wp-block-navigation-item { display: block; }

/* Blog/search/query templates */
.site-main .wp-block-post-title a { color: inherit; text-decoration: none; }
.site-main .wp-block-post-title a:hover { color: var(--red); }
.site-main .wp-block-post-date { color: var(--muted); font-size: 0.9rem; margin-top: 6px; }
.site-main .wp-block-post-excerpt__more-link { color: var(--red); font-weight: 600; }
.site-main .wp-block-query-pagination {
  margin-top: 30px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
}
.site-main .wp-block-query-pagination-numbers .current {
  background: var(--red); color: #fff; border-radius: 999px; padding: 4px 12px;
}

/* Full-bleed page sections: Hello Elementor caps .site-main at 500-1140px
   (body:not([class*=elementor-page-]) .site-main) and pads it 10px per side
   below 576px, which boxes the block templates. Sections span the viewport
   at every breakpoint; each section's .wrap keeps the content gutter.
   Scoped to block-theme markup (wp-site-blocks). */
body .wp-site-blocks > main.site-main {
  max-width: none;
  margin-inline: 0;
  padding-inline: 0;
}
