/* =====================================================================
   NewsFlow CMS — "Vani" theme (inspired by vijayavani.net)
   Solid red masthead, gold accents, bold sans headlines, lead+list sections
   ===================================================================== */

:root {
  --nf-red: #d21f2b;
  --nf-red-dark: #b01722;
  --nf-gold: #f2b705;
  --nf-ink: #1a1a1a;
}

body {
  font-family: 'Mukta', 'Noto Sans Kannada', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  background: var(--bs-body-bg);
}

/* Reading progress bar */
#nf-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: var(--nf-gold); z-index: 3000; transition: width .1s linear;
}

/* ---------------------------------------------------------------- */
/* Masthead                                                           */
/* ---------------------------------------------------------------- */
.nf-masthead {
  background: var(--nf-red);
  box-shadow: 0 2px 10px rgba(0,0,0,.25);
}
.nf-logo-text {
  font-weight: 800; font-size: 1.9rem; letter-spacing: -.5px; color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,.25);
}
.nf-logo img { max-height: 46px; }

.nf-burger, .nf-head-icon {
  background: transparent; border: 0; color: #fff;
  width: 42px; height: 42px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.15rem; transition: background .15s;
}
.nf-burger:hover, .nf-head-icon:hover { background: rgba(255,255,255,.15); }
.nf-burger { font-size: 1.4rem; }

/* Category strip under the masthead */
.nf-navstrip { background: var(--nf-red-dark); }
.nf-navstrip-list {
  display: flex; gap: .25rem; list-style: none; margin: 0; padding: 0;
  overflow-x: auto; scrollbar-width: none;
}
.nf-navstrip-list::-webkit-scrollbar { display: none; }
.nf-navstrip-list a {
  display: block; color: #fff; text-decoration: none;
  font-weight: 600; font-size: .85rem; text-transform: uppercase; letter-spacing: .4px;
  padding: .55rem .85rem; white-space: nowrap; border-bottom: 3px solid transparent;
}
.nf-navstrip-list a:hover { background: rgba(255,255,255,.12); border-bottom-color: var(--nf-gold); }

