html {
    overflow-y: auto;
}

body {
    line-height: 32px;
    padding-top: 65px; /* prevent content and body scrollbar from sitting under the fixed header */
}

html, body {
    font-family: "Lato", system-ui, -apple-system, sans-serif;
    margin: 0;
    height: 100%;
    width: 100%;
    padding: 0;
    color: #333 !important;
    font-weight: 400;


    .overlay {
        width: 100%;
        height: 100%;
        background-color: #000000;
        opacity: 0.5;
        position: absolute;
        display: none;
        z-index: 10000;
    }
}

.menu {
    position: absolute;
    height: 100%;
    background-color: #141A2B;
    color: #fff;
    transition: width 0.5s ease, opacity 0.3s ease;
    flex-direction: column;
    opacity: 0;
    z-index: 10000;
}

.menuopen {
    width: 20%;
    opacity: 1;
}

.closed {
    width: 0%;
    opacity: 0;
    overflow: hidden;
}

.menuitem {
    display: flex;
    align-items: center;
    padding: 15px 10px 15px 10px;
    height: 50px;
    border-bottom: 1px solid #2d344e;
    text-decoration: none;
    color: #fff;
}

/*Je kan display: none doen en dan width van 0 naar 80 voor de animatie*/

header {
    z-index: 1000;
    position: fixed;
    height: 65px;
    background-color: #fff;
    box-shadow: 1px 3px 3px rgba(0, 0, 0, 0.15);
    justify-content: space-between;
    align-items: center;
    width: 100%;
    display: flex;
}

.custom-dropdown {
    position: relative;
    display: inline-block;
}

.custom-dropdown-toggle {
    cursor: pointer;
    display: inline-block;
    padding: 10px;
}

.custom-dropdown-menu {
    display: none;
    position: absolute;
    background-color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 10;
    padding: 10px;
    border-radius: 5px;
    min-width: 400px;
    top: 100%;
    left: 0;
}

.custom-dropdown-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.custom-menu-item {
    margin: 5px 0;
    font-size: 14px;
    line-height: 15px;
}

.custom-menu-item a {
    color: #333;
    text-decoration: none;
    display: block;
    padding: 8px;
}

.custom-menu-item a:hover {
    background-color: #f0f0f0;
    border-radius: 3px;
}

.custom-dropdown:hover .custom-dropdown-menu {
    display: block;

}


#exitBtn {
    position: absolute;
    right: 10px;
    margin-top: 25px;
    font-size: 30px;
}

.title {
    margin-left: 20px;
    height: 100%;
    display: block;
}

.title_mobile {
    display: none;
}

.title:hover {
    cursor: pointer;
}

.navitems {
    display: flex;
    align-items: center;
    /*margin-right: 400px;*/
    width: 100%;
}

.navitem {
    /* margin-left: 25px; */
    color: #000;
    line-height: 30px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.5px;
    padding: 0 23px;
}


.navitem:hover {
    cursor: pointer;
    color: #0093d9;
}

.postcodeinput {
    border-radius: 40px;
    height: 50px;
    outline: 1px solid #0083b7;
    width: 360px;
    background-color: #ffffff;
    margin-bottom: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px 5px 5px 15px;
}

.searchinput {
    height: 50px;
    border: none;
    font-size: 15px;
    width: 100%;
    background: none;
    color: #333 !important;

}

.searchinput input {
    text-transform: uppercase;
}

.searchinput:active {
    border: none;
}

.searchbtn {
    height: 50px;
    width: 50px;
    align-items: center;
    display: flex;
    justify-content: center;
    background-color: #0093d9;
    margin-left: 20px;
    color: #FFFFFF;
    border-radius: 100px;
    border: none;
}

.searchbtn:hover {
    cursor: pointer;
    background-color: #0078af;
}

li {
    margin-bottom: 10px;
}


.searchinput:focus {
    border: none;
    outline: none;
}

#postcodeinput {
    border-right: 2px #dcdcdc solid;
    margin-right: 10px;
    height: 30px;
    width: 50%;
}

.fa-search {
    font-size: 22px;
    font-weight: 900;
}

#huisnummerinput {
    height: 30px;
    width: 90px;
}

#searchform {
    display: flex;
    justify-content: center;
    align-items: center;
}

.editiefoto {
    width: 100%;
    height: 100%;
}

