/* Pure CSS Carousel - No JavaScript Required */
/* Higher specificity to override Bootstrap carousel */

.carousel-container {
    position: relative;
    width: 100%;
}

.carousel-scroll {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 35px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-behavior: smooth !important;
    padding: 10px 0 !important;

    /* Hide scrollbar but keep functionality */
    scrollbar-width: none !important; /* Firefox */
    -ms-overflow-style: none !important; /* IE/Edge */
}

.carousel-scroll::-webkit-scrollbar {
    display: none !important; /* Chrome/Safari */
}

/* Override Bootstrap's .carousel-item with higher specificity */
.carousel-scroll > .carousel-item {
    flex: 0 0 auto !important;
    flex-shrink: 0 !important;
    width: auto !important;
    margin-right: 0 !important;
    float: none !important;
    display: block !important;
    text-decoration: none !important;
    color: inherit !important;
    position: static !important;
    backface-visibility: visible !important;
    transition: none !important;
}

/* RTL Support */
[dir="rtl"] .carousel-scroll {
    direction: rtl;
}

[dir="ltr"] .carousel-scroll {
    direction: ltr;
}

/* Mobile touch scrolling */
@media (max-width: 768px) {
    .carousel-scroll {
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
    }

    .carousel-item {
        scroll-snap-align: start;
    }
}

/* Optional: Show scrollbar on hover for desktop */
@media (min-width: 769px) {
    .carousel-scroll:hover {
        scrollbar-width: thin;
        -ms-overflow-style: auto;
    }

    .carousel-scroll:hover::-webkit-scrollbar {
        display: block;
        height: 6px;
    }

    .carousel-scroll:hover::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.1);
        border-radius: 3px;
    }

    .carousel-scroll:hover::-webkit-scrollbar-thumb {
        background: rgba(0, 0, 0, 0.3);
        border-radius: 3px;
    }

    .carousel-scroll:hover::-webkit-scrollbar-thumb:hover {
        background: rgba(0, 0, 0, 0.5);
    }
}
