/* ============================================================
   BharatNews Portal — Main Stylesheet
   Indian News Portal | NDTV/Times of India inspired
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;800;900&family=Source+Sans+3:wght@300;400;500;600;700&family=Noto+Sans+Devanagari:wght@400;600;700&display=swap');

/* ── CSS Variables ── */
:root {
  --saffron: #FF6600;
  --deep-red: #C0392B;
  --india-blue: #0099CC;
  --green: #138808;
  --white: #FFFFFF;
  --off-white: #F8F5F0;
  --ink: #0099CC;
  --charcoal: #2C2C3E;
  --muted: #6B7280;
  --border: #E5E0D8;
  --card-bg: #FFFFFF;
  --header-bg: #FFFFFF;
  --breaking: #D40000;
  --tag-bg: #FFF3E0;
  --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
  --radius: 4px;
  --radius-md: 8px;
  --font-head: 'Playfair Display', Georgia, serif;
  --font-body: 'Source Sans 3', sans-serif;
  --font-deva: 'Noto Sans Devanagari', sans-serif;
  --transition: 0.25s ease;
}

/* Dark mode */
[data-theme="dark"] {
  --ink: #F0EDE8;
  --charcoal: #D4D0CA;
  --muted: #9CA3AF;
  --border: #2E2E3E;
  --card-bg: #000;
  --header-bg: #000;
  --off-white: #000;
  --tag-bg: #2A1800;
  --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
}

/* ── Reset & Base ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--off-white);
  color: var(--ink);
  line-height: 1.6;
  transition: background var(--transition), color var(--transition);
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
  object-fit: cover;
}

ul {
  list-style: none;
}

/* ── Utility ── */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 16px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 2px;
  background: var(--saffron);
  color: #fff;
}

.badge--blue {
  background: var(--india-blue);
}

.badge--red {
  background: var(--deep-red);
}

.badge--green {
  background: var(--green);
}

/* ── Top Bar ── */
.topbar {
  background: var(--india-blue);
  color: #fff;
  font-size: 12px;
  padding: 6px 0;
  border-bottom: 3px solid var(--saffron);
}

.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.topbar__date {
  opacity: 0.85;
}

.topbar__links {
  display: flex;
  gap: 16px;
}

.topbar__links a {
  opacity: 0.85;
  transition: opacity var(--transition);
}

.topbar__links a:hover {
  opacity: 1;
}

.topbar__lang {
  display: flex;
  gap: 8px;
  align-items: center;
}

.lang-btn {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 2px;
  cursor: pointer;
  transition: background var(--transition);
}

.lang-btn:hover,
.lang-btn.active {
  background: var(--saffron);
  border-color: var(--saffron);
}

/* ── Header ── */
.site-header {
  background: var(--header-bg);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: background var(--transition);
}

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  gap: 16px;
}

.site-logo {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.logo-text {
  font-family: var(--font-head);
  font-size: 32px;
  font-weight: 900;
  color: var(--india-blue);
  letter-spacing: -1px;
  line-height: 1;
}

.logo-text span {
  color: var(--saffron);
}

.logo-sub {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.header-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.btn-icon {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius);
  color: var(--ink);
  font-size: 18px;
  transition: background var(--transition), color var(--transition);
  display: flex;
  align-items: center;
}

.btn-icon:hover {
  background: var(--off-white);
  color: var(--saffron);
}

.btn-subscribe {
  background: var(--saffron);
  color: #fff;
  border: none;
  padding: 8px 18px;
  font-weight: 700;
  font-size: 13px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition);
  letter-spacing: 0.5px;
}

.btn-subscribe:hover {
  background: var(--deep-red);
}

/* ── Search Bar ── */
.search-bar {
  display: none;
  background: var(--off-white);
  border-top: 1px solid var(--border);
  padding: 10px 0;
}

.search-bar.active {
  display: block;
}

