/* ============================================================
   صفحة «الأسئلة الشائعة» — مطابقة لتصميم فيغما (إطار 1280، node 183:2718)
   تُحمَّل بعد style.css فتتقدّم قواعدها على قواعد الصفحة القديمة هناك.
   ============================================================ */
.faq-page {
    --faq-teal: #038e94;
    --faq-teal-line: #048e94;
    --faq-navy: #0f2b4b;
    --faq-card: #0c2848;
    --faq-text: #434655;
    --faq-ink: #191c1d;
    --faq-frame: 1280px;
    font-family: 'Tajawal', sans-serif;
}

/* ---------- Hero: العنوان 48/60 على بُعد 130 من الهيدر و76 فوق التبويبات ---------- */
.faq-page .faq-hero {
    padding: 130px 24px 76px;
    background: #fff;
    text-align: center;
    overflow: visible;
}
.faq-page .faq-hero::before { content: none; }
.faq-page .faq-hero h1 {
    margin: 0;
    color: var(--faq-teal);
    font-size: 48px;
    line-height: 60px;
    font-weight: 700;
    letter-spacing: -0.96px;
}

/* ---------- التبويبات + القائمة ---------- */
.faq-page .faq-section {
    max-width: var(--faq-frame);
    margin: 0 auto;
    padding: 0 24px 88px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 48px;
}
.faq-page .faq-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin: 0;
    padding: 0;
    max-width: none;
    width: 100%;
}
.faq-page .faq-tab {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 12px 24px;
    background: #fff;
    border: 0;
    border-radius: 9999px;
    box-shadow: none;
    font-family: 'Tajawal', sans-serif;
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
    color: var(--faq-text);
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}
.faq-page .faq-tab img {
    display: block;
    flex: none;
    /* الأصول المصدّرة ملوّنة ثابتاً؛ نوحّدها إلى الرمادي ونقلبها للأبيض عند التفعيل */
    filter: brightness(0) invert(.28);
}
.faq-page .faq-tab:hover { background: #f3f4f5; }
.faq-page .faq-tab.active {
    background: var(--faq-teal);
    color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, .1), 0 2px 4px -2px rgba(0, 0, 0, .1);
}
.faq-page .faq-tab.active img { filter: brightness(0) invert(1); }

.faq-page .faq-content {
    width: 768px;
    max-width: 100%;
    margin: 0;
    padding: 0;
}
.faq-page .faq-category { display: none; }
.faq-page .faq-category.active-category {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.faq-page .faq-item {
    margin: 0;
    border: 0;
    border-bottom: 1px solid var(--faq-teal-line);
    border-radius: 12px;
    overflow: hidden;
    padding-bottom: 1px;
}
.faq-page .faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 24px;
    border-radius: 12px;
    cursor: pointer;
}
.faq-page .faq-question:hover { background: #f8f9fa; }
.faq-page .faq-question h3 {
    margin: 0;
    color: var(--faq-ink);
    font-size: 14px;
    line-height: 20px;
    font-weight: 700;
}
.faq-page .faq-chevron {
    display: block;
    flex: none;
    transition: transform .3s ease;
}
.faq-page .faq-question.open .faq-chevron { transform: rotate(180deg); }
.faq-page .faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 24px;
    transition: max-height .3s ease;
}
.faq-page .faq-answer p {
    margin: 0;
    padding: 0 0 24px;
    color: var(--faq-text);
    font-size: 14px;
    line-height: 20px;
}

/* ---------- CTA: شريط 135 بخلفية خضراء ---------- */
.faq-page .faq-cta {
    position: relative;
    height: 135px;
    padding: 0;
    background: var(--faq-teal);
    overflow: hidden;
    text-align: right;
}
.faq-page .faq-cta::before {
    content: '';
    position: absolute;
    left: -128px;
    top: -128px;
    width: 256px;
    height: 256px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    filter: blur(32px);
}
.faq-page .faq-cta::after { content: none; }
.faq-page .faq-cta__inner {
    position: relative;
    z-index: 1;
    max-width: var(--faq-frame);
    height: 100%;
    margin: 0 auto;
    padding: 0 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.faq-page .faq-cta__text h2 {
    margin: 0 0 7px;
    color: #fff;
    font-size: 32px;
    line-height: 40px;
    font-weight: 700;
}
.faq-page .faq-cta__text p {
    margin: 0;
    color: rgba(255, 255, 255, .8);
    font-size: 16px;
    line-height: 24px;
}
.faq-page .faq-cta__btn {
    flex: none;
    height: 48px;
    padding: 0 48px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid var(--faq-navy);
    border-radius: 12px;
    color: var(--faq-navy);
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
    text-decoration: none;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, .1), 0 4px 6px -4px rgba(0, 0, 0, .1);
    transition: transform .2s ease;
}
.faq-page .faq-cta__btn:hover { transform: translateY(-2px); }
.faq-page .faq-cta__btn img { display: block; flex: none; }

