/* =========================================================
   DUTCH FAMILY
   PUBLIEKE NIEUWSPAGINA
   /css/nieuws.css
   ========================================================= */


/* =========================================================
   BASIS
   ========================================================= */

.news-page {
    min-height: 70vh;
    padding: 5rem 0 6rem;

    background:
        radial-gradient(
            circle at 92% 8%,
            rgba(229, 182, 47, .08),
            transparent 24%
        ),
        radial-gradient(
            circle at 8% 32%,
            rgba(23, 103, 165, .05),
            transparent 24%
        ),
        linear-gradient(
            180deg,
            #ffffff 0%,
            #f7f9fc 100%
        );
}

.news-page--detail {
    padding-top: 3.5rem;
}


/* =========================================================
   PAGINAKOP
   ========================================================= */

.news-page__hero {
    max-width: 780px;
    margin-bottom: 2rem;
}

.news-page__hero .eyebrow {
    width: fit-content;
}

.news-page__hero h1 {
    margin-bottom: .9rem;

    color: var(--color-blue-deep);

    font-size: clamp(2.4rem, 5vw, 4rem);
    line-height: 1.05;
}

.news-page__hero > p:last-child {
    max-width: 700px;
    margin-bottom: 0;

    color: #667484;

    font-size: 1.05rem;
    line-height: 1.7;
}


/* =========================================================
   FILTERS
   ========================================================= */

.news-page-filters {
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;

    gap: .85rem;

    margin-bottom: 2.5rem;
    padding: 1rem;

    border: 1px solid rgba(13, 61, 107, .09);
    border-radius: var(--radius-md);

    background: #ffffff;

    box-shadow:
        0 8px 24px rgba(6, 30, 56, .055);
}

.news-page-search {
    display: flex;
    min-width: min(100%, 300px);
    min-height: 46px;
    flex: 1 1 320px;
    align-items: center;

    gap: .6rem;

    padding: 0 .9rem;

    border: 1px solid #dce3ea;
    border-radius: 11px;

    background: #ffffff;

    transition:
        border-color .18s ease,
        box-shadow .18s ease;
}

.news-page-search:focus-within {
    border-color: var(--color-gold);

    box-shadow:
        0 0 0 4px rgba(229, 182, 47, .12);
}

.news-page-search input {
    width: 100%;
    min-width: 0;

    border: 0;
    outline: 0;

    background: transparent;

    color: #273850;

    font: inherit;
}

.news-page-search input::placeholder {
    color: #a5adba;
}

.news-page-team-filter {
    display: flex;
    flex-direction: column;

    gap: .35rem;
}

.news-page-team-filter > span {
    color: #7a8596;

    font-size: .68rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.news-page-team-filter select {
    min-width: 210px;
    min-height: 46px;

    box-sizing: border-box;

    padding: 0 2.4rem 0 .85rem;

    border: 1px solid #dce3ea;
    border-radius: 11px;
    outline: 0;

    background: #ffffff;

    color: #273850;

    font: inherit;

    cursor: pointer;
}

.news-page-team-filter select:focus {
    border-color: var(--color-gold);

    box-shadow:
        0 0 0 4px rgba(229, 182, 47, .12);
}

.news-page-reset {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;

    padding: 0 .4rem;

    color: #7b8696;

    font-size: .8rem;
    font-weight: 900;
    text-decoration: none;
}

.news-page-reset:hover {
    color: var(--color-red-orange);
}


/* =========================================================
   ALGEMENE LABELS
   ========================================================= */

.news-card-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: .45rem;

    margin-bottom: .6rem;
}

.news-card-team {
    color: var(--color-red-orange);

    font-size: .7rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.news-card-new {
    display: inline-flex;
    align-items: center;

    padding: .18rem .5rem;

    border: 1px solid rgba(208, 155, 10, .18);
    border-radius: var(--radius-pill);

    color: #7a4d00;

    background:
        linear-gradient(
            135deg,
            #fff2ad,
            #ffd76a
        );

    font-size: .62rem;
    font-weight: 900;
    letter-spacing: .05em;
}


/* =========================================================
   UITGELICHT NIEUWS
   ========================================================= */

.news-featured {
    margin-bottom: 2rem;

    overflow: hidden;

    border: 1px solid rgba(13, 61, 107, .10);
    border-radius: var(--radius-lg);

    background: #ffffff;

    box-shadow:
        0 16px 42px rgba(6, 30, 56, .10);

    transition:
        transform .22s ease,
        box-shadow .22s ease;
}

.news-featured:hover {
    transform: translateY(-3px);

    box-shadow:
        0 22px 50px rgba(6, 30, 56, .13);
}

.news-featured__link {
    display: grid;

    grid-template-columns:
        minmax(0, 1.08fr)
        minmax(0, .92fr);

    min-height: 390px;

    color: inherit;

    text-decoration: none;
}

.news-featured__visual {
    display: grid;
    place-items: center;

    min-width: 0;
    min-height: 390px;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 50% 40%,
            #ffffff,
            #f0f4f7 72%
        );
}

