/* ============================================================
   SICOMP — FAQ.CSS
   صفحه سوالات متداول
   نسخه: 1.0
   ============================================================ */

/* هیرو مخصوص FAQ */
.faq-hero .article-hero__bg {
    background-image: url('../images/software-illustration.jpg');
}

/* گروه‌بندی دسته‌ها */
.faq-category {
    max-width: 100%;
    margin: 0 0 30px;
}

.faq-category__title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 17px;
    font-weight: 900;
    color: var(--navy);
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--line);
}
.faq-category__title i {
    color: var(--blue);
    font-size: 18px;
}

/* آکاردئون */
.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.faq-item {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color .2s, box-shadow .2s;
}
.faq-item.is-open {
    border-color: var(--blue);
    box-shadow: 0 4px 16px rgba(8, 120, 220, .1);
}

.faq-item__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 16px 20px;
    background: transparent;
    border: 0;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    color: var(--navy);
    text-align: right;
    cursor: pointer;
    transition: background .2s;
}
.faq-item__toggle:hover {
    background: var(--pale);
}

.faq-item__question {
    flex: 1;
    line-height: 1.7;
}

.faq-item__arrow {
    font-size: 14px;
    color: var(--blue);
    transition: transform .3s;
    flex-shrink: 0;
}
.faq-item.is-open .faq-item__arrow {
    transform: rotate(180deg);
}

.faq-item__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
}
.faq-item.is-open .faq-item__answer {
    max-height: 800px;
}

.faq-item__answer-inner {
    padding: 0 20px 18px;
    font-size: 13px;
    line-height: 2.1;
    color: #3d4b63;
    border-top: 1px solid var(--line);
    padding-top: 16px;
    margin: 0 20px 18px;
    padding-left: 0;
    padding-right: 0;
}

/* حالت بدون نتیجه */
.faq-no-result {
    text-align: center;
    padding: 40px 20px;
    color: var(--muted);
    font-size: 14px;
    background: var(--pale);
    border-radius: 12px;
    margin-top: 20px;
}

/* ==================== ریسپانسیو ==================== */
@media (max-width: 760px) {
    .faq-item__toggle {
        padding: 14px 16px;
        font-size: 13px;
        gap: 8px;
    }
    .faq-item__answer-inner {
        padding-top: 12px;
        margin: 0 16px 14px;
        font-size: 12px;
    }
    .faq-category__title {
        font-size: 15px;
    }
}