/* Auto-scrolling Client Carousel */
.client-carousel-wrapper {
    position: relative;
    overflow: hidden;
    padding: 40px 0;
}

.client-carousel-container {
    display: flex;
    overflow: hidden;
    position: relative;
}

.client-carousel-track {
    display: flex;
    gap: 10px;
    animation: scroll-left 30s linear infinite;
    will-change: transform;
}

.client-carousel-track:hover {
    animation-play-state: paused;
}

.client-carousel-item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 200px;
    height: 120px;
    padding: 0 10px;
}

.client-carousel-item img {
    max-width: 200px;
    max-height: 100px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%) brightness(0.8);
    transition: all 0.3s ease;
    opacity: 0.7;
    transform: scale(1.3);
}

.client-carousel-item:hover img {
    filter: grayscale(0%) brightness(1);
    opacity: 1;
    transform: scale(1.4);
}

/* Fade edges */
.client-carousel-wrapper::before,
.client-carousel-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    z-index: 2;
    pointer-events: none;
}

.client-carousel-wrapper::before {
    left: 0;
    background: linear-gradient(to right, #ffffff 0%, transparent 100%);
}

.client-carousel-wrapper::after {
    right: 0;
    background: linear-gradient(to left, #ffffff 0%, transparent 100%);
}

/* Animation */
@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .client-carousel-track {
        gap: 20px;
        animation-duration: 20s;
    }

    .client-carousel-item {
        min-width: 160px;
        height: 90px;
    }

    .client-carousel-item img {
        max-width: 160px;
        max-height: 80px;
    }

    .client-carousel-wrapper::before,
    .client-carousel-wrapper::after {
        width: 50px;
    }
}

@media (max-width: 480px) {
    .client-carousel-track {
        gap: 15px;
        animation-duration: 15s;
    }

    .client-carousel-item {
        min-width: 140px;
        height: 80px;
    }

    .client-carousel-item img {
        max-width: 140px;
        max-height: 70px;
    }
}