:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #f39c12;
    --light-bg: #2c3e50;
    --dark-bg: #1a2a3a;
    --text-color: #333;
    --light-text: #888;
    --border-radius: 6px;
    --box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    
    line-height: 1.6;
    color: var(--text-color);
    background-color: #202837;  /* K1AX */
    padding-top: 60px;
}

header {
    background-color: var(--primary-color);
    color: white;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 20px;
}

.logo a {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
}

.logo a span {
    color: var(--accent-color);
}

        
.container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.page-title {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.page-title h1 {
    font-size: 2.5rem;
    font-variant: small-caps; /* K1AX */
    font-weight: bold; /* K1AX */
    color: #A0AEC0; /* K1AX */
    margin-bottom: 15px;
}

.page-title p {
    color: #A0AEC0; /* K1AX */
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
}


.faq-toc {
    background-color: #B8C2D0; /* K1AX */
    border-radius: var(--border-radius);
    padding: 25px;
    margin-bottom: 40px;
    box-shadow: var(--box-shadow);
}

.faq-toc h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
    border-bottom: 2px solid var(--light-bg);
    padding-bottom: 10px;
}

.toc-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 10px;
}

.toc-category {
    margin-bottom: 20px;
}

.toc-category h3 {
    color: #2D3748; /* K1AX */
    margin-bottom: 10px;
    font-size: 1.1rem;
    font-weight: bold;
}

.toc-category ul {
    list-style-type: none;
}

.toc-category ul li {
    margin-bottom: 6px;
}

.toc-category ul li a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.95rem;
}

.toc-category ul li a:hover {
    color: var(--secondary-color);
}

.faq-section {
    background-color: #B8C2D0; /* K1AX */
    color: #2D3748; /* K1AX */
    border-radius: var(--border-radius);
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--box-shadow);
}

.faq-section h2 {
    color: #2D3748; /* K1AX */
    font-size: 1.8rem;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--light-bg);
}

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

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

.faq-question {
    margin-bottom: 10px;
    padding-left: 15px;
    border-left: 4px solid var(--secondary-color);
}

.faq-question h3 {
    color: #2D3748; /* K1AX */
    font-size: 1.25rem;
    font-weight: 600;
}

.faq-answer {
    padding-left: 19px;
}

.faq-answer p, .faq-answer ul {
    margin-bottom: 15px;
}

.faq-answer p:last-child, .faq-answer ul:last-child {
    margin-bottom: 0;
}

.faq-answer ul {
    padding-left: 20px;
}

.faq-answer ul li {
    margin-bottom: 5px;
}

.faq-answer strong {
    color: var(--primary-color);
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--secondary-color);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: background-color 0.3s;
    opacity: 0;
    visibility: hidden;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary-color);
}

code {
    font-family: 'Source Code Pro', monospace;
    background-color: var(--light-bg);
    padding: 2px 5px;
    border-radius: 3px;
    font-size: 0.9em;
}

.code-example {
    background-color: var(--dark-bg);
    color: white;
    padding: 20px;
    border-radius: var(--border-radius);
    overflow-x: auto;
    margin-bottom: 20px;
    font-family: 'Source Code Pro', monospace;
}

       
.copyright {
    color: #ccc;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        padding: 15px 20px;
    }
    
    .logo {
        margin-bottom: 10px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li {
        margin: 5px 10px;
    }
    
    .page-title h1 {
        font-size: 2rem;
    }
    
    .faq-section {
        padding: 20px;
    }
    
    .faq-item {
        margin-bottom: 25px;
    }
    
    .faq-question h3 {
        font-size: 1.1rem;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
}

/* Accordion functionality */
.faq-accordion .faq-question {
    cursor: pointer;
    position: relative;
}

.faq-accordion .faq-question:after {
    content: '+';
    position: absolute;
    right: 0;
    top: 0;
    font-size: 1.5rem;
    color: var(--secondary-color);
    transition: transform 0.3s;
}

.faq-accordion .faq-question.active:after {
    transform: rotate(45deg);
}

.faq-accordion .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-accordion .faq-question.active + .faq-answer {
    max-height: 1000px;
}

/* Alignment fixes for the table of contents */
.toc-category h3 {
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-size: 1.1rem;
    padding-left: 0; /* Ensure no padding is pushing this */
}

.toc-category ul {
    list-style-type: none;
    padding-left: 0; /* Remove default padding */
    margin-left: 0; /* Remove default margin */
}

.toc-category ul li {
    margin-bottom: 6px;
    padding-left: 0; /* Ensure list items start at the same position as the header */
}

html {
    scroll-padding-top: 80px; /* Adjust this value to match your navbar height */
}