/* تنظیمات کلی صفحه */
.faq-wrapper {
    width: 98%;
    max-width: 1100px;
    margin: 80px auto 35px; /* هماهنگ با صفحه تماس */
    padding: 0 12px;
    box-sizing: border-box;
    font-family: 'IRANSansWeb', Tahoma, sans-serif;
    direction: rtl;
    text-align: right;
}

/* کادر اصلی سفید رنگ */
.faq-card-container {
    width: 100%;
    margin: 0;
    background: #fff;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid #edf0f2;
    box-sizing: border-box;
}

/* عنوان داخل کادر با آیکون و خط نازک زیرین (الگوی مشترک) */
.qt-card-header {
    display: flex;
    align-items: flex-start; /* تراز از بالا برای زمانی که توضیحات چند خط شود */
    gap: 12px;
    padding-bottom: 15px;
    margin-bottom: 25px;
    border-bottom: 1px solid #f0f4f8;
}

.qt-card-icon {
    color: #003366;
    flex-shrink: 0;
    margin-top: 3px; /* تنظیم ارتفاع آیکون با خط اول متن */
}

.qt-card-header-text h1 {
    font-size: 20px;
    color: #003366;
    font-weight: bold;
    margin: 0 0 8px 0;
}

.qt-card-header-text p {
    color: #64748b;
    font-size: 14px;
    margin: 0;
    line-height: 1.6;
}

/* ========================================= */
/* استایل‌های آکاردئون سوالات متداول */
/* ========================================= */
.faq-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px; /* کمی گردتر هماهنگ با سایر باکس‌ها */
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.faq-item:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.faq-question {
    width: 100%;
    text-align: right;
    padding: 18px 20px;
    background: none;
    border: none;
    font-size: 15px;
    font-weight: bold;
    color: #1e293b;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s ease;
    font-family: inherit;
}

.faq-question:hover {
    color: #0066cc;
}

.faq-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #64748b;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-right: 15px; /* فاصله آیکون بازشو از متن سوال */
}

.faq-item.active {
    border-color: #0066cc;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.08);
}

.faq-item.active .faq-question {
    color: #0066cc;
    border-bottom: 1px dashed #e2e8f0;
}

.faq-item.active .faq-icon {
    background: #0066cc;
    color: #ffffff;
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: #fafaf9;
}

.faq-answer-inner {
    padding: 18px 20px;
    color: #475569;
    font-size: 14px;
    line-height: 2;
}

.faq-answer-inner a {
    color: #0066cc;
    text-decoration: none;
    font-weight: bold;
}

/* ========================================= */
/* باکس پشتیبانی انتهایی */
/* ========================================= */
.faq-support-box {
    margin-top: 35px;
    background: linear-gradient(135deg, #eff6ff 0%, #e0f2fe 100%);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    border: 1px solid #bfdbfe;
}

.faq-support-box h3 {
    color: #1e3a8a;
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 17px;
    font-weight: bold;
}

.faq-support-box p {
    color: #3b82f6;
    margin-bottom: 20px;
    font-size: 14px;
}

.faq-support-btn {
    display: inline-block;
    background: #0066cc;
    color: #fff;
    padding: 10px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.3s ease;
}

.faq-support-btn:hover {
    background: #004b99;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .faq-wrapper { margin-top: 75px; }
    .faq-card-container { padding: 18px; }
    .qt-card-header-text h1 { font-size: 18px; }
    .faq-question { font-size: 14px; padding: 15px; }
    .faq-answer-inner { font-size: 13px; padding: 15px; }
    .faq-icon { width: 28px; height: 28px; }
}