.login-btn {
    /* padding: 15px; */
    padding: 14px 20px 14px 20px !important;
    background-color: #0093df;
    color: #fff;
    border-radius: 12px;
    align-items: center;
    /* height: 45px; */
    display: flex;
    justify-content: center;
    transition: 0.3s;
    margin-right: 40px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    line-height: 1.25;
}

.login-btn:hover {
    cursor: pointer;
    background-color: #0078af;
}

.bedrijf-btn {
    height: 30px;
    width: 400px;
    padding: 10px;
    background-color: #0093d9;
    border-radius: 10px;
    color: #fff;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    /* border-radius: 15px; */
    transition: 0.3s;
    margin-top: 30px;
    margin-bottom: 30px;

}

.bedrijf-btn:hover {
    cursor: pointer;
    background-color: #0078af;
}

.bedrijf-btn p {
    font-weight: 10;
}

.blogImage {
    width: 100%;
    /* padding-top: 20px; */
    /* padding-bottom: 20px; */
    /* padding: 0px; */
    /* height: 100px; */
    height: 200px;
    object-fit: contain;
}

.content {
    font-family: "Lato", system-ui, -apple-system, sans-serif;
    font-weight: 500;
    margin: 0;
    height: 100%;
    width: 100%;
    padding: 0;
}

.editie-omschrijving {
    height: 300px;
    width: 350px;
    background-color: #fff;
    border-radius: 40px;
    object-fit: cover;
    background-size: cover;
    margin-right: 600px;
    margin-bottom: 200px;
    padding-top: 30px;
    padding-right: 30px;
    padding-bottom: 40px;
    padding-left: 30px;
}

.editie-omschrijving h3 {
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 10px;
    line-height: 1.1;
}

.editie-omschrijving p {
    margin-top: 0px;
    font-size: 15px;

}


.bedrijf-omschrijving {
    height: 300px;
    width: 500px;
    background-color: #fff;
    border-radius: 40px;
    object-fit: cover;
    background-size: cover;
    margin-bottom: 200px;
    padding-top: 30px;
    padding-right: 30px;
    padding-bottom: 40px;
    padding-left: 30px;
}

.bedrijf-omschrijving h3 {
    margin-bottom: 10px;
    line-height: 1.1;
    font-weight: 700;
    font-size: 18px;
}

.bedrijf-omschrijving p {
    margin-top: 0px;
    font-size: 15px;

}

#grip {
    background-color: #eef6ff;
}

.stappen {
    display: flex;
}

.telefoons {
    height: 300px;
    margin-bottom: 30px;
}

.stap {
    margin-bottom: 50px;
}

.stappenimg {
    width: 250px;
    transition: 0.3s;
}

.stappenimg:hover {
    scale: 1.1;
    cursor: pointer;
}

.stap {
    height: 300px;
    width: 300px;
    border-radius: 40px;
    align-items: center;
    line-height: 15px;
    justify-content: center;
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    margin-left: 40px;
    padding: 10px;
}

.staptitle {
    text-align: center;
    color: #0093d9;
    font-size: 15px;
    font-weight: 900;
}

.stapbeschrijving {
    line-height: 30px;
    text-align: center;
    font-weight: 400;
    font-size: 14px;
}

h2 {
    font-weight: 1;
}

section {
    display: flex;
    background: #ffffff;
    height: max-content;
    width: 100%;
    padding: 30px;
    box-sizing: border-box;
    align-items: center;
    flex-direction: column;
}

h1 {
    font-family: "Baloo 2", system-ui, -apple-system, sans-serif;
    font-size: 45px;
    text-transform: uppercase;
    font-weight: 800;
    text-align: center;
    margin-bottom: 10px;
}

#boeken {
    margin-top: 70px;
    background: rgb(255, 255, 255);
    background: linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(144, 144, 144, 1) 100%);
    background-position: 50% 100%;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

#regio {
    background: #FFFFFF;
}

.bedrijf-lijst-item {
    width: 100%;
    height: 60px;
    border-top: 2px solid #0093d9;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.bedrijf-lijst-item h2 {
    font-size: 20px;
}

.prijsbtn {
    height: 50px;
    width: 200px;

    background-color: #0093d9;
    color: #fff;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    transition: 0.3s;
}

.prijsbtn:hover {
    cursor: pointer;
    background-color: #0078af;
}

