:root {
    --bg: #f3f6fb;
    --bg-elev: #ffffff;
    --bg-muted: #eef2f8;
    --ink: #0f172a;
    --ink-soft: #475569;
    --line: #dde4ef;
    --brand: #0f62fe;
    --brand-strong: #0045d8;
    --radius-lg: 1.25rem;
    --radius-md: 0.9rem;
    --shadow-soft: 0 12px 34px rgba(15, 23, 42, 0.08);
    --container: 1200px;
}

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

html,
body {
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    font-family: "Manrope", "Segoe UI", sans-serif;
    color: var(--ink);
    background-color: #f2f5fb;
}

a {
    color: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(248, 251, 255, 0.86);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(221, 228, 239, 0.88);
}

.site-header__inner {
    width: min(var(--container), 100%);
    margin: 0 auto;
    padding: 0.8rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.site-logo {
    font-family: "Sora", "Manrope", sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: -0.01em;
}

/* ── Hamburger toggle ─────────────────────────────────────── */
.nav-toggle {
    margin-left: auto;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.4rem;
    color: var(--ink);
    display: flex;
    flex-direction: column;
    gap: 5px;
    position: relative;
    z-index: 60;
    line-height: 0;
}

.nav-toggle__bar {
    display: block;
    width: 26px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transform-origin: center;
    transition: transform 0.38s cubic-bezier(0.23, 1, 0.32, 1),
                opacity 0.25s ease,
                width 0.25s ease;
}

/* Morph to ✕ when overlay is open */
.nav-toggle.is-active {
    color: #ffffff;
}

.nav-toggle.is-active .nav-toggle__bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-active .nav-toggle__bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.nav-toggle.is-active .nav-toggle__bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ── Full-screen nav overlay ──────────────────────────────── */
.nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 50;
    background: linear-gradient(150deg, #07101f 0%, #060d1e 55%, #0d1535 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(5rem, 10vw, 7rem) clamp(1.5rem, 7vw, 6rem);
    /* GSAP controls visibility via y transform */
    pointer-events: none;
}

.nav-overlay.is-open {
    pointer-events: auto;
}

/* Subtle brand accent line at top */
.nav-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(15, 98, 254, 0.55), transparent);
}

/* Faint ambient glow in corner */
.nav-overlay::after {
    content: '';
    position: absolute;
    right: -80px;
    top: -80px;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: rgba(15, 98, 254, 0.14);
    filter: blur(90px);
    pointer-events: none;
}

/* Nav links ── CSS counter handles zero-padded numbers automatically */
.nav-overlay__nav {
    counter-reset: nav-counter;
    position: relative;
    z-index: 1;
}

