*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg:       #f4f5f7;
    --white:    #ffffff;
    --border:   #e2e4e9;
    --text:     #1a1c22;
    --muted:    #6b7280;
    --accent:   #1a56db;
    --accent-h: #1648c0;
    --red:      #c81e1e;
    --tag-bg:   #e8eef8;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 16px;
    line-height: 1.6;
}

a { color: inherit; text-decoration: none; }

/* ── TOP BAR ── */
.topbar {
    background: var(--red);
    color: #fff;
    font-size: .75rem;
    text-align: center;
    padding: 5px 1rem;
    letter-spacing: .04em;
}

/* ── HEADER ── */
header {
    background: var(--white);
    border-bottom: 3px solid var(--text);
}
.header-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: .9rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.site-logo {
    font-size: 1.9rem;
    font-weight: 900;
    letter-spacing: -1px;
    color: var(--text);
    line-height: 1;
}
.site-logo span { color: var(--red); }
.site-tagline {
    font-size: .78rem;
    color: var(--muted);
    margin-top: 2px;
    font-style: italic;
}
.header-date {
    font-size: .82rem;
    color: var(--muted);
    text-align: right;
}

/* ── NAV ── */
nav {
    background: var(--text);
}
.nav-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    gap: 0;
    overflow-x: auto;
}
.nav-inner a {
    color: #d1d5db;
    font-size: .82rem;
    font-weight: 600;
    padding: .7rem 1rem;
    display: block;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    transition: color .15s, border-color .15s;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.nav-inner a:hover,
.nav-inner a.active {
    color: #fff;
    border-bottom-color: var(--red);
}

/* ── LAYOUT ── */
.page-wrap {
    max-width: 1140px;
    margin: 2rem auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
}
@media (max-width: 820px) {
    .page-wrap { grid-template-columns: 1fr; }
    .sidebar { display: none; }
}

/* ── MAIN FEATURED ── */
.featured {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
    margin-bottom: 2rem;
}
@media (max-width: 640px) { .featured { grid-template-columns: 1fr; } }

.feat-main {
    grid-column: 1 / -1;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
}
@media (max-width: 640px) { .feat-main { grid-template-columns: 1fr; } }

.feat-img {
    background: linear-gradient(135deg, #c8d9f0 0%, #8fb4e8 100%);
    min-height: 220px;
    display: flex;
    align-items: flex-end;
    padding: 1rem;
    position: relative;
    overflow: hidden;
}
.feat-img::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.35), transparent 60%);
}
.feat-img-placeholder {
    width: 100%;
    height: 100%;
    position: absolute; inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    opacity: .25;
}
.feat-body { padding: 1.4rem; display: flex; flex-direction: column; justify-content: center; }
.feat-body .tag { margin-bottom: .5rem; }

