/**
 * Complete Pilates — Beautification Layer
 * Premium polish on top of base.css + components.css
 * Version: 1.0.0
 *
 * Stays on-brand: teal #10b5db, navy #112337, Work Sans + DM Sans
 * Adds: atmosphere, depth, refined motion, elevated interactions
 */

/* ─── Atmosphere: Subtle grain overlay ─────────────────────── */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999;
    opacity: 0.4;
}

/* ─── Enhanced root tokens ─────────────────────────────────── */
:root {
    --shadow-subtle: 0 1px 3px rgba(17, 35, 55, 0.04), 0 1px 2px rgba(17, 35, 55, 0.06);
    --shadow-card: 0 4px 6px -1px rgba(17, 35, 55, 0.06), 0 2px 4px -2px rgba(17, 35, 55, 0.04);
    --shadow-card-hover: 0 20px 40px -12px rgba(17, 35, 55, 0.12), 0 8px 16px -8px rgba(16, 181, 219, 0.08);
    --shadow-elevated: 0 24px 48px -16px rgba(17, 35, 55, 0.15), 0 12px 24px -8px rgba(16, 181, 219, 0.06);
    --transition-smooth: cubic-bezier(0.22, 1, 0.36, 1);
    --transition-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ─── Typography refinements ───────────────────────────────── */

/* Tighten display headings for premium feel */
h1, .h1 {
    letter-spacing: -0.025em;
    text-wrap: balance;
}

h2, .h2,
.section-header h2 {
    letter-spacing: -0.02em;
    text-wrap: balance;
}

/* Improve body text readability */
.post-content p,
.blog-content p,
.service-content p,
.location-content p,
article p {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Section labels — refined uppercase tracking */
.section-label {
    letter-spacing: 0.12em;
    font-weight: 600;
}

/* ─── Button enhancements ──────────────────────────────────── */

.btn {
    transition: all 0.35s var(--transition-smooth);
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

/* Shimmer effect on primary buttons */
.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        transparent 30%,
        rgba(255, 255, 255, 0.12) 45%,
        rgba(255, 255, 255, 0.18) 50%,
        rgba(255, 255, 255, 0.12) 55%,
        transparent 70%
    );
    transform: translateX(-150%);
    transition: transform 0.6s var(--transition-smooth);
    z-index: -1;
}

.btn-primary:hover::before {
    transform: translateX(150%);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px -6px rgba(16, 181, 219, 0.35);
}

.btn-outline:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px -6px rgba(17, 35, 55, 0.15);
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px -6px rgba(255, 255, 255, 0.25);
}

/* ─── Card system — depth and lift ─────────────────────────── */

.card,
.team-card,
.service-card,
.location-card {
    transition: transform 0.4s var(--transition-smooth),
                box-shadow 0.4s var(--transition-smooth);
    box-shadow: var(--shadow-card);
}

.card:hover,
.team-card:hover,
.service-card:hover,
.location-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-card-hover);
}

/* Card image zoom on hover */
.card img,
.team-card img,
.service-card img,
.location-card img,
.featured-post-card img {
    transition: transform 0.5s var(--transition-smooth);
}

.card:hover img,
.team-card:hover img,
.service-card:hover img,
.location-card:hover img,
.featured-post-card:hover img {
    transform: scale(1.04);
}

/* Ensure images don't overflow on scale */
.card .card-image,
.team-card .team-photo,
.service-card .service-image,
.location-card .location-image,
.featured-post-card .post-image {
    overflow: hidden;
}

/* ─── Hero section — elevated atmosphere ───────────────────── */

/* Add subtle radial glow behind hero content */
.hero-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 30%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(16, 181, 219, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
}

/* ─── Page hero ────────────────────────────────────────────── */

.page-hero {
    position: relative;
    overflow: hidden;
}

/* ─── Blog listing — elevated card design ──────────────────── */

