/* =========================================================
   MA TABLET CSS
   Wordt via functions.php alleen geladen van 768px t/m 1024px
   (media="(min-width: 768px) and (max-width: 1024px)"),
   gelijk aan de Elementor-breakpoints (mobiel ≤767, tablet ≤1024).
   Bevat uitsluitend tabletcorrecties; desktop (≥1025) en
   mobiel (≤767) laden dit bestand niet.
   Toegevoegd 16 nov 2026 (staging).
   ========================================================= */

@media (min-width: 768px) and (max-width: 1024px) {

    /* -----------------------------------------------------
       HORIZONTALE OVERFLOW
       Sliders (projecten/nieuws), reveal-animaties en de
       header-ticker staken rechts uit (MBO-home 768 → 851 px).
       clip (geen scrollcontainer) zodat sticky/fixed blijven werken.
       ----------------------------------------------------- */

    html,
    body {
        overflow-x: clip;
    }


    /* -----------------------------------------------------
       RICHTINGSKAARTEN (MBO-home, .ma-course-card)
       Grid 2 kolommen met 150 px kolomafstand liet op 768 px
       maar 260 px per kaart over: titels liepen uit het vlak en
       de foto (translate −50 px) raakte de schermrand.
       ----------------------------------------------------- */

    .e-con.e-grid:has(> .ma-course-card) {
        column-gap: calc(48px + (100vw - 768px) * 0.398) !important; /* 48 px (768) → 150 px (1024) */
    }

    .ma-course-image-wrap {
        transform: translate(-24px, 50px) !important;
    }

    .ma-course-panel .elementor-heading-title {
        font-size: clamp(28px, 3.75vw, 41px) !important;
    }


    /* -----------------------------------------------------
       EVENTKAARTEN (.ma-event-card, MBO + VMBO agenda,
       Open Dagen en eventlijsten)
       Elementor-flexcontainer: foto 30 %, tekstvlak de rest;
       rechts 76 px vrij voor de pijl. Titel schaalt mee
       (30 px op 768, 40 px op 1024). Datumbalk: widgets
       mogen niet krimpen (overlapten), kleinere tussenruimte.
       ----------------------------------------------------- */

    .ma-event-card__image {
        flex: 0 0 30% !important;
        width: 30% !important;
        max-width: 30% !important;
    }

    .ma-event-card__content {
        flex: 1 1 0 !important;
        width: auto !important;
        min-width: 0 !important;
        padding: 48px 76px 32px 32px !important;
    }

    .ma-event-card__title .elementor-heading-title {
        font-size: clamp(28px, 3.9vw, 40px) !important;
        hyphens: auto;
        -webkit-hyphens: auto;
        hyphenate-limit-chars: 10 4 4;
    }

    .ma-event-card__date {
        left: calc(30% - 40px) !important;
        width: auto !important;
        max-width: calc(70% + 20px) !important;
        padding: 12px 16px !important;
    }

    .ma-event-card__date > .e-con,
    .ma-event-card__date > .e-con > .e-con-inner {
        gap: 8px !important;
        flex-wrap: nowrap !important;
    }

    .ma-event-card__date .elementor-element {
        flex-shrink: 0;
    }

    .ma-event-card__date .elementor-widget-container {
        font-size: 20px;
    }


    /* -----------------------------------------------------
       GROTE KOPPEN ZONDER TABLETWAARDE
       Desktopmaat (tot 157 px) gold ook op tablet; woorden
       liepen buiten hun kolom of onder foto's. Per kop een
       vloeiende maat tussen de gemeten passende maat op 768 en
       1024 px (−5 % marge), nooit groter dan desktop.
       ----------------------------------------------------- */

    /* MBO-home 'Welke kant wil je op?': past bij 103px (768) / 125px (1024); desktop 140px */
    .elementor-element-0890a6a .elementor-heading-title { font-size: clamp(97px, calc(34.0px + 8.203vw), 118px) !important; }

    /* MBO-home 'MA Update!': past bij 94px (768) / 131px (1024); desktop 157px */
    .elementor-element-5045a3f .elementor-heading-title { font-size: clamp(89px, calc(-16.0px + 13.672vw), 124px) !important; }

    /* MBO-home 'Projecten': past bij 61px (768) / 85px (1024); desktop 100px */
    .elementor-element-aac41c8 .elementor-heading-title { font-size: clamp(57px, calc(-12.0px + 8.984vw), 80px) !important; }

    /* MBO-home 'Echte opdrachtgevers': past bij 38px (768) / 48px (1024); desktop 48px */
    .elementor-element-aa190a0 .elementor-heading-title { font-size: clamp(36px, calc(0.0px + 4.688vw), 48px) !important; }

    /* MBO-home eventkaart (listing 5557): past bij 29px (768) / 40px (1024); desktop 50px */
    .elementor-element-20b7028 .elementor-heading-title { font-size: clamp(27px, calc(-6.0px + 4.297vw), 38px) !important; }

    /* MBO-home projectkaart (listing 5599): past bij 20px (768) / 29px (1024); desktop 32px */
    .elementor-element-a9e805d .elementor-heading-title { font-size: clamp(22px, 2.9vw, 29px) !important; }

    /* MBO-home nieuwskaart (listing 5715): past bij 30px (768) / 36px (1024); desktop 36px */
    .elementor-element-0742cf1 .elementor-heading-title { font-size: clamp(28px, calc(4.0px + 3.125vw), 36px) !important; }

    /* Smalle sliderkaarten (projecten, nieuws): lange woorden
       (Mediawijsheid, Ondernemersloket, Mediacollege) mogen afbreken. */
    .elementor-element-a9e805d .elementor-heading-title,
    .elementor-element-0742cf1 .elementor-heading-title {
        hyphens: auto;
        -webkit-hyphens: auto;
        hyphenate-limit-chars: 8 4 4;
    }

    /* MBO opleidingskaart (loop 238): past bij 33px (768) / 36px (1024); desktop 36px */
    .elementor-element-3c3f132 .elementor-heading-title { font-size: clamp(31px, calc(16.0px + 1.953vw), 36px) !important; }

    /* MBO Toelatingsprocedure 'Aanmelden: volg deze stappen': past bij 58px (768) / 65px (1024); desktop 65px */
    .elementor-element-7a93f59 .elementor-heading-title { font-size: clamp(55px, calc(25.0px + 3.906vw), 65px) !important; }

    /* MBO Toelatingsprocedure 'Nog twee punten': past bij 48px (768) / 60px (1024); desktop 60px */
    .elementor-element-4d620e7 .elementor-heading-title { font-size: clamp(45px, calc(0.0px + 5.859vw), 60px) !important; }

    /* MBO Organisatie 'Next Level Onderwijsvisie': past bij 31px (768) / 44px (1024); desktop 65px */
    .elementor-element-ef6e60a .elementor-heading-title { font-size: clamp(29px, calc(-7.0px + 4.688vw), 41px) !important; }

    /* MBO Vragen 'Niet gevonden wat je zocht?': past bij 57px (768) / 65px (1024); desktop 65px */
    .elementor-element-e65926f .elementor-heading-title { font-size: clamp(54px, calc(21.0px + 4.297vw), 65px) !important; }

    /* VMBO-home 'Begeleiding': past bij 53px (768) / 65px (1024); desktop 65px */
    .elementor-element-b08c997 .elementor-heading-title { font-size: clamp(50px, calc(5.0px + 5.859vw), 65px) !important; }

    /* VMBO-home eventkaart (listing 5204): past bij 34px (768) / 48px (1024); desktop 50px */
    .elementor-element-897573a .elementor-heading-title { font-size: clamp(32px, calc(-7.0px + 5.078vw), 45px) !important; }

    /* Aanvulling 16 nov 2026 (19:3x): pagina's buiten de eerste tabletronde
       (Dit is MA, Ervaar MA, Decanen, Partners, VMBO Vragen, hoofdsite). */

    /* MBO Dit is MA 'Starting today.': past bij 59px (768) / 80px (1024); desktop 100px */
    .elementor-element-34fb366 .elementor-heading-title { font-size: clamp(56px, calc(-3.8px + 7.793vw), 76px) !important; }

    /* MBO Dit is MA 'Altijd wat te doen.': past bij 56px (768) / 75px (1024); desktop 85px */
    .elementor-element-3bd3cc5 .elementor-heading-title { font-size: clamp(53px, calc(-1.0px + 7.051vw), 71px) !important; }

    /* MBO Ervaar MA kaart 'Proefstudeerdagen': past bij 22px (768), 30px vanaf 1024 */
    .elementor-element-271b466 .elementor-heading-title { font-size: clamp(20px, calc(-6.4px + 3.555vw), 30px) !important; }

    /* MBO Ervaar MA kaart 'Studiekeuzegesprek': past bij 23px (768), 30px vanaf 1024 */
    .elementor-element-cdacb57 .elementor-heading-title { font-size: clamp(21px, calc(-2.6px + 3.184vw), 30px) !important; }

    /* MBO Decanen 'Ben je decaan, loopbaancoach …': past bij 26px (768) / 36px (1024); desktop 45px */
    .elementor-element-217f4f5 .elementor-heading-title { font-size: clamp(24px, calc(-3.8px + 3.711vw), 34px) !important; }

    /* MBO Decanen 'Maak een afspraak': past bij 55px (768), 65px vanaf 1024 */
    .elementor-element-fd60a85 .elementor-heading-title { font-size: clamp(52px, calc(14.0px + 4.980vw), 65px) !important; }

    /* MBO Partners 'BPV-bureau': past bij 76px (768), 90px vanaf 1024 */
    .elementor-element-5cad117 .elementor-heading-title { font-size: clamp(72px, calc(18.8px + 6.953vw), 90px) !important; }

    /* VMBO Vragen 'Niet gevonden wat je zocht?': past bij 57px (768), 65px vanaf 1024 */
    .elementor-element-56abc0a .elementor-heading-title { font-size: clamp(54px, calc(21.6px + 4.238vw), 65px) !important; }

    /* Hoofdsite 'Waar wil je naartoe?' (zelfde element-ID als MBO-hero, die heeft .ma-heading-balance en blijft ongemoeid): past bij 52px (768), 54px (800), 55px vanaf 900 */
    .elementor-element-a4a4b20:not(.ma-heading-balance) .elementor-heading-title { font-size: clamp(49px, calc(16.8px + 4.242vw), 55px) !important; }
}