.feat-secondary {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
}
.feat-secondary .img-block {
    background: linear-gradient(135deg, #d5e8d1 0%, #9fc89a 100%);
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    opacity: .5;
}
.feat-secondary .body { padding: 1rem; }

/* ── TAG ── */
.tag {
    display: inline-block;
    background: var(--tag-bg);
    color: var(--accent);
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    padding: 2px 8px;
    border-radius: 3px;
}
.tag.red { background: #fde8e8; color: var(--red); }
.tag.green { background: #e8f5e9; color: #2e7d32; }
.tag.gray { background: #f0f0f0; color: #555; }

/* ── ARTICLE CARDS ── */
.section-title {
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--muted);
    font-weight: 700;
    padding-bottom: .5rem;
    border-bottom: 2px solid var(--text);
    margin-bottom: 1rem;
}
.article-list { display: flex; flex-direction: column; gap: .1rem; }

.article-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 5px;
    padding: 1rem;
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: .9rem;
    transition: box-shadow .15s;
}
.article-card:hover { box-shadow: 0 2px 12px rgba(0,0,0,.08); }
.article-card .thumb {
    border-radius: 4px;
    background: linear-gradient(135deg, #e8eaf0, #c5c9d8);
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}
.article-card .info {}
.article-card .tag { margin-bottom: .3rem; }
.article-card h3 {
    font-size: .92rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: .3rem;
    color: var(--text);
}
.article-card h3:hover { color: var(--accent); }
.article-card .meta { font-size: .74rem; color: var(--muted); }

/* ── SECTION HEADING ── */
h2.section-heading {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    border-left: 4px solid var(--red);
    padding-left: .7rem;
    margin-bottom: 1rem;
    margin-top: 2rem;
}

/* ── SIDEBAR ── */
.sidebar {}
.sidebar-block {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 5px;
    margin-bottom: 1.4rem;
    overflow: hidden;
}
.sidebar-block .sb-title {
    background: var(--text);
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    padding: .5rem .9rem;
}
.sb-news-item {
    padding: .75rem .9rem;
    border-bottom: 1px solid var(--border);
    font-size: .83rem;
}
.sb-news-item:last-child { border-bottom: none; }
.sb-news-item a { font-weight: 600; color: var(--text); }
.sb-news-item a:hover { color: var(--accent); }
.sb-news-item .sb-meta { font-size: .72rem; color: var(--muted); margin-top: 2px; }
.weather-block { padding: .9rem; }
.weather-city { font-weight: 700; font-size: .95rem; margin-bottom: .1rem; }
.weather-temp { font-size: 2rem; font-weight: 900; color: var(--accent); }
.weather-desc { font-size: .8rem; color: var(--muted); }
.weather-row { display: flex; justify-content: space-between; margin-top: .8rem; font-size: .8rem; }
.weather-row span { text-align: center; }
.weather-row .wd { color: var(--muted); font-size: .72rem; }
.weather-row .wt { font-weight: 700; }

/* ── FOOTER ── */
footer {
    background: var(--text);
    color: #9ca3af;
    font-size: .8rem;
    margin-top: 3rem;
}
.footer-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.5rem;
}
.footer-col h4 { color: #fff; font-size: .85rem; margin-bottom: .7rem; }
.footer-col a { display: block; color: #9ca3af; margin-bottom: .35rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
    border-top: 1px solid #374151;
    text-align: center;
    padding: 1rem 1.5rem;
    font-size: .75rem;
}

/* ── ARTICLE PAGE ── */
.article-page {
    max-width: 1140px;
    margin: 2rem auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
}
@media (max-width: 820px) { .article-page { grid-template-columns: 1fr; } }

.article-content {}
.article-content .breadcrumb {
    font-size: .78rem;
    color: var(--muted);
    margin-bottom: 1rem;
}
.article-content .breadcrumb a { color: var(--accent); }
.article-content .article-title {
    font-size: 1.7rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: .7rem;
    color: var(--text);
}
.article-content .article-lead {
    font-size: 1.05rem;
    color: #374151;
    font-weight: 500;
    margin-bottom: 1.2rem;
    line-height: 1.55;
    border-left: 4px solid var(--red);
    padding-left: 1rem;
}
.article-content .article-meta {
    font-size: .78rem;
    color: var(--muted);
    margin-bottom: 1.4rem;
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
}
.article-img {
    width: 100%;
    height: 320px;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    opacity: .3;
    background: linear-gradient(135deg, #dde3f0, #b8c4de);
}
.article-body p {
    margin-bottom: 1rem;
    font-size: .97rem;
    color: #1f2937;
    line-height: 1.75;
}
.article-body h3 {
    font-size: 1.1rem;
    font-weight: 800;
    margin: 1.5rem 0 .6rem;
    color: var(--text);
}
.article-body blockquote {
    border-left: 4px solid var(--accent);
    padding: .8rem 1rem;
    margin: 1.2rem 0;
    background: #f0f4fb;
    border-radius: 0 6px 6px 0;
    font-style: italic;
    color: #374151;
    font-size: .93rem;
}
.related-section { margin-top: 2rem; }
.related-section .section-title { margin-bottom: .8rem; }
.related-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
@media (max-width: 500px) { .related-grid { grid-template-columns: 1fr; } }
.related-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 5px;
    padding: .9rem;
    font-size: .85rem;
    font-weight: 600;
    color: var(--text);
}
.related-card:hover { color: var(--accent); box-shadow: 0 2px 8px rgba(0,0,0,.07); }
.related-card .tag { margin-bottom: .4rem; }
