:root {
    --bhv-blauw: #223870;
    --bhv-groen: #077a41;
    --bhv-oranje: #f1873e;
    --bhv-lgroen: #d6ded4;
    --bhv-wit: #ffffff;
}

.wp-block-media-text .wp-block-heading {
    will-change: transform, opacity;
}

/* Prevent layout shift */
.wp-block-media-text .wp-block-heading span {
    will-change: transform;
}

body {
    font-family: "Montserrat", Arial, Helvetica, sans-serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
    font-size: 1rem;
    color: var(--bhv-blauw);
    overflow-x: hidden;
}

a {
    color: var(--bhv-blauw);
}

a:visited {
    color: var(--bhv-blauw);
}

a:hover,
a:focus,
a:active {
    color: var(--bhv-oranje);
}


.top-head {
    background: var(--bhv-blauw);
    color: var(--bhv-wit);
}

.top-head .reviews .stars svg {
    fill: var(--bhv-oranje);
    width: 15px;
}

.top-head .reviews .stars {
    display: flex
}


.top-head .phone svg {
    fill: var(--bhv-wit);
    width: 18px;
    position: relative;
    top: 3px;
    margin-right: 2px;
}

#primary-menu {
    gap: 20px;
    display: flex;
    align-items: center;
}

#primary-menu li:first-child a svg {
    position: relative;
    top: -4px;
}

#primary-menu li a {
    color: var(--bhv-blauw);
}

#primary-menu li a:hover {
    color: var(--bhv-oranje);
}

#primary-menu.menu li#menu-item-33 a {
    background: var(--bhv-oranje);
    color: var(--bhv-wit);
    padding: 10px 20px;
    border-radius: 5px;
}



#primary-menu.menu li#menu-item-33 a:hover {
    background: var(--bhv-groen);
    color: var(--bhv-wit);
}

a.text-decoration-none {
    text-decoration: none;
}

.site-info {
    background: var(--bhv-blauw);
    color: var(--bhv-wit);
    line-height: 2rem;
}

.site-info a {
    color: var(--bhv-wit);
    text-decoration: none;
}

.site-info a:hover {
    text-decoration: underline;
}

.wp-google-badge-btn.foot {
    color: var(--bhv-blauw);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    text-decoration: none;
}

.wp-google-stars {
    position: relative;
    top: 2px;
    left: 2px;
}

.wp-google-badge a {
    text-decoration: none;
}

.wp-google-badge-btn svg.google {
    width: 30px;
    margin-right: 4px;
}

.wp-google-badge-score {
    display: inline-block;
    margin: 0 0 0 4px !important;
    vertical-align: middle !important;
}

a.wp-block-button__link:visited {
    color: #fff;
}

body p {
    margin-top: 0;
}

body .page,
body .post {
    margin: 0;
}

body p strong,
.has-large-font-size,
.wp-block-button a.wp-block-button__link,
.has-medium-font-size {
    font-weight: 700;
}

h1,
h2,
h3,
h4 {
    font-weight: 700;
    margin-bottom: 0.6em;
    margin-top: 0;
}

h1,
.h1 {
    font-size: clamp(2.1rem, 5vw + 1.5rem, 2.875rem);
    /* Min ~34px, Max 70px, tussenwaarden schaalbaar */
    line-height: 1.1;
}

h2,
.h2,
.has-large-font-size {
    font-size: clamp(1.5rem, 3vw + 1rem, 2.125rem);
    /* Min ~24px, Max 34px */
    line-height: 1.2;
}

h3,
.h3,
h4,
.h4 {
    font-size: clamp(1.1rem, 2vw + 0.5rem, 1.375rem);
    /* Min ~17px, Max 22px */
    line-height: 1.3;
}

.has-x-large-font-size {
    font-size: clamp(2rem, 6vw, 4.5rem) !important;
}

.has-medium-font-size {
    font-size: clamp(1.1rem, 2vw + 0.5rem, 1.375rem) !important;
}

/* PART 1 - Before Lazy Load */
img[data-lazyloaded] {
    opacity: 0;
}

/* PART 2 - Upon Lazy Load */
img.litespeed-loaded {
    -webkit-transition: opacity .5s linear 0.2s;
    -moz-transition: opacity .5s linear 0.2s;
    transition: opacity .5s linear 0.2s;
    opacity: 1;
}

