/*
   Theme Name:       Als je het ons vraagt dan
   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;
}
/* ============================================================
   1. Flexbox Basis (Zet modules naast elkaar)
   ============================================================ */

/* Zet de rij op flex */
.flex-alles-rij {
    display: flex !important;
    flex-wrap: nowrap; /* Of 'wrap' voor mobiel stapelen */
}

/* Zet de kolommen en inhoud op flex (naast elkaar) */
.flex-alles-rij .et_pb_column {
    display: flex !important;
    flex-direction: row;
    align-items: center; /* Verticaal centreren */
    gap: 15px; /* Ruimte tussen modules */
}

/* Reset standaard marges van modules */
.flex-alles-rij .et_pb_module {
    margin-bottom: 0 !important;
    width: auto !important;
}

/* ============================================================
   2. Dropdown Menu Fix (Jouw code + Flex Breaker)
   ============================================================ */

/* De container van het submenu */
.flex-alles-rij .et_pb_menu .nav li ul.sub-menu {
    display: block !important;     /* CRUCIAAL: Breekt de flex, dwingt blokvorm */
    position: absolute !important; /* Zorgt dat het over de content valt */
    
    /* Jouw specifieke wensen: */
    width: auto !important;
    min-width: 180px !important;
    padding-right: 0px !important;
    border-top: 2px solid #yourcolor; /* Optioneel: vaak mooi bij Divi dropdowns */
}

/* De lijst-items (li) in het submenu */
.flex-alles-rij .et_pb_menu .nav li ul.sub-menu li {
    display: block !important; /* CRUCIAAL: Zorgt dat items ONDER elkaar komen */
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* De linkjes (a) in het submenu */
.flex-alles-rij .et_pb_menu .nav li ul.sub-menu li a {
    display: block !important;
    
    /* Jouw specifieke wensen: */
    white-space: nowrap !important; /* Voorkom afbreken woorden */
    width: 100% !important;
    padding: 8px 15px !important;   /* TIP: Ik heb dit iets ruimer gezet (was 5px 5px). 
                                       5px rondom oogt vaak erg krap. Pas aan naar wens. */
}

/* 1. Voorkom dat de Logo-kolom wordt platgedrukt */
.flex-alles-rij .et_pb_column_1_4 {
    flex-shrink: 0 !important; /* "Krimp niet!" */
    width: 25% !important; /* Dwing de 1/4 breedte af */
    min-width: 200px; /* Zorg dat hij nooit te smal wordt */
}

/* 2. Zorg dat de Afbeelding Module de ruimte pakt */
.flex-alles-rij .et_pb_image_0_tb_header {
    width: 100% !important; /* Module vult de kolom */
    display: flex;
    justify-content: flex-start; /* Logo links uitlijnen */
}

/* 3. Geef het SVG logo de gewenste breedte */
.flex-alles-rij .et_pb_image_0_tb_header img {
    width: 60% !important; /* Jouw wens */
    max-width: 250px; /* Veiligheidsgrens zodat hij niet te groot wordt */
    height: auto !important; /* Behoud verhouding */
}


/* ============================================================
   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(32px, 2.5vw + 0.5rem, 52px) !important; 
    line-height: 1.2em !important; 
}
h2, .et_pb_module h2 { 
    font-size: clamp(26px, 2vw + 0.5rem, 40px) !important; 
    line-height: 1.25em !important; 
}
h3, .et_pb_module h3 { 
    font-size: clamp(22px, 1.8vw + 0.5rem, 28px) !important; 
    line-height: 1.3em !important; 
}
h4, .et_pb_module h4 { 
    font-size: clamp(18px, 1.5vw + 0.5rem, 22px) !important; 
    line-height: 1.4em !important; 
}
p, .et_pb_module p { 
    /* De sweet spot: 1.1vw + 0.4rem. Krimpt sneller dan de vorige versie, 
       maar zachter dan de allereerste versie. */
    font-size: clamp(18px, 1.1vw + 0.4rem, 24px) !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(24px, 3vw + 1rem, 40px) !important; 
    line-height: 1.2em !important;
}
.fluid-hero-text p, .fluid-hero-text.et_pb_module p {
    font-weight: 700 !important; 
    /* Loopt parallel: 1.3vw + 0.4rem. Blijft netjes groter dan de standaard p, 
       maar krimpt op tijd om de poppetjes niet te overlappen! */
    font-size: clamp(20px, 1.3vw + 0.4rem, 28px) !important; 
    line-height: 1.5em !important;
    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: 20px !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;
}

