/* Basic Clean Reset */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: #333;
}

/* Layout Container */
.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Navbar Styles */
.navbar {
    background-color: #0d6efd;
    /* Bootstrap Primary Blue */
    padding: 1rem 0;
    color: white;
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar a {
    color: white;
    text-decoration: none;
    margin-left: 1.5rem;
    font-weight: 500;
}

.navbar a:hover {
    color: #e0e0e0;
}

.navbar .nav-brand {
    font-size: 1.25rem;
    font-weight: bold;
    margin-left: 0;
    margin-right: auto;
}

.nav-links {
    display: flex;
}

/* Main Content Spacing */
main.container {
    margin-top: 3rem;
    /* More breathing room */
    margin-bottom: 2rem;
}

/* Homepage Blog List */
.post-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.post-item {
    margin-bottom: 2.5rem;
}

.post-meta {
    color: #6c757d;
    /* Muted gray */
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
}

.post-title {
    display: block;
    font-size: 1.25rem;
    color: #0d6efd;
    text-decoration: none;
    margin-bottom: 0.5rem;
    font-weight: 400;
    /* Regular weight based on image */
}

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

.post-summary {
    color: #212529;
    font-size: 1rem;
    line-height: 1.5;
}

/* Content Styling (Images & Code) */
article img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1.5rem 0;
    border-radius: 4px;
}

article pre {
    background-color: #f6f8fa;
    padding: 1rem;
    border-radius: 6px;
    overflow-x: auto;
    margin: 1.5rem 0;
    font-size: 0.9rem;
    line-height: 1.45;
}

article code {
    font-family: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace;
}

footer {
    padding: 2rem 0;
    margin-top: 3rem;
    border-top: 1px solid #eee;
    color: #666;
}