/* ==========================================
   FAQ Archief
   ========================================== */
.cbfaq {
    padding-top: 50px;
    padding-bottom: 100px;
}

.cbfaq--bg-blue {
    background-color: #e8eaf5;
}

.cbfaq--bg-white {
    background-color: #fff;
}

.cbfaq--bg-none {
    background-color: transparent;
}

.cbfaq__heading {
    color: #2098B4;
    margin-bottom: 4rem;
}

/* Categorie titel */
.cbfaq__cat-title {
    color: #0E104D;
    font-size: 2.4rem;
    line-height: 3rem;
    margin-bottom: 2rem;
}

.cbfaq__accordions + .cbfaq__cat-title {
    margin-top: 50px;
}

/* Accordion container */
.cbfaq__accordions {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Accordion item */
.cbfaq__accordion {
    background-color: #fff;
    border-radius: 0;
    transition: box-shadow 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

/* Border op witte achtergrond zodat items zichtbaar blijven */
.cbfaq--bg-white .cbfaq__accordion {
    border: 1px solid #EAECF5;
}

.cbfaq__accordion.is-open {
    box-shadow: 0 30px 40px 0 rgba(14, 16, 77, 0.4);
}

/* Accordion header */
.cbfaq__accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 82px;
    padding: 0 40px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    -webkit-appearance: none;
    appearance: none;
}

.cbfaq__accordion-header:hover {
    background-color: #fff;
}

.cbfaq__accordion-header:focus {
    outline: none;
}

.cbfaq__accordion-header:focus-visible {
    outline: 2px solid #2098B4;
    outline-offset: -2px;
}

/* Accordion titel */
.cbfaq__accordion-title {
    color: #2098B4;
    font-size: 2rem;
    line-height: 1.4;
    margin: 0;
    padding-right: 2rem;
}

/* Accordion arrow icon */
.cbfaq__accordion-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 16px;
    height: auto;
}

.cbfaq__arrow-closed,
.cbfaq__arrow-open {
    transition: opacity 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.cbfaq__arrow-open {
    display: none;
}

.cbfaq__accordion.is-open .cbfaq__arrow-closed {
    display: none;
}

.cbfaq__accordion.is-open .cbfaq__arrow-open {
    display: block;
}

/* Titel kleur oranje bij open */
.cbfaq__accordion.is-open .cbfaq__accordion-title {
    color: #D86123;
}

/* Accordion body */
.cbfaq__accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

/* Accordion content */
.cbfaq__accordion-content {
    background-color: #e8eaf5;
    padding: 30px 40px;
    color: #0E104D;
    font-size: 1.8rem;
    line-height: 1.6;
}

.cbfaq__accordion-content p:last-child {
    margin-bottom: 0;
}

/* ==========================================
   FAQ Block (smal, losse items)
   ========================================== */
.cbfaqb {
    padding-top: 50px;
    padding-bottom: 100px;
}

.cbfaqb--bg-blue {
    background-color: #e8eaf5;
}

.cbfaqb--bg-white {
    background-color: #fff;
}

.cbfaqb--bg-none {
    background-color: transparent;
}

/* Standaard border op FAQ Block items */
.cbfaqb .cbfaq__accordion {
    border: 1px solid #EAECF5;
}

/* Geen border bij blauwe achtergrond */
.cbfaqb--bg-blue .cbfaq__accordion {
    border: none;
}

/* ==========================================
   Responsive
   ========================================== */
@media (max-width: 767.98px) {
    .cbfaq {
        padding-top: 30px;
        padding-bottom: 50px;
    }

    .cbfaq__heading {
        font-size: 2.8rem;
        margin-bottom: 3rem;
    }

    .cbfaq__accordion-header {
        padding: 0 20px;
        min-height: 68px;
    }

    .cbfaq__accordion-title {
        font-size: 1.7rem;
    }

    .cbfaq__accordion-content {
        padding: 15px 20px 25px 20px;
    }

    .cbfaq__cat-title {
        font-size: 2rem;
    }

    .cbfaq__accordions + .cbfaq__cat-title {
        margin-top: 40px;
    }

    .cbfaqb {
        padding-top: 30px;
        padding-bottom: 50px;
    }
}
