/* ── Voice of Kivu — Main Stylesheet ──────────────────────────
   Brand: Navy #1E2057 | Red #C41E3A | White #FFFFFF | Grey #C8CAD6
   Fonts: Oswald (headlines) | Source Serif 4 (body) | Inter (UI)
   Layout inspired by jeuneafrique.com: centered logo, category strip,
   hero-left + sidebar-right, 3-col article grid
──────────────────────────────────────────────────────────────── */

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --navy:      #1E2057;
  --navy-deep: #14163a;
  --red:       #C41E3A;
  --red-hover: #a01830;
  --white:     #ffffff;
  --grey:      #C8CAD6;
  --text:      #1a1a2e;
  --text-light: #555566;
  --bg:        #f4f4f8;
  --border:    #dde0ee;
  --max-width: 1200px;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'Source Serif 4', Georgia, serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* ── Typography ─────────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: Oswald, Arial Narrow, sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
}
p { margin-bottom: 1em; }

/* ── Top bar ────────────────────────────────────────────────── */
.topbar {
  background: var(--navy-deep);
  color: var(--grey);
  font-size: 12px;
  font-family: Inter, Arial, sans-serif;
  padding: 6px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
}
.topbar a { color: var(--grey); transition: color .15s; }
.topbar a:hover { color: var(--red); }
.topbar-links { display: flex; gap: 16px; align-items: center; }

/* ── Site header ────────────────────────────────────────────── */
.site-header {
  background: var(--navy);
  padding: 18px 24px 14px;
  border-bottom: 4px solid var(--red);
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,.3);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.logo-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-decoration: none;
}
.logo-name {
  font-family: Oswald, sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 1px;
  line-height: 1;
}
.logo-name span { color: var(--red); }
.logo-tagline {
  font-size: 11px;
  color: var(--grey);
  letter-spacing: .5px;
  margin-top: 3px;
  font-family: Inter, Arial, sans-serif;
  font-style: italic;
}
.header-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.header-nav a {
  color: var(--grey);
  font-family: Inter, Arial, sans-serif;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 4px;
  transition: color .15s, background .15s;
}
.header-nav a:hover { color: var(--white); background: rgba(255,255,255,.08); }
.header-nav a.active { color: var(--white); }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: .3s; }

/* ── Breaking ticker ────────────────────────────────────────── */
.ticker-wrap {
  background: var(--red);
  color: var(--white);
  padding: 8px 0;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.ticker-label {
  background: var(--navy-deep);
  color: var(--white);
  font-family: Oswald, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 0 16px;
  flex-shrink: 0;
  white-space: nowrap;
}
.ticker-track {
  white-space: nowrap;
  animation: ticker-scroll 40s linear infinite;
  font-family: Inter, Arial, sans-serif;
  font-size: 13px;
  font-weight: 500;
  padding: 0 20px;
}
.ticker-track:hover { animation-play-state: paused; }
@keyframes ticker-scroll {
  0%   { transform: translateX(100vw); }
  100% { transform: translateX(-100%); }
}

/* ── Category nav strip ─────────────────────────────────────── */
.cat-strip {
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.cat-strip-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}
.cat-strip-inner::-webkit-scrollbar { display: none; }
.cat-strip a {
  color: var(--grey);
  font-family: Oswald, sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 10px 14px;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: color .15s, border-color .15s;
}
.cat-strip a:hover,
.cat-strip a.active { color: var(--white); border-bottom-color: var(--red); }

/* ── Page wrapper ───────────────────────────────────────────── */
.page-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px;
}

/* ── Hero section (left article + right sidebar) ───────────── */
.hero-section {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}

/* Hero main card */
.hero-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background: var(--navy);
}
.hero-card img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.hero-card:hover img { transform: scale(1.02); }
.hero-card-body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(14,16,50,.95) 60%, transparent);
  padding: 32px 24px 22px;
  color: var(--white);
}
.hero-cat {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-family: Oswald, sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 3px 12px;
  border-radius: 12px;
  margin-bottom: 10px;
}
.hero-title {
  font-family: Oswald, sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 8px;
}
.hero-meta {
  font-size: 12px;
  color: var(--grey);
  font-family: Inter, Arial, sans-serif;
}

/* Sidebar stack of small cards */
.sidebar-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.side-card {
  background: var(--white);
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: box-shadow .2s;
  display: flex;
  flex-direction: column;
}
.side-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.12); }
.side-card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
}
.side-card-body { padding: 10px 12px 12px; flex: 1; }
.side-cat {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  font-size: 10px;
  font-family: Oswald, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 2px 8px;
  border-radius: 8px;
  margin-bottom: 6px;
}
.side-title {
  font-family: Oswald, sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 4px;
}
.side-meta { font-size: 11px; color: var(--text-light); font-family: Inter, sans-serif; }

/* ── Section headers ────────────────────────────────────────── */
.section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--red);
}
.section-header h2 {
  font-family: Oswald, sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: .5px;
}
.section-header .more-link {
  margin-left: auto;
  font-size: 12px;
  color: var(--red);
  font-family: Inter, sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  text-decoration: none;
}
.section-header .more-link:hover { color: var(--red-hover); text-decoration: underline; }

/* ── Article grid ───────────────────────────────────────────── */
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}
.article-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: box-shadow .2s, transform .2s;
  display: flex;
  flex-direction: column;
}
.article-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,.12);
  transform: translateY(-2px);
}
.article-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.card-body { padding: 14px 16px 18px; flex: 1; display: flex; flex-direction: column; }
.card-cat {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-size: 10px;
  font-family: Oswald, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 3px 10px;
  border-radius: 10px;
  margin-bottom: 8px;
  align-self: flex-start;
}
.card-title {
  font-family: Oswald, sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 8px;
  flex: 1;
}
.card-excerpt {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.5;
  margin-bottom: 10px;
  font-family: Inter, sans-serif;
}
.card-meta {
  font-size: 11px;
  color: var(--text-light);
  font-family: Inter, sans-serif;
  margin-top: auto;
  display: flex;
  gap: 8px;
  align-items: center;
}
.card-meta .dot { color: var(--grey); }