.boekentitle {
    font-size: 50px;
    margin-bottom: 10px;
}

#werkt {
    background-color: #eef6ff;
}

.didyoumeansection {
    justify-content: center;
    display: flex;
    align-items: center;
    height: 100%;
    background-color: #eef6ff;
}

.didyoumeancard {
    width: 50%;
    height: fit-content;
    background: #ffffff;
    align-items: center;
    justify-content: center;
    display: flex;
    flex-direction: column;
    text-align: center;
    border-radius: 10px;
    padding: 10px;
}

.plaatsnaamcard {
    background-color: #0093d9;
    text-decoration: none;
    color: #ffffff;
    width: 50%;
    height: 50%;
    text-align: center;
    margin-bottom: 20px;
    border-radius: 10px;
}

.plaatsnaamcard:hover {
    cursor: pointer;
    background-color: #0078af;
}

#erroricon {
    font-size: 50px;
    color: #000000
}

.terugknop {
    background-color: #0093d9;
    text-decoration: none;
    color: #ffffff;
    width: 20%;
    height: 50%;
    text-align: center;
    margin-bottom: 20px;
    border-radius: 10px;
}

.terugknop:hover {
    cursor: pointer;
    background-color: #0078af;
}


.werktitem {
    display: flex;
    align-items: center;
    height: 60px;
    justify-content: space-between;
    width: 1200px;
    background-color: #ffffff;
    font-size: 20px;
    padding: 5px;
    font-weight: 400;
}

.werktitem:hover {
    cursor: pointer;
}

.stap-content {
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease-out;
    background-color: #ffffff;
    margin-bottom: 10px;
    padding: 0 15px;

}

.stap-content.open {
    border-top: 2px solid #80808017;
    max-height: 200px; /* Adjust this height based on content */
}

h2,
h3 {
    font-family: "Baloo 2", system-ui, -apple-system, sans-serif;
    font-weight: 800;
}

h3 {
    font-size: 16px;
}

.bolletje {
    height: 50px;
    width: 50px;
    background-color: #0093d9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    border-radius: 100%;
    margin-right: 20px;
    margin-left: 20px;
}

footer {
    height: max-content;
    background-color: #0093d9;
}

h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.footercontainer {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    font-weight: 400;
    gap: 20px;
    font-size: 13px;
    margin-left: auto;
    margin-right: auto;
    max-width: 1140px;
}

i {
    transition: transform 0.3s ease;
}

.rotated {
    transform: rotate(180deg);
}

.hamburger-menu {
    color: #0093D9;
    font-size: 32px;
    display: none;
    margin-left: 10px;
}

.bigimg {
    height: 500px;
}

.sectionheader {
    align-items: center;
    justify-content: center;
    display: flex;
    flex-direction: column;
}

.werktitem h3 {
    font-weight: 700;
    color: #333;
    font-size: 14px;
}

.sectionheader h3 {
    max-width: 1000px;
    margin-bottom: 35px;
    text-align: center;
}

@media screen and (max-width: 1297px) {
    .navitem {
        line-height: 20px;
        font-size: 12px;
        margin-left: 30px;
    }

    .navitems {
        display: none;
    }

    .hamburger-menu {
        display: block;
    }

    .title {

        display: none;
    }

    .login-btn {
        display: none;
    }

    header {
        justify-content: left;
    }

    .title_mobile {
        height: 100%;
        margin-left: 10px;
        display: flex;
        align-items: center;
    }

    .werktitem {
        width: 100%;
    }

    .open {
        padding: 0 5px;
        width: 100%;
    }

    .stap-content {
        padding: 0 5px;
        width: 100%;
    }


}

