/* ============================================
   THE COVERAGE — Professional News Stylesheet
   Clean · International Standard · Bilingual
   ============================================ */

:root {
  --color-bg: #ffffff;
  --color-bg-alt: #f8fafc;
  --color-text: #0f172a;
  --color-text-muted: #475569;
  --color-border: #e2e8f0;
  --color-accent: #b91c1c;
  --color-accent-hover: #991b1b;
  --color-nav: #0f172a;
  --font-serif: 'Georgia', 'Times New Roman', 'Noto Serif Devanagari', serif;
  --font-sans: system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Sans', 'Noto Sans Devanagari', sans-serif;
  --max-width: 1200px;
  --header-height: 70px;
  --radius: 4px;
  --shadow: 0 1px 3px rgba(0,0,0,0.08);
  --transition: 0.2s ease;
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-accent); }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* Typography */
h1, h2, h3, h4, .headline {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-text);
}
.headline-lg { font-size: clamp(1.75rem, 4vw, 2.75rem); }
.headline-md { font-size: clamp(1.25rem, 2.5vw, 1.6rem); }
.headline-sm { font-size: 1.1rem; }
.meta { font-size: 0.8rem; color: var(--color-text-muted); letter-spacing: 0.02em; }
.category-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  margin-bottom: 0.4rem;
}

/* Layout */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}
.section { padding: 2.5rem 0; }
.section-title {
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 2px solid var(--color-text);
  padding-bottom: 0.6rem;
  margin-bottom: 1.5rem;
}

/* ========== HEADER ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}
.header-top {
  background: var(--color-nav);
  color: #fff;
  font-size: 0.75rem;
  padding: 0.4rem 0;
}
.header-top .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.live-wire {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow: hidden;
  white-space: nowrap;
}
.live-dot {
  width: 6px; height: 6px;
  background: #ef4444;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: 1.5rem;
}
.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.logo svg { height: 42px; width: auto; }
.logo-text-fallback {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: -0.5px;
}
.logo-text-fallback span { color: var(--color-accent); }

/* Navigation */
.nav-desktop {
  display: none;
  gap: 1.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.nav-desktop a { position: relative; padding: 0.25rem 0; }
.nav-desktop a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--color-accent);
  transition: width var(--transition);
}
.nav-desktop a:hover::after,
.nav-desktop a.active::after { width: 100%; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.lang-switch {
  display: flex;
  border: 1px solid var(--color-border);
  border-radius: 3px;
  overflow: hidden;
  font-size: 0.75rem;
  font-weight: 600;
}
.lang-switch button {
  padding: 0.3rem 0.6rem;
  color: var(--color-text-muted);
}
.lang-switch button.active {
  background: var(--color-nav);
  color: #fff;
}
.social-links {
  display: none;
  gap: 0.6rem;
}
.social-links a {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--color-bg-alt);
  color: var(--color-text);
  font-size: 0.85rem;
  transition: all var(--transition);
}
.social-links a:hover {
  background: var(--color-accent);
  color: #fff;
}

