/* ===== CSS Reset & Variables ===== */
:root {
    --primary: #c62828;
    --primary-dark: #8e0000;
    --accent: #e53935;
    --bg: #fafafa;
    --surface: #ffffff;
    --text: #212121;
    --text-light: #616161;
    --border: #e0e0e0;
    --shadow: 0 2px 8px rgba(0,0,0,.08);
    --shadow-lg: 0 4px 24px rgba(0,0,0,.12);
    --radius: 8px;
    --max-width: 1200px;
    --header-height: 64px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

/* ===== Header ===== */
.site-header {
    background: var(--primary);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-height);
    box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}
.logo a {
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
}
.main-nav ul {
    display: flex;
    list-style: none;
    gap: 8px;
}
.main-nav a {
    color: rgba(255,255,255,.9);
    padding: 8px 16px;
    border-radius: var(--radius);
    font-weight: 500;
    font-size: .95rem;
    transition: background .2s;
}
.main-nav a:hover { background: rgba(255,255,255,.15); color: #fff; }
.mobile-menu-toggle { display: none; background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; }

/* ===== Hero ===== */
.hero-article {
    margin: 40px 0;
    padding: 48px 40px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    border-radius: 12px;
    color: #fff;
    box-shadow: var(--shadow-lg);
}
.hero-content { max-width: 700px; }
.hero-title { font-size: 2.4rem; margin: 12px 0 16px; line-height: 1.2; }
.hero-title a { color: #fff; }
.hero-title a:hover { color: rgba(255,255,255,.85); }
.hero-summary { font-size: 1.15rem; color: rgba(255,255,255,.85); margin-bottom: 16px; line-height: 1.6; }
.hero-meta { font-size: .9rem; color: rgba(255,255,255,.7); margin-bottom: 20px; }
.btn-read-more {
    display: inline-block;
    background: #fff;
    color: var(--primary);
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 700;
    transition: transform .2s, box-shadow .2s;
}
.btn-read-more:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,.2); color: var(--primary); }

/* ===== Category Badge ===== */
.category-badge {
    display: inline-block;
    background: rgba(255,255,255,.25);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: .8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.category-badge.small {
    background: var(--primary);
    color: #fff;
    font-size: .7rem;
    padding: 3px 10px;
    margin-bottom: 8px;
}

/* ===== Section Title ===== */
.section-title {
    font-size: 1.8rem;
    margin: 48px 0 28px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--primary);
    display: inline-block;
}

/* ===== News Grid ===== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    margin-bottom: 48px;
}
.news-card {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform .2s, box-shadow .2s;
    overflow: hidden;
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.news-card-content { padding: 24px; }
.news-card-content p { margin-bottom: 14px; font-size: .95rem; line-height: 1.7; }
.news-card-content h2 { font-size: 1.2rem; margin: 20px 0 10px; }
.news-card-content h3 { font-size: 1.05rem; margin: 16px 0 8px; }
.news-card-content blockquote { border-left: 3px solid var(--primary); padding: 4px 14px; margin: 14px 0; background: #f9f9f9; border-radius: 0 6px 6px 0; color: var(--text-light); font-style: italic; font-size: .9rem; }
.news-card-content ul, .news-card-content ol { margin: 10px 0 10px 20px; font-size: .9rem; }
.news-card-content li { margin-bottom: 4px; }
.news-card-title { font-size: 1.25rem; margin-bottom: 12px; line-height: 1.3; }
.news-card-title a { color: var(--text); }
.news-card-title a:hover { color: var(--primary); }
.news-card-meta { font-size: .8rem; color: var(--text-light); margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--border); }

/* ===== Article Single ===== */
.article-single { padding: 48px 0 64px; }
.article-header { margin-bottom: 40px; text-align: center; }
.article-title { font-size: 2.8rem; margin: 16px 0 20px; line-height: 1.2; max-width: 800px; margin-left: auto; margin-right: auto; }
.article-meta { color: var(--text-light); font-size: .95rem; display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.article-body {
    max-width: 760px;
    margin: 0 auto;
    font-size: 1.15rem;
    line-height: 1.8;
}
.article-body p { margin-bottom: 24px; }
.article-body h2 { font-size: 1.6rem; margin: 36px 0 16px; }
.article-body h3 { font-size: 1.3rem; margin: 28px 0 12px; }
.article-body blockquote {
    border-left: 4px solid var(--primary);
    padding: 8px 20px;
    margin: 24px 0;
    background: #f5f5f5;
    border-radius: 0 var(--radius) var(--radius) 0;
    color: var(--text-light);
    font-style: italic;
}
.article-footer { max-width: 760px; margin: 40px auto 0; padding-top: 24px; border-top: 1px solid var(--border); }
.tags { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.tag {
    background: #f0f0f0;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: .85rem;
    color: var(--text-light);
}
.tag:hover { background: var(--primary); color: #fff; }

/* ===== Section Page ===== */
.section-page h1.section-title { margin-top: 32px; }

/* ===== Footer ===== */
.site-footer {
    background: #1a1a1a;
    color: #b0b0b0;
    padding: 48px 0 24px;
    margin-top: 64px;
}
.footer-content { display: flex; gap: 48px; margin-bottom: 32px; flex-wrap: wrap; }
.footer-about h3 { color: #fff; margin-bottom: 8px; }
.footer-links h4 { color: #fff; margin-bottom: 12px; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 6px; }
.footer-links a { color: #b0b0b0; }
.footer-links a:hover { color: #fff; }
.footer-category-cols { display: flex; gap: 32px; flex-wrap: wrap; }
.footer-category-cols ul { min-width: 100px; }
.footer-bottom { text-align: center; padding-top: 24px; border-top: 1px solid #333; font-size: .85rem; }

/* ===== Pagination ===== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 32px 0 48px;
    list-style: none;
}
.pagination a, .pagination span {
    padding: 8px 16px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border);
    font-size: .9rem;
}
.pagination .active { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination .disabled { opacity: .4; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .news-grid { grid-template-columns: 1fr; }
    .hero-article { padding: 32px 24px; }
    .hero-title { font-size: 1.8rem; }
    .article-title { font-size: 2rem; }
}
@media (max-width: 600px) {
    .news-grid { grid-template-columns: 1fr; }
    .main-nav { display: none; }
    .main-nav.open { display: block; position: absolute; top: var(--header-height); left: 0; right: 0; background: var(--primary-dark); padding: 16px; }
    .main-nav ul { flex-direction: column; }
    .mobile-menu-toggle { display: block; }
    .hero-title { font-size: 1.5rem; }
    .article-title { font-size: 1.6rem; }
    .article-meta { flex-direction: column; gap: 4px; align-items: center; }
    .footer-content { flex-direction: column; gap: 24px; }
}
