/*
   Theme Name:       Als je het ons vraagt dan
   Description:  Child Theme voor AJHOVD
   Author:           Tweekoppig
   Template:         Divi
   Version:          2.1.0 (Cleaned & Consolidated)
*/

/***** ADD ANY CUSTOM CSS BELOW THIS LINE *****/

/* ============================================================
   1. GLOBAL HEADER & MENU (Layout & Reset)
   ============================================================ */
.flex-header-items {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 15px !important;
}
.flex-header-items .et_pb_module,
.flex-header-items .et_pb_menu, 
.flex-header-items .et_pb_button_module_wrapper {
    margin-top: 0 !important; margin-bottom: 0 !important;
    padding-top: 0 !important; padding-bottom: 0 !important;
}
.flex-header-items .et_pb_menu {
    flex: 1 1 auto !important; width: auto !important; background-color: transparent !important;
}
.flex-header-items .et_pb_menu_inner_container {
    height: auto !important; display: flex; align-items: center;
}
.flex-header-items .et_pb_button_module_wrapper {
    flex: 0 0 auto !important; width: auto !important;
}

/* ============================================================
   ACTIEVE MENU LINK ONDERSTREPEN Secondary menu
   ============================================================ */
.et_pb_menu .current-menu-item > a {
    text-decoration: underline !important;
    text-decoration-thickness: 2px !important; /* Maakt de streep net iets steviger */
    text-underline-offset: 6px !important;     /* Zorgt dat de streep niet lelijk door de letters heen snijdt */
    color: #140FBE !important;                 /* Optioneel: forceer je donkerblauwe huisstijlkleur */
}


/* ============================================================
   Mobiele Menu Knoppen (Alleen zichtbaar op tablet/mobiel)
   ============================================================ */
@media (min-width: 981px) {
    .mobiele-menu-knop {
        display: none !important;
    }
}

/* ============================================================
   2. TYPOGRAFIE MASTER (RundText & Overrides)
   ============================================================ */
/* 2.1 Basis Koppen (Bold) */
h1, h2, h3, h4, h5, h6,
.et_pb_module h1, .et_pb_module h2, .et_pb_module h3,
.et_pb_module h4, .et_pb_module h5, .et_pb_module h6 {
    font-family: 'RundText', Helvetica, Arial, sans-serif !important;
    font-weight: 700 !important; 
}
/* 2.2 Basis Broodtekst (Regular) */
p, a, li, blockquote, span, div,
.et_pb_module p, .et_pb_module a, .et_pb_module li, .et_pb_module span {
    font-family: 'RundText', Helvetica, Arial, sans-serif !important;
    font-weight: 400 !important;
}
/* ============================================================
   2.3 Fluid Typography Scaling (De Sweet Spot)
   ============================================================ */
h1, .et_pb_module h1 { 
    font-size: clamp(30px, 2.2vw + 0.5rem, 46px) !important; 
    line-height: 1.2em !important; 
}
h2, .et_pb_module h2 { 
    font-size: clamp(24px, 1.8vw + 0.5rem, 36px) !important; 
    line-height: 1.25em !important; 
}
h3, .et_pb_module h3 { 
    font-size: clamp(20px, 1.5vw + 0.5rem, 26px) !important; 
    line-height: 1.3em !important; 
}
h4, .et_pb_module h4 { 
    font-size: clamp(17px, 1.2vw + 0.5rem, 21px) !important; 
    line-height: 1.4em !important; 
}
p, .et_pb_module p,
li, .et_pb_module li { 
    font-size: clamp(16px, 1.0vw + 0.4rem, 20px) !important; 
    line-height: 1.6em !important; 
}

/* ============================================================
   FILTER SELECT VLAKKEN (Fluid Typography)
   ============================================================ */

/* Target de select velden en het zoekveld */
.et_pb_de_mach_filter_posts select.et_pb_contact_select, 
.et_pb_de_mach_filter_posts input.divi-acf {
    /* Gebruik dezelfde schaling als de knoppen voor eenheid */
    font-size: clamp(14px, 0.9vw + 10px, 18px) !important;
    
    /* Zorg voor voldoende hoogte en padding voor leesbaarheid */
    padding: 12px 15px !important;
    height: auto !important;
    
    /* Optioneel: pas de kleur aan naar het donkerblauw van je huisstijl */
    color: #00008b; 
    
    /* Zorg dat ze de volledige breedte van de kolom pakken */
    width: 100% !important;
    border-radius: 5px !important;
}

/* Target ook de labels boven de velden (bijv. "doelgroep", "thema") */
.et_pb_de_mach_filter_posts .et_pb_contact_field_options_title {
    font-size: clamp(13px, 0.8vw + 8px, 16px) !important;
    font-weight: bold !important;
    margin-bottom: 8px !important;
    display: block;
}

/* De opties binnen de dropdown (werkt beperkt in sommige browsers, maar helpt) */
.et_pb_de_mach_filter_posts select.et_pb_contact_select option {
    font-size: 16px; /* Browsers laten hier vaak geen clamp toe */
}


/* ============================================================
   2.4 Specifieke Hero Text
   ============================================================ */
.fluid-hero-text h1, .fluid-hero-text.et_pb_module h1 {
    font-size: clamp(26px, 2.2vw + 0.8rem, 42px) !important; 
    line-height: 1.2em !important;
}

.fluid-hero-text p, .fluid-hero-text.et_pb_module p,
.fluid-hero-text li, .fluid-hero-text.et_pb_module li {
    font-weight: 700 !important; 
    font-size: clamp(18px, 1.1vw + 0.4rem, 24px) !important; 
    line-height: 1.5em !important;
}

.fluid-hero-text p, .fluid-hero-text.et_pb_module p {
    margin-bottom: 20px !important;
}
/* 2.5 Footer Typography */
#main-footer p, .et-l--footer p, #main-footer .et_pb_module p, .et-l--footer .et_pb_module p,
#main-footer li, .et-l--footer li {
    font-size: 20px !important; line-height: 30px !important; font-weight: 400 !important;
}
.et-l--footer .et_pb_text_2_tb_footer p, .et-l--footer .footer-legal p {
    font-size: 18px !important; line-height: 26px !important;
}
/* 2.6 Single Template Overrides */
body.single-film p, body.single-film .et_pb_module p, body.single-film .et_pb_text_inner,
body.single-ervaringsverhaal p, body.single-ervaringsverhaal .et_pb_module p, body.single-ervaringsverhaal .et_pb_text_inner {
    font-size: 16px !important; line-height: 28px !important;
}
/* Blockquotes */
body.single-film .et_pb_module blockquote p, body.single-film blockquote p, body.single-film blockquote,
body.single-ervaringsverhaal .et_pb_module blockquote p, body.single-ervaringsverhaal blockquote p, body.single-ervaringsverhaal blockquote {
    font-size: 28px !important; line-height: 40px !important; color: #140fb3 !important; 
    border: none !important; padding: 0 !important;
}
/* Titels ACF Variaties */
.et_pb_module.titel-vast-thin h1, .et_pb_module.titel-vast-thin h2, .et_pb_module.titel-vast-thin p { font-weight: 400 !important; }
.et_pb_module.titel-acf-bold h1, .et_pb_module.titel-acf-bold h2, .et_pb_module.titel-acf-bold p { font-weight: 700 !important; }
/* Poly Card Specifieke Typo (tijdelijk uitgezet)
.et_pb_module.poly-card-typo p {
    font-size: 32px !important; line-height: 40px !important;
}
*/
/* Nieuwe Poly Card Typo voor H2 */
.et_pb_module.poly-card-typo h2 {
    font-weight: 400 !important; /* Zet de basis H2 op regular */
}

.et_pb_module.poly-card-typo h2 strong,
.et_pb_module.poly-card-typo h2 b {
    font-weight: 700 !important; /* Zorgt dat geselecteerde tekst wél bold wordt */
}
/* 2.7 Archief Pagina's Typo */
.post-type-archive-film p, .post-type-archive-film li, .post-type-archive-film .et_pb_text_inner,
.post-type-archive-ervaringsverhaal p, .post-type-archive-ervaringsverhaal li, .post-type-archive-ervaringsverhaal .et_pb_text_inner {
    font-size: 20px !important; line-height: 1.6em !important;
}

