
/* =========================================================
   FAQ PAGE - HERO
========================================================= */
/* =========================================
   FAQ / Terms Hero Text
========================================= */

.faq-page-hero {
    position: relative;
    width: 100%;
    min-height: 700px;
    overflow: hidden;
}

.faq-page-hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.faq-page-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(105, 50, 150, 0.45);
    z-index: 1;
}

/* Hero text */
.faq-page-hero-content {
    position: relative;
    z-index: 2;

    width: 90%;
    max-width: 1400px;
    height: 100%;

    margin: 0 auto;
    padding: 0 20px;

    box-sizing: border-box;

    display: flex;
    align-items: center;
    justify-content: flex-start;
}

/* Breadcrumb + heading wrapper */

.faq-page-hero-inner {
    width: 100%;
    margin: 0;
    padding: 0;

    display: flex;
    flex-direction: column;
    align-items: flex-start;

    text-align: left;
}


/* Breadcrumb */

.faq-page-hero .kd-breadcrumb {
    margin: 0 0 35px 0;
    padding-top: 7px;
    padding-bottom: 7px;

    align-self: flex-start;
}

/* Heading */

.faq-page-hero-content h1 {
    width: 100%;
    max-width: 1200px;

    margin: 0;
    padding: 0;

    text-align: left;
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) {

    .faq-page-hero-content {
        width: 92%;

        padding-left: 14px;
        padding-right: 14px;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

    .faq-page-hero-content {
        width: auto;

        margin-left: 16px;
        margin-right: 16px;

        padding-left: 0;
        padding-right: 0;
    }

    .faq-page-hero-inner {
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .faq-page-hero .kd-breadcrumb {
        margin-left: 8px !important;
        margin-bottom: 20px;
        
    }

    .faq-page-hero-content h1 {
        margin-left: 0;
        padding-left: 0;
    }
}

/* =========================================================
   FAQ HERO - SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .faq-page-hero {
        height: 350px;
        border-bottom-width: 5px;
    }
}

/* =========================================================
   FAQ PAGE - ACCORDION SECTION
========================================================= */

.faq-accordion-section {
    position: relative;

    width: 100%;

    padding: 95px 0 120px;

    color: #ffffff;

    background:
        linear-gradient(
            180deg,
            #ef4da3 0%,
            #c544a2 35%,
            #983b9b 68%,
            #693296 100%
        );
}


/* Main centered content */
.faq-accordion-container {
    width: 90%;
    max-width: 1050px;

    margin: 0 auto;
}



/* =========================
   ACCORDION
========================= */

.faq-accordion {
    width: 100%;
}


.faq-item {
    width: 100%;

    border-top: 1px solid rgba(255, 255, 255, 0.22);
}


/* Last bottom line */
.faq-item:last-child {
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}


/* Question button */
.faq-question {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 25px;

    padding: 22px 12px;

    border: 0;

    background: transparent;

    color: #ffffff;

    font-family: 'Roboto', sans-serif;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.45;

    text-align: left;

    cursor: pointer;
}


/* Question text */
.faq-question-text {
    flex: 1;
}


/* =========================
   CIRCULAR ARROW
========================= */

.faq-arrow {
    width: 28px;
    height: 28px;

    flex: 0 0 28px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;

    color: #ffffff;

    font-size: 17px;
    line-height: 1;

    transition:
        transform 0.3s ease,
        background-color 0.3s ease,
        color 0.3s ease;
}


.faq-question:hover .faq-arrow {
    background: #ffffff;
    color: #693296;
}


/* Rotate arrow when opened */
.faq-question[aria-expanded="true"] .faq-arrow {
    transform: rotate(90deg);

    background: #ffffff;
    color: #693296;
}


/* =========================
   ANSWER
========================= */

.faq-answer {
    display: grid;

    grid-template-rows: 0fr;

    overflow: hidden;

    transition: grid-template-rows 0.35s ease;
}


.faq-item.active .faq-answer {
    grid-template-rows: 1fr;
}


.faq-answer-inner {
    min-height: 0;
    overflow: hidden;
}


.faq-answer p {
    margin: 0;

    padding:
        0
        60px
        24px
        12px;

    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.65;

    color: rgba(255, 255, 255, 0.9);
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) {

    .faq-accordion-section {
        padding: 80px 0 100px;
    }

    .faq-accordion-container {
        width: 92%;
        max-width: 900px;
    }

    .faq-accordion-container h2 {
        max-width: 680px;

        margin-bottom: 60px;

        font-size: 42px;
    }

    .faq-question {
        padding: 20px 10px;

        font-size: 17px;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

    .faq-accordion-section {
        padding: 65px 0 80px;
    }

    .faq-accordion-container {
        width: auto;

        margin: 0 20px;
    }

    .faq-accordion-container h2 {
        max-width: 500px;

        margin-bottom: 45px;

        font-size: 34px;
        line-height: 1.2;
    }

    /* Let mobile wrap naturally */
    .faq-title-break {
        display: none;
    }

    .faq-question {
        gap: 16px;

        padding: 18px 5px;

        font-size: 16px;
        line-height: 1.45;
    }

    .faq-arrow {
        width: 26px;
        height: 26px;

        flex-basis: 26px;

        font-size: 15px;
    }

    .faq-answer p {
        padding:
            0
            42px
            20px
            5px;

        font-size: 15px;
    }
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .faq-accordion-section {
        padding: 55px 0 70px;
    }

    .faq-accordion-container {
        margin: 0 16px;
    }

    .faq-accordion-container h2 {
        margin-bottom: 38px;

        font-size: 30px;
    }

    .faq-question {
        padding: 16px 3px;

        font-size: 15px;
    }

    .faq-answer p {
        padding:
            0
            36px
            18px
            3px;

        font-size: 14px;
    }

    .faq-arrow {
        width: 24px;
        height: 24px;

        flex-basis: 24px;
    }
}

/* =========================================================
   FAQ ARROW
========================================================= */

.faq-arrow {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;

    display: flex;
    align-items: center;
    justify-content: center;

    /* No CSS circle/background */
    border: none;
    border-radius: 0;
    background: transparent;

    transition: transform 0.3s ease;
}


/* SVG */
.faq-arrow-icon {
    display: block;

    width: 30px;
    height: 30px;

    object-fit: contain;

    /*
     * Converts a black SVG to white.
     * Remove this if your SVG is already white.
     */
    filter: brightness(0) invert(1);

    transition: transform 0.3s ease;
}


/* ========================================
   HOVER
   No fill/background
======================================== */

.faq-question:hover .faq-arrow {
    background: transparent;
    color: inherit;
}

.faq-question:hover .faq-arrow-icon {
    filter: brightness(0) invert(1);
}


/* ========================================
   OPEN STATE
   Right arrow becomes down arrow
======================================== */

.faq-question[aria-expanded="true"] .faq-arrow {
    background: transparent;

    transform: rotate(90deg);
}

.faq-question[aria-expanded="true"] .faq-arrow-icon {
    filter: brightness(0) invert(1);
}

@media (max-width: 767px) {

    .faq-arrow,
    .faq-arrow-icon {
        width: 27px;
        height: 27px;
    }

    .faq-arrow {
        flex-basis: 27px;
    }
}


@media (max-width: 480px) {

    .faq-arrow,
    .faq-arrow-icon {
        width: 24px;
        height: 24px;
    }

    .faq-arrow {
        flex-basis: 24px;
    }
}

.faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    overflow: hidden;
    transition: grid-template-rows 0.4s ease;
}

.faq-answer-inner {
    min-height: 0;
    overflow: hidden;
}

.faq-item.active .faq-answer {
    grid-template-rows: 1fr;
}

.faq-arrow-icon {
    transition: transform 0.3s ease;
}

.faq-question[aria-expanded="true"] .faq-arrow-icon {
    transform: rotate(90deg);
}

/* =========================================================
   FAQ + CONTACT HERO
   FINAL HEADER ALIGNMENT FIX
========================================================= */

/* ---------- FAQ ---------- */

.faq-page-hero-content {
    position: relative;
    z-index: 2;

    width: 90%;
    max-width: 1400px;
    min-height: 700px;
    height: 100%;

    margin: 0 auto;
    padding: 0 20px;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;

    text-align: left;
}


/* =========================================================
   FAQ HERO - FINAL ALIGNMENT FIX
   Header desktop gutter = 5%
   Header tablet gutter  = 4%
   Header mobile gutter  = 16px
========================================================= */

.faq-page-hero-content {
    position: relative;
    z-index: 2;

    width: 90%;
    max-width: 1400px;
    min-height: 700px;
    height: 100%;

    margin-left: auto;
    margin-right: auto;

    /* Remove the extra 20px offset from earlier FAQ rules */
    padding-left: 0;
    padding-right: 0;

    box-sizing: border-box;

    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;

    text-align: left;
}

.faq-page-hero-inner {
    width: 100%;
    max-width: none;

    margin: 0;
    padding: 0;

    display: flex;
    flex-direction: column;
    align-items: flex-start;

    text-align: left;
}

.faq-page-hero .kd-breadcrumb {
    align-self: flex-start;
    margin-left: 0;
    margin-right: 0;
}

.faq-page-hero-content h1 {
    width: 100%;
    max-width: none;

    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;

    color: #ffffff;
    text-align: left;
}

/* Tablet: matches .site-header { padding: 0 4%; } */
@media (max-width: 1100px) {
    .faq-page-hero-content {
        width: 92%;
        padding-left: 0;
        padding-right: 0;
    }
}

/* Mobile: matches .site-header { padding: 0 16px; } */
@media (max-width: 767px) {
    .faq-page-hero-content {
        width: auto !important;
        min-height: 100% !important;

        margin-left: 16px !important;
        margin-right: 16px !important;

        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .faq-page-hero-inner,
    .faq-page-hero-content h1 {
        margin-left: 0 !important;
        padding-left: 0 !important;
    }

    /* FAQ mobile: move only the breadcrumb slightly inward */
    .faq-page-hero .kd-breadcrumb {
        margin-left: 8px !important;
        padding-left: 14px !important;
    }

    .faq-page-hero-content h1 {
        color: #ffffff;
    }
}




/* ---------- BREADCRUMB ---------- */

.faq-page-hero .kd-breadcrumb,
.contact-page-hero .kd-breadcrumb {
    align-self: flex-start;

    margin-left: 0;
    margin-right: 0;
    margin-bottom: 16px;
}


/* ---------- HEADINGS ---------- */

.faq-page-hero-content h1,
.contact-page-hero-content h1 {
    width: 100%;
    max-width: none;

    margin-left: 0;
    margin-right: 0;

    padding: 0;

    text-align: left;
}


@media (max-width: 1100px) {

    .faq-page-hero-content {
        width: 92%;
        padding-left: 14px;
        padding-right: 14px;
    }
}

@media (max-width: 767px) {

    .faq-page-hero-content {
        width: auto;

        margin-left: 16px;
        margin-right: 16px;

        padding-left: 0;
        padding-right: 0;
    }

    .faq-page-hero .kd-breadcrumb {
        margin-bottom: 12px;
    }
}

/* =========================================================
   GLOBAL MOBILE CONTENT ALIGNMENT FIX
   Aligns page content with the mobile header's 16px gutter.
========================================================= */
@media (max-width: 767px) {

    .faq-accordion-container {
        width: auto;
        max-width: none;
        margin-left: 16px;
        margin-right: 16px;
        box-sizing: border-box;
    }
}
