/* ═══════════════════════════════════════════════════════════
   FAQ Page Styles - Redesigned & Enhanced
   ═══════════════════════════════════════════════════════════ */

/* ─── Container اصلی صفحه ─── */
.faq-page {
    width: 100%;
    background-color: var(--bg-primary, #fff);
}

/* ─── Container عمومی با عرض 1280px ─── */
.faq-page .about-section-container {
    max-width: 1280px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* ─── Hero Section ─── */
.faq-hero__content {
    max-width: 100%;
}

.faq-hero__icon {
    margin-bottom: 24px;
    color: #0f4f59;
    font-size: 3rem;
}

.faq-hero__title {
    font-size: 25px;
    font-weight: 500;
    margin-bottom: 16px;
    color: #0f4f59;
}

.faq-hero__text {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #4b5563;
    margin: 0;
}

/* ═══════════════════════════════════════════════════════════
   FAQ Items Section - Modern Accordion Style
   ═══════════════════════════════════════════════════════════ */

.faq-items {
    padding: 20px 0 80px;
}

.faq-items__container {
    max-width: 100%;
    margin: 0 auto;
}

/* ─── دسته‌بندی FAQ ─── */
.faq-category {
    margin-bottom: 50px;
}

.faq-category:last-child {
    margin-bottom: 0;
}

.faq-category__title {
    font-size: 20px;
    font-weight: 500;
    color: #0f4f59;
    margin-bottom: 30px;
    text-align: right;
}

/* ─── ریست کانتر برای شماره‌گذاری خودکار ─── */
.faq-category {
    counter-reset: faq-counter;
}

/* ─── هر آیتم FAQ ─── */
.faq-item {
    margin-bottom: 12px;
    border: 1px solid #e0e4e8;
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    transition: all 0.3s ease;
}

.faq-item:last-child {
    margin-bottom: 0;
}

.faq-item:hover {
    box-shadow: 0 4px 12px rgba(15, 79, 89, 0.08);
}

.faq-item.is-open {
    border-color: #0f4f59;
}

/* ─── دکمه سوال (Question Button) ─── */
.faq-item__question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 70px 20px 24px;
    background: #fff;
    border: none;
    cursor: pointer;
    text-align: right;
    position: relative;
    transition: all 0.3s ease;
}


/* ─── شماره سوال (دایره سمت راست) ─── */
.faq-item__question::before {
    content: counter(faq-counter, decimal-leading-zero);
    counter-increment: faq-counter;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border: 1px solid #0f4f59;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: #0f4f59;
    background: #e8f5f3;
    transition: all 0.3s ease;
}

.faq-item.is-open .faq-item__question::before {
    background: #0f4f59;
    color: #fff;
}

/* ─── متن سوال ─── */
.faq-item__question-text {
    font-size: 13px;
    font-weight: 500;
    color: #1a202c;
    line-height: 1.7;
    flex: 1;
    padding-left: 16px;
    text-align: right;
}

.faq-item.is-open .faq-item__question-text {
    color: #0f4f59;
}

/* ─── آیکون فلش (سمت چپ) ─── */
.faq-item__icon {
    position: absolute;
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
    flex-shrink: 0;
    color: #0f4f59;
    transition: transform 0.3s ease;
    width: 10px;
    height: 10px;
}

.faq-item__icon::before {
    content: "";
    position: absolute;
    width: 10px;
    height: 10px;
    border-left: 2px solid #0f4f59;
    border-bottom: 2px solid #0f4f59;
    transform: rotate(-45deg);
    transition: transform 0.3s ease;
}

.faq-item.is-open .faq-item__icon::before {
    transform: rotate(135deg) translateY(-3px);
}

/* ─── پاسخ (Answer) ─── */
/* پیش‌فرض مخفی — جلوگیری از پرش تصویری قبل از اجرای JS */
.faq-item__answer {
    overflow: hidden;
    height: 0;
    opacity: 0;
    margin-right: 45px;
}

.faq-item__answer-content {
    padding: 6px 24px 22px 24px;   /* padding روی inner div */
    color: #1a1a1a;
    line-height: 1.9;
    font-size: 12px;
    font-weight: 400;
    text-align: justify;
}

.faq-item__answer-content p {
    margin: 0 0 12px 0;
    text-align: justify;
}

.faq-item__answer-content p:last-child {
    margin-bottom: 0;
}

/* ═══════════════════════════════════════════════════════════
   CTA Section
   ═══════════════════════════════════════════════════════════ */

.faq-cta {
    padding: 60px 0;
    background-color: #f9fafb;
    text-align: center;
}

.faq-cta__content {
    max-width: 600px;
    margin: 0 auto;
}

.faq-cta__title {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 12px;
}

.faq-cta__text {
    font-size: 1.125rem;
    color: #6b7280;
    margin-bottom: 24px;
    line-height: 1.6;
}

.faq-cta__btn {
    display: inline-block;
    padding: 14px 32px;
    background: linear-gradient(135deg, #0f4f59 0%, #0a3940 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.faq-cta__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 79, 89, 0.3);
}