/* ============================================================
   3. DECORATIEVE VORMEN (Shapes & Backgrounds)
   ============================================================ */
/* 3.1 Hero Header Shape (Home) */
.custom-poly-divider-header {
    position: relative; background-color: transparent !important; z-index: 10;
    filter: drop-shadow(0px 15px 15px rgba(0,0,0,0.4));
    margin-bottom: -1px; padding-top: 1vh !important; padding-bottom: 150px !important;
}
.custom-poly-divider-header::before, .custom-poly-divider-header::after {
    content: ""; position: absolute; inset: 0; pointer-events: none; 
    clip-path: polygon(100% 0, 100% calc(100% - 4vw), 83% 100%, 0 calc(100% - 4vw), 0 0);
}
.custom-poly-divider-header::before {
    background-image: url(/wp-content/uploads/2025/12/textuur_01.webp); background-color: rgba(172,198,232, 0.9);
    background-blend-mode: multiply; background-size: cover; z-index: -2;
}
.custom-poly-divider-header::after {
	background-image: url('/wp-content/uploads/2026/01/Header_People-scaled.png');
    
    /* 1. DE TWEAK-WAARDE VOOR SCHALEN: 
       Gebruik vw (viewport width) of % in plaats van 'contain'.
       Bijv: 45vw betekent dat hij altijd 45% van de schermbreedte is.
       Als het scherm smaller wordt richting de 980px, krimpt de afbeelding vloeiend mee! */
    background-size: min(45vw, 600px) auto !important; 
    
    /* 2. DE TWEAK-WAARDE VOOR POSITIE:
       Als je hem kleiner maakt, wil je hem misschien iets opschuiven. */
    background-position: left 30% bottom 20%; 
    
    background-repeat: no-repeat; 
    z-index: -1;
}

/* ============================================================
   KLEUR VARIATIES VOOR DE HEADER
   ============================================================ */
.custom-poly-divider-header.header-groen::before {
    background-color: #b6d996 !important; 
}

.custom-poly-divider-header.header-mint::before {
    background-color: #c3e7eb !important; 
}

/* 3.2 Archief Headers Shape (Films, Ervaringsverhalen & Aanpak) */
.film-archive-header, .ervaringsverhaal-archive-header, .aanpak-header {
    position: relative; background-color: transparent !important; z-index: 10;
    margin-bottom: -1px; padding-top: 1vh !important; padding-bottom: 0 !important;
}
.film-archive-header::before, .film-archive-header::after,
.ervaringsverhaal-archive-header::before, .ervaringsverhaal-archive-header::after,
.aanpak-header::before, .aanpak-header::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    clip-path: polygon(100% 0, 100% 96%, 20% 100%, 0 95%, 0 0);
}

/* Film Archief */
.film-archive-header::before {
    background-image: url(/wp-content/uploads/2025/12/textuur_01.webp); background-color: #FFD2D2;
    background-blend-mode: multiply; background-size: cover; z-index: -2;
}
.film-archive-header::after {
    background-image: url('/wp-content/uploads/2026/01/HeaderPeopleFilmsArchief.png');
    background-size: contain; background-position: 25% bottom; background-repeat: no-repeat; z-index: -1;
}

/* Ervaringsverhaal Archief */
.ervaringsverhaal-archive-header::before {
    background-image: url(/wp-content/uploads/2025/12/textuur_01.webp); background-color: #c3e7eb;
    background-blend-mode: multiply; background-size: cover; z-index: -2;
}
.ervaringsverhaal-archive-header::after {
background-image: url('/wp-content/uploads/2026/01/HeaderPeopleErvaringArchief.png');
    
    /* 1. DE VLOEIENDE SCHALING: groeit mee tot 600px */
    background-size: min(45vw, 600px) auto !important; 
    
    /* 2. DE POSITIE: links uitgelijnd in de lege kolom */
    background-position: left 25% bottom -20px !important; 
    
    background-repeat: no-repeat; 
    z-index: -1;
}

/* DE AANPAK Specifiek */
.aanpak-header::before {
    background-image: url(/wp-content/uploads/2025/12/textuur_01.webp); background-color: #FFD2D2; 
    background-blend-mode: multiply; background-size: cover; z-index: -2;
}
.aanpak-header::after {
    background-image: url('/wp-content/uploads/2026/01/HeaderPeopleErvaringArchief.png');
    
    /* Hier is de limiet: groeit mee tot 800px, daarna stopt hij */
    background-size: min(45vw, 600px) auto !important; 
    
    /* Speel eventueel met de positie als hij door het schalen wat verschuift */
    background-position: left 25% bottom -20px !important; 
    
    background-repeat: no-repeat; 
    z-index: -1;
}

/* 3.3 Decoratieve Banen */
/* Groen Punt Rechts */
.groene-baan-punt-rechts { position: relative; background-color: transparent !important; z-index: 9; filter: drop-shadow(0px 15px 15px rgba(0,0,0,0.5)); margin-bottom: -1px; }
.groene-baan-punt-rechts::before {
    content: ""; position: absolute; inset: 0; pointer-events: none; z-index: -2;
    background-image: url(/wp-content/uploads/2025/12/textuur_01.webp); background-color: #b6d996; background-blend-mode: multiply; background-size: cover;
    clip-path: polygon(100% 0, 100% calc(100% - 4vw), 91% 100%, 0 calc(100% - 4vw), 0 0);
}
/* Lichtblauw Punt Rechts */
.blauwe-baan-punt-rechts { position: relative; background-color: transparent !important; z-index: 9; filter: drop-shadow(0px 15px 15px rgba(0,0,0,0.5)); margin-bottom: -1px; }
.blauwe-baan-punt-rechts::before {
    content: ""; position: absolute; inset: 0; pointer-events: none; z-index: -2;
    background-image: url(/wp-content/uploads/2025/12/textuur_01.webp); background-color: #acc6e8; background-blend-mode: multiply; background-size: cover;
    clip-path: polygon(100% 0, 100% calc(100% - 4vw), 91% 100%, 0 calc(100% - 4vw), 0 0);
}

/* Rose Punt Rechts */
.rose-baan-punt-rechts { position: relative; background-color: transparent !important; z-index: 9; filter: drop-shadow(0px 15px 15px rgba(0,0,0,0.5)); margin-bottom: -1px; }
.rose-baan-punt-rechts::before {
    content: ""; position: absolute; inset: 0; pointer-events: none; z-index: -2;
    background-image: url(/wp-content/uploads/2025/12/textuur_01.webp); background-color: #fbd1d2; background-blend-mode: multiply; background-size: cover;
    clip-path: polygon(100% 0, 100% calc(100% - 4vw), 91% 100%, 0 calc(100% - 4vw), 0 0);
}
/* Blauw Schuine Afloop */
.blauw-schuine-afloop { position: relative; background-color: transparent !important; z-index: 8; filter: drop-shadow(0px 15px 15px rgba(0,0,0,0.5)); margin-bottom: -1px; }
.blauw-schuine-afloop::before, .blauw-schuine-afloop::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    clip-path: polygon(100% 0, 100% 100%, 0 calc(100% - 2.5vw), 0 0);
}
.blauw-schuine-afloop::before {
    background-image: url(/wp-content/uploads/2025/12/textuur_01.webp); background-color: #34419a; background-blend-mode: multiply; background-size: cover; z-index: -2;
}
.blauw-schuine-afloop::after {
    background-image: url('/wp-content/uploads/2026/01/HeaderPeople-e1767367096908.png'); /* Met clamp krimpen ze mee, maar stoppen ze met krimpen zodra ze 400px breed zijn */
    background-size: clamp(400px, 32vw, 650px) auto !important; background-position: left 30% bottom -10px !important; background-repeat: no-repeat; z-index: -1;
}

