/* ===================================
   BRANDS CAROUSEL - BOOTSTRAP 5 COMPATIBLE
   Uses Bootstrap utilities + minimal custom CSS
   ================================ */

/* Hide scrollbar for the carousel container */
#brandsSlider::-webkit-scrollbar {
    display: none;
}

#brandsSlider {
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    /* iOS momentum */
    cursor: pointer;
}

/* Fade effect on edges (optional enhancement) */
#brandsSlider::before,
#brandsSlider::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 40px;
    pointer-events: none;
    z-index: 1;
}

#brandsSlider::before {
    left: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 1), transparent);
}

#brandsSlider::after {
    right: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, 1), transparent);
}

/* Navigation Arrows - Bootstrap Compatible */
.carousel-nav-arrow {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.95);
    border: 1.5px solid rgba(210, 15, 15, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    opacity: 0.8;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    user-select: none;
    margin: 0 15px;
    /* Spacing from edges */
}

.carousel-nav-arrow:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
    transform: translateY(-50%) scale(1.15);
    border-color: rgba(210, 15, 15, 0.4);
}

.carousel-nav-arrow:active {
    transform: translateY(-50%) scale(1.05);
}

.carousel-nav-arrow i {
    font-size: 24px;
    color: #d20f0f;
    transition: transform 0.3s ease;
}

.carousel-nav-arrow:hover i {
    transform: scale(1.15);
}

/* Focus styles for accessibility */
.carousel-nav-arrow:focus {
    outline: 2px solid #d20f0f;
    outline-offset: 3px;
    opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .carousel-nav-arrow {
        width: 40px;
        height: 40px;
        margin: 0 10px;
    }

    .carousel-nav-arrow i {
        font-size: 20px;
    }

    /* Adjust brand slide width for tablets */
    #brandsTrack .flex-shrink-0 {
        width: 160px !important;
    }
}

@media (max-width: 480px) {
    .carousel-nav-arrow {
        width: 36px;
        height: 36px;
        margin: 0 8px;
    }

    .carousel-nav-arrow i {
        font-size: 18px;
    }

    /* Adjust brand slide width for mobile */
    #brandsTrack .flex-shrink-0 {
        width: 140px !important;
    }

    /* Reduce gap on mobile */
    #brandsTrack {
        gap: 1rem !important;
    }
}