a.cta,
.wp-block-button__link,
.card,
#primary-menu li a {
    -webkit-transition: all 0.2s ease-in-out;
    -moz-transition: all 0.2s ease-in-out;
    -o-transition: all 0.2s ease-in-out;
    transition: all 0.2s ease-in-out;
}

/* .wp-block-cover .wp-block-cover__inner-container {
    max-width: 1120px;
} */



/* standaard wordpress margin bottom */
:where(.wp-block-columns) {
    margin-bottom: 0;
}

figure {
    margin: 0;
}

.has-bhv-blauw-background-color {
    background-color: var(--bhv-blauw);
}

.has-bhv-groen-background-color {
    background-color: var(--bhv-groen);
}

.has-bhv-oranje-background-color {
    background-color: var(--bhv-oranje);
}

.has-bhv-lgroen-background-color {
    background-color: var(--bhv-lgroen);
}

.has-bhv-wit-background-color {
    background-color: var(--bhv-wit);
}

.has-bhv-wit-color {
    color: var(--bhv-wit);
}

.has-bhv-blauw-color {
    color: var(--bhv-blauw);
}

.has-bhv-groen-color {
    color: var(--bhv-groen);
}

.has-bhv-oranje-color {
    color: var(--bhv-oranje);
}

.has-bhv-lgroen-color {
    color: var(--bhv-lgroen);
}

.border-radius-12 {
    border-radius: 12px;
}



figure.wp-block-media-text__media img,
figure.wp-block-image img {
    border-radius: 8px;
    /* box-shadow: 0 0 10px rgba(41, 36, 92, 0.44); */
}

.wp-block-group__inner-container {
    max-width: 1330px;
    margin: 0 auto;
    padding: 0 15px;
}

.wp-block-cover__inner-container .wp-block-group__inner-container {
    padding: 0;
}

.has-ek-goud-color {
    color: var(--ek-goud);
}

.has-ek-wit-color {
    color: var(--ek-wit);
}



a.wp-block-button__link.has-bhv-oranje-color {
    color: var(--bhv-oranje);
}

a.wp-block-button__link.has-bhv-wit-background-color {
    background-color: var(--bhv-wit);
}

/* 
.wp-block-button a.wp-block-button__link.has-ek-goud-color::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23C2AB61' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E");
} */

.profiel img {
    border-radius: 200px !important;
    /* box-shadow: none !important; */
    background: var(--ek-goud);
    margin-bottom: 1rem;
}

.wp-block-button a.wp-block-button__link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
    padding: 0.4rem 1.225rem;
    border-radius: 5px;
}

.wp-block-button a.wp-block-button__link.has-bhv-oranje-background-color {
    background-color: var(--bhv-oranje);
    color: #fff;
    border: 2px solid var(--bhv-oranje);
}

.wp-block-button a.wp-block-button__link.has-bhv-blauw-background-color {
    border: 2px solid var(--bhv-blauw);
}


.wp-block-button a.wp-block-button__link.has-bhv-oranje-background-color:hover {
    background-color: var(--bhv-blauw);
}

.wp-block-buttons.is-layout-flex.wp-block-buttons-is-layout-flex {
    gap: 1rem;
}

/* .wp-block-button a.wp-block-button__link::before {
    content: "";
    width: 24px;
    height: 24px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
    transition: transform 0.2s ease-in-out;
} */

.wp-block-button a.wp-block-button__link:hover {
    transform: scale(1.05);
}

.wp-block-button__link.has-bhv-blauw-background-color:hover {
    background: var(--bhv-oranje);
    color: var(--bhv-wit);
}

.wp-block-button a.wp-block-button__link:hover::before {
    transform: rotate(-25deg);
}

ul.wp-block-list.check-list,
ul.wp-block-list.cross-list {
    list-style: none;
    padding-left: 30px;
    margin: 0 0 1.5rem;
}

ol.wp-block-list {
    padding-left: 24px;
    margin: 0 0 1.5rem;
}

ul.wp-block-list.check-list li,
ul.wp-block-list.cross-list li {
    list-style: none;
    position: relative;
}

ul.wp-block-list.check-list li::before,
ul.wp-block-list.cross-list li::before {
    content: '';
    position: absolute;
    left: -32px;
    /* Plaatst checkbox links buiten de tekst */
    top: 0;
    width: 24px;
    height: 24px;
    background-image: url('data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23087941%22%20stroke-width%3D%223%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20class%3D%22lucide%20lucide-check-icon%20lucide-check%22%3E%3Cpath%20d%3D%22M20%206%209%2017l-5-5%22/%3E%3C/svg%3E');
    background-repeat: no-repeat;
    background-size: contain;
}

