/* ===================================================
   FAQ Page — aligned to welcome.css design system
   =================================================== */

/* Ensure dark body on this page too */
body.dark-page,
body.dark-page * {
    box-sizing: border-box;
}
body.dark-page {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%) !important;
    background-attachment: fixed !important;
    min-height: 100vh;
    color: #fff;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ---- Hero ---- */
.faq-hero {
    padding: 140px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.faq-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 60% 30%, rgba(46,204,113,0.10) 0%, transparent 65%);
    pointer-events: none;
}
.faq-hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.2rem;
}
.faq-hero h1 .highlight { color: #2ECC71; }
.faq-hero p {
    font-size: 1.15rem;
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto 2rem;
}
/* Search bar */
.faq-search-wrap {
    max-width: 500px;
    margin: 0 auto;
    position: relative;
}
.faq-search-wrap input {
    width: 100%;
    padding: 16px 52px 16px 22px;
    border-radius: 50px;
    border: 1.5px solid rgba(255,255,255,0.2);
    font-size: 1rem;
    background: rgba(255,255,255,0.08);
    color: #fff;
    backdrop-filter: blur(12px);
    outline: none;
    transition: border-color 0.2s, background 0.2s;
}
.faq-search-wrap input:focus {
    border-color: #2ECC71;
    background: rgba(255,255,255,0.12);
}
.faq-search-wrap input::placeholder { color: rgba(255,255,255,0.45); }
.faq-search-wrap .search-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255,255,255,0.4);
    pointer-events: none;
}

/* ---- Tab Nav ---- */
.faq-tabs {
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255,255,255,0.08);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}
.faq-tabs .inner {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    max-width: 960px;
    margin: 0 auto;
    padding: 0 1rem;
}
.faq-tabs .inner::-webkit-scrollbar { display: none; }
.faq-tab-btn {
    padding: 18px 26px;
    font-weight: 600;
    font-size: 0.88rem;
    border: none;
    background: transparent;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    letter-spacing: 0.3px;
    transition: color 0.2s, border-color 0.2s;
}

/* Maximum specificity to beat Bootstrap button reset */
body.dark-page .faq-tabs .inner .faq-tab-btn,
body.dark-page .faq-tabs .inner button.faq-tab-btn {
    color: #ffffff !important;
    opacity: 1 !important;
}
body.dark-page .faq-tabs .inner .faq-tab-btn:hover,
body.dark-page .faq-tabs .inner button.faq-tab-btn:hover {
    color: #ffffff !important;
    opacity: 1 !important;
    border-bottom-color: rgba(255,255,255,0.3) !important;
}
body.dark-page .faq-tabs .inner .faq-tab-btn.active,
body.dark-page .faq-tabs .inner button.faq-tab-btn.active {
    color: #2ECC71 !important;
    border-bottom-color: #2ECC71 !important;
    opacity: 1 !important;
}

/* ---- Content Area ---- */
.faq-content {
    max-width: 860px;
    margin: 0 auto;
    padding: 4rem 1.25rem 6rem;
}

/* ---- Section title ---- */
.faq-section { margin-bottom: 4rem; scroll-margin-top: 90px; }
.faq-section-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: #fff;
}
.faq-section-heading .badge-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #2ECC71;
    flex-shrink: 0;
    box-shadow: 0 0 10px rgba(46,204,113,0.5);
}

/* ---- Accordion items (glassmorphism cards) ---- */
.faq-item {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 16px;
    margin-bottom: 10px;
    overflow: hidden;
    transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
}
.faq-item:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(46,204,113,0.35);
}
.faq-item.open {
    background: rgba(46,204,113,0.07);
    border-color: rgba(46,204,113,0.55);
    box-shadow: 0 4px 30px rgba(46,204,113,0.10);
}
.faq-question {
    padding: 20px 24px;
    font-weight: 600;
    font-size: 0.97rem;
    color: #fff;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.2rem;
    user-select: none;
}
.faq-question .faq-toggle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(46,204,113,0.12);
    border: 1.5px solid rgba(46,204,113,0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: #2ECC71;
    flex-shrink: 0;
    transition: transform 0.3s, background 0.2s;
}
.faq-item.open .faq-toggle {
    transform: rotate(45deg);
    background: #2ECC71;
    color: #fff;
    border-color: #2ECC71;
}
.faq-answer {
    padding: 0 24px 20px;
    color: rgba(255,255,255,0.75);
    line-height: 1.8;
    font-size: 0.95rem;
    display: none;
}
.faq-item.open .faq-answer { display: block; }

/* ---- No results ---- */
.faq-no-results {
    text-align: center;
    padding: 4rem 1rem;
    color: rgba(255,255,255,0.4);
    display: none;
}
.faq-no-results i { font-size: 2.5rem; margin-bottom: 1rem; display: block; }

/* ---- CTA Banner ---- */
.faq-cta {
    background: linear-gradient(135deg, #2ECC71 0%, #27AE60 100%);
    border-radius: 24px;
    padding: 3.5rem 2rem;
    text-align: center;
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
}
.faq-cta::before {
    content: '\f072';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: -20px;
    bottom: -20px;
    font-size: 10rem;
    color: rgba(255,255,255,0.07);
    pointer-events: none;
}
.faq-cta h2 {
    font-size: 1.9rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.75rem;
}
.faq-cta p {
    color: rgba(255,255,255,0.85);
    font-size: 1.05rem;
    margin-bottom: 1.75rem;
}
.btn-faq-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: #fff;
    color: #27AE60;
    padding: 14px 36px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}
.btn-faq-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.2);
    color: #1a8a3c;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .faq-hero { padding: 120px 0 60px; }
    .faq-question { font-size: 0.92rem; }
    .faq-cta h2 { font-size: 1.5rem; }
}
