/**
 * Pixel-Perfect Centered Focus Testimonials Showcase
 * Exact Clone of Reference Design (media_1789471667340.png)
 *
 * Architecture:
 * - 80vh Proportion with Vertical Centering
 * - Centered Focus Slider (Active Card Dead Center, Flanking Cards Symmetrically Peeking)
 * - 1 Featured Full-Bleed Video Card with Female Founder Portrait, White Play Button & Lightbox
 * - 9 Pure White Text Cards with Avatar, Role, Twitter Bird Icon, Quote, Stars & Date
 * - Left & Right Edge Blur Vignettes (Frosted Glass Mask)
 * - Centered Header Hierarchy: Eyebrow Pill, Heading, Subtitle & "Start Your Project" CTA Button
 * - Floating Circular Navigation Arrows (< >) Positioned on Sides of Active Center Card
 * - 100% Brand Typography (Space Grotesk & Inter) & Color Scheme (#14B866, #0F1115, #FFFFFF)
 * - Zero personal names used in styles or classes
 */

/* ── 01. Section Canvas (80vh Layout) ───────────────────────── */

.cst-section {
    position: relative;
    width: 100%;
    min-height: var(--cst-section-height, 80vh);
    background-color: var(--cst-bg-color, #FAFAF8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: clamp(48px, 5.5vh, 80px) 0 clamp(48px, 5.5vh, 80px) 0;
    box-sizing: border-box;
    overflow: hidden;
    font-family: var(--e-global-typography-text-font-family, 'Helvetica', -apple-system, sans-serif);
    color: var(--e-global-color-primary, #0F1115);
}

/* ── 02. Centered Header & CTA Block ────────────────────────── */

.cst-header-wrap {
    max-width: 840px;
    width: 100%;
    margin: 0 auto clamp(28px, 3.8vh, 44px) auto;
    padding: 0 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 5;
    box-sizing: border-box;
}

/* Eyebrow Pill Badge - Unified Website Signature */
.cst-eyebrow-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 999px;
    background: rgba(20, 184, 102, 0.08);
    border: 1px solid rgba(20, 184, 102, 0.25);
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

.cst-eyebrow-pill:hover {
    border-color: rgba(20, 184, 102, 0.45);
    box-shadow: 0 4px 14px rgba(20, 184, 102, 0.12);
    transform: translateY(-1px);
}

.cst-eyebrow-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--e-global-color-accent, #14B866);
    box-shadow: 0 0 0 0 rgba(20, 184, 102, 0.7);
    animation: cstPulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    flex-shrink: 0;
}

@keyframes cstPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(20, 184, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(20, 184, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(20, 184, 102, 0);
    }
}

.cst-eyebrow-pill__text {
    font-family: var(--e-global-typography-primary-font-family, 'Helvetica', sans-serif);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #334155;
}

/* Main Heading tailored to website */
.cst-heading {
    font-family: var(--e-global-typography-primary-font-family, 'Helvetica', sans-serif);
    font-size: clamp(30px, 3.6vw, 50px);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.03em;
    color: var(--e-global-color-primary, #0F1115);
    margin: 0 0 14px 0;
    max-width: 780px;
}

/* Subtitle */
.cst-subtitle {
    font-family: var(--e-global-typography-text-font-family, 'Helvetica', sans-serif);
    font-size: clamp(14px, 1.1vw, 16px);
    line-height: 1.55;
    color: #4B5563;
    max-width: 620px;
    margin: 0 0 22px 0;
}

/* CTA Pill Button */
.cst-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: var(--e-global-button-border-radius, 10px);
    background: #0F1115;
    color: #FFFFFF;
    font-family: var(--e-global-typography-primary-font-family, 'Helvetica', sans-serif);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    line-height: 1;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 18px rgba(15, 17, 21, 0.15);
    cursor: pointer;
}

.cst-cta-btn:hover {
    background: #14B866;
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(20, 184, 102, 0.4);
}

.cst-cta-btn:active {
    transform: translateY(0) scale(0.97);
}


/* ── 03. Centered Focus Carousel Viewport ───────────────────── */

.cst-carousel-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    overflow: visible;
    z-index: 2;
    box-sizing: border-box;
}

.cst-carousel-viewport {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 24px 0 32px 0;
    user-select: none;
    -webkit-user-select: none;
}