ul.wp-block-list.cross-list li::before {
    background-image: url('data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23087941%22%20stroke-width%3D%223%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20class%3D%22lucide%20lucide-x-icon%20lucide-x%22%3E%3Cpath%20d%3D%22M18%206%206%2018%22/%3E%3Cpath%20d%3D%22m6%206%2012%2012%22/%3E%3C/svg%3E');

}

.extra-top {
    position: relative;
    top: 30px;
}

.faq-custom .wp-block-group__inner-container {
    max-width: none;
    margin: 0;
    padding: 0;
}

.faq-custom .wp-block-details {
    padding: 1rem 1rem 1rem 1rem;
    border-radius: 6px;
    background: #fff;
    /* width: calc(100% - 15%); */
    width: 100%;
    margin: 0 auto 1rem;
    z-index: 1;
    position: relative;
}

.faq-custom .wp-block-details p {
    margin-bottom: 0;
    margin-top: 1rem;
}

.faq-custom .wp-block-details summary::marker {
    color: var(--ek-donkerblauw);
}

/* Basis styling voor summary */
.wp-block-details summary {
    position: relative;
    padding-right: 2.5em;
    /* ruimte voor het icoon */
    cursor: pointer;
    list-style: none;
}

/* Verberg de standaard marker in Safari & Chrome */
.wp-block-details summary::-webkit-details-marker {
    display: none;
}

/* Verberg standaard marker */
.wp-block-details summary::-webkit-details-marker {
    display: none;
}

.wp-block-details summary {
    position: relative;
    padding-right: 2.5em;
    cursor: pointer;
    color: var(--bhv-blauw);
    font-weight: 500;
    font-size: 1.15rem;
}

/* Voeg SVG-chevron toe als background */
.wp-block-details summary::before {
    content: "";
    position: absolute;
    right: 0;
    top: 40%;
    transform: translateY(-40%) rotate(0deg);
    width: 30px;
    height: 30px;
    background-color: var(--bhv-blauw);
    border-radius: 8px;
    display: inline-block;
    transition: transform 0.3s ease;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white' stroke-width='1.5'><path stroke-linecap='round' stroke-linejoin='round' d='M19.5 8.25L12 15.75 4.5 8.25'/></svg>");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 24px 24px;
}

/* Draai de chevron als details open is */
.wp-block-details[open] summary::before {
    transform: translateY(-50%) rotate(180deg);
}

