/* ========================================
   استایل اصلی FAQ - کاملاً ریسپانسیو
======================================== */

.faq-container {
    max-width: 100% !important;
    width: 100% !important;
    margin: 30px auto !important;
    padding: 0 15px !important;
    font-family: 'IRANSans', 'Tahoma', sans-serif;
    direction: rtl;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

.faq-title {
    font-size: 28px;
    font-weight: bold;
    color: #1a3b5d;
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 12px;
    border-bottom: 3px solid #3B82F6;
    display: inline-block;
    width: auto;
    max-width: 100%;
    box-sizing: border-box;
}

.faq-item {
    background: #f9fafc;
    border-radius: 12px;
    margin-bottom: 12px;
    padding: 5px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    border-right: 4px solid #3B82F6;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    display: block !important;
}

.faq-item:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    background: #ffffff;
}

.faq-question {
    font-size: 17px;
    font-weight: 600;
    color: #1a3b5d;
    padding: 16px 20px;
    cursor: pointer;
    display: flex !important;
    align-items: center;
    gap: 10px;
    transition: color 0.2s;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
}

.faq-question .icon {
    font-size: 20px;
    width: 30px;
    min-width: 30px;
    text-align: center;
    flex-shrink: 0;
}

.faq-question:hover {
    color: #3B82F6;
}

.faq-answer {
    font-size: 15px;
    color: #4a5568;
    line-height: 1.8;
    padding: 0 20px 16px 20px;
    display: none;
    border-top: 1px dashed #e2e8f0;
    margin-top: 4px;
    padding-top: 16px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-item.active .faq-question .icon {
    transform: rotate(180deg);
    transition: transform 0.3s;
}


/* ========================================
   تنظیمات مخصوص موبایل
======================================== */

@media (max-width: 768px) {

    .faq-container {
        padding: 0 12px !important;
        margin: 20px auto !important;
    }

    .faq-title {
        font-size: 22px !important;
        padding-bottom: 10px !important;
    }

    .faq-question {
        font-size: 15px !important;
        padding: 14px 16px !important;
        gap: 8px !important;
        flex-wrap: wrap !important;
    }

    .faq-question .icon {
        font-size: 18px !important;
        width: 25px !important;
        min-width: 25px !important;
    }

    .faq-answer {
        font-size: 14px !important;
        padding: 0 16px 14px 16px !important;
        line-height: 1.7 !important;
    }
}


@media (max-width: 480px) {

    .faq-container {
        padding: 0 8px !important;
    }

    .faq-title {
        font-size: 20px !important;
    }

    .faq-question {
        font-size: 14px !important;
        padding: 12px 12px !important;
    }

    .faq-answer {
        font-size: 13px !important;
        padding: 0 12px 12px 12px !important;
    }
}


/* ========================================
   آپلودر رو جلدی
======================================== */

/* فقط وقتی این کلاس اضافه شود آپلودر مخفی می‌شود */
.cover-upload-hidden {
    display: none !important;
}