/* =====================================================
   AajTak Frontend CSS — Full Redesign
   ===================================================== */

:root {
  --primary: #e8001c;
  --navy: #002147;
  --navy-dark: #001530;
  --text: #1a1a1a;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --bg: #ffffff;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Noto Sans Devanagari', 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  margin: 0;
  font-size: 14px;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ── Network Top Bar ── */
.network-bar {
  background: #fff;
  border-bottom: 1px solid #ddd;
  font-size: 12px;
}
.network-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 12px;
  gap: 12px;
}
.network-bar .links {
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
  flex: 1;
}
.network-bar .links::-webkit-scrollbar { display: none; }
.network-bar .links a {
  padding: 7px 12px;
  color: #333;
  font-size: 12px;
  border-right: 1px solid #eee;
  transition: color .2s;
}
.network-bar .links a.active { color: var(--primary); font-weight: 600; }
.network-bar .links a:hover { color: var(--primary); }
.network-bar .links .more-btn {
  padding: 7px 10px;
  background: #f5f5f5;
  cursor: pointer;
  border: none;
  font-size: 12px;
}
.network-bar .sign-in {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 5px 16px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid #ddd;
}

/* ── Main Header / Navbar ── */
.main-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  margin: 25px 0;
}
.main-header .header-inner {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 12px;
  display: flex;
  align-items: center;
  height: 45px;
  gap: 0;
}
.hamburger-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 20px;
  padding: 0 14px 0 0;
  cursor: pointer;
}
.logo-wrap {
  display: flex;
  align-items: center;
  text-decoration: none;
  margin-right: 4px;
}
.header-logo-img {
  height: 80px;
  width: auto;
  transform: translateY(10px);
  z-index: 1100;
  margin-bottom: 20px;
}
.logo-text-fallback {
  color: #fff;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -1px;
  background: var(--primary);
  padding: 4px 10px;
  border-radius: 6px;
}

/* Nav Links */
.main-nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
  flex: 1;
}
.main-nav-links > li {
  position: relative;
}
.main-nav-links > li > a {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #fff;
  padding: 0 13px;
  height: 45px;
  font-size: 14px;
  font-weight: 500;
  transition: background .2s;
  white-space: nowrap;
}
.main-nav-links > li > a:hover,
.main-nav-links > li > a.active {
  background: rgba(255,255,255,0.12);
  color: #f8d000;
}
.main-nav-links > li > a .caret { font-size: 10px; opacity: 0.7; }

/* Dropdown */
.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  min-width: 200px;
  z-index: 9999;
  padding: 6px 0;
  border-radius: 0 0 6px 6px;
}
.main-nav-links > li:hover .nav-dropdown { display: block; }
.nav-dropdown a {
  display: block;
  padding: 8px 16px;
  color: #333;
  font-size: 13px;
}
.nav-dropdown a:hover { background: #f5f5f5; color: var(--primary); }

/* Right icons */
.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.header-right .h-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  padding: 0 8px;
  height: 45px;
  font-size: 19px;
  cursor: pointer;
  background: none;
  border: none;
  transition: all 0.2s;
  position: relative;
}
.header-right .h-btn:hover { background: rgba(255,255,255,0.1); color: #f8d000; }
.header-right .live-badge {
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 3px;
  letter-spacing: 1px;
  animation: blink 1.5s infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.6} }
.header-right .notif-count {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--primary);
  color: #fff;
  font-size: 8px;
  font-weight: 700;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--navy);
  z-index: 5;
  line-height: 1;
}
.header-right .notif-pill {
  border-radius: 4px;
  width: auto;
  height: auto;
  padding: 1px 3px;
  font-size: 7px;
  top: 4px;
  right: 0px;
}
.header-icon-label {
  font-size: 7px; 
  margin-top: 1px; 
  font-weight: 700; 
  opacity: 0.9;
  line-height: 1;
}

/* ── Breaking News Bar ── */
.breaking-bar {
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  overflow: hidden;
}
.breaking-bar .bn-label {
  background: #b5000f;
  padding: 9px 16px;
  white-space: nowrap;
  letter-spacing: 1px;
  font-size: 12px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.breaking-bar .bn-text {
  flex: 1;
  overflow: hidden;
  padding: 0 12px;
}
.breaking-bar marquee { font-size: 13px; }
.breaking-bar .bn-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 18px;
  padding: 0 14px;
  cursor: pointer;
  flex-shrink: 0;
  opacity: 0.8;
}
.breaking-bar .bn-close:hover { opacity: 1; }