.search-bar form {
  display: flex;
  gap: 8px;
}

.search-bar input {
  flex: 1;
  padding: 10px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 15px;
  font-family: var(--font-body);
  background: var(--card-bg);
  color: var(--ink);
  transition: border-color var(--transition);
}

.search-bar input:focus {
  outline: none;
  border-color: var(--saffron);
}

.search-bar button {
  background: var(--saffron);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 700;
}

/* ── Navigation ── */

/* NAVBAR */
.navbar {
  width: 100%;
  background: var(--india-blue);
  /* background:#c70000; */
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.nav-container {
  max-width: 1300px;
  margin: auto;
  display: flex;
  align-items: center;
  /* justify-content:space-between; */
  padding: 0 20px;
  height: 45px;
}

/* LOGO */
.logo {
  color: #fff;
  font-size: 28px;
  font-weight: bold;
  letter-spacing: 1px;
}

/* MENU */
.menu {
  display: flex;
  list-style: none;
}

.menu li {
  position: relative;
}

.menu li a {
  display: block;
  padding: 8px 18px;
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  transition: 0.3s;
}

.menu li a:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* MEGA MENU */
.mega-menu {
  position: absolute;
  left: 0;
  top: 100%;
  width: auto;
  /* width:900px; */
  background: #fff;
  display: flex;
  gap: 40px;
  padding: 30px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: 0.3s ease;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  border-radius: 0 0 10px 10px;
}

.menu li:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* COLUMNS */
.mega-column {
  flex: 1;
}

.mega-column h4 {
  color: var(--saffron);
  margin-bottom: 15px;
  font-size: 18px;
  text-wrap: nowrap;
  border-bottom: 2px solid #eee;
  padding-bottom: 10px;
}

.mega-column a {
  display: block;
  color: #222 !important;
  padding: 8px 0 !important;
  font-size: 14px;
  text-decoration: none;
  transition: 0.3s;
  text-wrap: nowrap;
}

.mega-column a:hover {
  color: #c70000 !important;
  padding-left: 5px !important;
}

/* MOBILE BUTTON */
.mobile-btn {
  display: none;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
}

/* RESPONSIVE */
@media(max-width:991px) {

  .mobile-btn {
    display: block;
  }

  .menu {
    position: absolute;
    top: 45px;
    left: -100%;
    width: 100%;
    background: var(--india-blue);
    flex-direction: column;
    transition: 0.4s;
  }

  .menu.active {
    left: 0;
  }

  .menu li {
    width: 100%;
  }

  .menu li a {
    padding: 18px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .mega-menu {
    position: static;
    width: 100%;
    flex-direction: column;
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border-radius: 0;
    padding: 15px;
  }

  .menu li:hover .mega-menu {
    display: flex;
  }
}

/* 
.menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu > li {
    position: relative;
}

.menu > li > a {
    display: block;
    padding: 12px 15px;
    text-decoration: none;
}

.mega-menu {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    min-width: 800px;
    background: #fff;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,.15);
    z-index: 999;
}

.has-mega-menu:hover .mega-menu {
    display: block;
}

.mega-group {
    margin-bottom: 20px;
}

.mega-heading {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
}

.mega-heading a {
    color: #000;
    text-decoration: none;
}

.mega-columns {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.mega-column {
    min-width: 180px;
}

.mega-column a {
    display: block;
    padding: 6px 0;
    color: #444;
    text-decoration: none;
}

.mega-column a:hover {
    color: #c00;
} */



/* ── Breaking News Ticker ── */
.breaking-ticker {
  background: var(--saffron);

  color: #fff;
  display: flex;
  align-items: center;
  overflow: hidden;
  height: 36px;
}

.ticker-label {
  background: #fff;
  color: var(--breaking);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 0 16px;
  height: 100%;
  display: flex;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
}

.ticker-wrap {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.ticker-track {
  display: flex;
  animation: ticker-scroll 30s linear infinite;
  white-space: nowrap;
}

.ticker-track:hover {
  animation-play-state: paused;
}

.ticker-item {
  padding: 0 48px 0 16px;
  font-size: 13px;
  font-weight: 500;
}

.ticker-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  margin: 0 12px;
  vertical-align: middle;
}

@keyframes ticker-scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* ── Hero / Featured ── */
.hero-section {
  padding: 24px 0 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  grid-template-rows: auto auto;
  gap: 16px;
}

.hero-main {
  grid-row: 1 / 3;
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
}

.hero-main img {
  width: 100%;
  height: 480px;
  transition: transform 0.4s ease;
}

.hero-main:hover img {
  transform: scale(1.03);
}

.hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(10, 10, 30, 0.95) 0%, rgba(10, 10, 30, 0.4) 60%, transparent 100%);
  padding: 32px 24px 24px;
}