@media screen and (max-width: 769px) {
    .boekentitle {
        font-size: 36px !important;
    }


    #boeken {
        height: fit-content;
    }

    .postcodeinput {
        width: 80%;
    }

    .menuopen {
        width: 80%;
    }

    #postcodeinput {
        width: 40%;
    }

    #huisnummerinput {
        width: 30%;
    }

    h1 {
        font-size: 36px !important;
    }

    .werktitem {
        width: 100%;
        line-height: 15px;
    }

    .prijsbtn {
        font-size: 14px;
    }

    .bedrijf-lijst-item h2 {
        font-size: 16px;
    }

    .werktitem h3 {
        font-size: 12px;
        width: 80%;
    }


    .telefoons {
        height: 300px;
    }

    section {
        height: max-content;
        padding: 20px;
    }

    .stappen {
        flex-direction: column;
    }


    .stap {
        height: 300px;
        width: 300px;
        margin-bottom: 20px;
        margin-left: 0px;
    }

    .stappenimg {
        width: 200px;
        height: 150px !important;
    }

    .staptitle {
        font-size: 15px;
    }

    .stapbeschrijving {
        font-size: 14px;
    }

    .editie-omschrijving {
        margin-right: 0px;
        height: fit-content;
        width: 260px;
        background-color: #ffffffe8;
        margin-bottom: 100px;
    }

    .bedrijf-omschrijving {
        margin-right: 0px;
        height: fit-content;
        width: 260px;
        background-color: #ffffffe8;
        margin-bottom: 100px;
    }

    .bigimg {
        height: 200px;
    }

    .didyoumeancard {
        width: 80%;
    }

    .terugknop {
        width: 50%;
    }

    .bedrijf-btn {
        width: 300px;
    }
}

@media screen and (max-width: 1379px) {
    .login-btn {
        display: none;
    }

    .navitems {
        margin-left: 0 !important;
    }

    .navitem {
        font-size: 14px;
    }
}

/* Spinner and loading animations for adverteerders lazy-load */
.ad-loading {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ad-spinner {
    width: 22px;
    height: 22px;
    border: 3px solid #cfe3f3;
    border-top-color: #0099e6;
    border-radius: 50%;
    animation: cw-spin 0.9s linear infinite;
}

@keyframes cw-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.loading-text {
    font-weight: 600;
    color: #355c7d;
    letter-spacing: 0.2px;
}

.loading-text .dots::after {
    display: inline-block;
    content: '...';
    width: 1.2em; /* space reservation to avoid layout shift */
    overflow: hidden;
    vertical-align: bottom;
    animation: cw-ellipsis steps(4, end) 1.2s infinite;
}

/* Ellipsis steps: '', '.', '..', '...' */
@keyframes cw-ellipsis {
    0% {
        content: '';
    }
    25% {
        content: '.';
    }
    50% {
        content: '..';
    }
    75% {
        content: '...';
    }
    100% {
        content: '';
    }
}


/* =============================================
   How-it-works + Step sections (responsive)
   ============================================= */

.how-it-works-section {
    padding: 60px 20px;
    background: #f7fbff;
}

.how-it-works-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.process-diagram {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto 40px;
}

/*.steps-grid {*/
/*    display: grid;*/
/*    grid-template-columns: repeat(3, minmax(0, 1fr));*/
/*    gap: 20px;*/
/*    margin-top: 20px;*/
/*}*/

.step-link {
    text-decoration: none;
    color: inherit;
}

/*.step-item {*/
/*    background: #fff;*/
/*    border: 1px solid #e6eef7;*/
/*    border-radius: 16px;*/
/*    padding: 20px;*/
/*    height: 100%;*/
/*    box-shadow: 0 4px 12px rgba(17, 49, 96, 0.06);*/
/*    transition: transform 0.2s ease, box-shadow 0.2s ease;*/
/*    display: flex;*/
/*    flex-direction: column;*/
/*    align-items: center;*/
/*    text-align: center;*/
/*}*/

.step-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(17, 49, 96, 0.12);
}

.step-icon {
    width: 72px;
    height: auto;
    margin-bottom: 12px;
}

/* Content sections step-1/2/3 */
.content-section {
    padding: 80px 20px;
    background: #fff;
    /* Ensure anchor links don’t hide under the fixed header */
    scroll-margin-top: 80px;
}

.content-container {
    max-width: 1200px;
    margin: 0 auto;
}

.content-header {
    text-align: center;
    margin-bottom: 40px;
}

/* Use flex so we can easily reverse order and stack on mobile */
.content-grid {
    display: flex;
    align-items: center;
    gap: 40px;
}

.content-grid.reverse {
    flex-direction: row-reverse;
}

.content-image,
.content-text {
    flex: 1 1 0;
}

/*.content-image img {*/
/*    width: 100%;*/
/*    height: auto;*/
/*    display: block;*/
/*}*/

.content-text h3 {
    margin-top: 0;
}

