/* کانتینر اصلی صفحه */
.faq-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 85vh;
    padding: 60px 20px;
    background-color: #f6f8fa; /* هماهنگ با تم کلی صفحات */
    font-family: 'Vazirmatn', system-ui, -apple-system, sans-serif !important;
    direction: rtl;
}

/* کارت اصلی بخش FAQ */
.faq-card {
    background: #ffffff;
    max-width: 800px;
    width: 100%;
    padding: 45px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(4, 62, 89, 0.05);
    border: 1.5px solid #dbe2eb; /* مرز واضح و باکیفیت هماهنگ با دیزاین جدید */
    box-sizing: border-box;
}

/* هدر کارت */
.faq-header {
    text-align: center;
    margin-bottom: 35px;
}

.faq-header h1 {
    color: #043e59;
    font-size: 26px;
    font-weight: 850;
    margin: 0 0 10px 0;
}

.faq-header p {
    color: #64748b;
    font-size: 15px;
    margin: 0;
    line-height: 1.6;
}

/* لیست پرسش‌ها */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* آیتم‌های آکاردئون */
.faq-item {
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    background-color: #f8fafc;
    overflow: hidden;
    transition: all 0.25s ease-in-out;
}

/* افکت هاور روی آیتم‌ها */
.faq-item:hover {
    border-color: #067fb2;
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(6, 127, 178, 0.04);
}

/* استایل دکمه‌های سوال */
.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-align: right;
    font-family: 'Vazirmatn', sans-serif !important;
    font-size: 15px;
    font-weight: 700;
    color: #043e59;
    outline: none;
    transition: color 0.25s ease;
}

.faq-question span {
    line-height: 1.5;
}

/* آیکون فلش (Dropdown Arrow) با SVG انکود شده سازمانی */
.faq-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23043e59' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* استایل آیتم در حالت باز (Active) */
.faq-item.active {
    border-color: #043e59;
    background-color: #ffffff;
    box-shadow: 0 4px 15px rgba(4, 62, 89, 0.05);
}

.faq-item.active .faq-question {
    color: #067fb2;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23067fb2' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

/* بخش پاسخ (توضیحات پنهان/آشکار) */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-answer p {
    margin: 0;
    padding: 0 20px 20px 20px;
    color: #4a5568;
    font-size: 14px;
    line-height: 1.8;
    text-align: justify;
    border-top: 1px dashed #e2e8f0;
    padding-top: 15px;
}

/* فوتر بخش FAQ */
.faq-footer {
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1.5px solid #f0f4f8;
    text-align: center;
}

.faq-footer p {
    color: #64748b;
    font-size: 14px;
    margin: 0 0 15px 0;
}

.btn-faq-contact {
    display: inline-block;
    background-color: #043e59;
    color: #ffffff;
    padding: 10px 25px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-faq-contact:hover {
    background-color: #067fb2;
    transform: translateY(-1px);
}

/* ریسپانسیو موبایل */
@media (max-width: 768px) {
    .faq-container {
        padding: 30px 15px;
    }

    .faq-card {
        padding: 30px 20px;
    }

    .faq-header h1 {
        font-size: 22px;
    }

    .faq-question {
        font-size: 14px;
        padding: 15px;
    }
}
