/* FAQ Page Styles */
:root {
    --primary-color: #0091ff;
    --primary-dark: #0061cc;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --border-color: #e5e7eb;
    --sidebar-width: 320px;
    --nav-height: 80px;
    --transition: all 0.3s ease;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-secondary);
    line-height: 1.6;
}

/* FAQ Page Section */
.faq-page {
    position: relative;
    margin: 0;
    padding: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.faq-page .content {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    max-width: 1400px;
    width: 100%;
    margin: 120px 0px;
    padding: 0 20px;
}

/* Sidebar */
.sidebar {
    display: block;
    flex-direction: column;
    min-width: var(--sidebar-width);
    max-width: var(--sidebar-width);
    margin-right: 60px;
    background: var(--bg-primary);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.sidebar-header {
    padding: 25px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
}

.sidebar-header h2 {
    font-size: 20px;
    font-weight: 600;
}

.sidebar-nav {
    padding: 20px 0;
}

.nav-category {
    margin-bottom: 8px;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
    user-select: none;
}

.category-header:hover {
    background: var(--bg-secondary);
}

.category-icon {
    font-size: 18px;
}

.category-toggle {
    margin-left: auto;
    transition: transform 0.3s ease;
}

.nav-category.collapsed .category-toggle {
    transform: rotate(-90deg);
}

.section-list {
    max-height: 1000px;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.nav-category.collapsed .section-list {
    max-height: 0;
}

.section-item {
    padding: 8px 25px 8px 55px;
}

.section-link {
    display: block;
    padding: 8px 12px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    border-radius: 6px;
    transition: var(--transition);
}

.section-link:hover {
    background: var(--bg-secondary);
    color: var(--primary-color);
}

.section-link.active {
    background: var(--primary-color);
    color: white;
    font-weight: 500;
}

/* Main Content */
.main-content {
    display: block;
    flex: 1;
    min-width: 0;
}

.content-wrapper {
    max-width: 900px;
}

.page-header {
    text-align: left;
}

.page-header h1 {
    font-size: 42px;
    font-weight: 700;
    color: var(--text-primary);
}

.page-header .subtitle {
    font-size: 18px;
    color: var(--text-secondary);
}

/* FAQ Content */
.faq-content {
    display: block;
    width: 100%;
}

.faq-category {
    display: block;
    padding-bottom: 24px;
    padding-top: 24px;
    padding-left: 0px;
    padding-right: 0px;
}

.category-title {
    display: flex;
    align-items: left;
    gap: 15px;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--text-primary);
    padding-bottom: 15px;
    border-bottom: 3px solid var(--primary-color);
}

.category-title-icon {
    font-size: 36px;
}

.faq-section {
    margin-bottom: 40px;
    scroll-margin-top: 20px;
}

.section-title {
    font-size: 24px;
    font-weight: 600;
    padding-top: 24px;
    color: var(--text-primary);
}

.faq-article {
    background: var(--bg-primary);
    border-radius: 12px;
    padding: 25px 30px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    scroll-margin-top: 20px;
}

.faq-article:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.article-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
}

.article-content {
    color: var(--text-secondary);
    line-height: 1.8;
}

.article-content h4 {
    color: var(--text-primary);
    margin: 15px 0 10px;
    font-size: 16px;
}

.article-content ul,
.article-content ol {
    margin: 15px 0;
    padding-left: 25px;
}

.article-content li {
    margin: 8px 0;
}

.article-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

.article-content em {
    color: var(--text-secondary);
    font-style: italic;
    font-size: 14px;
}

.article-content a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

.article-content a:hover {
    border-bottom-color: var(--primary-color);
}

/* Page Footer */
.page-footer {
    margin-top: 80px;
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.page-footer p {
    margin: 10px 0;
    color: var(--text-secondary);
}

.page-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.page-footer a:hover {
    color: var(--primary-dark);
}

/* Responsive Design */
@media (max-width: 990px) {
    .faq-page .content {
        flex-direction: column;
        margin: 80px 0px;
    }

    .sidebar {
        max-width: 100%;
        margin-right: 0;
        margin-bottom: 40px;
    }

    .sidebar {
        display: none;
    }

    .main-content {
        margin: 2rem;
    }
}

@media (max-width: 768px) {
    .faq-page .content {
        padding: 0 15px;
        margin: 60px 0px;
    }

    .page-header h1 {
        font-size: 32px;
    }

    .page-header .subtitle {
        font-size: 16px;
    }

    .category-title {
        font-size: 26px;
    }

    .section-title {
        font-size: 20px;
    }

    .faq-article {
        padding: 20px;
    }

    .sidebar {
        display: none;
    }

    .main-content {
        margin: 2rem;
    }
}

@media (max-width: 480px) {
    .faq-page .content {
        padding: 0 10px;
    }

    .page-header h1 {
        font-size: 28px;
    }

    .category-title {
        font-size: 22px;
    }

    .section-title {
        font-size: 18px;
    }

    .article-title {
        font-size: 16px;
    }

    .sidebar {
        display: none;
    }

    .main-content {
        margin: 2rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

.sidebar::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}