/* Search bar inside masthead */
#nfSearchBar .form-control { border: 0; }
.nf-btn-gold { background: var(--nf-gold); color: var(--nf-ink); font-weight: 700; border: 0; }
.nf-btn-gold:hover { background: #ddaa04; color: var(--nf-ink); }

/* Offcanvas menu */
.nf-offcanvas { background: var(--nf-red-dark); color: #fff; width: 300px; }
.nf-offcanvas .offcanvas-header { background: var(--nf-red); }
.nf-menu-list { list-style: none; margin: 0; padding: 0; }
.nf-menu-list > li { border-bottom: 1px solid rgba(255,255,255,.12); }
.nf-menu-list a {
  display: block; color: #fff; text-decoration: none; padding: .7rem 1rem; font-weight: 600;
}
.nf-menu-list a:hover { background: rgba(255,255,255,.1); }
.nf-menu-list .nf-menu-sub { padding-left: 2.9rem; font-weight: 400; font-size: .9rem; color: rgba(255,255,255,.85); }

/* ---------------------------------------------------------------- */
/* Breaking ticker                                                    */
/* ---------------------------------------------------------------- */
.nf-ticker { background: var(--bs-body-bg); border-bottom: 2px solid var(--nf-red); }
.nf-ticker-label {
  background: var(--nf-red); color: #fff; font-weight: 700; text-transform: uppercase;
  font-size: .75rem; padding: .3rem .7rem; border-radius: .25rem; letter-spacing: .5px;
}
.nf-ticker-track { display: flex; gap: 2.5rem; white-space: nowrap; animation: nf-scroll 40s linear infinite; }
.nf-ticker-track:hover { animation-play-state: paused; }
.nf-ticker-item { color: var(--bs-body-color); text-decoration: none; font-weight: 600; }
.nf-ticker-item:hover { color: var(--nf-red); }
@keyframes nf-scroll { from { transform: translateX(100%); } to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) { .nf-ticker-track { animation: none; flex-wrap: wrap; } }

/* ---------------------------------------------------------------- */
/* Hero carousel (Focus story)                                        */
/* ---------------------------------------------------------------- */
.nf-hero { position: relative; background: #000; }
.nf-hero-img { height: 460px; object-fit: cover; opacity: .95; }
.nf-hero-overlay {
  position: absolute; inset: auto 0 0 0; padding: 4rem 1.75rem 2.5rem;
  background: linear-gradient(transparent, rgba(0,0,0,.92));
}
.nf-hero-title { font-size: 1.9rem; font-weight: 800; line-height: 1.25; }
.nf-hero-title a { color: #fff; text-decoration: none; }
.nf-hero-title a:hover { color: var(--nf-gold); }
.nf-focus-badge {
  position: absolute; top: 1rem; right: 0; z-index: 5;
  background: #fff; color: var(--nf-red); font-weight: 800; text-transform: uppercase;
  font-size: .78rem; letter-spacing: .5px; padding: .35rem .9rem .35rem .7rem;
  border-left: 4px solid var(--nf-gold); box-shadow: 0 2px 8px rgba(0,0,0,.35);
}
.nf-focus-badge i { color: var(--nf-gold); }
.nf-hero-dots { margin-bottom: .5rem; }
.nf-hero-dots button { width: 9px !important; height: 9px !important; border-radius: 50%; }
.nf-btn-red { background: var(--nf-red); color: #fff; font-weight: 700; border: 0; }
.nf-btn-red:hover { background: var(--nf-red-dark); color: #fff; }
@media (max-width: 768px) {
  .nf-hero-img { height: 320px; }
  .nf-hero-title { font-size: 1.25rem; }
  .nf-hero-overlay { padding: 2.5rem 1rem 2.25rem; }
}

/* ---------------------------------------------------------------- */
/* Section heads (red title + icon, like ರಾಜ್ಯ headers)               */
/* ---------------------------------------------------------------- */
.nf-sec-head {
  display: flex; justify-content: space-between; align-items: center;
  border-bottom: 2px solid var(--nf-red); margin-bottom: 1rem; padding-bottom: .4rem;
}
.nf-sec-title {
  color: var(--nf-red); font-weight: 800; font-size: 1.25rem; margin: 0;
  display: flex; align-items: center; gap: .5rem;
}
.nf-sec-title i { color: var(--nf-gold); font-size: 1rem; }
.nf-sec-more {
  color: var(--nf-red); text-decoration: none; font-weight: 700; font-size: .85rem; text-transform: uppercase;
}
.nf-sec-more:hover { color: var(--nf-red-dark); }

/* ---------------------------------------------------------------- */
/* Cards                                                              */
/* ---------------------------------------------------------------- */
.nf-card { background: var(--bs-body-bg); }
.nf-card-img-wrap { position: relative; display: block; overflow: hidden; border-radius: .5rem; }
.nf-card-img { height: 175px; object-fit: cover; width: 100%; transition: transform .3s ease; }
.nf-card:hover .nf-card-img { transform: scale(1.05); }
.nf-cat-badge { position: absolute; left: .6rem; top: .6rem; font-weight: 700; }
.nf-title-link { color: var(--bs-body-color); text-decoration: none; font-weight: 700; line-height: 1.35; }
.nf-title-link:hover { color: var(--nf-red); }

/* Lead story (left) */
.nf-lead-img { height: 300px; object-fit: cover; transition: transform .3s ease; }
.nf-lead:hover .nf-lead-img { transform: scale(1.03); }
.nf-lead-img-wrap { overflow: hidden; }
.nf-lead-title { font-size: 1.3rem; font-weight: 800; line-height: 1.3; }
.nf-lead-title a { color: var(--bs-body-color); text-decoration: none; }
.nf-lead-title a:hover { color: var(--nf-red); }
.nf-lead-excerpt { color: var(--bs-secondary-color); font-size: .95rem; margin-bottom: .5rem; }
.nf-readmore { color: var(--nf-red); font-weight: 700; text-decoration: none; font-size: .9rem; }
.nf-readmore:hover { color: var(--nf-red-dark); }

/* Side list (right of lead) */
.nf-side-list { display: flex; flex-direction: column; }
.nf-side-item { display: flex; gap: .75rem; padding: .55rem 0; border-bottom: 1px solid var(--bs-border-color); }
.nf-side-item:last-child { border-bottom: 0; }
.nf-side-thumb { width: 104px; height: 72px; object-fit: cover; }
.nf-side-title { font-size: .95rem; font-weight: 700; line-height: 1.35; margin: 0 0 .15rem; }
.nf-side-title a { color: var(--bs-body-color); text-decoration: none; }
.nf-side-title a:hover { color: var(--nf-red); }
.nf-mini-img { width: 92px; height: 68px; object-fit: cover; }

/* Widgets */
.nf-widget {
  background: var(--bs-body-bg); border: 1px solid var(--bs-border-color);
  border-top: 3px solid var(--nf-red); border-radius: .5rem; padding: 1rem 1.1rem;
}
.nf-trend-num {
  font-size: 1.45rem; font-weight: 800; color: var(--nf-red); line-height: 1.1; min-width: 1.6rem;
}
.nf-tag {
  display: inline-block; font-weight: 600; text-decoration: none; font-size: .85rem;
  color: var(--bs-body-color); border: 1px solid var(--bs-border-color);
  border-radius: 2rem; padding: .25rem .8rem;
}
.nf-tag:hover { background: var(--nf-red); border-color: var(--nf-red); color: #fff; }

/* ---------------------------------------------------------------- */
/* Article page                                                       */
/* ---------------------------------------------------------------- */
.nf-article-title { font-weight: 800; font-size: 2.1rem; line-height: 1.25; }
.nf-article-body { font-size: 1.125rem; line-height: 1.85; }
.nf-article-body img { max-width: 100%; height: auto; border-radius: .375rem; }
.nf-article-body blockquote {
  border-left: 4px solid var(--nf-red); padding: .5rem 1.25rem;
  font-style: italic; background: var(--bs-tertiary-bg); border-radius: 0 .375rem .375rem 0;
}
.nf-article-body table { width: 100%; margin: 1rem 0; border-collapse: collapse; }
.nf-article-body table td, .nf-article-body table th { border: 1px solid var(--bs-border-color); padding: .5rem; }
.breadcrumb-item a { color: var(--nf-red); text-decoration: none; }

/* Author box */
.nf-author-box { background: var(--bs-tertiary-bg); border-left: 4px solid var(--nf-red); }
.nf-avatar { width: 56px; height: 56px; object-fit: cover; }
.nf-avatar-lg { width: 96px; height: 96px; object-fit: cover; }

/* Share buttons */
.nf-share { color: #fff !important; width: 36px; }
.nf-share-fb { background: #1877f2; } .nf-share-x { background: #111; }
.nf-share-wa { background: #25d366; } .nf-share-tg { background: #2aabee; }
.nf-share-in { background: #0a66c2; }
.nf-share:hover { opacity: .85; }

/* Ads */
.nf-ad { min-height: 50px; }
.nf-ad-label { display: block; font-size: .65rem; text-transform: uppercase; letter-spacing: 1px; color: var(--bs-secondary-color); margin-bottom: .25rem; }

/* Live search dropdown */
.nf-live-results {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 1050;
  background: var(--bs-body-bg); border-radius: .375rem; max-height: 420px; overflow-y: auto;
}
.nf-live-results a { display: flex; gap: .75rem; padding: .6rem .75rem; text-decoration: none; color: var(--bs-body-color); border-bottom: 1px solid var(--bs-border-color); }
.nf-live-results a:hover { background: var(--bs-tertiary-bg); }
.nf-live-results img { width: 60px; height: 44px; object-fit: cover; border-radius: .25rem; }

/* ---------------------------------------------------------------- */
/* Footer — deep red like the masthead                                */
/* ---------------------------------------------------------------- */
.nf-footer { background: var(--nf-red-dark); color: rgba(255,255,255,.85); border-top: 4px solid var(--nf-gold); }
.nf-footer .nf-logo-text { color: #fff; }
.nf-footer h6 { color: var(--nf-gold); font-weight: 700; letter-spacing: .5px; }
.nf-footer .text-body-secondary { color: rgba(255,255,255,.7) !important; }
.nf-footer-link { color: rgba(255,255,255,.8); text-decoration: none; }
.nf-footer-link:hover { color: var(--nf-gold); }
.nf-footer hr { border-color: rgba(255,255,255,.25); }
.nf-footer .form-control { border: 0; }

/* Floating WhatsApp join button */
.nf-wa-float {
  position: fixed; bottom: 1.25rem; right: 1.25rem; z-index: 1990;
  display: flex; align-items: center; gap: .5rem;
  background: #25d366; color: #fff; text-decoration: none; font-weight: 700;
  padding: .65rem .8rem; border-radius: 2rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .3);
  transition: transform .15s ease, background .15s ease;
  animation: nf-wa-pulse 2.5s ease-in-out infinite;
}
.nf-wa-float:hover { background: #1eb757; color: #fff; transform: translateY(-2px); }
.nf-wa-float i { font-size: 1.6rem; line-height: 1; }
.nf-wa-label { font-size: .9rem; white-space: nowrap; }
@keyframes nf-wa-pulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(0,0,0,.3), 0 0 0 0 rgba(37, 211, 102, .45); }
  50%      { box-shadow: 0 4px 16px rgba(0,0,0,.3), 0 0 0 12px rgba(37, 211, 102, 0); }
}
@media (prefers-reduced-motion: reduce) { .nf-wa-float { animation: none; } }
/* Icon-only on small screens so it doesn't cover content */
@media (max-width: 576px) {
  .nf-wa-label { display: none; }
  .nf-wa-float { padding: .65rem .78rem; }
}
@media print { .nf-wa-float { display: none !important; } }

/* Cookie banner */
.nf-cookie {
  position: fixed; bottom: 1rem; left: 50%; transform: translateX(-50%);
  background: var(--nf-ink); color: #fff;
  padding: .75rem 1.25rem; border-radius: 2rem; z-index: 2000;
  display: flex; gap: 1rem; align-items: center; max-width: 92vw;
}

/* Honeypot field */
.nf-hp { position: absolute !important; left: -9999px !important; height: 1px; width: 1px; overflow: hidden; }

/* Dark mode adjustments */
[data-bs-theme="dark"] .nf-masthead { box-shadow: 0 2px 10px rgba(0,0,0,.6); }
[data-bs-theme="dark"] .nf-widget { background: var(--bs-tertiary-bg); }
[data-bs-theme="dark"] .nf-ticker { border-bottom-color: var(--nf-red); }

/* Print */
@media print {
  .nf-masthead, .nf-ticker, .nf-footer, .nf-ad, aside, #comments, .nf-share, #nf-copy-link { display: none !important; }
}
