:root {
  --bg: #f6f6f4;
  --surface: #ffffff;
  --surface-alt: #fbfbfb;
  --text: #141414;
  --muted: #656565;
  --line: #e4e1dc;
  --accent: #b10f18;
  --shadow: 0 10px 24px rgba(20, 20, 20, 0.04);
  --radius: 18px;
  --radius-sm: 12px;
  --container: 1240px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Hind", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.container {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: #ffffff;
  border-bottom: 1px solid rgba(177, 15, 24, 0.08);
}

.news-header {
  box-shadow: 0 1px 0 rgba(20, 20, 20, 0.04);
}

.header-row {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 92px;
  padding: 10px 0 12px;
}

.text-logo {
  font-family: "Noto Serif Devanagari", serif;
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  font-weight: 700;
  line-height: 1;
  color: #ef2b16;
  white-space: nowrap;
}

.news-nav {
  gap: 28px;
  font-size: 1.04rem;
  align-items: center;
}

.news-nav a {
  color: #111;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}

.header-search input {
  width: 220px;
  border: 1px solid #d9d9d9;
  background: #f7f7f7;
  border-radius: 8px;
  padding: 10px 14px;
  color: #222;
  outline: none;
}

.header-search input:focus {
  border-color: rgba(177, 15, 24, 0.45);
  background: #fff;
}

.topbar {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-text strong,
.section-head h2,
.page-banner h1,
.article-header h1,
.story-content h1,
.story-content h2,
.story-content h3,
.site-footer h3,
.site-footer h4 {
  font-family: "Noto Serif Devanagari", serif;
}

.brand-text strong {
  font-size: 1.4rem;
  line-height: 1;
}

.brand-text small {
  color: var(--muted);
  font-size: 0.88rem;
}

.main-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  font-weight: 600;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--accent);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.search-box input,
.newsletter input {
  min-width: 210px;
  border: 1px solid var(--line);
  background: var(--surface-alt);
  border-radius: 999px;
  padding: 10px 14px;
  outline: none;
}

.search-box input:focus,
.newsletter input:focus {
  border-color: rgba(177, 15, 24, 0.45);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  margin: 4px auto;
}

.breaking-strip {
  background: #fff5f5;
  border-top: 1px solid rgba(177, 15, 24, 0.08);
}

.news-breaking {
  background: #fff;
  border-top: 1px solid #ececec;
  padding: 6px 0 10px;
}

.breaking-newsline {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 46px;
}

.breaking-note {
  white-space: nowrap;
  font-size: 1rem;
}

.headline-ribbon {
  background: #cd201f;
  color: #fff;
  min-height: 30px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  overflow: hidden;
}

.headline-ribbon a {
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  font-weight: 700;
}

.ticker-arrow {
  color: #9f2a20;
  font-size: 1.4rem;
}

.breaking-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 14px;
  min-height: 48px;
}

.breaking-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 84px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
}

.ticker {
  overflow: hidden;
}

.ticker-track {
  display: flex;
  gap: 40px;
  white-space: nowrap;
  animation: ticker 24s linear infinite;
  color: #421417;
  font-weight: 600;
}

@keyframes ticker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

main {
  padding: 28px 0 48px;
}

.news-home {
  padding-top: 22px;
}

.news-feed-wrap {
  display: grid;
  gap: 28px;
}

.news-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.headline-card {
  display: grid;
  grid-template-columns: 124px 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px;
  background: #fff;
  border: 1px solid #ddd7cf;
  border-radius: 16px;
  box-shadow: 0 1px 0 rgba(20, 20, 20, 0.02);
  min-height: 160px;
}

.headline-card:hover {
  border-color: rgba(177, 15, 24, 0.28);
}

.thumb-wrap img {
  width: 124px;
  height: 100px;
  object-fit: cover;
  border-radius: 0;
}

.headline-body h2 {
  margin: 0;
  font-family: "Hind", sans-serif;
  font-size: 1.02rem;
  line-height: 1.25;
  font-weight: 700;
}

.meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.meta-pills span {
  background: #f2f2f2;
  border-radius: 8px;
  padding: 6px 10px;
  color: #4b4b4b;
  font-size: 0.94rem;
}

.more-news-panel {
  background: #fff;
  border: 1px solid #e6e2dc;
  border-radius: 22px;
  padding: 20px;
}

.panel-head {
  margin-bottom: 16px;
}