/* 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: #AAC8F5;
    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);
}
/* 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%); }

/* 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-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;
}

/* 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%);
}

/* ============================================================
   4. GRID SYSTEM (Custom Layouts)
   ============================================================ */
/* 1. Container instellingen */
.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 {
    display: grid !important; width: 90% !important; max-width: 1679px !important; margin-left: auto !important; margin-right: auto !important;
    padding: 0 !important; gap: 25px !important;
}

/* 2. Kolom instellingen */
.grid-2-5-5 .et_pb_column, .grid-1-5-1-5 .et_pb_column, .grid-1-8-3 .et_pb_column, .grid-7-5 .et_pb_column, 
.grid-5-7 .et_pb_column, .grid-6-5-1 .et_pb_column, .grid-1-6-4-1 .et_pb_column, .grid-8-3-1 .et_pb_column, 
.grid-1-10-1 .et_pb_column, .grid-2-3-5-2 .et_pb_column, .grid-4-3-4-1 .et_pb_column, .grid-1-6-5 .et_pb_column,
.grid-1-3-3-3-2 .et_pb_column, .grid-1-9-2 .et_pb_column, .grid-1-2-2-2-2-2-1 .et_pb_column, .grid-2-8-2 .et_pb_column,
.grid-5-1-6 .et_pb_column, .grid-1-5-6 .et_pb_column {
    width: 100% !important; margin: 0 !important; margin-bottom: 0 !important; max-width: 100% !important;
}

/* Templates */
.grid-2-5-5         { grid-template-columns: 2fr 5fr 5fr !important; }
.grid-1-5-1-5       { grid-template-columns: 1fr 5fr 1fr 5fr !important; }
.grid-1-8-3         { grid-template-columns: 1fr 8fr 3fr !important; }
.grid-7-5           { grid-template-columns: 7fr 5fr !important; }
.grid-5-7           { grid-template-columns: 5fr 7fr !important; }
.grid-6-5-1         { grid-template-columns: 6fr 5fr 1fr !important; }
.grid-1-6-4-1       { grid-template-columns: 1fr 6fr 4fr 1fr !important; }
.grid-8-3-1         { grid-template-columns: 8fr 3fr 1fr !important; }
.grid-1-10-1        { grid-template-columns: 1fr 10fr 1fr !important; }
.grid-2-3-5-2       { grid-template-columns: 2fr 3fr 5fr 2fr !important; }
.grid-4-3-4-1       { grid-template-columns: 4fr 3fr 4fr 1fr !important; }
.grid-1-6-5         { grid-template-columns: 1fr 6fr 5fr !important; }
.grid-1-3-3-3-2     { grid-template-columns: 1fr 3fr 3fr 3fr 2fr !important; }
.grid-1-9-2         { grid-template-columns: 1fr 9fr 2fr !important; }
.grid-1-2-2-2-2-2-1 { grid-template-columns: 1fr 2fr 2fr 2fr 2fr 2fr 1fr !important; }
.grid-2-8-2         { grid-template-columns: 2fr 8fr 2fr !important; }
.grid-5-1-6         { grid-template-columns: 5fr 1fr 6fr !important; }
.grid-1-5-6         { grid-template-columns: 1fr 5fr 6fr !important; }

