@font-face {
    font-family: 'fatfrank';
    font-style: normal;
    font-weight: 10;
    src: url("fonts/fatfrank/FatFrank-Regular-xtyGqwW.ttf");
}

@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,300;0,400;0,700;0,900;1,300;1,400;1,700;1,900&family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');

html {
    overflow-y: auto;
    scroll-behavior: smooth;
}

/* Same-page anchor links (#section-… and SP Page Builder custom anchors) should
   land below the fixed header instead of underneath it. */
section[id],
.section-anchor {
    scroll-margin-top: 80px;
}

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

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


    .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*/

body > 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-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:not(.cw-heading) {
    font-family: 'fatfrank' !important;
    font-size: 45px !important;
    text-transform: uppercase !important;
    font-weight: 400 !important;
}

/* Legacy Joomla sections only — modern pages use .cw-section (see public/css/site.css) */
section:not(.cw-section) {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: 100% !important;
    padding: 65px 20px !important;
    box-sizing: border-box !important;
    scroll-margin-top: 80px !important;
    background: #ffffff;
    min-height: max-content !important;
}

section.section-hero {
    height: 100vh;
    min-height: 100vh;
}

section.is-brand {
    background-color: #0093d9;
    color: #ffffff;
}

section.is-light {
    background-color: #f7fbff;
}

section.is-soft {
    background-color: #eef6ff;
}

section.is-white {
    background-color: #ffffff;
}

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

/* The generated SP Page Builder markup uses Bootstrap utility classes
   (figure / figure-img / img-fluid / d-block / mx-auto) that are not otherwise
   loaded on this site. Without them a <figure> keeps the browser-default
   "margin: 1em 40px", which chops ~80px off every image and shrinks it well
   below its column width (e.g. a 190px column rendered the image at ~110px).
   Defining them here restores the intended, column-driven image sizing.
   Inline SP margins stay authoritative because these rules avoid !important. */
.figure {
    display: block;
    margin: 0 0 1rem;
}

.figure-img,
.img-fluid {
    max-width: 100%;
    height: auto;
}

.d-block {
    display: block;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

section:not(.cw-section) > header {
    text-align: center;
    margin-bottom: 40px;
    width: 100%;
}

h1 {
    font-family: 'fatfrank' !important;
    font-size: 50px !important;
    line-height: 50px !important;
    padding-top: 65px !important;
    text-transform: uppercase !important;
    font-weight: 400 !important;
    text-align: center !important;
    margin-bottom: 10px !important;
}

.page-content .cw-heading,
.page-content .cw-section h1.cw-heading,
.page-content .cw-section h2.cw-heading {
    padding-top: 0 !important;
    margin-bottom: 16px !important;
    line-height: 1.15 !important;
}

#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;
}


.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;
}


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

h3 {
    font-family: "Lato", sans-serif !important;
}

.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 !important;
    font-weight: 700 !important;
    margin-bottom: 10px !important;
    font-family: "Lato", sans-serif !important;
}

.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;
    }

    body > 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: 26px !important;
    }

    h2:not(.cw-heading) {
        font-size: 28px !important;
    }

    #boeken {
        height: fit-content;
    }

    .postcodeinput {
        width: 80%;
    }

    .menuopen {
        width: 80%;
    }

    #postcodeinput {
        width: 40%;
    }

    #huisnummerinput {
        width: 30%;
    }

    h1 {
        font-size: 26px !important;
        padding-top: 0 !important;
    }

    section:not(.cw-section) {
        padding-top: 0 !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    .image-small-mb {
        height: 150px;
    }

    .image-medium-mb {
        height: 250px;
    }

    .image-large-mb {
        height: 350px;
    }

    .page-content .container {
        padding-left: 0 !important;
        padding-right: 0 !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: row;
        justify-content: center;
        gap: 15px;
    }


    .stap {
        height: auto;
        width: auto;
        margin-bottom: 20px;
        margin-left: 0px;
        padding: 10px;
    }

    .stappenimg,
    img[src*="stap-1"],
    img[src*="stap-2"],
    img[src*="stap-3"] {
        width: auto !important;
        height: 70px !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)
   ============================================= */


.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 */


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

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

    section.is-light {
        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 */
section.is-light h2,
section > header h2 {
    font-size: 34px; /* per request */
    line-height: 1.25;
    font-weight: 400;
    font-family: fatfrank;
    margin: 0 0 12px 0;
    overflow-wrap: anywhere;
    hyphens: auto;
}

/* Body copy within these sections */
section.is-light p,
section > 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,
section.is-white {
    word-break: normal;
}

/* Balanced headings when supported */
@supports (text-wrap: balance) {
    section.is-light h2,
    section > 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,
    .content-step,
    .stappenimg,
    img[src*="stap-1"],
    img[src*="stap-2"],
    img[src*="stap-3"] {
        height: 70px !important;
        width: auto !important;
    }
}

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

    .content-grid {
        gap: 16px;
    }

    .step-item {
        padding: 12px;
    }

    .step-icon {
        height: 70px !important;
        width: auto !important;
    }

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

    section.is-light .action-btn-large,
    section.is-white .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;
    }
}

