/* =====================================
   FAQ Section
   Fully theme-driven (colors + fonts)
===================================== */

.home-faq-section {
    padding-top: 2.2rem;
    padding-bottom: 3.5rem;
}

/* =========================
   Section Header
========================= */
.home-faq-section .section-header {
    max-width: 720px;
    margin: 0 auto 2rem;
    text-align: center;
}

.home-faq-section .section-title {
    font-size: 1.9rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.home-faq-section .section-subtitle {
    font-size: 1rem;
    color: var(--dark);
    opacity: 0.75;
    line-height: 1.7;
}
/* =====================================
   FAQ Section Title – Match Other Sections
===================================== */

.home-faq-section .section-title {
    font-size: 28px;           /* نفس المقاس */
    font-weight: 700;
    position: relative;
    display: inline-block;
    padding-bottom: 6px;
    margin: 0;
}

/* underline */
.home-faq-section .section-title::after {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    bottom: 0;
    width: 100%;
    height: 6px;
    background-color: var(--primary-color);
    border-radius: 3px;
}


/* =========================
   Grid
========================= */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    align-items: start;
}


/* =========================
   Item
========================= */
.faq-item {
    border: 1px solid var(--primary);
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
    transition: all 0.25s ease;
}

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

/* =========================
   Question Button
========================= */
.faq-question {
    width: 100%;
    background: transparent;
    border: none;
    padding: 1.2rem 1.4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    cursor: pointer;
    text-align: start;
}

/* السؤال = عنوان */
.faq-question-text {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--dark);
    line-height: 1.5;
}

/* =========================
   Toggle Button (+)
========================= */
.faq-toggle {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 50%;
    background: #fff;
    color: var(--primary);
    border: 2px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    transition: all 0.25s ease;
}

/* RTL / LTR positioning */
html[dir="rtl"] .faq-question {
    flex-direction: row-reverse;
}

html[dir="rtl"] .faq-toggle {
    margin-left: 0;
    margin-right: 1rem;
}

/* =========================
   Answer
========================= */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.faq-answer-inner {
    padding: 0 1.4rem 1.4rem;
    font-size: 0.95rem;
    color: var(--dark);
    opacity: 0.85;
    line-height: 1.8;
}

/* =========================
   Open State
========================= */
.faq-item.is-open {
    border-color: var(--primary);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
}

.faq-item.is-open .faq-toggle {
    background: var(--primary);
    color: #fff;
    transform: rotate(45deg);
}

.faq-item.is-open .faq-answer {
    max-height: 600px;
}

/* =========================
   Responsive
========================= */
@media (max-width: 768px) {
    .faq-grid {
        grid-template-columns: 1fr;
    }

    .home-faq-section {
        padding: 3rem 0;
    }

    .home-faq-section .section-title {
        font-size: 1.6rem;
    }
}
.home-faq-section .section-subtitle {
    margin-top: 12px;
}
/* =========================
   Fix spacing before FAQ
========================= */

.home-faq-section .section-head--styled {
    margin-top: 1px;
}
