/*
Theme Name: Ridderkerk FM
Theme URI: https://www.ridderkerkfm.nl/
Author: Ridderkerk FM
Description: Lichtgewicht, mobielvriendelijk startthema voor Ridderkerk FM.
Version: 1.7.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: ridderkerk-fm
*/
:root {
  --rfm-pink: #f20b5b;
  --rfm-black: #111111;
  --rfm-ink: #222222;
  --rfm-muted: #666666;
  --rfm-bg: #f7f7f8;
  --rfm-border: #e7e7eb;
  --rfm-radius: 14px;
  --rfm-shadow: 0 8px 28px rgba(15, 15, 20, .07);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--rfm-bg); color: var(--rfm-ink); font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.65; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--rfm-pink); }
img { max-width: 100%; height: auto; }
.site-shell { min-height: 100vh; display: flex; flex-direction: column; }
.site-header { background: #fff; border-bottom: 1px solid var(--rfm-border); }
.header-inner { max-width: 1200px; padding: 16px 24px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; min-width: 0; }
.custom-logo, .brand img { display: block; width: min(440px, 100%); max-height: 92px; object-fit: contain; object-position: left center; }
.brand-text { font-size: 1.65rem; font-weight: 850; letter-spacing: -.04em; color: var(--rfm-black); }
.brand-text span { color: var(--rfm-pink); }
.header-actions { display: flex; align-items: center; gap: 16px; }
.live-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 13px 19px; border-radius: 999px; background: var(--rfm-pink); color: white; font-weight: 800; font-size: .9rem; letter-spacing: .04em; box-shadow: 0 5px 15px rgba(242, 11, 91, .2); white-space: nowrap; }
.live-button:hover { background: #d9004b; color: #fff; transform: translateY(-1px); }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: white; box-shadow: 0 0 0 4px rgba(255,255,255,.2); }
.main-nav { background: var(--rfm-black); color: #fff; }
.nav-inner { max-width: 1200px; margin: auto; padding: 0 24px; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0; }
.main-nav li { margin: 0; }
.main-nav a { display: block; padding: 14px 17px; font-size: .94rem; font-weight: 650; color: #fff; }
.main-nav a:hover, .main-nav .current-menu-item > a { color: #fff; background: var(--rfm-pink); }
.site-main { flex: 1; width: min(1200px, calc(100% - 40px)); margin: 30px auto 56px; }
.hero { padding: clamp(28px, 5vw, 58px); background: linear-gradient(120deg, #171717, #303036); color: #fff; border-radius: 20px; overflow: hidden; position: relative; box-shadow: var(--rfm-shadow); }
.hero:after { content: ""; position: absolute; width: 320px; height: 320px; border-radius: 50%; right: -90px; top: -150px; border: 50px solid rgba(242,11,91,.55); pointer-events: none; }
.eyebrow { display: inline-block; color: #ff77a4; text-transform: uppercase; letter-spacing: .13em; font-size: .78rem; font-weight: 800; margin-bottom: 8px; }
.hero h1 { position: relative; z-index: 1; max-width: 720px; font-size: clamp(2rem, 5vw, 3.8rem); line-height: 1.08; letter-spacing: -.045em; margin: 0 0 18px; }
.hero p { position: relative; z-index: 1; max-width: 640px; margin: 0 0 24px; color: #e6e6e9; font-size: 1.08rem; }
.hero .live-button { position: relative; z-index: 1; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 36px 0 18px; }
.section-heading h2 { margin: 0; font-size: clamp(1.45rem, 3vw, 2rem); letter-spacing: -.035em; color: var(--rfm-black); }
.section-heading p { margin: 0; color: var(--rfm-muted); font-size: .95rem; }
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.news-card, .content-card { background: #fff; border: 1px solid var(--rfm-border); border-radius: var(--rfm-radius); overflow: hidden; box-shadow: var(--rfm-shadow); }
.news-card .thumb { display: block; aspect-ratio: 16 / 9; background: #e9e9ed; overflow: hidden; }
.news-card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s ease; }
.news-card:hover .thumb img { transform: scale(1.035); }
.thumb-placeholder { display: grid; place-items: center; height: 100%; min-height: 140px; color: #aaa; font-size: 2rem; background: linear-gradient(135deg, #f0f0f3, #dedee4); }
.news-card-body { padding: 20px; }
.post-meta { color: var(--rfm-muted); font-size: .8rem; margin-bottom: 8px; }
.news-card h3 { font-size: 1.2rem; line-height: 1.3; letter-spacing: -.02em; margin: 0 0 10px; }
.news-card p { color: #5d5d66; font-size: .94rem; margin: 0 0 15px; }
.read-more { font-weight: 800; color: var(--rfm-pink); }
.content-card { padding: clamp(22px, 4vw, 42px); }
.content-card h1, .content-card h2 { color: var(--rfm-black); line-height: 1.15; letter-spacing: -.035em; }
.content-card h1 { font-size: clamp(2rem, 4vw, 3rem); margin-top: 0; }
.entry-content { font-size: 1.04rem; }
.entry-content a { color: var(--rfm-pink); text-decoration: underline; text-underline-offset: 3px; }
.pagination { margin-top: 30px; }
.pagination .nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.page-numbers { padding: 8px 13px; background: #fff; border: 1px solid var(--rfm-border); border-radius: 8px; }
.page-numbers.current { background: var(--rfm-pink); color: #fff; border-color: var(--rfm-pink); }
.site-footer { background: #111; color: #eee; padding: 32px 24px; }
.footer-inner { max-width: 1200px; margin: auto; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer-inner p { margin: 0; color: #bbb; font-size: .9rem; }
.footer-brand { font-weight: 850; font-size: 1.1rem; }
.footer-brand span { color: var(--rfm-pink); }
.empty-state { padding: 30px; background: white; border: 1px dashed #d8d8df; border-radius: var(--rfm-radius); }
.screen-reader-text { border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; white-space: nowrap; }
@media (max-width: 820px) {
 .header-inner { flex-direction: column; align-items: stretch; padding: 14px 18px; gap: 12px; }
 .brand { justify-content: center; }
 .brand img, .custom-logo { width: min(440px, 100%); object-position: center; }
 .header-actions { justify-content: center; }
 .nav-inner { padding: 0 10px; }
 .main-nav ul { justify-content: center; }
 .main-nav a { padding: 12px 11px; font-size: .9rem; }
 .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
 .site-main { width: min(100% - 28px, 1200px); margin-top: 20px; }
}
@media (max-width: 560px) {
 .news-grid { grid-template-columns: 1fr; gap: 15px; }
 .hero { border-radius: 14px; }
 .hero p { font-size: 1rem; }
 .section-heading { align-items: start; flex-direction: column; }
 .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* v1.1: clearer focus states and news-card links */
:focus-visible { outline: 3px solid var(--rfm-pink); outline-offset: 3px; }
.news-card h3 a:hover { color: var(--rfm-pink); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; } }

/* v1.3: homepage news overview and more-news button */
.more-news-wrap { display: flex; justify-content: center; margin: 26px 0 8px; }
.more-news-button { display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 999px; background: var(--rfm-pink); color: #fff; font-weight: 850; letter-spacing: .035em; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.more-news-button:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(242,11,91,.22); }
@media (min-width: 821px) { .news-card { display: flex; flex-direction: column; } .news-card-body { display: flex; flex-direction: column; flex: 1; } .news-card .read-more { margin-top: auto; padding-top: 4px; } }

/* v1.4: prominent live-radio strip below the main navigation */
.live-radio-strip { background: #fff; border-bottom: 1px solid var(--rfm-border); }
.live-radio-inner { max-width: 1200px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.live-radio-info { display: flex; align-items: center; gap: 13px; min-width: 0; color: inherit; text-decoration: none; border-radius: 12px; padding: 4px 8px 4px 0; }
.live-radio-info:hover .live-radio-title, .live-radio-info:focus-visible .live-radio-title { color: var(--rfm-pink); }
.live-radio-info:focus-visible { outline: 3px solid var(--rfm-pink); outline-offset: 4px; }
.live-radio-title, .live-radio-subtitle { display: block; }
.live-radio-icon { width: 44px; height: 44px; flex: 0 0 44px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--rfm-pink); font-size: 1.2rem; box-shadow: 0 5px 15px rgba(242,11,91,.2); }
.live-radio-copy { min-width: 0; }
.live-radio-title { margin: 0; color: var(--rfm-black); font-weight: 850; line-height: 1.25; letter-spacing: .015em; }
.live-radio-subtitle { margin: 3px 0 0; color: var(--rfm-muted); font-size: .88rem; line-height: 1.4; }
.live-radio-strip .live-button { flex: 0 0 auto; }
@media (max-width: 560px) { .live-radio-inner { padding: 12px 16px; gap: 12px; } .live-radio-icon { width: 38px; height: 38px; flex-basis: 38px; } .live-radio-title { font-size: .88rem; } .live-radio-subtitle { font-size: .78rem; } .live-radio-strip .live-button { padding: 11px 13px; font-size: .78rem; } }
/* Gemeentenieuws: drie kolommen op desktop */
.rfm-gemeentenieuws-list {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 22px;
}

@media (max-width: 820px) {
    .rfm-gemeentenieuws-list {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 560px) {
    .rfm-gemeentenieuws-list {
        grid-template-columns: 1fr !important;
    }
}
/* Gemeentenieuws: drie kolommen op desktop */
.rfm-gemeentenieuws-list {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

@media (max-width: 820px) {
    .rfm-gemeentenieuws-list {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 560px) {
    .rfm-gemeentenieuws-list {
        grid-template-columns: 1fr !important;
    }
}/* 112-meldingen: drie kolommen op desktop */
.rfm112-list {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

@media (max-width: 820px) {
    .rfm112-list {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 560px) {
    .rfm112-list {
        grid-template-columns: 1fr !important;
    }
}/* 112-meldingen: categoriebalk binnen de kaart houden */
.rfm112-card {
    min-width: 0;
}

.rfm112-card__meta,
.rfm112-card__body {
    min-width: 0;
}

.rfm112-card img {
    max-width: 100%;
}/* 112-label: voorkom afsnijden in smallere kaarten */
.rfm112-card__image-wrap {
    position: relative;
    overflow: hidden;
}

.rfm112-card__image-label {
    max-width: calc(100% - 28px);
    box-sizing: border-box;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}/* 112: houd het categorielabel binnen de afbeeldingscontainer */
.rfm112-card__image-wrap {
    position: relative !important;
    overflow: hidden !important;
    min-width: 0;
}

.rfm112-card__image-label {
    position: absolute !important;
    left: 14px !important;
    top: 14px !important;
    right: auto !important;
    max-width: calc(100% - 28px) !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
    box-sizing: border-box;
    z-index: 2;
}/* 112-meldingen: toon de volledige afbeelding */
.rfm112-card__image {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1600 / 442;
    object-fit: contain !important;
    display: block;
}