.hero-overlay .badge {
  margin-bottom: 10px;
}

.hero-title {
  font-family: var(--font-head);
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 10px;
}

.hero-title a {
  color: #fff;
}

.hero-title a:hover {
  color: var(--saffron);
}

.hero-meta {
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  display: flex;
  gap: 12px;
  align-items: center;
}

.hero-sub {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-sub-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  display: grid;
  grid-template-columns: 130px 1fr;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
  cursor: pointer;
}

.hero-sub-card:hover {
  box-shadow: var(--shadow-md);
}

.hero-sub-card img {
  height: 100%;
  min-height: 110px;
}

.hero-sub-info {
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-sub-info .badge {
  font-size: 9px;
  margin-bottom: 6px;
}

.hero-sub-title {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
}

.hero-sub-title a:hover {
  color: var(--saffron);
}

.hero-sub-meta {
  font-size: 11px;
  color: var(--muted);
  margin-top: 6px;
}

/* ── Section Headers ── */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--india-blue);
}

.section-title {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
  position: relative;
}

.section-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 22px;
  background: var(--saffron);
  margin-right: 10px;
  vertical-align: middle;
  border-radius: 2px;
}

.section-more {
  font-size: 12px;
  font-weight: 700;
  color: var(--saffron);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: color var(--transition);
}

.section-more:hover {
  color: var(--deep-red);
}

/* ── News Grid Layouts ── */
.news-section {
  padding: 32px 0;
}

.news-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.news-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.news-grid-main {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}

/* ── News Card ── */
.news-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
  cursor: pointer;
}

.news-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.news-card__img-wrap {
  overflow: hidden;
}

.news-card__img {
  width: 100%;
  height: 200px;
  transition: transform 0.4s ease;
}

.news-card:hover .news-card__img {
  transform: scale(1.05);
}

.news-card__body {
  padding: 16px;
}

.news-card__badge {
  margin-bottom: 8px;
}

.news-card__title {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 8px;
}

.news-card__title a:hover {
  color: var(--saffron);
}

.news-card__excerpt {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  color: var(--muted);
}

.news-card__meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ── List Card (horizontal) ── */
.list-card {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}

.list-card:last-child {
  border-bottom: none;
}

.list-card__img {
  width: 90px;
  height: 68px;
  border-radius: var(--radius);
  flex-shrink: 0;
}

.list-card__body {
  flex: 1;
}

.list-card__badge {
  margin-bottom: 5px;
}

.list-card__title {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 4px;
}

.list-card__title a:hover {
  color: var(--saffron);
}

.list-card__meta {
  font-size: 11px;
  color: var(--muted);
}

/* ── Opinion / Column Card ── */
.opinion-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--saffron);
}

.opinion-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.opinion-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.opinion-author-name {
  font-weight: 700;
  font-size: 14px;
}

.opinion-author-role {
  font-size: 11px;
  color: var(--muted);
}

.opinion-title {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 8px;
}

