/* =========================================
   FAQ Section
========================================= */

.faq-section {
    background: #f5f7fa;
    padding: 70px 20px;
}

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


/* =========================================
   Header
========================================= */

.faq-header {
    text-align: center;
    max-width: 1000px;
    margin: 0 auto 80px;
}

.faq-title {
    margin: 0 0 20px;
    font-size: 46px;
    line-height: 1.2;
    font-weight: 700;
    color: #294d70;
}

.faq-description {
    margin: 0 auto;
    max-width: 900px;
    font-size: 20px;
    line-height: 1.5;
    color: #24486b;
}


/* =========================================
   Content Layout
========================================= */

.faq-content {
    display: grid;
    grid-template-columns: 325px minmax(0, 1fr);
    gap: 50px;
    align-items: start;
}


/* =========================================
   Sidebar
========================================= */

.faq-sidebar {
    background: #ffffff;
    border: 1px solid #e7e7e7;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04);
}

.faq-category-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.faq-category-button {
    width: 100%;
    border: 0;
    background: transparent;
    border-radius: 12px;
    padding: 18px 20px;
    text-align: left;
    font-family: inherit;
    font-size: 18px;
    line-height: 1.3;
    color: #202c38;
    cursor: pointer;
    transition: all 0.2s ease;
}

.faq-category-button:hover {
    background: #f8f8fa;
}

.faq-category-button.active {
    background: #faf9fc;
    color: #b05b8f;
    font-weight: 600;
}


/* =========================================
   FAQ List
========================================= */

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}


/* =========================================
   FAQ Item
========================================= */

.faq-item {
    background: #ffffff;
    border: 1px solid #e7e7e7;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04);
}

.faq-question {
    width: 100%;
    min-height: 100px;
    padding: 25px 30px;
    border: 0;
    background: #ffffff;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;

    text-align: left;
    font-family: inherit;

    cursor: pointer;
}

.faq-question-text {
    font-size: 23px;
    line-height: 1.4;
    font-weight: 500;
    color: #315b9b;
}

.faq-icon {
    flex: 0 0 auto;

    width: 30px;
    height: 30px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #a9568a;
    font-size: 32px;
    line-height: 1;
}

.faq-icon-minus {
    display: none;
}

.faq-item.is-open .faq-icon-plus {
    display: none;
}

.faq-item.is-open .faq-icon-minus {
    display: inline;
}


/* =========================================
   Answer
========================================= */

.faq-answer {
    padding: 0 30px 30px;
}

.faq-answer-inner {
    padding-top: 5px;

    font-size: 17px;
    line-height: 1.7;
    color: #45576a;
}

.faq-answer-inner p {
    margin-top: 0;
}

.faq-answer-inner p:last-child {
    margin-bottom: 0;
}


/* =========================================
   Hidden FAQ
========================================= */

.faq-item.is-hidden {
    display: none;
}


/* =========================================
   Responsive
========================================= */

@media (max-width: 900px) {

    .faq-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .faq-sidebar {
        width: 100%;
    }

    .faq-category-list {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .faq-category-button {
        width: auto;
    }

    .faq-header {
        margin-bottom: 45px;
    }

    .faq-title {
        font-size: 36px;
    }

    .faq-description {
        font-size: 18px;
    }
}


@media (max-width: 600px) {

    .faq-section {
        padding: 45px 15px;
    }

    .faq-title {
        font-size: 30px;
    }

    .faq-question {
        min-height: 80px;
        padding: 20px;
    }

    .faq-question-text {
        font-size: 18px;
    }

    .faq-answer {
        padding: 0 20px 20px;
    }
}