/* Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
    background: #ffffff;
    color: #2d3748;
    line-height: 1.65;
}

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

a {
    color: #1d4ed8;
}

a:hover {
    color: #1e40af;
}

/* Header */
.site-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 18px 0;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px 20px;
}

.site-title {
    font-size: 1.5rem;
    font-weight: 700;
}

.site-title a {
    color: #1f2937;
    text-decoration: none;
}

.site-tagline {
    color: #6b7280;
    font-size: 0.95rem;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
}

.site-nav a {
    text-decoration: none;
    color: #1d4ed8;
    font-weight: 600;
    font-size: 0.95rem;
}

/* Main */
.site-main {
    padding: 34px 0;
}

.section-title {
    font-size: 1.85rem;
    color: #1f2937;
    margin-bottom: 20px;
    text-align: center;
}

.category-intro {
    text-align: center;
    color: #4b5563;
    margin: -4px 0 18px;
}

/* Category cards */
.category-bar {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    margin-bottom: 14px;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    min-height: 116px;
}

.category-bar:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(17, 24, 39, 0.08);
}

.category-bar-image {
    width: 200px;
    height: 120px;
    object-fit: cover;
    flex-shrink: 0;
}

.category-bar-content {
    padding: 18px 22px;
    flex: 1;
}

.category-bar-title {
    color: #1f2937;
    font-size: 1.2rem;
    margin-bottom: 6px;
}

.category-bar-desc {
    color: #4b5563;
    font-size: 0.95rem;
}

/* Post content blocks */
.post-content,
.page {
    background: #ffffff;
}

.post-content h1,
.page h1 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #111827;
}

.post-content h2,
.page h2 {
    font-size: 1.35rem;
    margin: 26px 0 12px;
    color: #1f2937;
}

.post-content h3,
.page h3 {
    font-size: 1.1rem;
    margin: 20px 0 8px;
    color: #1f2937;
}

.post-content p,
.page p {
    margin-bottom: 14px;
}

.post-content ul,
.page ul {
    margin: 0 0 14px 22px;
}

.post-meta {
    color: #6b7280;
    font-size: 0.92rem;
    margin-bottom: 8px;
}

.post-sources {
    margin-top: 26px;
    padding: 16px 18px;
    border: 1px solid #dbeafe;
    border-radius: 10px;
    background: #f8fbff;
}

.post-sources h3 {
    margin-top: 0;
}

.source-note {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #475569;
}

.post-navigation {
    margin-top: 22px;
}

.post-navigation a {
    text-decoration: none;
    font-weight: 600;
}

/* Footer */
.site-footer {
    margin-top: 54px;
    padding: 28px 0;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
    text-align: center;
    color: #4b5563;
    font-size: 0.92rem;
}

.site-footer p + p {
    margin-top: 6px;
}

/* Responsive */
@media (max-width: 768px) {
    .site-header .container {
        flex-direction: column;
        align-items: flex-start;
    }

    .site-nav {
        gap: 8px 14px;
    }

    .category-bar {
        flex-direction: column;
    }

    .category-bar-image {
        width: 100%;
        height: 170px;
    }

    .category-bar-content {
        width: 100%;
        padding: 14px 16px 16px;
    }

    .post-content h1,
    .page h1 {
        font-size: 1.65rem;
    }

    .section-title {
        font-size: 1.6rem;
    }
}