/* Responsive breakpoints */
@media (max-width: 1024px) {
    .steps-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .content-grid {
        gap: 28px;
    }
}

@media (max-width: 768px) {
    .steps-grid {
        grid-template-columns: 1fr;
    }

    .content-grid,
    .content-grid.reverse {
        flex-direction: column;
    }

    .content-section {
        padding: 60px 16px;
        scroll-margin-top: 72px; /* slightly smaller on mobile */
    }

    .how-it-works-section {
        padding: 40px 16px;
    }

    .step-item {
        padding: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .step-item {
        transition: none;
    }
}


/* =============================================
   Typography + mobile adjustments (How-it-works & Steps)
   ============================================= */

/* Headings: keep prominent but controlled */
.how-it-works-section h2,
.content-header h2 {
    font-size: 34px; /* per request */
    line-height: 1.25;
    font-weight: 800;
    font-family: "Baloo 2", system-ui, -apple-system, sans-serif;
    margin: 0 0 12px 0;
    overflow-wrap: anywhere;
    hyphens: auto;
}

/* Body copy within these sections */
.how-it-works-section p,
.content-header p,
.content-text p {
    font-size: clamp(16px, 1.0vw + 12px, 18px); /* min 16px on small phones */
    line-height: 32px;
    letter-spacing: 0.5px;
    color: rgb(68, 68, 68);
    margin: 0.5em 0;
    overflow-wrap: anywhere;
    hyphens: auto;
}

/* Subheadings within content text */
.content-text h3 {
    font-size: clamp(20px, 1.2vw + 12px, 24px);
    line-height: 1.3;
    margin: 16px 0 8px 0;
    overflow-wrap: anywhere;
    hyphens: auto;
}

/* Step card text */
.step-item h4 {
    font-size: clamp(16px, 1.0vw + 10px, 20px);
    line-height: 1.3;
    margin: 8px 0;
    overflow-wrap: anywhere;
    hyphens: auto;
}

.step-item p {
    font-size: clamp(16px, 0.8vw + 12px, 17px);
    line-height: 1.6;
    margin: 6px 0 0 0;
    overflow-wrap: anywhere;
    hyphens: auto;
}

/* Improve wrapping in scoped areas */
.steps-grid,
.content-grid,
.content-section {
    word-break: normal;
}

/* Balanced headings when supported */
@supports (text-wrap: balance) {
    .how-it-works-section h2,
    .content-header h2,
    .content-text h3,
    .step-item h4 {
        text-wrap: balance;
    }
}

/* Icon scaling and spacing tweaks */
@media (max-width: 1024px) {
    .step-icon {
        width: 64px;
    }
}

@media (max-width: 768px) {
    .content-grid {
        gap: 20px;
    }

    .step-icon {
        width: 56px;
    }

    .content-step {
        height: 62px !important;
    }
}

/* Small phones (e.g., iPhone SE) */
@media (max-width: 576px) {
    .content-header {
        margin-bottom: 28px;
    }

    .content-grid {
        gap: 16px;
    }

    .step-item {
        padding: 12px;
    }

    .step-icon {
        width: 48px;
    }

    .content-section {
        padding: 48px 14px;
        scroll-margin-top: 68px;
    }

    .how-it-works-section .action-btn-large,
    .content-section .action-btn-large {
        padding: 10px 16px !important;
        font-size: 16px !important; /* lock to 16px on very small screens */
    }
}

/* Responsive label swap for advertiser CTA */
.ad-btn .label-short {
    display: none;
    font-size: 15px;
}

.ad-btn .label-full {
    display: inline;
    font-size: 15px;
}

@media (max-width: 576px) {
    .ad-btn .label-short {
        display: inline;
        font-size: 14px;
    }

    .ad-btn .label-full {
        display: none;
    }
}

@media (max-width: 400px) {
    .ad-btn .label-short {
        font-size: 12px;
    }

    .ad-btn {
        padding: 10px 14px !important;
    }
}

/* Advertiser rows reveal animation */
.ad-card {
    transition: opacity 400ms ease, transform 400ms ease;
    will-change: opacity, transform;
}

.ad-reveal-prep {
    opacity: 0;
    transform: translateY(10px);
}

.ad-reveal-in {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .ad-card {
        transition: none !important;
    }

    .ad-reveal-prep {
        opacity: 1;
        transform: none;
    }
}
