:root {
  --primary: #16A34A;
  --primary-light: #e8f8ee;
  --primary-dark: #118a3c;
  --black: #0a0a0a;
  --gray-900: #1c1c1c;
  --gray-600: #555;
  --gray-400: #999;
  --gray-200: #e0e0e0;
  --gray-100: #f5f5f5;
  --white: #fff;
  --max-width: 1120px;
  --font: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font); color: var(--gray-900); background: var(--white); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; }

/* NAV — centered logo, links both sides */
.nav { border-bottom: 1px solid var(--gray-200); background: var(--white); position: sticky; top: 0; z-index: 100; }
.nav-inner { max-width: var(--max-width); margin: 0 auto; padding: 14px 24px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.nav-left, .nav-right { display: flex; gap: 24px; }
.nav-right { justify-content: flex-end; }
.nav-left a, .nav-right a { text-decoration: none; color: var(--gray-600); font-size: 14px; font-weight: 600; transition: color 0.2s; }
.nav-left a:hover, .nav-right a:hover, .nav-left a.active, .nav-right a.active { color: var(--primary); }
.logo { font-size: 22px; font-weight: 800; color: var(--black); text-decoration: none; text-align: center; letter-spacing: -0.5px; }
.logo span { color: var(--primary); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; position: absolute; right: 24px; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--black); margin: 4px 0; }

/* HERO — featured article */
.hero { max-width: var(--max-width); margin: 0 auto; padding: 32px 24px; }
.hero-card { background: var(--black); border-radius: 16px; overflow: hidden; position: relative; min-height: 380px; display: flex; align-items: flex-end; text-decoration: none; color: var(--white); }
.hero-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.4; }
.hero-content { position: relative; padding: 48px; z-index: 1; }
.hero-tag { display: inline-block; background: var(--primary); color: var(--white); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; padding: 4px 12px; border-radius: 4px; margin-bottom: 16px; }
.hero-content h1 { font-size: 36px; font-weight: 800; line-height: 1.15; margin-bottom: 12px; max-width: 600px; }
.hero-content p { color: rgba(255,255,255,0.6); font-size: 16px; max-width: 500px; margin-bottom: 16px; }
.hero-link { color: var(--primary); font-weight: 700; text-decoration: none; font-size: 15px; }

/* SECTION */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section { padding-bottom: 40px; }
.section-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; border-bottom: 2px solid var(--black); padding-bottom: 10px; }
.section-bar h2 { font-size: 16px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; }
.section-bar a { font-size: 13px; color: var(--primary); font-weight: 600; text-decoration: none; }

/* TWO-COL layout with sidebar */
.two-col { display: grid; grid-template-columns: 2fr 1fr; gap: 32px; }

/* ARTICLE GRID — 2 columns in main area */
.article-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.article-card { text-decoration: none; color: inherit; display: block; }
.article-card:hover .article-card-title { color: var(--primary); }
.article-card-img { width: 100%; aspect-ratio: 16/10; background: var(--gray-100); border-radius: 10px; margin-bottom: 12px; overflow: hidden; }
.article-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.article-card-tag { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--primary); margin-bottom: 4px; }
.article-card-title { font-size: 17px; font-weight: 700; color: var(--black); line-height: 1.3; margin-bottom: 6px; transition: color 0.2s; }
.article-card-excerpt { font-size: 14px; color: var(--gray-600); line-height: 1.6; }
.article-card-meta { font-size: 12px; color: var(--gray-400); margin-top: 8px; font-weight: 500; }

/* 3-col grid for region section */
.article-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

/* SIDEBAR */
.sidebar-section h3 { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 14px; padding-bottom: 8px; border-bottom: 2px solid var(--black); }
.sidebar-item { padding: 12px 0; border-bottom: 1px solid var(--gray-100); }
.sidebar-item:last-child { border-bottom: none; }
.sidebar-item a { text-decoration: none; color: var(--black); font-size: 14px; font-weight: 600; line-height: 1.4; display: block; transition: color 0.2s; }
.sidebar-item a:hover { color: var(--primary); }
.sidebar-item .meta { font-size: 12px; color: var(--gray-400); margin-top: 2px; }

/* Quick stats sidebar */
.stat-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--gray-100); }
.stat-row:last-child { border-bottom: none; }
.stat-row span { color: var(--gray-600); font-size: 14px; }
.stat-row strong { font-size: 20px; font-weight: 800; color: var(--primary); }

/* ARTICLE PAGE */
.article-header { max-width: 700px; margin: 0 auto; padding: 40px 24px 20px; }
.article-header .tag { display: inline-block; background: var(--primary); color: var(--white); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; padding: 3px 10px; border-radius: 3px; margin-bottom: 12px; }
.article-header h1 { font-size: 36px; font-weight: 800; color: var(--black); line-height: 1.2; margin-bottom: 10px; }
.article-header .byline { font-size: 14px; color: var(--gray-400); }
.article-hero-img { max-width: 800px; margin: 0 auto 32px; padding: 0 24px; }
.article-hero-img img { width: 100%; border-radius: 14px; display: block; }
.article-body { max-width: 700px; margin: 0 auto; padding: 0 24px 48px; }
.article-body p { font-size: 17px; line-height: 1.85; color: var(--gray-900); margin-bottom: 18px; }
.article-body h2 { font-size: 24px; font-weight: 700; margin: 36px 0 14px; color: var(--black); }
.article-body h3 { font-size: 20px; font-weight: 700; margin: 28px 0 10px; color: var(--black); }
.article-body ul, .article-body ol { padding-left: 24px; margin-bottom: 18px; }
.article-body li { font-size: 17px; line-height: 1.85; margin-bottom: 4px; }
.article-body strong { color: var(--black); }
.article-body blockquote { border-left: 3px solid var(--primary); padding-left: 20px; margin: 24px 0; font-style: italic; color: var(--gray-600); }

/* Related articles at bottom of article */
.related-bar { max-width: 700px; margin: 0 auto; padding: 0 24px; }

/* FOOTER */
.footer { border-top: 1px solid var(--gray-200); padding: 32px 0; text-align: center; color: var(--gray-400); font-size: 14px; }

/* MOBILE */
@media (max-width: 768px) {
  .nav-inner { display: flex; justify-content: center; position: relative; }
  .nav-left, .nav-right { display: none; }
  .nav-toggle { display: block; }
  .hero-content { padding: 28px; }
  .hero-content h1 { font-size: 26px; }
  .hero-card { min-height: 280px; }
  .article-grid { grid-template-columns: 1fr; }
  .article-grid-3 { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .article-header h1 { font-size: 28px; }
}