.nav-overlay__link {
    counter-increment: nav-counter;
    display: flex;
    align-items: baseline;
    gap: 1.4rem;
    text-decoration: none;
    font-family: "Sora", "Manrope", sans-serif;
    font-size: clamp(2.2rem, 5.5vw, 4.6rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: rgba(255, 255, 255, 0.5);
    padding: 0.25em 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    position: relative;
    transition: color 0.22s ease, transform 0.25s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Auto-generated number prefix */
.nav-overlay__link::before {
    content: counter(nav-counter, decimal-leading-zero);
    font-size: 0.7rem;
    font-family: "Manrope", sans-serif;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
    transition: color 0.22s ease;
    align-self: center;
}

/* Expanding brand underline on hover */
.nav-overlay__link::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    height: 1px;
    width: 0;
    background: var(--brand);
    transition: width 0.38s cubic-bezier(0.23, 1, 0.32, 1);
}

.nav-overlay__link:hover {
    color: #ffffff;
    transform: translateX(10px);
}

.nav-overlay__link:hover::before {
    color: var(--brand);
}

.nav-overlay__link:hover::after {
    width: 100%;
}

.nav-overlay__cta {
    margin-top: clamp(2rem, 4vw, 3.5rem);
    position: relative;
    z-index: 1;
}

.site-header__cta {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.45rem;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    border: 1px solid #c4d4f6;
    background: #eaf0ff;
    color: #123273;
    font-size: 0.86rem;
    font-weight: 700;
}

.site-header__cta:hover {
    background: #dce7ff;
}

.site-main,
.site-footer {
    width: min(var(--container), 100%);
    margin: 0 auto;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

.site-main {
    padding-top: clamp(1.25rem, 3vw, 2.5rem);
    padding-bottom: 2rem;
}

.site-footer {
    padding-top: 0.8rem;
    padding-bottom: 2rem;
    color: #64748b;
    font-size: 0.9rem;
}

.page-builder {
    display: grid;
    gap: 1.1rem;
}

.pb-block {
    opacity: 0;
    transform: translateY(12px);
    animation: blockIn 0.48s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    animation-delay: calc(var(--i) * 60ms);
}

.component-shell {
    background: var(--bg-elev);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    padding: clamp(1.1rem, 2.4vw, 2rem);
}

.component-eyebrow,
.text-image__eyebrow {
    margin: 0;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748b;
}

h1,
h2,
h3,
blockquote,
p {
    margin: 0;
}

.text-image,
.hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(1rem, 3vw, 2.8rem);
}

.hero__grid--single {
    grid-template-columns: 1fr;
}

.text-image--image-left .text-image__content {
    order: 2;
}

.text-image--image-left .text-image__media {
    order: 1;
}

.text-image__heading,
.hero__heading,
.rich-text__heading,
.feature-cards__heading,
.stats-row__heading,
.faq__heading,
.cta-banner__heading {
    margin-top: 0.7rem;
    font-family: "Sora", "Manrope", sans-serif;
    letter-spacing: -0.02em;
    line-height: 1.08;
}

.text-image__heading,
.hero__heading {
    font-size: clamp(1.9rem, 4.5vw, 3.8rem);
}

.rich-text__heading,
.feature-cards__heading,
.stats-row__heading,
.faq__heading,
.cta-banner__heading {
    font-size: clamp(1.4rem, 3.2vw, 2.5rem);
}

.text-image__body,
.hero__body,
.rich-text__body,
.feature-cards__intro,
.cta-banner__body {
    margin-top: 0.95rem;
    color: var(--ink-soft);
    line-height: 1.7;
    max-width: 70ch;
}

.hero__subheading {
    margin-top: 0.75rem;
    font-size: clamp(1rem, 1.8vw, 1.25rem);
    color: #334155;
}

.text-image__ctas {
    margin-top: 1.2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.button {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 2.75rem;
    padding: 0.6rem 1rem;
    border-radius: 999px;
    border: 1px solid transparent;
    background: linear-gradient(135deg, var(--brand), #3b82f6);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(15, 98, 254, 0.25);
    transition: transform 120ms ease, box-shadow 120ms ease, background-color 120ms ease;
}

.button::after {
    content: "→";
    font-size: 0.88rem;
}

.button:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(15, 98, 254, 0.32);
}

.button--ghost {
    background: #ffffff;
    color: #1e293b;
    border-color: #d4dceb;
    box-shadow: none;
}

.button--ghost:hover {
    background: #f7f9fd;
    box-shadow: none;
}

.text-image__media img,
.text-image__placeholder,
.hero__media img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: var(--radius-md);
    border: 1px solid #d8e0ec;
}

.text-image__placeholder {
    background:
        radial-gradient(circle at 0 0, rgba(15, 98, 254, 0.12), transparent 55%),
        linear-gradient(120deg, #f1f4fb 0, #e8edf7 100%);
}

.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #060d1e 0%, #0b1733 55%, #0f2252 100%);
    border-color: rgba(255, 255, 255, 0.06);
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.07);
    padding: clamp(2.8rem, 7vw, 5.5rem) clamp(1.5rem, 3.5vw, 3.5rem);
}

.hero::before {
    content: "";
    position: absolute;
    right: -60px;
    top: -80px;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: rgba(15, 98, 254, 0.38);
    pointer-events: none;
    filter: blur(90px);
    z-index: 0;
}

