/* FAQ Page Styling */

.faq-hero {
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.9) 0%, rgba(15, 23, 42, 0.95) 100%), url('/assets/images/hero-banner.webp') center/cover;
    padding: 6rem 1rem;
    text-align: center;
    color: white;
}

.faq-hero h1 {
    color: white;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.faq-hero p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.15rem;
    max-width: 650px;
    margin: 0 auto;
}

.faq-hero .breadcrumb a {
    color: rgba(255, 255, 255, 0.7);
}

.faq-hero .breadcrumb a:hover {
    color: white;
}

.faq-hero .breadcrumb span {
    color: rgba(255, 255, 255, 0.4);
}

.faq-section {
    padding: 5rem 1.5rem;
    background: var(--bg-secondary);
    min-height: 60vh;
}

.faq-container {
    max-width: var(--container-width);
    margin: 0 auto;
}

.faq-layout {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}

/* Sidebar Navigation */
.faq-sidebar {
    width: 250px;
    flex-shrink: 0;
    position: sticky;
    top: 100px;
}

.faq-sidebar-box {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.faq-sidebar-box h3 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.faq-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.faq-nav-list li {
    margin-bottom: 0.5rem;
}

.faq-nav-list a {
    display: block;
    padding: 0.5rem 0.75rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    font-size: 0.95rem;
    font-weight: 500;
}

.faq-nav-list a:hover {
    background: var(--bg-tertiary);
    color: var(--accent-primary);
}

.faq-nav-list a.active {
    background: rgba(30, 64, 175, 0.05);
    color: var(--accent-primary);
    font-weight: 600;
}

/* Main Content Area */
.faq-content-area {
    flex-grow: 1;
    min-width: 0;
    /* Prevent flex overflow */
}

/* Category Blocks */
.faq-category-block {
    margin-bottom: 3.5rem;
    scroll-margin-top: 100px;
    /* Offset for fixed header when anchoring */
}

.faq-category-block:last-child {
    margin-bottom: 0;
}

.faq-category-title {
    font-size: 1.75rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

/* Accordion Specifics */
.faq-accordion-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-details {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.faq-details:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--accent-secondary);
}

/* Summary styling represents the visible question bar */
.faq-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    user-select: none;
    list-style: none;
    /* Remove default triangle in FF/Chrome */
    transition: background var(--transition-fast);
}

/* Hide default summary arrow in Webkit explicitly */
.faq-summary::-webkit-details-marker {
    display: none;
}

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

.faq-question-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
    padding-right: 1rem;
}

.faq-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

/* Open state styles */
.faq-details[open] {
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-md);
}

.faq-details[open] .faq-summary {
    border-bottom: 1px solid var(--border-color);
    background: rgba(30, 64, 175, 0.02);
}

.faq-details[open] .faq-question-text {
    color: var(--accent-primary);
}

.faq-details[open] .faq-icon {
    transform: rotate(180deg);
    color: var(--accent-primary);
}

.faq-answer {
    padding: 1.5rem;
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1rem;
    background: var(--bg-primary);
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Empty state */
.empty-faq-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    border: 1px dashed var(--border-color);
}

.empty-faq-state .empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.empty-faq-state h2 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.empty-faq-state p {
    color: var(--text-muted);
}

/* Support CTA Section */
.faq-support-cta {
    padding: 5rem 1.5rem;
    background: white;
    border-top: 1px solid var(--border-color);
}

.support-cta-box {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 3.5rem 2rem;
    border: 1px solid var(--border-color);
}

.support-cta-box h2 {
    font-size: 2.25rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.support-cta-box p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.support-contact-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.support-contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg-primary);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    min-width: 250px;
    text-align: left;
}

.sci-icon {
    font-size: 1.5rem;
    line-height: 1;
}

.sci-details {
    display: flex;
    flex-direction: column;
}

.sci-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.2rem;
}

.sci-value {
    color: var(--accent-primary);
    font-weight: 600;
    text-decoration: none;
    font-size: 1.1rem;
}

.sci-value:hover {
    text-decoration: underline;
}

/* Responsive constraints */
@media (max-width: 900px) {
    .faq-layout {
        flex-direction: column;
    }

    .faq-sidebar {
        width: 100%;
        position: static;
    }

    .faq-sidebar-box {
        padding: 1rem;
    }

    .faq-nav-list {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .faq-nav-list li {
        margin-bottom: 0;
    }

    .faq-nav-list a {
        background: var(--bg-tertiary);
        border: 1px solid transparent;
    }

    .faq-nav-list a.active {
        background: rgba(30, 64, 175, 0.05);
        border-color: rgba(30, 64, 175, 0.2);
    }
}

@media (max-width: 600px) {
    .support-contact-grid {
        flex-direction: column;
        align-items: center;
    }

    .support-contact-item {
        width: 100%;
    }
}