/* ============================================================
   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); } }

/* 5.4 Filmstrip Component */
.filmstrip-container {
    width: 125% !important; margin-left: -12.5% !important; overflow: hidden; padding: 20px 0 40px 0; 
    -webkit-mask-image: linear-gradient(to right, black 85%, transparent 100%); mask-image: linear-gradient(to right, black 85%, transparent 100%);
}
.filmstrip-track {
    display: flex; flex-wrap: nowrap !important; overflow-x: auto !important; gap: 0; -webkit-overflow-scrolling: touch; 
    scroll-snap-type: x mandatory; scrollbar-width: none; -ms-overflow-style: none; padding-left: 10%; padding-right: 5%;
}
.filmstrip-track::-webkit-scrollbar { display: none; }
.filmstrip-item {
    flex: 0 0 auto; width: 27vw; min-width: 300px; max-width: 543px; margin-right: 25px; scroll-snap-align: start; 
    display: flex; flex-direction: column; text-decoration: none !important; color: inherit; cursor: pointer;
}
.filmstrip-image-wrap {
    display: block; width: 100%; aspect-ratio: 16 / 9; background-size: cover; background-position: center; position: relative; border-radius: 0; overflow: hidden; margin-bottom: 0; 
}
.film-bekijk-btn {
    position: absolute; bottom: 5px; right: 5px; background-color: #BEF5F5; color: #1E643C; font-family: 'RundText', sans-serif; 
    font-weight: 400; font-size: 18px; text-transform: uppercase; padding: 2px 20px 2px 20px; border-radius: 3px; transition: all 0.3s ease;
}
.filmstrip-item:hover .film-bekijk-btn { background-color: #1E643C; color: #BEF5F5; }
.film-text-content { background-color: rgba(180, 230, 150, 0.5); padding: 10px 10px 30px 20px; width: 100%; box-sizing: border-box; }
.film-title {
    font-family: 'RundText', sans-serif !important; font-weight: 700 !important; font-size: 28px !important; line-height: 1.2em !important; color: #A63828 !important; margin-bottom: 10px !important; display: block;
}
.film-excerpt, .film-excerpt p {
    font-family: 'RundText', sans-serif !important; font-weight: 400 !important; font-size: 20px !important; line-height: 1.4em !important; color: #000000 !important; margin-bottom: 15px !important;
}
.film-meta-data { display: flex; flex-direction: column; gap: 5px; }
.meta-row { font-family: 'RundText', sans-serif !important; font-size: 20px !important; line-height: 1.4em !important; }
.meta-label { color: #A63828; font-weight: 700; margin-right: 8px; }
.meta-value { color: #000000; font-weight: 400; }
.filmstrip-spacer { flex: 0 0 1px; }

/* ============================================================
   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: 18px !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: 700 !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. FAQ ACCORDION (Divi Engine Layout)
   ============================================================ */
/* 1. Container Reset */
.faq-engine-loop .grid-posts.loop-grid { display: flex !important; flex-direction: column !important; gap: 0 !important; }
.faq-engine-loop .dmach-grid-item { margin: 0 !important; padding: 0 !important; width: 100% !important; border: none !important; }

/* 2. Toggle Item */
.faq-engine-loop .et_pb_toggle {
    background-color: transparent !important; border: none !important; border-radius: 0 !important;
    border-bottom: 2px solid #B4E696 !important; padding: 15px 0 !important; margin-bottom: 0 !important;
}
.faq-engine-loop .et_pb_toggle_open, .faq-engine-loop .et_pb_toggle_close { background: transparent !important; }

/* 3. Titel & Icon */
.faq-engine-loop .et_pb_toggle_title {
    font-family: 'RundText', sans-serif !important; font-weight: 400 !important; font-size: 22px !important;
    line-height: 1.4em !important; color: #000000 !important; cursor: pointer; position: relative;
    padding-right: 50px !important; padding-left: 0 !important; padding-top: 0 !important; padding-bottom: 0 !important;
}
.faq-engine-loop .et_pb_toggle_title::before {
    content: "\33" !important; font-family: 'ETmodules' !important; font-weight: 400 !important; font-size: 28px !important;
    position: absolute; right: 0 !important; left: auto !important; top: 0 !important; color: #000000 !important; line-height: 1em !important; transition: transform 0.3s ease;
}
.faq-engine-loop .et_pb_toggle_open .et_pb_toggle_title::before { transform: rotate(45deg) !important; }

/* 4. Content */
.faq-engine-loop .et_pb_toggle_content {
    font-family: 'RundText', sans-serif !important; font-weight: 400 !important; font-size: 20px !important;
    line-height: 1.6em !important; color: #000000 !important; padding-top: 10px !important; padding-bottom: 5px !important;
    padding-left: 0 !important; padding-right: 0 !important; border: none !important;
}
.faq-engine-loop .et_pb_toggle_content p { padding-bottom: 0 !important; margin-bottom: 10px !important; }
.faq-engine-loop .et_pb_toggle_content p:last-child { margin-bottom: 0 !important; }

/* ============================================================
   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; }
    
    /* FAQ */
    .faq-engine-loop .et_pb_toggle_title { padding-right: 40px !important; font-size: 18px !important; }
}

/* ============================================================
   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;
}

/* 5. De tekstcontainer onder de afbeelding */
.film-text-content {
    flex-grow: 1 !important; /* Neemt alle resterende verticale ruimte in */
    display: flex !important;
    flex-direction: column !important;
    background-color: #d8efd1; /* Jouw lichtgroene achtergrondkleur van de screenshot */
}

/* 6. Zorg dat de titel en excerpt binnenin de ruimte vullen */
.filmstrip-info {
    flex-grow: 1 !important;
    display: flex !important;
    flex-direction: column !important;
}