/* Logos Carousel Section */
.logos-carousel {
    background: #ffffff;
    padding: 10px 0 20px 0;
    overflow: hidden;
}

.logos-carousel .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.logos-track-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    mask-image: linear-gradient(
        to right,
        transparent,
        black 10%,
        black 90%,
        transparent
    );
    -webkit-mask-image: linear-gradient(
        to right,
        transparent,
        black 10%,
        black 90%,
        transparent
    );
}

.logos-track {
    display: flex;
    animation: scroll-logos 30s linear infinite;
    animation-play-state: paused;
    width: fit-content;
    will-change: transform;
}

.logos-track.ready {
    animation-play-state: running;
}

.logo-item {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 150px;
    height: 70px;
    margin-right: 10px;
    transition: opacity 0.3s ease;
}

.logo-item img {
    height: 40px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
    opacity: 0.25;
    filter: grayscale(100%);
    transition: opacity 0.3s ease, filter 0.3s ease;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.logo-item:hover img {
    opacity: 1;
    filter: grayscale(0%);
}

.logo-title {
    margin-top: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    opacity: 0.4;
    transition: opacity 0.3s ease, color 0.3s ease;
    white-space: nowrap;
}

.logo-item:hover .logo-title {
    opacity: 1;
    color: #1f2937;
}

@keyframes scroll-logos {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-25%);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .logos-carousel {
        padding: 10px 0 20px 0;
    }

    .logos-track {
        animation-duration: 20s;
    }

    .logo-item {
        width: 100px;
        height: 55px;
        margin-right: 5px;
    }

    .logo-item img {
        height: 30px;
        max-width: 100px;
    }

    .logo-title {
        margin-top: 4px;
        font-size: 9px;
    }
}
