/* BELREUS Media Network (includes/ads.php): advertentieposities. Altijd herkenbaar als reclame, nooit uitgerekt, geen lege ruimte. */
.adx { margin-top: var(--sp-6, 32px); margin-bottom: var(--sp-2, 8px); }
.adx-label { margin: 0 0 6px !important; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted, #55637b); text-align: center; }
.adx-item { display: flex; justify-content: center; }
.adx-desk { display: flex; }
.adx-mob { display: none; }
@media (max-width: 760px) { .adx-desk { display: none; } .adx-mob { display: flex; } }

/* Beeldbanners: originele verhouding, schalen alleen omlaag. */
.adx-img { display: block; max-width: 100%; line-height: 0; border-radius: 10px; overflow: hidden; box-shadow: 0 8px 24px rgba(11, 31, 66, .08); }
.adx-img img { display: block; max-width: 100%; height: auto; }
.adx-img--leaderboard img, .adx-img--billboard img { width: 728px; }
.adx-img--billboard img { width: 970px; }
/* Rechthoek op eigen formaat (300x250 of 336x280 volgens de width/height van de creative), nooit breder dan de kolom. */
.adx-img--rectangle img { width: auto; }
.adx-img--square img { width: 300px; }
.adx-img--mobile img { width: 320px; }

/* Tekstadvertentie van een partner (geen extern beeld): logo, kop, toelichting, knop. */
.adx-text { display: flex; align-items: center; gap: 18px; width: 100%; max-width: 970px; padding: 18px 22px; border: 1px solid var(--line, #e4e9f2); border-radius: var(--radius-lg, 20px);
    background: linear-gradient(135deg, #fff 0%, var(--tint, #f4f7fc) 100%); color: var(--ink, #14233f); text-decoration: none; box-shadow: 0 8px 24px rgba(11, 31, 66, .06); }
.adx-text:hover { border-color: var(--blue, #1a62f2); color: var(--ink, #14233f); }
.adx-text-logo { flex: 0 0 auto; display: flex; align-items: center; height: 44px; }
.adx-text-logo img { height: 36px; width: auto; max-width: 120px; object-fit: contain; }
.adx-text-copy { flex: 1 1 auto; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.adx-text-copy strong { font-family: var(--font-heading, inherit); font-size: 1.125rem; color: var(--navy, #0b1f42); line-height: 1.3; }
.adx-text-copy span { font-size: 13.5px; color: var(--muted, #55637b); }
.adx-text-cta { flex: 0 0 auto; }

/* Eigen BELREUS-campagne (house-ad): navy, geen externe beelden. */
.adx-house { display: flex; align-items: center; gap: 18px; width: 100%; max-width: 970px; padding: 20px 24px; border-radius: var(--radius-lg, 20px); color: #fff; text-decoration: none;
    background: radial-gradient(360px 160px at 85% 30%, rgba(124, 182, 255, .28), rgba(124, 182, 255, 0) 70%), linear-gradient(135deg, var(--navy-deep, #071530), var(--navy-2, #12306e) 60%, #1a4fd6); box-shadow: 0 14px 34px rgba(7, 21, 48, .22); }
.adx-house:hover { color: #fff; }
.adx-house-mark { flex: 0 0 auto; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: rgba(255, 255, 255, .12); color: var(--gold-light, #f6e3b4); }
.adx-house-copy { flex: 1 1 auto; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.adx-house-copy strong { font-family: var(--font-heading, inherit); font-size: 1.25rem; line-height: 1.25; }
.adx-house-copy span { font-size: 14px; color: #c9d8f6; }
.adx-house-cta { flex: 0 0 auto; }

/* Smalle kolom (rechterkolom nieuws/artikel): alles onder elkaar. */
.adx--side .adx-text, .adx--side .adx-house { flex-direction: column; align-items: flex-start; max-width: 300px; }
.adx--side { margin-top: 0; padding: 0; }
@media (max-width: 760px) {
    .adx-text, .adx-house { flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px; }
    .adx-text-cta, .adx-house-cta { width: 100%; justify-content: center; }
}

/* Beheer: voorbeelden */
.ads-creatives { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; margin: 12px 0 24px; }
.ads-creative { padding: 14px; border: 1px solid #e4e9f2; border-radius: 12px; background: #fff; }
.ads-creative.is-off { opacity: .55; }
.ads-preview { display: flex; justify-content: center; padding: 12px; margin: 8px 0; background: #f4f7fc; border-radius: 10px; overflow: hidden; }
.ads-preview .adx-img img { width: auto; max-width: 100%; }
.ads-preview .adx-text, .ads-preview .adx-house { flex-direction: column; align-items: flex-start; gap: 10px; }
.ads-form { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px 16px; align-items: end; }
.ads-form .ads-slots { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 4px 12px; }
.ads-form textarea { grid-column: 1 / -1; }

/* Beheer: BI-dashboard */
.bi-kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin: 14px 0 22px; }
.bi-kpis div { display: flex; flex-direction: column; padding: 14px 16px; border: 1px solid #e4e9f2; border-radius: 12px; background: #fff; }
.bi-kpis strong { font-size: 1.5rem; color: #0b1f42; }
.bi-kpis span { font-size: 12.5px; color: #55637b; }
.bi-na { margin: 12px 0 20px; padding: 14px 16px; border: 1px solid #f3d9a6; border-radius: 12px; background: #fff8e8; }

/* Campagneposities (26-11-2026): eigen formaten, altijd in de oorspronkelijke verhouding (width/height in de HTML reserveren de ruimte). */
.adx-img--billboard img { width: auto; } /* eigen formaat van de creative (bijv. 850x300), nooit breder dan de kolom */
.adx--feature { margin-top: var(--sp-5, 24px); margin-bottom: 0; }
.adx--feature .adx-img--billboard { border-radius: 14px; }
/* Nieuws: binnen de artikelkolom of over de volle breedte van de nieuwsgrid, nooit tussen een kop en de tekst. */
.adx--inline { width: auto; max-width: none; margin: 4px 0 0; padding: 0; }
.nw-grid > .adx--inline { grid-column: 1 / -1; margin: 0; }
.adx--inline .adx-label { text-align: center; }
@media (max-width: 760px) {
    .adx--feature { margin-top: 16px; }
    .adx--feature .adx-img img, .adx--inline .adx-img img { width: 100%; }
}

/* BELreus – Ziggo AWIN Full Width Banner (aangeleverd door de eigenaar, 26-11-2026): 728x90 proportioneel over de volle containerbreedte. */
.adx--ziggo-wide { margin-top: var(--sp-5, 24px); margin-bottom: 0; }
.adx--ziggo-wide .adx-label { text-align: center; }
.ziggo-homepage-banner {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 18px 0;
    overflow: hidden;
    box-sizing: border-box;
}
.adx--ziggo-wide .ziggo-homepage-banner { margin-top: 0; }
.ziggo-homepage-banner a {
    display: block;
    width: 100%;
    text-decoration: none;
}
.ziggo-homepage-banner img {
    display: block;
    width: 100%;
    max-width: none;
    height: auto;
    aspect-ratio: 728 / 90;
    object-fit: contain;
    object-position: center;
}
@media (max-width: 767px) {
    .ziggo-homepage-banner {
        width: 100%;
        margin: 12px 0;
    }
    .ziggo-homepage-banner img {
        width: 100%;
        height: auto;
    }
}
/* Ziggo homepage: 728x90 op tablet/desktop, aparte 500x250 op telefoons (elk met eigen klik-link). */
.ziggo-homepage-banner.ziggo-mob { display: none; }
.ziggo-homepage-banner.ziggo-mob img { aspect-ratio: 500 / 250; }
@media (max-width: 767px) {
    .ziggo-homepage-banner.ziggo-desk { display: none; }
    .ziggo-homepage-banner.ziggo-mob { display: block; margin-top: 0; }
    .ziggo-homepage-banner.ziggo-mob img { border-radius: 12px; }
}
/* Nieuws: de 850x300 vult de artikelkolom (eigen formaat, nooit breder dan de kolom). */
.adx--inline .adx-img--billboard img { width: auto; }
