/* =====================================================
   HERO
===================================================== */

.hero {

    position: relative;
    overflow: hidden;
    min-height: 520px;
    display: flex;
    padding-inline: 0;
    background-color: var(--color-primary);

    --section-fg: var(--color-text-on-dark);
    --section-fg-muted: var(--color-muted-on-dark);
    --section-border: var(--color-border-on-dark);
    --section-accent: var(--color-accent-soft);
}

.hero--height-screen {
    height: calc(100vh - var(--header-height));
    height: calc(100svh - var(--header-height));
    min-height: 520px;
}
.hero--height-large  { min-height: 80vh; }
.hero--height-medium { min-height: 60vh; }
.hero--height-auto   { min-height: 520px; }

.hero--valign-top { align-items: flex-start; }
.hero--valign-center { align-items: center; }
.hero--valign-bottom { align-items: flex-end; }

.hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-image,
.hero-video,
.hero-slide img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

.hero-slides {
    position: absolute;
    inset: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.9s ease-in-out;
    pointer-events: none;
}

.hero-slide--active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: var(--hero-overlay-color, #000000);
    opacity: var(--hero-overlay-opacity, 0.5);
    pointer-events: none;
    z-index: 1;
}

.hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: var(--container-width);
    margin-inline: auto;
    padding: var(--space-3xl) var(--container-padding);
    display: flex;
    padding-block: var(--space-2xl);
}

.hero-content {
    width: 100%;
    margin: 0;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    max-width: 640px;
}

.hero--content-narrow .hero-content { max-width: 480px; }
.hero--content-default .hero-content { max-width: 640px; }
.hero--content-wide .hero-content { max-width: 800px; }
.hero--content-full .hero-content { max-width: 100%; }

.hero-eyebrow {
    color: var(--section-accent);
    margin-bottom: var(--space-lg);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: calc(clamp(2.25rem, min(6vw, 8.5vh), 5.5rem) * var(--scale-display));
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: var(--tracking-display);
    margin-bottom: var(--space-lg);
    max-width: 15ch;
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: var(--fs-base);
    line-height: 1.8;
    margin-bottom: var(--space-xl);
    max-width: 54ch;
    opacity: 1;
}


.hero--text-shadow .hero-title,
.hero--text-shadow .hero-subtitle,
.hero--text-shadow .hero-eyebrow {
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    align-items: center;
    width: 100%;
}

.hero .btn-outline {
    border-color: rgba(255, 255, 255, 0.7);
    color: #ffffff;
}

.hero .btn-outline:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #ffffff;
    color: #ffffff;
}

.hero--align-left .hero-inner { justify-content: flex-start; }
.hero--align-left .hero-content {
    text-align: left;
    align-items: flex-start;
}
.hero--align-left .hero-actions { justify-content: flex-start; }

.hero--align-center .hero-inner { justify-content: center; }
.hero--align-center .hero-content {
    text-align: center;
    align-items: center;
}
.hero--align-center .hero-title,
.hero--align-center .hero-subtitle {
    margin-inline: auto;
}
.hero--align-center .hero-actions { justify-content: center; }

.hero--align-right .hero-inner { justify-content: flex-end; }
.hero--align-right .hero-content {
    text-align: right;
    align-items: flex-end;
}
.hero--align-right .hero-title,
.hero--align-right .hero-subtitle {
    margin-left: auto;
}
.hero--align-right .hero-actions { justify-content: flex-end; }

.hero--bg-color .hero-media,
.hero--bg-gradient .hero-media {
    display: none;
}

.hero--bg-color .hero-overlay,
.hero--bg-gradient .hero-overlay {
    display: none;
}

.hero-scroll-indicator {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-top: var(--space-xl);
}

.hero-scroll-indicator::after {
    content: "Scroll";
    font-family: var(--font-body);
    font-size: var(--fs-xs);
    font-weight: 500;
    letter-spacing: var(--tracking-label);
    text-transform: uppercase;
    color: var(--section-fg-muted);
}

.hero-scroll-line {
    display: block;
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, var(--section-accent), transparent);
    animation: scroll-line 1.6s ease-in-out infinite;
    transform-origin: top;
}

