
/**
 * MobiWerk - Blogoverzicht
 * Bestand: assets/css/mobiwerk-blog.css
 * Versie: 1.2
 */

/* ========================================
   1. Basis en variabelen
======================================== */

.mw-blog {
    --mw-red: #E40614;
    --mw-dark: #323E43;
    --mw-text: #4C565B;
    --mw-border: #DCE2E6;
    --mw-muted: #5F6B71;

    width: 100%;
    color: var(--mw-text);
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

.mw-blog *,
.mw-blog *::before,
.mw-blog *::after {
    box-sizing: border-box;
}

.mw-blog a {
    color: inherit;
    text-decoration: none;
}

.mw-blog a:hover {
    color: var(--mw-red);
}

.mw-blog__container {
    width: 100%;
    max-width: 1200px;
    margin-right: auto;
    margin-left: auto;
    padding-right: 24px;
    padding-left: 24px;
}


/* ========================================
   2. Hero
======================================== */

.mw-blog__hero {
    position: relative;
    overflow: hidden;
    background: var(--mw-dark);
    color: #FFFFFF;
}

.mw-blog__hero::after,
.mw-blog__cta::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: 320px;
    height: 180px;
    background: var(--mw-red);
    clip-path: polygon(100% 0, 100% 100%, 0 100%);
    pointer-events: none;
}

.mw-blog__hero .mw-blog__container {
    position: relative;
    z-index: 1;
    padding-top: 56px;
    padding-bottom: 96px;
}


/* ========================================
   3. Breadcrumbs
======================================== */

.mw-blog__breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    color: #DCE2E6;
    font-size: 14px;
    line-height: 1.5;
}

.mw-blog__breadcrumbs a {
    color: #DCE2E6;
    font-size: 14px;
    line-height: 1.5;
}

.mw-blog__breadcrumbs a:hover {
    color: #FFFFFF;
}


/* ========================================
   4. Hero tekst
======================================== */

.mw-blog__eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 0.12em;
}

.mw-blog__eyebrow span {
    display: block;
    flex-shrink: 0;
    width: 32px;
    height: 3px;
    background: var(--mw-red);
}

.mw-blog__hero h1 {
    max-width: 760px;
    margin: 0 0 20px;
    color: #FFFFFF;
    font-family: 'Exo', Arial, sans-serif;
    font-size: clamp(36px, 6vw, 56px);
    font-weight: 500;
    line-height: 1.1;
}

.mw-blog__hero p {
    max-width: 640px;
    margin: 0;
    color: #DCE2E6;
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 19px;
    font-weight: 400;
    line-height: 1.6;
}


/* ========================================
   5. Filters
======================================== */

.mw-blog__filters {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    padding-top: 40px;
    padding-bottom: 8px;
}

.mw-blog__chips {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.mw-blog__chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 18px;
    border: 1px solid var(--mw-border);
    border-radius: 999px;
    background: #FFFFFF;
    color: var(--mw-dark);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    white-space: nowrap;
}

.mw-blog__chip:hover {
    border-color: var(--mw-dark);
    color: var(--mw-dark);
}

.mw-blog__chip.is-active,
.mw-blog__chip.is-active:hover {
    border-color: var(--mw-dark);
    background: var(--mw-dark);
    color: #FFFFFF;
}


/* ========================================
   6. Zoekfunctie
======================================== */

.mw-blog__search {
    display: flex;
    align-items: stretch;
    flex: 0 1 320px;
    gap: 6px;
}

.mw-blog__search input {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    margin: 0;
    padding: 12px 16px;
    border: 1px solid var(--mw-border);
    border-radius: 6px;
    outline: none;
    background: #FFFFFF;
    color: var(--mw-dark);
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
}

.mw-blog__search input::placeholder {
    color: var(--mw-muted);
    font-size: 14px;
    opacity: 1;
}

.mw-blog__search input:focus {
    border-color: var(--mw-dark);
}

.mw-blog__search button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    min-height: 48px;
    margin: 0;
    padding: 0 16px;
    border: 0;
    border-radius: 6px;
    background: var(--mw-dark);
    color: #FFFFFF;
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    cursor: pointer;
}

.mw-blog__search button:hover {
    background: var(--mw-red);
}


/* ========================================
   7. Blogoverzicht
======================================== */

.mw-blog__main {
    padding-top: 32px;
    padding-bottom: 80px;
}


/* ========================================
   8. Uitgelicht artikel
======================================== */

.mw-blog__featured {
    display: flex;
    flex-wrap: wrap;
    overflow: hidden;
    margin-bottom: 48px;
    border: 1px solid var(--mw-border);
    border-radius: 8px;
    background: #FFFFFF;
}


/* Uitgelichte afbeelding */

.mw-blog__featured-image {
    position: relative;
    display: block;
    flex: 1 1 520px;
    min-height: 400px;
    background: #436982;
}

.mw-blog__featured-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 400px;
    object-fit: cover;
}


/* Uitgelicht label */

.mw-blog__featured-label {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 6px 12px;
    border-radius: 4px;
    background: var(--mw-red);
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 0.08em;
}


/* Uitgelichte content */

.mw-blog__featured-content {
    display: flex;
    flex: 1 1 400px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 16px;
    min-width: 0;
    padding: 48px;
}

.mw-blog__category {
    color: var(--mw-red);
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}


/* Uitgelichte titel */

.mw-blog__featured h2 {
    margin: 0;
    color: var(--mw-dark);
    font-family: 'Exo', Arial, sans-serif;
    font-size: 32px;
    font-weight: 500;
    line-height: 1.25;
}

.mw-blog__featured h2 a {
    color: inherit;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
}

.mw-blog__featured h2 a:hover {
    color: var(--mw-red);
}


/* Uitgelichte samenvatting */

