
/* =========================================================
   FAQ SECTION
========================================================= */

.faq-section {

    width: 100%;

    padding: 90px 20px;

    background: var(--bg-body);

    font-family: var(--font-main);

    box-sizing: border-box;
}


/* =========================================================
   CONTAINER
========================================================= */

.faq-container {

    width: 100%;

    max-width: 980px;

    margin: 0 auto;
}


/* =========================================================
   HEADER
========================================================= */

.faq-header {

    text-align: center;

    max-width: 720px;

    margin: 0 auto 45px;
}


.faq-label {

    display: inline-flex;

    align-items: center;

    padding: 6px 14px;

    margin-bottom: 14px;

    border-radius: 30px;

    background: var(--primary-blue-soft);

    color: var(--primary-blue);

    border: 1px solid rgba(37, 99, 235, 0.15);

    font-size: 13px;

    font-weight: 700;

    letter-spacing: 0.5px;

    text-transform: uppercase;
}


.faq-header h2 {

    margin: 0 0 14px;

    color: var(--text-dark);

    font-size: 36px;

    line-height: 1.2;

    font-weight: 800;
}


.faq-header p {

    margin: 0;

    color: var(--text-muted);

    font-size: 15px;

    line-height: 1.7;
}


.faq-header strong {

    color: var(--text-dark);
}


/* =========================================================
   FAQ LIST
========================================================= */

.faq-list {

    display: flex;

    flex-direction: column;

    gap: 12px;
}


/* =========================================================
   FAQ ITEM
========================================================= */

.faq-item {

    background: rgba(255, 255, 255, 0.75);

    border: 1px solid var(--border-light);

    border-radius: 16px;

    overflow: hidden;

    transition:
        border-color 0.3s ease,
        box-shadow 0.3s ease,
        transform 0.3s ease;
}


.faq-item:hover {

    border-color: rgba(37, 99, 235, 0.25);

    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.06);
}


/* ACTIVE ITEM */

.faq-item.active {

    border-color: rgba(37, 99, 235, 0.25);

    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.08);
}


/* =========================================================
   QUESTION BUTTON
========================================================= */

.faq-question {

    width: 100%;

    border: 0;

    outline: none;

    background: transparent;

    padding: 21px 22px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    cursor: pointer;

    text-align: left;

    color: var(--text-dark);

    font-family: inherit;

    font-size: 16px;

    font-weight: 700;
}


/* =========================================================
   QUESTION HOVER
========================================================= */

.faq-question:hover {

    color: var(--primary-blue);
}


/* =========================================================
   ICON
========================================================= */

.faq-icon {

    width: 32px;

    height: 32px;

    min-width: 32px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background: var(--primary-blue-soft);

    color: var(--primary-blue);

    transition:
        transform 0.35s ease,
        background 0.3s ease,
        color 0.3s ease;
}


.faq-icon i {

    font-size: 13px;

    transition: transform 0.35s ease;
}


/* ACTIVE ICON */

.faq-item.active .faq-icon {

    background: var(--primary-blue);

    color: #ffffff;
}


.faq-item.active .faq-icon i {

    transform: rotate(45deg);
}


/* =========================================================
   ANSWER
========================================================= */

.faq-answer {

    display: grid;

    grid-template-rows: 0fr;

    transition: grid-template-rows 0.4s ease;
}


.faq-answer p {

    min-height: 0;

    overflow: hidden;

    margin: 0;

    padding: 0 22px;

    color: var(--text-muted);

    font-size: 15px;

    line-height: 1.75;

    opacity: 0;

    transform: translateY(-5px);

    transition:
        opacity 0.3s ease,
        transform 0.3s ease,
        padding 0.4s ease;
}


/* =========================================================
   OPEN ANSWER
========================================================= */

.faq-item.active .faq-answer {

    grid-template-rows: 1fr;
}


.faq-item.active .faq-answer p {

    padding: 0 22px 22px;

    opacity: 1;

    transform: translateY(0);
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .faq-section {

        padding: 65px 15px;
    }


    .faq-header {

        margin-bottom: 30px;
    }


    .faq-header h2 {

        font-size: 28px;
    }


    .faq-header p {

        font-size: 14px;

        line-height: 1.65;
    }


    .faq-list {

        gap: 10px;
    }


    .faq-question {

        padding: 18px 16px;

        font-size: 14px;

        line-height: 1.5;

        gap: 12px;
    }


    .faq-icon {

        width: 30px;

        height: 30px;

        min-width: 30px;
    }


    .faq-answer p {

        padding-left: 16px;

        padding-right: 16px;

        font-size: 14px;

        line-height: 1.7;
    }


    .faq-item.active .faq-answer p {

        padding-left: 16px;

        padding-right: 16px;

        padding-bottom: 18px;
    }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .faq-answer,
    .faq-answer p,
    .faq-icon,
    .faq-icon i {

        transition: none !important;
    }

}


