/* Base styles */
:root {
    --primary: #3498db;
    --secondary: #2ecc71;
    --dark: #2c3e50;
    --light: #ecf0f1;
    --danger: #e74c3c;
}

html,
body {
    height: 100%;
    margin: 0;
}


body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

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

/* Header styles */
header {
    background-color: var(--dark);
    color: white;
    padding: 20px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

header h1 {
    margin: 0;
    font-size: 2rem;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.home-btn {
    background-color: var(--primary);
    color: white;
    padding: 8px 15px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
}

/* Main content */
main {
    flex: 1;
    padding: 30px 0;
    display: flex;
    gap: 30px;
}

.content {
    flex: 1;
    min-width: 0;
}

.sidebar {
    width: 300px;
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.sidebar h3 {
    margin-top: 0;
    color: var(--dark);
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar li {
    margin-bottom: 10px;
}

.sidebar a {
    color: var(--primary);
    text-decoration: none;
}

.sidebar a:hover {
    text-decoration: underline;
}

/* Post styles */
.post {
    background-color: white;
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.post h1, .post h2, .post h3 {
    color: var(--dark);
    margin-top: 0;
}

.post h2 {
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.post p {
    margin-bottom: 15px;
}

.post a {
    color: var(--primary);
    text-decoration: none;
}

.post a:hover {
    text-decoration: underline;
}

/* Table of contents */
.toc {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 30px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.toc h2 {
    margin-top: 0;
}

.toc ul {
    list-style: none;
    padding: 0;
}

.toc li {
    margin-bottom: 5px;
}

.toc a {
    color: var(--secondary);
    text-decoration: none;
}

.toc a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    background-color: var(--dark);
    color: white;
    text-align: center;
    padding: 20px 0;
    margin: 0;
    position: fixed;
    bottom: 0;
    width: 100%;
}

/* Responsive */
@media (max-width: 768px) {
    main {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
    }
}