.hero::after {
    content: "";
    position: absolute;
    left: -60px;
    bottom: -80px;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.26);
    pointer-events: none;
    filter: blur(70px);
    z-index: 0;
}

/* Hero grid — slightly wider content column, sits above blobs */
.hero .hero__grid {
    position: relative;
    z-index: 1;
    grid-template-columns: 55fr 45fr;
    gap: clamp(2rem, 4vw, 4rem);
    align-items: center;
}

/* GSAP word-split helpers */
.hw-o {
    display: inline-block;
    overflow: hidden;
    vertical-align: bottom;
    line-height: inherit;
}

.hw-i {
    display: inline-block;
}

/* Eyebrow badge */
.hero .component-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(59, 130, 246, 0.4);
    background: rgba(59, 130, 246, 0.12);
    color: #93c5fd;
    letter-spacing: 0.09em;
}

.hero .hero__heading {
    margin-top: 1rem;
    font-size: clamp(2.6rem, 6vw, 5rem);
    color: #ffffff;
    letter-spacing: -0.03em;
    line-height: 1.04;
}

.hero .hero__subheading {
    color: #94a3b8;
    font-size: clamp(1rem, 2vw, 1.3rem);
}

.hero .hero__body {
    color: #7f92b0;
    max-width: 52ch;
}

/* Image */
.hero .hero__media img {
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(15, 98, 254, 0.25), 0 0 40px rgba(15, 98, 254, 0.12);
}

/* CTAs */
.hero .text-image__ctas {
    margin-top: 2.2rem;
    gap: 0.9rem;
}

.hero .button {
    min-height: 3.1rem;
    padding: 0.8rem 1.6rem;
    font-size: 0.97rem;
    /* Neutral dark shadow — looks correct with any user-selected colour */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    position: relative;
    overflow: hidden;
}

/* Shimmer sweep — works over any background colour */
.hero .button:not(.button--ghost)::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        transparent 30%,
        rgba(255, 255, 255, 0.22) 50%,
        transparent 70%
    );
    transform: translateX(-100%) skewX(-8deg);
    transition: transform 0.5s ease;
    pointer-events: none;
    border-radius: inherit;
}

.hero .button:not(.button--ghost):hover::before {
    transform: translateX(160%) skewX(-8deg);
}

.hero .button:not(.button--ghost):hover {
    transform: translateY(-3px);
    filter: brightness(1.1);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.4);
}

.hero .button--ghost {
    background: rgba(255, 255, 255, 0.07);
    color: #e2e8f0;
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: none;
}

.hero .button--ghost:hover {
    background: rgba(255, 255, 255, 0.13);
    box-shadow: none;
    transform: translateY(-2px);
}

