@import url('https://fonts.googleapis.com/css2?family=Onest:wght@100..900&display=swap');

* {
    font-family: 'Onest', Arial, sans-serif;
    box-sizing: border-box;
    color: #333333;
    caret-color: transparent;
}

body {
    background: #f6f7f8;
    margin: 0px;
}

.logos {
    width: 100%;

    margin-top: 7rem;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    margin-bottom: 7rem;
}

.logos-title {
    margin: 0;
    margin-bottom: 2.5rem;
}

.logos-title h1 {
    text-align: center;
    margin: 0;
}

.logos-container {
    width: 100%;
    max-width: none;

    padding: 1.25rem 0 2rem 0;

    background: transparent;
    border-radius: 0;
    box-shadow: none;

    text-align: center;
}

.slider-container {
    position: relative;
    overflow: hidden;

    width: min(calc(100% - 2.5rem), calc(100% - 10rem));
    max-width: 96rem;
    height: 5rem;

    margin: 0 auto;
}

.slider-container::before,
.slider-container::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: clamp(4rem, 8vw, 8rem);
    z-index: 2;
    pointer-events: none;
}

.slider-container::before {
    left: 0;
    background: linear-gradient(
        to right,
        #ffffff 0%,
        rgba(255, 255, 255, 0) 100%
    );
}

.slider-container::after {
    right: 0;
    background: linear-gradient(
        to left,
        #ffffff 0%,
        rgba(255, 255, 255, 0) 100%
    );
}

.logo-track {
    display: flex;
    align-items: center;

    width: max-content;
    height: 100%;

    animation: scroll-logos 120s linear infinite;
}

.logo-track {
    display: flex;
    align-items: center;

    width: max-content;
    height: 100%;

    animation: scroll-logos 120s linear infinite;
    will-change: transform;
}

.logo-track img {
    width: 6rem;
    height: 3rem;

    object-fit: contain;
    flex: 0 0 5.5rem;
    margin-right: 3rem;
}

@keyframes scroll-logos {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

/* ===== RESPONSIVE PASS ===== */
@media (max-width: 700px) {
    .logos {
        margin-top: 5rem;
        margin-bottom: 5rem;
    }

    .logos-title {
        width: 100%;
        padding: 0 1.25rem;
    }

    .logos-title h1 {
        font-size: 1.75rem;
    }

    .slider-container {
        width: calc(100% - 2.5rem);
        height: 4.5rem;
    }

    .slider-container::before,
    .slider-container::after {
        width: 2.75rem;
    }

    .logo-track img {
        width: 5rem;
        height: 2.6rem;
        flex-basis: 4.75rem;
        margin-right: 2rem;
    }
}

