/* Knowledge Base Page Premium Design - Matching Landing Page Aesthetic */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    background-color: #000000;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Skip Link for Accessibility */
.skip-link {
    display: none;
    /*position: absolute;
    top: -40px;
    left: 6px;
    background-color: #ffffff;
    color: #000000;
    padding: 8px;
    z-index: 10000;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;*/
}

.skip-link:focus {
    top: 6px;
}

/* Loading State */
.loading-state {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #333333;
    border-top: 3px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-state p {
    color: #999999;
    font-size: 1rem;
}

/* Breadcrumb Navigation */
.breadcrumb-nav {
    background-color: #111111;
    border-bottom: 1px solid #333333;
    padding: 1rem 0;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    color: #999999;
    font-size: 0.875rem;
}

.breadcrumb-item a {
    color: #999999;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: #ffffff;
}

.breadcrumb-item.current {
    color: #ffffff;
    font-weight: 500;
}

.breadcrumb-arrow {
    width: 16px;
    height: 16px;
    margin: 0 0.5rem;
    color: #666666;
}

.breadcrumb-item:last-child .breadcrumb-arrow {
    display: none;
}

/* Hero Header */
.knowledge-hero {
    text-align: center;
    padding: 4rem 0;
    position: relative;
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    border-bottom: 1px solid #333333;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(74, 144, 226, 0.1) 0%, transparent 70%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.knowledge-hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 300;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    color: #ffffff;
}

.hero-subheading {
    font-size: 1.25rem;
    color: #4a90e2;
    margin-bottom: 2rem;
    font-weight: 400;
}

.hero-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.hero-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #999999;
    font-size: 0.875rem;
}

.hero-meta svg {
    width: 16px;
    height: 16px;
}

/* Main Content Grid */
.main-content {
    padding: 4rem 0;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 4rem;
    align-items: start;
}

/* Primary Content */
.primary-content {
    max-width: none;
}

/* Table of Contents */
.table-of-contents {
    background-color: #1a1a1a;
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 3rem;
    border: 1px solid #333333;
}

.table-of-contents h2 {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.table-of-contents ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.table-of-contents li {
    margin-bottom: 0.75rem;
}

.table-of-contents a {
    color: #4a90e2;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    display: block;
    padding: 0.5rem 0;
}

.table-of-contents a:hover {
    color: #357abd;
}

/* Content Sections */
.content-section {
    margin-bottom: 4rem;
}

.content-section h2 {
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 2rem;
    color: #ffffff;
    border-bottom: 2px solid #333333;
    padding-bottom: 1rem;
}

.explanation-content {
    margin-bottom: 2rem;
}

.explanation-content p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #cccccc;
    margin-bottom: 1.5rem;
}

/* Key Points Callout */
.key-points-callout {
    background: linear-gradient(135deg, #1a3a5c 0%, #2a4a6c 100%);
    border-radius: 1rem;
    padding: 2rem;
    margin: 2rem 0;
    border-left: 4px solid #4a90e2;
}

.key-points-callout h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 1.5rem;
}

.key-points-callout svg {
    width: 24px;
    height: 24px;
    color: #4a90e2;
}

.key-points-callout ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.key-points-callout li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
    color: #e0e0e0;
    line-height: 1.6;
}

.key-points-callout li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: #4a90e2;
    font-weight: bold;
    font-size: 1.1rem;
}

/* FAQ Section */
.faq-list {
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid #333333;
}

.faq-item {
    border-bottom: 1px solid #333333;
    background-color: #1a1a1a;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-toggle {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    background: transparent;
    border: none;
    color: #ffffff;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-toggle:hover {
    background-color: #222222;
}

.faq-toggle h3 {
    font-size: 1.25rem;
    font-weight: 500;
    margin: 0;
    color: inherit;
    flex: 1;
    margin-right: 1rem;
}

.faq-arrow {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
    color: #999999;
    flex-shrink: 0;
}

.faq-item.active .faq-arrow {
    transform: rotate(180deg);
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: #222222;
}

