/* Brand Slider - Infinite Scroll Animation */

.brand-slider-section {
    background: var(--vl-white, #ffffff);
    padding: 60px 0;
    border-top: 1px solid var(--vl-gray-200, #e9ecef);
    border-bottom: 1px solid var(--vl-gray-200, #e9ecef);
    overflow: hidden;
    position: relative;
}

.brand-slider-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Slider Header */
.brand-slider-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.brand-slider-title {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--vl-text-light, #5f6f81);
    letter-spacing: 0.5px;
    margin: 0;
}

/* Slider Track Wrapper */
.brand-slider-wrapper {
    overflow: hidden;
    position: relative;
    width: 100%;
    mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 10%,
        black 90%,
        transparent 100%
    );
    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 10%,
        black 90%,
        transparent 100%
    );
}

/* Slider Track - Contains all logos */
.brand-slider-track {
    display: flex;
    align-items: center;
    gap: 80px;
    animation: slide 30s linear infinite;
    width: fit-content;
}

/* Pause animation on hover */
.brand-slider-wrapper:hover .brand-slider-track {
    animation-play-state: paused;
}

/* Individual Brand Item */
.brand-item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    height: 80px;
    transition: var(--vl-transition, all 0.3s ease-in-out);
}

.brand-item:hover {
    transform: scale(1.05);
}

/* Brand Logo Image */
.brand-logo {
    max-width: 180px;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: var(--vl-transition, all 0.3s ease-in-out);
}

/* Infinite Scroll Animation */
@keyframes slide {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .brand-slider-section {
        padding: 50px 0;
    }

    .brand-slider-header {
        margin-bottom: 2rem;
    }

    .brand-slider-title {
        font-size: 1rem;
    }

    .brand-slider-track {
        gap: 60px;
        animation-duration: 20s;
    }

    .brand-item {
        min-width: 120px;
        height: 50px;
    }

    .brand-logo {
        max-width: 120px;
        max-height: 50px;
    }
}

@media (max-width: 480px) {
    .brand-slider-section {
        padding: 40px 0;
    }

    .brand-slider-title {
        font-size: 0.9375rem;
    }

    .brand-slider-track {
        gap: 40px;
        animation-duration: 15s;
    }

    .brand-item {
        min-width: 100px;
        height: 40px;
    }

    .brand-logo {
        max-width: 100px;
        max-height: 40px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .brand-slider-track {
        animation: none;
    }
}

/* Print Styles */
@media print {
    .brand-slider-section {
        display: none;
    }
}
