/* static/css/faq.css - Two-Column Layout */

body {
    position: relative; /* For scrollspy if we use Bootstrap's or similar */
}

.faq-page-container {
    padding-top: 40px; /* Space from main header */
    padding-bottom: 80px;
}

.faq-main-header {
    text-align: center;
    margin-bottom: 50px;
}

.faq-main-header h1 {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.faq-main-header p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 650px;
    margin: 0 auto;
}

.faq-layout-grid {
    display: flex;
    gap: 40px; /* Gap between sidebar and content */
}

.faq-sidebar {
    width: 300px; /* Fixed width for sidebar */
    flex-shrink: 0;
    position: sticky;
    top: 100px; /* Start sticky below main header (adjust if header height changes) */
    height: calc(100vh - 120px); /* Adjust height based on top offset */
    overflow-y: auto; /* Scroll sidebar if content is too long */
    padding-right: 20px; /* Space before content */
}

.faq-sidebar h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 16px;
}

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

.faq-nav-list li a {
    display: block;
    padding: 10px 15px;
    color: var(--text-light);
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.faq-nav-list li a:hover {
    background-color: var(--background-light);
    color: var(--primary);
}

.faq-nav-list li a.active {
    background-color: var(--primary-lightest, #eef2ff); /* A very light primary shade */
    color: var(--primary);
    font-weight: 500;
}

.faq-content-area {
    flex-grow: 1;
}

.faq-content-category {
    margin-bottom: 50px;
    /* For scrollspy targeting */
    scroll-margin-top: 100px; /* Offset for sticky header */
}

.faq-content-category h2 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.faq-qna-item {
    margin-bottom: 30px;
}

.faq-qna-item h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.faq-qna-item p,
.faq-qna-item ul,
.faq-qna-item li {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-light);
    margin-bottom: 16px;
}

.faq-qna-item ul {
    padding-left: 20px;
    list-style-type: disc;
}

.faq-qna-item a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.faq-qna-item a:hover {
    text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 992px) { /* Tablet and below */
    .faq-layout-grid {
        flex-direction: column;
        gap: 30px;
    }
    .faq-sidebar {
        width: 100%;
        position: static; /* No longer sticky */
        height: auto;
        overflow-y: visible;
        padding-right: 0;
        margin-bottom: 30px; /* Space before content when stacked */
    }
    .faq-sidebar h3 {
        text-align: center;
    }
    .faq-nav-list {
        display: flex;
        flex-wrap: wrap; /* Allow nav items to wrap */
        justify-content: center;
        gap: 10px;
    }
    .faq-nav-list li a {
        background-color: var(--background-light);
        padding: 8px 15px;
    }
     .faq-content-category {
        scroll-margin-top: 20px; /* Adjust for non-sticky header */
    }
}

@media (max-width: 768px) { /* Smaller mobile */
    .faq-main-header h1 {
        font-size: 2.2rem;
    }
    .faq-main-header p {
        font-size: 1rem;
    }
    .faq-content-category h2 {
        font-size: 1.7rem;
    }
    .faq-qna-item h4 {
        font-size: 1.1rem;
    }
} 