.elementor-widget-sticky-horizontal-cards,
.elementor-widget-sticky-horizontal-cards > .elementor-widget-container {
    overflow: visible !important;
}

.shc-section {
    --shc-center-offset: 0px;
    --shc-progress: 0;
    position: relative;
    width: 100%;
    background: #2b190b;
    box-sizing: border-box;
    isolation: isolate;
}

.shc-section * {
    box-sizing: border-box;
}

/*
 * Compact sticky block: no fake 100vh spacer. JavaScript pins this actual
 * cards/progress block in the vertical center while the vertical wheel/trackpad
 * movement drives the horizontal card track.
 */
.shc-sticky {
    position: sticky;
    top: 0;
    width: 100%;
    min-height: 0;
    height: auto;
    overflow: visible;
    z-index: 2;
    box-sizing: border-box;
}

.shc-inner {
    width: 100%;
    margin: 0 auto;
    overflow: visible;
}

.shc-header-slot {
    width: 100%;
    margin: 0 0 30px;
}

.shc-header-slot:empty {
    display: none;
    margin: 0;
}

/* Built-in sticky subtitle/title. */
.shc-built-in-header {
    width: 100%;
}

.shc-subtitle {
    margin: 0;
    color: #d3a126;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.shc-sticky-title {
    margin: 10px 0 0;
    color: #fff;
    font-size: 32px;
    font-weight: 600;
    line-height: 1.15;
}

/* When existing Elementor Heading widgets are directly above this widget,
 * JavaScript moves them here so subtitle + title remain visible during the
 * entire horizontal scroll. Their Elementor typography/colors stay intact. */
.shc-header-slot.shc-header-captured-direct {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: var(--shc-captured-gap, 8px);
}

.shc-header-slot.shc-header-captured-direct > .elementor-widget-heading,
.shc-header-slot.shc-header-captured-container > .elementor-element {
    width: 100%;
    max-width: 100%;
}

.shc-header-slot .elementor-widget-heading,
.shc-header-slot .elementor-heading-title {
    position: relative;
}

/* Left edge stays on the Elementor content line. JS expands only the right
 * edge to the browser edge, which creates the clipped next-card look. */
.shc-viewport {
    width: 100%;
    max-width: none;
    overflow: hidden;
    touch-action: pan-y;
}

.shc-track {
    display: flex;
    align-items: stretch;
    width: max-content;
    will-change: transform;
    transform: translate3d(0, 0, 0);
}

.shc-card {
    flex: 0 0 300px;
    width: 300px;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    background: #4b3824;
    border-radius: 18px;
    overflow: hidden;
}

/* Reference design uses an almost perfectly square card. */
.shc-square-cards .shc-card {
    aspect-ratio: 1 / 1;
}

.shc-card-marker {
    flex: 0 0 auto;
    min-height: 1px;
}

.shc-card-number {
    color: #a77a26;
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0;
}

.shc-card-image {
    line-height: 0;
}

.shc-card-image img {
    display: block;
    width: 54px;
    max-width: 100%;
    height: auto;
}

.shc-card-title {
    margin: 0 0 10px;
    color: #fff;
    font-size: 18px;
    line-height: 1.25;
    font-weight: 600;
}

.shc-card-description {
    margin: 0;
    color: #f3eee8;
    font-size: 14px;
    line-height: 1.5;
}

.shc-progress {
    position: relative;
    width: 100%;
    height: 3px;
    overflow: hidden;
    background: #8a5e15;
}

.shc-progress-fill {
    position: absolute;
    inset: 0 auto 0 0;
    width: calc(var(--shc-progress) * 100%);
    background: #e7aa24;
    transform-origin: left center;
}

/* No horizontal overflow: behave like a normal compact section. */
.shc-section.shc-no-overflow {
    height: auto !important;
}

.shc-section.shc-no-overflow .shc-sticky {
    position: relative;
    top: auto !important;
}

.shc-section.shc-no-overflow .shc-viewport {
    overflow-x: auto;
    scrollbar-width: thin;
}

/* Accessibility: no scroll-linked animation when reduced motion is requested. */
.shc-section.shc-reduced-motion {
    height: auto !important;
}

.shc-section.shc-reduced-motion .shc-sticky {
    position: relative;
    top: auto !important;
}

.shc-section.shc-reduced-motion .shc-viewport {
    overflow-x: auto;
    overscroll-behavior-inline: contain;
}

.shc-section.shc-reduced-motion .shc-track {
    transform: none !important;
}

.shc-section.shc-reduced-motion .shc-progress-fill {
    width: 100%;
}

/*
 * 1.7.0 mobile sticky hardening.
 * Elementor/theme containers with overflow hidden/clip/auto can become the
 * containing scroll box for position: sticky. JavaScript marks only ancestors
 * of this widget that need to be opened up.
 */
.shc-sticky-ancestor {
    overflow: visible !important;
    overflow-x: visible !important;
    overflow-y: visible !important;
}

/* JavaScript pinning fallback used on narrow mobile viewports. */
.shc-section.shc-js-pin {
    overflow: visible;
}

.shc-section.shc-js-pin .shc-sticky {
    position: relative;
    top: auto;
}

.shc-section.shc-js-pin.shc-pin-active .shc-sticky {
    position: fixed;
    margin: 0;
}

.shc-section.shc-js-pin.shc-pin-end .shc-sticky {
    position: absolute;
    margin: 0;
}

@media (max-width: 767px) {
    .elementor-widget-sticky-horizontal-cards,
    .elementor-widget-sticky-horizontal-cards > .elementor-widget-container,
    .shc-section,
    .shc-sticky,
    .shc-inner,
    .shc-viewport {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    /* On mobile keep the viewport inside the widget. The desktop breakout-to-
     * browser-edge effect can conflict with narrow Elementor parent widths. */
    .shc-viewport {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden;
        overflow-y: visible;
        touch-action: pan-y;
        overscroll-behavior-x: contain;
    }

    .shc-track {
        max-width: none;
    }
}
