/* =====================================================
   OUR CLIENTS SECTION
===================================================== */

.clients-section {

    width: 100%;

    background: #ffffff;

    padding: 65px 0 55px;

    overflow: hidden;
}


/* =====================================================
   SECTION HEADER
===================================================== */

.clients-header {

    text-align: center;

    max-width: 850px;

    margin: 0 auto 42px;

    padding: 0 20px;
}


.clients-kicker {

    color:#e87010;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 8px;
}


.clients-header h3 {

    margin: 0 0 10px;

    color: #404890;

    font-size: clamp(25px, 3vw, 34px);

    line-height: 1.2;

    text-transform: uppercase;

    letter-spacing: 2px;
}


.clients-header p {

    margin: 0 auto;

    max-width: 850px;

    color: #667085;

    font-size: 16px;

    line-height: 1.7;
}


/* =====================================================
   CAROUSEL
===================================================== */

.clients-carousel {

    position: relative;

    width: 100%;

    display: flex;

    align-items: center;
}


/* =====================================================
   VIEWPORT
===================================================== */

.clients-viewport {

    width: 100%;

    overflow: hidden;

    margin: 0 18px;
}


/* =====================================================
   TRACK
===================================================== */

.clients-track {

    display: flex;

    gap: 12px;

    transition: transform 0.55s ease;

    will-change: transform;
}


/* =====================================================
   CLIENT CARD
===================================================== */

.client-card {

    flex: 0 0 calc((100% - 48px) / 5);

    height: 220px;

    background: #ffffff;

    border: 1px solid #d9d9d9;

    border-radius: 16px;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 10px;

    overflow: hidden;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}


.client-card:hover {

    border-color: #c8c8c8;

    box-shadow:
        0 12px 28px rgba(0, 0, 0, 0.08);

    transform: translateY(-3px);
}


/* =====================================================
   CLIENT LOGO
===================================================== */

.client-card img {

    width: 100%;

    height: 100%;

    object-fit: contain;

    object-position: center;

    display: block;

    transition: transform 0.3s ease;
}


.client-card:hover img {

    transform: scale(1.04);
}


/* =====================================================
   LEFT / RIGHT ARROWS
===================================================== */

.client-arrow {

    position: relative;

    flex-shrink: 0;

    width: 54px;

    height: 54px;

    border: none;

    border-radius: 50%;

    background: #ffd181;

    color: #004890;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 20px;

    cursor: pointer;

    z-index: 5;

    box-shadow:
        0 5px 14px rgba(0, 0, 0, 0.12);

    transition:
        transform 0.25s ease,
        background 0.25s ease,
        box-shadow 0.25s ease;
}


.client-arrow:hover {

    background: #ffc258;

    transform: scale(1.06);

    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.16);
}


.client-arrow:active {

    transform: scale(0.96);
}


/* =====================================================
   PAGINATION DOTS
===================================================== */

.client-dots {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    margin-top: 20px;
}


.client-dot {

    width: 9px;

    height: 9px;

    padding: 0;

    border: none;

    border-radius: 50%;

    background: #d6d9dd;

    cursor: pointer;

    transition:
        width 0.3s ease,
        background 0.3s ease,
        transform 0.3s ease;
}


.client-dot.active {

    width: 24px;

    height: 8px;

    border-radius: 999px;

    background: #879993;
}


