/* تنظیمات عمومی */
.faq-section {
    width: 100%;
    margin: 30px 0;
    clear: both;
}

.faq-main-title {
    text-align: center;
    margin-bottom: 25px;
}

.faq-item {
    border: 1px solid #e0e0e0;
    margin-bottom: 12px;
    border-radius: 8px;
    background-color: #fff;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.faq-question {
    padding: 16px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 !important;
}

.faq-question-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    flex: 1;
}

.faq-toggle-icon {
    font-size: 20px;
    margin-right: 15px;
    flex-shrink: 0;
    width: 24px;
    text-align: center;
}

/* --- بخش مخصوص المنتور (استفاده از انیمیشن CSS) --- */
.elementor-faq-widget .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.elementor-faq-widget .faq-item.active .faq-answer {
    max-height: 1000px;
}

/* --- بخش مخصوص خودکار (بلاگ و دسته‌بندی - استفاده از جی‌کوئری) --- */
.auto-faq-section .faq-answer {
    display: none; /* جی‌کوئری این را مدیریت می‌کند */
    overflow: hidden;
    max-height: none !important; /* غیرفعال کردن محدودیت ارتفاع CSS */
}

.faq-answer-content {
    padding: 20px;
    border-top: 1px solid #f0f0f0;
    line-height: 1.8;
    color: #555;
}