/* استایل مدرن و نهایی FAQ ایرانیاز */
.faq-container {
    direction: rtl;
    width: 100%;
}

.faq-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.faq-item.open {
    border-color: #D2A038;
    box-shadow: 0 6px 20px rgba(2, 3, 27, 0.08);
}

.faq-question {
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: #ffffff;
    text-align: right;
    gap: 12px;
}

/* فونت عنوان در حالت دسکتاپ */
.faq-question h2 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.6;
    color: #0f172a;
    transition: color 0.3s ease;
}

.faq-item.open .faq-question h2 {
    color: #b48116;
}

.icon {
    width: 30px;
    height: 30px;
    min-width: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f2f6;
    border-radius: 50%;
    color: #444;
    transition: all 0.35s ease;
}

.faq-item.open .icon {
    transform: rotate(180deg);
    background: #efbc33;
    color: #02031B;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0, 1, 0, 1);
    background: #ffffff;
    padding: 0 20px;
}

/* فونت متن پاسخ در حالت دسکتاپ */
.faq-answer p {
    margin: 0 0 18px 0;
    font-size: 14px;
    line-height: 1.9;
    color: #334155;
    text-align: justify;
}

/* ریسپانسیو اختصاصی برای موبایل و تبلت‌های کوچک */
@media (max-width: 768px) {
    .faq-question {
        padding: 15px;
    }

    /* عنوان در موبایل کمی کوچک‌تر، اما بزرگ‌تر از متن توضیحات */
    .faq-question h2 {
        font-size: 13px;
    }

    .faq-answer {
        padding: 0 15px;
    }

    /* متن توضیحات در موبایل متناسب و خوانا */
    .faq-answer p {
        font-size: 12px;
        line-height: 2;
        margin-bottom: 15px;
    }
}