.featured-post-card {
    transition: transform 0.4s var(--transition-smooth),
                box-shadow 0.4s var(--transition-smooth);
    box-shadow: var(--shadow-subtle);
    border-radius: 12px;
    overflow: hidden;
}

.featured-post-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-elevated);
}

/* Blog category pills — refined */
.filter-bar .filter-btn,
.post-category-tag {
    transition: all 0.25s var(--transition-smooth);
}

.filter-bar .filter-btn:hover {
    transform: translateY(-1px);
}

.filter-bar .filter-btn.active {
    box-shadow: 0 4px 12px -4px rgba(16, 181, 219, 0.3);
}

/* Blog post meta — softer treatment */
.post-meta,
.post-date,
.post-read-time {
    letter-spacing: 0.02em;
}

/* ─── Testimonial cards — glass effect ─────────────────────── */

.testimonial-card {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(16, 181, 219, 0.08);
    transition: transform 0.35s var(--transition-smooth),
                box-shadow 0.35s var(--transition-smooth),
                border-color 0.35s var(--transition-smooth);
}

.testimonial-card:hover {
    border-color: rgba(16, 181, 219, 0.2);
    box-shadow: 0 12px 32px -8px rgba(17, 35, 55, 0.1);
}

/* Star ratings — warm glow */
.stars,
.star-rating {
    filter: drop-shadow(0 1px 3px rgba(250, 204, 21, 0.3));
}

/* ─── Section transitions — smooth dividers ────────────────── */

.section.bg-light + .section.bg-white,
.section.bg-white + .section.bg-light {
    position: relative;
}

.section.bg-light + .section.bg-white::before,
.section.bg-white + .section.bg-light::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(80%, 800px);
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(16, 181, 219, 0.15), transparent);
}

/* ─── Location/Studio pages — premium info cards ───────────── */

.sidebar-card {
    box-shadow: var(--shadow-card);
    transition: box-shadow 0.35s var(--transition-smooth);
    border: 1px solid rgba(16, 181, 219, 0.06);
}

.sidebar-card:hover {
    box-shadow: var(--shadow-card-hover);
}

/* Info blocks — subtle left accent */
.info-block {
    position: relative;
    padding-left: 16px;
}

.info-block::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 3px;
    background: linear-gradient(180deg, rgba(16, 181, 219, 0.4), rgba(16, 181, 219, 0.08));
    border-radius: 2px;
}

/* ─── Team cards — portrait enhancement ────────────────────── */

.team-card .team-photo {
    position: relative;
}

.team-card .team-photo::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to top, rgba(17, 35, 55, 0.06), transparent);
    pointer-events: none;
    border-radius: inherit;
}

/* ─── Navigation — refined glass header ────────────────────── */

.site-header {
    transition: all 0.4s var(--transition-smooth);
}

.site-header.scrolled {
    box-shadow: 0 4px 24px -4px rgba(17, 35, 55, 0.08);
}

/* Nav link hover — teal underline reveal (desktop only) */
.main-nav-desktop .nav-list > li > a {
    position: relative;
}

.main-nav-desktop .nav-list > li > a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, rgba(16, 181, 219, 0.8), rgba(16, 181, 219, 0.4));
    border-radius: 1px;
    transition: width 0.3s var(--transition-smooth), left 0.3s var(--transition-smooth);
}

.main-nav-desktop .nav-list > li > a:hover::after,
.main-nav-desktop .nav-list > li.current-menu-item > a::after {
    width: 100%;
    left: 0;
}

/* ─── Footer grid — 5 columns ──────────────────────────────── */

.footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr 1.1fr;
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ─── Service hero — stronger overlay for text readability ─── */

.service-hero-bg::after {
    background: linear-gradient(
        135deg,
        rgba(17, 35, 55, 0.92) 0%,
        rgba(17, 35, 55, 0.82) 50%,
        rgba(17, 35, 55, 0.72) 100%
    ) !important;
}

/* ─── Footer — Dark ──────────────────────────────────────── */

