/* Horizontal Scroller */
.scroll-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    overflow-y: visible;
    position: relative; /* Needed to position gradients */
}

.scroll-content-container {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: visible;
    scroll-behavior: smooth; /* Smooth scrolling */
    flex-wrap: nowrap;
    position: relative;
    
    scrollbar-width: none; /* Hide scrollbar for a cleaner look */
    scroll-snap-type: x mandatory;
}

.scroll-content {
    scroll-snap-align: start;
    overflow-y: visible;
}

@media (min-width: 992px) {
    .scroll-content-container.hide-scroll-lg {
        overflow-x: hidden;

        &::-webkit-scrollbar {
            display: none; /* Hide scrollbar on WebKit browsers */
        }
    }
}

/* Gradient overlays */
.gradient-left, .gradient-right {
    position: absolute;
    top: 0;
    height: 100%;
    width: 40px;
    z-index: 20;
    pointer-events: none; /* Ensure arrows can still be clicked */
}

.gradient-left {
    left: 0;
    background: linear-gradient(90deg, rgba(252, 250, 236, 1) 0%, rgba(252, 236, 236, 0) 100%);
}

.gradient-right {
    right: 0;
    background: linear-gradient(270deg, rgba(252, 250, 236, 1) 0%, rgba(252, 236, 236, 0) 100%);
}

/* Arrows */
.scroll-arrow {
    cursor: pointer;
    user-select: none;
    position: relative;
    z-index: 30; /* Higher than gradients */
}

.scroll-right i.disabled, .scroll-left i.disabled {
    cursor: auto !important;
    opacity: 0.5;
}

/* Indicators */
.scroll-indicator {
    width: 10px;
    height: 10px;
    border-radius: 5px;
    background-color: var(--text-primary);
    transition: backgroundColor .3s ease;
}

.scroll-indicator.selected {
    background: var(--brand-1);
}