.opinion-excerpt {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

/* ── Sidebar ── */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.sidebar-widget {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.widget-header {
  background: var(--india-blue);
  color: #fff;
  padding: 12px 16px;
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  border-left: 4px solid var(--saffron);
}

.widget-body {
  padding: 16px;
}

/* Trending widget */
.trending-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}

.trending-item:last-child {
  border-bottom: none;
}

.trending-num {
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 800;
  color: var(--border);
  line-height: 1;
  min-width: 28px;
}

.trending-item:hover .trending-num {
  color: var(--saffron);
}

.trending-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}

.trending-title a:hover {
  color: var(--saffron);
}

.trending-meta {
  font-size: 11px;
  color: var(--muted);
  margin-top: 3px;
}

/* Weather widget */
.weather-widget {
  text-align: center;
  padding: 20px 16px;
}

.weather-city {
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.weather-temp {
  font-family: var(--font-head);
  font-size: 52px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1;
}

.weather-icon {
  font-size: 36px;
  margin: 8px 0;
}

.weather-desc {
  font-size: 14px;
  color: var(--muted);
}

.weather-details {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted);
}

/* Stock widget */
.stock-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.stock-item:last-child {
  border-bottom: none;
}

.stock-name {
  font-weight: 600;
}

.stock-val {
  font-weight: 700;
}

.stock-change {
  font-size: 12px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 2px;
}

.stock-up {
  color: #10B981;
  background: #D1FAE5;
}

.stock-down {
  color: #EF4444;
  background: #FEE2E2;
}

/* ── Video Section ── */
.video-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
}

.video-card img {
  width: 100%;
  height: 200px;
  transition: transform 0.4s ease;
}

.video-card:hover img {
  transform: scale(1.05);
}

.video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--deep-red);
  transition: transform var(--transition), background var(--transition);
}

.video-card:hover .video-play {
  transform: translate(-50%, -50%) scale(1.1);
  background: #fff;
}

.video-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
  padding: 20px 14px 14px;
}

.video-title {
  color: #fff;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}

/* ── Tab Panels ── */
.tab-nav {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border);
  margin-bottom: 20px;
}

.tab-btn {
  background: none;
  border: none;
  padding: 10px 20px;
  font-weight: 600;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: color var(--transition), border-color var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tab-btn.active {
  color: var(--india-blue);
  border-bottom-color: var(--saffron);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

/* ── Poll Widget ── */
.poll-question {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
}

.poll-option {
  margin-bottom: 12px;
}

.poll-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  margin-bottom: 4px;
}

.poll-bar-wrap {
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}

.poll-bar {
  height: 100%;
  background: var(--saffron);
  border-radius: 3px;
  transition: width 0.5s ease;
}

.poll-pct {
  font-size: 11px;
  color: var(--muted);
  text-align: right;
}

.poll-vote-btn {
  background: var(--india-blue);
  color: #fff;
  border: none;
  padding: 10px 24px;
  border-radius: var(--radius);
  font-weight: 700;
  cursor: pointer;
  margin-top: 12px;
  width: 100%;
  transition: background var(--transition);
}

.poll-vote-btn:hover {
  background: var(--saffron);
}

/* ── Footer ── */
.site-footer {
  background: var(--header-bg);
  color: var(--ink);
  margin-top: 48px;
}

.footer-top {
  padding: 48px 0 32px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .logo-text {
  color: #fff;
}

.footer-brand .logo-text span {
  color: var(--saffron);
}

.footer-desc {
  font-size: 13px;
  margin-top: 12px;
  line-height: 1.7;
  opacity: 0.7;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.social-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: background var(--transition);
  cursor: pointer;
}

.social-btn:hover {
  background: var(--saffron);
}

.footer-col-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 16px;
  color: #fff;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--saffron);
  display: inline-block;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  font-size: 13px;
  color: var(--ink);
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--saffron);
}

