/* ===================================================
   منصة باحثون - قسم الأسئلة الشائعة (FAQ)
   assets/css/faq.css
   =================================================== */

.faq-section {
    padding: 80px 0;
    background: var(--bg-color);
    position: relative;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.faq-item:hover {
    border-color: var(--brand-accent);
}

.faq-question {
    width: 100%;
    text-align: right;
    padding: 20px 25px;
    background: none;
    border: none;
    font-size: 18px;
    font-weight: 700;
    color: var(--heading-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: inherit;
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: var(--brand-accent);
}

.faq-icon {
    font-size: 24px;
    color: var(--brand-accent);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background: rgba(59, 130, 246, 0.02);
}

.faq-answer-inner {
    padding: 0 25px 25px;
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-muted);
}

/* Dark Mode Adjustments */
body.dark-mode .faq-item {
    background: var(--card-bg);
}
body.dark-mode .faq-answer {
    background: rgba(0, 0, 0, 0.2);
}

/* ─── Responsive FAQ ─── */
@media (max-width: 768px) {
    .faq-section {
        padding: 60px 0;
    }
    .faq-question {
        padding: 16px 18px;
        font-size: 15px;
        gap: 10px;
    }
    .faq-answer-inner {
        padding: 0 18px 18px;
        font-size: 14px;
    }
    .faq-icon {
        font-size: 20px;
        flex-shrink: 0;
    }
}

@media (max-width: 480px) {
    .faq-question {
        padding: 14px 15px;
        font-size: 14px;
    }
    .faq-answer-inner {
        padding: 0 15px 15px;
        font-size: 13px;
    }
}