.site-footer {
    position: relative;
    background: var(--color-gray-900);
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(90%, 1100px);
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
}

/* Adjust footer borders for grey background */
.site-footer .footer-bottom {
    border-color: rgba(255, 255, 255, 0.12);
}

/* Adjust footer inline border dividers */
.site-footer [style*="border-top: 1px solid var(--color-gray-800)"] {
    border-top-color: rgba(255, 255, 255, 0.12) !important;
}

/* Footer social links — hover glow */
.social-links a {
    transition: all 0.3s var(--transition-smooth);
}

.social-links a:hover {
    transform: translateY(-3px);
    filter: drop-shadow(0 4px 8px rgba(16, 181, 219, 0.25));
}

/* ─── CTA blocks — attention gradient ──────────────────────── */

.cta-block {
    position: relative;
    overflow: hidden;
}

.cta-block::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.04) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* ─── Pricing tables — highlight pulse ─────────────────────── */

.pricing-highlight,
.pricing-new-client {
    position: relative;
    overflow: hidden;
}

.pricing-highlight::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(16, 181, 219, 0.04), transparent);
    animation: priceShimmer 4s ease-in-out infinite;
}

@keyframes priceShimmer {
    0%, 100% { left: -100%; }
    50% { left: 150%; }
}

/* ─── FAQ accordion — refined interactions ─────────────────── */

.faq-item,
details.faq-item {
    transition: all 0.3s var(--transition-smooth);
    border-left: 3px solid transparent;
}

.faq-item.active,
.faq-item[open],
details.faq-item[open] {
    border-left-color: rgba(16, 181, 219, 0.5);
    background: rgba(16, 181, 219, 0.02);
}

/* ─── Google reviews carousel — refined cards ──────────────── */

.review-card {
    border: 1px solid rgba(16, 181, 219, 0.06);
    transition: border-color 0.3s var(--transition-smooth);
}

.review-card:hover {
    border-color: rgba(16, 181, 219, 0.15);
}

/* ─── Forms — refined inputs ───────────────────────────────── */

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
textarea,
select {
    transition: border-color 0.3s var(--transition-smooth),
                box-shadow 0.3s var(--transition-smooth);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
textarea:focus,
select:focus {
    border-color: rgba(16, 181, 219, 0.5);
    box-shadow: 0 0 0 4px rgba(16, 181, 219, 0.08);
    outline: none;
}

/* ─── Reading progress bar — gradient ──────────────────────── */

.reading-progress-bar {
    background: linear-gradient(90deg, #10b5db, #0e9abd, #0c7fa0) !important;
}

/* ─── Scroll reveal — smoother entrance ────────────────────── */

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s var(--transition-smooth),
                transform 0.7s var(--transition-smooth);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.reveal-stagger > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s var(--transition-smooth),
                transform 0.5s var(--transition-smooth);
}

.reveal-stagger.revealed > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger.revealed > *:nth-child(2) { transition-delay: 80ms; }
.reveal-stagger.revealed > *:nth-child(3) { transition-delay: 160ms; }
.reveal-stagger.revealed > *:nth-child(4) { transition-delay: 240ms; }
.reveal-stagger.revealed > *:nth-child(5) { transition-delay: 320ms; }
.reveal-stagger.revealed > *:nth-child(6) { transition-delay: 400ms; }

.reveal-stagger.revealed > * {
    opacity: 1;
    transform: translateY(0);
}

/* ─── Image treatment — refined corners + shadow ───────────── */

.post-hero-image img,
.blog-hero-image img {
    box-shadow: 0 8px 32px -8px rgba(17, 35, 55, 0.12);
}

/* ─── Selection color — on-brand ───────────────────────────── */

::selection {
    background: rgba(16, 181, 219, 0.15);
    color: inherit;
}

::-moz-selection {
    background: rgba(16, 181, 219, 0.15);
    color: inherit;
}

/* ─── Scrollbar — refined (Chromium only) ──────────────────── */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f8f9fa;
}

