/* ============================================
   दैनिक समाचार — Frontend Stylesheet
   Palette: paper #FFFFFF / ink #17140F /
   masthead red #C4161C / rule #D9D4CA / soft #F5F2EB
   Type: Tiro Devanagari Hindi (display), Mukta (body)
   ============================================ */

:root {
  --red: #C4161C;
  --red-dark: #9E0F14;
  --ink: #17140F;
  --ink-soft: #57524A;
  --paper: #FFFFFF;
  --soft: #F5F2EB;
  --rule: #D9D4CA;
  --display: 'Tiro Devanagari Hindi', serif;
  --body: 'Mukta', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  font-size: 16.5px;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--red); }
a:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
img { max-width: 100%; display: block; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 18px; }

/* ---------- टॉप बार ---------- */
.topbar { background: var(--ink); color: #E9E5DC; font-size: 13.5px; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; padding: 6px 18px; }
.topbar-links a { margin-left: 16px; color: #E9E5DC; }
.topbar-links a:hover { color: #fff; text-decoration: underline; }

/* ---------- मास्टहेड ---------- */
.masthead { border-bottom: 3px double var(--rule); background: var(--paper); }
.masthead-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px 18px 20px; flex-wrap: wrap; }
.brand { display: flex; flex-direction: column; }
.brand-name {
  font-family: var(--display);
  font-size: clamp(38px, 6vw, 58px);
  line-height: 1.1;
  color: var(--red);
  letter-spacing: 0.5px;
}
.brand-tagline { font-size: 14px; color: var(--ink-soft); letter-spacing: 2px; margin-top: 2px; }

.search-form { display: flex; border: 1.5px solid var(--ink); }
.search-form input { border: 0; padding: 9px 14px; font-family: var(--body); font-size: 15px; width: 220px; outline: none; }
.search-form button { border: 0; background: var(--ink); color: #fff; padding: 9px 18px; font-family: var(--body); font-size: 15px; cursor: pointer; }
.search-form button:hover { background: var(--red); }

/* ---------- नेविगेशन ---------- */
.mainnav { background: var(--paper); border-bottom: 1px solid var(--ink); position: sticky; top: 0; z-index: 50; }
.nav-toggle { display: none; }
.nav-list { display: flex; list-style: none; flex-wrap: wrap; }
.nav-list a {
  display: block; padding: 11px 18px;
  font-weight: 600; font-size: 16px;
  border-left: 1px solid var(--rule);
}
.nav-list li:last-child a { border-right: 1px solid var(--rule); }
.nav-list a.active, .nav-list a:hover { background: var(--red); color: #fff; }

/* ---------- ड्रॉपडाउन (उप-मेन्यू) ---------- */
.nav-list li { position: relative; }
.sub-toggle { display: none; }
.caret { font-size: 11px; opacity: 0.7; }
.sub-menu {
  display: none; position: absolute; top: 100%; right: 0;
  min-width: 200px; background: var(--paper);
  border: 1px solid var(--ink); border-top: 3px solid var(--red);
  list-style: none; z-index: 100;
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}
.has-sub:hover > .sub-menu,
.has-sub:focus-within > .sub-menu { display: block; }
.sub-menu a { border: 0 !important; padding: 10px 18px; font-size: 15px; border-bottom: 1px solid var(--rule) !important; }
.sub-menu li:last-child a { border-bottom: 0 !important; }

/* ---------- उप-श्रेणी chips ---------- */
.sub-chips { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; font-size: 14.5px; color: var(--ink-soft); }
.chip {
  border: 1.5px solid var(--red); color: var(--red);
  padding: 4px 16px; border-radius: 30px; font-weight: 600; font-size: 14px;
}
.chip:hover { background: var(--red); color: #fff; }

/* ---------- पेज content ---------- */
.page-content img { margin: 14px 0; }
.page-content h2, .page-content h3 { font-family: var(--display); margin: 20px 0 10px; }
.page-content ul, .page-content ol { margin: 0 20px 16px 0; padding-right: 20px; }

/* ---------- ब्रेकिंग टिकर ---------- */
.ticker { background: var(--red); color: #fff; overflow: hidden; }
.ticker-inner { display: flex; align-items: stretch; padding: 0 18px; }
.ticker-label {
  background: var(--ink); color: #fff;
  padding: 8px 16px; font-weight: 800; font-size: 14px;
  letter-spacing: 1px; white-space: nowrap; align-self: center;
  margin: 6px 0;
}
.ticker-track { overflow: hidden; flex: 1; display: flex; align-items: center; }
.ticker-move { display: flex; gap: 48px; white-space: nowrap; animation: ticker 30s linear infinite; padding-left: 24px; }
.ticker-move a { color: #fff; font-weight: 500; }
.ticker-move a:hover { text-decoration: underline; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) {
  .ticker-move { animation: none; flex-wrap: wrap; white-space: normal; }
}

.page-main { padding: 28px 18px 48px; }

/* ---------- मुख्य समाचार सेक्शन ---------- */
.lead-section {
  display: grid; grid-template-columns: 2fr 1fr; gap: 28px;
  padding-bottom: 26px; border-bottom: 3px double var(--rule); margin-bottom: 30px;
}
.lead-img-wrap img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.kicker {
  display: inline-block; color: var(--red);
  font-weight: 800; font-size: 13px; letter-spacing: 1.5px;
  text-transform: uppercase; margin-bottom: 4px;
}
.lead-title { font-family: var(--display); font-size: clamp(26px, 3.4vw, 40px); line-height: 1.25; margin: 4px 0 10px; }
.lead-summary { color: var(--ink-soft); font-size: 18px; }
.meta { color: var(--ink-soft); font-size: 13.5px; display: inline-block; margin-top: 8px; }

.lead-side { display: flex; flex-direction: column; }
.side-story { padding: 14px 0; border-bottom: 1px solid var(--rule); }
.side-story:first-child { padding-top: 0; }
.side-story:last-child { border-bottom: 0; }
.side-story h3 { font-family: var(--display); font-size: 19px; line-height: 1.35; font-weight: 400; }

/* ---------- लेआउट ---------- */
.layout-two-col { display: grid; grid-template-columns: 1fr 320px; gap: 36px; align-items: start; }

.section-head {
  font-family: var(--display);
  font-size: 24px; font-weight: 400;
  border-bottom: 3px solid var(--red);
  padding-bottom: 6px; margin: 26px 0 18px;
  display: flex; align-items: baseline; gap: 10px;
}
.section-head small { font-family: var(--body); font-size: 14px; color: var(--ink-soft); }
.cat-head { margin-top: 0; }

/* ---------- न्यूज़ ग्रिड ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card-img img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.card-body { padding-top: 10px; }
.card h3 { font-family: var(--display); font-size: 18px; line-height: 1.4; font-weight: 400; }

/* ---------- श्रेणी पंक्ति / मिनी कार्ड ---------- */
.cat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.mini-img img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.mini-card h4 { font-size: 15px; font-weight: 600; line-height: 1.45; margin-top: 8px; }

/* ---------- साइडबार ---------- */
.sidebar { background: var(--soft); padding: 18px; border-top: 3px solid var(--ink); }
.sidebar .section-head { margin-top: 0; }
.popular-list { list-style: none; }
.popular-list li { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.popular-list li:last-child { border-bottom: 0; }
.pop-num { font-family: var(--display); font-size: 30px; color: var(--red); line-height: 1; min-width: 28px; }
.popular-list a { font-weight: 600; font-size: 15px; line-height: 1.45; display: block; }
.popular-list .meta { margin-top: 2px; display: block; }

/* ---------- सिंगल न्यूज़ पेज ---------- */
.single { max-width: 820px; margin: 0 auto; }
.breadcrumb { font-size: 14px; color: var(--ink-soft); margin-bottom: 14px; }
.breadcrumb a { color: var(--red); font-weight: 600; }
.single-title { font-family: var(--display); font-size: clamp(28px, 4vw, 44px); line-height: 1.25; margin-bottom: 12px; }
.single-summary { font-size: 19px; color: var(--ink-soft); border-right: 4px solid var(--red); padding-right: 14px; margin-bottom: 16px; }
.single-meta { display: flex; gap: 20px; flex-wrap: wrap; font-size: 14px; color: var(--ink-soft); padding: 10px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); margin-bottom: 20px; }
.single-img img { width: 100%; }
.single-img { margin-bottom: 22px; }
.single-content { font-size: 18px; line-height: 1.9; }
.single-content p { margin-bottom: 16px; }
.related { margin-top: 40px; }

/* ---------- पेजिनेशन ---------- */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }
.pagination a { border: 1px solid var(--ink); padding: 6px 14px; font-weight: 600; }
.pagination a.current, .pagination a:hover { background: var(--red); border-color: var(--red); color: #fff; }

.notfound { text-align: center; padding: 60px 0; }
.notfound h1 { font-family: var(--display); font-size: 30px; margin-bottom: 12px; }
.notfound a { color: var(--red); font-weight: 700; }

/* ---------- फुटर ---------- */
.footer { background: var(--ink); color: #CFC9BE; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 36px; padding: 40px 18px; }
.footer-brand { font-family: var(--display); color: #fff; font-size: 26px; font-weight: 400; margin-bottom: 10px; }
.footer h4 { color: #fff; font-size: 15px; letter-spacing: 1px; margin-bottom: 10px; }
.footer-links { list-style: none; }
.footer-links li { padding: 3px 0; font-size: 14.5px; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { border-top: 1px solid #3A362F; padding: 14px 0; font-size: 13.5px; text-align: center; }

/* ---------- रेस्पॉन्सिव ---------- */
@media (max-width: 900px) {
  .lead-section { grid-template-columns: 1fr; }
  .layout-two-col { grid-template-columns: 1fr; }
  .news-grid, .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .cat-row { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .masthead-inner { flex-direction: column; align-items: flex-start; gap: 14px; }
  .search-form { width: 100%; }
  .search-form input { flex: 1; width: auto; }
}

@media (max-width: 640px) {
  .nav-toggle {
    display: block; background: var(--ink); color: #fff; border: 0;
    width: 100%; padding: 10px; font-size: 16px; font-family: var(--body); cursor: pointer;
  }
  .nav-list { display: none; flex-direction: column; }
  .nav-list.open { display: flex; }
  .nav-list a { border: 0; border-bottom: 1px solid var(--rule); }

  /* Mobile par dropdown = accordion (tap se khule) */
  .has-sub { display: flex; flex-wrap: wrap; }
  .has-sub > a { flex: 1; }
  .has-sub > a .caret { display: none; }
  .sub-toggle {
    display: block; background: var(--soft); border: 0;
    border-bottom: 1px solid var(--rule); border-right: 1px solid var(--rule);
    width: 52px; font-size: 16px; cursor: pointer; color: var(--ink);
  }
  .has-sub.open .sub-toggle { background: var(--red); color: #fff; }
  .sub-menu {
    position: static; width: 100%; min-width: 0;
    border: 0; box-shadow: none; background: var(--soft);
  }
  .has-sub:hover > .sub-menu, .has-sub:focus-within > .sub-menu { display: none; }
  .has-sub.open > .sub-menu { display: block; }
  .sub-menu a { padding-right: 34px; }
  .news-grid, .grid-3, .cat-row { grid-template-columns: 1fr; }
  .topbar-inner { flex-direction: column; gap: 4px; }
}