.faq-item.active .faq-content {
    max-height: 100%;
    padding-top: 1rem;
}

.faq-content p {
    padding: 0 2rem 2rem 2rem;
    margin: 0;
    color: #cccccc;
    font-size: 1rem;
    line-height: 1.6;
}

/* Legal Info Section */
.legal-info {
    background-color: #1a1a1a;
    border-radius: 1rem;
    padding: 2rem;
    border: 1px solid #333333;
}

.legal-citation {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.legal-citation svg {
    width: 24px;
    height: 24px;
    color: #4a90e2;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.citation-content h4 {
    font-size: 1.125rem;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 0.75rem;
}

.citation-content p {
    color: #cccccc;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.citation-content p:last-child {
    margin-bottom: 0;
}

/* CTA Section */
.cta-section {
    margin-top: 4rem;
    padding-top: 4rem;
    border-top: 1px solid #333333;
}

.cta-card {
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    border-radius: 1.5rem;
    padding: 3rem;
    text-align: center;
    border: 1px solid #333333;
}

.cta-content h2 {
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 1rem;
    border: none;
    padding: 0;
}

.cta-content p {
    font-size: 1.125rem;
    color: #cccccc;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: 2rem;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.cta-btn.primary {
    background-color: #ffffff;
    color: #000000;
}

.cta-btn.primary:hover {
    background-color: #f0f0f0;
}

.cta-btn.secondary {
    background: transparent;
    color: #ffffff;
    border: 1px solid #ffffff;
}

.cta-btn.secondary:hover {
    background-color: #ffffff;
    color: #000000;
}

.cta-btn svg {
    width: 18px;
    height: 18px;
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: 2rem;
}

.sidebar-widget {
    background-color: #1a1a1a;
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid #333333;
}

.sidebar-widget h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.125rem;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 1.5rem;
}

.sidebar-widget svg {
    width: 20px;
    height: 20px;
    color: #4a90e2;
}