.footer-bottom {
  padding: 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  opacity: 0.6;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-bottom-links {
  display: flex;
  gap: 16px;
}

.footer-bottom-links a:hover {
  color: var(--saffron);
  opacity: 1;
}

/* ── Page: Category ── */
.category-hero {
  background: linear-gradient(135deg, var(--india-blue) 0%, #001e5c 100%);
  color: #fff;
  padding: 40px 0 32px;
  margin-bottom: 32px;
}

.category-hero-label {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 8px;
}

.category-hero-title {
  font-family: var(--font-head);
  font-size: 42px;
  font-weight: 900;
  margin-bottom: 8px;
}

.category-hero-title span {
  color: var(--saffron);
}

.category-hero-sub {
  opacity: 0.8;
  font-size: 15px;
}

.category-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.filter-btn {
  padding: 6px 16px;
  border: 2px solid var(--border);
  border-radius: 20px;
  background: var(--card-bg);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--saffron);
  border-color: var(--saffron);
  color: #fff;
}

.category-main-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  align-items: start;
}

.articles-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.article-list-item {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}

.article-list-item:hover .article-list-title {
  color: var(--saffron);
}

.article-list-img {
  height: 150px;
  border-radius: var(--radius);
}

.article-list-badge {
  margin-bottom: 8px;
}

.article-list-title {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 8px;
  transition: color var(--transition);
}

.article-list-excerpt {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 12px;
}

.article-list-meta {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--muted);
}

.pagination {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 32px;
}

.page-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  border: 2px solid var(--border);
  background: var(--card-bg);
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-btn:hover,
.page-btn.active {
  background: var(--india-blue);
  border-color: var(--india-blue);
  color: #fff;
}

/* ── Page: Single Article ── */
.article-hero {
  position: relative;
  background: #000;
}

.article-hero-img {
  width: 100%;
  max-height: 520px;
  opacity: 0.85;
}

.article-hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, transparent 60%);
  padding: 60px 0 32px;
}

.article-container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 16px;
}

.article-header {
  padding: 32px 0 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}

.article-category-path {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 12px;
}

.article-category-path a {
  color: var(--saffron);
  font-weight: 600;
}

.article-main-title {
  font-family: var(--font-head);
  font-size: 36px;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 14px;
}

.article-summary {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.6;
  border-left: 4px solid var(--saffron);
  padding-left: 16px;
  margin-bottom: 16px;
  font-style: italic;
}

.article-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.article-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

.author-info-name {
  font-weight: 700;
  font-size: 14px;
}

.author-info-role {
  font-size: 12px;
  color: var(--muted);
}

.article-share {
  display: flex;
  gap: 8px;
}

.share-btn {
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--card-bg);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 5px;
}

.share-btn:hover {
  background: var(--saffron);
  border-color: var(--saffron);
  color: #fff;
}

.article-body {
  font-size: 16px;
  line-height: 1.8;
  color: var(--charcoal);
}

.article-body p {
  margin-bottom: 20px;
}

.article-body h2 {
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 700;
  margin: 32px 0 14px;
  color: var(--ink);
}

.article-body h3 {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  margin: 24px 0 12px;
}

