/* =========================================
   FAQ SECTION
========================================= */

.faq-section {
    width: 100%;
    padding: 80px 0;
    background: var(--body-bg);
    font-family: 'Poppins', sans-serif;
}

.faq-container {
    width: 100%;
    max-width: 1280px;
    padding: 0 25px;
    margin: 0 auto;
}

/* =========================================
   FAQ GRID
========================================= */

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
    align-items: start;
}

.faq-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

/* =========================================
   FAQ ITEM
========================================= */

.faq-item {
    width: 100%;
    background: var(--body-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: var(--primary-color);
}

/* =========================================
   QUESTION BUTTON
========================================= */

.faq-question {
    width: 100%;
    min-height: 90px;
    padding: 22px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    background: transparent;
    border: none;
    color: var(--heading-color);

    font-family: inherit;
    font-size: 19px;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;

    cursor: pointer;
}

.faq-question>span:first-child {
    flex: 1;
}

/* =========================================
   ARROW ICON
========================================= */

.faq-arrow {
    width: 42px;
    height: 42px;
    min-width: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;
    background: #f0f1f3;
    color: var(--text-color);

    font-size: 14px;
    transition: var(--transition);
}

.faq-arrow i {
    transition: transform 0.3s ease;
}

/* =========================================
   FAQ ANSWER
========================================= */

.faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.35s ease;
}

.faq-answer-inner {
    min-height: 0;
    overflow: hidden;
    padding: 0 25px;

    color: var(--text-color);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.65;

    transition: padding 0.3s ease;
}

/* =========================================
   ACTIVE FAQ
========================================= */

.faq-item.active {
    background: #f3f5ff;
    border-color: var(--primary-color);
}

.faq-item.active .faq-question {
    color: var(--heading-color);
}

.faq-item.active .faq-arrow {
    background: var(--primary-color);
    color: var(--light-text);
}

.faq-item.active .faq-arrow i {
    transform: rotate(90deg);
}

.faq-item.active .faq-answer {
    grid-template-rows: 1fr;
}

.faq-item.active .faq-answer-inner {
    padding: 0 25px 25px;
}

/* =========================================
   TABLET
========================================= */

@media (max-width: 991px) {

    .faq-section {
        padding: 65px 0;
    }

    .faq-grid {
        gap: 18px;
    }

    .faq-column {
        gap: 16px;
    }

    .faq-question {
        min-height: 82px;
        padding: 20px;
        font-size: 16px;
        gap: 12px;
    }

    .faq-arrow {
        width: 38px;
        height: 38px;
        min-width: 38px;
    }

    .faq-answer-inner {
        padding-left: 20px;
        padding-right: 20px;
        font-size: 14px;
    }

    .faq-item.active .faq-answer-inner {
        padding: 0 20px 20px;
    }
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 767px) {

    .faq-section {
        padding: 50px 0;
    }

    .faq-container {
        padding: 0 18px;
    }

    .faq-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .faq-column {
        gap: 14px;
    }

    .faq-question {
        min-height: 75px;
        padding: 17px;
        font-size: 15px;
        line-height: 1.45;
    }

    .faq-arrow {
        width: 35px;
        height: 35px;
        min-width: 35px;
        font-size: 12px;
    }

    .faq-answer-inner {
        font-size: 13px;
        line-height: 1.7;
        padding-left: 17px;
        padding-right: 17px;
    }

    .faq-item.active .faq-answer-inner {
        padding: 0 17px 18px;
    }
}

/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 380px) {

    .faq-container {
        padding: 0 12px;
    }

    .faq-item {
        border-radius: 14px;
    }

    .faq-question {
        min-height: 68px;
        padding: 14px;
        font-size: 14px;
        gap: 10px;
    }

    .faq-arrow {
        width: 32px;
        height: 32px;
        min-width: 32px;
    }

    .faq-answer-inner {
        font-size: 12px;
    }

}

/* =========================================
   REDUCED MOTION
========================================= */

@media (prefers-reduced-motion: reduce) {

    .faq-section *,
    .faq-section *::before,
    .faq-section *::after {
        transition: none !important;
        animation: none !important;
    }

}