::-webkit-scrollbar-thumb {
    background: rgba(17, 35, 55, 0.15);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(16, 181, 219, 0.4);
}

/* ─── Reduced motion — respect user preferences ────────────── */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .btn-primary::before {
        display: none;
    }

    .pricing-highlight::after {
        display: none;
    }

    body::after {
        display: none;
    }
}

/* ═══════════════════════════════════════════════════════════════
   PRESS PAGE
   ═══════════════════════════════════════════════════════════════ */

/* ─── Press Hero ───────────────────────────────────────────── */

.press-hero {
    padding: calc(80px + 4rem) 0 4rem;
    background: linear-gradient(165deg, #112337 0%, #0e1d2d 60%, #0a1520 100%);
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.press-hero::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(16, 181, 219, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.press-hero::after {
    content: '';
    position: absolute;
    bottom: -150px;
    left: -50px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(16, 181, 219, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.press-hero__label {
    color: rgba(16, 181, 219, 0.9);
    margin-bottom: 1rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.press-hero__title {
    font-family: 'Work Sans', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin: 0 0 1.25rem;
    color: #fff;
}

.press-hero__intro {
    font-size: 1.125rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
    max-width: 640px;
    margin: 0 auto 2.5rem;
}

/* ─── Press Stats ──────────────────────────────────────────── */

.press-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.press-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.press-stat__number {
    font-family: 'Work Sans', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #10b5db;
    letter-spacing: -0.02em;
    line-height: 1;
}

.press-stat__label {
    font-family: 'Questrial', sans-serif;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.5);
}

/* ─── Press Hero Contact ───────────────────────────────────── */

.press-hero__contact {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.press-hero__contact p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 1rem;
}

/* ─── Logo ticker ──────────────────────────────────────────── */

.press-logos {
    padding: 3rem 0;
    background: #f8f9fa;
    overflow: hidden;
}

.press-logos__label {
    text-align: center;
    margin-bottom: 2rem;
    color: rgba(17, 35, 55, 0.4);
    font-size: 0.75rem;
}

.press-logos__track {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

.press-logos__scroll {
    display: flex;
    gap: 3rem;
    align-items: center;
    animation: pressLogoScroll 40s linear infinite;
    width: max-content;
}

.press-logos__item {
    flex-shrink: 0;
    height: 32px;
    display: flex;
    align-items: center;
}

.press-logos__item img {
    height: 28px;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.5;
    transition: all 0.4s var(--transition-smooth);
}

.press-logos__item img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

@keyframes pressLogoScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ─── Year filter ──────────────────────────────────────────── */

.press-filter {
    padding: 2rem 0 0;
    position: sticky;
    top: 72px;
    z-index: 50;
    background: #fff;
    border-bottom: 1px solid rgba(17, 35, 55, 0.06);
}

.press-filter .filter-bar {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
    padding-bottom: 1.5rem;
}

/* ─── Year sections ────────────────────────────────────────── */

.press-year {
    padding: 3rem 0;
}

.press-year:nth-child(even) {
    background: #f8f9fa;
}

.press-year__header {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(16, 181, 219, 0.15);
}

.press-year__title {
    font-family: 'Work Sans', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #112337;
    margin: 0;
    letter-spacing: -0.02em;
}

.press-year__count {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.875rem;
    color: rgba(17, 35, 55, 0.4);
}

/* ─── Press grid ───────────────────────────────────────────── */

.press-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.25rem;
}

/* ─── Press card ───────────────────────────────────────────── */

.press-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: #fff;
    border-radius: 12px;
    border: 1px solid rgba(17, 35, 55, 0.06);
    text-decoration: none;
    color: inherit;
    transition: all 0.35s var(--transition-smooth);
    box-shadow: var(--shadow-subtle);
}

.press-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
    border-color: rgba(16, 181, 219, 0.15);
}

.press-card__logo {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 8px;
    border: 1px solid rgba(17, 35, 55, 0.04);
}

.press-card__logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.press-card__logo-text {
    font-family: 'Work Sans', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #10b5db;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

.press-card__content {
    flex: 1;
    min-width: 0;
}

.press-card__pub {
    display: block;
    font-family: 'Work Sans', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #10b5db;
    margin-bottom: 0.35rem;
}

.press-card__desc {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: #112337;
    margin: 0 0 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.press-card__date {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.8rem;
    color: rgba(17, 35, 55, 0.4);
}

.press-card__arrow {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: rgba(17, 35, 55, 0.2);
    transition: all 0.3s var(--transition-smooth);
    margin-top: 2px;
}

.press-card:hover .press-card__arrow {
    color: #10b5db;
    background: rgba(16, 181, 219, 0.06);
    transform: translate(2px, -2px);
}

/* ─── Press page on even bg sections ───────────────────────── */

.press-year:nth-child(even) .press-card {
    background: #fff;
}

/* ─── Press page responsive ────────────────────────────────── */

@media (max-width: 768px) {
    .press-hero {
        padding: 4rem 0 3rem;
    }

    .press-hero__title {
        font-size: 2.25rem;
    }

    .press-stats {
        gap: 2rem;
    }

    .press-stat__number {
        font-size: 2rem;
    }

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

    .press-filter {
        top: 60px;
    }

    .press-filter .filter-bar {
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        flex-wrap: nowrap;
        padding-left: 1rem;
        padding-right: 1rem;
        scrollbar-width: none;
    }

    .press-filter .filter-bar::-webkit-scrollbar {
        display: none;
    }

    .press-filter .filter-btn {
        white-space: nowrap;
    }
}

@media (max-width: 480px) {
    .press-hero__intro {
        font-size: 1rem;
    }

    .press-stats {
        gap: 1.5rem;
    }

    .press-card {
        padding: 1rem;
    }

    .press-card__logo {
        width: 48px;
        height: 48px;
    }
}

/* ─── On Demand ──────────────────────────────────────────── */

/* Hero */
.od-hero {
    position: relative;
    min-height: 86vh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    color: white;
}
.od-hero__bg {
    position: absolute;
    inset: 0;
}
.od-hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
}
.od-hero__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top,
            rgba(10, 18, 32, 0.98) 0%,
            rgba(10, 18, 32, 0.78) 38%,
            rgba(10, 18, 32, 0.38) 65%,
            rgba(10, 18, 32, 0.12) 100%),
        linear-gradient(to right,
            rgba(10, 18, 32, 0.42) 0%,
            transparent 65%);
}
.od-hero__inner {
    position: relative;
    z-index: 1;
    padding-top: var(--space-4xl);
    padding-bottom: var(--space-4xl);
    max-width: 680px;
}
.od-hero__label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-label);
    font-size: 0.6875rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    background: var(--color-primary);
    padding: 6px 18px;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-xl);
}
.od-hero h1 {
    font-size: clamp(2.75rem, 5.5vw, 4.25rem);
    font-weight: 800;
    line-height: 1.04;
    margin-bottom: var(--space-lg);
    letter-spacing: -0.025em;
    text-shadow: 0 2px 32px rgba(0,0,0,0.25);
}
.od-hero__desc {
    font-size: 1.125rem;
    line-height: 1.65;
    opacity: 0.78;
    max-width: 520px;
    margin-bottom: var(--space-2xl);
}
.od-hero__ctas {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}
.od-hero__ghost {
    border-color: rgba(255,255,255,0.32) !important;
    color: rgba(255,255,255,0.88) !important;
    backdrop-filter: blur(6px);
    background: rgba(255,255,255,0.07) !important;
}
.od-hero__ghost:hover {
    background: rgba(255,255,255,0.15) !important;
    border-color: rgba(255,255,255,0.55) !important;
    transform: translateY(-2px) !important;
}