.mw-blog__featured p {
    margin: 0;
    color: var(--mw-text);
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.7;
}


/* Metadata */

.mw-blog__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--mw-muted);
    font-size: 14px;
    line-height: 1.5;
}


/* ========================================
   9. Buttons
======================================== */

.mw-blog__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 12px 24px;
    border-radius: 6px;
    background: var(--mw-dark);
    color: #FFFFFF !important;
    font-family: 'Exo', Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    text-align: center;
}

.mw-blog__button:hover {
    opacity: 0.9;
}


/* ========================================
   10. Blog grid
======================================== */

.mw-blog__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-bottom: 44px;
}


/* ========================================
   11. Blogkaarten
======================================== */

.mw-blog__card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--mw-border);
    border-radius: 8px;
    background: #FFFFFF;
}


/* Afbeelding */

.mw-blog__card-image {
    display: block;
    height: 220px;
    overflow: hidden;
    background: #436982;
}

.mw-blog__card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* Content */

.mw-blog__card-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 12px;
    padding: 24px;
}

.mw-blog__card .mw-blog__category {
    font-size: 12px;
    line-height: 1.5;
}


/* Blogtitel */

.mw-blog__card h2 {
    margin: 0;
    color: var(--mw-dark);
    font-family: 'Exo', Arial, sans-serif;
    font-size: 22px;
    font-weight: 500;
    line-height: 1.35;
}

.mw-blog__card h2 a {
    color: inherit;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
}

.mw-blog__card h2 a:hover {
    color: var(--mw-red);
}


/* Samenvatting */

.mw-blog__card p {
    margin: 0;
    color: var(--mw-text);
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.7;
}


/* Footer blogkaart */

.mw-blog__card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid #EAEFF1;
    color: var(--mw-muted);
    font-size: 13px;
    line-height: 1.5;
}

.mw-blog__card-footer a {
    color: var(--mw-red);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
}

.mw-blog__card-footer a:hover {
    color: var(--mw-dark);
}


/* ========================================
   12. Paginering
======================================== */

.mw-blog__pagination {
    margin-bottom: 48px;
}

.mw-blog__pagination ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.mw-blog__pagination li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.mw-blog__pagination a,
.mw-blog__pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid var(--mw-border);
    border-radius: 6px;
    color: var(--mw-dark);
    font-size: 14px;
    line-height: 1.5;
}

.mw-blog__pagination a:hover {
    border-color: var(--mw-dark);
    color: var(--mw-dark);
}

.mw-blog__pagination .current {
    border-color: var(--mw-dark);
    background: var(--mw-dark);
    color: #FFFFFF;
}


/* ========================================
   13. Geen artikelen
======================================== */

.mw-blog__empty {
    margin-bottom: 48px;
    padding: 64px 24px;
    border: 1px dashed #9BABB6;
    border-radius: 8px;
    text-align: center;
}

.mw-blog__empty p {
    margin: 0 0 16px;
    font-size: 16px;
    line-height: 1.6;
}

.mw-blog__empty a {
    color: var(--mw-red);
    font-size: 14px;
    font-weight: 500;
}


/* ========================================
   14. CTA
======================================== */

.mw-blog__cta {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 32px;
    overflow: hidden;
    padding: 56px 48px;
    border-radius: 8px;
    background: var(--mw-dark);
    color: #FFFFFF;
}

.mw-blog__cta::after {
    width: 220px;
    height: 130px;
}

.mw-blog__cta > div {
    position: relative;
    z-index: 1;
}

.mw-blog__cta > div:first-child {
    flex: 1 1 520px;
}

.mw-blog__cta h2 {
    margin: 0 0 14px;
    color: #FFFFFF;
    font-family: 'Exo', Arial, sans-serif;
    font-size: 34px;
    font-weight: 500;
    line-height: 1.2;
}

.mw-blog__cta p {
    margin: 0;
    color: #DCE2E6;
    font-size: 17px;
    line-height: 1.7;
}

.mw-blog__cta-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.mw-blog__button--red {
    background: var(--mw-red);
}

.mw-blog__button--outline {
    border: 1px solid #FFFFFF;
    background: transparent;
}


/* ========================================
   15. Tablet
======================================== */

@media (max-width: 900px) {

    .mw-blog__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mw-blog__featured-content {
        padding: 32px;
    }

    .mw-blog__featured h2 {
        font-size: 28px;
    }

}


/* ========================================
   16. Mobiel
======================================== */

@media (max-width: 600px) {

    .mw-blog__container {
        padding-right: 18px;
        padding-left: 18px;
    }

    .mw-blog__hero .mw-blog__container {
        padding-top: 40px;
        padding-bottom: 64px;
    }

    .mw-blog__hero::after {
        width: 140px;
        height: 90px;
    }

    .mw-blog__hero h1 {
        font-size: 36px;
    }

    .mw-blog__hero p {
        font-size: 16px;
    }

    .mw-blog__filters {
        padding-top: 24px;
    }

    .mw-blog__search {
        flex: 1 1 100%;
    }

    .mw-blog__grid {
        grid-template-columns: 1fr;
    }

    .mw-blog__featured-image,
    .mw-blog__featured-image img {
        min-height: 240px;
    }

    .mw-blog__featured-content {
        padding: 24px;
    }

    .mw-blog__featured h2 {
        font-size: 26px;
    }

    .mw-blog__featured p {
        font-size: 15px;
    }

    .mw-blog__card h2 {
        font-size: 21px;
    }

    .mw-blog__card p {
        font-size: 15px;
    }

    .mw-blog__cta {
        padding: 32px 24px;
    }

    .mw-blog__cta h2 {
        font-size: 27px;
    }

    .mw-blog__cta p {
        font-size: 15px;
    }

}