/* SP Page Builder checkmark lists */
.section-body ul,
.col-body ul,
.section-text ul,
.section-columns ul,
.section-text-image ul {
    list-style: none;
    padding-left: 0;
}

.section-body ul li,
.col-body ul li,
.section-text ul li,
.section-columns ul li,
.section-text-image ul li {
    padding-left: 1.75rem;
    position: relative;
    margin-bottom: 0.4rem;
}

.section-body ul li::before,
.col-body ul li::before,
.section-text ul li::before,
.section-columns ul li::before,
.section-text-image ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1.1rem;
    height: 1.1rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%230093df'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 14.5l-4-4 1.41-1.41L10 13.67l6.59-6.59L18 8.5l-8 8z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
}

.joomla-btn {
    display: block;
    background-color: #0093df !important;
    padding: 12px 20px !important;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
    color: #ffffff !important;
    text-transform: uppercase !important;
    /* Remove Bootstrap overrides */
    border: none !important;
    box-shadow: none !important;
    border-radius: 12px !important;
    width: 60%;
    margin: 0 auto;
}

.section-subtitle {
    text-align: center;
}

/* Column body headings */
.col-body h1, .addon-card h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.col-body h2, .addon-card h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.col-body h3, .addon-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.col-body h4, .addon-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* Section body headings */
.section-body h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.section-body h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.section-body h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.section-body h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* Joomla search bar */
.joomla-search-bar {
    width: 100%;
}

.search-bar-inner {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 50px;
    padding: 6px 6px 6px 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    gap: 8px;
}

.search-input {
    border: none;
    outline: none;
    font-size: 16px;
    flex: 1;
    background: transparent;
    min-width: 0;
}

