/* InspectSpot Media — Hindi news theme (light, red accent, Devanagari-first) */
:root {
  --red: #c00;
  --red-dark: #9a0000;
  --ink: #1a1a1a;
  --muted: #666;
  --line: #e5e5e5;
  --bg: #fff;
  --bg-soft: #f7f7f7;
  --blue: #0b5cab;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Noto Sans Devanagari', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.65;
}
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--red); }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }

/* Top bar + masthead */
.topbar { background: #111; color: #ddd; font-size: 13px; }
.topbar-in { display: flex; justify-content: space-between; gap: 12px; padding-top: 6px; padding-bottom: 6px; }
.topbar a { color: #ddd; margin-left: 14px; }
.topbar a:hover { color: #fff; }
.masthead { border-bottom: 3px solid var(--red); }
.masthead-in { padding-top: 14px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand img { width: 300px; max-width: 62vw; height: auto; }
.brand-tag { font-size: 13px; color: var(--muted); max-width: 260px; line-height: 1.4; }
.mainnav { background: var(--red); }
.nav-in { display: flex; flex-wrap: wrap; }
.nav-in a { color: #fff; font-weight: 600; font-size: 15px; padding: 10px 14px; }
.nav-in a:hover { background: var(--red-dark); color: #fff; }

/* Ticker */
.ticker { display: flex; gap: 0; align-items: stretch; background: #fff3f3; border: 1px solid #f3c1c1; margin: 16px 0 0; overflow: hidden; }
.ticker b { background: var(--red); color: #fff; padding: 8px 12px; font-size: 14px; white-space: nowrap; }
.ticker ul { margin: 0; padding: 8px 12px; list-style: none; display: flex; gap: 28px; overflow-x: auto; scrollbar-width: none; }
.ticker li { white-space: nowrap; font-size: 15px; }
.ticker li a:hover { color: var(--red); }

/* Homepage */
.section { margin: 28px 0; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 2px solid var(--red); margin-bottom: 14px; padding-bottom: 6px; }
.section-head h2 { margin: 0; font-size: 22px; font-family: 'Noto Serif Devanagari', serif; }
.section-head h2 a:hover { color: var(--red); }
.section-head > a { font-size: 14px; color: var(--blue); }
.top-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; }
.top-story h2 { font-size: 28px; line-height: 1.35; margin: 10px 0 8px; font-family: 'Noto Serif Devanagari', serif; }
.top-story p { color: #444; margin: 0; }
.top-story img { width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; border-radius: 4px; }
.side-list { display: flex; flex-direction: column; gap: 14px; }
.side-item { display: flex; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.side-item img { width: 120px; height: 76px; object-fit: cover; border-radius: 4px; flex: none; }
.side-item h3 { margin: 0; font-size: 16.5px; line-height: 1.45; }
.meta { font-size: 13px; color: var(--muted); margin-top: 4px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card img { width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; border-radius: 4px; }
.card h3 { margin: 8px 0 4px; font-size: 17px; line-height: 1.45; }
.latest-list { list-style: none; margin: 0; padding: 0; }
.latest-list li { border-bottom: 1px solid var(--line); padding: 12px 0; }
.latest-list h3 { margin: 0; font-size: 18px; line-height: 1.5; }
.latest-list .meta { margin-top: 2px; }
.evergreen { background: var(--bg-soft); border: 1px solid var(--line); padding: 16px 18px; border-radius: 6px; }
.evergreen h2 { margin: 0 0 8px; font-size: 20px; }
.evergreen ul { margin: 0; padding-left: 20px; }
.evergreen li { margin: 6px 0; }

/* Article */
.article { max-width: 780px; margin: 0 auto; padding: 24px 16px 8px; }
.crumbs { font-size: 13.5px; color: var(--muted); margin-bottom: 10px; }
.crumbs a { color: var(--blue); }
.article h1 { font-size: 30px; line-height: 1.4; margin: 0 0 10px; font-family: 'Noto Serif Devanagari', serif; }
.byline { font-size: 14px; color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: 12px; margin: 0 0 16px; }
.byline a { color: var(--blue); }
.hero-img { margin: 0 0 6px; }
.hero-img img { width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; border-radius: 4px; }
.hero-cap { font-size: 13px; color: var(--muted); margin: 0 0 18px; }
.post-body { font-size: 18px; line-height: 1.8; }
.post-body p { margin: 0 0 16px; }
.post-body h2, .post-body h3 { font-family: 'Noto Serif Devanagari', serif; line-height: 1.4; }
.post-body img { margin: 12px auto; border-radius: 4px; }
.post-body a { color: var(--blue); text-decoration: underline; }
.post-body ul, .post-body ol { margin: 0 0 16px; padding-left: 24px; }
.post-body table { border-collapse: collapse; width: 100%; margin: 0 0 16px; font-size: 15px; }
.post-body th, .post-body td { border: 1px solid var(--line); padding: 8px; text-align: left; }
.share { display: flex; gap: 10px; flex-wrap: wrap; margin: 20px 0; }
.share a { border: 1px solid var(--line); border-radius: 20px; padding: 6px 14px; font-size: 14px; }
.share a:hover { border-color: var(--red); color: var(--red); }
.tags { margin: 10px 0 20px; }
.tags a { display: inline-block; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 16px; padding: 4px 12px; margin: 0 8px 8px 0; font-size: 14px; }
.author-box { display: flex; gap: 14px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 6px; padding: 16px; margin: 20px 0; }
.author-box img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: none; }
.author-box p { margin: 4px 0 0; font-size: 15px; color: #444; }
.related { margin: 24px 0; }
.related h2 { font-size: 22px; border-bottom: 2px solid var(--red); padding-bottom: 6px; }

/* Ads — reserved space so layout never shifts (CLS) */
.ad-slot { min-height: 120px; background: var(--bg-soft); border: 1px dashed var(--line); border-radius: 4px; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 13px; margin: 18px 0; }
.ad-slot-infeed { min-height: 100px; }
.mgid-slot { min-height: 320px; margin: 24px 0; }
.mgid-slot:empty::before { content: 'Recommended'; display: flex; align-items: center; justify-content: center; height: 320px; background: var(--bg-soft); border: 1px dashed var(--line); border-radius: 4px; color: var(--muted); font-size: 13px; }

/* Category + static pages */
.page-head { margin: 24px 0 8px; }
.page-head h1 { font-size: 28px; margin: 0; font-family: 'Noto Serif Devanagari', serif; }
.page-head p { color: var(--muted); margin: 6px 0 0; }
.cat-list { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 18px 0 28px; }
.cat-item { display: flex; gap: 14px; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.cat-item img { width: 180px; height: 114px; object-fit: cover; border-radius: 4px; flex: none; }
.cat-item h2 { margin: 0; font-size: 18px; line-height: 1.45; }
.static-page { max-width: 780px; margin: 0 auto; padding: 24px 16px 40px; }
.static-page h1 { font-size: 28px; font-family: 'Noto Serif Devanagari', serif; }

/* Footer */
.site-footer { background: #111; color: #bbb; margin-top: 36px; font-size: 14.5px; }
.footer-in { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; padding-top: 28px; padding-bottom: 20px; }
.footer-in b { color: #fff; }
.footer-in a { color: #bbb; }
.footer-in a:hover { color: #fff; }
.copyright { border-top: 1px solid #333; padding-top: 12px; padding-bottom: 16px; font-size: 13px; color: #888; }

@media (max-width: 820px) {
  body { font-size: 16.5px; }
  .brand-tag { display: none; }
  .top-grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr 1fr; }
  .cat-list { grid-template-columns: 1fr; }
  .cat-item img { width: 130px; height: 84px; }
  .article h1 { font-size: 24px; }
  .top-story h2 { font-size: 23px; }
  .footer-in { grid-template-columns: 1fr; }
  .post-body { font-size: 17px; }
}
@media (max-width: 520px) {
  .cards { grid-template-columns: 1fr; }
  .side-item img { width: 96px; height: 64px; }
}

/* Category pagination */
.pagination { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 8px 0 32px; font-size: 15px; }
.pagination .pg-num { display: inline-block; min-width: 34px; text-align: center; padding: 6px 10px; border: 1px solid var(--line); border-radius: 4px; color: #333; }
.pagination .pg-num:hover { border-color: #c00; color: #c00; }
.pagination .pg-active { background: #c00; border-color: #c00; color: #fff; font-weight: 700; }
.pagination .pg-prev, .pagination .pg-next { font-weight: 600; color: #c00; }
.pagination .pg-current { color: #666; margin-right: 4px; }