/* Single column (no image) — centred */
.hero .hero__grid--single {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero .hero__grid--single .hero__heading {
    font-size: clamp(3rem, 7vw, 5.8rem);
}

.hero .hero__grid--single .hero__body {
    margin-left: auto;
    margin-right: auto;
}

.hero .hero__grid--single .text-image__ctas {
    justify-content: center;
}

.rich-text {
    max-width: 860px;
}

.feature-cards__grid {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
}

.feature-card {
    background: var(--bg-muted);
    border: 1px solid #dbe2ef;
    border-radius: var(--radius-md);
    padding: 1rem;
    min-height: 100%;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    background: var(--bg-elev);
    border-color: rgba(15, 98, 254, 0.3);
    box-shadow: 0 12px 32px rgba(15, 98, 254, 0.1), 0 2px 8px rgba(15, 23, 42, 0.08);
}

.feature-card h3 {
    font-family: "Sora", "Manrope", sans-serif;
    font-size: 1.1rem;
    transition: color 180ms ease;
}

.feature-card:hover h3 {
    color: var(--brand);
}

.feature-card p {
    margin-top: 0.55rem;
    color: var(--ink-soft);
    line-height: 1.6;
}

.feature-card a {
    display: inline-block;
    margin-top: 0.7rem;
    text-decoration: none;
    color: var(--brand);
    font-weight: 700;
    font-size: 0.9rem;
}

.feature-card a::after {
    content: " →";
    display: inline-block;
    transition: transform 180ms ease;
}

.feature-card:hover a::after {
    transform: translateX(3px);
}

.stats-row__grid {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.stat {
    background: #f8faff;
    border: 1px solid #dce4f1;
    border-radius: var(--radius-md);
    padding: 1.1rem 1.2rem;
}

.stat__number {
    font-family: "Sora", "Manrope", sans-serif;
    font-size: clamp(1.6rem, 3.2vw, 2.6rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--brand);
    line-height: 1;
}

.stat__title {
    margin-top: 0.4rem;
    color: #64748b;
    font-size: 0.86rem;
    font-weight: 600;
}

.testimonial {
    background: linear-gradient(135deg, #10192b 0, #17294b 100%);
    border-color: #223b67;
    color: #eef4ff;
}

.testimonial__wrap {
    display: grid;
    grid-template-columns: 96px 1fr;
    align-items: center;
    gap: 1rem;
}

.testimonial img {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.36);
}

.testimonial blockquote {
    font-size: clamp(1.05rem, 1.8vw, 1.35rem);
    line-height: 1.6;
}

.testimonial__attribution {
    margin-top: 0.8rem;
    font-weight: 700;
    color: #cfe0ff;
}

.cta-banner {
    position: relative;
    overflow: hidden;
    color: #fff;
    border-color: #1e4cc3;
    background-color: #1a4cce;
    background-size: cover;
    background-position: center;
}

.cta-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, rgba(10, 20, 45, 0.7), rgba(9, 26, 71, 0.55));
    pointer-events: none;
}

.cta-banner > * {
    position: relative;
    z-index: 1;
}

.cta-banner .component-eyebrow,
.cta-banner__body {
    color: #dce8ff;
}

.button--inverse {
    background: #fff;
    color: #17356f;
    box-shadow: 0 8px 24px rgba(2, 10, 30, 0.22);
}

.button--inverse:hover {
    background: #eef3ff;
}

.button--inverse-ghost {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: none;
}

.button--inverse-ghost:hover {
    background: rgba(255, 255, 255, 0.12);
}

.faq__items {
    margin-top: 0.9rem;
}

.faq__items details {
    border: 1px solid #dde5f1;
    background: #f8fbff;
    border-radius: 0.8rem;
    padding: 0.8rem 0.95rem;
    margin-bottom: 0.5rem;
}

.faq__items summary {
    cursor: pointer;
    font-weight: 700;
    color: #1e293b;
}

.faq__items p {
    margin-top: 0.65rem;
    color: var(--ink-soft);
    line-height: 1.65;
}

.page-builder--empty .component-shell {
    text-align: center;
    color: #64748b;
}

@keyframes blockIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .pb-block {
        opacity: 1;
        transform: none;
        animation: none;
    }

    .button {
        transition: none;
    }
}

@media (max-width: 1024px) {
    .text-image,
    .hero__grid,
    .hero .hero__grid,
    .feature-cards__grid {
        grid-template-columns: 1fr;
    }

    .text-image--image-left .text-image__content,
    .text-image--image-left .text-image__media {
        order: initial;
    }
}

@media (max-width: 760px) {
    .site-header__inner {
        flex-wrap: wrap;
        padding-top: 0.65rem;
        padding-bottom: 0.65rem;
    }

    .site-nav {
        order: 3;
        width: 100%;
        justify-content: flex-start;
        gap: 0.85rem;
    }

    .site-header__cta {
        margin-left: auto;
    }

    .testimonial__wrap {
        grid-template-columns: 1fr;
    }

    .stats-row__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ─── Classes Archive ─────────────────────────────────────── */

.classes-archive {
    max-width: var(--container);
    margin: 0 auto;
    padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 4vw, 3rem);
}

.classes-archive__header {
    margin-bottom: 1.75rem;
}

/* ─── Category Filter Bar ─────────────────────────────────── */

.class-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 2rem;
}