/* Blauw Punt Links (Afbeelding Rechts) */
.blauw-baan-punt-links {
    position: relative; background-color: transparent !important; z-index: 9;
    filter: drop-shadow(0px 15px 15px rgba(0,0,0,0.5)); margin-bottom: -1px;
    padding-top: 50px !important; padding-bottom: 100px !important; 
}
.blauw-baan-punt-links::before, .blauw-baan-punt-links::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    clip-path: polygon(100% 0, 100% calc(100% - 4vw), 9% 100%, 0 calc(100% - 4vw), 0 0);
}
.blauw-baan-punt-links::before {
    z-index: -2; background-image: url(/wp-content/uploads/2025/12/textuur_01.webp);
    background-color: #BEF5F5; background-blend-mode: multiply; background-size: cover;
}
.blauw-baan-punt-links::after {
    z-index: -1; background-image: url('/wp-content/uploads/2026/01/HeaderPeopleErvaringArchief.png');
    background-size: clamp(400px, 25vw, 600px) auto !important; background-position: bottom right 20%; background-repeat: no-repeat;
}

/* ============================================================
   3.4 POLY CARDS (Content Vlakken)
   ============================================================ */

/* Rood 1 t/m 4 (Met ::before methode) */
.poly-card-rood-1, .poly-card-rood-2, .poly-card-rood-3, .poly-card-rood-4 {
    position: relative; z-index: 1; background-color: transparent !important; filter: drop-shadow(0px 10px 15px rgba(0,0,0,0.4));
    padding: 25px 15px 25px 40px !important; display: flex; flex-direction: column; justify-content: center; 
}
.poly-card-rood-1::before, .poly-card-rood-2::before, .poly-card-rood-3::before, .poly-card-rood-4::before {
    content: ""; position: absolute; inset: 0; z-index: -1; background-color: #a73928;
}
.poly-card-rood-1::before { clip-path: polygon(0 0, 97% 3%, 100% 70%, 95% 100%, 4% 100%, 4% 55%); }
.poly-card-rood-2::before { clip-path: polygon(14% 0, 99% 0, 100% 75%, 98% 100%, 1% 94%, 0 3%); }
.poly-card-rood-3::before { clip-path: polygon(3% 0, 98% 0, 98% 93%, 100% 96%, 96% 100%, 2% 100%, 0 6%); }
.poly-card-rood-4::before { clip-path: polygon(2% 0, 100% 9%, 100% 95%, 97% 100%, 2% 100%, 0 21%); }

/* blauw 1 t/m 4 (Met ::before methode) */
.poly-card-blauw-1, .poly-card-blauw-2, .poly-card-blauw-3, .poly-card-blauw-4 {
    position: relative; z-index: 1; background-color: transparent !important; filter: drop-shadow(0px 10px 15px rgba(0,0,0,0.4));
    padding: 25px 15px 25px 40px !important; display: flex; flex-direction: column; justify-content: center; 
}
.poly-card-blauw-1::before, .poly-card-blauw-2::before, .poly-card-blauw-3::before, .poly-card-blauw-4::before {
    content: ""; position: absolute; inset: 0; z-index: -1; background-color: #140fbe;
}
.poly-card-blauw-1::before { clip-path: polygon(0 0, 97% 3%, 100% 70%, 95% 100%, 4% 100%, 4% 55%); }
.poly-card-blauw-2::before { clip-path: polygon(14% 0, 99% 0, 100% 75%, 98% 100%, 1% 94%, 0 3%); }
.poly-card-blauw-3::before { clip-path: polygon(3% 0, 98% 0, 98% 93%, 100% 96%, 96% 100%, 2% 100%, 0 6%); }
.poly-card-blauw-4::before { clip-path: polygon(2% 0, 100% 9%, 100% 95%, 97% 100%, 2% 100%, 0 21%); }

/* groen 1 t/m 4 (Met ::before methode) */
.poly-card-groen-1, .poly-card-groen-2, .poly-card-groen-3, .poly-card-groen-4 {
    position: relative; z-index: 1; background-color: transparent !important; filter: drop-shadow(0px 10px 15px rgba(0,0,0,0.4));
    padding: 25px 15px 25px 40px !important; display: flex; flex-direction: column; justify-content: center; 
}
.poly-card-groen-1::before, .poly-card-groen-2::before, .poly-card-groen-3::before, .poly-card-groen-4::before {
    content: ""; position: absolute; inset: 0; z-index: -1; background-color: #1f643d;
}
.poly-card-groen-1::before { clip-path: polygon(0 0, 97% 3%, 100% 70%, 95% 100%, 4% 100%, 4% 55%); }
.poly-card-groen-2::before { clip-path: polygon(14% 0, 99% 0, 100% 75%, 98% 100%, 1% 94%, 0 3%); }
.poly-card-groen-3::before { clip-path: polygon(3% 0, 98% 0, 98% 93%, 100% 96%, 96% 100%, 2% 100%, 0 6%); }
.poly-card-groen-4::before { clip-path: polygon(2% 0, 100% 9%, 100% 95%, 97% 100%, 2% 100%, 0 21%); }

/* Typografie & Spacing binnen de Poly Cards (Platter maken) */
.poly-card-typo {
    margin-bottom: 10px !important; /* Ruimte onder de tekstmodule richting de knop. Zet op 0px voor nog platter. */
}
.poly-card-typo h2, 
.poly-card-typo p {
    margin-bottom: 0px !important; /* Haalt de standaard witruimte direct onder de tekst weg */
    padding-bottom: 0px !important;
}

/* Basisinstellingen Variabele Cards */
.sectie-container { overflow: visible; padding: 50px; }
.poly-card {
    position: relative; width: 100%; min-height: 300px; filter: drop-shadow(0px 10px 15px rgba(0,0,0,0.4));
    --card-bg: #ccc; --card-path: none;
}
.poly-card::before {
    content: ""; display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: -1;
    background-color: var(--card-bg); clip-path: var(--card-path);
}

