.container-logos {
    --logo-size: 100px;
    /* size of each logo */
    --animation-duration: 2000ms;
    /* animation duration */
    --visible-count: 4;
    /* number of logos visible at once */

    width: 100%;
    max-width: 1080px;
    overflow: hidden;
    position: relative;
    margin: 20px auto;
    padding: 20px 0;
}

/* Fade edges for better visual effect */
.container-logos::before,
.container-logos::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    z-index: 2;
    pointer-events: none;
}

.container-logos::before {
    left: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
}

.container-logos::after {
    right: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 100%);
}

/* The sliding track */
.logos-track {
    display: flex;
    width: max-content;
    animation: slide var(--animation-duration) linear infinite;
}

/* Pause on hover */
.container-logos:hover .logos-track {
    animation-play-state: paused;
}

/* Individual logo item */
.logo-item {
    flex: 0 0 var(--logo-size);
    width: var(--logo-size);
    height: 90px;
    margin: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Animation for sliding */
@keyframes slide {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-1 * var(--logo-size) * var(--visible-count)));
    }
}

/* For the text above the logos */
.logos-title {
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 30px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Container for the entire section */
.partners-section {
    padding: 40px 20px;
    background: rgba(255, 255, 255, 1);
    border-radius: 22px;
}

@media (max-width: 768px) {
    .container-logos {
        --logo-size: 80px;
        --visible-count: 2;
    }

    .container-logos::before,
    .container-logos::after {
        width: 50px;
    }

    .logo-item {
        margin: 0 15px;
    }

    .section-title {
        font-size: 20px;
        margin-bottom: 20px;
    }
}