/* =========================================
   CLIENTS CONTAINER
========================================= */

.clients-container {
    width: calc(100% - 84px);
    max-width: 1632px;

    margin: 0 auto;
    padding-bottom: 70px ! important;

    box-sizing: border-box;
}


/* =========================================
   INDUSTRY FILTER
========================================= */

.industry-filter {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 0;

    margin: 18px 0 24px;

    border-bottom: 1px solid #e5e5e5;

    overflow: hidden;

    box-sizing: border-box;
}


/* =========================================
   INDUSTRY LINKS
========================================= */

.industry-filter a {
    position: relative;

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

    height: 40px;

    padding: 0 10px;
    margin: 0;

    color: #515151;
    font-weight: 400;

    line-height: 1;

    text-decoration: none;

    white-space: nowrap;

    appearance: none;
    -webkit-appearance: none;

    background: transparent;
    background-image: none;

    border: none;
    outline: none;

}


/* =========================================
   ACTIVE INDUSTRY
========================================= */

.industry-filter a.active {
    color: #0C6AA5;
}


/* =========================================
   ACTIVE BLUE UNDERLINE
========================================= */

.industry-filter a.active::after {
    content: "";

    position: absolute;

    left: 0;
    right: 0;
    bottom: -1px;

    height: 2px;

    background-color: #0C6AA5;

    pointer-events: none;
}


/* =========================================
   INDUSTRY HOVER
========================================= */

.industry-filter a:hover {
    color: #0C6AA5;
}


/* =========================================
   COMPANY GRID
========================================= */

.company-grid {
    width: 100%;

    display: grid;

    grid-template-columns: repeat(4, 1fr);

    column-gap: 14px;
    row-gap: 12px;

    /*
     * Keeps the content area the same height
     * even when fewer companies are displayed.
     */
    min-height: 490px;

    align-content: start;

    box-sizing: border-box;
}


/* =========================================
   COMPANY CARD
========================================= */

.company-card {
    width: 100%;
    height: 191px;

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

    box-sizing: border-box;

    background: #ffffff;

    border: 1px solid #8f8f8f;

    border-radius: 6px;

    overflow: hidden;
}


/* =========================================
   COMPANY LOGO
========================================= */

.company-logo {
    display: block;

    width: auto;
    height: auto;

    max-width: 72%;
    max-height: 68px;

    object-fit: contain;
}


/* =========================================
   NO LOGO
========================================= */

.company-no-logo {
    padding: 15px;

    color: #333333;

    font-size: 12px;

    text-align: center;
}


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

.clients-pagination {
    width: 100%;

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

    margin-top: 42px;

    box-sizing: border-box;
}


/* =========================================
   PAGINATION LIST
========================================= */

.clients-pagination ul {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 12px;

    margin: 0;
    padding: 0;

    list-style: none;
}


/* =========================================
   PAGINATION ITEMS
========================================= */

.clients-pagination li {
    margin: 0;
    padding: 0;

    list-style: none;
}


/* =========================================
   PAGINATION NUMBERS
========================================= */

.clients-pagination a,
.clients-pagination span {
    width: 46px;
    height: 46px;

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

    padding: 0;

    border: none;
    border-radius: 50%;

    background: transparent;

    color: #b5b5b5;

    font-size: 20px;

    line-height: 1;

    text-decoration: none;
}


/* =========================================
   CURRENT PAGE
========================================= */

.clients-pagination .current {
    background: #0C6AA5;

    color: #ffffff;
}


/* =========================================
   PAGINATION ARROWS
========================================= */

.clients-pagination .prev,
.clients-pagination .next {
    width: 20px;
    height: 20px;

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

    padding: 0;

    background: transparent;

    color: #b5b5b5;

    font-size: 20px;

    border-radius: 0;
}


/* =========================================
   PAGINATION HOVER
========================================= */

.clients-pagination a:hover {
    color: #0C6AA5;
}


/* =========================================
   NO COMPANIES
========================================= */

.no-companies {
    grid-column: 1 / -1;

    margin: 0;
    padding: 100px 0;

    color: #777777;


    text-align: center;
}


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

@media (max-width: 1000px) {

    .clients-container {
        width: calc(100% - 50px);
    }


    /* Industry filters */

    .industry-filter a {
        padding: 0 8px;


    }


    /* Company grid */

    .company-grid {
        grid-template-columns: repeat(4, 1fr);

        column-gap: 12px;
        row-gap: 12px;
    }


    .company-card {
        height: 100px;
    }

}


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

@media (max-width: 700px) {

    .clients-container {
        width: calc(100% - 30px);
    }


    /* =====================================
       INDUSTRY FILTER
    ===================================== */

    .industry-filter {

        justify-content: flex-start;

        overflow-x: auto;
    }


    .industry-filter::-webkit-scrollbar {
        display: none;
    }


    .industry-filter a {

        /*
         * Override desktop flex: 1.
         * Categories keep their natural width.
         */

        flex: 0 0 auto;

        padding: 0 12px;


    }


    /* =====================================
       COMPANY GRID
    ===================================== */

    .company-grid {

        grid-template-columns: repeat(2, 1fr);

        column-gap: 12px;
        row-gap: 12px;

        min-height: 400px;
    }


    .company-card {
        height: 100px;
    }

}


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

@media (max-width: 450px) {

    .company-grid {
        grid-template-columns: repeat(2, 1fr);
    }


    .company-card {
        height: 90px;
    }


    .company-logo {
        max-width: 75%;
        max-height: 60px;
    }

}