.hero-scroll-arrow,
.hero-scroll-chevron {
    width: 18px;
    height: 18px;
    border-right: 2px solid #ffffff;
    border-bottom: 2px solid #ffffff;
    transform: rotate(45deg);
    animation: hero-bounce 1.6s ease-in-out infinite;
}

.hero-scroll-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ffffff;
    animation: hero-pulse 1.6s ease-in-out infinite;
}

@keyframes scroll-line {
    0% { transform: scaleY(0); opacity: 0; }
    30% { opacity: 1; }
    100% { transform: scaleY(1); opacity: 0; }
}

@keyframes hero-bounce {
    0%, 100% { transform: rotate(45deg) translateY(0); opacity: 0.45; }
    50% { transform: rotate(45deg) translateY(6px); opacity: 1; }
}

@keyframes hero-pulse {
    0%, 100% { transform: scale(0.7); opacity: 0.4; }
    50% { transform: scale(1); opacity: 1; }
}

@media (max-width: 1024px) {
    .hero-inner {
        padding: var(--space-2xl) var(--container-padding);
    }

    .hero-content {
        max-width: 100%;
    }
}
/* =====================================================
   SECTION SYSTEM (SINGLE SOURCE OF TRUTH)
===================================================== */

.section.section-muted {
  background: var(--color-bg);
  padding-top: 48px;
  padding-bottom: 32px;
}

.section.section-muted .post-taxonomy {
  margin-top: -16px;
}

/* Hero → first section */
.hero + .section {
  padding-top: 96px;
}

/* Final CTA slightly stronger */
.final-cta {
  padding: 96px 0;
}

/* =====================================================
   SECTION EYEBROW — DARK BACKGROUND VARIANT
   When eyebrow sits inside hero or dark sections
===================================================== */


.final-cta .section-eyebrow {
    color: var(--color-accent);
}

/* =====================================================
   ABOUT PREVIEW
===================================================== */


.about-text {
  max-width: 720px;
  margin-bottom: 56px;
}

.about-text .btn {
    margin-top: var(--space-2xl);
}

/* =====================================================
   ABOUT PREVIEW — IMAGE VARIANTS
===================================================== */

/* Two column layout when image is present */
.about-inner--has-image {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

/* Image on the right (default) */
.about-inner--image-right .about-text {
    order: 1;
}

.about-inner--image-right .about-media {
    order: 2;
}

/* Image on the left */
.about-inner--image-left .about-text {
    order: 2;
}

.about-inner--image-left .about-media {
    order: 1;
}

/* Media container */
.about-media {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.about-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-slow);
}

.about-media:hover .about-image {
    transform: scale(1.03);
}

/* About body text */
.about-body {
    font-size: var(--fs-base);
    line-height: 1.75;
    color: var(--color-muted);
    margin-bottom: var(--space-xl);
    max-width: 560px;
}

/* Without image — restore original single column */
.about-inner:not(.about-inner--has-image) .about-text {
    max-width: 720px;
    margin-bottom: var(--space-2xl);
}

/* =====================================================
   LOGO STRIP — LAYOUT VARIANTS
===================================================== */

/* Label above the track */
.logo-strip-label {
    text-align: center;
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-muted);
    margin-bottom: var(--space-lg);
    opacity: 0.7;
}

/* Scroll variant — existing animation behaviour, just named */
.logo-strip--scroll .logo-track {
    animation: logo-scroll 30s linear infinite;
}

.logo-strip--scroll:hover .logo-track {
    animation-play-state: paused;
}

/* Grid variant — static wrapped grid, no animation */
.logo-strip--grid .logo-track {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    width: 100%;
    animation: none;
    gap: var(--space-xl) var(--space-2xl);
    align-items: center;
    justify-items: center;
}

.logo-strip--grid .logo-item {
    padding: 0;
}

.logo-strip--grid .logo-item img {
    max-height: 48px;
    opacity: 0.65;
    transition: opacity var(--transition-fast);
    filter: grayscale(100%);
}

.logo-strip--grid .logo-item img:hover {
    opacity: 1;
    filter: grayscale(0%);
}