.sidebar-widget p {
    color: #cccccc;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.help-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background-color: #4a90e2;
    color: #ffffff;
    border-radius: 1.5rem;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.help-btn:hover {
    background-color: #357abd;
}

/* Related Topics */
.related-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.related-list li {
    margin-bottom: 0.75rem;
}

.related-list a {
    color: #4a90e2;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid #333333;
}

.related-list a:hover {
    color: #357abd;
}

.related-list li:last-child a {
    border-bottom: none;
}

/* Emergency Resources */
.resource-item {
    margin-bottom: 2rem;
}

.resource-item:last-child {
    margin-bottom: 0;
}

.resource-item h4 {
    font-size: 1rem;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.resource-item p {
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.resource-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #ff6b35;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.resource-link:hover {
    color: #e55a2b;
}

/* Footer */
.site-footer {
    background-color: #0a0a0a;
    border-top: 1px solid #333333;
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 4rem;
    align-items: start;
}

.footer-brand h3 {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

.footer-brand p {
    color: #999999;
    line-height: 1.6;
    font-size: 1rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-column h4 {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column li {
    margin-bottom: 0.75rem;
}

.footer-column a {
    color: #cccccc;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: #ffffff;
}

.footer-bottom {
    border-top: 1px solid #333333;
    padding-top: 2rem;
}

.footer-legal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-legal p {
    color: #999999;
    font-size: 0.9rem;
    margin: 0;
}

.footer-legal-links {
    display: flex;
    gap: 2rem;
}

.footer-legal-links a {
    color: #cccccc;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-legal-links a:hover {
    color: #ffffff;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .sidebar {
        position: static;
    }
    
    .footer-main {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .knowledge-hero {
        padding: 2rem 0;
    }
    
    .hero-meta {
        gap: 1rem;
    }
    
    .content-grid {
        gap: 2rem;
    }
    
    .table-of-contents,
    .sidebar-widget,
    .cta-card {
        padding: 1.5rem;
    }
    
    .footer-content {
        gap: 2rem;
    }
    
    .footer-main {
        gap: 2rem;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-legal {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .footer-legal-links {
        gap: 1.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .knowledge-hero h1 {
        font-size: 2rem;
    }
    
    .hero-subheading {
        font-size: 1rem;
    }
    
    .content-section h2 {
        font-size: 1.5rem;
    }
    
    .faq-toggle {
        padding: 1.5rem;
    }
    
    .faq-toggle h3 {
        font-size: 1.125rem;
    }
    
    .faq-content p {
        padding: 0 1.5rem 1.5rem 1.5rem;
    }
    
    .cta-content h2 {
        font-size: 1.75rem;
    }
    
    .breadcrumb-nav {
        padding: 0.75rem 0;
    }
    
    .breadcrumb-item {
        font-size: 0.8rem;
    }
}

/* Focus States */
.faq-toggle:focus,
.cta-btn:focus,
.help-btn:focus {
    outline: 2px solid #4a90e2;
    outline-offset: 2px;
}

/* Animation for FAQ items */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-section {
    animation: fadeIn 0.6s ease forwards;
}

/* Smooth scrolling for table of contents */
html {
    scroll-behavior: smooth;
}

/* Knowledge Index Specific Styles */

/* Search Section */
.search-section {
    padding: 2rem 0;
    border-bottom: 1px solid #333333;
}

.search-container {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    background-color: #1a1a1a;
    border: 1px solid #333333;
    border-radius: 3rem;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

.search-box:focus-within {
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.search-icon {
    width: 20px;
    height: 20px;
    color: #999999;
    margin-right: 1rem;
    flex-shrink: 0;
}

#knowledge-search {
    flex: 1;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 1rem;
    outline: none;
}

#knowledge-search::placeholder {
    color: #666666;
}

.clear-search {
    display: none;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: transparent;
    border: none;
    color: #999999;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
    margin-left: 0.5rem;
}

.clear-search:hover {
    color: #ffffff;
    background-color: #333333;
}

.clear-search svg {
    width: 16px;
    height: 16px;
}

/* Search Dropdown */
.search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #1a1a1a;
    border: 1px solid #333333;
    border-radius: 1rem;
    margin-top: 0.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
}

.search-result-item {
    border-bottom: 1px solid #333333;
    transition: all 0.2s ease;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover,
.search-result-item.selected {
    background-color: #222222;
}

.search-result-item a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    text-decoration: none;
    color: inherit;
    gap: 1rem;
}

.result-main {
    flex: 1;
    min-width: 0;
}

.result-title {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
    font-weight: 500;
    color: #ffffff;
    line-height: 1.3;
}

.result-subtitle {
    margin: 0;
    font-size: 0.875rem;
    color: #cccccc;
    line-height: 1.4;
}

.result-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
    color: #999999;
}

.result-faq-count {
    font-size: 0.8rem;
    white-space: nowrap;
}

.result-meta svg {
    width: 16px;
    height: 16px;
    color: #4a90e2;
    transition: transform 0.2s ease;
}

.search-result-item:hover .result-meta svg,
.search-result-item.selected .result-meta svg {
    transform: translateX(2px);
}

.search-no-results {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 2rem;
    color: #999999;
    font-size: 0.95rem;
}

.search-no-results svg {
    width: 20px;
    height: 20px;
    color: #666666;
}

/* Search highlighting */
.result-title mark,
.result-subtitle mark {
    background-color: rgba(74, 144, 226, 0.3);
    color: #4a90e2;
    padding: 0.1em 0.2em;
    border-radius: 0.25em;
    font-weight: 600;
}

/* Knowledge Content */
.knowledge-content {
    padding: 4rem 0;
}

/* Featured Section */
.featured-section {
    margin-bottom: 4rem;
}

.featured-section h2 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 1rem;
    color: #ffffff;
}

.featured-section svg {
    width: 28px;
    height: 28px;
    color: #4a90e2;
}

.featured-section p {
    color: #999999;
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

/* Essential Topics List */
.essential-topics-list {
    background-color: #1a1a1a;
    border-radius: 1rem;
    border: 1px solid #4a90e2;
    overflow: hidden;
}

/* All Topics List */
.all-topics-list {
    background-color: #1a1a1a;
    border-radius: 1rem;
    border: 1px solid #333333;
    overflow: hidden;
}

/* Topic List Items */
.topic-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #333333;
    transition: all 0.2s ease;
}

.topic-list-item:last-child {
    border-bottom: none;
}

.topic-list-item:hover {
    background-color: #222222;
}

.topic-list-item.essential:hover {
    background-color: rgba(74, 144, 226, 0.1);
}

.topic-info {
    flex: 1;
    min-width: 0;
}

.topic-name {
    margin: 0 0 0.5rem 0;
    font-size: 1.125rem;
    font-weight: 500;
    line-height: 1.3;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.topic-name a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.topic-name a:hover {
    color: #4a90e2;
}

.essential-badge {
    background-color: #4a90e2;
    color: #ffffff;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.topic-desc {
    color: #cccccc;
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.4;
}

.topic-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-shrink: 0;
}

.faq-count {
    color: #999999;
    font-size: 0.875rem;
    white-space: nowrap;
}

.read-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #4a90e2;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.read-link:hover {
    color: #357abd;
    gap: 0.75rem;
}

.read-link svg {
    width: 14px;
    height: 14px;
    transition: transform 0.2s ease;
}

.read-link:hover svg {
    transform: translateX(2px);
}

/* All Topics Section */
.all-topics-section {
    margin-bottom: 4rem;
}

.all-topics-section h2 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 2rem;
    color: #ffffff;
    border-bottom: 2px solid #333333;
    padding-bottom: 1rem;
}

.all-topics-section svg {
    width: 28px;
    height: 28px;
    color: #4a90e2;
}

/* Removed - using list layout instead */

/* Topic Cards */
.topic-card {
    background-color: #1a1a1a;
    border-radius: 1rem;
    border: 1px solid #333333;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.topic-card:hover {
    background-color: #222222;
    border-color: #4a90e2;
    box-shadow: 0 8px 32px rgba(74, 144, 226, 0.1);
}

.topic-card.featured {
    border-color: #4a90e2;
    background: linear-gradient(135deg, #1a3a5c 0%, #1a1a1a 100%);
}

.featured-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: #4a90e2;
    color: #ffffff;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.topic-header {
    margin-bottom: 1.5rem;
}

.topic-header h3 {
    margin: 0 0 0.75rem 0;
    font-size: 1.375rem;
    font-weight: 500;
    line-height: 1.3;
}

.topic-header h3 a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.topic-header h3 a:hover {
    color: #4a90e2;
}

.topic-subheading {
    color: #4a90e2;
    font-size: 0.95rem;
    font-weight: 500;
    margin: 0;
}

.topic-content {
    margin-bottom: 2rem;
}

.topic-explanation {
    color: #cccccc;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.topic-meta {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.topic-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #999999;
    font-size: 0.875rem;
}

.topic-meta svg {
    width: 16px;
    height: 16px;
}

.topic-footer {
    border-top: 1px solid #333333;
    padding-top: 1.5rem;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: #4a90e2;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.read-more-btn:hover {
    color: #357abd;
    gap: 1rem;
}

.read-more-btn svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.read-more-btn:hover svg {
    transform: translateX(4px);
}

/* No Results */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    color: #999999;
}

.no-results-content {
    max-width: 400px;
    margin: 0 auto;
}

.no-results-content svg {
    width: 48px;
    height: 48px;
    color: #666666;
    margin-bottom: 1.5rem;
}

.no-results h3 {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1rem;
    color: #cccccc;
}

.no-results p {
    font-size: 1rem;
    line-height: 1.6;
}

/* Sidebar Widgets for Index */
.quick-start {
    background: linear-gradient(135deg, #1a3a5c 0%, #1a1a1a 100%);
    border-color: #4a90e2;
}

.quick-start-list {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: step-counter;
}

.quick-start-list li {
    counter-increment: step-counter;
    margin-bottom: 1rem;
    position: relative;
    padding-left: 2.5rem;
}

.quick-start-list li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0.25rem;
    width: 1.5rem;
    height: 1.5rem;
    background-color: #4a90e2;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
}

.quick-start-list a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.quick-start-list a:hover {
    color: #4a90e2;
}

/* Category Filters */
.categories {
    background-color: #1a1a1a;
}

.category-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.category-filter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0.75rem 1rem;
    background: transparent;
    border: 1px solid #333333;
    border-radius: 0.5rem;
    color: #cccccc;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.category-filter:hover {
    background-color: #222222;
    border-color: #4a90e2;
    color: #ffffff;
}

.category-filter.active {
    background-color: #4a90e2;
    border-color: #4a90e2;
    color: #ffffff;
}

.category-filter .count {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 0.25rem 0.5rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    min-width: 1.5rem;
    text-align: center;
}

.category-filter.active .count {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Article Count Animation */
.article-count {
    animation: fadeInUp 0.6s ease 0.3s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design for Index */
@media (max-width: 768px) {
    .featured-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .topic-card {
        padding: 1.5rem;
    }
    
    .search-box {
        padding: 0.6rem 1rem;
    }
    
    #knowledge-search {
        font-size: 0.9rem;
    }
    
    .featured-section h2,
    .all-topics-section h2 {
        font-size: 1.5rem;
    }
    
    .search-section {
        padding: 1.5rem 0;
    }
    
    /* List Items Mobile */
    .topic-list-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1.25rem 1.5rem;
    }
    
    .topic-info {
        width: 100%;
    }
    
    .topic-meta {
        width: 100%;
        justify-content: space-between;
        gap: 1rem;
    }
    
    .topic-name {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    /* Search Dropdown Mobile */
    .search-dropdown {
        margin-top: 0.25rem;
        border-radius: 0.75rem;
        max-height: 300px;
    }
    
    .search-result-item a {
        padding: 0.875rem 1.25rem;
        gap: 0.75rem;
    }
    
    .result-title {
        font-size: 0.95rem;
    }
    
    .result-subtitle {
        font-size: 0.8rem;
    }
    
    .result-faq-count {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .topic-header h3 {
        font-size: 1.25rem;
    }
    
    .topic-card {
        padding: 1.25rem;
    }
    
    .featured-badge {
        top: 0.75rem;
        right: 0.75rem;
        font-size: 0.7rem;
        padding: 0.2rem 0.6rem;
    }
    
    #knowledge-search::placeholder {
        font-size: 0.9rem;
    }
    
    /* Small Mobile List Items */
    .topic-list-item {
        padding: 1rem 1.25rem;
    }
    
    .topic-name {
        font-size: 1rem;
    }
    
    .topic-desc {
        font-size: 0.9rem;
    }
    
    .faq-count {
        font-size: 0.8rem;
    }
    
    .read-link {
        font-size: 0.85rem;
    }
    
    .essential-badge {
        font-size: 0.7rem;
        padding: 0.2rem 0.6rem;
    }
    
    /* Search Dropdown Small Mobile */
    .search-dropdown {
        margin-top: 0.25rem;
        border-radius: 0.5rem;
        max-height: 250px;
    }
    
    .search-result-item a {
        padding: 0.75rem 1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .result-meta {
        width: 100%;
        justify-content: space-between;
    }
    
    .search-no-results {
        padding: 1.5rem 1rem;
        font-size: 0.9rem;
    }
}

/* Print styles */
@media print {
    .breadcrumb-nav,
    .sidebar,
    .cta-section,
    .site-footer,
    .search-section {
        display: none;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .table-of-contents,
    .key-points-callout,
    .legal-info,
    .topic-card {
        border: 1px solid #ccc;
        background: #f9f9f9;
    }
    
    .topic-card:hover {
        transform: none;
        box-shadow: none;
    }
}