/* News Caffe - main stylesheet (red + white, mobile-first, dark mode) */
:root {
  --nc-red: #d32f2f;
  --nc-red-dark: #b71c1c;
  --nc-black: #15171a;
  --nc-text: #1a1a1a;
  --nc-muted: #6b7280;
  --nc-border: #e5e7eb;
  --nc-bg: #ffffff;
  --nc-bg-alt: #f7f7f8;
  --nc-card: #ffffff;
  --nc-shadow: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
  --nc-radius: 8px;
  --nc-maxw: 1600px;
}
[data-theme="dark"] {
  --nc-text: #e8eaed;
  --nc-muted: #9aa0a6;
  --nc-border: #2d2f34;
  --nc-bg: #121316;
  --nc-bg-alt: #1b1d21;
  --nc-card: #1b1d21;
  --nc-black: #0c0d0f;
  --nc-shadow: 0 1px 3px rgba(0,0,0,.5);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Noto Sans', 'Segoe UI', Tahoma, sans-serif;
  color: var(--nc-text);
  background: var(--nc-bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: var(--nc-maxw); margin: 0 auto; padding: 0 28px; }

/* ---------- Top utility bar ---------- */
.topbar {
  background: var(--nc-black);
  color: #cfd2d6;
  font-size: 13px;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; height: 34px; }
.topbar .tb-left { display: flex; gap: 14px; align-items: center; }
.topbar .tb-right { display: flex; gap: 16px; align-items: center; }
.topbar a:hover { color: #fff; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--nc-red); display: inline-block; }

/* ---------- Header ---------- */
.site-header { background: var(--nc-bg); border-bottom: 1px solid var(--nc-border); position: sticky; top: 0; z-index: 100; }
.header-main { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo .mark {
  width: 46px; height: 46px; border-radius: 8px; background: var(--nc-red);
  color: #fff; font-weight: 800; display: grid; place-items: center; font-size: 18px; letter-spacing: -1px;
}
.logo .brand { font-weight: 800; font-size: 20px; color: var(--nc-text); }
.logo .brand small { display:block; font-size: 10px; font-weight: 600; color: var(--nc-muted); letter-spacing: 2px; }

.header-actions { display: flex; align-items: center; gap: 10px; }
.btn-live {
  background: var(--nc-red); color: #fff; padding: 8px 14px; border-radius: 999px;
  font-weight: 700; font-size: 13px; display: inline-flex; align-items: center; gap: 6px;
}
.btn-live .live-dot { width: 8px; height: 8px; background:#fff; border-radius:50%; animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .3; } }
.icon-btn {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--nc-border);
  background: var(--nc-card); color: var(--nc-text); display: grid; place-items: center; cursor: pointer; font-size: 16px;
}
.icon-btn:hover { border-color: var(--nc-red); color: var(--nc-red); }

/* ---------- Primary nav ---------- */
.primary-nav { background: var(--nc-bg); border-bottom: 2px solid var(--nc-red); }
.nav-list { display: flex; align-items: center; justify-content: center; gap: 0; list-style: none; margin: 0; padding: 0; min-height: 46px; flex-wrap: wrap; }
.nav-list > li > a {
  display: flex; align-items: center; gap: 5px; height: 46px; padding: 0 11px; font-weight: 600; font-size: 14.5px;
  color: var(--nc-text); white-space: nowrap; border-bottom: 3px solid transparent;
}
.nav-list > li > a .fa-angle-down { font-size: 11px; opacity: .7; transition: transform .2s; }
.nav-list > li > a:hover, .nav-list > li.active > a { color: var(--nc-red); border-bottom-color: var(--nc-red); }
.nav-list .has-dropdown { position: relative; }
.has-dropdown:hover > a .fa-angle-down { transform: rotate(180deg); }
.dropdown {
  position: absolute; top: 100%; left: 0; right: auto; min-width: 230px; background: var(--nc-card);
  box-shadow: var(--nc-shadow); border: 1px solid var(--nc-border); border-top: 3px solid var(--nc-red);
  border-radius: 0 0 8px 8px; padding: 6px 0; display: none; z-index: 120;
}
.has-dropdown:hover .dropdown { display: block; }
.dropdown a { display: block; padding: 9px 16px; font-size: 14px; color: var(--nc-text); border-left: 3px solid transparent; }
.dropdown a:hover { background: var(--nc-bg-alt); color: var(--nc-red); border-left-color: var(--nc-red); }
.dropdown a.dd-head { font-weight: 700; color: var(--nc-red); border-bottom: 1px solid var(--nc-border); margin-bottom: 4px; }

/* ---------- Breaking ticker ---------- */
.breaking {
  background: var(--nc-bg-alt); border-bottom: 1px solid var(--nc-border);
  display: flex; align-items: center; overflow: hidden; height: 40px;
}
.breaking .label {
  background: var(--nc-red); color: #fff; font-weight: 700; font-size: 13px;
  padding: 0 14px; height: 40px; display: flex; align-items: center; gap: 6px; white-space: nowrap; flex-shrink: 0;
}
.breaking .label .live-dot { width: 7px; height: 7px; background:#fff; border-radius:50%; animation: blink 1s infinite; }
.ticker { overflow: hidden; flex: 1; }
.ticker-track { display: flex; gap: 40px; white-space: nowrap; animation: ticker 32s linear infinite; padding-left: 20px; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track a { font-size: 14px; font-weight: 600; color: var(--nc-text); display: inline-flex; align-items: center; gap: 8px; }
.ticker-track a::before { content: "●"; color: var(--nc-red); font-size: 8px; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Ads ---------- */
.ad-slot {
  background: var(--nc-bg-alt); border: 1px dashed var(--nc-border); color: var(--nc-muted);
  display: grid; place-items: center; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; border-radius: var(--nc-radius);
}
.ad-leaderboard { min-height: 90px; margin: 18px 0; }
.ad-rect { min-height: 250px; }
.ad-inline { min-height: 110px; margin: 24px 0; }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: 1fr; gap: 18px; margin-top: 18px; }
/* Hero row: election | featured | ad+top news */
.hero-row { display: grid; grid-template-columns: 1fr; gap: 18px; margin-top: 18px; align-items: start; }
.hero-left, .hero-right { display: grid; gap: 18px; align-content: start; }
.hero-row .hero-featured { min-height: 300px; }
.top-news { display: grid; gap: 12px; }
.hero-featured { position: relative; border-radius: var(--nc-radius); overflow: hidden; min-height: 320px; box-shadow: var(--nc-shadow); display: block; }
.hero-featured img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.hero-featured .overlay {
  position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,.85) 100%);
}
.hero-featured .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px; color: #fff; }
.hero-featured h2 { font-size: 24px; margin: 10px 0 0; line-height: 1.3; text-shadow: 0 1px 6px rgba(0,0,0,.5); }
.hero-featured .badge { margin-right: 6px; }
.badge { display:inline-block; background: var(--nc-red); color:#fff; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 4px; }
.badge.dark { background: rgba(0,0,0,.7); }
.badge.trending { background: #fff; color: var(--nc-red); }

.hero-side { display: grid; gap: 12px; }
.side-card { display: flex; gap: 12px; align-items: flex-start; padding: 10px 8px; margin: 0 -8px; border-bottom: 1px solid var(--nc-border); border-radius: 8px; transition: background .15s ease; }
.side-card:last-child { border-bottom: 0; }
.side-card:hover { background: var(--nc-bg-alt); }
.side-card img { width: 92px; height: 66px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.side-card h4 { font-size: 14px; margin: 0; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.side-card .meta { font-size: 12px; color: var(--nc-muted); margin-top: 5px; }
.side-card:hover h4 { color: var(--nc-red); }

/* ---------- Layout columns ---------- */
.layout { display: grid; grid-template-columns: 1fr; gap: 26px; margin: 26px 0; }
.sidebar { display: grid; gap: 22px; align-content: start; }

/* ---------- Section + grids ---------- */
.section { margin: 34px 0; }
.section-head { display: flex; align-items: center; justify-content: space-between; border-bottom: 2px solid var(--nc-border); margin-bottom: 18px; }
.section-head h3 { position: relative; font-size: 21px; font-weight: 800; margin: 0 0 -2px; padding: 0 0 12px 14px; border-bottom: 3px solid var(--nc-red); display: inline-block; }
.section-head h3::before { content: ""; position: absolute; left: 0; top: 2px; bottom: 12px; width: 5px; border-radius: 3px; background: var(--nc-red); }
.section-head a.more { font-size: 13px; color: var(--nc-red); font-weight: 700; white-space: nowrap; transition: gap .15s ease; }
.section-head a.more:hover { text-decoration: underline; }

.grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
.card { background: var(--nc-card); border: 1px solid var(--nc-border); border-radius: var(--nc-radius); overflow: hidden; box-shadow: var(--nc-shadow); transition: transform .18s ease, box-shadow .18s ease; }
.card:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(0,0,0,.12); }
.card .thumb { aspect-ratio: 16/9; overflow: hidden; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .thumb img { transform: scale(1.06); }
.card .body { padding: 14px; }
.card .cat-tag { color: var(--nc-red); font-size: 12px; font-weight: 700; text-transform: uppercase; }
.card h4 { font-size: 16px; margin: 6px 0; line-height: 1.4; }
.card p { font-size: 13px; color: var(--nc-muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .meta { font-size: 12px; color: var(--nc-muted); margin-top: 8px; }
.card a:hover h4 { color: var(--nc-red); }

/* category section: 1 main + small list */
.cat-block { display: grid; grid-template-columns: 1fr; gap: 18px; }
.cat-main { display: block; }
.cat-main .thumb { position: relative; aspect-ratio: 16/9; border-radius: var(--nc-radius); overflow: hidden; box-shadow: var(--nc-shadow); }
.cat-main .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.cat-main:hover .thumb img { transform: scale(1.05); }
.cat-main .cat-chip { position: absolute; top: 10px; left: 10px; background: var(--nc-red); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 4px; }
.cat-main h3 { font-size: 20px; line-height: 1.4; margin: 12px 0 6px; transition: color .15s ease; }
.cat-main:hover h3 { color: var(--nc-red); }
.cat-main p { color: var(--nc-muted); font-size: 14px; margin: 0 0 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cat-main-meta { font-size: 12px; color: var(--nc-muted); }
.cat-list { display: grid; gap: 4px; }

/* ---------- India-TV style category rows ---------- */
.cat-row { display: grid; grid-template-columns: 1fr; gap: 30px; margin: 26px 0; }
.cat-col { min-width: 0; }
.block-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; border-bottom: 1px solid var(--nc-border); margin-bottom: 14px; }
.block-head h3 { font-size: 20px; font-weight: 800; margin: 0 0 -1px; padding: 0 0 10px; border-bottom: 3px solid var(--nc-red); }
.block-head h3 a { color: inherit; }
.block-head h3 a:hover { color: var(--nc-red); }
.sublinks { display: flex; flex-wrap: wrap; gap: 4px 12px; padding-bottom: 10px; font-size: 13px; }
.sublinks .dash { color: var(--nc-muted); }
.sublinks a { color: var(--nc-muted); font-weight: 600; }
.sublinks a:hover { color: var(--nc-red); }
.block-lead { display: block; margin-bottom: 14px; }
.block-lead .thumb { aspect-ratio: 16/9; border-radius: var(--nc-radius); overflow: hidden; box-shadow: var(--nc-shadow); }
.block-lead .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.block-lead:hover .thumb img { transform: scale(1.05); }
.block-lead h4 { font-size: 18px; line-height: 1.4; margin: 10px 0 0; font-weight: 700; transition: color .15s ease; }
.block-lead:hover h4 { color: var(--nc-red); }
.block-list { display: grid; gap: 2px; }

/* Video strip (blue) */
.video-strip { background: linear-gradient(135deg, #15349e, #1d4ed8); border-radius: var(--nc-radius); padding: 18px 20px 22px; margin: 28px 0; }
.gallery-strip { margin: 28px 0; }
.strip-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,.28); }
.strip-head h3 { color: #fff; font-size: 20px; font-weight: 800; margin: 0 0 -1px; padding: 0 4px 10px; border-bottom: 3px solid #fff; }
.strip-head a.more { color: #fff; font-size: 13px; font-weight: 700; white-space: nowrap; }
.strip-head a.more:hover { text-decoration: underline; }
.strip-head.light { border-bottom-color: var(--nc-border); }
.strip-head.light h3 { color: var(--nc-text); border-bottom-color: var(--nc-red); }
.strip-head.light a.more { color: var(--nc-red); }
.video-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.video-card .thumb { position: relative; aspect-ratio: 16/9; border-radius: 6px; overflow: hidden; }
.video-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.video-card:hover .thumb img { transform: scale(1.05); }
.video-card .play { position: absolute; inset: 0; margin: auto; width: 46px; height: 46px; border-radius: 50%; background: rgba(211,47,47,.92); color: #fff; display: grid; place-items: center; font-size: 15px; padding-left: 3px; box-shadow: 0 2px 10px rgba(0,0,0,.4); }
.video-card h4 { color: #fff; font-size: 14px; line-height: 1.45; margin: 10px 0 0; font-weight: 600; }

/* Gallery strip */
.gallery-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.gallery-card .thumb { position: relative; aspect-ratio: 16/9; border-radius: 6px; overflow: hidden; box-shadow: var(--nc-shadow); }
.gallery-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery-card:hover .thumb img { transform: scale(1.05); }
.gallery-card .gbadge { position: absolute; left: 10px; bottom: 10px; width: 34px; height: 34px; border-radius: 50%; background: rgba(211,47,47,.92); color: #fff; display: grid; place-items: center; }
.gallery-card h4 { font-size: 14px; line-height: 1.45; margin: 10px 0 0; font-weight: 600; transition: color .15s ease; }
.gallery-card:hover h4 { color: var(--nc-red); }

/* Latest news + rail */
.latest-layout { display: grid; grid-template-columns: 1fr; gap: 30px; margin: 28px 0; }
.latest-grid { display: grid; grid-template-columns: 1fr; gap: 2px; }
.latest-rail { display: grid; gap: 22px; align-content: start; }

/* widgets */
.widget { background: var(--nc-card); border: 1px solid var(--nc-border); border-radius: var(--nc-radius); padding: 16px; box-shadow: var(--nc-shadow); }
.widget h3 { font-size: 16px; font-weight: 800; margin: 0 0 12px; padding-bottom: 8px; border-bottom: 2px solid var(--nc-red); display: inline-block; }
.rank-list { list-style: none; margin: 0; padding: 0; counter-reset: r; }
.rank-list li { display: flex; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px dashed var(--nc-border); counter-increment: r; }
.rank-list li:last-child { border-bottom: 0; }
.rank-list li::before {
  content: counter(r); flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; font-size: 14px;
  color: var(--nc-red); background: rgba(211,47,47,.1);
}
.rank-list li:first-child::before { color:#fff; background: var(--nc-red); }
.rank-list a { font-size: 14px; font-weight: 600; line-height: 1.45; transition: color .15s ease; }
.rank-list a:hover { color: var(--nc-red); }

/* election widget */
.poll-widget { background: var(--nc-card); border: 1px solid var(--nc-border); border-radius: var(--nc-radius); overflow: hidden; box-shadow: var(--nc-shadow); }
.poll-widget .ph {
  display:flex; justify-content:space-between; align-items:flex-start; gap: 10px;
  background: linear-gradient(135deg, #16205c, #283593); color:#fff;
  padding: 12px 14px; border-bottom: 3px solid var(--nc-red);
}
.poll-widget .ph strong { font-size: 15px; line-height: 1.3; }
.poll-widget .ph .total { background: rgba(255,255,255,.14); border-radius: 6px; padding: 6px 10px; font-size: 12px; text-align:center; white-space: nowrap; }
.poll-widget .ph .total b { font-size: 16px; }
.poll-widget .seats { display:grid; grid-template-columns: repeat(3,1fr); gap:10px; padding: 14px; }
.poll-widget .seat-col { text-align:center; }
.poll-widget .sl { font-size: 12px; font-weight: 700; color: var(--nc-muted); margin-bottom: 6px; }
.poll-widget .seat { position: relative; border-radius:6px; padding:14px 6px; color:#fff; background:#555; }
.poll-widget .seat .n { font-size: 26px; font-weight: 800; }
.poll-widget .seat.nda { background:#111; }
.poll-widget .seat.india { background:#1565c0; }
.poll-widget .seat.oth { background:#6b7280; }
.poll-widget .seat .chg { position:absolute; top:4px; right:6px; font-size: 11px; font-weight: 700; }
.poll-widget .seat .chg.up { color:#4ade80; }
.poll-widget .seat .chg.down { color:#fca5a5; }
.poll-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.poll-table th, .poll-table td { padding: 8px 10px; text-align: center; border-top: 1px solid var(--nc-border); }
.poll-table thead th { background: var(--nc-bg-alt); font-weight: 700; color: var(--nc-muted); border-top: 0; }
.poll-table .st { text-align: left; font-weight: 700; }
.poll-table th.india, .poll-table td.india { color: #1565c0; font-weight: 700; }
[data-theme="dark"] .poll-table th.india, [data-theme="dark"] .poll-table td.india { color: #5b9bf3; }

/* ---------- Article page ---------- */
.breadcrumbs { font-size: 13px; color: var(--nc-muted); margin: 16px 0; }
.breadcrumbs a:hover { color: var(--nc-red); }
.article-wrap { max-width: 760px; }
.article-wrap h1 { font-size: 30px; line-height: 1.3; margin: 8px 0 14px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; color: var(--nc-muted); font-size: 13px; border-bottom: 1px solid var(--nc-border); padding-bottom: 14px; margin-bottom: 18px; }
.article-hero { border-radius: var(--nc-radius); overflow: hidden; margin-bottom: 18px; }
.article-body { font-size: 17px; line-height: 1.8; }
.article-body p { margin: 0 0 18px; }
.tags { margin: 22px 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags span { background: var(--nc-bg-alt); border: 1px solid var(--nc-border); padding: 5px 12px; border-radius: 999px; font-size: 13px; }
.share-bar { display: flex; gap: 10px; align-items: center; margin: 18px 0; }
.share-bar a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 15px; }
.s-wa { background: #25D366; } .s-fb { background: #1877F2; } .s-tw { background: #000; } .s-tg { background: #229ED9; }

/* floating share (mobile) */
.float-share { position: fixed; bottom: 16px; right: 16px; z-index: 90; display: none; }
.float-share a { width: 52px; height: 52px; border-radius: 50%; background: #25D366; color:#fff; display:grid; place-items:center; font-size: 22px; box-shadow: 0 4px 12px rgba(0,0,0,.3); }

/* ---------- Footer ---------- */
.site-footer { background: var(--nc-black); color: #c7cace; margin-top: 40px; padding: 40px 0 20px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 26px; }
.footer-grid h4 { color: #fff; font-size: 16px; margin: 0 0 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 9px; }
.footer-grid a:hover { color: var(--nc-red); }
.footer-bottom { border-top: 1px solid #2a2c30; margin-top: 26px; padding-top: 18px; text-align: center; font-size: 13px; color: #8a8f96; }
.footer-bottom a { color: var(--nc-red); }
.social { display: flex; gap: 10px; }
.social a { width: 40px; height: 40px; border-radius: 50%; background: #23262b; display: grid; place-items: center; color:#fff; }
.social a:hover { background: var(--nc-red); }

/* ---------- Mobile menu ---------- */
.hamburger { display: none; }
.mobile-drawer { position: fixed; inset: 0 0 0 auto; width: 280px; max-width: 85%; background: var(--nc-bg); box-shadow: -4px 0 20px rgba(0,0,0,.2); transform: translateX(100%); transition: transform .25s ease; z-index: 200; padding: 18px; overflow-y: auto; }
.mobile-drawer.open { transform: translateX(0); }
.mobile-drawer a { display: block; padding: 12px 6px; border-bottom: 1px solid var(--nc-border); font-weight: 600; color: var(--nc-text); }
.mobile-drawer .md-group { border-bottom: 1px solid var(--nc-border); }
.mobile-drawer .md-group summary { display: flex; justify-content: space-between; align-items: center; padding: 12px 6px; font-weight: 700; cursor: pointer; list-style: none; }
.mobile-drawer .md-group summary::-webkit-details-marker { display: none; }
.mobile-drawer .md-group[open] summary .fa-angle-down { transform: rotate(180deg); }
.mobile-drawer .md-group summary .fa-angle-down { transition: transform .2s; color: var(--nc-red); }
.mobile-drawer .md-sub { padding: 10px 6px 10px 22px; font-weight: 500; font-size: 14px; border-bottom: none; color: var(--nc-text-soft, var(--nc-text)); }
.mobile-drawer .md-sub:hover { color: var(--nc-red); }
.drawer-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 150; display: none; }
.drawer-backdrop.open { display: block; }

/* search overlay */
.search-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 250; display: none; align-items: flex-start; justify-content: center; padding-top: 14vh; }
.search-overlay.open { display: flex; }
.search-box { width: 90%; max-width: 600px; background: var(--nc-card); border-radius: 10px; padding: 18px; }
.search-box form { display: flex; gap: 8px; }
.search-box input { flex: 1; padding: 14px 16px; font-size: 16px; border: 2px solid var(--nc-border); border-radius: 8px; background: var(--nc-bg); color: var(--nc-text); }
.search-box button { background: var(--nc-red); color:#fff; border: 0; padding: 0 20px; border-radius: 8px; font-weight: 700; cursor: pointer; }

/* pagination */
.pagination { display: flex; gap: 8px; justify-content: center; margin: 30px 0; flex-wrap: wrap; }
.pagination a, .pagination span { padding: 8px 14px; border: 1px solid var(--nc-border); border-radius: 6px; font-weight: 600; font-size: 14px; }
.pagination .current { background: var(--nc-red); color: #fff; border-color: var(--nc-red); }

/* empty */
.empty { text-align: center; color: var(--nc-muted); padding: 50px 20px; }

/* ---------- Responsive ---------- */
@media (min-width: 720px) {
  .hero { grid-template-columns: 1.6fr 1fr; }
  .hero-featured { min-height: 420px; }
  .hero-featured h2 { font-size: 30px; }
  .hero-row { grid-template-columns: 1fr 1fr; }
  .hero-row .hero-right { grid-column: 1 / -1; }
  .hero-row .hero-right { grid-template-columns: 1fr 1fr; }
  .grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
  .grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .cat-block { grid-template-columns: 1.3fr 1fr; align-items: start; }
  .cat-block.no-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(4, 1fr); }
  .cat-row { grid-template-columns: repeat(2, 1fr); }
  .video-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .latest-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 992px) {
  .layout { grid-template-columns: 1fr 320px; }
  .grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
  .hero-row { grid-template-columns: 300px 1fr 300px; }
  .hero-row .hero-right { grid-column: auto; grid-template-columns: 1fr; }
  .hero-row .hero-featured { min-height: 440px; }
  .hero-row .hero-featured h2 { font-size: 28px; }
  .cat-row { grid-template-columns: repeat(3, 1fr); }
  .video-grid { grid-template-columns: repeat(5, 1fr); }
  .gallery-grid { grid-template-columns: repeat(5, 1fr); }
  .latest-layout { grid-template-columns: 1fr 320px; }
  .latest-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 991px) {
  .sidebar.home-side { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .nav-list > li:not(.always) { display: none; }
  .hamburger { display: grid; }
  .float-share { display: block; }
  .topbar .tb-left .hide-sm { display: none; }
}
@media (max-width: 520px) {
  .article-wrap h1 { font-size: 24px; }
  .hero-featured h2 { font-size: 20px; }
}

/* ===== Admin-driven public components ===== */

/* Live ad slots */
.ad-slot.ad-live { background:transparent; border:0; padding:0; display:flex; justify-content:center; align-items:center; }
.ad-slot.ad-live img { max-width:100%; height:auto; border-radius:8px; display:block; }

/* Newsletter bar */
.newsletter-bar { background:var(--nc-red, #d32f2f); color:#fff; padding:26px 0; }
.newsletter-inner { display:flex; align-items:center; justify-content:space-between; gap:24px; flex-wrap:wrap; }
.newsletter-bar h4 { margin:0 0 4px; font-size:22px; }
.newsletter-bar p { margin:0; opacity:.9; font-size:14px; }
.nl-form { display:flex; gap:10px; flex:1; max-width:460px; min-width:260px; }
.nl-form input { flex:1; padding:12px 14px; border:0; border-radius:8px; font-size:15px; }
.nl-form button { background:#111; color:#fff; border:0; padding:12px 22px; border-radius:8px; font-weight:700; cursor:pointer; white-space:nowrap; }
.nl-form button:hover { background:#000; }
.nl-msg { width:100%; background:rgba(255,255,255,.18); padding:10px 14px; border-radius:8px; font-weight:600; }

/* Comments */
.comments { margin-top:34px; }
.comment-thanks { background:#e8f5e9; color:#1b5e20; border:1px solid #a5d6a7; padding:12px 16px; border-radius:8px; margin-bottom:16px; font-weight:600; }
.comment-form { background:var(--nc-card); border:1px solid var(--nc-border); border-radius:12px; padding:18px; margin-bottom:24px; }
.comment-form .cf-row { display:flex; gap:12px; margin-bottom:12px; }
.comment-form input, .comment-form textarea { width:100%; padding:11px 13px; border:1px solid var(--nc-border); border-radius:8px; font-size:15px; font-family:inherit; background:var(--nc-bg); color:inherit; }
.comment-form textarea { min-height:100px; margin-bottom:12px; resize:vertical; }
.btn-comment { background:var(--nc-red, #d32f2f); color:#fff; border:0; padding:11px 24px; border-radius:8px; font-weight:700; cursor:pointer; }
.btn-comment:hover { filter:brightness(.93); }
.comment-item { display:flex; gap:14px; padding:16px 0; border-bottom:1px solid var(--nc-border); }
.ci-avatar { width:42px; height:42px; border-radius:50%; background:var(--nc-red, #d32f2f); color:#fff; display:grid; place-items:center; font-weight:700; font-size:18px; flex-shrink:0; }
.ci-head { margin-bottom:4px; }
.ci-time { color:var(--nc-muted); font-size:12px; margin-left:8px; }
.ci-body p { margin:0; line-height:1.6; }
.cf-row { flex-direction:row; }
@media (max-width:600px){ .comment-form .cf-row { flex-direction:column; } }

/* Live blog page */
.live-page { max-width:820px; margin:0 auto; }
.live-head { padding-bottom:18px; border-bottom:2px solid var(--nc-border); margin-bottom:24px; }
.live-badge { display:inline-block; background:var(--nc-red, #d32f2f); color:#fff; font-weight:800; font-size:13px; padding:4px 12px; border-radius:6px; letter-spacing:.5px; animation:livePulse 1.6s infinite; }
.live-badge.ended { background:#555; animation:none; }
@keyframes livePulse { 0%,100%{opacity:1;} 50%{opacity:.55;} }
.live-head h1 { margin:12px 0 8px; font-size:30px; line-height:1.25; }
.live-summary { color:var(--nc-muted); font-size:16px; margin:0 0 8px; }
.live-timeline { position:relative; padding-left:26px; }
.live-timeline:before { content:""; position:absolute; left:7px; top:6px; bottom:6px; width:2px; background:var(--nc-border); }
.live-entry { position:relative; background:var(--nc-card); border:1px solid var(--nc-border); border-radius:12px; padding:16px 18px; margin-bottom:18px; }
.live-entry:before { content:""; position:absolute; left:-23px; top:20px; width:12px; height:12px; border-radius:50%; background:var(--nc-red, #d32f2f); border:3px solid var(--nc-bg); }
.le-time { color:var(--nc-red, #d32f2f); font-weight:700; font-size:13px; margin-bottom:8px; }
.le-body { line-height:1.7; font-size:16px; }
.le-img { max-width:100%; border-radius:8px; margin-top:12px; }
.live-entry.is-new { animation:newEntry .8s ease; }
@keyframes newEntry { from{ background:#fff8e1; transform:translateY(-6px); opacity:0; } to{ opacity:1; } }