.search-btn {
    background: #0093df;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

.search-btn:hover {
    background: #007ab8;
}


/* Hero section layout fixes */
.section-hero .container,
.section-columns .container {
    position: relative;
}

/* Match SP Page Builder's Bootstrap-5 ".sppb-row-container" widths so generated
   columns, cards and images render at the same size as the original Joomla site.
   Image addons are plain max-width:100% of their column, so column (and thus
   container) width is the only thing controlling their rendered size. Our flat
   1200px container made the hero side images too small at ≥1400px (where SP uses
   1320px) and over-zoomed the `cover` hero background by making the hero taller. */
.page-content .container {
    max-width: 100%;
}

@media (min-width: 576px) {
    .page-content .container {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .page-content .container {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .page-content .container {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .page-content .container {
        max-width: 1140px;
    }
}

@media (min-width: 1400px) {
    .page-content .container {
        max-width: 1320px;
    }
}

/* Center search bar */
.joomla-search-bar {
    width: 100%;
    max-width: 500px;
    margin: 0 auto 20px auto;
    display: block;
}

/* White card in hero */
.addon-card {
    background: rgba(255, 255, 255, 0.86);
    border-radius: 40px;
    padding: 30px;
    /*max-width: 320px; !* narrower card *!*/
    margin-left: 0 !important; /* push to left */
}

.addon-card {
    border-radius: 16px;
    padding: 24px 28px;
}

/* Only in hero sections — narrower card to left */
.section-hero .addon-card {
    max-width: 320px;
    border-radius: 40px;
    padding: 24px 28px;
    margin-left: 0;
    margin-right: auto;
}


.joomla-page .addon-card h3[style*="text-align"] {
    text-align: center;
}

.joomla-page .addon-card p[style*="text-align"] {
    text-align: center;
}

a {
    text-decoration: none;
}

.joomla-page section {
    padding: 0;
}

/* Responsive support for generated Joomla sections */
.generated-columns-row {
    width: 100%;
}

.generated-column {
    min-width: 0;
}

@media (max-width: 1024px) {
    .generated-column {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
}

.font-15 {
    font-size: 15px;
}

@media (max-width: 768px) {
    .padding-none-mb {
        padding: 0 !important;
    }

    .generated-columns-row {
        flex-direction: column !important;
        align-items: stretch !important;
        margin: 0 !important;
        gap: 16px;
    }

    /* Keep step rows side-by-side on mobile */
    .generated-columns-row:has(img[src*="stap-1"]),
    .generated-columns-row:has(img[src*="stap-2"]),
    .generated-columns-row:has(img[src*="stap-3"]) {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: center !important;
        gap: 10px !important;
    }

    .generated-columns-row:has(img[src*="stap-1"]) .generated-column,
    .generated-columns-row:has(img[src*="stap-2"]) .generated-column,
    .generated-columns-row:has(img[src*="stap-3"]) .generated-column {
        flex: 0 0 auto !important;
        width: auto !important;
        max-width: none !important;
        padding: 0 !important;
    }

    .generated-column {
        flex: 0 0 100% !important;
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .generated-featured-text-row {
        flex-direction: column !important;
        gap: 16px !important;
    }

    .generated-featured-text-col {
        min-width: 0 !important;
        width: 100%;
    }

    .section-columns .col-body[style*="padding"] {
        padding: 24px 20px !important;
    }

    .section-columns .joomla-btn {
        width: 100%;
        max-width: 420px;
    }
}

/* Hero triptych: center the search card when side images are hidden */
@media (max-width: 1199.98px) {
    .hero-triptych .hero-triptych-row,
    .generated-columns-row:has(.joomla-search-bar) {
        justify-content: center !important;
    }

    .hero-triptych .generated-column--hero-center,
    .generated-columns-row > .generated-column:has(.joomla-search-bar) {
        flex: 0 0 100% !important;
        width: 100% !important;
        max-width: 520px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .hero-triptych .generated-column--hero-center .col-body,
    .generated-columns-row > .generated-column:has(.joomla-search-bar) .col-body {
        padding: 32px 24px !important;
        text-align: center;
    }

    .hero-triptych .generated-column--hero-center .joomla-search-bar,
    .generated-columns-row > .generated-column:has(.joomla-search-bar) .joomla-search-bar {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 575.98px) {
    .hero-triptych .generated-column--hero-center,
    .generated-columns-row > .generated-column:has(.joomla-search-bar) {
        max-width: 100% !important;
    }

    .hero-triptych .generated-column--hero-center .col-body,
    .generated-columns-row > .generated-column:has(.joomla-search-bar) .col-body {
        padding: 24px 16px !important;
    }
}

/* SP Page Builder responsive visibility (matches Joomla breakpoints) */
@media (max-width: 575.98px) {
    .sppb-hidden-xs {
        display: none !important;
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    .sppb-hidden-sm {
        display: none !important;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .sppb-hidden-md {
        display: none !important;
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .sppb-hidden-lg {
        display: none !important;
    }
}

@media (min-width: 1200px) {
    .sppb-hidden-xl {
        display: none !important;
    }
}

/* Over CannonWorks page layouts */
.section-hero-intro .container {
    text-align: center;
}

.section-hero-intro .hero-intro-media {
    max-width: 360px;
    margin: 0 auto 24px;
}

.section-hero-intro .hero-intro-media .figure {
    background: #fff;
    border-radius: 24px;
    padding: 16px;
}

.section-hero-intro .hero-intro-nav {
    max-width: 720px;
    margin: 0 auto;
}

.accordion-nav-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.accordion-nav-item {
    background: #fff;
    border: 1px solid #d9e6ef;
    border-radius: 8px;
    overflow: hidden;
}

.accordion-nav-summary {
    list-style: none;
    cursor: pointer;
    padding: 18px 20px;
    font-size: 18px;
    font-weight: 600;
    text-align: left;
    position: relative;
}

.accordion-nav-summary::-webkit-details-marker {
    display: none;
}

.accordion-nav-summary::after {
    content: '›';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%) rotate(90deg);
    color: #8aa0ad;
    font-size: 22px;
}

.accordion-nav-item[open] .accordion-nav-summary::after {
    transform: translateY(-50%) rotate(-90deg);
}

.accordion-nav-body {
    padding: 0 20px 20px;
    text-align: left;
}

.section-mission-cards .generated-columns-row {
    align-items: stretch !important;
}

.section-mission-cards .generated-column {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 8px 24px rgba(104, 152, 171, 0.15);
    display: flex;
    flex-direction: column;
}

.section-mission-cards .column-feature-card {
    display: flex;
    flex-direction: column;
    flex: 1;
    height: 100%;
    text-align: center;
    padding: 88px 0 0;
}

.section-mission-cards .column-feature-card-icon {
    width: 100%;
    max-width: 280px;
    height: 200px;
    margin: -108px auto 12px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.section-mission-cards .column-feature-card-icon .figure-img {
    display: block;
    width: auto;
    max-width: 100%;
    height: 200px;
    max-height: 200px;
    object-fit: contain;
    object-position: bottom center;
    margin: 0 auto;
}

.section-mission-cards .column-feature-card .col-body {
    padding: 0 20px 12px;
    flex: 1;
}

.section-mission-cards .column-feature-card .col-footer-images {
    padding: 0 12px 20px;
    margin-top: auto;
}

.col-store-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.col-store-badges .figure {
    margin: 0;
    max-width: 180px;
}

@media (max-width: 991.98px) {
    .section-mission-cards .generated-columns-row {
        gap: 20px;
    }

    .section-mission-cards .generated-column {
        flex: 0 0 100% !important;
        width: 100% !important;
        max-width: 100% !important;
    }
}