/* Standaard Kleuren */
.poly-card-bruin { z-index: 10; --card-bg: #a73928; --card-path: polygon(7% 3%, 97% 0, 100% 100%, 0 98%, 0 8%); }
.poly-card-groen { z-index: 1; position: relative; left: -50px; top: 100px; margin: 0; --card-bg: #1f643d; --card-path: polygon(7% 0, 97% 2%, 100% 11%, 95% 95%, 10% 100%, 0 69%); }
.poly-card-lichtgroen { z-index: 1; position: relative; margin: 0; --card-bg: #b6d996; --card-path: polygon(5% 2%, 98% 0, 100% 100%, 0 98%, 0 8%); }
.poly-card-lichtblauw { z-index: 1; position: relative; margin: 0; --card-bg: #c3e7eb; --card-path: polygon(0 0, 95% 0, 100% 14%, 96% 100%, 4% 100%, 0 78%); }
.poly-card-groen-quote { z-index: 1; position: relative; left: -50px; top: 100px; margin: 0; --card-bg: #1f643d; --card-path: polygon(8% 0, 92% 2%, 100% 20%, 94% 100%, 8% 100%, 0 93%); }
.poly-card-roze-quote { z-index: 1; position: relative; left: -50px; top: 100px; margin: 0; --card-bg: #fbd1d2; --card-path: polygon(8% 0, 92% 2%, 100% 20%, 94% 100%, 8% 100%, 0 93%); }
.poly-card-blauw-quote { z-index: 1; position: relative; left: -50px; top: 100px; margin: 0; --card-bg: #140fbe; --card-path: polygon(8% 0, 92% 2%, 100% 20%, 94% 100%, 8% 100%, 0 93%); }
.poly-card-blauw { z-index: 9; position: relative; left: -50px; top: 100px; margin: 0; align-self: flex-start !important; height: fit-content !important; --card-bg: #140FBE; --card-path: polygon(7% 0, 97% 2%, 100% 11%, 95% 95%, 10% 100%, 0 69%); }
.poly-card-grijs { z-index: 9; position: relative; left: -50px; top: 100px; margin: 0; align-self: flex-start !important; height: fit-content !important; --card-bg: #7E7E7E; --card-path: polygon(7% 0, 97% 2%, 100% 11%, 95% 95%, 10% 100%, 0 69%); }

/* Bruine Variatie */
.poly-card-bruin-variatie { 
    z-index: 10; 
    --card-bg: #a73928; 
    --card-path: polygon(9% 0, 98% 2%, 100% 93%, 96% 100%, 4% 96%, 4% 8%, 0 6%); 
}

/* Blauwe Variatie (Lichtblauw + Textuur) */
.poly-card-blauw-variatie { 
    z-index: 10; 
    --card-bg: #BEF5F5; 
    --card-path: polygon(9% 0, 98% 2%, 100% 93%, 96% 100%, 4% 96%, 4% 8%, 0 6%); 
}
.poly-card-blauw-variatie::before {
    background-image: url(/wp-content/uploads/2025/12/textuur_01.webp);
    background-blend-mode: multiply; background-size: cover;
}

/* Mobiele correctie voor de overlap */
@media (max-width: 980px) {
    .poly-card-groen-quote {
        left: 0;
        top: 0;
        margin-top: -20px; /* Trek hem op mobiel iets omhoog over de bruine kaart */
        width: 100%;
    }
}

/* Single Template Poly (Oranje overlap) */
.poly-card-bruin-ervaring {
    position: relative; z-index: 10; background-color: transparent !important; padding: 30px 70px 50px 80px !important;
    display: flex; flex-direction: column; min-height: 500px; box-sizing: border-box; filter: drop-shadow(0px 15px 15px rgba(0,0,0,0.5));
    width: 110% !important; margin-left: -7% !important;
}
.poly-card-bruin-ervaring::before {
    content: ""; position: absolute; inset: 0; z-index: -1; background-color: #f26538;
    background-image: url(/wp-content/uploads/2025/12/textuur_01.webp); background-blend-mode: multiply; background-size: cover;
    clip-path: polygon(7% 0, 97% 2%, 100% 11%, 95% 95%, 10% 100%, 0 69%);
}

/* ============================================================
   5. COMPONENTS (Lists, Video, Filmstrip)
   ============================================================ */

/* ============================================================
   5.1 Lokale SVG Lijst (Fluid Scaling voor Divi)
   ============================================================ */
ul.lokale-svg-lijst { 
    list-style: none !important; 
    padding-left: 0 !important; 
    margin-left: 0 !important; 
}

ul.lokale-svg-lijst li { 
    /* 1. Forceer de vloeiende typografie op de lijst-items zélf */
    font-size: clamp(18px, 1.1vw + 0.4rem, 24px) !important;
    line-height: 1.6em !important;
    
    display: flex; 
    align-items: center; /* Tip: Maak hier 'flex-start' van als tekst over meerdere regels valt */
    margin-bottom: 1px !important; 
}

ul.lokale-svg-lijst li::before {
    content: ''; 
    
    /* 2. Forceer de schaling op het wolkje. 
       Schaalt van 45px (mobiel) naar 60px (desktop) */
    width: clamp(45px, 3.5vw + 0.5rem, 60px) !important; 
    height: clamp(45px, 3.5vw + 0.5rem, 60px) !important; 
    
    background-image: url('/wp-content/uploads/2025/12/Wolkje.svg');
    background-size: contain; 
    background-repeat: no-repeat; 
    
    /* Voorkomt dat het wolkje in elkaar gedrukt wordt door lange tekst */
    flex-shrink: 0 !important; 
    
    /* 3. Marge die ook zachtjes meeschaalt */
    margin-right: clamp(10px, 1vw, 15px) !important; 
    margin-top: 2px !important;
}
/* 5.2 Video Player */
.video-container { width: 100%; max-width: 100%; margin-bottom: 20px; }
.video-container iframe { width: 100%; height: auto; aspect-ratio: 16 / 9; border: none; }

/* 5.3 Film Accordion (Single Film) */
body.single-film details.custom-film-accordion { margin-bottom: 20px; border: none; padding: 0; }
body.single-film details.custom-film-accordion summary {
    background-color: #B4E696; color: #A63828; font-family: 'RundText', sans-serif !important; font-weight: 700 !important;
    font-size: 20px !important; padding: 15px 20px; cursor: pointer; list-style: none; position: relative; outline: none; 
}
body.single-film details.custom-film-accordion summary::-webkit-details-marker { display: none; }
body.single-film details.custom-film-accordion summary::after {
    content: '\276F'; display: inline-block; position: absolute; right: 20px; top: 50%; transform: translateY(-50%) rotate(90deg);
    font-size: 20px; color: #A63828; font-weight: 700; 
}
body.single-film details.custom-film-accordion .accordion-inner {
    background-color: rgba(180, 230, 150, 0.5); padding: 20px 20px 40px 20px; position: relative; animation: fadeContent 0.3s ease-in-out;
}
body.single-film details.custom-film-accordion .accordion-inner p, body.single-film details.custom-film-accordion .accordion-inner {
    font-family: 'RundText', sans-serif !important; font-weight: 400 !important; font-size: 20px !important; line-height: 28px !important; color: #000000 !important; margin-bottom: 10px !important;
}
body.single-film details.custom-film-accordion .close-accordion-btn {
    position: absolute; bottom: 10px; right: 20px; width: 30px; height: 30px; cursor: pointer; z-index: 5; display: flex; align-items: center; justify-content: center;
}
body.single-film details.custom-film-accordion .close-accordion-btn::before {
    content: '\276F'; display: block; transform: rotate(-90deg); font-size: 20px; color: #A63828; font-weight: 700;
}
@keyframes fadeContent { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }



/* ============================================================
   BLURB MODULE AFBEELDINGEN (Fluid Scaling met max plafond)
   ============================================================ */

/* Zorg dat de verpakking flexibel is */
.et_pb_blurb .et_pb_main_blurb_image {
    max-width: 100% !important;
}

/* De daadwerkelijke afbeelding schalen */
.et_pb_blurb .et_pb_main_blurb_image img {
    /* DE TWEAK-WAARDE: clamp(Minimum, Vloeiend, Maximum)
       - Minimum: 80px (zodat hij als icoon op mobiel niet onleesbaar klein wordt)
       - Vloeiend: 12vw (groeit mee met de schermbreedte)
       - Maximum: 213px (het originele formaat uit je HTML, stopt hier met groeien)
    */
    width: clamp(80px, 12vw, 213px) !important;
    
    /* Zorg dat de hoogte proportioneel mee schaalt */
    height: auto !important; 
}

/* ============================================================
   6. TEMPLATES (Single Posts)
   ============================================================ */
/* 6.1 Ervaringsverhalen */
body.single-ervaringsverhaal .img-ratio-16-9 img,
body.single-ervaringsverhaal .img-ratio-16-9 .et_pb_image_wrap img {
    aspect-ratio: 543 / 351 !important; object-fit: cover !important; width: 100% !important; height: 100% !important;
}

/* 6.2 Films */
body.single-film .img-ratio-16-9 img,
body.single-film .img-ratio-16-9 .et_pb_image_wrap img {
    aspect-ratio: 16 / 9 !important; object-fit: cover !important; width: 100% !important; height: 100% !important;
}
.film-video-overlap-sectie {
    position: relative; z-index: 20; background-color: transparent !important; margin-top: -150px !important; padding-bottom: 50px !important;
}

.film-meta-item {
	font-size: small !important;
}


/* ============================================================
   7. ARCHIVES (Loop Grids)
   ============================================================ */
/* 7.1 Film Archief */
.post-type-archive-film .et_pb_contact_field_options_title,
.post-type-archive-film .et_pb_contact_field_options_title label {
    font-family: 'RundText', sans-serif !important; font-weight: 700 !important; font-size: 18px !important; margin-bottom: 5px !important; display: block;
}
.post-type-archive-film .grid-posts.loop-grid { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); grid-gap: 30px !important; gap: 30px !important; }
.post-type-archive-film .grid-col.dmach-grid-item { margin: 0 !important; width: 100% !important; }
.post-type-archive-film .dmach-grid-item .et_pb_section, .post-type-archive-film .dmach-grid-item .et_pb_row {
    padding-top: 0 !important; padding-bottom: 0 !important; padding-left: 0 !important; padding-right: 0 !important; margin: 0 !important; width: 100% !important; max-width: 100% !important;
}

/* 7.2 Ervaringsverhalen Archief */
.post-type-archive-ervaringsverhaal .et_pb_contact_field_options_title,
.post-type-archive-ervaringsverhaal .et_pb_contact_field_options_title label {
    font-family: 'RundText', sans-serif !important; font-weight: 700 !important; font-size: 18px !important; margin-bottom: 5px !important; display: block;
}
.post-type-archive-ervaringsverhaal .grid-posts.loop-grid { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); grid-gap: 30px !important; gap: 30px !important; }
.post-type-archive-ervaringsverhaal .grid-col.dmach-grid-item { margin: 0 !important; width: 100% !important; }
.post-type-archive-ervaringsverhaal .dmach-grid-item .et_pb_section, .post-type-archive-ervaringsverhaal .dmach-grid-item .et_pb_row {
    padding-top: 0 !important; padding-bottom: 0 !important; padding-left: 0 !important; padding-right: 0 !important; margin: 0 !important; width: 100% !important; max-width: 100% !important;
}

/* 7.3 Ervaringsverhalen Quote Item Logic (8/12 Breedte) */
/* Wrapper Grid */
.ervaringen-grid-wrapper { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }

/* Quote Item overrides */
.ervaring-item.type-quote {
    grid-column: 1 / -1 !important; /* Pak hele breedte */
    width: 66.666% !important;      /* Forceer 8/12 breedte */
    margin-left: auto !important; margin-right: auto !important; /* Centeren */
}
/* Interne correctie (verberg lege kolommen) */
.ervaring-item.type-quote .quote-inner-wrapper.grid-2-8-2 {
    display: flex !important; flex-direction: column; width: 100% !important;
}
.ervaring-item.type-quote .quote-inner-wrapper.grid-2-8-2 .et_pb_column:first-child,
.ervaring-item.type-quote .quote-inner-wrapper.grid-2-8-2 .et_pb_column:last-child {
    display: none !important;
}
.ervaring-item.type-quote .quote-inner-wrapper.grid-2-8-2 .et_pb_column.quote-content {
    width: 100% !important; padding: 0 20px;
}

/* ============================================================
   8. SPECIFIC SHORTCODES (Ervaringsverhalen Grid)
   ============================================================ */
/* 8.1 Hoofd Grid Container */
#ervaringen-grid-id.ervaringen-grid-wrapper {
    display: grid; grid-template-columns: 1fr 1fr; gap: 50px; 
    width: 90%; max-width: 1679px; margin: 50px auto;
}

/* 8.2 Items */
.ervaring-item { position: relative; box-sizing: border-box; }
.standaard-card-link { text-decoration: none !important; display: block; height: 100%; }
.standaard-inner-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 25px; align-items: center !important; }

.ervaring-circle-image {
    width: 100%; aspect-ratio: 1 / 1; border-radius: 50%; overflow: hidden; 
    position: relative; box-shadow: 0 5px 15px rgba(0,0,0,0.1); transition: transform 0.4s ease;
}
.ervaring-circle-image img { width: 100%; height: 100%; object-fit: cover; }
.standaard-card-link:hover .ervaring-circle-image { transform: scale(1.05); }

.ervaring-content { display: flex; flex-direction: column; }
#ervaringen-grid-id .intro-label {
    font-family: 'RundText', sans-serif !important; font-weight: 400 !important; font-size: 24px !important;
    margin-bottom: 5px !important; line-height: 1.2em !important; text-transform: none !important; display: block;
}
#ervaringen-grid-id h2.main-title {
    font-family: 'RundText', sans-serif !important; font-weight: 700 !important; font-size: 24px !important;
    line-height: 1.2em !important; margin-bottom: 10px !important; padding-top: 0 !important;
}
#ervaringen-grid-id .ervaring-excerpt p {
    font-family: 'RundText', sans-serif !important; font-weight: 400 !important; font-size: 18px !important; 
    line-height: 26px !important; color: #000 !important;
}

/* 8.3 Quote Items styling */
.quote-inner-wrapper.grid-2-8-2 {
    width: 100% !important; margin: 0 !important; padding: 80px 0 !important; 
    position: relative; z-index: 1; filter: drop-shadow(0px 10px 15px rgba(0,0,0,0.3));
}
.quote-inner-wrapper.grid-2-8-2::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    clip-path: polygon(93% 0, 97% 3%, 100% 100%, 0 100%, 0 3%);
    background-image: url(/wp-content/uploads/2025/12/textuur_01.webp); background-size: cover; background-blend-mode: multiply;
}
.quote-content { text-align: center; }
#ervaringen-grid-id .quote-content h3 {
    font-family: 'RundText', sans-serif !important; font-weight: 500 !important;
    font-size: clamp(32px, 2.5vw, 48px) !important; line-height: 1.3em !important; margin-bottom: 0 !important; color: #fff !important; 
}