.hero-grid,
.homepage-layout,
.page-layout,
.article-layout,
.dual-section,
.footer-grid {
  display: grid;
  gap: 24px;
}

.hero-grid,
.homepage-layout,
.page-layout {
  grid-template-columns: minmax(0, 2.2fr) minmax(280px, 1fr);
}

.hero-side {
  display: grid;
  gap: 18px;
}

.story-card,
.sidebar-block,
.page-banner,
.article-shell {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.story-card {
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.story-card:hover {
  transform: translateY(-2px);
  border-color: rgba(177, 15, 24, 0.3);
  box-shadow: 0 12px 28px rgba(20, 20, 20, 0.06);
}

.story-media img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #ece8e1;
}

.hero-lead .story-media img {
  aspect-ratio: 16 / 10;
}

.story-content {
  padding: 18px;
}

.story-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 10px;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(177, 15, 24, 0.08);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.86rem;
}

.story-content h1,
.story-content h2,
.story-content h3,
.article-header h1 {
  margin: 0;
  line-height: 1.34;
}

.story-content h1 {
  font-size: clamp(1.9rem, 3vw, 2.8rem);
}

.story-content h2 {
  font-size: 1.28rem;
}

.story-content h3 {
  font-size: 1.14rem;
}

.story-content p,
.page-banner p,
.article-intro,
.newsletter p {
  margin: 12px 0 0;
  color: #444;
}

.section-block,
.sidebar-block,
.page-banner,
.article-shell {
  padding: 18px;
}

.section-block {
  margin-top: 26px;
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.section-head h2 {
  margin: 0;
  font-size: 1.45rem;
  color: var(--accent);
}

.section-head a,
.load-more {
  color: var(--accent);
  font-weight: 700;
}

.load-more {
  border: 1px solid rgba(177, 15, 24, 0.18);
  background: #fff;
  border-radius: 999px;
  padding: 9px 16px;
  cursor: pointer;
}

.load-more:disabled {
  color: var(--muted);
  border-color: var(--line);
  cursor: default;
}

.news-cluster {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.85fr);
  gap: 18px;
}

.mini-list {
  display: grid;
  gap: 14px;
}

.story-card.mini .story-content,
.story-card.compact .story-content {
  padding: 16px;
}

.news-grid {
  display: grid;
  gap: 18px;
}

