/* static/css/pages/faq.css */
/* دُرج | سوالات متداول */

.faq-page {
    min-height: 100vh;
    padding: var(--space-xl) var(--space-md);
    position: relative;
}

.faq-page__bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    opacity: 0.03;
    background-image: 
        radial-gradient(circle at 15% 30%, var(--gold) 0%, transparent 45%),
        radial-gradient(circle at 80% 65%, var(--royal-jade) 0%, transparent 45%);
}

.faq-page__container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* ── Header ── */
.faq-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.faq-header__title {
    font-size: clamp(1.8rem, 5vw, 2.4rem);
    font-weight: 800;
    background: linear-gradient(135deg, var(--dark-jade), var(--royal-jade));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: var(--space-sm);
}

.faq-header__subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.8;
}

/* ── Filter ── */
.faq-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: var(--space-xl);
}

.faq-filter__btn {
    padding: 8px 18px;
    background: white;
    border: 1.5px solid rgba(201,162,77,0.2);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--dark-jade);
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
}

.faq-filter__btn:hover { border-color: var(--gold); }
.faq-filter__btn--active { background: var(--royal-jade); color: white; border-color: var(--royal-jade); }

/* ── Sections ── */
.faq-section {
    margin-bottom: var(--space-xl);
}

.faq-section__title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark-jade);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--gold);
    display: inline-block;
}

/* ── Items ── */
.faq-item {
    background: white;
    border-radius: var(--radius-md);
    margin-bottom: var(--space-sm);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(201,162,77,0.06);
    overflow: hidden;
}

.faq-item__q {
    width: 100%;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark-jade);
    cursor: pointer;
    text-align: right;
}

.faq-item__arrow {
    font-size: 0.8rem;
    color: var(--text-muted);
    transition: transform 0.3s;
    flex-shrink: 0;
    margin-right: var(--space-sm);
}

.faq-item--open .faq-item__arrow {
    transform: rotate(180deg);
}

.faq-item__a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.faq-item--open .faq-item__a {
    max-height: 300px;
}

.faq-item__a p {
    padding: 0 20px 16px;
    color: #555;
    line-height: 1.9;
    font-size: 0.9rem;
}

.faq-item__a strong { color: var(--royal-jade); }

/* ── Back ── */
.faq-back {
    text-align: center;
    margin-top: var(--space-xl);
}

.faq-back a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--royal-jade);
    color: white;
    padding: 12px 26px;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.faq-back a:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(74,120,86,0.3);
}

/* ── Responsive ── */
@media (max-width: 767px) {
    .faq-page { padding: var(--space-md) var(--space-sm); }
    .faq-filter__btn { padding: 6px 14px; font-size: 0.8rem; }
    .faq-item__q { padding: 14px 16px; font-size: 0.9rem; }
}

@media (max-width: 480px) {
    .faq-header__title { font-size: 1.5rem; }
    .faq-section__title { font-size: 1rem; }
}