/* =====================================================
   TESTIMONIALS – SWIPER LAYOUT FIX
===================================================== */

.testimonials-slider {
  width: 100%;
  overflow: hidden; /* required for swipe */
  position: relative;
}

.testimonials-slider .swiper-wrapper {
  display: flex;          /* THIS replaces grid */
  align-items: stretch;
}

.testimonials-slider .swiper-slide {
  display: flex;
  height: auto;
  flex-shrink: 0;
}

.testimonials-slider .testimonial-card {
  width: 100%;
}

/* =====================================================
   TESTIMONIALS — DESKTOP INTRO + SLIDER
===================================================== */

@media (min-width: 1025px) {

    .testimonials > .container {
        display: grid;
        grid-template-columns: minmax(240px, 0.72fr) minmax(0, 2.28fr);
        gap: clamp(32px, 4vw, 64px);
        align-items: start;
    }

    .testimonials > .container > .section-header {
        margin-bottom: 0;
        align-self: start;
    }

    .testimonials > .container > .testimonials-display {
        min-width: 0;
    }

    .testimonial-slider-controls {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-top: 32px;
    }

    .testimonial-slider-controls button {
        width: 42px;
        height: 42px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        border: 1px solid var(--section-accent, var(--color-accent));
        border-radius: 50%;
        background: transparent;
        color: var(--section-accent, var(--color-accent));
        font-family: var(--font-body);
        font-size: 1.15rem;
        line-height: 1;
        cursor: pointer;
        transition:
            background-color var(--transition-fast),
            color var(--transition-fast),
            border-color var(--transition-fast);
    }

    .testimonial-slider-controls button:hover {
        background: var(--section-accent, var(--color-accent));
        color: var(--section-surface, var(--color-bg));
    }

    .testimonial-slider-controls button:focus-visible {
        outline: 2px solid var(--section-accent, var(--color-accent));
        outline-offset: 3px;
    }

}

/* =====================================================
   TESTIMONIALS — DISPLAY VARIANTS
===================================================== */

/* Grid variant */
.testimonials-display--grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.testimonials-display--grid .testimonial-item {
    display: flex;
}

.testimonials-display--grid .testimonial-card {
    width: 100%;
}

/* Single featured variant */
.testimonials-display--single {
    display: flex;
    justify-content: center;
}

.testimonials-display--single .testimonial-item {
    max-width: 720px;
    width: 100%;
}

.testimonials-display--single .testimonial-card {
    padding: var(--space-2xl) var(--space-3xl);
    font-size: var(--fs-lg);
}

.testimonials-display--single .testimonial-text {
    font-size: var(--fs-lg);
    line-height: 1.8;
    font-style: italic;
}

/* Add to sections.css — Swiper selector alias */
.testimonials-display--slider {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.testimonials-display--slider .swiper-wrapper {
    display: flex;
    align-items: stretch;
}

.testimonials-display--slider .swiper-slide {
    display: flex;
    height: auto;
    flex-shrink: 0;
}

.testimonials-display--slider .testimonial-card {
    width: 100%;
}




/* =====================================================
   PROGRAMS PREVIEW
===================================================== */

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

.programs-footer {
  margin-top: 48px;
  text-align: center;
}

/* =====================================================
   PROGRAM CARD — THUMBNAIL + CTA (single-program related)
===================================================== */


.program-card__thumb {
    display: block;
    overflow: hidden;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    /* bleed to card edges */
    margin: calc(-1 * var(--space-md)) calc(-1 * var(--space-md)) var(--space-md);
}

.program-card__thumb img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-medium);
}

.program-card:hover .program-card__thumb img {
    transform: scale(1.04);
}

.program-card__cta {
    margin-top: auto;
    align-self: flex-start;
}


/* =====================================================
   SINGLE PROGRAM -HERO
===================================================== */

.program-hero {
  padding-block: var(--space-3xl);
  text-align: center;
}

.program-hero .program-title {
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 1.5rem + 3vw, 3.5rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--section-fg);
  margin: var(--space-sm) 0;
  max-width: 22ch;
  text-wrap: balance;
}

