main {
    padding-top: 120px;
    font-family: 'Open Sans', sans-serif;
    background: #fff;
    color: #333;
}

/* Match navbar height to home page */
nav {
    grid-template-rows: auto 0px;
}

.doc-container {
    display: grid;
    grid-template-columns: 1fr minmax(0, 800px) 1fr;
    width: 100%;
    padding-top: 12vh;
    align-items: flex-start;
}

.sidebar {
    grid-column: 1;
    justify-self: center;
    width: 15vw;
    max-width: 15vw;
    padding: 1rem;
    background-color: #f9f9fb;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 40vh;
    height: auto;
    z-index: 10;
}

.sidebar ul li {
    margin-bottom: 1rem;
}

.doc-content {
    grid-column: 2;
    max-width: 800px;
    width: 100%;
    box-sizing: border-box;
    padding: 0 2rem;
    margin: 0 auto;
}

.soft-cta {
    max-width: 800px;
    margin: 4rem auto;
    text-align: center;
    padding: 0 2rem;
}

/* Center the main documentation title */
.doc-content > h1 {
    text-align: center;
    color: #288DC7;
    margin-bottom: 2rem;
}

.sidebar-toggle {
    display: none;
    position: fixed;
    top: 100px;
    left: 10px;
    z-index: 100;
}

@media (max-width: 768px) {
    .doc-container {
        display: block;
    }
    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 100;
    }
    .sidebar.show {
        transform: translateX(0);
    }
    .sidebar-toggle {
        display: block;
    }
    .doc-content {
        padding: 2rem 1rem;
    }
}

@media (max-width: 1600px) and (min-width: 769px) {
    .doc-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-left: 0;
    }
    .sidebar {
        position: relative;
        width: 100%;
        max-width: 100%;
        margin-bottom: 1rem;
        top: 10vh;
        align-self: flex-start;
    }
    .doc-content {
        padding: 0 2rem;
    }
}

.doc-section {
    max-width: 800px;
    margin: 2rem auto;
    padding: 1.5rem;
    background-color: #f9f9fb;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.doc-section h1 {
    font-size: 2.5rem;
    color: #288DC7;
    margin-bottom: 1rem;
}

.doc-section h2 {
    font-size: 1.75rem;
    color: #721bde;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
}

.doc-section p {
    line-height: 1.6;
    margin-bottom: 1rem;
}

.doc-section ul {
    margin-left: 1.5rem;
    list-style: disc;
}

a {
    color: #49ad4d;
    text-decoration: none;
    font-weight: bold;
}

a:hover {
    color: #288DC7;
    text-decoration: underline;
}
