/* FAQ Page - Preview2 Theme */
/* Based on contact page design with accordion FAQ styling */

:root {
    --primary: #0EA5E9;
    --primary-hover: #0284C7;
    --cta: #14B8A6;
    --navy: #0F172A;
    --navy-soft: #1E293B;
    --surface: #FFFFFF;
    --bg: #F8FAFC;
    --border: #E2E8F0;
    --text: #475569;
}

body.dark-mode {
    --bg: #020617;
    --surface: #0F172A;
    --navy: #E2E8F0;
    --navy-soft: #CBD5E1;
    --primary: #38BDF8;
    --cta: #2DD4BF;
    --border: #334155;
    --text: #94A3B8;
}

/* Header Logo Section Fix */
.logo-section a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-section .site-logo {
    width: 52px;
    height: 52px;
    object-fit: contain;
}

.logo-section h1 {
    font-size: 20px;
    margin: 0;
    color: white;
    font-weight: 700;
}

body.dark-mode .logo-section h1 {
    color: white;
}

/* FAQ Hero Section */
.faq-hero {
    text-align: center;
    color: white;
    margin: 50px 0 40px 0;
    padding: 20px;
}

.faq-hero h1 {
    font-size: 40px;
    margin-bottom: 16px;
    font-weight: 700;
    color: white;
}

.faq-hero p {
    font-size: 18px;
    opacity: .9;
    max-width: 600px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.9);
}

/* FAQ Category Section */
.faq-category {
    max-width: 1000px;
    margin: 0 auto 50px auto;
}

.faq-category h2 {
    color: white;
    font-size: 28px;
    margin-bottom: 20px;
    font-weight: 700;
}

/* FAQ Item (Accordion) */
.faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* FAQ Question (Clickable) */
.faq-question {
    padding: 18px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    color: var(--navy);
    user-select: none;
    transition: background 0.2s ease;
}

.faq-question:hover {
    background: var(--bg);
}

.faq-icon {
    font-size: 24px;
    font-weight: 400;
    color: var(--primary);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 16px;
}

/* FAQ Answer (Hidden by default) */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 24px;
    color: var(--text);
    line-height: 1.7;
    font-size: 15px;
}

/* Active State */
.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 24px 20px 24px;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

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

/* Help Card Section */
.help-card {
    max-width: 1000px;
    margin: 60px auto 40px auto;
    padding: 40px;
    background: linear-gradient(135deg, #1E293B, #0F172A);
    color: white;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.help-card h2 {
    color: white;
    font-size: 28px;
    margin: 0 0 12px 0;
    font-weight: 700;
}

.help-card p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    margin: 0 0 24px 0;
    line-height: 1.6;
}

.help-btn {
    display: inline-block;
    padding: 12px 28px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.2s ease;
}

.help-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(14, 165, 233, 0.3);
}

/* Dark Mode Overrides */
body.dark-mode .faq-hero h1,
body.dark-mode .faq-hero p {
    color: #F1F5F9;
}

body.dark-mode .faq-category h2 {
    color: #F1F5F9;
}

body.dark-mode .faq-item {
    background: var(--surface);
    border-color: var(--border);
}

body.dark-mode .faq-question {
    color: var(--navy);
}

body.dark-mode .faq-question:hover {
    background: var(--bg);
}

body.dark-mode .faq-answer {
    color: var(--text);
}

body.dark-mode .help-card {
    background: linear-gradient(135deg, #1E3A8A, #0F172A);
}

body.dark-mode .help-card h2,
body.dark-mode .help-card p {
    color: #F1F5F9;
}

/* Responsive Design */
@media (max-width: 900px) {
    .faq-category {
        max-width: 100%;
    }

    .help-card {
        max-width: 100%;
    }
}

@media (max-width: 600px) {
    .faq-hero h1 {
        font-size: 28px;
    }

    .faq-hero p {
        font-size: 16px;
    }

    .faq-category h2 {
        font-size: 24px;
    }

    .faq-question {
        padding: 16px 18px;
        font-size: 15px;
    }

    .faq-answer {
        padding: 0 18px;
        font-size: 14px;
    }

    .faq-item.active .faq-answer {
        padding: 0 18px 18px 18px;
    }

    .help-card {
        padding: 30px 20px;
    }

    .help-card h2 {
        font-size: 24px;
    }

    .help-card p {
        font-size: 15px;
    }
}