/* ── Opinion / Analysis feature ─────────────────────────────── */
.opinion-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}
.opinion-card {
  background: var(--white);
  border-left: 4px solid var(--red);
  border-radius: 0 8px 8px 0;
  padding: 18px 20px;
  cursor: pointer;
  transition: box-shadow .2s;
  border: 1px solid var(--border);
  border-left: 4px solid var(--red);
}
.opinion-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.1); }
.opinion-label {
  font-family: Oswald, sans-serif;
  font-size: 10px;
  font-weight: 700;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.opinion-title {
  font-family: Oswald, sans-serif;
  font-size: 17px;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 8px;
}
.opinion-excerpt { font-size: 13px; color: var(--text-light); line-height: 1.5; font-family: Inter, sans-serif; }
.opinion-author { font-size: 12px; color: var(--red); font-weight: 600; margin-top: 10px; font-family: Inter, sans-serif; }

/* ── Loading skeleton ───────────────────────────────────────── */
@keyframes shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}
.skeleton {
  background: linear-gradient(90deg, #e0e0ec 25%, #ededf5 50%, #e0e0ec 75%);
  background-size: 800px 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 6px;
}

/* ── Category page header ───────────────────────────────────── */
.cat-page-header {
  background: var(--navy);
  color: var(--white);
  padding: 32px 24px;
  margin-bottom: 28px;
  border-bottom: 4px solid var(--red);
}
.cat-page-header h1 {
  font-family: Oswald, sans-serif;
  font-size: 32px;
  color: var(--white);
  margin-bottom: 4px;
}
.cat-page-header p { color: var(--grey); font-size: 14px; font-family: Inter, sans-serif; }

/* ── Static page content ────────────────────────────────────── */
.static-page {
  background: var(--white);
  border-radius: 8px;
  padding: 40px 48px;
  margin-bottom: 40px;
  max-width: 860px;
}
.static-page h1 {
  font-size: 32px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 3px solid var(--red);
}
.static-page h2 { font-size: 22px; margin: 28px 0 12px; color: var(--navy); }
.static-page p { font-size: 16px; color: #333; line-height: 1.8; margin-bottom: 16px; }
.static-page a { color: var(--red); text-decoration: underline; }

/* ── Contact form ───────────────────────────────────────────── */
.contact-form { max-width: 600px; }
.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.form-field label { font-family: Inter, sans-serif; font-size: 13px; font-weight: 600; color: var(--navy); }
.form-field input,
.form-field select,
.form-field textarea {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 15px;
  font-family: 'Source Serif 4', serif;
  color: var(--text);
  outline: none;
  transition: border-color .15s;
}
.form-field input:focus,
.form-field textarea:focus { border-color: var(--navy); }
.form-field textarea { min-height: 120px; resize: vertical; }
.btn-submit {
  background: var(--red);
  color: var(--white);
  border: none;
  padding: 12px 32px;
  font-size: 15px;
  font-weight: 700;
  font-family: Oswald, sans-serif;
  letter-spacing: .5px;
  border-radius: 6px;
  cursor: pointer;
  transition: background .15s;
}
.btn-submit:hover { background: var(--red-hover); }

/* ── Footer ─────────────────────────────────────────────────── */
footer {
  background: var(--navy-deep);
  color: var(--grey);
  border-top: 4px solid var(--red);
  padding: 40px 24px 24px;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
.footer-brand .logo-name { font-size: 22px; margin-bottom: 8px; }
.footer-brand p { font-size: 13px; color: #8888aa; line-height: 1.6; font-family: Inter, sans-serif; }
.footer-col h4 {
  font-family: Oswald, sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--white);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a {
  color: #8888aa;
  font-size: 13px;
  font-family: Inter, sans-serif;
  transition: color .15s;
}
.footer-col a:hover { color: var(--red); }
.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #666688;
  font-family: Inter, sans-serif;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom a { color: var(--red); }

/* ── No-image placeholder ───────────────────────────────────── */
.no-img {
  background: linear-gradient(135deg, var(--navy) 0%, #2a2d70 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.15);
  font-size: 32px;
}

/* ── Language toggle ─────────────────────────────────────────── */
.lang-toggle {
  display: flex;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 4px;
  overflow: hidden;
}
.lang-toggle button {
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  font-family: Inter, sans-serif;
  transition: .15s;
}
.lang-toggle button.active { background: var(--red); color: var(--white); }
.lang-toggle button:not(.active) { background: transparent; color: var(--grey); }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-section { grid-template-columns: 1fr; }
  .sidebar-stack { flex-direction: row; overflow-x: auto; gap: 12px; }
  .side-card { min-width: 200px; }
  .article-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .static-page { padding: 24px; }
}

@media (max-width: 600px) {
  .header-inner { flex-wrap: wrap; }
  .header-nav { display: none; flex-direction: column; width: 100%; background: var(--navy); padding: 12px 0; }
  .header-nav.open { display: flex; }
  .header-nav a { padding: 10px 20px; border-bottom: 1px solid rgba(255,255,255,.06); }
  .hamburger { display: flex; }
  .article-grid { grid-template-columns: 1fr; }
  .opinion-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero-card img { height: 260px; }
  .hero-title { font-size: 20px; }
  .page-wrap { padding: 16px; }
  .topbar { font-size: 11px; padding: 5px 14px; }
}