/* 8.4 Kleuren Systeem */
#ervaringen-grid-id .style-rood .intro-label, #ervaringen-grid-id .style-rood h2.main-title { color: #A63828 !important; }
#ervaringen-grid-id .style-rood .quote-inner-wrapper.grid-2-8-2::before { background-color: #A63828; }

#ervaringen-grid-id .style-groen .intro-label, #ervaringen-grid-id .style-groen h2.main-title { color: #1E643C !important; }
#ervaringen-grid-id .style-groen .quote-inner-wrapper.grid-2-8-2::before { background-color: #1E643C; }

#ervaringen-grid-id .style-blauw .intro-label, #ervaringen-grid-id .style-blauw h2.main-title { color: #140FBE !important; }
#ervaringen-grid-id .style-blauw .quote-inner-wrapper.grid-2-8-2::before { background-color: #140FBE; }

/* ============================================================
   9. NIEUWE FAQ ACCORDION (Custom Shortcode)
   ============================================================ */
.tweekoppig-faq-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.tk-faq-item {
    border-bottom: 2px solid #B4E696 !important; /* De frisse groene lijn */
}

/* De knop (Titelbalk) */
.tk-faq-title {
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    padding: 20px 0;
    font-family: 'RundText', sans-serif !important;
    font-size: 18px !important;
    font-weight: 700 !important; /* Iets dikker gedrukt voor leesbaarheid */
    color: #000000;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    outline: none;
    transition: color 0.3s ease;
}

.tk-faq-title:hover {
    color: #1711D7; /* Subtiele blauwe hint bij hoveren */
}

.tk-vraag-tekst {
    padding-right: 20px;
}

