/* Vaarmarkt Vaarnieuws Beta v1.0.0-beta1 */

.vm-vnf {
    --vm-vnf-blue: #004e8e;
    --vm-vnf-blue-dark: #023e6f;
    --vm-vnf-blue-light: #eaf2f9;
    --vm-vnf-border: #ebe5dc;
    --vm-vnf-text: #1f2933;
    --vm-vnf-muted: #4b5563;
    --vm-vnf-bg: #f9f6f1;
    --vm-vnf-card: #fff;
    width: 100%;
    max-width: 1250px;
    margin: 0 auto;
    padding: 28px 0 34px;
    color: var(--vm-vnf-text);
}

.vm-vnf,
.vm-vnf * {
    box-sizing: border-box;
}

.vm-vnf a {
    text-decoration: none !important;
}

.vm-vnf__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 16px;
}

.vm-vnf__title {
    margin: 0;
    color: var(--vm-vnf-blue);
    font-family: Manrope, Inter, Arial, sans-serif;
    font-size: 28px;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -.02em;
}

.vm-vnf__subtitle {
    margin: 5px 0 0;
    color: var(--vm-vnf-muted);
    font-family: Inter, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.45;
    font-weight: 400;
}

.vm-vnf__all,
.vm-vnf__mobile-all {
    color: var(--vm-vnf-blue) !important;
    font-family: Inter, Arial, sans-serif;
    font-size: 13px;
    line-height: 1.3;
    font-weight: 600;
}

.vm-vnf__all {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
}

.vm-vnf__layout {
    display: grid;
    grid-template-columns: minmax(0, 1.58fr) minmax(320px, .92fr);
    gap: 14px;
    align-items: stretch;
}

.vm-vnf__hero,
.vm-vnf__hero-link,
.vm-vnf__hero-media {
    min-width: 0;
    height: 100%;
}

.vm-vnf__hero-link {
    display: block;
}

.vm-vnf__hero-media {
    position: relative;
    min-height: 330px;
    overflow: hidden;
    border-radius: 10px;
    background: #dfe7ed;
    box-shadow:
        0 1px 2px rgba(31, 41, 51, .04),
        0 4px 12px rgba(31, 41, 51, .07);
}

.vm-vnf__hero-image,
.vm-vnf__hero-image--placeholder {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 330px;
}

.vm-vnf__hero-image {
    object-fit: cover;
    transition: transform .25s ease;
}

.vm-vnf__hero-image--placeholder {
    background: linear-gradient(135deg, #dce8f2, #eef4f8);
}

.vm-vnf__hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(2, 62, 111, 0) 42%, rgba(2, 45, 78, .72) 100%);
}

.vm-vnf__badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    padding: 5px 11px;
    border: 1px solid rgba(198, 219, 237, .75);
    border-radius: 999px;
    background: rgba(255, 255, 255, .92);
    color: var(--vm-vnf-blue);
    font-family: Inter, Arial, sans-serif;
    font-size: 11px;
    line-height: 1.1;
    font-weight: 700;
    text-transform: uppercase;
    backdrop-filter: blur(3px);
}

.vm-vnf__hero-copy {
    position: absolute;
    left: 18px;
    right: 70px;
    bottom: 18px;
    z-index: 2;
    color: #fff;
}

.vm-vnf__hero-date {
    display: block;
    margin-bottom: 5px;
    color: rgba(255,255,255,.9);
    font-family: Inter, Arial, sans-serif;
    font-size: 13px;
    line-height: 1.3;
}

.vm-vnf__hero-title {
    margin: 0;
    color: #fff;
    font-family: Manrope, Inter, Arial, sans-serif;
    font-size: clamp(24px, 2.5vw, 34px);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -.025em;
}

.vm-vnf__hero-arrow {
    position: absolute;
    right: 16px;
    bottom: 16px;
    z-index: 2;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 50%;
    background: #fff;
    color: var(--vm-vnf-blue);
    font-family: Inter, Arial, sans-serif;
    font-size: 23px;
    line-height: 1;
    box-shadow: 0 2px 7px rgba(31,41,51,.12);
}

