﻿/* =========================
   FAQ PAGE
========================= */

.faq-section {
    background-color: #f8fafc;
    direction: rtl;
}

.faq-title {
    font-size: 2rem;
    font-weight: 700;
    color: #0f172a;
}

.faq-subtitle {
    color: #64748b;
    max-width: 700px;
    margin: 10px auto 0;
    font-size: 1rem;
}

.faq-category {
    margin-bottom: 40px;
}

.faq-category-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--main-feature-color) !important;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* CARD */
.faq-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* QUESTION */
.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 18px 20px;
    font-size: 1rem;
    font-weight: 500;
    text-align: right;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    color: #0f172a;
}

.faq-question:hover {
    background-color: #f1f5f9;
}

/* ICON */
.faq-icon {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--main-feature-color) !important;
    transition: transform 0.3s ease;
}

/* ANSWER */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    color: #475569;
    line-height: 1.8;
    font-size: 0.95rem;
    transition: max-height 0.4s ease, padding 0.3s ease;
}

/* ACTIVE STATE */
.faq-card.active .faq-answer {
    max-height: 500px;
    padding: 15px 20px 20px;
}

.faq-card.active .faq-icon {
    transform: rotate(45deg);
}

/* LIST */
.faq-answer ul {
    padding-right: 18px;
    margin: 10px 0;
}

.faq-answer li {
    margin-bottom: 6px;
}

/* MOBILE */
@media (max-width: 768px) {
    .faq-title {
        font-size: 1.6rem;
    }

    .faq-question {
        font-size: 0.95rem;
    }
}
