/*
Theme Name: Redactie24 Theme
Author: Riccardo de Wit @ MyTale.nl
Description: Custom made design voor Redactie24.
Version: 2.0
*/

:root {
    --R24-blue: #00b4ff;
    --R24-blue-soft: rgba(0, 203, 255, 0.08);
    --bg-color: #f4f4f4; /* Standaard grijs */
    --text-gray: #666;
    --radius: 16px;
    --radius-pill: 50px;
    --shadow: 0 4px 20px rgba(0,0,0,0.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body { 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    color: #1a1a1a; 
    line-height: 1.5; 
    overflow-x: hidden; 
}

/* UITZONDERING: Pagina's die WIT moeten zijn (Contact, Adverteren, Single Post, Privacy) */
body.page-template-page-contact,
body.page-template-page-adverteren,
body.page-template-page-privacy,
body.single {
    background-color: #ffffff !important;
}

/* --- HEADER & MENU --- */
header { background: #fff; position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.header-main { display: flex; justify-content: space-between; align-items: center; padding: 1rem 5%; }
.logo { font-size: 24px; font-weight: 900; color: var(--R24-blue); text-decoration: none; display:block; }
.logo img { display: block; height: 70px; width: auto; }
@media (max-width: 768px) { .logo img { display: block; height: 30px; width: auto; }}

.nav-container { background: #fff; padding: 10px 5%; border-top: 1px solid #eee; overflow-x: auto; scrollbar-width: none; }
.nav-container::-webkit-scrollbar { display: none; }

/* Menu Styling voor WordPress Output */
.nav-container ul { display: flex; gap: 12px; list-style: none; margin: 0; padding: 0; white-space: nowrap; }
.nav-container ul li { display: inline-block; }
.nav-container ul li a { 
    display: block;
    padding: 8px 20px; 
    border-radius: var(--radius-pill); 
    font-size: 14px; 
    font-weight: 700; 
    color: #555; 
    background: #f9f9f9; 
    text-decoration: none; 
    transition: all 0.3s ease; 
    border: 2px solid transparent;
}
.nav-container ul li:hover a { 
    background: var(--R24-blue-soft); 
    color: var(--R24-blue); 
    border-color: var(--R24-blue); 
    transform: translateY(-2px); 
}
/* Actieve knop blauw maken */
.nav-container ul li.current-menu-item a,
.nav-container ul li.current-post-parent a,
.nav-container ul li.current-category-ancestor a,
.nav-container ul li.current_page_item a { 
    background: var(--R24-blue); 
    color: white; 
    border-color: var(--R24-blue); 
}

.btn-vtm { display: inline-block; background: var(--R24-blue); color: white; padding: 14px 32px; border-radius: var(--radius-pill); font-weight: 800; text-transform: uppercase; text-decoration: none; transition: 0.2s; font-size:12px; }
.header-main .btn-vtm { padding: 8px 20px; } /* Header knop is kleiner */
.btn-vtm:hover { transform: scale(1.05); filter: brightness(1.1); }

/* --- HERO & HOME --- */
.hero { position: relative; height: 65vh; min-height: 450px; background-size: cover; background-position: center; display: flex; align-items: flex-end; padding: 40px 5%; color: white; }
.hero-content { max-width: 800px; }
.hero-content h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); line-height: 1.1; margin-bottom: 1rem; font-weight: 900; }
.hero-content p { font-size: clamp(1rem, 2vw, 1.2rem); margin-bottom: 2rem; opacity: 0.9; }

.section-header { margin-bottom: 30px; display: flex; justify-content: space-between; align-items: center; }
.section-header h2 { font-size: 16px; font-weight: 900; text-transform: uppercase; background: var(--R24-blue); color: white; padding: 10px 24px; border-radius: var(--radius-pill); letter-spacing: 1px; box-shadow: 0 4px 15px rgba(0, 166, 255, 0.2); }
.view-all { color: var(--R24-blue); font-weight: 800; font-size: 14px; cursor: pointer; text-transform: uppercase; transition: 0.3s; display: flex; align-items: center; gap: 5px; text-decoration: none; }

@media (max-width: 768px) {
    .section-header {
        /* Stacks the title and link vertically */
        flex-direction: column;
        /* Aligns both elements to the left */
        align-items: flex-start;
        /* Adds space between the title and the link */
        gap: 15px;
        /* Optional: reduces bottom margin for a tighter mobile look */
        margin-bottom: 20px;
    }

    .view-all {
        /* Adds a little horizontal padding so it doesn't touch the screen edge */
        padding-left: 5px;
        font-size: 13px; /* Slightly smaller for mobile screens */
    }
}


.container { max-width: 1400px; margin: 0 auto; padding: 40px 5%; }

/* BENTO GRID (Home Top) */
.bento-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 768px) { .bento-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .bento-grid { grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(2, 280px); } .large { grid-column: span 2; grid-row: span 2; } }

.news-card { background: white; border-radius: var(--radius); overflow: hidden; position: relative; box-shadow: var(--shadow); min-height: 250px; display:block; color:white; }
.news-card img { width: 100%; height: 100%; object-fit: cover; position: absolute; transition: transform 0.5s; }
.news-card:hover img { transform: scale(1.05); }
.news-overlay { position: absolute; inset: 0; background: linear-gradient(transparent, rgba(0,0,0,0.9)); display: flex; flex-direction: column; justify-content: flex-end; padding: 25px; }
.category-tag { background: var(--R24-blue); padding: 4px 10px; border-radius: 4px; font-size: 10px; font-weight: 900; text-transform: uppercase; margin-bottom: 10px; width: fit-content; display: inline-block; color: white;}
.news-overlay h3 { font-weight: 800; line-height: 1.2; font-size: 1.2rem; margin:0; color: white; }
.large h3 { font-size: clamp(1.5rem, 3vw, 2.2rem); }

/* STANDARD GRID (Home Categories & Showbizz) */
.standard-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 25px; margin-bottom: 40px; }
.sub-card { background: white; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: 0.3s; display: flex; flex-direction: column; text-decoration: none; color: inherit; height: 100%; }
.sub-card:hover { transform: translateY(-5px); }
.sub-card-img { width: 100%; height: 200px; object-fit: cover; display: block; }
.sub-card-body { padding: 20px; flex-grow: 1; display: flex; align-items: center; }
.sub-card-body h4 { font-size: 1.1rem; font-weight: 800; margin: 0; color: #1a1a1a; line-height: 1.4; }

/* --- CONTACT PAGINA SPECIFIEK --- */
.contact-hero { padding: 60px 5% 40px; max-width: 1200px; margin: 0 auto; text-align: center; }
.contact-hero h1 { font-size: 3rem; font-weight: 900; margin-bottom: 15px; color: #1a1a1a; }
.contact-hero p { font-size: 1.2rem; color: var(--text-gray); max-width: 700px; margin: 0 auto; }

.contact-container { max-width: 1200px; margin: 0 auto; padding: 20px 5% 80px; display: grid; grid-template-columns: 1fr; gap: 40px; }
@media (min-width: 1024px) { .contact-container { grid-template-columns: 1fr 1.5fr; } }

.info-grid { display: flex; flex-direction: column; gap: 20px; }
/* Deze kaarten moeten grijs zijn (#f4f4f4), omdat de body wit is */
.info-card { background: var(--bg-color); padding: 30px; border-radius: 24px; transition: 0.3s; }
.info-card h3 { color: var(--R24-blue); font-weight: 900; text-transform: uppercase; font-size: 14px; margin-bottom: 10px; letter-spacing: 1px; }
.info-card p { font-weight: 700; font-size: 1.1rem; margin-bottom: 5px; color: #1a1a1a; }
.info-card span { color: var(--text-gray); font-size: 0.95rem; }

.form-card { background: #fff; padding: 40px; border-radius: 24px; box-shadow: 0 4px 20px rgba(0,0,0,0.08); border: 1px solid #eee; }
.form-group { margin-bottom: 25px; }
.form-group label { display: block; font-weight: 800; font-size: 14px; margin-bottom: 8px; text-transform: uppercase; color: #1a1a1a; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 15px; border: 2px solid #f0f0f0; border-radius: 12px; font-family: inherit; font-size: 1rem; background: white; }
.form-group input:focus, .form-group textarea:focus { border-color: var(--R24-blue); outline: none; background: var(--R24-blue-soft); }

.btn-submit { background: var(--R24-blue); color: white; border: none; padding: 18px 40px; border-radius: var(--radius-pill); font-weight: 800; cursor: pointer; width: 100%; font-size: 16px; transition: 0.3s; }
.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0,180,255,0.4); }

/* --- ADVERTEREN PAGINA SPECIFIEK --- */
.mediakit-hero { background: linear-gradient(135deg, var(--R24-blue) 0%, #0084ff 100%); color: white; padding: 80px 5%; text-align: center; }
.mediakit-hero h1 { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 900; margin-bottom: 20px; letter-spacing: -1px; color:white; }
.mediakit-hero p { font-size: 1.25rem; max-width: 800px; margin: 0 auto; opacity: 0.95; color:white; }

.stats-container { max-width: 1200px; margin: -50px auto 60px; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; padding: 0 5%; position: relative; z-index: 10; }
.stat-card { background: white; padding: 40px; border-radius: 24px; text-align: center; box-shadow: var(--shadow); border: 1px solid #eee; }
.stat-card h2 { font-size: 3.5rem; color: var(--R24-blue); font-weight: 900; margin-bottom: 10px; }
.stat-card p { font-weight: 800; text-transform: uppercase; color: var(--text-gray); font-size: 13px; letter-spacing: 1px; }

.section-title { text-align: center; font-size: 2.5rem; font-weight: 900; margin-bottom: 50px; color: #1a1a1a; }

.ad-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 40px; }
.ad-card { text-decoration: none; color: inherit; display: block; }
.ad-card .img-wrapper { width: 100%; aspect-ratio: 16/10; border-radius: 24px; overflow: hidden; margin-bottom: 20px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.ad-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.ad-card:hover img { transform: scale(1.04); }
.ad-card .label { color: var(--R24-blue); font-weight: 800; font-size: 14px; text-transform: uppercase; margin-bottom: 10px; display: block; }
.ad-card h3 { font-size: 1.8rem; font-weight: 800; line-height: 1.2; margin-bottom: 15px; color: #1a1a1a; }
.ad-card p { color: var(--text-gray); font-size: 1.05rem; line-height: 1.5; }

.contact-cta { margin-top: 80px; background: var(--bg-color); padding: 60px; border-radius: 24px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.contact-cta h3 { font-size: 2.2rem; font-weight: 900; margin-bottom: 15px; color: #1a1a1a; }
.contact-cta p { font-size: 1.2rem; color: var(--text-gray); max-width: 600px; margin-bottom: 30px; }
.btn-large { background: var(--R24-blue); color: white; padding: 18px 45px; border-radius: var(--radius-pill); font-weight: 800; text-decoration: none; font-size: 18px; transition: 0.3s; display: inline-block; }
.btn-large:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,180,255,0.3); }

/* --- SINGLE PAGE --- */
.article-container { max-width: 1200px; margin: 0 auto; padding: 40px 5%; display: grid; grid-template-columns: 1fr; gap: 40px; }
@media (min-width: 1024px) { .article-container { grid-template-columns: 2.2fr 1fr; } }
.article-header h1 { font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1.1; font-weight: 900; margin-bottom: 20px; color: #1a1a1a; }
.meta-info { color: #888; font-size: 14px; font-weight: 600; margin-bottom: 20px; display: flex; gap: 15px; }
.main-image { width: 100%; border-radius: var(--radius); margin-bottom: 30px; box-shadow: var(--shadow); height: auto; }
.article-body { font-size: 1.15rem; color: #333; }
.article-body p { margin-bottom: 25px; }
blockquote { margin: 40px 0; padding: 30px 40px; background: var(--R24-blue-soft); border-radius: var(--radius); font-style: italic; font-size: 1.4rem; color: #1a1a1a; font-weight: 700; position: relative; }
blockquote::after { content: '”'; position: absolute; bottom: -10px; right: 30px; font-size: 5rem; color: var(--R24-blue); opacity: 0.2; line-height: 1; }

/* Sidebar Widget Styles */
.sidebar-section { background: var(--bg-color); padding: 25px; border-radius: var(--radius); margin-bottom: 30px; }
.sidebar-title { font-weight: 900; text-transform: uppercase; margin-bottom: 20px; font-size: 15px; color: var(--R24-blue); }
.related-item { display: flex; gap: 15px; margin-bottom: 20px; text-decoration: none; color: inherit; align-items: center; transition: 0.2s; }
.related-item:hover { opacity: 0.7; }
.related-item img { width: 85px; height: 85px; border-radius: 12px; object-fit: cover; }
.related-item h4 { font-size: 0.95rem; font-weight: 800; line-height: 1.3; margin:0; color: #1a1a1a; }

/* --- PRIVACY & COOKIES (LEGAL) SPECIFIEK --- */
.legal-hero { 
    padding: 60px 5% 40px; 
    max-width: 900px; 
    margin: 0 auto; 
    text-align: center; 
}
.legal-hero h1 { 
    font-size: 3rem; 
    font-weight: 900; 
    margin-bottom: 15px; 
    letter-spacing: -1px; 
    color: #1a1a1a;
}
.legal-hero p { 
    font-size: 1.1rem; 
    color: var(--text-gray); 
}

.legal-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 5% 100px;
}

.legal-section { 
    background: #fff; 
    padding: 40px; 
    border-radius: 24px; 
    border: 1px solid #eee;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.legal-section h2 { 
    color: var(--R24-blue); 
    font-size: 1.8rem; 
    font-weight: 800; 
    margin-bottom: 20px;
}

.legal-section p { 
    margin-bottom: 20px; 
    color: #333; 
    line-height: 1.7;
}

/* Privacy Lijst met Checkmarks */
.legal-section ul { 
    list-style: none; 
    margin-bottom: 20px; 
}
.legal-section ul li { 
    position: relative; 
    padding-left: 30px; 
    margin-bottom: 12px; 
    color: #333;
}
.legal-section ul li::before { 
    content: '✓'; 
    position: absolute; 
    left: 0; 
    color: var(--R24-blue); 
    font-weight: 900; 
}

/* Alert Box / Cookie Status */
.cookie-status { 
    background: var(--R24-blue-soft); 
    padding: 25px; 
    border-radius: 16px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    margin-bottom: 40px;
}
.status-text { 
    font-weight: 700; 
    font-size: 1rem;
}
.btn-status { 
    background: var(--R24-blue); 
    color: white; 
    padding: 10px 25px; 
    border-radius: var(--radius-pill); 
    text-decoration: none; 
    font-weight: 800; 
    font-size: 14px;
    transition: 0.3s;
}
.btn-status:hover { 
    filter: brightness(1.1);
    transform: translateY(-2px);
}

/* Responsiviteit voor de statusbox */
@media (max-width: 600px) {
    .cookie-status {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

/* --- EXACTE ARCHIVE / CATEGORIE STYLING --- */
.category-header { 
    padding: 60px 5% 20px; 
    max-width: 1400px; 
    margin: 0 auto; 
}
.category-header h1 { 
    font-size: 3.5rem; 
    font-weight: 900; 
    letter-spacing: -1px;
    color: #1a1a1a;
}

.content-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5% 80px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
}

@media (min-width: 1024px) {
    .content-container { 
        grid-template-columns: 2.2fr 1fr; /* Exacte verhouding main vs sidebar */
    }
}

/* De Artikel Grid */
.article-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); 
    gap: 60px 30px; 
}

/* De Kaart uit het screenshot */
.news-card-archive { 
    text-decoration: none; 
    color: inherit; 
    display: block; 
}

.news-card-archive .img-wrapper { 
    width: 100%; 
    aspect-ratio: 16/9; 
    overflow: hidden; 
    border-radius: 20px; 
    margin-bottom: 25px; 
}

.news-card-archive img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transition: transform 0.4s ease; 
}

.news-card-archive:hover img { 
    transform: scale(1.03); 
}

.news-card-archive .tag { 
    color: var(--R24-blue); 
    font-weight: 800; 
    font-size: 14px; 
    text-transform: uppercase; 
    margin-bottom: 12px; 
    display: block; 
    letter-spacing: 0.5px; 
}

.news-card-archive h3 { 
    font-size: 1.85rem; 
    font-weight: 900; 
    line-height: 1.1; 
    margin-bottom: 15px; 
    color: #1a1a1a; 
}

.news-card-archive p { 
    font-size: 1.1rem; 
    color: #666; 
    line-height: 1.5; 
    font-weight: 400; 
}

/* De Sidebar uit het screenshot */
.sidebar-archive {
    position: sticky;
    top: 120px;
    height: fit-content;
}

.sidebar-section-grey { 
    background: #f4f4f4; /* De exacte lichte grijstint uit je screenshot */
    padding: 35px; 
    border-radius: 30px; 
}

.sidebar-title-blue { 
    font-weight: 900; 
    text-transform: uppercase; 
    margin-bottom: 25px; 
    font-size: 14px; 
    color: var(--R24-blue); 
    letter-spacing: 0.5px;
}

.related-item-sidebar { 
    display: flex; 
    gap: 15px; 
    margin-bottom: 25px; 
    text-decoration: none; 
    color: inherit; 
    align-items: center; 
}

.related-item-sidebar img { 
    width: 75px; 
    height: 75px; 
    border-radius: 15px; 
    object-fit: cover; 
    flex-shrink: 0;
}

.related-item-sidebar h4 { 
    font-size: 1rem; 
    font-weight: 800; 
    line-height: 1.2; 
    margin: 0;
    color: #1a1a1a;
}

/* Footer */
/* --- MODERN FOOTER DESIGN --- */
.main-footer {
    background: var(--bg-color);
    border-top: 1px solid #eee;
    padding: 80px 5% 40px;
    margin-top: 80px;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.footer-brand img {
    height: 60px;
    margin-bottom: 20px;
}

.footer-brand p {
    color: var(--text-gray);
    font-size: 14px;
    line-height: 1.6;
    max-width: 250px;
}

.footer-col h4 {
    font-size: 16px;
    font-weight: 900;
    text-transform: uppercase;
    color: var(--R24-blue);
    margin-bottom: 25px;
    letter-spacing: 0.5px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    text-decoration: none;
    color: #1a1a1a;
    font-weight: 600;
    font-size: 15px;
    transition: 0.2s;
}

.footer-col ul li a:hover {
    color: var(--R24-blue);
    padding-left: 5px;
}

/* Footer Bottom (Copyright) */
.footer-bottom {
    max-width: 1400px;
    margin: 60px auto 0;
    padding-top: 30px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #999;
    font-size: 13px;
    font-weight: 600;
}

/* --- RESPONSIVE FOOTER FIXES --- */

/* Tablet & kleine laptops */
@media (max-width: 1024px) {
    .footer-container {
        grid-template-columns: repeat(2, 1fr); /* Netjes 2x2 op tablets */
        gap: 50px 30px;
    }
}

/* Smartphones (Landscape & Portrait) */
@media (max-width: 1024px) {
    .main-footer {
        padding: 60px 8% 30px; /* Iets meer ademruimte aan de zijkanten */
        text-align: center;    /* Alles centreren voor een mobiele look */
    }

    .footer-container {
        grid-template-columns: 1fr; /* Alles onder elkaar op mobiel */
        gap: 40px;
    }

    .footer-brand p {
        max-width: 100%;       /* Tekst mag de volledige breedte gebruiken */
        margin: 0 auto 20px;   /* Centreren van de paragraaf */
    }

    .footer-col h4 {
        margin-bottom: 15px;
        margin-top: 10px;
        position: relative;
        display: inline-block;
    }

    /* Optioneel: subtiel streepje onder de titels op mobiel */
    .footer-col h4::after {
        content: '';
        position: absolute;
        bottom: -5px;
        left: 25%;
        right: 25%;
        height: 2px;
        background: var(--R24-blue-soft);
    }

    .footer-col ul li a:hover {
        padding-left: 0; /* Geen zijwaartse sprong op mobiel bij hover */
        opacity: 0.7;
    }

    .footer-bottom {
        margin-top: 40px;
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}