.wp-block-details p {
    opacity: 0;
    color: var(--ek-donkerblauw);
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.wp-block-details[open] p {
    opacity: 1;
    transform: translateY(0);
}


ul.wp-block-list li::marker,
ol.wp-block-list li::marker {
    color: var(--bhv-oranje);
    font-weight: 700;
}

details.wp-block-details ul.wp-block-list {
    margin-top: 1rem;
}

ul.wp-block-list {
    padding: 0;
    margin-left: 18px;
}

ol.wp-block-list li,
ul.wp-block-list li {
    margin-bottom: 10px;
}

ol.wp-block-list li:last-child,
ul.wp-block-list li:last-child {
    margin-bottom: 0;
}


@media (max-width: 767.98px) {

    .wp-block-media-text.has-media-on-the-right .wp-block-media-text__content,
    .wp-block-media-text .wp-block-media-text__content {
        padding-left: 0;
        padding-right: 0;
    }


    .wp-block-media-text.is-stacked-on-mobile figure.wp-block-media-text__media {
        margin-bottom: 1.5rem;
    }
}

@media (min-width: 768px) {

    .wp-block-media-text.has-media-on-the-right .wp-block-media-text__content {
        padding-left: 0;
        padding-right: 15%;
    }

    .wp-block-media-text .wp-block-media-text__content {
        padding-left: 10%;
        padding-right: 5%;
    }

    .course-card.xl h3 {
        font-size: 2.45rem;
        color: #fff;
    }

    .course-card.xl .course-card__location span.course-card__location-value {
        font-size: 1.825rem;
    }

    .course-card.xl .course-card__price-value {
        font-size: 3rem;
    }

    .course-card.xl .course-card__content {
        padding: 2.25rem;
    }
}

@media (max-width: 575.98px) {
    br {
        display: none;
    }

    .wp-block-button a.wp-block-button__link {
        font-size: 0.825rem;
    }

    mark.has-inline-color {
        display: block;
    }

    .wp-block-details mark.has-inline-color {
        display: inline-block;
    }

    .wp-block-spacer {
        max-height: 20px;
    }
}

@media(min-width: 692px) {
    .border-right {
        border-right: 1px solid #fff;
    }
}


.entry-content .wp-block-columns {
    /* max-width: 960px; */
    margin-left: auto;
    margin-right: auto;
    /* overflow-x: hidden; */
}

figure.wp-block-gallery.has-nested-images.logos figure {
    margin: 0 !important;
    background: #fff;
    /* height: 200px; */
    padding: 30px;
}

figure.wp-block-gallery.has-nested-images.logos figure img {
    box-shadow: none;
    background: none;
    max-height: 100px;
    object-fit: contain;
    max-width: clamp(100px, 100%, 180px) !important;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}

/* Stel maximale breedte in voor niet-uitgelijnde blokken
.wp-block:not([data-align="wide"]):not([data-align="full"]) {
    max-width: var(--wp--style--global--content-size, 800px);
    margin-left: auto !important;
    margin-right: auto !important;
} */

/* Optioneel: Breedte voor alignwide aanpassen */
/*.wp-block[data-align="wide"] {
    max-width: var(--wp--style--wide-size, 1200px);
}*/


/* 
.entry-content .alignwide {
    margin-left: -80px;
    margin-right: -80px;
} */

.entry-content .alignfull {
    margin-left: calc(-100vw / 2 + 100% / 2);
    margin-right: calc(-100vw / 2 + 100% / 2);
    max-width: 100vw;
}


/* .alignfull img {
    width: 100vw;
} */


a.cta {
    background: var(--bhv-oranje);
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 280px;
}

a.cta svg {
    width: 26px;
}

.google-reviews-wrapper {
    max-width: 100%;
    margin: 0 0 2.5rem;
}

.reviews-header {
    margin-bottom: 2rem;
}

.reviews-header h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.rating-summary {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.rating-stars {
    font-size: 1.5rem;
    color: #f4b400;
}

.rating-number {
    font-weight: bold;
    font-size: 1.2rem;
}


/* Carousel styling */
.carousel {
    margin: 0rem auto 1rem;
    display: flex;
    gap: 2rem;
    width: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 2rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, .08) #fff;
}

svg.review-star {
    width: 20px;
    height: 20px;
    margin-right: 2px;
    fill: var(--bhv-oranje);
}

.carousel::-webkit-scrollbar {
    height: 8px;
}

.rounded-bhv {
    border-radius: 8px;
}

#gform_fields_2,
#gform_fields_1 {
    gap: 20px 40px;
}

#gform_fields_1 .datepicker {
    width: 100%;
}

#gform_fields_2 .gform-footer.gform_footer.top_label input#gform_submit_button_2 #gform_fields_1 .gform-footer.gform_footer.top_label input#gform_submit_button_1 {
    background: var(--bhv-oranje) !important;
}

#gform_submit_button_1,
#gform_submit_button_2 {
    border: none !important;
    padding: 14px 20px !important;
    border-radius: 5px !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    width: 180px;
}

#gform_fields_2 label.gfield_label,
#gform_fields_1 label.gfield_label {
    color: #fff;
}

#gform_2 {
    background: var(--bhv-groen);
    padding: 20px;
    border-radius: 8px;
}

#gform_fields_2 span.gfield_required,
#gform_fields_1 span.gfield_required {
    color: var(--bhv-oranje);
}

#gform_fields_1 .gfield input,
#gform_fields_2 .gfield input,
#gform_fields_2 .gfield textarea {
    border-radius: 5px;
    border: 1px solid #fff;
}

#gform_fields_1 .gfield input[type="text"],
#gform_fields_1 .gfield input[type="email"],
#gform_fields_1 .gfield textarea {}

.carousel::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 10px;
}

.carousel::-webkit-scrollbar-thumb {
    background: #D0B181;
    border-radius: 10px;
}

.carousel::-webkit-scrollbar-thumb:hover {
    background: #b89a6b;
}

.card {
    flex: 0 0 25.2rem;
    scroll-snap-align: start;
    min-height: 15rem;
    background-color: #D6DED4;
    padding: 1.5rem;
    border-radius: 0.5rem;
    display: flex;
    flex-direction: column;
    /* gap: 0.75rem; */
    /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); */
    transition: transform 0.2s ease;
}