/* Stats strip */
.od-strip {
    background: var(--color-secondary);
    padding: 0;
}
.od-strip__inner {
    display: flex;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}
.od-strip__stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    color: rgba(255,255,255,0.5);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: var(--space-xl) var(--space-2xl);
    border-right: 1px solid rgba(255,255,255,0.08);
    min-width: 130px;
}
.od-strip__stat:last-child { border-right: none; }
.od-strip__stat strong {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    line-height: 1;
    letter-spacing: -0.03em;
}

/* Subscription */
.od-sub {
    display: grid;
    grid-template-columns: 5fr 6fr;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05), 0 24px 64px rgba(0,0,0,0.09);
}
.od-sub__img {
    position: relative;
    min-height: 420px;
}
.od-sub__img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.od-sub__content {
    padding: var(--space-3xl);
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-left: 4px solid var(--color-primary);
}
.od-sub__label {
    font-family: var(--font-label);
    font-size: 0.6875rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: var(--space-md);
}
.od-sub__content h2 {
    font-size: 2rem;
    margin-bottom: var(--space-md);
    letter-spacing: -0.025em;
}
.od-sub__pricing {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: var(--space-sm);
}
.od-sub__price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1;
    letter-spacing: -0.04em;
}
.od-sub__per {
    font-size: 1rem;
    color: var(--color-gray-400);
}
.od-sub__trial {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-primary);
    background: var(--color-primary-light);
    padding: 7px 16px;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-xl);
    width: fit-content;
}
.od-sub__content p {
    font-size: 0.9375rem;
    color: var(--color-gray-600);
    line-height: 1.7;
}
.od-sub__content .btn {
    margin-top: var(--space-xl);
    align-self: flex-start;
}