/* Mobile Menu */
.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px 0;
}
.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--color-text);
  transition: all var(--transition);
}
.nav-mobile {
  display: none;
  position: absolute;
  top: 100%; left: 0; right: 0;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  padding: 1rem 1.25rem 1.5rem;
  box-shadow: var(--shadow);
}
.nav-mobile.open { display: block; }
.nav-mobile a {
  display: block;
  padding: 0.75rem 0;
  font-weight: 600;
  border-bottom: 1px solid var(--color-border);
  text-transform: uppercase;
  font-size: 0.9rem;
}
.nav-mobile .social-mobile {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

/* ========== HERO / FEATURED ========== */
.hero {
  padding: 2rem 0 1rem;
}
.hero-grid {
  display: grid;
  gap: 1.5rem;
}
.hero-main {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: #0f172a;
  min-height: 340px;
  display: flex;
  align-items: flex-end;
}
.hero-main img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.7;
}
.hero-main .overlay {
  position: relative;
  z-index: 2;
  padding: 1.75rem;
  color: #fff;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  width: 100%;
}
.hero-main .category-label { color: #fca5a5; }
.hero-main h1 { color: #fff; margin-bottom: 0.5rem; }
.hero-main .meta { color: #cbd5e1; }
.hero-side {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.hero-side-card {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 1rem;
  align-items: start;
}
.hero-side-card img {
  width: 100px; height: 75px;
  object-fit: cover;
  border-radius: var(--radius);
  background: #e2e8f0;
}
.hero-side-card h3 { font-size: 1rem; margin-bottom: 0.25rem; }

/* ========== STORY CARDS ========== */
.stories-grid {
  display: grid;
  gap: 1.75rem;
}
.story-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.story-card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  border-radius: var(--radius);
  background: #e2e8f0;
}
.story-card h3 { font-size: 1.15rem; }
.story-card .excerpt {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ========== TWO COLUMN LAYOUT ========== */
.content-with-sidebar {
  display: grid;
  gap: 2.5rem;
}
.main-col { min-width: 0; }
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.sidebar-block {
  background: var(--color-bg-alt);
  padding: 1.25rem;
  border-radius: var(--radius);
}
.sidebar-block h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-border);
}
.opinion-item {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--color-border);
}
.opinion-item:last-child { border-bottom: none; }
.opinion-item h4 { font-size: 0.95rem; margin-bottom: 0.2rem; }
.opinion-item .author { font-size: 0.8rem; color: var(--color-text-muted); }

/* ========== FOOTER ========== */
.site-footer {
  background: var(--color-nav);
  color: #e2e8f0;
  padding: 3rem 0 1.5rem;
  margin-top: 3rem;
}
.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.footer-brand p {
  font-size: 0.9rem;
  color: #94a3b8;
  margin-top: 0.75rem;
  max-width: 280px;
}
.footer-col h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff;
  margin-bottom: 1rem;
}
.footer-col a {
  display: block;
  color: #94a3b8;
  font-size: 0.9rem;
  padding: 0.3rem 0;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8rem;
  color: #64748b;
}
.footer-social {
  display: flex;
  gap: 0.75rem;
}
.footer-social a {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid #334155;
  border-radius: 50%;
  color: #94a3b8;
  transition: all var(--transition);
}
.footer-social a:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}

/* ========== ARTICLE PAGE ========== */
.article-header { padding: 2rem 0 1rem; max-width: 720px; margin: 0 auto; }
.article-header .category-label { margin-bottom: 0.75rem; }
.article-header h1 { margin-bottom: 1rem; }
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-border);
}
.article-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 0 3rem;
  font-size: 1.1rem;
  line-height: 1.75;
}
.article-body p { margin-bottom: 1.25rem; }
.article-body h2 {
  font-size: 1.4rem;
  margin: 2rem 0 1rem;
}
.article-featured-img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: var(--radius);
  margin: 1.5rem 0;
}

/* ========== LANGUAGE / I18N ========== */
[data-lang="hi"] .lang-en { display: none !important; }
[data-lang="en"] .lang-hi { display: none !important; }
body[data-lang="hi"] { font-family: var(--font-sans); }

/* ========== UTILITIES ========== */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mb-2 { margin-bottom: 1rem; }

/* ========== RESPONSIVE ========== */
@media (min-width: 640px) {
  .stories-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1.6fr 1fr; }
  .social-links { display: flex; }
}

@media (min-width: 768px) {
  .nav-desktop { display: flex; }
  .menu-toggle { display: none; }
  .nav-mobile { display: none !important; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .stories-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
  .content-with-sidebar {
    grid-template-columns: 1fr 320px;
  }
  .hero-main { min-height: 420px; }
}

/* Print */
@media print {
  .site-header, .site-footer, .lang-switch, .menu-toggle { display: none; }
  body { font-size: 12pt; }
}