.card:hover {
    transform: translateY(4px);
    /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); */
}

/* Review rating sterren in card */
.review-rating {
    font-size: 1.2rem;
    color: #f4b400;
    margin-bottom: 0.5rem;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.author-photo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.review-author strong {
    color: var(--bhv-blauw);
    font-size: 1rem;
}

.review-text {
    /* flex-grow: 1; */
    color: var(--bhv-blauw);
    font-size: 0.95rem;
    line-height: 1.5;
    /* overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical; */
}

.review-time {
    font-size: 0.85rem;
    color: #999;
    margin-top: auto;
}

/* .google-attribution {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
}

.google-attribution a {
    color: #676D6D;
    text-decoration: none;
    font-size: 0.9rem;
} */

.google-attribution a:hover {
    color: #005055;
    text-decoration: underline;
}

/* Responsive aanpassingen */
@media (max-width: 768px) {
    .card {
        flex: 0 0 16rem;
        min-height: 18rem;
    }
}

@media (max-width: 480px) {
    .card {
        flex: 0 0 85vw;
    }

    .carousel {
        gap: 0.75rem;
    }
}

/* Responsive menu */

/* Hoofdmenu styling */
#primary-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 0;
}

/* Menu items styling */
#primary-menu>li {
    position: relative;
    margin: 0;
}

#primary-menu>li>a {
    display: block;
    padding: 10px 20px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 8px;
}

/* Hover effect voor hoofdmenu items */
#primary-menu>li>a:hover {
    background-color: #f5f5f5;
    color: var(--bhv-oranje);
}

/* Active/current menu item */
#primary-menu .current-menu-item>a,
#primary-menu .current_page_item>a {
    color: var(--bhv-oranje);
}

/* SVG icons in menu */
#primary-menu a svg {
    vertical-align: middle;
    margin-left: 3px;
}

/* ===== SUBMENU STYLING ===== */

.sub-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 220px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    list-style: none;
    margin: 0;
    padding: 8px 0;
    z-index: 9999;

    /* Smooth fade + slide */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-15px);
    transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
        visibility 0.35s;
}


.menu-item-has-children:hover>.sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition-delay: 0.1s;
}

/* Stagger effect voor submenu items */
.sub-menu li {
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.menu-item-has-children:hover>.sub-menu li:nth-child(1) {
    transition-delay: 0.05s;
    opacity: 1;
    transform: translateX(0);
}

.menu-item-has-children:hover>.sub-menu li:nth-child(2) {
    transition-delay: 0.1s;
    opacity: 1;
    transform: translateX(0);
}

.menu-item-has-children:hover>.sub-menu li:nth-child(3) {
    transition-delay: 0.15s;
    opacity: 1;
    transform: translateX(0);
}

.menu-item-has-children:hover>.sub-menu li:nth-child(4) {
    transition-delay: 0.2s;
    opacity: 1;
    transform: translateX(0);
}

.menu-item-has-children:hover>.sub-menu li:nth-child(5) {
    transition-delay: 0.25s;
    opacity: 1;
    transform: translateX(0);
}


/* Submenu items */
.sub-menu li {
    margin: 0;
    padding: 0;
}

.sub-menu li a {
    display: block;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

/* Hover effect voor submenu items */
.sub-menu li a:hover {
    background-color: #f8f9fa;
    border-left-color: #087941;
    color: #087941;
    padding-left: 24px;
}

/* Pijltje indicator voor parent items met submenu */
.menu-item-has-children>a::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 8px;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    vertical-align: middle;
    transition: transform 0.3s ease;
}

/* Draai pijltje bij hover */
.menu-item-has-children:hover>a::after {
    transform: rotate(180deg);
}


/* ===== RESPONSIVE STYLING ===== */

@media screen and (max-width: 768px) {
    #primary-menu {
        flex-direction: column;
        width: 100%;
    }

    #primary-menu>li {
        width: 100%;
    }

    .sub-menu {
        position: static;
        box-shadow: none;
        border-radius: 0;
        border-left: 3px solid #087941;
        margin-left: 20px;
        max-height: 0;
        overflow: hidden;
        opacity: 1;
        visibility: visible;
        transform: none;
        transition: max-height 0.4s ease, padding 0.4s ease;
    }

    .menu-item-has-children:hover>.sub-menu,
    .menu-item-has-children.toggled-on>.sub-menu {
        max-height: 500px;
        padding: 8px 0;
    }
}