.program-hero .section-header {
    margin-inline: auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.program-hero .section-header::after {
    margin-inline: auto;
}


.program-hero .program-meta {
  font-size: var(--fs-base);
  color: var(--section-fg-muted, var(--color-muted));
  font-weight: 400;
  margin: 0;
}

.program-hero .program-type-tag {
    background: color-mix(in srgb, var(--color-accent) 10%, transparent);
    border-color: transparent;
}

/* =====================================================
  SINGLE PROGRAM - FEATURED IMAGE
===================================================== */

.program-featured-image {
  max-inline-size: 1100px;
  margin: var(--space-2xl) auto 0;
  aspect-ratio: 21 / 9;
  overflow: hidden;
  border-radius: var(--radius-card);
}

.program-featured-image .program-hero-image {
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* =====================================================
   SINGLE PROGRAM — DETAILS STRIP
===================================================== */

.program-details-strip {
  padding-top: 0;
  padding-bottom: 0;
}

.program-details-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-top: 1px solid var(--section-border, var(--color-border));
  border-bottom: 1px solid var(--section-border, var(--color-border));
}

.program-detail-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
  padding-block: var(--space-xl);
  padding-right: var(--space-2xl);
  margin-right: var(--space-2xl);
  border-right: 1px solid var(--section-border, var(--color-border));
}

.program-detail-item:last-child {
  border-right: none;
  margin-right: 0;
  padding-right: 0;
}

.detail-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1rem;
  text-transform: uppercase;
  color: var(--color-accent);
}

.detail-value {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-primary);
}

/* =====================================================
   SINGLE PROGRAM — CTA
===================================================== */

.program-cta {
  text-align: center;
  background: #ffffff;
}

/* =====================================================
   PROGRAMS ARCHIVE
===================================================== */

.programs-archive .section-header {
  margin-bottom: 56px;
  text-align: center;
}

.programs-archive .no-results {
  color: var(--color-muted);
  font-size: 1rem;
}



/* =====================================================
   HOW IT WORKS — LAYOUT VARIANTS
===================================================== */

/* Default steps — already repeat(4,1fr) in existing CSS */
.how-steps--steps {
    grid-template-columns: repeat(4, 1fr);
}

/* Icon columns — 3 col, no step number */
.how-steps--columns {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-2xl);
}

.how-steps--columns .how-step {
    text-align: center;
    align-items: center;
}

/* Timeline — vertical stacked with connecting line */
.how-steps--timeline {
    grid-template-columns: 1fr;
    gap: 0;
    position: relative;
    max-width: 720px;
    margin: 0 auto;
}

/* Vertical connecting line */
.how-steps--timeline::before {
    content: '';
    position: absolute;
    left: 28px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(
        to bottom,
        var(--color-accent),
        transparent
    );
}

.how-steps--timeline .how-step {
    padding-left: 72px;
    border-radius: 0;
    border-bottom: 1px solid var(--color-border);
    padding-top: var(--space-xl);
    padding-bottom: var(--space-xl);
    position: relative;
}

.how-steps--timeline .how-step:last-child {
    border-bottom: none;
}

/* Step number as timeline dot */
.how-steps--timeline .step-number {
    position: absolute;
    left: 0;
    top: var(--space-xl);
    width: 40px;
    height: 40px;
    background: var(--color-accent);
    color: #000000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--fs-xs);
    font-weight: 700;
    margin-bottom: 0;
    opacity: 1;
    letter-spacing: 0.05em;
}

/* =====================================================
   FINAL CTA
===================================================== */
.final-cta {
  background: var(--color-primary);
  text-align: center;
}

.final-cta-inner {
  max-width: 720px;
  margin: 0 auto;
}

/* =====================================================
   FINAL CTA — LAYOUT VARIANTS
===================================================== */

/* Centered — existing behaviour, now explicit */
.final-cta--centered .final-cta-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}

.final-cta--centered .final-cta-subtitle {
    text-align: center;
    max-width: 560px;
}

.final-cta--centered .final-cta-actions {
    justify-content: center;
}

/* Split — text left, button right on same row */
.final-cta--split .final-cta-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2xl);
    max-width: 100%;
    text-align: left;
}

