@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+Devanagari:wght@400;600;700;800;900&display=swap");

:root {
  --red: #d71920;
  --red-dark: #a70e17;
  --ink: #202733;
  --muted: #667085;
  --line: #dde2ea;
  --bg: #f4f5f7;
  --dark: #111827;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Noto Sans Devanagari", "Nirmala UI", Arial, sans-serif;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.wrap { width: min(1120px, calc(100% - 20px)); margin: auto; }

.lang { background: #fff; border-bottom: 1px solid var(--line); }
.lang .wrap { min-height: 34px; display: flex; gap: 16px; align-items: center; overflow: auto; }
.lang button { border: 0; background: transparent; padding: 6px 2px; font: inherit; font-weight: 900; cursor: pointer; }
.lang button.active { color: var(--red); }

.head { background: #fff; }
.head .wrap { min-height: 82px; display: grid; grid-template-columns: 48px 1fr 48px; align-items: center; }
.icon-link { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); font-weight: 1000; }
.logo { justify-self: center; }
.logo img { width: 132px; height: 70px; object-fit: contain; }
.nav { background: var(--red); color: #fff; }
.nav .wrap { display: flex; gap: 1px; overflow: auto; }
.nav a { flex: 0 0 auto; min-height: 42px; padding: 9px 12px; font-weight: 1000; }
.nav a.active, .nav a:hover { background: var(--red-dark); }

.subnav { background: #fff; border-bottom: 1px solid var(--line); }
.subnav .wrap { min-height: 44px; display: flex; align-items: center; gap: 9px; overflow: auto; }
.subnav strong { color: var(--red); font-size: .84rem; }
.subnav a { flex: 0 0 auto; border: 1px solid var(--line); padding: 6px 10px; border-radius: 20px; background: #fafafa; font-size: .86rem; font-weight: 900; }

.page { padding: 16px 0 28px; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.card, .rail-card, .story-card { background: #fff; border: 1px solid var(--line); padding: 14px; }
.page-title { background: #fff; border: 1px solid var(--line); padding: 16px; margin-bottom: 14px; }
.page-title p { margin: 0 0 7px; color: var(--red); font-weight: 900; }
.page-title h1 { margin: 0; font-size: clamp(1.45rem, 3vw, 2.2rem); line-height: 1.25; }
.page-title .summary { margin-top: 10px; color: #4b5563; line-height: 1.65; font-weight: 700; }

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.story-card { display: grid; gap: 10px; }
.thumb { aspect-ratio: 16 / 9; background: linear-gradient(135deg, #111827, #d71920); display: grid; place-items: center; color: #fff; font-weight: 1000; }
.story-card h2 { margin: 0; font-size: 1.05rem; line-height: 1.35; }
.story-card p { margin: 0; color: var(--muted); font-weight: 700; line-height: 1.55; }
.meta { color: var(--red); font-weight: 900; font-size: .84rem; }

.rail-card { margin-bottom: 12px; }
.rail-card h2 { margin: 0 0 10px; border-bottom: 3px solid var(--red); padding-bottom: 8px; font-size: 1.05rem; }
.rail-card a { display: block; border-bottom: 1px solid var(--line); padding: 9px 0; font-weight: 850; line-height: 1.35; }
.rail-card a:last-child { border-bottom: 0; }

.article-body { background: #fff; border: 1px solid var(--line); padding: 18px; }
.article-body h1 { margin: 0 0 10px; font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.25; }
.article-body p { line-height: 1.8; font-weight: 650; }
.article-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 8px 12px; border: 1px solid var(--line); background: #fff; font-weight: 900; }
.button.primary { background: var(--red); border-color: var(--red); color: #fff; }

.text-page { background: #fff; border: 1px solid var(--line); padding: 18px; }
.text-page h1 { margin-top: 0; }
.text-page p, .text-page li { line-height: 1.75; font-weight: 650; }

.foot { background: var(--dark); color: #fff; padding: 20px 0; }
.foot .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; font-weight: 900; }
.foot nav { display: flex; gap: 12px; flex-wrap: wrap; }
.foot a { color: #fff; opacity: .92; }

@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .head .wrap { grid-template-columns: 42px 1fr 42px; }
  .logo img { width: 110px; }
}