/* ── Trending Pills ── */
.trending-bar {
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
  padding: 6px 0;
  overflow: hidden;
}
.trending-bar-inner {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 4px;
  display: flex;
  align-items: center;
  gap: 0;
}
.trending-bar .arrow-btn {
  background: none;
  border: 1px solid #ccc;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  font-size: 11px;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
  transition: all .2s;
}
.trending-bar .arrow-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.trending-pills {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 2px 8px;
  flex: 1;
}
.trending-pills::-webkit-scrollbar { display: none; }
.trending-pills a {
  white-space: nowrap;
  font-size: 12px;
  padding: 4px 12px;
  border: 1px solid #d0d0d0;
  border-radius: 20px;
  color: #333;
  background: #fff;
  transition: all .2s;
}
.trending-pills a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ── Sponsor Banner ── */
.sponsor-bar {
  background: linear-gradient(90deg, #002147 0%, #003580 100%);
  color: #fff;
  padding: 8px 0;
}
.sponsor-bar-inner {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}
.sponsor-title {
  font-size: 24px;
  font-weight: 900;
  padding-right: 20px;
  border-right: 1px solid rgba(255,255,255,0.3);
  white-space: nowrap;
  letter-spacing: -0.5px;
}
.sponsor-group {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 20px;
  border-right: 1px solid rgba(255,255,255,0.3);
  flex-wrap: wrap;
}
.sponsor-group:last-child { border-right: none; }
.sponsor-label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.6;
  margin-bottom: 3px;
}
.sponsor-logo {
  background: #fff;
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 700;
  color: #333;
  white-space: nowrap;
}

/* ── Content Wrapper ── */
.content-wrapper {
  max-width: 1220px;
  margin: 0 auto;
  padding: 12px;
}

/* ── 3-Column Grid ── */
.home-grid {
  display: grid;
  grid-template-columns: 1fr 320px 300px;
  gap: 16px;
  align-items: start;
}
@media (max-width: 992px) {
  .home-grid { grid-template-columns: 1fr 280px; }
  .home-col-right { display: none; }
}
@media (max-width: 768px) {
  .home-grid { grid-template-columns: 1fr; }
  .home-col-mid, .home-col-right { display: none; }
}

/* ── Hero Article (Left column) ── */
.hero-main-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}
.hero-headline {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.35;
  color: #111;
  margin: 10px 0 6px;
}
.hero-summary {
  font-size: 13px;
  color: #555;
  line-height: 1.6;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}
.hero-meta { font-size: 12px; color: var(--text-muted); }

/* Mini articles below hero */
.mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}
.mini-card {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}
.mini-card img {
  width: 100px;
  height: 68px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}
.mini-card-title {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  color: #111;
}
.mini-card:hover .mini-card-title { color: var(--primary); }

