/* ======================================
              CLIENTS
====================================== */

.clients {
    background: #111;
    padding: 70px 0;
    width: 100%;
    overflow: hidden;
}


/* ======================================
          CLIENT HEADING
====================================== */

.clients-heading {
    text-align: center;
    margin-bottom: 45px;
}

.clients-heading span {
    color: #d4af37;
    font-size: 28px;
    font-weight: 600;
    letter-spacing: 2px;
    position: relative;
}

.clients-heading span::before,
.clients-heading span::after {
    content: "";
    width: 70px;
    height: 2px;
    background: #d4af37;
    position: absolute;
    top: 50%;
}

.clients-heading span::before {
    right: 100%;
    margin-right: 18px;
}

.clients-heading span::after {
    left: 100%;
    margin-left: 18px;
}


/* ======================================
          CLIENT SLIDER
====================================== */

.clients-slider {
    display: flex;
    align-items: center;

    width: max-content;
    flex-wrap: nowrap;

    animation: clientMove 45s linear infinite;

    will-change: transform;
}


/* ======================================
          CLIENT GROUP
====================================== */

/*
    Each group contains exactly 15 logos.

    The padding-right creates the SAME gap
    between Client 15 and the next Client 1.

    This makes the infinite loop seamless.
*/

.clients-group {
    display: flex;
    align-items: center;

    gap: 70px;

    padding-right: 70px;

    flex-shrink: 0;
}


/* ======================================
          CLIENT LOGO
====================================== */

.client-logo {
    flex: 0 0 180px;

    width: 180px;
    height: 100px;

    display: flex;
    justify-content: center;
    align-items: center;
}

.client-logo img {
    width: auto;
    height: 85px;
    max-width: 180px;

    object-fit: contain;
    display: block;
}


/* ======================================
       TRUE INFINITE SLIDER
====================================== */

/*
    Move exactly ONE complete group.

    Because both groups are identical,
    the reset is invisible.
*/

@keyframes clientMove {

    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }

}


/* ======================================
          HOVER PAUSE
====================================== */

.clients-slider:hover {
    animation-play-state: paused;
}


/* ======================================
             MOBILE
====================================== */

@media (max-width: 768px) {

    .clients {
        padding: 55px 0;
    }


    .clients-heading {
        margin-bottom: 35px;
    }


    .clients-heading span {
        font-size: 22px;
    }


    .clients-heading span::before,
    .clients-heading span::after {
        width: 35px;
    }


    .clients-heading span::before {
        margin-right: 10px;
    }


    .clients-heading span::after {
        margin-left: 10px;
    }


    /* ----------------------------------
            MOBILE SLIDER
    ---------------------------------- */

    .clients-slider {
        animation-duration: 40s;
    }


    /* ----------------------------------
            MOBILE GROUP
    ---------------------------------- */

    .clients-group {
        gap: 35px;

        padding-right: 35px;
    }


    /* ----------------------------------
            MOBILE LOGO
    ---------------------------------- */

    .client-logo {
        flex: 0 0 120px;

        width: 120px;
        height: 75px;
    }


    .client-logo img {
        height: 60px;
        max-width: 120px;
    }

}