/* Het uitklap-haakje (Puur CSS!) */
.tk-faq-icon {
    position: relative;
    width: 14px;
    height: 14px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.tk-faq-icon::before {
    content: '';
    position: absolute;
    top: 0; 
    left: 0;
    width: 8px; 
    height: 8px;
    border-right: 2px solid #000000;
    border-bottom: 2px solid #000000;
    transform: rotate(45deg); /* Pijltje naar beneden */
    transform-origin: center;
}

/* Roteer het haakje als hij open is */
.tk-faq-item.is-open .tk-faq-icon {
    transform: rotate(180deg); /* Roteert naar boven */
}

.tk-faq-item.is-open .tk-faq-title {
    color: #1711D7; /* Houd de titel blauw als hij open staat */
}

/* De inhoud (Antwoord) */
.tk-faq-content {
    font-family: 'RundText', sans-serif !important;
    font-size: 16px !important;
    line-height: 1.6em !important;
    color: #000000;
}

.tk-faq-inner {
    padding-bottom: 25px; /* Ademruimte onder het antwoord */
}

.tk-faq-inner p {
    margin-bottom: 0 !important;
}

.tk-faq-item .tk-faq-content p {
    font-size: 16px !important; /* Pas dit getal aan als je vraag net iets groter of kleiner is */
    line-height: 1.6em !important;
    font-weight: 400 !important;
    margin-bottom: 0 !important; /* Voorkomt een te grote witruimte aan de onderkant */
}



/* ============================================================
   12. MOBILE GLOBAL RESETS (Always at the bottom!)
   ============================================================ */
@media (max-width: 980px) {
    /* Header (Flex Items) */
    .flex-header-items { flex-direction: column !important; align-items: stretch !important; }
    .flex-header-items .et_pb_menu, .flex-header-items .et_pb_button_module_wrapper { width: 100% !important; margin-bottom: 20px !important; }

    /* Grids */
    .grid-2-5-5, .grid-1-5-1-5, .grid-1-8-3, .grid-7-5, .grid-5-7, 
    .grid-6-5-1, .grid-1-6-4-1, .grid-8-3-1, .grid-1-10-1, 
    .grid-2-3-5-2, .grid-4-3-4-1, .grid-1-6-5, .grid-1-3-3-3-2,
    .grid-1-9-2, .grid-1-2-2-2-2-2-1, .grid-2-8-2, .grid-5-1-6, .grid-1-5-6 { 
        grid-template-columns: 1fr !important; gap: 20px !important; 
    }
    
    /* Header Shapes */
    .custom-poly-divider-header, .film-archive-header, .ervaringsverhaal-archive-header, .aanpak-header { 
        padding-top: 60px !important; padding-bottom: 50px !important; 
    }
 /* Verberg de mensen-afbeelding in de hero header op tablet en mobiel */
    .custom-poly-divider-header::after, .film-archive-header::after, .ervaringsverhaal-archive-header::after, .aanpak-header::after { display: none !important; }
    .film-archive-header::after, .ervaringsverhaal-archive-header::after, .aanpak-header::after { background-size: 90% auto; background-position: center bottom; }
    
    
    /* Banen & Shapes */
    /* Verberg de poppetjes in beide blauwe banen op tablet en mobiel */
    .blauw-schuine-afloop::after,
    .blauw-baan-punt-links::after { 
        display: none !important; 
    }
	/* Verberg ook de lege rechterkolom van het 1-5-6 grid, 
       anders krijg je een enorm gat onder je tekst op mobiel! */
    body .grid-1-5-6 .et_pb_column_empty {
        display: none !important;
    }
	/* Halveer de gigantische padding onderaan, omdat de poppetjes hier toch verborgen zijn! */
    .blauw-baan-punt-links {
        padding-bottom: 40px !important; 
    }
    .poly-card-groen, .poly-card-blauw, .poly-card-grijs { left: 0 !important; top: 0 !important; margin-top: 20px !important; margin-left: 0 !important; width: 100% !important; }
    
    /* Template Specifics */
    body.single-film .poly-card-bruin-ervaring, body.single-ervaringsverhaal .poly-card-bruin-ervaring {
        width: 100% !important; margin-left: 0 !important; margin-top: 30px !important; min-height: auto !important; padding: 40px 30px 60px 30px !important; 
    }
    .film-video-overlap-sectie { margin-top: -50px !important; }
    
    /* Filmstrip */
    .filmstrip-container { width: 100% !important; margin-left: 0 !important; }
    .filmstrip-track { padding-left: 0; }
    .filmstrip-item { width: 80vw; min-width: 250px; }
    .film-title { font-size: 24px !important; }
    .film-excerpt p, .meta-row { font-size: 18px !important; }
    
    /* Ervaringsverhalen Grid (Shortcode & Archive) */
    .ervaringen-grid-wrapper { grid-template-columns: 1fr !important; gap: 40px; }
    .ervaring-item.type-quote { width: 100% !important; }
    .quote-inner-wrapper.grid-2-8-2 { padding: 50px 20px !important; }
    .standaard-inner-grid { grid-template-columns: 1fr; justify-items: center; text-align: center; }
    .ervaring-circle-image { width: 150px; margin-bottom: 15px; }
    
}

/* ============================================================
   ARCHIVE CARD RESET (Voor gebruik in Divi Engine Grid)
   ============================================================ */

/* Zorg dat de kaart in het archief 100% van de kolom vult */
.post-type-archive-film .filmstrip-item.archive-card-reset,
.archive .filmstrip-item.archive-card-reset {
    width: 100% !important;
    min-width: 0 !important; /* Reset de 300px min-width */
    max-width: 100% !important;
    margin-right: 0 !important;
    flex: 1 1 auto !important;
}

/* Zorg dat de afbeelding responsive blijft */
.post-type-archive-film .filmstrip-item.archive-card-reset .filmstrip-image-wrap {
    width: 100% !important;
    aspect-ratio: 16 / 9;
}
/* ============================================================
   Poly Cards Rij: Uitzondering voor Tablet (Inclusief Divi Fix)
   ============================================================ */
@media (min-width: 768px) and (max-width: 980px) {
    /* 1. Definieer de juiste grid-verhouding */
    body .grid-2-5-5 {
        grid-template-columns: 2fr 5fr 5fr !important; 
        gap: 15px !important; 
    }
    
    /* 2. Voorkom dat Divi de lege kolom verbergt op tablet! */
    body .grid-2-5-5 .et_pb_column_empty {
        display: block !important;
    }
}
/* Poly Cards Tekst: Specifieke schaling voor tablet & mobiel */
@media (max-width: 980px) {
    .et_pb_module.poly-card-typo h2,
    .et_pb_module.poly-card-typo p {
        font-size: clamp(20px, 2.5vw + 0.5rem, 26px) !important;
        line-height: 1.3em !important;
    }
}
/* ============================================================
   Iconen Rij (Tablet Layout Fix)
   ============================================================ */
@media (min-width: 768px) and (max-width: 980px) {
    /* Houdt de 5 blokken naast elkaar op tablet */
    body .grid-1-2-2-2-2-2-1 {
        grid-template-columns: repeat(5, 1fr) !important;
        gap: 15px !important; 
    }
    
    /* Verbergt de lege kolom links zodat de blokken de volle breedte krijgen */
    body .grid-1-2-2-2-2-2-1 .et_pb_column_empty {
        display: none !important;
    }
}


/* ============================================================
   BLURB GRID OP MOBIEL (2 naast elkaar)
   ============================================================ */
@media (max-width: 980px) {
    
    /* 1. Verberg de lege eerste kolom, anders begint je grid met een gat */
    .grid-1-2-2-2-2-2-1 .et_pb_column_empty {
        display: none !important;
    }

    /* 2. Vertel de rij dat hij 2 gelijke kolommen (1fr 1fr) moet gebruiken */
    .grid-1-2-2-2-2-2-1 {
        /* Dit overschrijft de '1fr' regel die we eerder hadden ingesteld voor mobiel */
        grid-template-columns: 1fr 1fr !important; 
        gap: 20px !important; /* De ruimte tussen de blokjes */
    }
    
    /* Optioneel: Zet de tekst van de blurbs op mobiel iets kleiner 
       zodat het mooi past naast elkaar */
    .grid-1-2-2-2-2-2-1 .et_pb_module_header {
        font-size: 18px !important;
    }
    .grid-1-2-2-2-2-2-1 .et_pb_blurb_description p {
        font-size: 16px !important;
        line-height: 1.4em !important;
    }
}

/* Wil je op écht hele smalle telefoons (zoals een oude iPhone SE) 
   toch terug naar 1 kolom omdat het anders te krap wordt? 
   Dan kun je dit blokje toevoegen: 
@media (max-width: 479px) {
    .grid-1-2-2-2-2-2-1 {
        grid-template-columns: 1fr !important; 
    }*/
}



/* ============================================================
   1. GLOBALE MOBIELE OVERFLOW LOCK
   ============================================================ */
html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    position: relative;
}

#page-container {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
}

/* ============================================================
   2. HEADER RESET (De "Hamburger-Redder")
   ============================================================ */
@media (max-width: 980px) {
    header .et_pb_row_0_tb_header.flex-alles-rij {
        display: block !important; 
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 5% !important;
        padding-right: 5% !important;
        box-sizing: border-box !important;
    }

    header .flex-alles-rij .et_pb_column {
        width: 100% !important;
        max-width: 100% !important;
        float: none !important;
    }
}

/* ============================================================
   3. MOBIEL MENU FULLSCREEN (Back to Width 100%)
   ============================================================ */
header .et_pb_menu_0_tb_header,
header .et_pb_menu_0_tb_header .et_mobile_nav_menu {
    overflow: visible !important;
}

/* Hamburger bovenop het menu leggen */
header .mobile_menu_bar {
    position: relative !important;
    z-index: 100000 !important;
}