/* ── Middle Column — Superfast ── */
.section-header-sf {
  background: var(--primary);
  color: #fff;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 2px 2px 0 0;
}
.sf-list-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}
.sf-list-item img {
  width: 88px;
  height: 60px;
  object-fit: cover;
  border-radius: 3px;
  flex-shrink: 0;
}
.sf-list-item-title {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  color: #111;
}
.sf-list-item:hover .sf-list-item-title { color: var(--primary); }
.sf-list-item-meta { font-size: 11px; color: var(--text-muted); margin-top: 3px; }
.sf-card { background: #fff; padding: 0 12px 12px; border: 1px solid #e0e0e0; }
.sf-card-header { color: var(--primary); font-weight: 700; padding: 8px 0; font-size: 12px; letter-spacing: 0.5px; border-bottom: 2px solid var(--primary); margin-bottom: 0; }

/* ── Right Column ── */
.right-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  margin-bottom: 12px;
  border-radius: 2px;
}
.right-card-header {
  display: flex;
  border-bottom: 1px solid #e0e0e0;
}
.right-tab {
  flex: 1;
  text-align: center;
  padding: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  color: #555;
  background: #f8f8f8;
  transition: all .2s;
}
.right-tab.active {
  background: var(--primary);
  color: #fff;
}
.right-thumb {
  position: relative;
  cursor: pointer;
}
.right-thumb img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}
.play-icon {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 46px; height: 46px;
  background: rgba(0,0,0,0.65);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
}
.right-card-body { padding: 10px 12px; }
.right-card-title { font-size: 13px; font-weight: 700; color: #111; line-height: 1.4; margin-bottom: 6px; }
.right-card-meta { font-size: 11px; color: var(--text-muted); }

.fav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 8px 16px;
  background: #fff;
  color: #333;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  margin-bottom: 12px;
  transition: all .2s;
  text-decoration: none;
  width: 100%;
}
.fav-btn:hover { border-color: var(--primary); color: var(--primary); }
.fav-btn .star { color: #f59e0b; font-size: 16px; }

.darasal-card { border: 1px solid #e0e0e0; background: #fff; margin-bottom: 12px; }
.darasal-header {
  background: var(--primary);
  color: #fff;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}
.darasal-img { width: 100%; }

/* ── Section Divider ── */
.section-sep {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 20px 0 12px;
}
.section-sep .sep-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--navy);
  white-space: nowrap;
  border-left: 4px solid var(--primary);
  padding-left: 10px;
}
.section-sep .sep-line { flex: 1; height: 1px; background: #e0e0e0; }
.section-sep .sep-more { font-size: 12px; color: var(--primary); font-weight: 600; white-space: nowrap; }

/* ── White card block ── */
.news-block { background: #fff; border: 1px solid #e5e7eb; }

/* ── Footer ── */
.main-footer { background: var(--navy); color: #ccc; padding: 40px 0 0; margin-top: 40px; }
.main-footer a { color: #aaa; }
.main-footer a:hover { color: #fff; }
.footer-title { color: #fff; font-size: 14px; font-weight: 700; margin-bottom: 14px; text-transform: uppercase; letter-spacing: 0.5px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { font-size: 13px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 30px; padding: 14px 0; text-align: center; font-size: 12px; color: #888; }

/* ── Hover effects ── */
.hover-primary:hover { color: var(--primary) !important; }

/* ── Responsive Logo ── */
.header-logo-img {
  height: 80px;
  width: auto;
  transform: translateY(10px);
  z-index: 1100;
  margin-bottom: 12px;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .main-header { margin: 0; }
  .header-logo-img {
    height: 36px;
    transform: translateY(0);
    margin-bottom: 0;
  }
  .header-right { gap: 2px; }
  .header-right .h-btn {
    border-left: none;
    padding: 0 6px;
    font-size: 16px;
  }
  .sponsor-bar { display: none; }
  .hero-headline { font-size: 18px; }
}

/* ── Premium Sidebar Widgets ── */
.premium-widget-header {
    position: relative;
    padding-bottom: 8px;
}
.premium-widget-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--navy);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.premium-widget-line {
    width: 40px;
    height: 3px;
    background: var(--primary);
    margin-top: 6px;
}
.sidebar-widget {
    background: #fff;
    border-radius: 8px;
}
.widget-content {
    border-top: 1px solid #f0f0f0;
    padding-top: 15px;
}

/* ── Premium Footer ── */
.main-footer {
    background: #0f0f23;
    color: #f0f0f0;
    padding: 80px 0 0;
    margin-top: 60px;
}
.footer-logo {
    max-height: 50px;
    filter: brightness(0) invert(1);
}
.footer-logo-text {
    color: #fff;
    font-weight: 900;
    font-size: 28px;
    letter-spacing: -1px;
}
.footer-about-text {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    line-height: 1.8;
}
.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    transition: all 0.3s ease;
}
.social-icon:hover {
    transform: translateY(-5px);
    color: #fff;
}
.social-icon.fb:hover { background: #1877f2; }
.social-icon.tw:hover { background: #1da1f2; }
.social-icon.yt:hover { background: #ff0000; }
.social-icon.ig:hover { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }

.footer-title {
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}
.footer-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary);
}
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li {
    margin-bottom: 12px;
}
.footer-links a {
    color: rgba(255,255,255,0.65);
    font-size: 14px;
    transition: all 0.2s ease;
}
.footer-links a:hover {
    color: #fff;
    padding-left: 5px;
}
.app-badge img {
    height: 40px;
    transition: transform 0.2s;
}
.app-badge:hover img {
    transform: scale(1.05);
}
.footer-bottom-row {
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}
.footer-legal-links a {
    color: inherit;
    text-decoration: none;
}
.footer-legal-links a:hover {
    color: #fff;
}
@media (max-width: 991px) {
    .main-footer { padding-top: 50px; }
    .footer-brand-box { text-align: center; margin-bottom: 40px; }
    .footer-social-links { justify-content: center; }
}