.article-body blockquote {
  border-left: 4px solid var(--saffron);
  background: var(--off-white);
  padding: 16px 20px;
  margin: 24px 0;
  font-style: italic;
  font-size: 18px;
  color: var(--charcoal);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.article-body img {
  border-radius: var(--radius-md);
  margin: 24px 0;
}

.article-body .img-caption {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  margin-top: -16px;
  margin-bottom: 24px;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0;
}

.tag-pill {
  padding: 4px 12px;
  background: var(--tag-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: all var(--transition);
}

.tag-pill:hover {
  background: var(--saffron);
  border-color: var(--saffron);
  color: #fff;
}

.related-section {
  padding: 32px 0;
  border-top: 1px solid var(--border);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.comments-section {
  padding: 32px 0;
  border-top: 1px solid var(--border);
}

.comment-form textarea {
  width: 100%;
  height: 100px;
  padding: 12px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  resize: vertical;
  font-family: var(--font-body);
  font-size: 14px;
  background: var(--card-bg);
  color: var(--ink);
  transition: border-color var(--transition);
}

.comment-form textarea:focus {
  outline: none;
  border-color: var(--saffron);
}

.comment-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.comment-form input {
  padding: 10px 12px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: var(--font-body);
  background: var(--card-bg);
  color: var(--ink);
  transition: border-color var(--transition);
}

.comment-form input:focus {
  outline: none;
  border-color: var(--saffron);
}

.comment-submit {
  background: var(--india-blue);
  color: #fff;
  border: none;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  margin-top: 12px;
  transition: background var(--transition);
}

.comment-submit:hover {
  background: var(--saffron);
}

.comment-list {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.comment-item {
  display: flex;
  gap: 12px;
}

.comment-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--india-blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.comment-body {
  background: var(--off-white);
  border-radius: var(--radius);
  padding: 12px 16px;
  flex: 1;
}

.comment-name {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 4px;
}

.comment-date {
  font-size: 11px;
  color: var(--muted);
}

.comment-text {
  font-size: 14px;
  margin-top: 6px;
  line-height: 1.55;
}

/* ── Ad Banners ── */
/* .ad-banner {
  background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.ad-leaderboard {
  height: 90px;
  margin: 16px 0;
}

.ad-rectangle {
  height: 250px;
}

.ad-strip {
  height: 60px;
  margin: 8px 0;
} */


/* Ad Container */
.ad-banner{
    overflow: hidden;
    border-radius: var(--radius);
}

/* Anchor */
.ad-banner .ad-link{
    display:block;
    width:100%;
    height:100%;
}


.ad-rectangle{
    width:100%;
    height:250px;
}

.ad-strip{
    width:100%;
    height:60px;
    margin:8px 0;
}

.ad-banner .ad-img{
    width:100%;
    height:auto;
    display:block;
}

.ad-leaderboard{
    max-width:728px;
    margin:16px auto;
}

/* ── Notification Toast ── */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--ink);
  color: #fff;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  font-size: 14px;
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  display: flex;
  gap: 12px;
  align-items: center;
  transform: translateY(80px);
  opacity: 0;
  transition: all 0.3s ease;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-icon {
  font-size: 18px;
}

/* ── Cookie Banner ── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--charcoal);
  color: #fff;
  padding: 16px;
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
}

.cookie-banner.hidden {
  display: none;
}

.cookie-accept {
  background: var(--saffron);
  color: #fff;
  border: none;
  padding: 8px 20px;
  border-radius: var(--radius);
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

/* ── Skeleton Loading ── */
@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }

  100% {
    background-position: 1000px 0;
  }
}

.skeleton {
  background: linear-gradient(90deg, var(--border) 25%, var(--off-white) 50%, var(--border) 75%);
  background-size: 1000px 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius);
}

/* ── Back to Top ── */
.back-to-top {
  position: fixed;
  bottom: 80px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: var(--india-blue);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0);
  transition: all 0.3s ease;
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  transform: scale(1);
}