header #mobile_menu1 {
    position: fixed !important; 
    left: 0 !important;
    right: 0 !important;
    
    /* DIT WAS DE FOUT: Terug naar 100% om buitenboord vallen te voorkomen */
    width: 100% !important;
    max-width: 100% !important;
    
    /* Positie onder de blauwe balk */
    top: 90px !important; 
    
    background-color: #c9e4e4 !important; 
    margin: 0 !important;
    transform: none !important;
    z-index: 99999 !important;
    box-shadow: 0px 15px 20px rgba(0,0,0,0.2) !important;
    box-sizing: border-box !important;
}

header #mobile_menu1 li a {
    padding: 15px 5% !important;
    display: block !important;
}

/* ============================================================
   FLUID BUTTONS (Vloeiend meeschalende knoppen - 10% kleiner)
   ============================================================ */

/* Target de Divi button class direct */
.et_pb_button {
    /* De basis is nu 12.5px i.p.v. 14px, max is 18px i.p.v. 20px */
    font-size: clamp(12.5px, 0.9vw + 9px, 18px) !important;
    
    /* Padding ook iets verfijnder */
    padding: clamp(7px, 0.9vh, 12px) clamp(14px, 1.8vw, 26px) !important;
    
    white-space: nowrap !important;
    transition: all 0.3s ease !important;
}

/* Specifieke fix voor de knop in de flex-header-items (nog iets compacter) */
.flex-header-items .et_pb_button {
    /* Begint bij 11.5px op mobiel, plafond op 16px */
    font-size: clamp(11.5px, 0.8vw + 7px, 16px) !important;
    padding: 6px 18px !important;
}

/* ============================================================
   DIVI MACHINE GRID - EQUAL HEIGHT CARDS (Hardnekkige Fix)
   ============================================================ */

/* 1. De hoofdcontainer */
.loop-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: stretch !important;
}

/* 2. De kolommen en hun directe kinderen (Divi Machine containers) */
.loop-grid .grid-col,
.loop-grid .grid-item-cont,
.loop-grid .bc-link-whole-grid-card {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
}

/* 3. DE CRUCIALE STAP: Target de Divi Code module die de boel blokkeert */
.loop-grid .et_pb_module.et_pb_code,
.loop-grid .et_pb_code_inner {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 0 auto !important; /* Dwingt deze laag om de volle hoogte te vullen */
    height: 100% !important;
}

/* 4. De daadwerkelijke kaart-link */
.filmstrip-item.archive-card-reset {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 0 auto !important;
    height: 100% !important;
}



/* ============================================================
   KENNISBANK GRID & CARDS
   ============================================================ */

/* Het overkoepelende Grid */
.kennisbank-grid-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* De complete klikbare kaart */
.kb-card {
    display: flex;
    flex-direction: column;
    background-color: #E2EBF8;
    text-decoration: none !important;
    color: #000000;
    border-radius: 0; /* Ronde hoeken verwijderd */
    overflow: hidden;
    /* Hover animaties en schaduwen zijn verwijderd voor een strakker effect */
}

