/* ===== FAQ (improved layout — matches ityweb-full-page.html) ===== */
.faq {
    background: var(--bg);
    padding: 100px 24px 80px;
}

.faq-wrap {
    max-width: 1060px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 80px;
    align-items: start;
}

.faq-left {
    position: sticky;
    top: 88px;
}

.faq-left .section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.faq-left .section-tag svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.faq-left h2 {
    font-size: clamp(1.75rem, 3vw, 2.4rem);
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: 14px;
}

.faq-left h2 .faq-title-hi {
    color: var(--primary);
}

.faq-left > p {
    font-size: 0.93rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 32px;
}

.faq-stats {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-stat {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.faq-stat-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--primary-softer);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.faq-stat-icon svg {
    width: 17px;
    height: 17px;
    color: var(--primary);
}

.faq-stat-num {
    font-family: 'Readex Pro', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.faq-stat-lbl {
    font-size: 0.77rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.faq-right {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.faq-item {
    border-bottom: 1px solid var(--border);
    background: transparent;
    border-radius: 0;
    margin-bottom: 0;
    overflow: visible;
    box-shadow: none;
}

.faq-item:first-child {
    border-top: 1px solid var(--border);
}

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

.faq-item.open {
    border-color: var(--border);
    box-shadow: none;
}

.faq-q {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 4px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Tajawal', 'Readex Pro', sans-serif;
    font-size: 0.97rem;
    font-weight: 700;
    color: var(--text-primary);
    text-align: inherit;
    transition: color 0.25s ease;
}

.faq-q-text {
    flex: 1;
    min-width: 0;
    text-align: inherit;
}

.faq-q:hover {
    color: var(--primary);
}

.faq-item.open .faq-q {
    color: var(--primary);
}

.faq-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: var(--radius-xs);
    background: var(--bg);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-icon svg {
    width: 13px;
    height: 13px;
    color: var(--text-muted);
    transition: color 0.2s;
}

.faq-item.open .faq-icon {
    background: var(--primary-softer);
    border-color: var(--primary-soft);
    transform: rotate(45deg);
}

.faq-item.open .faq-icon svg {
    color: var(--primary);
}

.faq-a {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.38s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.open .faq-a {
    grid-template-rows: 1fr;
}

.faq-a-inner {
    overflow: hidden;
    min-height: 0;
    padding: 0 40px 0 0;
    font-size: 0.91rem;
    color: var(--text-secondary);
    line-height: 1.8;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.28s ease, transform 0.32s cubic-bezier(0.4, 0, 0.2, 1), padding 0.32s ease;
}

.faq-item.open .faq-a-inner {
    padding-bottom: 22px;
    opacity: 1;
    transform: translateY(0);
}

.faq-support {
    margin-top: 28px;
    padding: 22px 24px;
    background: linear-gradient(135deg, var(--primary-softer) 0%, #f0f7ff 100%);
    border: 1px solid var(--primary-soft);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.faq-support-txt p:first-child {
    font-size: 0.94rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.faq-support-txt p:last-child {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin: 0;
}

.faq-support-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--primary);
    color: var(--white);
    font-family: 'Tajawal', 'Readex Pro', sans-serif;
    font-size: 0.875rem;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 10px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
    white-space: nowrap;
}

.faq-support-btn svg {
    width: 13px;
    height: 13px;
}

.faq-support-btn:hover {
    background: var(--primary-light);
    transform: translateY(-1px);
    color: var(--white);
}

/* RTL */
[dir="rtl"] .faq-q {
    text-align: right;
}

[dir="rtl"] .faq-a-inner {
    padding: 0 0 22px 40px;
    text-align: right;
}

[dir="ltr"] .faq-q {
    text-align: left;
}

[dir="ltr"] .faq-a-inner {
    text-align: left;
}

@media (max-width: 900px) {
    .faq-wrap {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .faq-left {
        position: static;
    }

    .faq-stats {
        flex-direction: row;
    }
}

@media (max-width: 768px) {
    .faq {
        padding: 72px 16px 64px;
    }

    .faq-stats {
        flex-direction: column;
    }

    .faq-support {
        flex-direction: column;
        align-items: flex-start;
    }

    .faq-a-inner {
        padding-right: 0;
        padding-left: 0;
    }

    [dir="rtl"] .faq-a-inner {
        padding-left: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .faq-a,
    .faq-a-inner,
    .faq-icon,
    .faq-q {
        transition: none;
    }

    .faq-item.open .faq-a-inner {
        transform: none;
    }
}