.client-dot:hover {

    transform: scale(1.08);
}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 1100px) {

    .clients-section {

        padding: 55px 0 50px;
    }


    .client-card {

        flex: 0 0 calc((100% - 24px) / 3);

        height: 200px;
    }

}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 700px) {

    .clients-section {

        width: 100%;

        padding: 45px 0 40px;

        overflow: hidden;
    }


    /* -----------------------------------------------
       HEADER
    ----------------------------------------------- */

    .clients-header {

        margin-bottom: 25px;

        padding: 0 5%;
    }


    .clients-header .kicker {

        font-size: 12px;

        letter-spacing: 2px;

        margin-bottom: 7px;
    }


    .clients-header h2 {

        font-size: 22px;

        line-height: 1.25;

        letter-spacing: 0.5px;

        margin-bottom: 9px;
    }


    .clients-header p {

        font-size: 13px;

        line-height: 1.6;

        padding: 0;
    }


    /* -----------------------------------------------
       CAROUSEL
    ----------------------------------------------- */

    .clients-carousel {

        width: 100%;

        display: flex;

        align-items: center;
    }


    /* -----------------------------------------------
       VIEWPORT
    ----------------------------------------------- */

    .clients-viewport {

        width: 100%;

        margin: 0 5px;

        overflow: hidden;
    }


    /* -----------------------------------------------
       TRACK
    ----------------------------------------------- */

    .clients-track {

        gap: 10px;

        transition: transform 0.5s ease;

        will-change: transform;
    }


    /* -----------------------------------------------
       CLIENT CARD
    ----------------------------------------------- */

    .client-card {

        /*
           One card per view.
           The card is now tall enough for
           logos to be clearly visible.
        */

        flex: 0 0 100%;

        width: 100%;

        min-width: 100%;

        height: 175px;

        padding: 14px;

        border-radius: 14px;

        box-sizing: border-box;

        transform: none;

        box-shadow:
            0 5px 18px rgba(0, 0, 0, 0.06);
    }


    .client-card:hover {

        transform: none;

        box-shadow:
            0 5px 18px rgba(0, 0, 0, 0.06);
    }


    /* -----------------------------------------------
       CLIENT LOGO
    ----------------------------------------------- */

    .client-card img {

        width: 100%;

        max-width: 92%;

        height: 100%;

        max-height: 145px;

        padding: 5px;

        object-fit: contain;

        object-position: center;

        transform: none;
    }


    .client-card:hover img {

        transform: none;
    }


    /* -----------------------------------------------
       ARROWS
    ----------------------------------------------- */

    .client-arrow {

        width: 34px;

        height: 34px;

        min-width: 34px;

        border-radius: 50%;

        font-size: 12px;

        box-shadow:
            0 4px 10px rgba(0, 0, 0, 0.12);
    }


    .client-arrow:hover {

        transform: none;

        box-shadow:
            0 4px 10px rgba(0, 0, 0, 0.12);
    }


    /* -----------------------------------------------
       DOTS
    ----------------------------------------------- */

    .client-dots {

        gap: 6px;

        margin-top: 13px;

        min-height: 8px;
    }


    .client-dot {

        width: 6px;

        height: 6px;

        min-width: 6px;

        padding: 0;

        border-radius: 50%;
    }


    .client-dot.active {

        width: 17px;

        height: 6px;

        min-width: 17px;

        border-radius: 999px;
    }


    .client-dot:hover {

        transform: none;
    }

}


/* =====================================================
   SMALL MOBILE
===================================================== */

@media (max-width: 380px) {

    .clients-section {

        padding: 38px 0 35px;
    }


    .clients-header {

        margin-bottom: 22px;

        padding: 0 5%;
    }


    .clients-header h2 {

        font-size: 20px;
    }


    .clients-header p {

        font-size: 12px;

        line-height: 1.55;
    }


    .clients-viewport {

        margin: 0 4px;
    }


    .clients-track {

        gap: 8px;
    }


    .client-card {

        height: 160px;

        padding: 12px;

        border-radius: 12px;
    }


    .client-card img {

        max-width: 94%;

        max-height: 135px;

        padding: 4px;
    }


    .client-arrow {

        width: 30px;

        height: 30px;

        min-width: 30px;

        font-size: 10px;
    }


    .client-dots {

        gap: 5px;

        margin-top: 11px;
    }


    .client-dot {

        width: 5px;

        height: 5px;

        min-width: 5px;
    }


    .client-dot.active {

        width: 15px;

        height: 5px;

        min-width: 15px;
    }

}