.news-featured__image {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;
    object-position: center;

    padding: 1rem;

    box-sizing: border-box;
}

.news-featured__icon {
    display: grid;
    width: 120px;
    height: 120px;
    place-items: center;

    border-radius: 30px;

    background:
        linear-gradient(
            135deg,
            #fff3bd,
            #ffd65f
        );

    box-shadow: var(--shadow-gold);

    font-size: 3.6rem;
}

.news-featured__content {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;

    padding: 3rem;
}

.news-featured h2 {
    margin: 0 0 1rem;

    color: var(--color-blue-deep);

    font-size: clamp(1.7rem, 3vw, 2.5rem);
    line-height: 1.16;
}

.news-featured p {
    margin: 0 0 1.35rem;

    color: #667484;

    font-size: 1rem;
    line-height: 1.75;
}

.news-featured__footer,
.news-page-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 1rem;

    margin-top: auto;
}

.news-featured__footer span,
.news-page-card__footer span {
    color: #929ba7;

    font-size: .78rem;
    font-weight: 700;
}

.news-featured__footer strong,
.news-page-card__footer strong {
    color: var(--color-red-orange);

    font-size: .82rem;
    font-weight: 900;
}


/* =========================================================
   NIEUWS GRID
   ========================================================= */

.news-page-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 1.35rem;
}

.news-page-card {
    min-width: 0;

    overflow: hidden;

    border: 1px solid rgba(13, 61, 107, .09);
    border-radius: var(--radius-md);

    background: #ffffff;

    box-shadow: var(--shadow-card);

    transition:
        transform .22s ease,
        box-shadow .22s ease,
        border-color .22s ease;
}

.news-page-card:hover {
    transform: translateY(-4px);

    border-color: rgba(13, 61, 107, .14);

    box-shadow: var(--shadow-card-hover);
}

.news-page-card__link {
    display: flex;
    height: 100%;
    flex-direction: column;

    color: inherit;

    text-decoration: none;
}

.news-page-card__visual {
    display: grid;
    width: 100%;
    min-height: 220px;
    place-items: center;

    overflow: hidden;

    border-bottom: 1px solid rgba(13, 61, 107, .07);

    background:
        radial-gradient(
            circle at 50% 40%,
            #ffffff,
            #f0f4f7 75%
        );
}

.news-page-card__image {
    display: block;

    width: 100%;
    height: auto;

    max-height: 300px;

    object-fit: contain;
    object-position: center;

    padding: .75rem;

    box-sizing: border-box;
}

.news-page-card__icon {
    display: grid;
    width: 78px;
    height: 78px;
    place-items: center;

    border-radius: 20px;

    background:
        linear-gradient(
            135deg,
            #fff3bd,
            #ffd65f
        );

    box-shadow: var(--shadow-gold);

    font-size: 2.3rem;
}

.news-page-card__content {
    display: flex;
    min-width: 0;
    flex: 1 1 auto;
    flex-direction: column;

    padding: 1.35rem;
}

.news-page-card h2 {
    margin: 0 0 .65rem;

    color: var(--color-blue-deep);

    font-size: 1.15rem;
    line-height: 1.35;
}

.news-page-card p {
    display: -webkit-box;

    overflow: hidden;

    margin: 0 0 1rem;

    color: #667484;

    font-size: .9rem;
    line-height: 1.65;

    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    line-clamp: 4;
}


/* =========================================================
   LEEG
   ========================================================= */

.news-page-empty {
    padding: 4rem 2rem;

    text-align: center;

    border: 1px solid rgba(13, 61, 107, .09);
    border-radius: var(--radius-lg);

    background: #ffffff;

    box-shadow:
        0 12px 34px rgba(6, 30, 56, .07);
}

.news-page-empty > span {
    display: block;

    margin-bottom: .8rem;

    font-size: 2.8rem;
}

.news-page-empty strong {
    display: block;

    color: var(--color-blue-deep);

    font-size: 1.15rem;
}

.news-page-empty p {
    margin: .45rem 0 1.4rem;

    color: #7b8795;
}


/* =========================================================
   DETAIL - TERUG
   ========================================================= */

.news-page__back {
    display: inline-flex;
    align-items: center;

    margin-bottom: 1.5rem;

    color: #667484;

    font-size: .86rem;
    font-weight: 900;
    text-decoration: none;

    transition:
        color .18s ease,
        transform .18s ease;
}

.news-page__back:hover {
    color: var(--color-red-orange);

    transform: translateX(-3px);
}


/* =========================================================
   DETAIL
   ========================================================= */

