body {
    font-family: 'Roboto', sans-serif;
    background-color: #f8f9fa;
    line-height: 1.8;
}

.container {
    display: flex;
    margin-top: 55px;
    width: 100%;
    padding: 5px;
    flex-direction: row;
    gap: 5px;
}

/* Left Sidebar (Fixed on Desktop) */
.left-sidebar {
    position: fixed;
    top: 60px;
    left: 0;
    width: 15%;
    height: calc(100vh - 55px);
    background: #fff;
    padding: 1rem;
    border-right: 1px solid #e1e1e1;
    z-index: 5;
    box-shadow: 2px 0px 8px rgba(0, 0, 0, 0.1);
}

/* Main Content */
.main-content {
    flex: 1;
    width: 60%;
    min-width: 0;
    margin-left: 300px;
    padding: 5px;
}

/* Right Sidebar */
.right-sidebar {
    width: 15%;
    padding: 20px;
    background-color: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 5px;
}

/* Typography */
h1 {
    font-size: 2rem;
    margin-bottom: 20px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 10px 0;
}

#post-content p {
    margin-bottom: 15px;
    text-align: justify;
    font-size: 1.1rem;
    color: #333;
    line-height: 1.8;
}

#post-content p::first-letter {
    font-size: 1.4rem;
    font-weight: bold;
}

#post-content section {
    padding: 20px;
    margin-bottom: 30px;
    background-color: #f0f2f5;
    border-radius: 8px;
}

/* TOC Scroll Styles */
#toc-container {
    max-height: 90vh;
    overflow-y: auto;
    padding-right: 10px;
    padding-bottom: 30px;
    margin-bottom: 100px;
}

#toc-container::-webkit-scrollbar {
    width: 8px;
}

#toc-container::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

#toc-container::-webkit-scrollbar-track {
    background: transparent;
}

/* Sidebar Active Link */
.active {
    color: red;
}

/* Responsive Layout: Mobile & Tablet */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        padding: 10px;
    }

    .left-sidebar,
    .main-content,
    .right-sidebar {
        width: 100%;
        position: static;
        height: auto;
        box-shadow: none;
        border: none;
        padding: 1rem 0;
        margin: 0;
    }

    .left-sidebar {
        order: 1;
    }

    .main-content {
        order: 2;
        margin: 0;
    }

    .right-sidebar {
        order: 3;
    }
}

/* Smaller Mobile Devices */
@media (max-width: 480px) {
    .read-more {
        width: 100%;
        text-align: center;
    }
}
