/* ==========================================================================
   Category FAQ Component Styles - Premium E-commerce Theme
   ========================================================================== */

.category-faq-section {
    padding: 60px 0 80px;
    background-color: #fafbfc;
    border-top: 1px solid #eef2f6;
    direction: rtl;
    text-align: right;
    position: relative;
    z-index: 1;
    clear: both;
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.faq-title-wrap {
    text-align: center;
    margin-bottom: 36px;
}

.faq-title-wrap h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.25rem, 2.2vw + 0.3rem, 1.65rem);
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.faq-subtitle {
    font-family: var(--font-subheading);
    font-size: clamp(0.9rem, 1.1vw + 0.2rem, 1rem);
    color: #64748b;
    margin: 0;
    line-height: 1.6;
}

.faq-accordion-wrapper {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.faq-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.015);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
    overflow: hidden;
}

.faq-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    transform: translateY(-1px);
}

.faq-card.open {
    border-color: #94a3b8;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
}

.faq-question {
    margin: 0;
    padding: 0;
    font-size: 100%;
    font-weight: normal;
}

.faq-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    padding: 18px 24px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: right;
    direction: rtl;
    outline: none;
    font-family: inherit;
    color: #1e293b;
    box-sizing: border-box;
    transition: background-color 0.2s ease;
}

.faq-header:hover {
    background-color: #f8fafc;
}

.faq-card.open .faq-header {
    background-color: #fcfdfe;
}

.faq-question-text {
    flex: 1 1 auto;
    text-align: right;
    font-family: var(--font-ui);
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    transition: color 0.2s ease;
}

.faq-card.open .faq-question-text {
    color: #0f172a;
}

.faq-icon-wrap {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #f1f5f9;
    color: #64748b;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box;
    line-height: 1;
    transition: background-color 0.25s ease, color 0.25s ease;
}

.faq-header:hover .faq-icon-wrap {
    background-color: #e2e8f0;
    color: #1e293b;
}

.faq-card.open .faq-icon-wrap {
    background-color: #0f172a;
    color: #ffffff;
}

.faq-chevron {
    font-size: 12px;
    line-height: 1;
    display: inline-block;
    transform-origin: center center;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-card.open .faq-chevron {
    transform: rotate(180deg);
}

/* انیمیشن بازشدن مدرن با استفاده از Grid */
.faq-body {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-card.open .faq-body {
    grid-template-rows: 1fr;
}

.faq-content {
    min-height: 0;
    overflow: hidden;
}

.faq-content p {
    padding: 0 24px 20px 24px;
    margin: 0;
    font-family: var(--font-base);
    font-size: 14.5px;
    line-height: 1.85;
    color: #475569;
    border-top: 1px solid #f1f5f9;
    padding-top: 16px;
    text-align: right;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
    .category-faq-section {
        padding: 40px 0 60px;
    }
    
    .faq-title-wrap h2 {
        font-size: 20px;
    }
    
    .faq-subtitle {
        font-size: 13.5px;
    }
    
    .faq-header {
        padding: 15px 18px;
        gap: 12px;
    }
    
    .faq-question-text {
        font-size: 14px;
    }
    
    .faq-content p {
        padding: 0 18px 16px 18px;
        font-size: 13.5px;
        padding-top: 12px;
    }
    
    .faq-icon-wrap {
        width: 28px;
        height: 28px;
        flex: 0 0 28px;
    }

    .faq-chevron {
        font-size: 11px;
    }
}

/* ==========================================================================
   Category Trust Section Styles (Inspired by EyeBuyDirect)
   ========================================================================== */

.category-trust-section {
    background-color: #f7f8f9; /* خاکستری ملایم */
    padding: 60px 0;
    border-top: 1px solid #eef2f6;
    direction: rtl;
    text-align: right;
    position: relative;
    z-index: 1;
    clear: both;
    margin-top: 40px;
}

.trust-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.trust-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a202c;
    margin-top: 0;
    margin-bottom: 16px;
    letter-spacing: -0.3px;
}

.trust-description {
    font-size: 15px;
    line-height: 1.8;
    color: #4a5568;
    margin: 0;
}

.trust-description a {
    color: var(--primary, #D4AF37);
    text-decoration: underline;
    text-underline-offset: 4px;
    font-weight: 600;
    transition: color 0.2s ease;
}

.trust-description a:hover {
    color: var(--primary-hover, #B8860B);
}

@media (max-width: 768px) {
    .category-trust-section {
        padding: 40px 0;
    }
    
    .trust-title {
        font-size: 18px;
        margin-bottom: 12px;
    }
    
    .trust-description {
        font-size: 13.5px;
        line-height: 1.7;
    }
}