/* Course header */
.od-courses-header {
    padding: var(--space-4xl) 0 var(--space-xl);
    background: var(--color-gray-50);
}

/* Sticky nav */
.od-nav {
    background: rgba(255,255,255,0.97);
    border-bottom: 1px solid var(--color-gray-200);
    padding: var(--space-md) 0;
    position: sticky;
    top: var(--header-height);
    z-index: 90;
    backdrop-filter: blur(8px);
    box-shadow: 0 1px 0 rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.05);
}
.od-nav__inner {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding: 2px 0;
}
.od-nav__inner::-webkit-scrollbar { display: none; }
.od-nav__pill {
    flex-shrink: 0;
    padding: 8px 18px;
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-gray-600);
    background: var(--color-gray-50);
    border: 1px solid var(--color-gray-200);
    text-decoration: none;
    transition: all 0.18s;
    white-space: nowrap;
}
.od-nav__pill:hover {
    background: var(--color-gray-100, #f3f4f6);
    color: var(--color-dark);
    border-color: var(--color-gray-300, #d1d5db);
}
.od-nav__pill.is-active {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
    box-shadow: 0 2px 10px rgba(16,181,219,0.25);
}

/* Course card section */
.od-card-section {
    padding: var(--space-4xl) 0;
    scroll-margin-top: calc(var(--header-height) + 64px);
}
.od-card-section:nth-child(even of .od-card-section) {
    background: var(--color-gray-50);
}

/* Course card */
.od-card {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: var(--space-3xl);
    align-items: center;
}
.od-card--flip {
    grid-template-columns: 7fr 5fr;
}
.od-card--flip .od-card__image { order: 2; }
.od-card--flip .od-card__body { order: 1; }

.od-card__image {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1), 0 32px 64px rgba(0,0,0,0.07);
}
.od-card__image img {
    width: 100%;
    display: block;
    aspect-ratio: 4/3;
    object-fit: cover;
    transition: transform 0.55s var(--transition-smooth, cubic-bezier(0.22,1,0.36,1));
}
.od-card__image:hover img {
    transform: scale(1.05);
}
.od-card__badge {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    background: var(--color-primary);
    color: white;
    font-weight: 800;
    font-size: 1.0625rem;
    padding: 7px 18px;
    border-radius: var(--radius-full);
    box-shadow: 0 2px 12px rgba(0,0,0,0.2);
    letter-spacing: -0.01em;
}
.od-card__weeks {
    position: absolute;
    bottom: var(--space-md);
    left: var(--space-md);
    background: rgba(10,18,32,0.72);
    color: rgba(255,255,255,0.9);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: var(--radius-full);
    backdrop-filter: blur(8px);
    letter-spacing: 0.03em;
}

.od-card__body h3 {
    font-size: 1.75rem;
    margin-bottom: var(--space-xs);
    letter-spacing: -0.025em;
    line-height: 1.2;
}
.od-card__by {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: var(--space-xl);
}
.od-card__by span {
    font-weight: 400;
    color: var(--color-gray-400);
}

.od-card__questions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: var(--space-xl);
}
.od-card__questions p {
    font-size: 0.9375rem;
    color: var(--color-gray-600);
    line-height: 1.55;
    padding-left: 1.5rem;
    position: relative;
    margin: 0;
}
.od-card__questions p::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: 700;
    font-size: 0.875rem;
}

