/* ════════════════════════════════════════════════
   FAQ PAGE — Dedicated Styles
   ════════════════════════════════════════════════ */

/* ─── HERO ─── */
.faq-hero {
    text-align: center;
    padding: 80px 0 48px;
}

.faq-hero h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.15;
}

.faq-hero-sub {
    color: var(--text-secondary);
    font-size: 1.08rem;
    max-width: 640px;
    margin: 0 auto 36px;
    line-height: 1.65;
}

/* ─── SEARCH ─── */
.faq-search-wrap {
    position: relative;
    max-width: 560px;
    margin: 0 auto 28px;
}

.faq-search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1rem;
    pointer-events: none;
}

.faq-search {
    width: 100%;
    padding: 16px 20px 16px 48px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.98rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.faq-search::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
}

.faq-search:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.12);
}

/* ─── CATEGORY PILLS ─── */
.faq-categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 24px;
}

.faq-cat-pill {
    padding: 9px 20px;
    border-radius: 100px;
    border: 1px solid var(--card-border);
    background: var(--card-bg);
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.faq-cat-pill:hover {
    border-color: var(--accent);
    color: var(--text-primary);
}

.faq-cat-pill.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #0a0e14;
    font-weight: 600;
}

/* ─── FAQ GROUPS ─── */
.faq-group {
    margin-bottom: 48px;
}

.faq-group h2 {
    font-size: 1.45rem;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.faq-group-icon {
    font-size: 1.3rem;
}

/* Override max-height for longer answers on faq page */
.faq-group .faq-item.open .faq-answer {
    max-height: 600px;
}

/* style links inside answers */
.faq-answer a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.faq-answer a:hover {
    color: #fff;
}

/* ─── HIDDEN STATE FOR SEARCH/FILTER ─── */
.faq-item.hidden {
    display: none;
}

.faq-group.hidden {
    display: none;
}

/* ─── NO RESULTS ─── */
.faq-no-results {
    text-align: center;
    padding: 48px 0;
    color: var(--text-secondary);
    display: none;
}

.faq-no-results.visible {
    display: block;
}

.faq-no-results span {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 12px;
}

/* ─── CTA SECTION ─── */
.faq-cta-section {
    margin: 24px 0 64px;
}

.faq-cta-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 48px 36px;
    text-align: center;
    box-shadow: var(--card-shadow);
}

.faq-cta-card h2 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.faq-cta-card p {
    color: var(--text-secondary);
    max-width: 520px;
    margin: 0 auto 28px;
    line-height: 1.65;
}

.faq-cta-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.faq-cta-btn {
    padding: 14px 32px;
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
}

.faq-cta-btn.primary {
    background: var(--accent-gradient);
    color: #0a0e14;
}

.faq-cta-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(46, 204, 113, 0.3);
}

.faq-cta-btn.secondary {
    background: transparent;
    border: 1px solid var(--card-border);
    color: var(--text-primary);
}

.faq-cta-btn.secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
    .faq-hero {
        padding: 56px 0 32px;
    }

    .faq-hero h1 {
        font-size: 1.8rem;
    }

    .faq-categories {
        gap: 8px;
    }

    .faq-cat-pill {
        padding: 7px 14px;
        font-size: 0.8rem;
    }

    .faq-cta-card {
        padding: 32px 20px;
    }

    .faq-group h2 {
        font-size: 1.2rem;
    }
}