.news-detail {
    max-width: 980px;

    margin: 0 auto;

    overflow: hidden;

    border: 1px solid rgba(13, 61, 107, .10);
    border-radius: var(--radius-lg);

    background: #ffffff;

    box-shadow:
        0 16px 44px rgba(6, 30, 56, .10);
}

.news-detail__header {
    padding: 2.4rem 2.6rem 1.8rem;
}

.news-detail__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: .55rem;

    margin-bottom: .8rem;
}

.news-detail__team {
    color: var(--color-red-orange);

    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.news-detail__new {
    display: inline-flex;

    padding: .2rem .55rem;

    border-radius: var(--radius-pill);

    color: #7a4d00;

    background:
        linear-gradient(
            135deg,
            #fff2ad,
            #ffd76a
        );

    font-size: .64rem;
    font-weight: 900;
}

.news-detail__date {
    color: #939ca8;

    font-size: .76rem;
    font-weight: 700;
}

.news-detail h1 {
    max-width: 820px;

    margin: 0;

    color: var(--color-blue-deep);

    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.12;
}

.news-detail__visual {
    display: grid;
    place-items: center;

    width: 100%;

    background:
        radial-gradient(
            circle at 50% 42%,
            #ffffff,
            #eef3f7 76%
        );
}

.news-detail__image {
    display: block;

    width: 100%;
    height: auto;

    max-height: 700px;

    object-fit: contain;
    object-position: center;

    padding: 1.4rem;

    box-sizing: border-box;
}

.news-detail__icon {
    display: grid;
    width: 150px;
    height: 150px;
    place-items: center;

    margin: 3rem;

    border-radius: 36px;

    background:
        linear-gradient(
            135deg,
            #fff3bd,
            #ffd65f
        );

    box-shadow: var(--shadow-gold);

    font-size: 4.5rem;
}

.news-detail__content {
    padding: 2.4rem 2.6rem 3rem;

    color: #48586d;

    font-size: 1rem;
    line-height: 1.8;
}

.news-detail__content h2 {
    margin: 1.7em 0 .6em;

    color: var(--color-blue-deep);

    font-size: 1.55rem;
}

.news-detail__content h3 {
    margin: 1.5em 0 .55em;

    color: #223756;

    font-size: 1.25rem;
}

.news-detail__content p {
    margin: 0 0 1.1rem;
}

.news-detail__content ul,
.news-detail__content ol {
    margin: 0 0 1.2rem;
    padding-left: 1.5rem;
}

.news-detail__content blockquote {
    margin: 1.4rem 0;
    padding: 1rem 1.2rem;

    border-left: 4px solid var(--color-gold);
    border-radius: 0 10px 10px 0;

    background: #fffaf0;

    color: #647187;
}

.news-detail__content a {
    color: var(--color-red-orange);

    font-weight: 800;
    text-underline-offset: 2px;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 950px) {

    .news-page {
        padding-top: 4rem;
    }

    .news-featured__link {
        grid-template-columns: 1fr;
    }

    .news-featured__visual {
        min-height: 320px;
    }

    .news-featured__image {
        max-height: 520px;
    }

    .news-featured__content {
        padding: 2rem;
    }

    .news-page-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}


/* =========================================================
   MOBIEL
   ========================================================= */

@media (max-width: 700px) {

    .news-page {
        padding: 3.2rem 0 4rem;
    }

    .news-page-filters {
        display: grid;
        grid-template-columns: 1fr;
    }

    .news-page-search,
    .news-page-team-filter,
    .news-page-team-filter select,
    .news-page-filters .button {
        width: 100%;
        min-width: 0;
    }

    .news-page-reset {
        min-height: 36px;
    }

    .news-featured__visual {
        min-height: 240px;
    }

    .news-featured__content {
        padding: 1.45rem;
    }

    .news-featured__footer,
    .news-page-card__footer {
        align-items: flex-start;
        flex-direction: column;

        gap: .35rem;
    }

    .news-page-grid {
        grid-template-columns: 1fr;
    }

    .news-page-card__visual {
        min-height: 190px;
    }

    .news-page-card__image {
        max-height: none;
    }

    .news-detail__header {
        padding: 1.6rem 1.4rem 1.3rem;
    }

    .news-detail__image {
        max-height: none;
        padding: .8rem;
    }

    .news-detail__content {
        padding: 1.6rem 1.4rem 2rem;

        font-size: .95rem;
    }

    .news-detail__icon {
        width: 110px;
        height: 110px;

        margin: 2rem;

        border-radius: 28px;

        font-size: 3.2rem;
    }
}


/* =========================================================
   KLEIN MOBIEL
   ========================================================= */

@media (max-width: 450px) {

    .news-page__hero h1 {
        font-size: 2.25rem;
    }

    .news-featured__visual {
        min-height: 210px;
    }

    .news-featured h2 {
        font-size: 1.45rem;
    }

    .news-page-card__content {
        padding: 1.15rem;
    }

    .news-page-card h2 {
        font-size: 1.08rem;
    }
}
