.hero-carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: #FAFAFA;
}

.hero-slides-wrapper {
    position: relative;
    width: 100%;
    min-height: 600px;
    background-color: #ffffff;
    overflow: hidden;
    cursor: grab;
    user-select: none;
}

.hero-slides-wrapper:active {
    cursor: grabbing;
}

@media only screen and (min-width: 2300px) {
    .hero-slides-wrapper::before,
    .hero-slides-wrapper::after {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        width: clamp(50px, calc((100vw - 1780px) / 2), 100%);
        z-index: 999;
        pointer-events: none;
    }

    .hero-slides-wrapper::before {
        left: 0;
        background: linear-gradient(to right, #fff 0%, transparent 100%);
    }

    .hero-slides-wrapper::after {
        right: 0;
        background: linear-gradient(to left, #fff 0%, transparent 100%);
    }
}

.hero-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    max-width: 1780px;
    width: 92.5%;
    min-height: 600px;
    transform: translateX(100%);
    will-change: transform, opacity;
    opacity: 0;
    visibility: hidden;
    justify-self: anchor-center;
    padding-left: 12px;
    padding-right: 12px;
    z-index: 1;
    transition: opacity 0.25s ease-out;
}

.hero-slide.active {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    z-index: 3;
}

.hero-slide.prev-slide {
    transform: translateX(-100%);
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.hero-slide.next-slide {
    transform: translateX(100%);
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.hero-previews-container {
    background: linear-gradient(to bottom, transparent 75px, #fff 75px);
    position: relative;
    z-index: 5;
    margin-top: -145px;
    margin-bottom: 15px;
    width: 100%;
    display: flex;
    justify-content: center;
    padding-left: 24px;
    padding-right: 24px;
}

.hero-previews {
    display: flex;
    gap: 16px;
    max-width: 1200px;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
}

.preview-card {
    background: #fff;
    border-radius: 8px;
    width: 200px;
    height: 150px;
    padding: 16px;
    cursor: pointer;
    text-align: left;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

.preview-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

.preview-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 4px;
    width: 0%;
    background-color: #FEDF01;
    z-index: 10;
}

.preview-card.active::before {
    animation: progressBar var(--slide-duration, 5s) linear forwards;
}

.preview-card.active.paused::before {
    animation-play-state: paused;
}

.preview-card.active.stopped::before {
    width: 100%;
    animation: none;
}

@keyframes progressBar {
    from {
        width: 0%;
    }
    to {
        width: 100%;
    }
}

.preview-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.preview-title {
    font-family: 'RBCDisplay';
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
}

.hero-desktop-pause {
    display: flex;
    align-items: end;
    cursor: pointer;
    padding: 20px;
}

.hero-desktop-pause img {
    width: 32px;
    height: 32px;
}

.hero-desktop-pause.hero-resume-btn,
.hero-mobile-pause.hero-resume-btn {
    /* Initially hidden, JS controls visibility */
}

.hero-mobile-controls {
    display: none;
    padding: 15px;
    position: absolute;
    bottom: 0;
    z-index: 10;
    background: none;
    left: 50%;
    transform: translateX(-50%);
}

.hero-mobile-pill {
    display: flex;
    align-items: center;
    gap: 28px;
    background: rgba(0, 0, 0, 0.50);
    border-radius: 50px;
    padding: 10px 20px;
}

.hero-mobile-nav {
    display: flex;
    align-items: center;
    gap: 17.5px;
}

.hero-mobile-arrow {
    font-weight: 300;
    font-size: 27px;
    color: #fff;
    cursor: pointer;
    background: none;
    border: none;
    padding-bottom: 3px;
    line-height: 1;
    opacity: 0.9;
    transition: opacity 0.2s ease;
}

.hero-mobile-arrow:hover {
    opacity: 1;
}

.hero-mobile-dots {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-mobile-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1.5px solid #fff;
    background: transparent;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.hero-mobile-dot.active {
    width: 32px;
    border-radius: 999px;
    border-color: #fff;
    background: #fff;
    border: 0px;
}

.hero-mobile-dot::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background-color: #FEDF01;
    border-radius: 999px;
    z-index: 1;
}

.hero-mobile-dot.active::before {
    animation: mobileProgressBar var(--slide-duration, 5s) linear forwards;
}

.hero-mobile-dot.active.paused::before {
    animation-play-state: paused;
}

.hero-mobile-dot.active.stopped::before {
    width: 100%;
    animation: none;
}

@keyframes mobileProgressBar {
    from {
        width: 0%;
    }
    to {
        width: 100%;
    }
}

.hero-mobile-pause img {
    width: 16px;
    height: 16px;
    filter: brightness(0) invert(1);
}

@media only screen and (max-width: 1200px) {
    .hero-slide {
        left: 0;
        width: 100%;
        border-radius: 0;
        padding-left: 0px;
        padding-right: 0px;
    }

    .hero-previews {
        display: none;
    }

    .hero-desktop-pause {
        display: none;
    }

    .preview-card {
        flex: 0 0 auto;
    }

    .hero-mobile-controls {
        display: flex;
    }

    .hero-previews-container {
        display: none;
    }
}

@media only screen and (max-width: 768px) {
    .hero-slides-wrapper {
        min-height: 700px;
    }

    .hero-slide #banner,
    .hero-slide .slide-placeholder {
        height: 650px !important;
    }

    .bg-black {
        background-color: #000;
    }
}

