/* NEWS 24 — assets/css/style.css
   Palette: #FFFDF9 (paper bg), #16181D (ink/text), #C0272D (breaking/live red),
            #B8860B (katha gold), #1E3A5F (masthead navy), #E8E4DA (rule/border)
   Display face: 'Playfair Display' (masthead + headlines) | Body: 'Inter' | Utility: 'Inter' small-caps
*/

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --paper: #FFFDF9;
  --ink: #16181D;
  --ink-soft: #565b66;
  --red: #C0272D;
  --gold: #B8860B;
  --navy: #1E3A5F;
  --rule: #E8E4DA;
  --card: #FFFFFF;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }

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

/* ---------- Ticker ---------- */
.ticker-bar {
  background: var(--red);
  color: #fff;
  overflow: hidden;
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
.ticker-bar .label {
  display: inline-block;
  background: #7a0f13;
  padding: 8px 16px;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  vertical-align: middle;
}
.ticker-track {
  display: inline-block;
  padding: 8px 0;
  animation: scroll-left 30s linear infinite;
  font-size: 14px;
  font-weight: 700;
}
.ticker-track span { margin-right: 48px; }
@keyframes scroll-left {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-100%); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
}

/* ---------- Masthead ---------- */
.masthead {
  background: var(--ink);
  border-bottom: 4px solid var(--red);
  padding: 16px 0 12px;
}
.masthead-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.logo {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: 32px;
  letter-spacing: -0.01em;
  color: #fff;
}
.logo .accent { color: var(--red); }
.masthead-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 9px 16px;
  border-radius: 3px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
}
.btn.outline { background: transparent; color: var(--ink); }
.masthead .btn.outline { color: #fff; border-color: #fff; }
.btn.red { background: var(--red); border-color: var(--red); color: #fff; }
.btn.gold { background: var(--gold); border-color: var(--gold); color: #fff; }
.btn.small { padding: 6px 12px; font-size: 12px; }

/* ---------- Nav ---------- */
.nav-bar { background: var(--ink); position: sticky; top: 34px; z-index: 40; }
.nav-list { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; overflow-x: auto; }
.nav-list li a {
  display: block;
  padding: 12px 16px;
  color: #f2f2f2;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}
.nav-list li a:hover { background: rgba(255,255,255,0.1); }

/* ---------- Live / Katha banners ---------- */
.live-banner {
  display: flex; align-items: center; gap: 10px;
  background: var(--red); color: #fff;
  padding: 12px 18px; margin: 18px 0; border-radius: 4px;
  font-weight: 600;
}
.live-banner.gold { background: var(--gold); }
.dot {
  width: 9px; height: 9px; border-radius: 50%; background: #fff;
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }
.live-banner a { margin-left: auto; text-decoration: underline; font-size: 13px; }

/* ---------- Section headers ---------- */
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  border-bottom: 2px solid var(--ink); padding-bottom: 8px; margin: 32px 0 16px;
}
.section-head h2 {
  font-family: 'Playfair Display', serif;
  font-size: 22px; margin: 0;
}
.section-head .eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft);
}
.section-head a.viewall { font-size: 13px; font-weight: 600; color: var(--navy); }

/* ---------- News grid/cards ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid, .grid.cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid, .grid.cols-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 4px;
  overflow: hidden;
}
.card .thumb { width: 100%; aspect-ratio: 16/10; object-fit: cover; background: #eee; }
.card .body { padding: 12px 14px 16px; }
.card .cat-tag {
  display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--red); margin-bottom: 6px;
}
.card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 17px; line-height: 1.3; margin: 0 0 6px;
}
.card p { font-size: 13px; color: var(--ink-soft); margin: 0; }
.card .meta { font-size: 11px; color: #8a8f99; margin-top: 8px; }
.badge-breaking {
  background: var(--red); color: #fff; font-size: 10px; font-weight: 700;
  padding: 2px 7px; border-radius: 2px; margin-right: 6px; vertical-align: middle;
}
.badge-live {
  background: var(--red); color:#fff; font-size:10px; font-weight:700;
  padding: 2px 7px; border-radius: 2px; display:inline-flex; align-items:center; gap:4px;
}

/* ---------- Hero (top breaking story) ---------- */
.hero {
  position: relative; border-radius: 6px; overflow: hidden; margin-top: 18px;
  min-height: 320px; display: flex; align-items: flex-end;
  background: #222 center/cover no-repeat;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,0.82) 100%);
}
.hero-content { position: relative; z-index: 2; padding: 26px; color: #fff; }
.hero-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(24px, 4vw, 38px);
  margin: 8px 0 6px; line-height: 1.15;
}
.hero-content p { color: #e8e8e8; max-width: 620px; font-size: 14px; }

/* ---------- Categories chip nav ---------- */
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0; }
.chip {
  border: 1px solid var(--rule); padding: 6px 14px; border-radius: 999px;
  font-size: 12px; font-weight: 600; color: var(--ink-soft);
}
.chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Forms (login/register) ---------- */
.auth-wrap {
  max-width: 420px; margin: 48px auto; background: var(--card);
  border: 1px solid var(--rule); border-radius: 6px; padding: 30px;
}
.auth-wrap h1 { font-family: 'Playfair Display', serif; font-size: 24px; margin-top: 0; }
.role-tabs { display: flex; gap: 6px; margin-bottom: 20px; border-bottom: 1px solid var(--rule); }
.role-tabs button {
  flex: 1; padding: 10px 0; background: none; border: none; cursor: pointer;
  font-weight: 600; font-size: 13px; color: var(--ink-soft); border-bottom: 2px solid transparent;
}
.role-tabs button.active { color: var(--red); border-color: var(--red); }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12px; font-weight: 700; margin-bottom: 5px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--rule); border-radius: 4px; font-size: 14px; font-family: inherit;
}
.form-error { background: #fdecea; color: var(--red); padding: 10px 12px; border-radius: 4px; font-size: 13px; margin-bottom: 14px; }
.form-success { background: #eafaf1; color: #1e8449; padding: 10px 12px; border-radius: 4px; font-size: 13px; margin-bottom: 14px; }
.auth-switch { text-align: center; margin-top: 16px; font-size: 13px; color: var(--ink-soft); }
.auth-switch a { color: var(--navy); font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #cfd2d8; margin-top: 60px; padding: 40px 0 20px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 26px; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid h4 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 12px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; font-size: 13px; }
.footer-bottom { text-align: center; font-size: 12px; color: #7d818a; margin-top: 30px; padding-top: 18px; border-top: 1px solid #2a2d33; }

/* ---------- Video player wrapper ---------- */
.player-wrap { position: relative; width: 100%; aspect-ratio: 16/9; background: #000; border-radius: 6px; overflow: hidden; }
.player-wrap video { width: 100%; height: 100%; object-fit: contain; }
.player-live-tag {
  position: absolute; top: 12px; left: 12px; z-index: 3;
  background: var(--red); color: #fff; font-size: 11px; font-weight: 700;
  padding: 4px 10px; border-radius: 3px; display: flex; align-items: center; gap: 5px;
}

/* ---------- Dense two-column layout (AajTak-style) ---------- */
.two-col { display: grid; grid-template-columns: 1fr 320px; gap: 22px; align-items: start; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }

.news-row-list { display: flex; flex-direction: column; }
.news-row {
  display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--rule);
}
.news-row .thumb-sm { width: 120px; height: 80px; object-fit: cover; border-radius: 3px; flex-shrink: 0; background: #eee; }
.news-row .body { flex: 1; }
.news-row h3 { font-size: 15px; line-height: 1.35; margin: 0 0 4px; font-family: 'Inter', sans-serif; font-weight: 700; }
.news-row .meta { font-size: 11px; color: #8a8f99; }

.sidebar-box { background: #fff; border: 1px solid var(--rule); border-radius: 4px; margin-bottom: 20px; overflow: hidden; }
.sidebar-box .sb-head {
  background: var(--red); color: #fff; font-size: 12px; font-weight: 800;
  letter-spacing: 0.06em; text-transform: uppercase; padding: 9px 12px;
}
.sidebar-box .sb-list { padding: 4px 12px; }
.sidebar-box .sb-list a {
  display: block; padding: 9px 0; border-bottom: 1px solid var(--rule);
  font-size: 13px; font-weight: 600; line-height: 1.35;
}
.sidebar-box .sb-list a:last-child { border-bottom: none; }
.ad-slot {
  background: #f1f1ee; border: 1px dashed #ccc; border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  color: #999; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  min-height: 250px; margin-bottom: 20px;
}

/* ---------- Short video reel strip ---------- */
.reel-strip { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 6px; }
.reel-card { position: relative; flex-shrink: 0; width: 150px; }
.reel-card .thumb { width: 150px; height: 210px; object-fit: cover; border-radius: 6px; background: #16181D; }
.reel-card .play-badge {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 34px; height: 34px; border-radius: 50%; background: rgba(192,39,45,0.9);
  color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px;
}
.reel-card .cap {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 8px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.85));
  color: #fff; font-size: 11px; font-weight: 700; line-height: 1.3;
}
