/* ================================================== */
/* Reset (keep your reset.css as-is)                */
/* ================================================== */
/* ...your reset.css here... */

/* ================================================== */
/* Layout & Typography                               */
/* ================================================== */
body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont,
                 "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #222;
    background-color: #fefefe;
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    line-height: 1.2;
}

p {
    margin: 0.5em 0 1em;
}

a {
    color: #007acc;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ================================================== */
/* Header & Navigation                               */
/* ================================================== */
header {
    display: flex;
    flex-direction: column; /* stack top-bar + nav */
    background-color: #003366;
    color: #fff;
}

/* Top bar (description on main page) */
.top-bar {
    background-color: #002244;
    color: #fff;
    text-align: center;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.top-bar p {
    margin: 0;
}

/* Main nav */
.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.main-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0;
    padding: 0;
}

.main-nav a {
    color: #fff;
    font-weight: 500;
    transition: color 0.2s;
}

.main-nav a:hover {
    color: #007acc;
}

.site-title {
    font-size: 2.5rem;
    font-weight: bold;
}

@media (max-width: 768px) {
    .site-title {
        font-size: 1.5rem;
    }
}

/* Social icons container */
.main-nav > .social {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

/* ================================================== */
/* Main Content                                     */
/* ================================================== */
main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* ================================================== */
/* Post Summary                                     */
/* ================================================== */
.post-summary {
    margin-bottom: 2.5rem;
    padding: 1rem 1.5rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
    transition: box-shadow 0.2s ease;
}

.post-summary:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.post-container {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    flex-wrap: wrap;
}

.post-thumbnail {
    width: 300px;
    height: 200px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.post-text {
    flex: 1;
}

.post-text h2 {
    margin: 0 0 0.5rem;
    font-size: 1.75rem;
}

.post-text h2 a {
    color: #003366;
}

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

.post-meta {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.post-meta time {
    font-style: normal;
    color: #999;
}

.post-tags a {
    text-decoration: none;
    color: #007acc;
    background-color: #e0f0ff;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-size: 0.8rem;
    transition: background-color 0.2s;
}

.post-tags a:hover {
    background-color: #c0e0ff;
}

.post-text p {
    margin: 0;
    line-height: 1.6;
}

/* Responsive post summary */
@media (max-width: 768px) {
    .post-container {
        flex-direction: column;
    }

    .post-thumbnail {
        display: none;
    }

    .post-text h2 {
        font-size: 1.5rem;
    }
}

/* === Single Post === */
.post {
    max-width: 900px;
    margin: 2rem auto;
    padding: 1rem 1.5rem;
}

.post-featured {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: block;
}

.post h1 {
    font-size: 2.5rem;
    margin: 1rem 0;
    color: #003366;
}

.post-meta {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.post-meta time {
    font-style: normal;
    color: #999;
}

/* Tags as inline pills */
.post-tags-inline .tag-pill {
    display: inline-block;
    text-decoration: none;
    color: #007acc;
    background-color: #e0f0ff;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
    transition: background-color 0.2s;
}

.post-tags-inline .tag-pill:hover {
    background-color: #c0e0ff;
}

/* Bottom tag list (optional) */
.post-tags {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0 0;
    padding: 0;
}

.post-tags li a {
    text-decoration: none;
    color: #007acc;
    background-color: #e0f0ff;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
}

.post-tags li a:hover {
    background-color: #c0e0ff;
}

/* Post content */
.post-content {
    margin-bottom: 75px;
}

.post-content p,
.post-content ul,
.post-content ol,
.post-content blockquote {
    margin-bottom: 1rem;
    line-height: 1.7;
}

/* Headings inside content */
.post-content h2 {
    font-size: 2rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #003366;
}

.post-content h3 {
    font-size: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: #003366;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .post {
        padding: 1rem;
    }

    .post h1 {
        font-size: 2rem;
    }

    .post-featured {
        max-height: 250px;
    }
}


/* ================================================== */
/* Footer & Socials                                 */
/* ================================================== */
footer {
    background-color: #003366;
    color: #fff;
    padding: 1rem 2rem;
    text-align: center;
}

.social-icon {
    width: 24px;
    height: 24px;
    display: inline-block;
    vertical-align: middle;
}

.social a {
    margin: 0 0.5rem;
    font-size: 1.25rem;
}

.social a:hover {
    color: #ffcc00;
}

/* ================================================== */
/* Lists                                           */
/* ================================================== */
ul {
    margin: 0.5em 0 1em 1.5em;
    padding: 0;
}

li {
    margin: 0.25em 0;
}

/* ================================================== */
/* Code & Preformatted                               */
/* ================================================== */
code {
    background-color: #f4f4f4;
    padding: 0.2em 0.4em;
    border-radius: 3px;
    font-family: monospace;
}

pre {
    background-color: #f4f4f4;
    padding: 1em;
    overflow-x: auto;
    border-radius: 4px;
}

/* ================================================== */
/* Utilities                                        */
/* ================================================== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-1 { margin-top: 1rem; }
.mb-1 { margin-bottom: 1rem; }
