﻿/* =========================================================
   MATCH PAGINA
   ========================================================= */

.match-page {
    width: 100%;
    background: #ffffff;
    color: #111111;
}

.match-container {
    width: min(980px, calc(100% - 60px));
    margin: 0 auto;
}


/* =========================================================
   FILTER SECTIE
   ========================================================= */

.match-filter-section {
    padding: 55px 0 45px;
    background: #f5f2d8;
}


/* =========================================================
   LOADING RESULTATEN
   ========================================================= */

.match-loading {
    min-height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 40px 20px;
    text-align: center;
}

    .match-loading.d-none {
        display: none !important;
    }

    .match-loading .spinner-border {
        width: 2.75rem;
        height: 2.75rem;
        border-width: 0.22rem;
    }

.match-loading-text {
    max-width: 420px;
}

.match-loading-title {
    margin-bottom: 5px;
    font-size: 1.05rem;
    font-weight: 600;
}

.match-loading-subtitle {
    color: #6c757d;
    font-size: 0.9rem;
}


/* =========================================================
   TITEL
   ========================================================= */

.match-page-header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 38px;
}

.match-title-icon {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--red, #f20a2e);
}

    .match-title-icon svg {
        width: 44px;
        height: 44px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

.match-page-header h1 {
    margin: 0;
    font-size: 46px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -1.8px;
}


/* =========================================================
   FILTERS
   ========================================================= */

.match-filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 65px;
}

.match-filter-block h2 {
    margin: 0 0 15px;
    font-size: 17px;
    line-height: 1.2;
    font-weight: 800;
}


/* =========================================================
   FILTER OPTIES
   ========================================================= */

.match-filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
}