/* Het afbeeldingsvlak */
.kb-image-wrap {
    width: 100%;
    padding-top: 60%; 
    background-color: #E0E0E0; 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* De container voor tekst en knop */
.kb-content-wrap {
    padding: 30px 40px; 
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* De Titel */
.kb-title {
    color: #1711D7; 
    font-size: 24px;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 20px;
    line-height: 1.3;
}

/* De Excerpt tekst */
.kb-excerpt p,
.kb-excerpt {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 25px;
    color: #000000;
}

/* De Meta velden (ACF) */
.kb-meta-fields {
    margin-bottom: 35px;
    font-size: 16px;
    line-height: 1.6;
}

.kb-meta-item {
    color: #000000;
    margin-bottom: 5px;
}

/* Het blauwe label voor de ACF velden */
.kb-meta-label {
    color: #1711D7;
}

/* De "LEES VERDER" Knop */
.kb-button {
    display: inline-block;
    background-color: #1711D7;
    color: #FFFFFF !important;
    padding: 2px 20px; /* Brede padding in verhouding met je filter-knoppen */
    font-size: 16px;
    font-weight: 700;
    border-radius: 0; /* Ronde hoeken verwijderd */
    margin-top: auto; 
    align-self: flex-start; 
    transition: background-color 0.3s ease;
}

/* Lichte kleurverandering van de knop bij hover behouden voor bruikbaarheid */
.kb-card:hover .kb-button {
    background-color: #0F0A9E; 
}

.kennisbank-grid-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* ============================================================
   WITTE IMPLEMENTATIE LABELS
   ============================================================ */
.tk-implementatie-label {
    display: inline-block;
    background-color: #ffffff !important;
    color: #000000 !important; /* Zwarte/donkere tekst */
    padding: 6px 16px !important;
	margin-top: 16px;
    margin-right: 12px; /* De ruimte tussen de labels */
    margin-bottom: 10px; /* Ruimte voor als ze op mobiel naar de volgende regel springen */
    
    font-family: 'RundText', sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important; /* Semi-bold */
    text-decoration: none !important; /* Mocht je er linkjes van maken, dan haalt dit het streepje weg */
    line-height: 1.5em;
}

/* Haalt de marge bij het allerlaatste label weg, zodat het blok niet onnodig breed wordt */
.tk-implementatie-label:last-of-type {
    margin-right: 0;
}




/* ============================================================
   FILM KAARTEN (Nieuwe Grid Stijl - Zelfde layout als Kennisbank)
   ============================================================ */

/* 1. De Kaart (Zelfde basis als kb-card) */
.filmstrip-item {
    display: flex;
    flex-direction: column;
    text-decoration: none !important;
    background-color: #d8efd1; /* Lichtgroen */
    border-radius: 0;
    overflow: hidden;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* 2. De Afbeelding (Zelfde 16:10 verhouding als kb-image-wrap) */
.filmstrip-image-wrap {
    width: 100%;
    padding-top: 60%; /* Dit forceert exact dezelfde afmeting als kennisbank */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative; /* Nodig voor de 'bekijk film' knop */
    background-color: #E0E0E0;
}

/* 3. De 'Bekijk deze film' knop */
.film-bekijk-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: #BEF5F5;
    color: #1E643C;
    font-family: 'RundText', sans-serif;
    font-weight: 700;
    font-size: 16px;
	text-transform: uppercase;
    padding: 8px 20px;
    transition: all 0.3s ease;
	border-radius: 3px;
}

.filmstrip-item:hover .film-bekijk-btn {
    background-color: #1E643C;
    color: #BEF5F5;
}

/* 4. De Tekst Container (Zelfde padding als kb-content-wrap) */
.film-text-content {
    padding: 30px 40px !important;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* 5. Typografie (Exact overgenomen van kb-card) */
.film-title {
    color: #a73928 !important; /* Roodbruin */
    font-size: 24px !important;
    font-weight: 700 !important;
    margin-top: 0 !important;
    margin-bottom: 20px !important;
    line-height: 1.3 !important;
}

.film-excerpt p, 
.film-excerpt {
    font-size: 21px !important;
    line-height: 1.6 !important;
    margin-bottom: 25px !important;
    color: #000000 !important;
}

/* ============================================================
   FILM META DATA UITLIJNING (FLEXBOX)
   ============================================================ */
.film-meta-data .meta-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0px; /* Ademruimte tussen de regels */
}

.film-meta-data .meta-label {
    flex: 0 0 100px; /* Zorgt dat het label ALTIJD exact 100px is en niet krimpt */
    width: 100px;
    color: #a73928; /* De rode label kleur uit je design */
	font-size: 16px;
}

.film-meta-data .meta-value {
    flex: 1; /* Neemt alle resterende ruimte in beslag, waardoor de tekst in een eigen kolom valt */
	font-size: 16px;
	color: #000000;
}

/* ============================================================
   1. HET GRID (Voor alle content types)
   ============================================================ */
.kennisbank-grid-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Forceert EXACT 3 gelijke kolommen */
    gap: 30px;
    margin-bottom: 50px;
}

/* Zorg dat het op tablets netjes naar 2 kolommen gaat */
@media (max-width: 980px) {
    .kennisbank-grid-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* En op mobiel netjes onder elkaar */
@media (max-width: 768px) {
    .kennisbank-grid-wrapper {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   2. ELASTISCH FILTER FORMULIER
   ============================================================ */
.elastic-form {
    display: flex;
    flex-wrap: wrap; 
    gap: 20px;
    align-items: flex-end; 
    margin-bottom: 50px;
    font-family: inherit;
}

.filter-group {
    display: flex;
    flex-direction: column;
    flex: 1 1 350px; /* Basisbreedte van 250px, mag krimpen/groeien */
    min-width: 200px;
}

.filter-group label {
    color: #1711D7;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    text-transform: lowercase;
}

/* Het elastische zoekveld slokt resterende ruimte op */
.search-group {
    flex: 999 1 250px; 
}

/* Input & Select Styling */
.elastic-form select,
.elastic-form input[type="text"] {
    width: 100%;
    height: 50px;
    padding: 0 15px;
    border: 2px solid #1711D7;
    border-radius: 0;
    background-color: #FFFFFF;
    color: #1711D7;
    font-size: 16px;
    outline: none;
}

.elastic-form select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231711D7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 20px;
    padding-right: 45px;
    cursor: pointer;
}

/* Knoppen Wrapper */
.filter-actions {
    display: flex;
    gap: 20px;
    flex: 0 0 auto; 
    height: 50px; 
}

/* Knoppen Styling */
.btn-zoek,
.btn-wis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 0 40px;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    border: none;
    border-radius: 0;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.btn-zoek { background-color: #1711D7; color: #FFFFFF !important; }
.btn-zoek:hover { background-color: #0F0A9E; }
.btn-wis { background-color: #FCE1E4; color: #1711D7 !important; }
.btn-wis:hover { background-color: #F8C8CE; }

/* ============================================================
   SPECIFIEKE KLEUREN VOOR FILMS FILTER
   ============================================================ */

/* 1. Labels en kaders voor films (#a73928) */
.filter-film .filter-group label {
    color: #a73928;
}

.filter-film .elastic-form select,
.filter-film .elastic-form input[type="text"] {
    border-color: #a73928;
    color: #a73928;
}

/* 2. Het dropdown pijltje (SVG) in het roodbruin */
.filter-film .elastic-form select {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a73928' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

/* Subtiele roodbruine gloed bij typen/klikken */
.filter-film .elastic-form select:focus,
.filter-film .elastic-form input[type="text"]:focus {
    box-shadow: 0 0 0 3px rgba(167, 57, 40, 0.2);
}

/* 3. De knoppen voor films */
.filter-film .btn-zoek {
    background-color: #a73928;
    color: #b6d996 !important;
}

.filter-film .btn-zoek:hover {
    background-color: #b6d996;
	color: #a73928 !important;
}

.filter-film .btn-wis {
    background-color: #b6d996;
    color: #a73928 !important;
}

.filter-film .btn-wis:hover {
    background-color: #a73928;
	color: #b6d996 !important;
}


/* ============================================================
   3. KENNISBANK KAARTEN (Nieuwe stijl)
   ============================================================ */
.kb-card {
    display: flex;
    flex-direction: column;
    background-color: #E2EBF8;
    text-decoration: none !important;
    color: #000000;
    border-radius: 0;
    overflow: hidden;
}

.kb-image-wrap {
    width: 100%;
    padding-top: 60%; 
    background-color: #E0E0E0; 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.kb-content-wrap {
    padding: 30px 40px; 
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.kb-title {
    color: #1711D7; 
    font-size: 24px;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 2px;
    line-height: 1.3;
}

.kb-excerpt p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 2px;
    color: #000000;
}

.kb-meta-fields {
    margin-bottom: 35px;
    font-size: 16px;
    line-height: 1.6;
}

.kb-meta-item {
    color: #000000;
    margin-bottom: 5px;
}

.kb-meta-label {
    color: #1711D7;
}

.kb-button {
    display: inline-block;
    background-color: #1711D7;
    color: #FFFFFF !important;
	border-radius: 4px !important;
    padding: 7px 20px;
    font-size: 16px;
    font-weight: 700 !important;
    border-radius: 0;
    margin-top: auto; 
    align-self: flex-start; 
    transition: background-color 0.3s ease;
}

.kb-card:hover .kb-button {
    background-color: #0F0A9E; 
}


/* ============================================================
   4. KLASSIEKE PAGINERING
   ============================================================ */
.custom-pagination {
    display: flex;
    justify-content: flex-end; /* Zet de nummers netjes rechts uitgelijnd */
    gap: 10px;
    margin-top: 20px;
}

.custom-pagination a, 
.custom-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 34px;
    padding: 7px 12px;
    background-color: #E2EBF8;
    color: #1711D7;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 0; /* Strakke blokjes */
    transition: background-color 0.3s ease;
}

.custom-pagination a:hover {
    background-color: #FCE1E4; /* Hover effect op nummers */
}

.custom-pagination span.current {
    background-color: #1711D7;
    color: #FFFFFF;
}


/* ============================================================
   5. MOBIELE WEERGAVE FIXES
   ============================================================ */
@media (max-width: 768px) {
    .filter-group { flex: 1 1 100%; }
    .search-group { flex: 1 1 100%; }
    .filter-actions { 
        flex-direction: column; 
        flex: 1 1 100%; 
        height: auto; 
    }
    .btn-zoek, .btn-wis { height: 50px; width: 100%; }
    
    .kb-content-wrap {
        padding: 20px 25px; /* Iets minder padding op telefoons */
    }
    
    .custom-pagination {
        justify-content: center; /* Paginering in het midden op mobiel */
    }
}

/* ============================================================
   DOWNLOADS ACCORDEON STYLING
   ============================================================ */

/* Container */
.tk-download-sectie {
    max-width: 100%;
    margin-bottom: 50px;
}

/* De Hoofdkoppen (De Types) */
.tk-type-hoofdkop {
    font-family: 'RundText', sans-serif !important;
    font-size: 26px !important;
    font-weight: 800 !important;
    color: #140FBE !important; /* Huisstijl blauw */
    margin-bottom: 20px !important;
    margin-top: 50px !important;
}

.tk-type-hoofdkop:first-of-type {
    margin-top: 0 !important;
}

.tk-type-groep {
    border-top: 2px solid #C4D3FA; /* Lichte blauwe lijn */
}

/* Het Accordeon (De Soorten) */
/*.tk-soort-accordeon {
    border-bottom: 2px solid #C4D3FA;
}*/

.tk-soort-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    font-family: 'RundText', sans-serif !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    color: #000000 !important;
    cursor: pointer;
    list-style: none; /* Verbergt standaard HTML driehoekje */
}

/* Verberg native marker in Safari */
.tk-soort-header::-webkit-details-marker {
    display: none; 
}

/* Roteer chevron bij openklappen */
.tk-soort-accordeon[open] .tk-chevron {
    transform: rotate(180deg);
}

.tk-chevron {
    transition: transform 0.3s ease;
}

/* De Content binnen het Accordeon */
.tk-soort-content {
    padding-bottom: 20px;
}

.tk-soort-content p {
	font-size: 16px !important;
}

/* De individuele download regels */
.tk-download-rij {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}

.tk-download-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tk-download-tekst {
    font-family: 'RundText', sans-serif !important;
    font-size: 15px !important;
    color: #000000;
}

.tk-download-tekst strong {
    font-weight: 700;
}

.tk-download-beschrijving {
    font-weight: 400;
}

/* Versie en Datum (Klein en subtiel) */
.tk-download-meta {
    font-family: 'RundText', sans-serif !important;
    font-size: 12px !important;
    color: #7E7E7E; /* Grijs */
    display: flex;
    gap: 8px;
    align-items: center;
}

/* De Download Link */
.tk-download-knop a {
    font-family: 'RundText', sans-serif !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #140FBE !important;
    text-decoration: underline !important;
    transition: opacity 0.3s ease;
}

.tk-download-knop a:hover {
    opacity: 0.7;
}

/* Responsive weergave voor telefoons */
@media (max-width: 768px) {
    .tk-download-rij {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .tk-download-knop {
        align-self: flex-start;
    }
}