/* ---------- الحرفيون: شبكة 12 عموداً، البطاقة الكحلية 5 أعمدة يميناً والصورتان 7 يساراً ---------- */
.faq-page .faq-spotlight {
    max-width: 1232px;
    margin: 0 auto;
    padding: 88px 0 0;
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-template-rows: 404px;
    gap: 48px;
    align-items: center;
    direction: ltr;
}
.faq-page .faq-spotlight__card {
    grid-column: 8 / span 5;
    grid-row: 1;
    position: relative;
    direction: rtl;
    text-align: right;
    padding: 48px;
    border-radius: 24px;
    background: var(--faq-card);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    overflow: hidden;
}
.faq-page .faq-spotlight__quote {
    position: absolute;
    top: 24px;
    /* في التصميم علامة الاقتباس أعلى يمين البطاقة */
    inset-inline-start: 24px;
    display: block;
}
.faq-page .faq-spotlight__card h3 {
    margin: 0;
    font-size: 24px;
    line-height: 32px;
    font-weight: 700;
    color: #fff;
}
.faq-page .faq-spotlight__card p {
    margin: 0;
    max-width: 457px;
    font-size: 16px;
    line-height: 24px;
    font-weight: 500;
    color: #fff;
}
.faq-page .faq-spotlight__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.faq-page .faq-spotlight__list li {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 24px;
    font-size: 16px;
    line-height: 24px;
    font-weight: 500;
}
.faq-page .faq-spotlight__list img { display: block; flex: none; }
.faq-page .faq-spotlight__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 48px;
    background: #fff;
    border: 1px solid var(--faq-navy);
    border-radius: 12px;
    color: var(--faq-navy);
    font-size: 16px;
    line-height: 24px;
    font-weight: 500;
    text-decoration: none;
    transition: transform .2s ease;
}
.faq-page .faq-spotlight__btn:hover { transform: translateY(-2px); }

.faq-page .faq-spotlight__photos {
    grid-column: 1 / span 7;
    grid-row: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: 404px;
    gap: 24px;
    align-items: start;
}
.faq-page .faq-spotlight__photo {
    margin: 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, .1), 0 4px 6px -4px rgba(0, 0, 0, .1);
}
.faq-page .faq-spotlight__photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
}
/* اليسرى (النجار) أخفض بـ48 وارتفاعها 268، اليمنى (الكهربائي) في الأعلى وارتفاعها 256 */
.faq-page .faq-spotlight__photo--left  { grid-column: 1; margin-top: 48px; height: 268px; }
.faq-page .faq-spotlight__photo--right { grid-column: 2; height: 256px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .faq-page .faq-spotlight {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        padding: 64px 24px 0;
        gap: 32px;
    }
    .faq-page .faq-spotlight__card { grid-column: auto; grid-row: auto; }
    .faq-page .faq-spotlight__photos { grid-column: auto; grid-row: auto; grid-template-rows: auto; }
    .faq-page .faq-spotlight__photo--left { margin-top: 32px; }
}
@media (max-width: 768px) {
    .faq-page .faq-hero { padding: 64px 24px 40px; }
    .faq-page .faq-hero h1 { font-size: 32px; line-height: 1.3; letter-spacing: 0; }
    .faq-page .faq-section { gap: 32px; padding-bottom: 56px; }
    .faq-page .faq-tabs { gap: 12px; }
    .faq-page .faq-tab { padding: 10px 18px; font-size: 14px; }
    .faq-page .faq-cta { height: auto; }
    .faq-page .faq-cta__inner { flex-direction: column; text-align: center; padding: 32px 24px; }
    .faq-page .faq-cta__text h2 { font-size: 26px; line-height: 1.3; }
    .faq-page .faq-spotlight__card { padding: 32px 24px; }
    .faq-page .faq-spotlight__card h3 { font-size: 22px; }
    .faq-page .faq-spotlight__photos { grid-template-columns: 1fr; }
    .faq-page .faq-spotlight__photo--left,
    .faq-page .faq-spotlight__photo--right { margin-top: 0; height: 240px; }
}