.back-to-top:hover {
  background: var(--saffron);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .news-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-main img {
    height: 380px;
  }

  .hero-sub {
    flex-direction: row;
  }

  .hero-sub-card {
    grid-template-columns: 100px 1fr;
  }

  .news-grid-main {
    grid-template-columns: 1fr;
  }

  .category-main-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .topbar .container {
    flex-wrap: nowrap;
  }

  .topbar__links {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--india-blue);
    z-index: 998;
  }

  .nav-list.open {
    display: flex;
  }

  .nav-link {
    padding: 14px 20px;
  }

  .hero-sub {
    flex-direction: column;
  }

  .news-grid-3 {
    grid-template-columns: 1fr;
  }

  .news-grid-4 {
    grid-template-columns: 1fr;
  }

  .article-list-item {
    grid-template-columns: 1fr;
  }

  .article-list-img {
    height: 200px;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

  .article-main-title {
    font-size: 26px;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

  .comment-form-row {
    grid-template-columns: 1fr;
  }

  .header-main {
    gap: 8px;
  }

  .btn-subscribe {
    display: none;
  }

  .hero-title {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .article-meta-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .article-share {
    flex-wrap: wrap;
  }

  .category-hero-title {
    font-size: 28px;
  }

  .logo-text {
    font-size: 24px;
  }
}


/* ============search pages============= */

.search-page {
  padding: 40px 0;
}

.search-header {
  text-align: center;
  margin-bottom: 35px;
}

.search-header h1 {
  font-size: 34px;
  margin-bottom: 15px;
}

.search-form {
  display: flex;
  max-width: 650px;
  margin: 20px auto;
}

.search-form input {
  flex: 1;
  padding: 14px;
  border: 1px solid #ddd;
  border-radius: 6px 0 0 6px;
  font-size: 16px;
}

.search-form button {
  padding: 14px 28px;
  border: none;
  background: #d62828;
  color: #fff;
  cursor: pointer;
  border-radius: 0 6px 6px 0;
}

.search-count {
  color: #666;
}

.search-card {
  display: flex;
  gap: 20px;
  background: #fff;
  border-radius: 10px;
  margin-bottom: 25px;
  padding: 18px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, .08);
}

.search-thumb {
  width: 240px;
  flex-shrink: 0;
}

.search-thumb img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
}

.search-content {
  flex: 1;
}

.search-content h2 {
  margin-bottom: 10px;
}

.search-content h2 a {
  color: #111;
  text-decoration: none;
}

.search-meta {
  color: #777;
  font-size: 14px;
  margin-bottom: 10px;
}

.search-content p {
  line-height: 1.7;
  color: #555;
}

.read-more {
  display: inline-block;
  margin-top: 10px;
  color: #d62828;
  font-weight: bold;
  text-decoration: none;
}

.no-result {
  text-align: center;
  padding: 80px 20px;
}

.no-result .icon {
  font-size: 70px;
}

.home-btn {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 22px;
  background: #d62828;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
}

@media(max-width:768px) {

  .search-card {
    flex-direction: column;
  }

  .search-thumb {
    width: 100%;
  }

  .search-thumb img {
    height: 220px;
  }

  .search-form {
    flex-direction: column;
    gap: 10px;
  }

  .search-form input,
  .search-form button {
    width: 100%;
    border-radius: 6px;
  }

}






/* Article-specific print styles */
@media print {

  .site-header,
  .breaking-ticker,
  .topbar,
  .sidebar,
  .related-section,
  .site-footer,
  .cookie-banner,
  .back-to-top,
  .article-share,
  .comments-section {
    display: none !important;
  }

  .article-body {
    font-size: 12pt;
    line-height: 1.6;
  }
}

/* Reading progress bar */
#reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--saffron);
  width: 0%;
  z-index: 9999;
  transition: width 0.1s linear;
}

/* Font size controls */
.article-body.text-sm {
  font-size: 14px;
}

.article-body.text-md {
  font-size: 16px;
}

.article-body.text-lg {
  font-size: 19px;
}

.article-body.text-xl {
  font-size: 22px;
}

.text-ctrl {
  display: flex;
  gap: 6px;
  align-items: center;
}

.text-ctrl-btn {
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 3px;
  cursor: pointer;
  background: var(--card-bg);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  transition: all var(--transition);
}

.text-ctrl-btn:hover {
  background: var(--saffron);
  color: #fff;
  border-color: var(--saffron);
}

.article-single-wrap {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 16px;
}

@media(max-width:900px) {
  .article-single-wrap {
    grid-template-columns: 1fr;
  }
}