.final-cta--split .final-cta-content {
    max-width: 560px;
    flex: 1;
}

.final-cta--split .final-cta-actions {
    flex-shrink: 0;
    margin-top: 0;
}

/* Final CTA — background image support */
.final-cta[style*="background-image"] {
    position: relative;
}

.final-cta[style*="background-image"]::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    pointer-events: none;
    z-index: 0;
}

.final-cta[style*="background-image"] .container {
    position: relative;
    z-index: 1;
}

.final-cta[style*="background-image"] .final-cta-title,
.final-cta[style*="background-image"] .final-cta-subtitle {
    color: #ffffff;
}


/* =====================================================
   BLOG PREVIEW — SECTION ADJUSTMENTS
===================================================== */

/* Desktop — 4 columns */
.blog-preview .blog-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
}

/* Card top padding fix — media bleeds to top */
.blog-preview .blog-card {
    padding-top: 0;
}

.blog-preview .blog-card-body {
    padding: var(--space-lg) var(--space-md) var(--space-lg);
}

/* =====================================================
   FEATURED IMAGE – FULL WIDTH (720px HEIGHT)
===================================================== */

.section-featured-image {
  padding: 0; /* override section padding */
  padding-bottom: 0px;
    
}

.post-featured-image {
  width: 100%;
  max-width: 960px;
  height: 480px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 16px;
    
}

.post-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* =====================================================
	SOCIAL MEDIA SECTION
===================================================== */

.section-social {
    padding-top: 24px;
    padding-bottom: 0;
    background: var(--color-primary);
    border-top: 1px solid rgba(255,255,255,0.08);
    
}

/* =====================================================
   ABOUT SLIDER — CROSSFADE
===================================================== */

.about-slider {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 420px;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.about-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.9s ease-in-out;
    pointer-events: none;
}

.about-slide--active {
    opacity: 1;
    pointer-events: auto;
}

.about-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


/* =====================================================
   ABOUT PILLARS — CARD STYLE VARIANTS
   Colors driven by CSS custom properties
   set inline via PHP from Customizer values
===================================================== */

/* ── Section Content Block — alignment system ──────────── */
.section-content-block {
    width: 100%;
}

/* Left */
.section-content-block--left {
    text-align: left;
}
.section-content-block--left .section-heading,
.section-content-block--left .section-body {
    margin-inline: 0;
    max-width: 65ch;
}

/* Center */
.section-content-block--center {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.section-content-block--center .section-heading,
.section-content-block--center .section-body {
    max-width: 65ch;
}

/* Right */
.section-content-block--right {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}
.section-content-block--right .section-heading,
.section-content-block--right .section-body {
    margin-inline: 0;
    max-width: 65ch;
}

/* =====================================================
   HERO — DYNAMIC SLIDESHOW (latest posts / programs)
===================================================== */

.hero--dynamic .hero-slide {
    display: flex;

}

.hero--dynamic.hero--valign-top .hero-slide {align-items: flex-start;}
.hero--dynamic.hero--valign-center .hero-slide { align-items: center; }
.hero--dynamic.hero--valign-bottom .hero-slide { align-items: flex-end; }

/* Base .hero-slide sets pointer-events:none for decorative slides. dynamic slides contain links, so the active one must accept clicks. */

.hero--dynamic .hero-slide--active {
    pointer-events: auto;
}

.hero-slide-media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-slide-media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

/* --- Title link --- */

.hero--dynamic .hero-title a {
    color: inherit;
    text-decoration: none;
    background-image: linear-gradient(currentColor, currentColor);
    background-size: 0% 2px;
    background-repeat: no-repeat;
    background-position: left bottom;
    transition: background-size var(--transition-medium);
}

.hero--dynamic .hero-title a:hover,
.hero--dynamic .hero-title a:focus-visible {
    background-size: 100% 2px;
}

.hero--dynamic .hero-title a:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 4px;
}

/* --- Controls --- */

.hero-slider-controls {
    position: absolute;
    right: var(--container-padding);
    bottom: var(--space-xl);
    z-index: 3;
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.hero-slider-toggle {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: rgba(0, 0, 0, 0.35);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-fast);
}