.od-card__details {
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-xl);
    background: var(--color-gray-50);
    overflow: hidden;
}
.od-card__details summary {
    padding: var(--space-md) var(--space-lg);
    font-weight: 700;
    font-size: 0.875rem;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--color-dark);
    transition: background 0.15s;
}
.od-card__details summary:hover {
    background: rgba(0,0,0,0.02);
}
.od-card__details summary::-webkit-details-marker { display: none; }
.od-card__details summary svg {
    transition: transform 0.25s;
    color: var(--color-gray-400);
    margin-left: auto;
}
.od-card__details[open] summary {
    border-bottom: 1px solid var(--color-gray-200);
}
.od-card__details[open] summary svg {
    transform: rotate(180deg);
}
.od-card__details ul {
    padding: var(--space-md) var(--space-lg) var(--space-lg);
    margin: 0;
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px var(--space-lg);
}
.od-card__details li {
    font-size: 0.8125rem;
    color: var(--color-gray-600);
    padding-left: 1.375rem;
    position: relative;
    line-height: 1.45;
}
.od-card__details li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--color-primary);
    opacity: 0.65;
}

/* ─── On Demand — Responsive ─────────────────────────────── */

@media (max-width: 768px) {
    .od-hero { min-height: 70vh; }
    .od-hero__inner { max-width: 100%; }
    .od-hero h1 { font-size: 2.25rem; }
    .od-hero__desc { font-size: 1rem; }
    .od-hero__ctas { flex-direction: column; align-items: stretch; }
    .od-strip__stat {
        flex: 1 1 50%;
        min-width: 0;
        border-right: 1px solid rgba(255,255,255,0.08);
        border-bottom: 1px solid rgba(255,255,255,0.08);
        padding: var(--space-lg) var(--space-md);
    }
    .od-strip__stat:nth-child(even) { border-right: none; }
    .od-strip__stat:nth-child(n+3) { border-bottom: none; }
    .od-strip__stat strong { font-size: 1.5rem; }
    .od-sub { grid-template-columns: 1fr; }
    .od-sub__img { min-height: 260px; }
    .od-sub__content {
        padding: var(--space-xl);
        border-left: none;
        border-top: 4px solid var(--color-primary);
    }
    .od-sub__price { font-size: 2.25rem; }
    .od-card,
    .od-card--flip { grid-template-columns: 1fr; gap: var(--space-xl); }
    .od-card--flip .od-card__image,
    .od-card--flip .od-card__body { order: unset; }
    .od-card__details ul { grid-template-columns: 1fr; }
    .od-card__body h3 { font-size: 1.5rem; }
}

/* ─── Print — hide enhancements ────────────────────────────── */

@media print {
    body::after,
    .reading-progress-bar {
        display: none !important;
    }
}