.three-col {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.four-col {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dual-section {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.latest-list,
.ranked-list,
.tag-cloud,
.footer-grid,
.footer-bottom,
.breadcrumb {
  display: flex;
}

.latest-list {
  flex-direction: column;
  gap: 16px;
}

.ranked-list {
  flex-direction: column;
  gap: 14px;
}

.latest-item,
.ranked-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 14px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px;
}

.latest-thumb img,
.ranked-item img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.ranked-item {
  grid-template-columns: auto 88px 1fr;
  align-items: center;
}

.rank {
  font-family: "Noto Serif Devanagari", serif;
  font-size: 1.15rem;
  color: var(--accent);
  font-weight: 700;
  min-width: 34px;
  text-align: center;
}

.ranked-item a {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.45;
  word-break: break-word;
}

.ranked-item img {
  width: 88px;
  height: 88px;
  border-radius: 12px;
}

.tag-cloud {
  flex-wrap: wrap;
  gap: 10px;
}

.tag-cloud a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  background: var(--surface-alt);
  color: #383838;
}

.newsletter form {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.newsletter button {
  border: 0;
  border-radius: 999px;
  padding: 11px 16px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.page-banner {
  margin-bottom: 24px;
  background: #ffffff;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--accent);
  font-weight: 700;
}

.page-banner h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
}

.category-feature .story-media img {
  aspect-ratio: 16 / 7;
}

.article-page .page-layout {
  grid-template-columns: minmax(0, 2.2fr) 320px;
  align-items: start;
}

.article-shell {
  padding: 22px;
}

.article-header h1 {
  font-size: clamp(2rem, 4vw, 3.3rem);
}

.article-hero {
  margin: 20px 0 0;
}

.article-hero img {
  border-radius: 18px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.channel-cta {
  margin: 18px 0 0;
  padding: 20px 22px;
  border: 1px solid #b8e6ca;
  border-radius: 18px;
  background: linear-gradient(180deg, #f3fff7 0%, #e8f9ef 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.channel-cta__content {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.channel-cta__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #25d366;
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
}

.channel-cta h2 {
  margin: 0 0 4px;
  font-size: 1.28rem;
  color: #0d6b37;
}

.channel-cta p {
  margin: 0;
  color: #26513a;
}

.channel-cta__button {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 148px;
  padding: 13px 22px;
  border-radius: 14px;
  background: #25d366;
  color: #fff;
  font-weight: 700;
}

.article-layout {
  grid-template-columns: 92px minmax(0, 1fr);
  margin-top: 24px;
  align-items: start;
}

.share-rail {
  position: sticky;
  top: 116px;
  display: grid;
  gap: 10px;
}

.share-rail a {
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 8px;
  background: var(--surface-alt);
  color: #444;
  font-weight: 600;
}

.article-body {
  font-size: 1.1rem;
}

.article-body p {
  margin: 0 0 18px;
}

.related-inline {
  margin: 28px 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff8f8;
}

.related-inline h2 {
  margin: 0 0 14px;
  font-size: 1.25rem;
  color: var(--accent);
}

.author-box {
  margin-top: 28px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.author-box__avatar {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #f4ece8;
  color: var(--accent);
  display: grid;
  place-items: center;
  font-family: "Noto Serif Devanagari", serif;
  font-size: 1.4rem;
  font-weight: 700;
}

.author-box__label {
  display: inline-block;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 4px;
}

.author-box__content h2 {
  margin: 0 0 6px;
  font-size: 1.24rem;
}

.author-box__content p {
  margin: 0;
  color: #4b4b4b;
}

.breadcrumb {
  gap: 10px;
  align-items: center;
  color: var(--muted);
  margin-bottom: 20px;
  font-size: 0.94rem;
}

.site-footer {
  background: #fff;
  border-top: 1px solid var(--line);
}

.footer-grid {
  justify-content: space-between;
  gap: 32px;
  padding: 28px 0;
}

.footer-grid > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 320px;
}

.footer-bottom {
  justify-content: center;
  padding: 18px 0 28px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.slim-footer .footer-bottom {
  border-top: 0;
}

@media (max-width: 1100px) {
  .news-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-grid,
  .homepage-layout,
  .page-layout,
  .article-page .page-layout {
    grid-template-columns: 1fr;
  }

  .content-column,
  .article-shell {
    order: 1;
  }

  .sidebar {
    order: 2;
  }

  .four-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .header-row {
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .text-logo {
    font-size: 2.6rem;
  }

  .header-search {
    display: none;
  }

  .topbar {
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .nav-toggle {
    display: inline-block;
  }

  .search-box {
    display: none;
  }

  .main-nav {
    display: none;
    width: 100%;
    padding: 10px 0 2px;
    border-top: 1px solid var(--line);
  }

  .main-nav.open {
    display: flex;
  }

  .breaking-inner {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 10px 0;
  }

  .breaking-newsline {
    grid-template-columns: 1fr;
    align-items: start;
    padding: 10px 0;
  }

  .ticker-arrow {
    display: none;
  }

  .news-card-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .hero-side,
  .news-cluster,
  .dual-section,
  .article-layout {
    grid-template-columns: 1fr;
  }

  .channel-cta,
  .channel-cta__content {
    flex-direction: column;
    align-items: flex-start;
  }

  .author-box {
    flex-direction: column;
  }

  .channel-cta__button {
    width: 100%;
  }

  .share-rail {
    position: static;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .three-col,
  .two-col,
  .four-col {
    grid-template-columns: 1fr;
  }

  .footer-grid,
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 20px, var(--container));
  }

  main {
    padding-top: 18px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .brand-text strong {
    font-size: 1.18rem;
  }

  .text-logo {
    font-size: 2.15rem;
  }

  .headline-card {
    grid-template-columns: 104px 1fr;
    gap: 12px;
    padding: 12px;
    min-height: auto;
  }

  .thumb-wrap img {
    width: 104px;
    height: 86px;
  }

  .headline-body h2 {
    font-size: 0.98rem;
  }

  .meta-pills span {
    font-size: 0.86rem;
    padding: 5px 8px;
  }

  .story-content,
  .section-block,
  .sidebar-block,
  .page-banner,
  .article-shell {
    padding: 14px;
  }

  .latest-item,
  .ranked-item {
    grid-template-columns: 92px 1fr;
    gap: 10px;
  }

  .ranked-item {
    grid-template-columns: 28px 72px 1fr;
  }

  .ranked-item img {
    width: 72px;
    height: 72px;
  }

  .ticker-track {
    gap: 24px;
    animation-duration: 18s;
    font-size: 0.95rem;
  }
}