/* ===================================
   MOBILE MENU STYLING
   =================================== */

/* Hamburger button - alleen zichtbaar op mobiel */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 999;
    flex-direction: column;
    gap: 5px;
}

.hamburger-line {
    width: 28px;
    height: 3px;
    background-color: #223870;
    border-radius: 3px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hamburger animatie naar X */
.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile menu overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 400px;
    height: 100dvh;
    background: var(--bhv-blauw);
    z-index: 1000;
    overflow-y: auto;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
}

.mobile-menu-overlay.active {
    right: 0;
}

/* Mobile menu header */
.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-logo img {
    border: 5px solid #fff;
    border-radius: 4px;
}

.mobile-menu-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.mobile-menu-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* Mobile navigation styling */
.mobile-navigation {
    padding: 20px 0;
}

#mobile-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

#mobile-menu>li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#mobile-menu>li>a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    transition: all 0.3s ease;
}

#mobile-menu>li>a:hover {
    background: rgba(255, 255, 255, 0.1);
    padding-left: 30px;
}

/* SVG icons in mobile menu */
#mobile-menu a svg {
    width: 18px;
    height: 18px;
    margin-left: 8px;
}

/* Mobile submenu styling */
#mobile-menu .sub-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2);
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        padding 0.4s ease;
}

#mobile-menu .menu-item-has-children.active>.sub-menu {
    max-height: 500px;
    padding: 10px 0;
}

#mobile-menu .sub-menu li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

#mobile-menu .sub-menu a {
    display: block;
    padding: 12px 20px 12px 40px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
}

#mobile-menu .sub-menu a:hover {
    background: rgba(255, 255, 255, 0.1);
    padding-left: 50px;
    color: #fff;
}

/* Chevron icon voor submenu items */
#mobile-menu .menu-item-has-children>a::after {
    content: '';
    width: 8px;
    height: 8px;
    transition: transform 0.3s ease;
    margin-left: auto;
}

#mobile-menu .menu-item-has-children.active>a::after {
    transform: rotate(-90deg);
}

/* Current menu item highlight */
#mobile-menu .current-menu-item>a,
#mobile-menu .current_page_item>a {
    background: rgba(255, 255, 255, 0.15);
    border-left: 4px solid #f1873e;
    font-weight: 600;
}

/* Mobile menu footer */
.mobile-menu-footer {
    padding: 20px;
    margin-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-contact-info h3 {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mobile-contact-info p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
}

.mobile-contact-info svg {
    flex-shrink: 0;
}

.mobile-contact-info a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.mobile-contact-info a:hover {
    color: #f1873e;
}

/* Backdrop overlay */
.mobile-menu-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(2px);
}

.mobile-menu-backdrop.active {
    opacity: 1;
    visibility: visible;
}

/* Desktop nav wrapper - verberg op mobiel */
.desktop-nav-wrapper {
    display: block;
}

/* ===================================
   RESPONSIVE BREAKPOINTS
   =================================== */

@media screen and (max-width: 992px) {

    /* Toon hamburger menu */
    .mobile-menu-toggle {
        display: flex;
    }

    /* Verberg desktop navigation */
    .desktop-nav-wrapper {
        display: none;
    }
}

/* Prevent body scroll when mobile menu is open */
body.mobile-menu-open {
    overflow: hidden;
}

/* Extra animatie voor menu items (stagger effect) */
.mobile-menu-overlay.active #mobile-menu>li {
    animation: slideInRight 0.4s ease forwards;
    opacity: 0;
}

.mobile-menu-overlay.active #mobile-menu>li:nth-child(1) {
    animation-delay: 0.1s;
}

.mobile-menu-overlay.active #mobile-menu>li:nth-child(2) {
    animation-delay: 0.15s;
}

.mobile-menu-overlay.active #mobile-menu>li:nth-child(3) {
    animation-delay: 0.2s;
}

.mobile-menu-overlay.active #mobile-menu>li:nth-child(4) {
    animation-delay: 0.25s;
}

.mobile-menu-overlay.active #mobile-menu>li:nth-child(5) {
    animation-delay: 0.3s;
}

.mobile-menu-overlay.active #mobile-menu>li:nth-child(6) {
    animation-delay: 0.35s;
}

.mobile-menu-overlay.active #mobile-menu>li:nth-child(7) {
    animation-delay: 0.4s;
}

.mobile-menu-overlay.active #mobile-menu>li:nth-child(8) {
    animation-delay: 0.45s;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}