/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Georgia', serif; background: #f5f5f0; color: #1a1a1a; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── LAYOUT ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.header-inner { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ── HEADER ── */
.site-header { background: #fff; border-bottom: 3px solid #c41e3a; position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.header-top { background: #1a1a2e; padding: 6px 0; }
.site-date { color: #94a3b8; font-size: .75rem; font-family: 'Segoe UI', sans-serif; }
.header-search { display: flex; gap: 5px; }
.header-search input { padding: 4px 10px; border: none; border-radius: 4px; font-size: .8rem; width: 200px; }
.header-search button { padding: 4px 10px; background: #c41e3a; color: white; border: none; border-radius: 4px; cursor: pointer; }
.header-main { padding: 12px 0; border-bottom: 1px solid #e5e5e5; }
.site-logo { font-size: 2.2rem; font-weight: 900; color: #1a1a2e; letter-spacing: -1px; font-family: 'Georgia', serif; }
.site-logo span { color: #c41e3a; }
.site-tagline { font-size: .75rem; color: #94a3b8; font-family: 'Segoe UI', sans-serif; }
.site-nav { background: #fff; padding: 0; border-top: 1px solid #e5e5e5; overflow-x: auto; }
.site-nav .header-inner { gap: 0; flex-wrap: nowrap; }
.site-nav a { display: inline-block; padding: 10px 14px; font-size: .8rem; font-family: 'Segoe UI', sans-serif; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; color: #333; border-bottom: 3px solid transparent; white-space: nowrap; }
.site-nav a:hover, .site-nav a.active { color: #c41e3a; border-bottom-color: #c41e3a; }

/* ── BODY ── */
.site-body { padding: 30px 0; min-height: 70vh; }
.section-title { font-size: 1.4rem; border-bottom: 2px solid #c41e3a; padding-bottom: 8px; margin-bottom: 20px; font-family: 'Georgia', serif; }

/* ── FEATURED POST ── */
.featured-post { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-bottom: 30px; background: white; border-radius: 4px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.featured-img { width: 100%; height: 340px; object-fit: cover; }
.featured-body { padding: 30px; display: flex; flex-direction: column; justify-content: center; }
.featured-title { font-size: 1.8rem; line-height: 1.3; margin: 10px 0; }
.featured-title a:hover { color: #c41e3a; }
.featured-excerpt { color: #555; font-size: 1rem; margin-bottom: 15px; }

/* ── NEWS GRID ── */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; margin-bottom: 30px; }
.news-card { background: white; border-radius: 4px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,.06); transition: transform .2s, box-shadow .2s; }
.news-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,.1); }
.card-img { width: 100%; height: 180px; object-fit: cover; }
.card-no-img { width: 100%; height: 120px; background: #1a1a2e; display: flex; align-items: center; justify-content: center; font-size: 2rem; }
.card-body { padding: 15px; }
.card-title { font-size: 1rem; line-height: 1.4; margin: 6px 0 8px; }
.card-title a:hover { color: #c41e3a; }
.card-excerpt { font-size: .85rem; color: #666; line-height: 1.5; margin-bottom: 10px; }

/* ── CATEGORY LABEL ── */
.cat-label { display: inline-block; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: #c41e3a; font-family: 'Segoe UI', sans-serif; margin-bottom: 5px; }
.cat-label:hover { text-decoration: underline; }

/* ── POST TIME ── */
.post-time { font-size: .75rem; color: #94a3b8; font-family: 'Segoe UI', sans-serif; }

/* ── DIVIDER ── */
.divider { border: none; border-top: 2px solid #e5e5e5; margin: 25px 0; }

/* ── PAGINATION ── */
.pagination { display: flex; gap: 8px; justify-content: center; margin: 30px 0; flex-wrap: wrap; }
.page-btn { padding: 8px 16px; border: 1px solid #ddd; background: white; border-radius: 4px; font-size: .85rem; font-family: 'Segoe UI', sans-serif; color: #333; }
.page-btn:hover { background: #f0f0f0; }
.page-btn.active { background: #c41e3a; color: white; border-color: #c41e3a; }

/* ── ARTICLE PAGE ── */
.article-layout { display: grid; grid-template-columns: 1fr 320px; gap: 40px; }
.article-title { font-size: 2rem; line-height: 1.3; margin: 10px 0 15px; }
.article-meta { display: flex; gap: 20px; font-size: .8rem; color: #94a3b8; font-family: 'Segoe UI', sans-serif; margin-bottom: 20px; }
.article-img { width: 100%; max-height: 400px; object-fit: cover; border-radius: 4px; margin-bottom: 20px; }
.article-body { font-size: 1.05rem; line-height: 1.9; color: #1a1a1a; background: white; padding: 30px; border-radius: 4px; }
.article-tags { margin: 20px 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tag-pill { background: #f0f0f0; padding: 4px 12px; border-radius: 20px; font-size: .8rem; font-family: 'Segoe UI', sans-serif; color: #2563eb; }
.tag-pill:hover { background: #dbeafe; }

/* ── SHARE BAR ── */
.share-bar { display: flex; align-items: center; gap: 10px; margin: 20px 0; padding: 15px; background: #f8f8f8; border-radius: 4px; font-family: 'Segoe UI', sans-serif; font-size: .85rem; flex-wrap: wrap; }
.share-fb { background: #1877f2; color: white; padding: 6px 16px; border-radius: 4px; }
.share-tw { background: #000; color: white; padding: 6px 16px; border-radius: 4px; }
.share-wa { background: #25d366; color: white; padding: 6px 16px; border-radius: 4px; }

/* ── SOURCES ── */
.article-sources { margin-top: 25px; padding: 20px; background: #f8f8f8; border-radius: 4px; }
.article-sources h4 { font-size: .9rem; margin-bottom: 10px; color: #666; text-transform: uppercase; letter-spacing: .5px; }
.article-sources ul { list-style: none; }
.article-sources li { font-size: .82rem; padding: 4px 0; border-bottom: 1px solid #eee; }
.article-sources a { color: #2563eb; }
.article-sources a:hover { text-decoration: underline; }

/* ── SIDEBAR ── */
.article-sidebar { }
.sidebar-title { font-size: 1rem; border-bottom: 2px solid #c41e3a; padding-bottom: 8px; margin-bottom: 15px; text-transform: uppercase; letter-spacing: .5px; font-family: 'Segoe UI', sans-serif; }
.sidebar-card { display: flex; gap: 10px; padding: 12px 0; border-bottom: 1px solid #eee; }
.sidebar-card img { width: 80px; height: 60px; object-fit: cover; border-radius: 3px; flex-shrink: 0; }
.sidebar-card a { font-size: .85rem; line-height: 1.4; display: block; margin-bottom: 4px; }
.sidebar-card a:hover { color: #c41e3a; }

/* ── TAG CLOUD ── */
.tag-cloud-section { margin: 30px 0; padding: 25px; background: white; border-radius: 4px; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 15px; }
.cloud-tag { background: #f0f4f8; padding: 5px 12px; border-radius: 20px; color: #2563eb; font-family: 'Segoe UI', sans-serif; transition: all .2s; }
.cloud-tag:hover { background: #c41e3a; color: white; }

/* ── NO POSTS ── */
.no-posts { text-align: center; padding: 60px 20px; color: #94a3b8; font-size: 1.1rem; }

/* ── FOOTER ── */
.site-footer { background: #1a1a2e; color: #94a3b8; text-align: center; padding: 25px 20px; font-size: .85rem; font-family: 'Segoe UI', sans-serif; margin-top: 40px; }
.site-footer a { color: #60a5fa; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .featured-post { grid-template-columns: 1fr; }
  .featured-img { height: 220px; }
  .article-layout { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr 1fr; }
  .site-logo { font-size: 1.6rem; }
}
@media (max-width: 480px) {
  .news-grid { grid-template-columns: 1fr; }
  .header-search input { width: 140px; }
}