.study-filter,
.sector-filter,
.function-filter {
    border: 0;
    padding: 6px 9px;
    border-radius: 7px;
    background: transparent;
    color: #111111;
    font-family: inherit;
    font-size: 11px;
    line-height: 1;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}

    .study-filter:hover,
    .sector-filter:hover,
    .function-filter:hover {
        color: var(--red, #f20a2e);
    }

    .study-filter.active,
    .sector-filter.active,
    .function-filter.active {
        background: var(--red, #f20a2e);
        color: #ffffff;
    }


/* =========================================================
   FILTER FOOTER
   ========================================================= */

.match-filter-footer {
    margin-top: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.match-reset-button {
    border: 0;
    padding: 0;
    background: transparent;
    color: var(--red, #f20a2e);
    font-family: inherit;
    font-size: 11px;
    text-decoration: underline;
    cursor: pointer;
}

.match-counter {
    color: #555555;
    font-size: 11px;
}


/* =========================================================
   RESULTATEN
   ========================================================= */

.match-results {
    padding: 50px 0 90px;
}


/* =========================================================
   BEDRIJF GRID
   ========================================================= */

.company-grid {
    display: grid;
    grid-template-columns: repeat(3, 240px);
    justify-content: center;
    column-gap: 18px;
    row-gap: 1px;
}


/* =========================================================
   BEDRIJF TEGEL
   ========================================================= */

.company-tile {
    position: relative;
    width: 100%;
    min-height: 240px;
    display: flex;
    flex-direction: column;
    /*
     * Extra bovenruimte zodat de bedrijfsnaam
     * lager in de SVG-vorm begint.
     */
    padding: 48px 22px 24px;
    box-sizing: border-box;
    background-color: transparent;
    background-image: url("/images/roodblokMatch.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
    color: #ffffff;
}


    /* =========================================================
   BRUINE TEGELS
   ========================================================= */

    .company-tile:nth-child(even) {
        background-image: url("/images/bruinblokMatch.svg");
    }


    /* =========================================================
   VERBORGEN BIJ FILTEREN
   ========================================================= */

    .company-tile.is-hidden {
        display: none;
    }


/* =========================================================
   BEDRIJF INFO
   ========================================================= */

.company-info {
    flex: 0 0 auto;
    min-width: 0;
}


    /* =========================================================
   BEDRIJFSNAAM
   ========================================================= */

    .company-info h2 {
        margin: 0 0 7px;
        color: #ffffff;
        font-size: 19px;
        line-height: 1.08;
        font-weight: 800;
        overflow-wrap: anywhere;
        /*
     * Reserveert ruimte voor 2 regels bedrijfsnaam.
     *
     * Daardoor beginnen sector en website-link
     * bij iedere tegel op dezelfde hoogte.
     */
        min-height: 42px;
    }


    /* =========================================================
   ALGEMENE INFO
   ========================================================= */

    .company-info p {
        margin: 0;
        color: #ffffff;
        font-size: 10px;
        line-height: 1.3;
        font-weight: 500;
    }


/* =========================================================
   SECTOR
   ========================================================= */

.company-sector {
    margin: 0 0 8px !important;
    color: #ffffff !important;
    font-size: 12px !important;
    line-height: 1.3 !important;
    font-weight: 500;
}


/* =========================================================
   WEBSITE
   ========================================================= */

.company-website {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 2px;
    color: #ffffff;
    font-size: 10px;
    line-height: 1.2;
    font-weight: 700;
    text-decoration: none;
}

    .company-website svg {
        width: 12px;
        height: 12px;
        flex: 0 0 12px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .company-website:hover,
    .company-website:focus {
        color: #ffffff;
        text-decoration: underline;
    }


/* =========================================================
   VACATUREKNOP
   ========================================================= */

.company-action {
    margin-top: 14px;
    padding-top: 0;
}

.company-vacancy-button {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border: 2px solid #ffffff;
    border-radius: 8px;
    background: transparent;
    color: #ffffff;
    text-decoration: none;
    font-size: 10px;
    line-height: 1;
    font-weight: 800;
    white-space: nowrap;
    transition: background .2s ease, color .2s ease;
}

    .company-vacancy-button:hover,
    .company-vacancy-button:focus {
        background: #ffffff;
        color: #111111;
    }


/* =========================================================
   GEEN RESULTATEN
   ========================================================= */

.match-no-results {
    margin-top: 25px;
    padding: 20px;
    border: 1px solid #dddddd;
    border-radius: 10px;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 991.98px) {

    .match-container {
        width: min( 760px, calc(100% - 50px) );
    }


    .match-filter-section {
        padding: 45px 0 40px;
    }


    .match-page-header h1 {
        font-size: 40px;
    }


    .match-filters {
        gap: 35px;
    }


    /* =====================================================
       BEDRIJVEN
       ===================================================== */

    .company-grid {
        grid-template-columns: repeat(2, 240px);
        column-gap: 18px;
        row-gap: 20px;
    }


    .company-tile {
        min-height: 265px;
        padding: 44px 21px 22px;
        background-size: 100% 100%;
    }


    .company-info h2 {
        font-size: 18px;
        /*
         * Zelfde principe:
         * ruimte voor 2 regels.
         */
        min-height: 40px;
    }


    .company-action {
        margin-top: 13px;
    }
}


/* =========================================================
   SMARTPHONE
   ========================================================= */

@media (max-width: 767.98px) {

    .match-container {
        width: calc(100% - 40px);
    }


    .match-filter-section {
        padding: 35px 0;
    }


    .match-page-header {
        gap: 12px;
        margin-bottom: 30px;
    }


    .match-title-icon {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
    }


        .match-title-icon svg {
            width: 35px;
            height: 35px;
        }


    .match-page-header h1 {
        font-size: 34px;
    }


    /* =====================================================
       FILTERS ONDER ELKAAR
       ===================================================== */

    .match-filters {
        grid-template-columns: 1fr;
        gap: 28px;
    }


    .match-filter-footer {
        margin-top: 25px;
    }


    /* =====================================================
       RESULTATEN
       ===================================================== */

    .match-results {
        padding: 35px 0 60px;
    }


    /* =====================================================
       BEDRIJVEN
       ===================================================== */

    .company-grid {
        grid-template-columns: minmax(0, 260px);
        justify-content: center;
        gap: 14px;
    }


    .company-tile {
        min-height: 250px;
        padding: 40px 22px 22px;
        background-size: 100% 100%;
    }


    .company-info h2 {
        font-size: 18px;
        min-height: 40px;
    }


    .company-action {
        margin-top: 12px;
    }
}


/* =========================================================
   ZEER KLEINE SMARTPHONE
   ========================================================= */

@media (max-width: 480px) {

    .match-container {
        width: calc(100% - 32px);
    }


    .match-page-header h1 {
        font-size: 30px;
    }


    .study-filter,
    .sector-filter,
    .function-filter {
        font-size: 10px;
    }


    /* =====================================================
       BEDRIJVEN
       ===================================================== */

    .company-grid {
        grid-template-columns: minmax(0, 240px);
    }


    .company-tile {
        min-height: 240px;
        padding: 36px 20px 20px;
        background-size: 100% 100%;
    }


    /* =====================================================
       BEDRIJFSINFO
       ===================================================== */

    .company-info h2 {
        font-size: 17px;
        /*
         * Ruimte voor 2 regels van 17px.
         */
        min-height: 38px;
    }


    .company-sector,
    .company-website {
        font-size: 9px !important;
    }


    /* =====================================================
       VACATUREKNOP
       ===================================================== */

    .company-action {
        margin-top: 10px;
    }


    .company-vacancy-button {
        min-height: 30px;
        padding: 0 10px;
        font-size: 9px;
    }
}