/* Track holding all cards with buttery smooth transition */
.cst-carousel-track {
    display: flex;
    align-items: center;
    gap: 24px;
    width: max-content;
    will-change: transform;
    transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
    cursor: grab;
}

.cst-carousel-track.is-dragging {
    cursor: grabbing;
    transition: none !important;
}


/* ── 04. Left & Right Edge Blur Vignettes ────────────────────── */

.cst-edge-blur {
    position: absolute;
    top: 0;
    bottom: 0;
    width: clamp(70px, 12vw, 180px);
    pointer-events: none;
    z-index: 8;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.cst-edge-blur--left {
    left: 0;
    background: linear-gradient(to right, var(--cst-bg-color, #FAFAF8) 25%, rgba(250, 250, 248, 0.75) 60%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, black 35%, transparent 100%);
    mask-image: linear-gradient(to right, black 35%, transparent 100%);
}

.cst-edge-blur--right {
    right: 0;
    background: linear-gradient(to left, var(--cst-bg-color, #FAFAF8) 25%, rgba(250, 250, 248, 0.75) 60%, transparent 100%);
    -webkit-mask-image: linear-gradient(to left, black 35%, transparent 100%);
    mask-image: linear-gradient(to left, black 35%, transparent 100%);
}


/* ── 05. Floating Navigation Arrow Buttons ──────────────────── */

.cst-floating-nav {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: clamp(340px, 28vw, 400px); /* Exactly spans the active center card width */
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 10;
}

/* ══════════════════════════════════════════════════════════════════
 * 05. Floating Navigation Arrow Buttons
 * Strictly forbids Astra blue, styles Right Arrow green by default,
 * and hides arrows at boundaries
 * ══════════════════════════════════════════════════════════════════ */

/* Universal anti-blue reset for all buttons in .cst-section */
body .cst-section button,
body .cst-section button:focus,
body .cst-section button:focus-visible,
body .cst-section button:active,
body.ast-page-builder-template .cst-section button,
body.ast-page-builder-template .cst-section button:focus,
body.ast-page-builder-template .cst-section button:focus-visible,
body.ast-page-builder-template .cst-section button:active {
    outline: none !important;
    outline-color: transparent !important;
    border-color: transparent !important;
    -webkit-tap-highlight-color: transparent !important;
}

.cst-floating-nav {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: clamp(340px, 28vw, 400px); /* Exactly spans the active center card width */
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 10;
}

/* Base button properties */
body .cst-section .cst-floating-nav button.cst-nav-btn,
body .cst-section .cst-floating-nav .cst-nav-btn,
body.ast-page-builder-template .cst-section .cst-floating-nav button.cst-nav-btn {
    pointer-events: auto;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none !important;
    border-color: transparent !important;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    outline: none !important;
    outline-color: transparent !important;
    padding: 0 !important;
    -webkit-tap-highlight-color: transparent !important;
    transition: background 0.3s cubic-bezier(0.22, 1, 0.36, 1), 
                transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), 
                box-shadow 0.3s cubic-bezier(0.22, 1, 0.36, 1),
                opacity 0.3s ease,
                visibility 0.3s ease !important;
}

/* ── PREV (LEFT) ARROW BUTTON ── */
body .cst-section .cst-floating-nav button.cst-nav-btn--prev,
body .cst-section .cst-floating-nav .cst-nav-btn--prev,
body.ast-page-builder-template .cst-section .cst-floating-nav button.cst-nav-btn--prev {
    background-color: #23272F !important;
    background: #23272F !important;
    color: #FFFFFF !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28) !important;
    transform: translateX(-50%);
}

body .cst-section .cst-floating-nav button.cst-nav-btn--prev:hover,
body .cst-section .cst-floating-nav .cst-nav-btn--prev:hover {
    background-color: var(--e-global-color-accent, #14B866) !important;
    background: var(--e-global-color-accent, #14B866) !important;
    box-shadow: 0 8px 24px rgba(20, 184, 102, 0.45) !important;
    transform: translateX(-50%) scale(1.06);
}

body .cst-section .cst-floating-nav button.cst-nav-btn--prev:active,
body .cst-section .cst-floating-nav .cst-nav-btn--prev:active {
    transform: translateX(-50%) scale(1.02) !important;
}

/* When reached the last card, Prev button turns active GREEN so user is guided back */
body .cst-section .cst-floating-nav button.cst-nav-btn--prev.is-end-back,
body .cst-section .cst-floating-nav .cst-nav-btn--prev.is-end-back,
body.ast-page-builder-template .cst-section .cst-floating-nav button.cst-nav-btn--prev.is-end-back {
    background-color: var(--e-global-color-accent, #14B866) !important;
    background: var(--e-global-color-accent, #14B866) !important;
    color: #FFFFFF !important;
    box-shadow: 0 8px 24px rgba(20, 184, 102, 0.5) !important;
}

/* ── NEXT (RIGHT) ARROW BUTTON: ALWAYS BRAND ACCENT GREEN BY DEFAULT ── */
body .cst-section .cst-floating-nav button.cst-nav-btn--next,
body .cst-section .cst-floating-nav .cst-nav-btn--next,
body.ast-page-builder-template .cst-section .cst-floating-nav button.cst-nav-btn--next {
    background-color: var(--e-global-color-accent, #14B866) !important;
    background: var(--e-global-color-accent, #14B866) !important;
    color: #FFFFFF !important;
    box-shadow: 0 8px 24px rgba(20, 184, 102, 0.45) !important;
    transform: translateX(50%);
}

body .cst-section .cst-floating-nav button.cst-nav-btn--next:hover,
body .cst-section .cst-floating-nav .cst-nav-btn--next:hover {
    background-color: #109e57 !important;
    background: #109e57 !important;
    box-shadow: 0 10px 28px rgba(20, 184, 102, 0.6) !important;
    transform: translateX(50%) scale(1.06);
}

body .cst-section .cst-floating-nav button.cst-nav-btn--next:active,
body .cst-section .cst-floating-nav .cst-nav-btn--next:active {
    transform: translateX(50%) scale(1.02) !important;
}

/* SVG chevrons inside nav buttons */
.cst-section .cst-floating-nav .cst-nav-btn svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: #FFFFFF !important;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
    display: block;
    pointer-events: none;
    transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.cst-section .cst-floating-nav .cst-nav-btn--prev:hover svg {
    transform: translateX(-2px);
}

.cst-section .cst-floating-nav .cst-nav-btn--next:hover svg {
    transform: translateX(2px);
}

/* ── HIDDEN NAV ARROWS AT BOUNDARIES ── */
body .cst-section .cst-floating-nav button.cst-nav-btn.is-hidden,
body .cst-section .cst-floating-nav .cst-nav-btn.is-hidden,
body.ast-page-builder-template .cst-section .cst-floating-nav button.cst-nav-btn.is-hidden {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: scale(0.6) !important;
}


/* ── 06. Universal Card Baseline ────────────────────────────── */

.cst-card {
    flex: 0 0 clamp(310px, 26vw, 380px);
    width: clamp(310px, 26vw, 380px);
    height: clamp(390px, 32vw, 460px);
    border-radius: 24px;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1), 
                opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.65s ease;
    transform: scale(0.92);
    opacity: 0.68;
    cursor: pointer;
}

/* Active Center Card Highlight */
.cst-card.is-active {
    transform: scale(1.04);
    opacity: 1;
    z-index: 4;
    cursor: default;
    box-shadow: 0 24px 60px -12px rgba(15, 23, 42, 0.16),
                0 4px 16px rgba(0, 0, 0, 0.04);
}

/* Flanking cards hover cursor */
.cst-card:not(.is-active):hover {
    opacity: 0.88;
    transform: scale(0.95);
}


/* ── 07. Type A: Featured Video Card ────────────────────────── */

.cst-card--video {
    background-color: #1A1D24;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(24px, 2.4vw, 30px);
    color: #FFFFFF;
}

/* Full-bleed Portrait Cover Image */
.cst-card__video-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    transition: transform 0.6s ease;
}

.cst-card--video:hover .cst-card__video-bg {
    /* no image scale */
}

/* Dark Vignette Gradient Overlay */
.cst-card__video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, 
        rgba(0, 0, 0, 0.5) 0%, 
        rgba(0, 0, 0, 0.05) 35%, 
        rgba(0, 0, 0, 0.25) 65%, 
        rgba(0, 0, 0, 0.75) 100%
    );
    z-index: 1;
}

/* Video Card Top Header */
.cst-card__video-header {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    width: 100%;
}

.cst-card__video-author {
    display: flex;
    flex-direction: column;
}

.cst-card__video-name {
    font-family: var(--e-global-typography-primary-font-family, 'Helvetica', sans-serif);
    font-size: 16px;
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

.cst-card__video-role {
    font-family: var(--e-global-typography-text-font-family, 'Helvetica', sans-serif);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 2px;
}

/* Twitter / Social Badge on Video Card (White Rounded Badge with Black Icon) */
.cst-card--video .cst-social-badge {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0F1115;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.cst-card--video .cst-social-badge svg {
    width: 18px;
    height: 18px;
    fill: #0F1115;
    display: block;
}

/* Center Play Button (Large White Circle with Solid Black Play Triangle) */
.cst-card__play-btn-wrap {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    pointer-events: auto;
}

body .cst-section .cst-play-btn,
body .cst-section .cst-play-btn:hover,
body .cst-section .cst-play-btn:focus,
body .cst-section .cst-play-btn:focus-visible,
body .cst-section .cst-play-btn:active,
body.ast-page-builder-template .cst-section .cst-play-btn,
body.ast-page-builder-template .cst-section .cst-play-btn:hover,
body.ast-page-builder-template .cst-section .cst-play-btn:focus,
body.ast-page-builder-template .cst-section .cst-play-btn:focus-visible,
body.ast-page-builder-template .cst-section .cst-play-btn:active {
    width: 66px;
    height: 66px;
    border-radius: 50%;
    background-color: #FFFFFF !important;
    background: #FFFFFF !important;
    color: #0F1115 !important;
    border: none !important;
    border-color: transparent !important;
    outline: none !important;
    outline-color: transparent !important;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35) !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    position: relative;
    padding: 0 !important;
    -webkit-tap-highlight-color: transparent !important;
}

body .cst-section .cst-play-btn svg {
    width: 22px;
    height: 22px;
    fill: #0F1115 !important;
    margin-left: 3px; /* visual center for play triangle */
    transition: transform 0.25s ease, fill 0.25s ease;
    display: block;
    stroke: none !important;
}

body .cst-section .cst-play-btn:hover svg {
    fill: var(--e-global-color-accent, #14B866) !important;
}

/* Pulsing radar ring */
.cst-play-btn::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.6);
    animation: cstPlayPulse 2.4s infinite ease-out;
}

@keyframes cstPlayPulse {
    0% {
        transform: scale(0.95);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.2);
        opacity: 0;
    }
    100% {
        transform: scale(1.2);
        opacity: 0;
    }
}

.cst-card--video:hover .cst-play-btn {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.45);
}

.cst-card--video:hover .cst-play-btn svg {
    transform: scale(1.08);
}

/* Video Card Bottom Row */
.cst-card__video-footer {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.cst-stars {
    display: flex;
    align-items: center;
    gap: 3px;
    color: #F59E0B;
    font-size: 15px;
    line-height: 1;
}

.cst-card__date {
    font-family: var(--e-global-typography-text-font-family, 'Helvetica', sans-serif);
    font-size: 12.5px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.02em;
}


/* ── 08. Type B: Clean White Text Cards ─────────────────────── */

.cst-card--text {
    background: #FFFFFF;
    border: 1px solid rgba(15, 17, 21, 0.06);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(26px, 2.5vw, 32px);
    box-shadow: 0 10px 30px -8px rgba(15, 23, 42, 0.06);
}

/* Social Icon on Text Cards (Subtle Grey Twitter Bird) */
.cst-card--text .cst-social-badge {
    color: #9CA3AF;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cst-card--text .cst-social-badge svg {
    width: 17px;
    height: 17px;
    fill: currentColor;
    display: block;
}

/* Top Author Row */
.cst-card__author-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.cst-card__author-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cst-avatar-wrap {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: #E5E7EB;
}

.cst-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cst-card__author-meta {
    display: flex;
    flex-direction: column;
}

.cst-card__name {
    font-family: var(--e-global-typography-primary-font-family, 'Helvetica', sans-serif);
    font-size: 15px;
    font-weight: 700;
    color: var(--e-global-color-primary, #0F1115);
    line-height: 1.25;
    letter-spacing: -0.01em;
}

.cst-card__role {
    font-family: var(--e-global-typography-text-font-family, 'Helvetica', sans-serif);
    font-size: 12.5px;
    color: #6B7280;
    margin-top: 2px;
}

/* Testimonial Quote */
.cst-card__quote {
    font-family: var(--e-global-typography-text-font-family, 'Helvetica', sans-serif);
    font-size: clamp(14.5px, 1.1vw, 15.5px);
    line-height: 1.65;
    color: #1F2937;
    margin: 20px 0;
    font-weight: 450;
    letter-spacing: -0.01em;
}

/* Bottom Row */
.cst-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-top: auto;
}

.cst-card--text .cst-card__date {
    color: #9CA3AF;
}


/* ── 09. Video Lightbox Modal ───────────────────────────────── */

.cst-video-modal {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 12, 16, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.cst-video-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.cst-video-modal__content {
    position: relative;
    width: 100%;
    max-width: 900px;
    background: #000000;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
    transform: scale(0.92);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.cst-video-modal.is-open .cst-video-modal__content {
    transform: scale(1);
}

.cst-video-modal__video-wrap {
    position: relative;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    width: 100%;
}

.cst-video-modal__video-wrap iframe,
.cst-video-modal__video-wrap video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.cst-video-modal__close {
    position: absolute;
    top: -46px;
    right: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    outline: none;
}

.cst-video-modal__close:hover {
    background: #FFFFFF;
    color: #0F1115;
    transform: rotate(90deg);
}


/* ── 10. Responsive Breakpoints ─────────────────────────────── */

@media (max-width: 991px) {
    .cst-section {
        min-height: auto;
        padding: 60px 0 70px 0;
    }

    /* Container reserves space at top right for navigation buttons */
    .cst-carousel-container {
        position: relative;
        padding-top: 54px;
    }

    /* Top-Right Slider Buttons for Mobile & Tablet */
    .cst-floating-nav {
        position: absolute !important;
        top: 0 !important;
        right: clamp(16px, 4vw, 32px) !important;
        left: auto !important;
        transform: none !important;
        width: auto !important;
        display: flex !important;
        justify-content: flex-end !important;
        align-items: center !important;
        gap: 10px !important;
        pointer-events: auto !important;
        z-index: 15 !important;
    }

    body .cst-section .cst-floating-nav button.cst-nav-btn,
    body .cst-section .cst-floating-nav .cst-nav-btn,
    body .cst-section .cst-floating-nav .cst-nav-btn--prev,
    body .cst-section .cst-floating-nav .cst-nav-btn--next {
        position: relative !important;
        transform: none !important;
        width: 42px !important;
        height: 42px !important;
    }

    body .cst-section .cst-floating-nav button.cst-nav-btn--prev:hover,
    body .cst-section .cst-floating-nav button.cst-nav-btn--next:hover {
        transform: scale(1.05) !important;
    }

    body .cst-section .cst-floating-nav button.cst-nav-btn--prev:active,
    body .cst-section .cst-floating-nav button.cst-nav-btn--next:active {
        transform: scale(0.98) !important;
    }

    .cst-card {
        flex: 0 0 clamp(290px, 42vw, 350px);
        width: clamp(290px, 42vw, 350px);
        height: 420px;
    }
}

@media (max-width: 768px) {
    .cst-section {
        padding: 44px 0 56px 0;
    }

    .cst-header-wrap {
        margin-bottom: 20px;
    }

    .cst-heading {
        font-size: 28px;
    }

    .cst-subtitle {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .cst-carousel-container {
        padding-top: 48px;
    }

    .cst-floating-nav {
        top: 0 !important;
        right: 16px !important;
        gap: 8px !important;
    }

    body .cst-section .cst-floating-nav button.cst-nav-btn {
        width: 38px !important;
        height: 38px !important;
    }

    .cst-card {
        flex: 0 0 84vw;
        width: 84vw;
        height: auto;
        min-height: 380px;
        border-radius: 22px;
        padding: 24px;
    }

    .cst-card.is-active {
        transform: scale(1);
    }

    .cst-edge-blur {
        width: 32px;
    }
}
