/* =========================================================
   GEREELDE VRAE
========================================================= */

.faq-page {
    background: var(--cream);
}

.faq-container {
    width: min(90%, calc(100% - 40px));
    margin-inline: auto;
}

/* ---------------------------------------------------------
   INTRO
--------------------------------------------------------- */

.faq-intro {
    margin: 0 auto 60px;
    text-align: center;
}

/* ---------------------------------------------------------
   CATEGORY
--------------------------------------------------------- */

.faq-category {
    margin-bottom: 55px;
}

.faq-category-heading {
    margin-bottom: 18px;
    font-size: var(--font-body);
    font-weight: 700;
    color: #a91f23;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ---------------------------------------------------------
   FAQ ITEM
--------------------------------------------------------- */

.faq-list {
    border-top: 1px solid #d9d9d9;
}

.faq-item {
    border-bottom: 1px solid #d9d9d9;
}

/* ---------------------------------------------------------
   QUESTION
--------------------------------------------------------- */

.faq-question {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;

    padding: 24px 5px;

    border: 0;
    background: transparent;

    color: #132d48;

    font-family: inherit;
    font-size: var(--font-body);
    font-weight: 700;

    text-align: left;

    cursor: pointer;

    transition: color 0.2s ease;
}

.faq-question:hover {
    color: #a91f23;
}

/* ---------------------------------------------------------
   PLUS / MINUS
--------------------------------------------------------- */

.faq-arrow {
    flex: 0 0 auto;

    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #a91f23;
    color: #fff;

    font-size: 24px;
    font-weight: 400;
    line-height: 1;

    transition:
        transform 0.25s ease,
        background 0.25s ease;
}

.faq-question[aria-expanded="true"] .faq-arrow {
    transform: rotate(45deg);
    background: #132d48;
}

/* ---------------------------------------------------------
   ANSWER
--------------------------------------------------------- */

.faq-answer {
    display: grid;
    grid-template-rows: 0fr;

    transition: grid-template-rows 0.35s ease;
}

.faq-question[aria-expanded="true"] + .faq-answer {
    grid-template-rows: 1fr;
}

.faq-answer-inner {
    overflow: hidden;
}

.faq-answer-inner {
    padding: 0 60px 0 5px;
}

.faq-question[aria-expanded="true"] + .faq-answer .faq-answer-inner {
    padding-bottom: 25px;
}

/* Normal editor content */

.faq-answer-inner p:first-child {
    margin-top: 0;
}

.faq-answer-inner p:last-child {
    margin-bottom: 0;
}

.faq-answer-inner ul,
.faq-answer-inner ol {
    padding-left: 25px;
}

/* ---------------------------------------------------------
   EMPTY
--------------------------------------------------------- */

.faq-empty {
    text-align: center;
    padding: 40px;
}

/* ---------------------------------------------------------
   MOBILE
--------------------------------------------------------- */

@media (max-width: 767px) {
    .faq-page {
        padding: 55px 15px 70px;
    }

    .faq-container {
        width: 100%;
    }

    .faq-intro {
        margin-bottom: 40px;
    }

    .faq-question {
        padding: 20px 2px;
        font-size: var(--font-body);
        gap: 15px;
    }

    .faq-arrow {
        width: 30px;
        height: 30px;
        font-size: 21px;
    }

    .faq-answer-inner {
        padding-right: 35px;
    }
}