.vm-vnf__list {
    display: grid;
    grid-template-rows: repeat(3, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid var(--vm-vnf-border);
    border-radius: 10px;
    background: #fff;
    box-shadow:
        0 1px 2px rgba(31, 41, 51, .035),
        0 4px 12px rgba(31, 41, 51, .055);
}

.vm-vnf__item + .vm-vnf__item {
    border-top: 1px solid #eee9e2;
}

.vm-vnf__item-link {
    display: grid;
    grid-template-columns: 116px minmax(0, 1fr) 24px;
    gap: 14px;
    min-height: 100%;
    align-items: center;
    padding: 10px 12px;
    color: inherit !important;
}

.vm-vnf__item-media {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 7px;
    background: #eef1f2;
}

.vm-vnf__item-image,
.vm-vnf__item-image--placeholder {
    display: block;
    width: 100%;
    height: 100%;
}

.vm-vnf__item-image {
    object-fit: cover;
    transition: transform .25s ease;
}

.vm-vnf__item-image--placeholder {
    background: #eaf2f9;
}

.vm-vnf__item-date {
    display: block;
    margin-bottom: 3px;
    color: #667085;
    font-family: Inter, Arial, sans-serif;
    font-size: 11px;
    line-height: 1.3;
}

.vm-vnf__item-title {
    margin: 0;
    color: var(--vm-vnf-blue-dark);
    font-family: Manrope, Inter, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: -.01em;
}

.vm-vnf__item-arrow {
    color: var(--vm-vnf-blue);
    font-size: 28px;
    line-height: 1;
    text-align: center;
}

.vm-vnf__mobile-all {
    display: none;
}

@media (hover: hover) and (pointer: fine) {
    .vm-vnf__hero-link:hover .vm-vnf__hero-image,
    .vm-vnf__item-link:hover .vm-vnf__item-image {
        transform: scale(1.02);
    }

    .vm-vnf__all:hover,
    .vm-vnf__mobile-all:hover {
        text-decoration: underline !important;
        text-underline-offset: 3px;
    }
}

@media (max-width: 767px) {
    .vm-vnf {
        padding: 24px 0 30px;
    }

    .vm-vnf__head {
        display: block;
        margin-bottom: 14px;
    }

    .vm-vnf__title {
        font-size: 24px;
        line-height: 1.15;
    }

    .vm-vnf__subtitle {
        font-size: 15px;
        line-height: 1.4;
    }

    .vm-vnf__all {
        display: none;
    }

    .vm-vnf__layout {
        display: block;
    }

    .vm-vnf__hero-media {
        min-height: 0;
        aspect-ratio: 16 / 10;
    }

    .vm-vnf__hero-image,
    .vm-vnf__hero-image--placeholder {
        min-height: 0;
        width: 100%;
        height: 100%;
    }

    .vm-vnf__hero-copy {
        left: 14px;
        right: 58px;
        bottom: 14px;
    }

    .vm-vnf__hero-date {
        font-size: 11px;
    }

    .vm-vnf__hero-title {
        font-size: 22px;
        line-height: 1.08;
    }

    .vm-vnf__hero-arrow {
        right: 12px;
        bottom: 12px;
        width: 38px;
        height: 38px;
        font-size: 21px;
    }

    .vm-vnf__list {
        margin-top: 10px;
        border-radius: 10px;
    }

    .vm-vnf__item-link {
        grid-template-columns: 92px minmax(0, 1fr) 20px;
        gap: 10px;
        min-height: 86px;
        padding: 8px 10px;
    }

    .vm-vnf__item-title {
        font-size: 14px;
        line-height: 1.22;
    }

    .vm-vnf__item-arrow {
        font-size: 24px;
    }

    .vm-vnf__mobile-all {
        display: flex;
        min-height: 44px;
        align-items: center;
        justify-content: center;
        gap: 7px;
        margin-top: 12px;
        border: 1px solid #c6dbed;
        border-radius: 999px;
        background: #eaf2f9;
        color: var(--vm-vnf-blue) !important;
        font-size: 14px;
        font-weight: 700;
    }
}

@media (prefers-reduced-motion: reduce) {
    .vm-vnf__hero-image,
    .vm-vnf__item-image {
        transition: none;
    }
}

.vm-vnf--empty {
    padding: 16px 0;
    color: #8a2d2d;
    font-family: Inter, Arial, sans-serif;
    font-size: 14px;
}


/* =========================================================
   beta2 - Vaarnieuws scope + Vaarmarkt typografie
   ========================================================= */

.vm-vnf__title {
    color: #004e8e !important;
    font-family: Manrope, Inter, Arial, sans-serif !important;
    font-size: 28px !important;
    line-height: 1.15 !important;
    font-weight: 800 !important;
    letter-spacing: -.02em !important;
}

.vm-vnf__subtitle {
    color: #4b5563 !important;
    font-family: Inter, Arial, sans-serif !important;
    font-size: 16px !important;
    line-height: 1.45 !important;
    font-weight: 400 !important;
}

.vm-vnf__hero-title {
    color: #ffffff !important;
    font-family: Manrope, Inter, Arial, sans-serif !important;
    font-weight: 800 !important;
    letter-spacing: -.025em !important;
}

.vm-vnf__hero-date,
.vm-vnf__item-date {
    font-family: Inter, Arial, sans-serif !important;
    font-weight: 400 !important;
}

.vm-vnf__item-title {
    color: #023e6f !important;
    font-family: Manrope, Inter, Arial, sans-serif !important;
    font-size: 15px !important;
    line-height: 1.25 !important;
    font-weight: 800 !important;
    letter-spacing: -.01em !important;
}

.vm-vnf__badge {
    font-family: Inter, Arial, sans-serif !important;
    font-size: 11px !important;
    font-weight: 700 !important;
}

.vm-vnf__all,
.vm-vnf__mobile-all {
    font-family: Inter, Arial, sans-serif !important;
    font-weight: 600 !important;
}

@media (max-width: 767px) {
    .vm-vnf__title {
        font-size: 24px !important;
        line-height: 1.15 !important;
    }

    .vm-vnf__subtitle {
        font-size: 15px !important;
        line-height: 1.4 !important;
    }

    .vm-vnf__hero-title {
        font-size: 22px !important;
        line-height: 1.08 !important;
    }

    .vm-vnf__item-title {
        font-size: 14px !important;
        line-height: 1.22 !important;
    }
}


/* =========================================================
   beta3 - definitieve hero typografie + platter CTA-icoon
   ========================================================= */

/* Hero-copy: datum/eyebrow 16px, titel 30px in Vaarmarkt/Manrope-stijl. */
.vm-vnf__hero-date {
    margin-bottom: 6px !important;
    color: rgba(255, 255, 255, .94) !important;
    font-family: Inter, Arial, sans-serif !important;
    font-size: 16px !important;
    line-height: 1.3 !important;
    font-weight: 500 !important;
}

.vm-vnf__hero-title {
    max-width: 92%;
    color: #ffffff !important;
    font-family: Manrope, Inter, Arial, sans-serif !important;
    font-size: 30px !important;
    line-height: 1.08 !important;
    font-weight: 800 !important;
    letter-spacing: -.025em !important;
}

/* Hero CTA: geen witte cirkel, geen shadow; alleen een stevige platte pijl. */
.vm-vnf__hero-arrow {
    position: absolute;
    right: 18px;
    bottom: 18px;
    z-index: 2;
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #ffffff !important;
    box-shadow: none !important;
}

.vm-vnf__arrow-svg {
    display: block;
    width: 28px;
    height: 28px;
    overflow: visible;
}

.vm-vnf__arrow-svg--small {
    width: 22px;
    height: 22px;
}

/* Compacte nieuwslijst: dezelfde vollere, vlakke pijl. */
.vm-vnf__item-arrow {
    display: grid !important;
    place-items: center;
    color: #004e8e !important;
    font-size: 0 !important;
}

.vm-vnf__all-arrow {
    display: inline-grid;
    place-items: center;
    color: inherit;
}

/* Zorg dat de hero-overlay voldoende contrast onder de grotere titel houdt. */
.vm-vnf__hero-shade {
    background:
        linear-gradient(
            180deg,
            rgba(2, 62, 111, 0) 38%,
            rgba(2, 45, 78, .28) 62%,
            rgba(2, 45, 78, .82) 100%
        ) !important;
}

@media (max-width: 767px) {
    .vm-vnf__hero-date {
        font-size: 13px !important;
    }

    .vm-vnf__hero-title {
        max-width: 90%;
        font-size: 24px !important;
        line-height: 1.08 !important;
    }

    .vm-vnf__hero-arrow {
        right: 12px;
        bottom: 12px;
        width: 40px;
        height: 40px;
    }

    .vm-vnf__hero-arrow .vm-vnf__arrow-svg {
        width: 24px;
        height: 24px;
    }
}


/* =========================================================
   beta4 - 4 subberichten + enkelvoud labels
   ========================================================= */

@media (min-width: 768px) {
    .vm-vnf__list {
        grid-template-rows: repeat(4, minmax(0, 1fr)) !important;
    }

    .vm-vnf__item-link {
        grid-template-columns: 110px minmax(0, 1fr) 24px !important;
        gap: 12px !important;
        padding: 8px 12px !important;
    }

    .vm-vnf__item-title {
        font-size: 14px !important;
        line-height: 1.22 !important;
    }

    .vm-vnf__item-date {
        font-size: 10.5px !important;
    }
}


/* =========================================================
   beta5 - consistente thumbnailverhouding voor subberichten
   ========================================================= */

.vm-vnf__item-media {
    position: relative !important;
    width: 100% !important;
    aspect-ratio: 16 / 10 !important;
    overflow: hidden !important;
    border-radius: 7px !important;
    background: #eaf2f9 !important;
}

.vm-vnf__item-image,
.vm-vnf__item-image--placeholder {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    min-height: 100% !important;
}

.vm-vnf__item-image {
    max-width: none !important;
    object-fit: cover !important;
    object-position: 50% 50% !important;
}


/* =========================================================
   beta6 - mobiele vereenvoudiging
   ========================================================= */
@media (max-width: 767px) {
    .vm-vnf__hero-date,
    .vm-vnf__item-date {
        display: none !important;
    }

    .vm-vnf__item-arrow {
        display: none !important;
    }

    .vm-vnf__item-link {
        grid-template-columns: 92px minmax(0, 1fr) !important;
        gap: 10px !important;
    }

    .vm-vnf__mobile-all {
        display: flex !important;
        width: 100% !important;
        min-height: 0 !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 6px !important;
        margin-top: 14px !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        color: #004e8e !important;
        font-family: Inter, Arial, sans-serif !important;
        font-size: 14px !important;
        line-height: 1.3 !important;
        font-weight: 600 !important;
        text-align: right !important;
        text-decoration: none !important;
    }

    .vm-vnf__mobile-all-arrow {
        display: inline-block;
        color: #004e8e;
        font-size: 20px;
        line-height: 1;
        font-weight: 600;
        transform: translateY(-1px);
    }
}