.class-filter-btn {
    display: inline-block;
    padding: 0.4em 1em;
    border-radius: 999px;
    border: 1.5px solid var(--line);
    background: var(--bg-elev);
    color: var(--ink-soft);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: border-color 120ms ease, background 120ms ease, color 120ms ease;
}

.class-filter-btn:hover {
    border-color: var(--brand);
    color: var(--brand);
}

.class-filter-btn.is-active {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

.classes-archive__title {
    font-family: "Sora", "Manrope", sans-serif;
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--ink);
    margin: 0.25rem 0 0.6rem;
}

.classes-archive__intro {
    color: var(--ink-soft);
    font-size: 1.05rem;
    max-width: 52ch;
}

.classes-archive__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.classes-archive__empty {
    color: var(--ink-soft);
    padding: 2rem 0;
}

/* ─── Class Card ──────────────────────────────────────────── */

.class-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-elev);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 140ms ease, transform 140ms ease;
}

.class-card:hover {
    box-shadow: var(--shadow-soft);
    transform: translateY(-2px);
}

.class-card__image {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--bg-muted);
}

.class-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 300ms ease;
}

.class-card:hover .class-card__image img {
    transform: scale(1.03);
}

.class-card__image--placeholder {
    background: linear-gradient(135deg, #e8f0ff, #dde4ef);
}

.class-card__body {
    padding: 1.1rem 1.2rem 1.3rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    flex: 1;
}

.class-card__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.15rem;
}

.class-card__title {
    font-family: "Sora", "Manrope", sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--ink);
    margin: 0;
}

.class-card__description {
    font-size: 0.88rem;
    color: var(--ink-soft);
    line-height: 1.55;
    margin: 0;
}

.class-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 0.6rem;
    border-top: 1px solid var(--line);
    font-size: 0.8rem;
    color: var(--ink-soft);
    font-weight: 600;
}

/* ─── Difficulty / Category Badges ───────────────────────── */

.class-badge {
    display: inline-block;
    padding: 0.2em 0.65em;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    line-height: 1.6;
}

.class-badge--category {
    background: #e8f0ff;
    color: #1a47a8;
}

.class-badge--beginner {
    background: #dcfce7;
    color: #166534;
}

.class-badge--intermediate {
    background: #fef9c3;
    color: #854d0e;
}

.class-badge--advanced {
    background: #fee2e2;
    color: #991b1b;
}

/* ─── Class Detail Page ───────────────────────────────────── */

.class-detail {
    max-width: var(--container);
    margin: 0 auto;
    padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 4vw, 3rem);
}

.class-detail__hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(1.5rem, 3vw, 2.5rem);
    margin-bottom: 0;
}

.class-detail__hero--has-image {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
}

.class-detail__image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4 / 3;
}

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

.class-detail__back {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--brand);
    text-decoration: none;
    margin-bottom: 1.25rem;
}

.class-detail__back:hover {
    text-decoration: underline;
}

.class-detail__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.6rem;
}

.class-detail__title {
    font-family: "Sora", "Manrope", sans-serif;
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--ink);
    margin: 0 0 0.75rem;
}

.class-detail__description {
    font-size: 1.05rem;
    color: var(--ink-soft);
    line-height: 1.7;
    max-width: 56ch;
    margin: 0;
}

.class-detail__meta-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin-top: 2rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-elev);
}

.class-meta-item {
    flex: 1;
    min-width: 150px;
    padding: 1rem 1.25rem;
    border-right: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.class-meta-item:last-child {
    border-right: none;
}

.class-meta-item__label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ink-soft);
}

.class-meta-item__value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--ink);
}

@media (max-width: 1024px) {
    .classes-archive__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .class-detail__hero--has-image {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .classes-archive__grid {
        grid-template-columns: 1fr;
    }

    .class-detail__meta-bar {
        flex-direction: column;
    }

    .class-meta-item {
        border-right: none;
        border-bottom: 1px solid var(--line);
    }

    .class-meta-item:last-child {
        border-bottom: none;
    }
}
