/* Base styles */
body {
    margin: 0;
    font-family: system-ui, sans-serif;
    background-color: #f9f9f9;
    color: #333;
    line-height: 1.6;
    font-size: 18px;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Layout container */
.container {
    display: flex;
    flex-direction: column; /* Changed from row to column */
    min-height: 100vh;
}

/* Sidebar (now top navbar) */
.sidebar {
    width: 100%;
    background: linear-gradient(to right, #4c4c8f, #add8e6); /* Blue to Light Blue */
    color: white;
    padding: 1rem;
    position: relative;
    height: auto;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid #ccc;
}

.sidebar ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Or center/space-between as needed */
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 3rem;
}

.sidebar li {
    margin: 0;
}

.sidebar a {
    color: white;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    text-decoration: none;
    transition: color 0.2s ease, border-bottom 0.2s ease;
}

.sidebar a:hover {
    color: #2e3047; /* Soft yellow or your choice */
}

/* Main content */
.content {
    flex: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background-color: white;
}

header h1 {
    margin: 0 0 0.5rem 0;
    font-size: 2rem;
}

.meta {
    color: #777;
    font-size: 0.95rem;
}

article h2 {
    margin-top: 2rem;
    border-bottom: 1px solid #ddd;
    padding-bottom: 0.5rem;
}

ul, ol {
    padding-left: 1.5rem;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem 0;
    font-size: 0.95rem;
    color: #666;
}

/* Responsive styles */
@media (max-width: 768px) {
    body {
        font-size: 17px;
    }

    .sidebar ul {
        justify-content: space-around;
        gap: 0.1rem; /* Smaller spacing for mobile */
    }

    .content {
        padding: 1.25rem;
    }

    header h1 {
        font-size: 1.7rem;
    }

    article h2 {
        font-size: 1.3rem;
    }
}