.hero-slider-toggle:hover {
    background: rgba(0, 0, 0, 0.6);
}

.hero-slider-toggle:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* Pause icon — two bars (playing state) */
.hero-slider-icon {
    display: block;
    width: 10px;
    height: 12px;
    border-left: 3px solid #ffffff;
    border-right: 3px solid #ffffff;
}

/* Play icon — triangle (paused state) */
.hero-slider-toggle[aria-pressed="true"] .hero-slider-icon {
    width: 0;
    height: 0;
    border-left: 10px solid #ffffff;
    border-right: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    margin-left: 3px;
}

.hero-slider-dots {
    display: flex;
    gap: var(--space-xs);
}

.hero-slider-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.7);
    background: transparent;
    cursor: pointer;
    transition: background var(--transition-fast), border-color var(--transition-fast);
}

.hero-slider-dot.is-active,
.hero-slider-dot:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
}

.hero-slider-dot:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .hero--dynamic .hero-slide {
        transition: none;
    }
}

@media (max-width: 768px) {
    .hero-slider-controls {
        right: 50%;
        transform: translateX(50%);
        bottom: var(--space-md);
    }

        /* Hard visual cap — word limit handles length, this catches
       long words and narrow viewports that still overflow */
    .hero--dynamic .hero-subtitle {
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}

/* =====================================================
   PROGRAM CARD — SIDE IMAGE
   Horizontal layout, distinct from the blog card's
   full-bleed top banner.
===================================================== */

.program-card--side {
    flex-direction: row;
    align-items: stretch;
    gap: var(--space-lg);
}

.program-card--side .program-card__media {
    flex: 0 0 120px;
    overflow: hidden;
    display: block;
    margin: calc(var(--space-xl) * -1) 0 calc(var(--space-xl) * -1) calc(var(--space-xl) * -1);
    border-radius: var(--radius-card) 0 0 var(--radius-card);
}

.program-card--side .program-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.program-card--side .program-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width:0;
}

/* =====================================================
   HERO — STAGGERED ENTRANCE
===================================================== */

@keyframes hero-fade-up {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero-content > * {
    animation: hero-fade-up 0.9s var(--ease-out-soft) backwards;
}

.hero-content > *:nth-child(1) { animation-delay: 0.10s; }
.hero-content > *:nth-child(2) { animation-delay: 0.25s; }
.hero-content > *:nth-child(3) { animation-delay: 0.40s; }
.hero-content > *:nth-child(4) { animation-delay: 0.55s; }

@media (prefers-reduced-motion: reduce) {
    .hero-content > * {
        animation: none;
    }
}

/* =====================================================
   HERO — SPLIT LAYOUT WITH IMAGE COLLAGE
===================================================== */

.hero--split .hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: var(--space-3xl);
    align-items: center;
}

.hero-title {
    text-wrap: balance;
}

.hero-collage {
    position: relative;
    block-size: 100%;
    min-block-size: 60svh;
}

.hero-collage-item {
    position: absolute;
    margin: 0;
    overflow: hidden;
    border-radius: 3px;
    box-shadow: 0 30px 70px rgb(0 0 0 / 0.5);
}

.hero-collage-item img {
    display: block;
    inline-size: 100%;
    block-size: 100%;
    object-fit: cover;
}

.hero-collage-item--back {
    inset-block-start: 4%;
    inset-inline-start: 24%;
    inline-size: 88%;
    aspect-ratio: 4 / 3;
    rotate: 2deg;
}

.hero-collage-item--front {
    inset-block-end: 6%;
    inset-inline-start: 0;
    inline-size: 54%;
    aspect-ratio: 4 / 3;
    rotate: -1.5deg;
    z-index: 2;
}

/* Parallax where supported — static everywhere else */
@supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
        .hero-collage-item--back {
            animation: collage-drift linear both;
            animation-timeline: view();
            animation-range: entry 0% exit 100%;
        }
    }
}

@keyframes collage-drift {
    from { translate: 0 -3%; }
    to   { translate: 0 6%; }
}