/*
Theme Name: BusinessMunch
Theme URI: https://businessmunch.in
Author: BusinessMunch Media
Description: BusinessMunch – India's Business Intelligence. Pixel-perfect WordPress conversion.
Version: 1.0.4
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: Proprietary
Text Domain: businessmunch
Tags: news, business, finance, magazine, custom-logo, featured-images
*/

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

:root {
  --navy: #0e1f3d;
  --navy-mid: #162847;
  --navy-light: #1e3560;
  --red: #d42b2b;
  --red-dark: #b32020;
  --red-soft: #fdf2f2;
  --gold: #c9922a;
  --gold-light: #f9f0e0;
  --white: #ffffff;
  --off-white: #f5f6f8;
  --surface: #ffffff;
  --border: #e5e7ed;
  --border-dark: #d0d3dc;
  --text: #0d1424;
  --text-mid: #3d4458;
  --text-light: #636878;
  --green: #1a7a3c;
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-serif: 'DM Serif Text', 'DM Serif Display', Georgia, serif;
  --font-body: 'DM Serif Text', 'DM Serif Display', Georgia, serif;
  --max: 1100px;
  --radius: 6px;
  --shadow-sm: 0 1px 4px rgba(0,0,0,0.06), 0 0 0 1px rgba(0,0,0,0.04);
  --shadow: 0 4px 20px rgba(0,0,0,0.08), 0 1px 4px rgba(0,0,0,0.05);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.06);
}

html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: var(--font-serif); background: var(--off-white); color: var(--text); line-height: 1.65; -webkit-font-smoothing: antialiased; letter-spacing: 0.01em; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ====== TOPBAR ====== */
.topbar {
  background: var(--navy);
  padding: 0;
  font-size: 11.5px;
  color: #8fa3c5;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.topbar .wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 36px;
}
.topbar-left { display: flex; gap: 0; }
.topbar-left a {
  color: #7a94b8;
  transition: color .2s;
  padding: 0 14px;
  border-right: 1px solid rgba(255,255,255,0.07);
  display: flex;
  align-items: center;
  height: 36px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2px;
}
.topbar-left a:first-child { padding-left: 0; }
.topbar-left a:hover { color: #fff; }
.topbar-right { display: flex; gap: 0; align-items: center; }
.topbar-right a {
  color: #7a94b8;
  font-size: 11px;
  font-weight: 500;
  padding: 0 12px;
  height: 36px;
  display: flex;
  align-items: center;
  border-left: 1px solid rgba(255,255,255,0.07);
  transition: color .2s;
}
.topbar-right a:hover { color: #fff; }
.topbar-date {
  color: #7a90b0;
  font-size: 11px;
  padding-right: 16px;
  letter-spacing: 0.3px;
}
.subscribe-btn-top {
  background: var(--red);
  color: white !important;
  font-weight: 600 !important;
  font-size: 10.5px !important;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 0 16px !important;
  border-left: none !important;
  border-radius: 0;
  transition: background .2s !important;
}
.subscribe-btn-top:hover { background: var(--red-dark) !important; color: white !important; }

/* ====== HEADER ====== */
.header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}
.header-top {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}
.logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; min-width: 0; }
.logo-icon {
  width: 40px; height: 40px;
  background: var(--navy);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.logo-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--navy-light), var(--navy));
}
.logo-icon span {
  position: relative;
  font-size: 15px;
  font-weight: 800;
  color: white;
  font-family: var(--font-display);
  letter-spacing: -1.5px;
}
.logo-name {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 400;
  color: var(--text);
  letter-spacing: -0.5px;
  line-height: 1;
}
.logo-name em {
  color: var(--red);
  font-style: normal;
}
.logo-tagline {
  font-size: 9.5px;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 500;
  margin-top: 3px;
}

.header-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
/* header-ad-slot removed — leaderboard moved below nav */
.header-search {
  display: flex;
  align-items: center;
  background: var(--off-white);
  border: 1.5px solid var(--border);
  border-radius: 30px;
  overflow: hidden;
  width: 240px;
  transition: border-color .2s, box-shadow .2s;
}
.header-search:focus-within {
  border-color: var(--navy-light);
  box-shadow: 0 0 0 3px rgba(14,31,61,0.08);
}
.header-search input {
  flex: 1;
  border: none;
  outline: none;
  padding: 8px 16px;
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--text);
  background: transparent;
}
.header-search input::placeholder { color: #aab; }
.header-search button {
  background: none;
  border: none;
  padding: 8px 14px;
  color: var(--text-light);
  cursor: pointer;
  font-size: 14px;
  transition: color .2s;
}
.header-search button:hover { color: var(--navy); }
.header-btn-subscribe {
  background: var(--red);
  color: white;
  border: none;
  border-radius: 6px;
  padding: 9px 20px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-display);
  letter-spacing: 0.3px;
  transition: background .2s, transform .1s;
  white-space: nowrap;
}
.header-btn-subscribe:hover { background: var(--red-dark); transform: translateY(-1px); }

/* ====== NAV ====== */
.nav {
  background: var(--white);
  border-top: 1px solid var(--border);
  overflow: hidden;
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  overflow: hidden;
}
.nav-links {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-links::-webkit-scrollbar { display: none; }
.nav-links a {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-mid);
  padding: 12px 16px;
  white-space: nowrap;
  display: block;
  border-bottom: 2.5px solid transparent;
  transition: all .2s;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  position: relative;
}
.nav-links a:hover { color: var(--navy); border-bottom-color: rgba(14,31,61,0.3); }
.nav-links a.active { color: var(--navy); border-bottom-color: var(--red); }
.nav-premium {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--gold-light);
  border: 1px solid #e8d5a8;
  border-radius: 4px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  padding: 6px 14px;
  font-family: var(--font-display);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  transition: background .2s;
}
.nav-premium:hover { background: #f5e5c0; }
.nav-premium::before { content: '★'; font-size: 10px; }

/* ====== MAIN ====== */
.main-wrap { max-width: var(--max); margin: 0 auto; padding: 24px 24px; }

/* ====== MARKETS BAR — PRO ====== */
.markets-bar {
  background: #0b1628;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 28px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25), 0 1px 0 rgba(255,255,255,0.04);
}
.markets-header {
  background: linear-gradient(90deg, #0d1e3c 0%, #152540 100%);
  color: white;
  padding: 10px 18px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.markets-header::before { display: none; }
.markets-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.markets-live-dot {
  width: 7px; height: 7px;
  background: #22c55e;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px rgba(34,197,94,0.9);
  animation: pulse-green 1.6s infinite;
  flex-shrink: 0;
}
@keyframes pulse-green {
  0%,100% { opacity:1; box-shadow: 0 0 8px rgba(34,197,94,0.9); }
  50% { opacity:0.5; box-shadow: 0 0 3px rgba(34,197,94,0.3); }
}
.markets-header-time {
  font-size: 9px;
  color: rgba(255,255,255,0.28);
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: none;
}
.markets-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
}
.market-item {
  padding: 14px 18px 12px;
  border-right: 1px solid rgba(255,255,255,0.06);
  text-align: center;
  transition: background .18s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.market-item:hover { background: rgba(255,255,255,0.04); }
.market-item:last-child { border-right: none; }
.market-name {
  font-size: 9.5px;
  font-weight: 700;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 2px;
}
.market-val {
  font-size: 19px;
  font-weight: 800;
  color: #eef2ff;
  font-family: var(--font-display);
  letter-spacing: -0.5px;
  line-height: 1.15;
}
.market-change {
  font-size: 11px;
  font-weight: 700;
  margin-top: 3px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 4px;
  width: fit-content;
}
.market-spark {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  height: 18px;
  margin-top: 7px;
  opacity: 0.5;
  width: 100%;
}
.market-spark span {
  width: 3px;
  border-radius: 2px 2px 0 0;
  flex-shrink: 0;
}
.market-spark.spark-up span { background: #22c55e; }
.market-spark.spark-down span { background: #f87171; }
.up { color: #22c55e; }
.down { color: #f87171; }
.market-change.up {
  color: #22c55e;
  background: rgba(34,197,94,0.12);
  border: 1px solid rgba(34,197,94,0.18);
}
.market-change.down {
  color: #f87171;
  background: rgba(248,113,113,0.12);
  border: 1px solid rgba(248,113,113,0.18);
}
.market-change.up::before { content: '▲'; font-size: 7px; }
.market-change.down::before { content: '▼'; font-size: 7px; }

/* ====== HOME GRID ====== */
.home-grid {
  display: grid;
  grid-template-columns: 1fr 310px 290px;
  gap: 24px;
  margin-bottom: 32px;
}

/* ====== FEATURED ====== */
.featured-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--red);
  color: white;
  font-size: 9.5px;
  font-weight: 800;
  padding: 4px 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
  border-radius: 3px;
}
.featured-label::before { content: '●'; font-size: 7px; animation: blink 1.4s infinite; }
.featured-img {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(145deg, #0e1f3d 0%, #162847 40%, #0a1830 100%);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 16px;
  border: 1px solid rgba(255,255,255,0.04);
}
.featured-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(80,120,255,0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(212,43,43,0.08) 0%, transparent 50%);
}
.featured-img::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 40%;
  background: linear-gradient(to top, rgba(0,0,0,0.3), transparent);
}
.featured-img-badge {
  position: absolute;
  top: 14px; left: 14px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.6);
  font-size: 10px;
  padding: 4px 10px;
  border-radius: 3px;
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  z-index: 1;
}
.featured-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  color: var(--text);
  line-height: 1.28;
  margin-bottom: 12px;
  cursor: pointer;
  transition: color .2s;
  letter-spacing: -0.3px;
}
.featured-title:hover { color: var(--red); }
.featured-excerpt {
  font-size: 15px;
  font-family: var(--font-serif);
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 14px;
  font-weight: 400;
}
.featured-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--text-light);
}
.featured-meta .author {
  color: var(--navy);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}
.author-dot {
  width: 22px; height: 22px;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 10px;
  font-weight: 700;
}
.featured-meta .sep { color: var(--border-dark); }
.read-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--navy);
  color: white;
  border-radius: 5px;
  padding: 8px 18px;
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-display);
  cursor: pointer;
  transition: background .2s;
  margin-top: 6px;
  letter-spacing: 0.2px;
}
.read-more-btn:hover { background: var(--navy-light); }
.read-more-btn::after { content: '→'; }

/* ====== TRENDING COL ====== */
.col-label {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--navy);
  border-bottom: 2px solid var(--navy);
  padding-bottom: 10px;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.col-label::before { content: ''; display: block; width: 3px; height: 14px; background: var(--red); border-radius: 2px; }
.trend-item {
  display: flex;
  gap: 0;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: opacity .2s;
  align-items: flex-start;
}
.trend-item:last-child { border-bottom: none; }
.trend-item:hover { opacity: 0.75; }
.trend-img {
  width: 74px; height: 56px;
  border-radius: 5px;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
}
.trend-img.img-1 { background: linear-gradient(135deg, #0e2244, #1e4080); }
.trend-img.img-2 { background: linear-gradient(135deg, #1a4a1a, #2e7e2e); }
.trend-img.img-3 { background: linear-gradient(135deg, #4a0e0e, #882020); }
.trend-img.img-4 { background: linear-gradient(135deg, #2a0e4a, #5020aa); }
.trend-img-emoji {
  position: absolute;
  inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  color: rgba(255,255,255,0.4);
}
.trend-num {
  position: absolute;
  top: 3px; left: 4px;
  font-size: 9px;
  font-weight: 800;
  color: rgba(255,255,255,0.5);
  font-family: var(--font-display);
}
.trend-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.42;
  color: #111827;
  margin-bottom: 5px;
  transition: color .2s;
}
.trend-item:hover .trend-title { color: var(--red); }
.trend-meta { font-size: 10.5px; color: var(--text-mid); font-weight: 600; display: flex; gap: 6px; align-items: center; }
.trend-cat { color: var(--red); font-weight: 700; text-transform: uppercase; font-size: 9.5px; letter-spacing: 0.8px; }

/* ====== SIDEBAR (ad + trending today) ====== */
.ad-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}
.ad-label {
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #ccc;
  text-align: center;
  padding: 5px 8px;
  background: var(--off-white);
  border-bottom: 1px solid var(--border);
  font-weight: 600;
}
.ad-content {
  height: 180px;
  background: linear-gradient(135deg, #f2f4f9, #e8eaf4);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11px;
  color: #bbb;
  font-style: italic;
}
.ad-content span { font-size: 28px; opacity: 0.3; }
.ad-dimensions { font-size: 10px; color: #ccc; text-align: center; padding: 4px 0 8px; }

.trending-today {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.tt-header {
  background: var(--navy);
  color: white;
  padding: 10px 16px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.tt-header::before { content: '🔥'; font-size: 12px; }
.tt-item {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background .15s;
}
.tt-item:last-child { border-bottom: none; }
.tt-item:hover { background: var(--off-white); }
.tt-rank {
  font-size: 9px;
  font-weight: 800;
  color: #dce2f0;
  font-family: var(--font-display);
  float: right;
  margin-left: 6px;
  font-size: 22px;
  line-height: 1;
  opacity: 0.5;
}
.tt-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  color: #111827;
  line-height: 1.4;
  margin-bottom: 4px;
  transition: color .2s;
}
.tt-item:hover .tt-title { color: var(--red); }
.tt-meta { font-size: 10.5px; color: var(--text-mid); font-weight: 600; display: flex; gap: 6px; align-items: center; }
.tt-cat { color: var(--red); font-weight: 700; font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.5px; }

/* ====== SECTION DIVIDER ====== */
.section-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  margin-top: 4px;
}
.section-divider-title {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--navy);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-divider-title::before {
  content: '';
  display: block;
  width: 4px;
  height: 16px;
  background: var(--red);
  border-radius: 2px;
}
.section-divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--border), transparent);
}
.section-divider-more {
  font-size: 11.5px;
  color: var(--navy);
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: 20px;
  transition: all .2s;
  letter-spacing: 0.2px;
}
.section-divider-more:hover { background: var(--navy); color: white; border-color: var(--navy); }

/* ====== NEWS GRID 4-COL ====== */
.news-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}
.news-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow .25s, transform .25s;
  box-shadow: var(--shadow-sm);
}
.news-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.news-card-img {
  width: 100%;
  height: 145px;
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; color: rgba(255,255,255,0.35);
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.news-card-img img { display: none !important; }
.news-card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.25) 0%, transparent 60%);
}
.news-card-img.ci-1 { background: linear-gradient(135deg, #0e2a4a, #1c4d8a); }
.news-card-img.ci-2 { background: linear-gradient(135deg, #0e4a1e, #1c8a38); }
.news-card-img.ci-3 { background: linear-gradient(135deg, #4a0e0e, #8a1c1c); }
.news-card-img.ci-4 { background: linear-gradient(135deg, #2a0e4a, #501c8a); }
.news-card-img.ci-5 { background: linear-gradient(135deg, #4a2a0e, #8a501c); }
.news-card-img.ci-6 { background: linear-gradient(135deg, #0e4a4a, #1c8a8a); }
.news-card-img.ci-7 { background: linear-gradient(135deg, #1e0e4a, #3a1c8a); }
.news-card-img.ci-8 { background: linear-gradient(135deg, #4a0e2a, #8a1c55); }
.news-card-body { padding: 14px; }
.nc-cat {
  font-size: 9.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--red);
  margin-bottom: 7px;
}
.nc-title {
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--text);
  margin-bottom: 10px;
  transition: color .2s;
}
.news-card:hover .nc-title { color: var(--red); }
.nc-meta {
  font-size: 10.5px;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 6px;
}
.nc-meta::before { content: ''; display: block; width: 14px; height: 1px; background: var(--border-dark); }

/* ====== MID GRID ====== */
.mid-grid {
  display: grid;
  grid-template-columns: 1fr 295px;
  gap: 24px;
  margin-bottom: 32px;
}
.latest-list {}
.mid-col-header {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--navy);
  border-bottom: 2px solid var(--navy);
  padding-bottom: 10px;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.mid-col-header::before { content: ''; display: block; width: 3px; height: 14px; background: var(--red); border-radius: 2px; }
.latest-item {
  display: flex;
  gap: 0;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  align-items: stretch;
  transition: opacity .2s;
}
.latest-item:first-child { padding-top: 12px; }
.latest-item:last-child { border-bottom: none; }
.latest-item:hover { opacity: 0.75; }
.li-img {
  width: 104px; height: 76px;
  border-radius: 5px;
  flex-shrink: 0;
  align-self: flex-start;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: rgba(255,255,255,0.35);
  position: relative;
  overflow: hidden;
}
.li-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 0;
}
.li-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom right, rgba(255,255,255,0.05), transparent);
}
.li-img.li-1 { background: linear-gradient(135deg, #0e2a4a, #1c4a7a); }
.li-img.li-2 { background: linear-gradient(135deg, #0e4a1e, #1c6e30); }
.li-img.li-3 { background: linear-gradient(135deg, #4a0e0e, #7a1c1c); }
.li-img.li-4 { background: linear-gradient(135deg, #2a0e4a, #481c7a); }
.li-img.li-5 { background: linear-gradient(135deg, #4a2a0e, #7a481c); }
.li-cat { font-size: 9.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: var(--red); margin-bottom: 5px; }
.li-title {
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text);
  margin-bottom: 6px;
  transition: color .2s;
}
.latest-item:hover .li-title { color: var(--red); }
.li-excerpt { font-size: 13px; color: var(--text-mid); line-height: 1.6; margin-bottom: 7px; }
.li-meta { font-size: 11px; color: var(--text-light); display: flex; align-items: center; gap: 6px; }

/* ====== SIDEBAR WIDGETS ====== */
.sidebar-widget {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.sw-header {
  padding: 10px 16px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--white);
  background: var(--navy);
}
.sw-item {
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background .15s;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.sw-item:last-child { border-bottom: none; }
.sw-item:hover { background: var(--off-white); }
.sw-num {
  font-size: 22px;
  font-weight: 900;
  color: #dce2f0;
  min-width: 24px;
  line-height: 1;
  font-family: var(--font-display);
}
.sw-title {
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text);
  font-family: var(--font-display);
  transition: color .2s;
}
.sw-item:hover .sw-title { color: var(--red); }
.sw-meta { font-size: 10.5px; color: var(--text-light); margin-top: 3px; }

/* Press Release clean list layout */
.sw-item-pr {
  display: flex;
  align-items: stretch;
  padding: 0;
  gap: 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background .15s;
}
.sw-item-pr:last-child { border-bottom: none; }
.sw-item-pr:hover { background: var(--off-white); }
.sw-item-pr .sw-item-pr-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 11px 16px;
}
.sw-item-pr .sw-title {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--text);
  font-family: var(--font-display);
  transition: color .2s;
}
.sw-item-pr:hover .sw-title { color: var(--red); }
.sw-item-pr .sw-meta {
  font-size: 10.5px;
  color: var(--text-light);
  margin-top: 4px;
  font-weight: 500;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
}
.pr-domain {
  color: var(--navy);
  font-weight: 700;
  font-size: 10.5px;
}
/* When domain is present, add separator before date */
.pr-domain:not(:empty) + .pr-date::before { content: ' · '; }
.pr-date {
  color: var(--text-light);
  font-size: 10px;
}
.pr-date::after { content: ' · '; }
.pr-read {
  color: var(--text-light);
  font-size: 10px;
}

/* ====== NEWSLETTER STRIP ====== */
.newsletter-strip {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  border-radius: var(--radius);
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
  margin-top: 0;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.newsletter-strip::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 200px; height: 200px;
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 50%;
}
.newsletter-strip::after {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 300px; height: 300px;
  border: 1px solid rgba(255,255,255,0.03);
  border-radius: 50%;
}
.nl-text { flex: 1; position: relative; }
.nl-badge {
  display: inline-block;
  background: rgba(212,43,43,0.9);
  color: white;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 3px 10px;
  border-radius: 3px;
  margin-bottom: 8px;
}
.nl-heading {
  font-family: var(--font-display);
  font-size: 22px;
  color: white;
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 6px;
  letter-spacing: -0.2px;
}
.nl-sub { font-size: 13px; color: rgba(255,255,255,0.55); font-weight: 400; }
.nl-form { display: flex; gap: 10px; position: relative; flex-shrink: 0; }
.nl-input {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 5px;
  padding: 10px 18px;
  color: white;
  font-size: 13px;
  font-family: var(--font-display);
  outline: none;
  width: 230px;
  transition: border-color .2s;
}
.nl-input::placeholder { color: rgba(255,255,255,0.35); }
.nl-input:focus { border-color: rgba(255,255,255,0.4); }
.nl-btn {
  background: var(--red);
  color: white;
  border: none;
  border-radius: 5px;
  padding: 10px 22px;
  font-size: 12.5px;
  font-weight: 700;
  font-family: var(--font-display);
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s;
  letter-spacing: 0.3px;
}
.nl-btn:hover { background: var(--red-dark); }
.nl-divider {
  width: 1px;
  background: rgba(255,255,255,0.12);
  align-self: stretch;
  flex-shrink: 0;
  margin: 0 4px;
}
.nl-pr-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  position: relative;
}
.nl-pr-label {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  color: rgba(255,255,255,0.35);
  font-family: var(--font-display);
  white-space: nowrap;
}
.nl-pr-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #1a7a3c, #22a052);
  color: white;
  border: none;
  border-radius: 6px;
  padding: 11px 22px;
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-display);
  cursor: pointer;
  white-space: nowrap;
  transition: all .2s;
  letter-spacing: 0.2px;
  box-shadow: 0 4px 14px rgba(26,122,60,0.4);
  position: relative;
  overflow: hidden;
}
.nl-pr-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
  opacity: 0;
  transition: opacity .2s;
}
.nl-pr-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(26,122,60,0.5); }
.nl-pr-btn:hover::before { opacity: 1; }
.nl-pr-btn-icon {
  font-size: 15px;
  line-height: 1;
}
.nl-pr-free-tag {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  border-radius: 3px;
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 2px 6px;
  margin-left: 2px;
  vertical-align: middle;
}

/* ====== SPONSORED CONTENT SECTION ====== */
.sponsored-section {
  margin-bottom: 32px;
}
.sponsored-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
}
.sponsored-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sponsored-header-title {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--text-light);
  font-family: var(--font-display);
}
.sponsored-header-badge {
  font-size: 8.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #9a8060;
  background: var(--gold-light);
  border: 1px solid #e0cc98;
  padding: 2px 8px;
  border-radius: 3px;
}
.sponsored-header-cta {
  font-size: 11px;
  font-weight: 600;
  color: var(--red);
  cursor: pointer;
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: 20px;
  transition: all .2s;
  font-family: var(--font-display);
}
.sponsored-header-cta:hover {
  background: var(--red);
  color: white;
  border-color: var(--red);
}
.sponsored-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.sponsored-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow .25s, transform .2s;
  box-shadow: var(--shadow-sm);
  position: relative;
  display: flex;
  flex-direction: column;
}
.sponsored-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}
.sponsored-card-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 3px;
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #9a8060;
  padding: 2px 7px;
  z-index: 2;
  font-family: var(--font-display);
  backdrop-filter: blur(4px);
}
.sponsored-card-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  transition: transform .3s;
}
.sponsored-card:hover .sponsored-card-img { transform: scale(1.02); }
.sponsored-card-img.sc-1 { background: linear-gradient(135deg, #1a3a5c, #2a6090); }
.sponsored-card-img.sc-2 { background: linear-gradient(135deg, #2a1a4a, #5a3090); }
.sponsored-card-img.sc-3 { background: linear-gradient(135deg, #1a4a2a, #2a8050); }
.sponsored-card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.3) 0%, transparent 60%);
}
.sponsored-card-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.sponsored-card-brand {
  font-size: 9.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--gold);
  margin-bottom: 6px;
  font-family: var(--font-display);
}
.sponsored-card-title {
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text);
  margin-bottom: 8px;
  transition: color .2s;
}
.sponsored-card:hover .sponsored-card-title { color: var(--navy-light); }
.sponsored-card-desc {
  font-size: 12.5px;
  color: var(--text-mid);
  line-height: 1.6;
  font-family: var(--font-display);
  margin-bottom: 14px;
  flex: 1;
}
.sponsored-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}
.sponsored-card-cta {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--navy);
  font-family: var(--font-display);
  display: flex;
  align-items: center;
  gap: 5px;
  transition: gap .2s, color .2s;
}
.sponsored-card:hover .sponsored-card-cta { gap: 8px; color: var(--red); }
.sponsored-card-cta::after { content: '→'; }
.sponsored-card-tag {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #aab;
  font-family: var(--font-display);
}

/* ====== FOOTER ====== */
.footer {
  background: var(--navy);
  color: #7a8eaa;
  padding: 44px 0 0;
  margin-top: 16px;
  border-top: 4px solid var(--red);
  position: relative;
  z-index: 600;
  padding-bottom: 120px;
}
.footer-inner { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.footer-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1fr 1fr;
  gap: 28px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 22px;
  color: white;
  margin-bottom: 14px;
  font-weight: 400;
  letter-spacing: -0.3px;
}
.footer-logo em { color: var(--red); font-style: normal; }
.footer-desc {
  font-size: 13px;
  line-height: 1.7;
  color: #7a90b0;
  margin-bottom: 18px;
}
.footer-social { display: flex; gap: 8px; }
.footer-social a {
  width: 34px; height: 34px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: #7a8eaa; font-size: 13px;
  transition: background .2s, color .2s, border-color .2s;
}
.footer-social a:hover { background: var(--red); color: white; border-color: var(--red); }
.footer-col h5 {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #a0b0cc;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a {
  font-size: 13px;
  color: #7a90b0;
  transition: color .2s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-col ul li a::before { content: '→'; font-size: 10px; opacity: 0; transition: opacity .2s; }
.footer-col ul li a:hover { color: white; }
.footer-col ul li a:hover::before { opacity: 1; }
/* ── Web Apps Footer Column — 50 apps, 2-col scrollable ── */
.footer-col-apps {
  grid-column: span 2;
}
.footer-apps-list {
  list-style: none !important;
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 8px 16px !important;
  max-height: 320px;
  overflow-y: auto;
  padding-right: 4px;
}
.footer-apps-list::-webkit-scrollbar { width: 4px; }
.footer-apps-list::-webkit-scrollbar-track { background: rgba(255,255,255,0.04); border-radius: 2px; }
.footer-apps-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 2px; }
.footer-apps-list li a {
  font-size: 12px !important;
  color: #7a90b0;
  transition: color .2s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block !important;
}
.footer-apps-list li a:hover { color: white !important; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  font-size: 11.5px;
  color: #3a4e6a;
}
.footer-bottom a { color: #4a6080; transition: color .2s; }
.footer-bottom a:hover { color: #8a9ebc; }

/* ====== MOBILE MENU ====== */
.mob-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.mob-hamburger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: all .3s; }
.mob-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 300; backdrop-filter: blur(2px); }
.mob-menu {
  position: fixed;
  top: 0; right: -100%;
  width: 280px;
  height: 100vh;
  background: var(--white);
  z-index: 400;
  transition: right .3s cubic-bezier(.4,0,.2,1);
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}
.mob-menu.open { right: 0; }
.mob-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--navy);
  color: white;
}
.mob-menu-header h3 { font-size: 14px; font-weight: 700; font-family: var(--font-display); }
.mob-close { font-size: 20px; cursor: pointer; color: rgba(255,255,255,0.7); background: none; border: none; line-height: 1; padding: 4px; }
.mob-menu nav { padding: 12px 0; }
.mob-menu nav a {
  display: block;
  padding: 12px 20px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-mid);
  border-bottom: 1px solid var(--border);
  transition: all .15s;
}
.mob-menu nav a:hover { background: var(--off-white); color: var(--navy); padding-left: 28px; }

/* ======================================================
   AD SLOT SYSTEM
   ====================================================== */

/* --- Shared Ad Shell --- */
.ad-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #f9f9fb;
  border: 1px dashed #d8dbe6;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  font-family: var(--font-display);
  box-sizing: border-box;
}
.ad-slot::before {
  content: attr(data-label);
  position: absolute;
  top: 0; left: 0; right: 0;
  background: rgba(0,0,0,0.04);
  border-bottom: 1px dashed #d8dbe6;
  text-align: center;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #b0b5c8;
  padding: 5px 0;
}
.ad-slot-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding-top: 14px;
  width: 100%; height: 100%;
}
.ad-slot-size {
  font-size: 11px;
  font-weight: 700;
  color: #c0c5d8;
  letter-spacing: 0.5px;
}
.ad-slot-name {
  font-size: 10px;
  color: #d0d4e4;
  font-weight: 500;
}
.ad-slot-icon { font-size: 22px; opacity: 0.25; }

/* ---- AD 1: Top Leaderboard 728×90 (Desktop) / 320×100 (Mobile) ---- */


/* ---- AD 2: Billboard 970×250 after Hero ---- */
.ad-hero-wrap {
  display: flex;
  justify-content: center;
  padding: 20px 0 32px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: #f5f6f8;
  margin: 4px 0 28px;
}
.ad-hero-billboard {
  width: 970px;
  height: 250px;
  max-width: 100%;
}
.ad-hero-mobile {
  display: none;          /* Mobile pe show hoga */
  width: 100%;
  max-width: 320px;
  height: 100px;
  margin: 0 auto;
}

/* ---- AD 3+4: Sidebar 300×250 & 300×600 Sticky ---- */
.ad-sidebar-250 {
  width: 300px;
  height: 250px;
  margin: 0 auto 24px;
}
.ad-sidebar-600-wrap {
  position: sticky;
  top: 120px;
}
.ad-sidebar-600 {
  width: 300px;
  height: 600px;
  margin: 0 auto;
}

/* ---- AD 5: In-feed Responsive (between news cards) ---- */

/* ---- AD 6: Footer Leaderboard 728×90 ---- */
.ad-footer-wrap {
  background: rgba(0,0,0,0.15);
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px 0;
  margin-bottom: 0;
}
.ad-footer-leaderboard {
  width: 728px;
  max-width: 100%;
  height: 90px;
}
.ad-footer-mobile {
  display: none;          /* Mobile pe show hoga */
  width: 100%;
  max-width: 320px;
  height: 100px;
  margin: 0 auto;
}

/* ---- AD 7: Mobile Responsive Middle ---- */
.ad-mobile-middle {
  display: none;
  width: 100%;
  max-width: 360px;
  height: 250px;
  margin: 16px auto 28px;
}

/* ---- Mobile Bottom Sticky ---- */
.ad-mobile-sticky {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  justify-content: center;
  background: rgba(255,255,255,0.97);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
  padding: 6px 0;
  z-index: 500;
}
.ad-mobile-sticky-inner { width: 320px; height: 100px; }
.ad-sticky-close {
  position: absolute;
  top: 4px; right: 10px;
  background: var(--navy);
  color: white;
  border: none;
  border-radius: 50%;
  width: 20px; height: 20px;
  font-size: 10px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  line-height: 1;
  z-index: 501;
}

/* ======================================================
   BODY AD SLOTS — SHARED SHELL
   ====================================================== */

.body-ad-wrap {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 36px 0;
  padding: 18px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: #f5f6f8;
  gap: 0;
}
.body-ad-label {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #c0c5d8;
  margin-bottom: 10px;
  font-family: var(--font-display);
}
/* Desktop: show 728x90, hide 320x100 */
.body-ad-970x250 { width: 970px; max-width: 100%; height: 250px; flex-shrink: 0; }
.body-ad-728x90  { width: 728px; max-width: 100%; height: 90px; flex-shrink: 0; display: flex; overflow: hidden; }
.body-ad-responsive { width: 100%; max-width: 970px; height: 90px; flex-shrink: 0; }
.body-ad-320x100 { width: 320px; max-width: 100%; height: 100px; display: none; flex-shrink: 0; }
.body-ad-300x250-inline { width: 300px; height: 250px; float: right; margin: 0 0 16px 20px; flex-shrink: 0; }

.body-ad-slot {
  background: #f8f9fb;
  border: 1.5px dashed #dde0ec;
  border-radius: 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  position: relative;
  overflow: hidden;
  width: 100%; height: 100%;
  min-height: 0;
  box-sizing: border-box;
}
.body-ad-slot::before {
  content: 'Advertisement';
  position: absolute;
  top: 6px;
  font-size: 8.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #cdd0e0;
  font-family: var(--font-display);
}
.body-ad-slot-size { font-size: 13px; font-weight: 700; color: #c5c9dc; font-family: var(--font-display); letter-spacing: 0.5px; padding-top: 10px; }
.body-ad-slot-name { font-size: 10px; color: #d4d7e8; font-family: var(--font-display); }
.body-ad-slot-icon { font-size: 22px; opacity: 0.18; }

/* In-feed native ad card */
.infeed-ad-card {
  background: var(--white);
  border: 1.5px dashed #dde0ec;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}
.infeed-ad-card::before {
  content: 'Sponsored';
  position: absolute;
  top: 8px; right: 8px;
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #aab;
  background: rgba(255,255,255,0.95);
  padding: 2px 7px;
  border-radius: 3px;
  border: 1px solid #dde0ec;
  z-index: 2;
  font-family: var(--font-display);
}
.infeed-ad-img {
  width: 100%;
  height: 145px;
  background: linear-gradient(135deg, #eef0f8, #e4e7f5);
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; opacity: 0.35;
}
.infeed-ad-body { padding: 14px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.infeed-ad-badge { font-size: 9.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: #bbc; font-family: var(--font-display); }
.infeed-ad-title { font-size: 14.5px; font-weight: 700; color: #c0c4d4; line-height: 1.4; font-family: var(--font-display); }
.infeed-ad-cta {
  display: inline-flex; align-items: center; gap: 4px;
  margin-top: auto; font-size: 11px; font-weight: 700;
  color: #aab; padding: 5px 12px; border: 1px solid #dde0ec;
  border-radius: 4px; width: fit-content; font-family: var(--font-display);
}


/* ======================================================
   RESPONSIVE — LARGE TABLET / SMALL DESKTOP  (≤1100px)
   ====================================================== */
@media (max-width: 1100px) {
  .home-grid            { grid-template-columns: 1fr 290px; }
  .sidebar-col          { display: none; }
  .ad-hero-billboard    { width: 100%; max-width: 728px; }
  .ad-sidebar-600       { display: none; }
  .skin-ad-left,
  .skin-ad-right        { display: none !important; }
  .main-wrap            { padding: 20px 16px; }
}

/* ======================================================
   RESPONSIVE — TABLET  (≤900px)
   ====================================================== */
@media (max-width: 900px) {
  .home-grid            { grid-template-columns: 1fr; gap: 0; }
  .trending-col         { display: none; }
  .news-grid-4          { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .mid-grid             { grid-template-columns: 1fr; gap: 0; }
  .markets-grid         { grid-template-columns: repeat(3, 1fr); }
  .footer-grid          { grid-template-columns: 1fr 1fr; gap: 24px; }
  .newsletter-strip     { flex-direction: column; text-align: center; gap: 16px; }
  .nl-form              { width: 100%; justify-content: center; flex-wrap: wrap; }
  .nl-input             { width: 100%; max-width: 340px; }
  .nl-pr-block          { width: 100%; align-items: center; }
  .nl-pr-btn            { width: 100%; max-width: 340px; justify-content: center; }
  .nl-divider           { display: none; }
  .ad-hero-billboard    { height: 180px; }
  .ad-footer-leaderboard { width: 100%; max-width: 728px; }
  .body-ad-970x250      { height: 180px; }
  .body-ad-728x90       { height: 90px; }
  /* Sponsored — 2 cols on tablet */
  .sponsored-grid       { grid-template-columns: repeat(2, 1fr); }
  /* Latest items content */
  .li-content           { flex: 1; min-width: 0; width: 100%; }
  /* Sidebar widgets */
  .sidebar-widget       { margin-bottom: 16px; }
  .sw-item-pr .sw-item-pr-left { padding: 10px 14px; }
  /* Header — tablet */
  .header-search        { display: none; }
  .header-btn-subscribe { display: none; }
  .mob-hamburger        { display: flex !important; }
  .header-top           { height: 56px; padding: 0 16px; gap: 12px; }
  .topbar               { display: none; }
}

/* ======================================================
   RESPONSIVE — MOBILE  (≤640px)
   ====================================================== */
@media (max-width: 640px) {

  /* ── GLOBAL ──────────────────────────────────────────── */
  html, body     { overflow-x: hidden; width: 100%; max-width: 100vw; box-sizing: border-box; }
  body           { padding-bottom: 0; }
  *, *::before, *::after { box-sizing: border-box; }
  img, video, iframe { max-width: 100%; height: auto; display: block; }

  /* ── SKIN ADS ────────────────────────────────────────── */
  .skin-ad-left, .skin-ad-right { display: none !important; }

  /* ── TOPBAR ─────────────────────────────────────────── */
  .topbar { display: none; }

  /* ── HEADER ─────────────────────────────────────────── */
  .header         { position: sticky; top: 0; z-index: 200; box-shadow: 0 1px 8px rgba(0,0,0,0.08); width: 100%; }
  .header-top     { height: 52px; padding: 0 12px; gap: 8px; justify-content: space-between; }
  .logo           { gap: 8px; flex: 1; min-width: 0; overflow: hidden; }
  .logo-icon      { width: 30px; height: 30px; border-radius: 5px; flex-shrink: 0; }
  .logo-icon span { font-size: 10px; }
  .logo-name      { font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .logo-tagline   { display: none; }
  .header-actions { gap: 6px; flex-shrink: 0; }
  .header-search  { display: none; }
  .header-btn-subscribe { display: none; }
  .mob-hamburger  { display: flex !important; }

  /* ── NAV ─────────────────────────────────────────────── */
  .nav            { overflow: hidden; width: 100%; }
  .nav-inner      { padding: 0 0 0 12px; overflow: hidden; width: 100%; }
  .nav-links      { overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; flex: 1; min-width: 0; }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a    { font-size: 10.5px; padding: 9px 10px; letter-spacing: 0.2px; white-space: nowrap; }
  .nav-premium    { display: none; }

  /* ── MAIN WRAP ───────────────────────────────────────── */
  .main-wrap { padding: 10px 12px; overflow-x: hidden; width: 100%; max-width: 100vw; }

  /* ── NEWSLETTER STRIP ────────────────────────────────── */
  .newsletter-strip          { flex-direction: column; padding: 16px 14px; gap: 12px; border-radius: 8px; margin-bottom: 16px; text-align: center; width: 100%; box-sizing: border-box; }
  .newsletter-strip::before,
  .newsletter-strip::after   { display: none; }
  .nl-badge                  { font-size: 8px; padding: 3px 8px; }
  .nl-heading                { font-size: 16px; line-height: 1.3; margin-bottom: 2px; }
  .nl-sub                    { font-size: 11.5px; }
  .nl-form                   { flex-direction: row; gap: 6px; width: 100%; align-items: center; }
  .nl-input                  { flex: 1; min-width: 0; width: auto; padding: 9px 10px; font-size: 12px; border-radius: 5px; }
  .nl-btn                    { flex-shrink: 0; padding: 9px 12px; font-size: 12px; border-radius: 5px; white-space: nowrap; }
  .nl-divider                { display: none; }
  .nl-pr-block               { width: 100%; }
  .nl-pr-btn                 { width: 100%; justify-content: center; padding: 10px 14px; font-size: 12px; border-radius: 5px; }

  /* ── MARKETS BAR ─────────────────────────────────────── */
  .markets-bar                  { border-radius: 5px; margin-bottom: 16px; width: 100%; overflow: hidden; }
  .markets-header               { padding: 8px 12px; font-size: 9px; letter-spacing: 1.5px; flex-wrap: wrap; gap: 4px; }
  .markets-header-time          { display: none; }
  .markets-grid                 { grid-template-columns: repeat(2, 1fr); overflow: hidden; }
  .market-item:nth-child(5)     { display: none; }
  .market-item:nth-child(2)     { border-right: none; }
  .market-item:nth-child(4)     { border-right: none; }
  .market-item:nth-child(1),
  .market-item:nth-child(2)     { border-bottom: 1px solid rgba(255,255,255,0.06); }
  .market-item                  { padding: 10px 12px; align-items: center; }
  .market-name                  { font-size: 8.5px; letter-spacing: 0.5px; }
  .market-val                   { font-size: 15px; }
  .market-change                { font-size: 10px; }
  .market-spark                 { height: 14px; margin-top: 5px; }

  /* ── HOME GRID ───────────────────────────────────────── */
  .home-grid   { grid-template-columns: 1fr; gap: 0; margin-bottom: 0; }
  .sidebar-col { display: none; }

  /* Featured article */
  .featured-col     { padding: 0; margin-bottom: 0; }
  .featured-label   { font-size: 8.5px; padding: 3px 9px; margin-bottom: 10px; letter-spacing: 1.5px; }
  .featured-img     { aspect-ratio: 16/9; width: 100%; border-radius: 5px; margin-bottom: 14px; }
  .featured-title   { font-size: 20px; line-height: 1.3; margin-bottom: 10px; }
  .featured-excerpt { font-size: 13px; line-height: 1.6; margin-bottom: 12px; }
  .featured-meta    { font-size: 11px; flex-wrap: wrap; gap: 5px; }
  .author-dot       { width: 20px; height: 20px; font-size: 9px; }
  .read-more-btn    { display: flex; width: 100%; justify-content: center; padding: 10px 16px; font-size: 13px; margin-top: 8px; border-radius: 5px; }

  /* Top News (trending-col) visible on mobile */
  .trending-col {
    display: block;
    margin-top: 20px;
    margin-bottom: 4px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  }
  .col-label                    { background: var(--navy); color: white; padding: 9px 14px; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: 2px; border-bottom: none; margin-bottom: 0; }
  .trending-col .col-label::before { display: none; }
  .trend-item                   { padding: 10px 14px; border-bottom: 1px solid var(--border); gap: 10px; }
  .trend-item:last-child        { border-bottom: none; }
  .trend-img                    { display: none; }
  .trend-content                { flex: 1; min-width: 0; }
  .trend-title                  { font-size: 13px; line-height: 1.4; margin-bottom: 4px; }
  .trend-meta                   { font-size: 10px; gap: 4px; }
  .trend-cat                    { font-size: 9px; }

  /* ── SECTION DIVIDERS ────────────────────────────────── */
  .section-divider              { margin: 16px 0 10px; gap: 8px; }
  .section-divider-title        { font-size: 9.5px; letter-spacing: 2px; }
  .section-divider-title::before { height: 12px; }
  .section-divider-more         { font-size: 10px; padding: 3px 8px; }

  /* ── NEWS GRID 4-col → 2-col ─────────────────────────── */
  .news-grid-4    { grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 16px; }
  .news-card      { border-radius: 6px; }
  .news-card-img  { height: 110px; }
  .news-card-body { padding: 10px; }
  .nc-cat         { font-size: 8.5px; letter-spacing: 1px; margin-bottom: 4px; }
  .nc-title       { font-size: 12.5px; line-height: 1.4; margin-bottom: 6px; }
  .nc-meta        { font-size: 10px; }

  /* ── LATEST NEWS + MID-GRID ──────────────────────────── */
  .mid-grid    { grid-template-columns: 1fr; gap: 0; margin-bottom: 16px; }
  .latest-list { width: 100%; }
  .latest-item { padding: 12px 0; align-items: flex-start; width: 100%; }
  .li-img      { display: none; }
  .li-content  { min-width: 0; width: 100%; box-sizing: border-box; }
  .li-cat      { font-size: 8.5px; margin-bottom: 4px; }
  .li-title    { font-size: 15px; line-height: 1.4; margin-bottom: 5px; }
  .li-excerpt  { font-size: 12.5px; line-height: 1.55; margin-bottom: 5px; }
  .li-meta     { font-size: 10px; }

  /* ── SIDEBAR WIDGETS ─────────────────────────────────── */
  .sidebar-widget { margin-bottom: 12px; border-radius: 5px; width: 100%; }
  .sw-header      { padding: 8px 12px; font-size: 8.5px; letter-spacing: 1.8px; }
  .sw-item        { padding: 9px 12px; gap: 8px; }
  .sw-num         { font-size: 17px; min-width: 20px; }
  .sw-title       { font-size: 12px; line-height: 1.38; }
  .sw-meta        { font-size: 10px; }

  /* ── PRESS RELEASE ───────────────────────────────────── */
  .sw-item-pr .sw-item-pr-left { padding: 9px 12px; width: 100%; box-sizing: border-box; }
  .sw-item-pr .sw-title        { font-size: 12px; line-height: 1.4; }
  .sw-item-pr .sw-meta         { font-size: 10px; margin-top: 3px; gap: 3px; }
  .pr-domain { font-size: 10px; }
  .pr-date   { font-size: 10px; }
  .pr-read   { font-size: 10px; }

  /* ── WEB APPS HOMEPAGE ───────────────────────────────── */
  .wa-home-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .wa-home-card { padding: 12px; gap: 10px; }
  .wa-home-icon { width: 38px; height: 38px; font-size: 18px; }
  .wa-home-name { font-size: 13px; }
  .wa-home-desc { font-size: 11px; }

  /* ── MOBILE MENU ─────────────────────────────────────── */
  .mob-menu       { width: min(280px, 85vw); }
  .mob-menu nav a { font-size: 13px; padding: 11px 18px; }

  /* ── FOOTER ──────────────────────────────────────────── */
  .footer                    { padding: 20px 0 0; border-top-width: 3px; }
  .footer-inner              { padding: 0 12px; }
  .footer-grid               { grid-template-columns: 1fr 1fr; gap: 16px; padding-bottom: 16px; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .footer-logo               { font-size: 17px; margin-bottom: 8px; }
  .footer-desc               { font-size: 12px; line-height: 1.6; margin-bottom: 12px; }
  .footer-social             { gap: 6px; flex-wrap: wrap; }
  .footer-social a           { width: 30px; height: 30px; font-size: 12px; }
  .footer-col h5             { font-size: 9px; margin-bottom: 8px; padding-bottom: 6px; letter-spacing: 1.8px; }
  .footer-col ul             { gap: 7px; }
  .footer-col ul li a        { font-size: 12px; }
  .footer-bottom             { flex-direction: column; gap: 4px; text-align: center; padding: 12px 0; font-size: 10px; }

  /* ── AD SLOTS ────────────────────────────────────────── */
  .ad-hero-wrap              { padding: 0; background: transparent; border: none; margin: 0 0 12px; }
  .ad-hero-billboard         { display: none !important; }
  .ad-hero-mobile            { display: flex; width: 100%; height: 90px; border-radius: 4px; }
  .ad-footer-leaderboard     { display: none !important; }
  .ad-footer-mobile          { display: flex; width: 100%; max-width: 320px; height: 100px; }
  .ad-mobile-sticky          { display: flex; }
  .ad-sticky-close           { top: 5px; right: 8px; }
  .body-ad-wrap              { margin: 12px 0; padding: 10px 0; align-items: center; }
  .body-ad-label             { font-size: 8.5px; margin-bottom: 6px; }
  .body-ad-728x90            { display: none !important; }
  .body-ad-970x250           { display: none !important; }
  .body-ad-responsive        { width: 100%; height: 80px; }
  .body-ad-320x100           { display: flex !important; width: 100%; max-width: 100%; height: 90px; }
  .body-ad-300x250-inline    { float: none; width: 100%; max-width: 100%; height: 180px; margin: 0 0 14px; }
  .body-ad-slot              { width: 100% !important; max-width: 100% !important; }
  .body-ad-slot-size         { font-size: 11px; }
  .body-ad-slot-name         { font-size: 9px; }

  /* ── SPONSORED CONTENT ───────────────────────────────── */
  .sponsored-section      { margin-bottom: 20px; }
  .sponsored-header       { margin-bottom: 10px; padding-bottom: 8px; }
  .sponsored-header-title { font-size: 9px; letter-spacing: 2px; }
  .sponsored-grid {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 12px;
    padding-bottom: 8px;
    margin-left: -12px;
    margin-right: -12px;
    padding-left: 12px;
    padding-right: 12px;
  }
  .sponsored-grid::-webkit-scrollbar { display: none; }
  .sponsored-card {
    flex: 0 0 78vw;
    max-width: 290px;
    min-width: 240px;
    scroll-snap-align: start;
    transform: none !important;
  }
  .sponsored-card-img    { height: 130px; }
  .sponsored-card-body   { padding: 12px; }
  .sponsored-card-title  { font-size: 13.5px; line-height: 1.35; margin-bottom: 6px; }
  .sponsored-card-desc   { font-size: 12px; line-height: 1.5; margin-bottom: 10px; }

}
/* ── VERY SMALL PHONES (≤400px) ───────────────────────── */
@media (max-width: 400px) {
  .news-grid-4    { grid-template-columns: 1fr; }
  .news-card-img  { height: 130px; }
  .nc-title       { font-size: 13.5px; }
  .sponsored-card { flex: 0 0 90vw; min-width: 220px; }
  .footer-grid    { grid-template-columns: 1fr; }
  .featured-title { font-size: 18px; }
  .trend-title    { font-size: 12.5px; }
  .wa-home-grid   { grid-template-columns: 1fr; }
  .markets-grid   { grid-template-columns: repeat(2, 1fr); }
}

/* ======================================================
   SKIN / WALLPAPER ADS — LEFT & RIGHT STICKY COLUMNS
   Visible only when viewport > 1460px (content=1260 + 2×100px min)
   ====================================================== */

.skin-ad-left,
.skin-ad-right {
  display: none;
  position: fixed;
  top: 160px;              /* Header (~90px) + markets bar (~50px) + thoda gap */
  width: 120px;
  height: 600px;
  z-index: 99;             /* Header (z-index:200) ke neeche rahe */
  flex-direction: column;
  align-items: center;
  pointer-events: auto;
  box-sizing: content-box;
  transition: top 0.2s;
}

/* Content area (1100px) ke bahar position karo */
.skin-ad-left  { left:  calc(50% - 550px - 130px); }
.skin-ad-right { right: calc(50% - 550px - 130px); }

.skin-ad-inner {
  width: 120px;           /* Fixed — kabhi 100% nahi */
  height: 600px;
  background: #f6f7fb;
  border: 1.5px dashed #dde0ec;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
  transition: opacity .2s;
  box-sizing: border-box;
}
.skin-ad-inner:hover { opacity: 0.85; }
.skin-ad-inner::before {
  content: 'Advertisement';
  position: absolute;
  top: 8px;
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #cdd0e0;
  font-family: var(--font-display);
}
.skin-ad-size {
  font-size: 12px;
  font-weight: 700;
  color: #c5c9dc;
  font-family: var(--font-display);
  letter-spacing: 0.3px;
  padding-top: 8px;
  writing-mode: vertical-lr;
  text-orientation: mixed;
  transform: rotate(180deg);
}
.skin-ad-label {
  font-size: 9px;
  color: #d4d7e8;
  font-family: var(--font-display);
  writing-mode: vertical-lr;
  text-orientation: mixed;
  transform: rotate(180deg);
}
.skin-ad-icon {
  font-size: 26px;
  opacity: 0.15;
}
.skin-ad-close {
  position: absolute;
  bottom: 8px;
  background: rgba(0,0,0,0.08);
  border: none;
  border-radius: 50%;
  width: 20px; height: 20px;
  font-size: 10px;
  cursor: pointer;
  color: #aab;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  transition: background .2s;
}
.skin-ad-close:hover { background: rgba(0,0,0,0.15); }

/* ── Skin Ads: 1100px+ pe show karo — kabhi 100% width nahi ── */
@media (min-width: 1100px) {
  .skin-ad-left,
  .skin-ad-right {
    display: flex !important;
    width: 120px !important;
  }
  .skin-ad-inner { width: 120px !important; height: 600px; }
  .skin-ad-left  { left:  calc(50% - 550px - 130px); }
  .skin-ad-right { right: calc(50% - 550px - 130px); }
}

@media (min-width: 1400px) {
  .skin-ad-left,
  .skin-ad-right  { width: 160px !important; }
  .skin-ad-inner  { width: 160px !important; height: 600px; }
  .skin-ad-left   { left:  calc(50% - 550px - 170px); }
  .skin-ad-right  { right: calc(50% - 550px - 170px); }
}

@media (min-width: 1700px) {
  .skin-ad-left,
  .skin-ad-right  { width: 200px !important; }
  .skin-ad-inner  { width: 200px !important; height: 600px; }
  .skin-ad-left   { left:  calc(50% - 550px - 210px); }
  .skin-ad-right  { right: calc(50% - 550px - 210px); }
}
/*
 * =====================================================
 *  BusinessMunch — Mobile & Tablet CSS Fixes
 *  Issues found & fixed across: style.css, category.css, article.css, webapps.css
 * =====================================================
 */

/* ======================================================
   FIX 1: HORIZONTAL SCROLL / OVERFLOW on mobile
   Root cause: .nav-inner had overflow:hidden cutting nav-links,
   .footer-apps-list caused body overflow, markets-bar fixed columns
   ====================================================== */

/* Prevent body-level horizontal scroll globally */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}

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

/* ======================================================
   FIX 2: HEADER — logo-icon missing on mobile (header.php
   has no logo-icon div — add safe fallback so logo renders)
   ====================================================== */
@media (max-width: 640px) {
  .logo {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
    overflow: hidden;
  }

  /* Logo name font keeps correct size and doesn't overflow */
  .logo-name {
    font-size: 17px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: calc(100vw - 100px); /* space for hamburger */
  }

  .logo-tagline {
    display: none;
  }
}

/* ======================================================
   FIX 3: NAV overflow-hidden was clipping scrollable nav
   On mobile: nav-inner must NOT have overflow:hidden so
   nav-links can scroll horizontally
   ====================================================== */
@media (max-width: 640px) {
  .nav {
    width: 100%;
    overflow: hidden; /* hide vertical overflow only */
  }

  .nav-inner {
    padding: 0 0 0 12px;
    overflow: visible; /* allow nav-links to scroll */
    display: flex;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
  }

  .nav-links {
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    flex: 1;
    min-width: 0;
    display: flex;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .nav-links a {
    font-size: 10.5px;
    padding: 9px 10px;
    letter-spacing: 0.2px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  /* Hide premium button on mobile */
  .nav-premium {
    display: none;
  }
}

/* ======================================================
   FIX 4: MARKETS BAR — 5-col grid overflows on small screens
   Fixed: 2x2 + hidden 5th on mobile, 3-col on tablet
   ====================================================== */
@media (max-width: 900px) {
  .markets-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .markets-bar {
    width: 100%;
    overflow: hidden; /* clip, don't scroll */
  }

  .markets-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Hide 5th item since 2-col = 4 items */
  .market-item:nth-child(5) {
    display: none;
  }

  /* Remove right border on right column */
  .market-item:nth-child(2),
  .market-item:nth-child(4) {
    border-right: none;
  }

  /* Add bottom border between rows */
  .market-item:nth-child(1),
  .market-item:nth-child(2) {
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }

  .market-item {
    padding: 10px 12px;
  }

  .market-name {
    font-size: 8.5px;
  }

  .market-val {
    font-size: 15px;
  }

  .market-change {
    font-size: 10px;
  }
}

/* ======================================================
   FIX 5: HOME GRID — 3-col → 2-col → 1-col
   sidebar-col hidden on tablet, trending-col hidden on tablet
   but shown again on mobile as stacked block
   ====================================================== */
@media (max-width: 1100px) {
  .home-grid {
    grid-template-columns: 1fr 290px;
  }

  .sidebar-col {
    display: none;
  }
}

@media (max-width: 900px) {
  .home-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .trending-col {
    display: none;
  }
}

@media (max-width: 640px) {
  .home-grid {
    grid-template-columns: 1fr;
    gap: 0;
    margin-bottom: 0;
  }

  .sidebar-col {
    display: none;
  }

  /* Show trending-col as stacked block on mobile */
  .trending-col {
    display: block;
    margin-top: 20px;
    margin-bottom: 4px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  }

  .col-label {
    background: var(--navy);
    color: white;
    padding: 9px 14px;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: none;
    margin-bottom: 0;
  }

  .trending-col .col-label::before {
    display: none;
  }

  .trend-item {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    gap: 10px;
  }

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

  /* Hide trend image on mobile — text only */
  .trend-img {
    display: none;
  }

  .trend-content {
    flex: 1;
    min-width: 0;
  }

  .trend-title {
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 4px;
  }

  .trend-meta {
    font-size: 10px;
    gap: 4px;
  }
}

/* ======================================================
   FIX 6: NEWS GRID 4-col → 2-col → 1-col
   ====================================================== */
@media (max-width: 900px) {
  .news-grid-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}

@media (max-width: 640px) {
  .news-grid-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 16px;
  }

  .news-card {
    border-radius: 6px;
  }

  .news-card-img {
    height: 110px;
  }

  .news-card-body {
    padding: 10px;
  }

  .nc-cat {
    font-size: 8.5px;
    letter-spacing: 1px;
    margin-bottom: 4px;
  }

  .nc-title {
    font-size: 12.5px;
    line-height: 1.4;
    margin-bottom: 6px;
  }

  .nc-meta {
    font-size: 10px;
  }
}

@media (max-width: 400px) {
  .news-grid-4 {
    grid-template-columns: 1fr;
  }

  .news-card-img {
    height: 130px;
  }

  .nc-title {
    font-size: 13.5px;
  }
}

/* ======================================================
   FIX 7: MID GRID & LATEST ITEMS — li-img was causing
   overflow on very small screens. Hide image, full-width text
   ====================================================== */
@media (max-width: 900px) {
  .mid-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

@media (max-width: 640px) {
  .mid-grid {
    grid-template-columns: 1fr;
    gap: 0;
    margin-bottom: 16px;
  }

  .latest-list {
    width: 100%;
  }

  .latest-item {
    padding: 12px 0;
    align-items: flex-start;
    width: 100%;
    gap: 0;
  }

  /* Hide thumbnail on mobile — text-only list */
  .li-img {
    display: none;
  }

  .li-content {
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
  }

  .li-cat {
    font-size: 8.5px;
    margin-bottom: 4px;
  }

  .li-title {
    font-size: 15px;
    line-height: 1.4;
    margin-bottom: 5px;
  }

  .li-excerpt {
    font-size: 12.5px;
    line-height: 1.55;
    margin-bottom: 5px;
  }

  .li-meta {
    font-size: 10px;
  }
}

/* ======================================================
   FIX 8: NEWSLETTER STRIP — wraps badly on small screens
   Single column on mobile with row form
   ====================================================== */
@media (max-width: 900px) {
  .newsletter-strip {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }

  .nl-form {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .nl-input {
    width: 100%;
    max-width: 340px;
  }

  .nl-pr-block {
    width: 100%;
    align-items: center;
  }

  .nl-pr-btn {
    width: 100%;
    max-width: 340px;
    justify-content: center;
  }

  .nl-divider {
    display: none;
  }
}

@media (max-width: 640px) {
  .newsletter-strip {
    flex-direction: column;
    padding: 16px 14px;
    gap: 12px;
    border-radius: 8px;
    margin-bottom: 16px;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
  }

  .newsletter-strip::before,
  .newsletter-strip::after {
    display: none;
  }

  .nl-heading {
    font-size: 16px;
    line-height: 1.3;
    margin-bottom: 2px;
  }

  .nl-sub {
    font-size: 11.5px;
  }

  .nl-form {
    flex-direction: row;
    gap: 6px;
    width: 100%;
    align-items: center;
  }

  .nl-input {
    flex: 1;
    min-width: 0;
    width: auto;
    padding: 9px 10px;
    font-size: 12px;
    border-radius: 5px;
  }

  .nl-btn {
    flex-shrink: 0;
    padding: 9px 12px;
    font-size: 12px;
    border-radius: 5px;
    white-space: nowrap;
  }

  .nl-pr-btn {
    width: 100%;
    justify-content: center;
    padding: 10px 14px;
    font-size: 12px;
    border-radius: 5px;
  }
}

/* ======================================================
   FIX 9: SPONSORED GRID — 3-col → 2-col → horizontal scroll
   On mobile: carousel scroll instead of tiny cards
   ====================================================== */
@media (max-width: 900px) {
  .sponsored-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .sponsored-section {
    margin-bottom: 20px;
  }

  .sponsored-grid {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 12px;
    padding-bottom: 8px;
    /* Bleed to edges */
    margin-left: -12px;
    margin-right: -12px;
    padding-left: 12px;
    padding-right: 12px;
  }

  .sponsored-grid::-webkit-scrollbar {
    display: none;
  }

  .sponsored-card {
    flex: 0 0 78vw;
    max-width: 290px;
    min-width: 240px;
    scroll-snap-align: start;
    transform: none !important; /* prevent hover transform on mobile */
  }

  .sponsored-card-img {
    height: 130px;
  }

  .sponsored-card-body {
    padding: 12px;
  }

  .sponsored-card-title {
    font-size: 13.5px;
    line-height: 1.35;
    margin-bottom: 6px;
  }

  .sponsored-card-desc {
    font-size: 12px;
    line-height: 1.5;
    margin-bottom: 10px;
  }
}

/* ======================================================
   FIX 10: AD SLOTS — wrong sizes on mobile / tablet
   ====================================================== */

/* --- Tablet (≤900px): switch to smaller ad formats --- */
@media (max-width: 900px) {
  .ad-hero-billboard {
    width: 100%;
    max-width: 728px;
    height: 180px;
  }

  .ad-footer-leaderboard {
    width: 100%;
    max-width: 728px;
  }

  .body-ad-970x250 {
    height: 180px;
  }
}

/* --- Mobile (≤640px): hide desktop ads, show mobile versions --- */
@media (max-width: 640px) {
  /* Hero ad */
  .ad-hero-wrap {
    padding: 0;
    background: transparent;
    border: none;
    margin: 0 0 12px;
  }

  .ad-hero-billboard {
    display: none !important;
  }

  .ad-hero-mobile {
    display: flex;
    width: 100%;
    height: 90px;
    border-radius: 4px;
  }

  /* Footer ad */
  .ad-footer-leaderboard {
    display: none !important;
  }

  .ad-footer-mobile {
    display: flex;
    width: 100%;
    max-width: 320px;
    height: 100px;
  }

  /* Mobile sticky ad */
  .ad-mobile-sticky {
    display: flex;
  }

  /* Body ad slots */
  .body-ad-wrap {
    margin: 12px 0;
    padding: 10px 0;
    align-items: center;
  }

  .body-ad-728x90 {
    display: none !important;
  }

  .body-ad-970x250 {
    display: none !important;
  }

  .body-ad-320x100 {
    display: flex !important;
    width: 100%;
    max-width: 100%;
    height: 90px;
  }

  .body-ad-slot {
    width: 100% !important;
    max-width: 100% !important;
  }

  .body-ad-300x250-inline {
    float: none;
    width: 100%;
    max-width: 100%;
    height: 180px;
    margin: 0 0 14px;
  }
}

/* ======================================================
   FIX 11: FOOTER GRID — overflow on mobile
   footer-apps-list (2-col grid) causes horizontal overflow
   ====================================================== */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .footer-col-apps {
    grid-column: span 2;
  }
}

@media (max-width: 640px) {
  .footer {
    padding: 20px 0 0;
    border-top-width: 3px;
  }

  .footer-inner {
    padding: 0 12px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding-bottom: 16px;
  }

  .footer-grid > div:first-child {
    grid-column: 1 / -1;
  }

  /* Apps column: full width, 2-col grid scrollable */
  .footer-col-apps {
    grid-column: 1 / -1;
  }

  .footer-apps-list {
    max-height: 200px;
    overflow-y: auto;
    grid-template-columns: 1fr 1fr !important;
    gap: 6px 12px !important;
  }

  .footer-logo {
    font-size: 17px;
    margin-bottom: 8px;
  }

  .footer-desc {
    font-size: 12px;
    line-height: 1.6;
    margin-bottom: 12px;
  }

  .footer-social {
    gap: 6px;
    flex-wrap: wrap;
  }

  .footer-social a {
    width: 30px;
    height: 30px;
    font-size: 12px;
  }

  .footer-col h5 {
    font-size: 9px;
    margin-bottom: 8px;
    padding-bottom: 6px;
    letter-spacing: 1.8px;
  }

  .footer-col ul {
    gap: 7px;
  }

  .footer-col ul li a {
    font-size: 12px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 4px;
    text-align: center;
    padding: 12px 0;
    font-size: 10px;
  }
}

@media (max-width: 400px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ======================================================
   FIX 14: WEBAPPS PAGE — wa-grid responsive fixes,
   wa-hero responsive padding fixes
   ====================================================== */
@media (max-width: 768px) {
  .wa-hero-inner {
    padding: 28px 16px 24px 20px;
  }

  .wa-hero-title {
    font-size: 32px;
    letter-spacing: -1px;
  }

  .wa-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .wa-home-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 500px) {
  .wa-hero-inner {
    padding: 18px 12px 16px 14px;
  }

  .wa-hero-title {
    font-size: 26px;
    letter-spacing: -0.5px;
  }

  .wa-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 16px 0 28px;
  }

  .wa-home-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .wa-home-card {
    padding: 10px 12px;
    gap: 10px;
  }

  .wa-home-icon {
    width: 38px;
    height: 38px;
    font-size: 18px;
  }

  .wa-home-name {
    font-size: 13px;
  }

  .wa-home-desc {
    font-size: 11px;
  }
}

@media (max-width: 400px) {
  .wa-home-grid {
    grid-template-columns: 1fr;
  }
}

/* ======================================================
   FIX 15: SKIN ADS — don't appear on small screens,
   only appear at 1100px+. Ensure they never cause overflow.
   ====================================================== */
@media (max-width: 1099px) {
  .skin-ad-left,
  .skin-ad-right {
    display: none !important;
  }
}

/* ======================================================
   FIX 16: MOBILE STICKY AD FOOTER PADDING
   Add padding-bottom to body when sticky ad shows so
   content isn't hidden behind it
   ====================================================== */
@media (max-width: 640px) {
  body.has-sticky-ad {
    padding-bottom: 112px;
  }

  .footer {
    padding-bottom: 120px; /* ensure footer content above sticky ad */
  }
}

/* ======================================================
   FIX 17: MAIN-WRAP padding fix for all pages on mobile
   ====================================================== */
@media (max-width: 640px) {
  .main-wrap {
    padding: 10px 12px;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
  }
}

/* ======================================================
   FIX 18: MOBILE MENU — correct width, touch-friendly
   ====================================================== */
@media (max-width: 640px) {
  .mob-menu {
    width: min(280px, 85vw);
  }

  .mob-menu nav a {
    font-size: 13px;
    padding: 11px 18px;
  }

  .mob-hamburger {
    display: flex !important;
  }
}

/* ======================================================
   FIX 19: SECTION DIVIDERS — correct spacing on mobile
   ====================================================== */
@media (max-width: 640px) {
  .section-divider {
    margin: 16px 0 10px;
    gap: 8px;
  }

  .section-divider-title {
    font-size: 9.5px;
    letter-spacing: 2px;
  }

  .section-divider-title::before {
    height: 12px;
  }

  .section-divider-more {
    font-size: 10px;
    padding: 3px 8px;
  }
}

/* ======================================================
   FIX 20: SIDEBAR WIDGETS — full width on mobile
   ====================================================== */
@media (max-width: 640px) {
  .sidebar-widget {
    margin-bottom: 12px;
    border-radius: 5px;
    width: 100%;
    box-sizing: border-box;
  }

  .sw-header {
    padding: 8px 12px;
    font-size: 8.5px;
    letter-spacing: 1.8px;
  }

  .sw-item {
    padding: 9px 12px;
    gap: 8px;
  }

  .sw-num {
    font-size: 17px;
    min-width: 20px;
  }

  .sw-title {
    font-size: 12px;
    line-height: 1.38;
  }

  .sw-meta {
    font-size: 10px;
  }

  /* Press Release items */
  .sw-item-pr .sw-item-pr-left {
    padding: 9px 12px;
    width: 100%;
    box-sizing: border-box;
  }

  .sw-item-pr .sw-title {
    font-size: 12px;
    line-height: 1.4;
  }

  .sw-item-pr .sw-meta {
    font-size: 10px;
    margin-top: 3px;
  }
}

/* ======================================================
   FIX 21: FEATURED ARTICLE — correct scaling on mobile
   ====================================================== */
@media (max-width: 640px) {
  .featured-col {
    padding: 0;
    margin-bottom: 0;
  }

  .featured-img {
    aspect-ratio: 16/9;
    width: 100%;
    border-radius: 5px;
    margin-bottom: 14px;
  }

  .featured-title {
    font-size: 20px;
    line-height: 1.3;
    margin-bottom: 10px;
  }

  .featured-excerpt {
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 12px;
  }

  .featured-meta {
    font-size: 11px;
    flex-wrap: wrap;
    gap: 5px;
  }

  /* Read More button full-width on mobile */
  .read-more-btn {
    display: flex;
    width: 100%;
    justify-content: center;
    padding: 10px 16px;
    font-size: 13px;
    margin-top: 8px;
    border-radius: 5px;
  }
}

@media (max-width: 400px) {
  .featured-title {
    font-size: 18px;
  }

  .markets-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .sponsored-card {
    flex: 0 0 90vw;
    min-width: 220px;
  }
}

/* ══════════════════════════════════════════════════════
   IN-CONTENT AD — Article ke beech mein
   ══════════════════════════════════════════════════════ */
.in-content-ad {
  margin: 32px auto;
  text-align: center;
  clear: both;
}
.in-content-ad-label {
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #aaa;
  margin-bottom: 6px;
}
.in-content-ad-slot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 728px;
  height: 90px;
  border: 1.5px dashed #dde0ec;
  border-radius: 6px;
  background: #f8f9fb;
  color: #aaa;
}
.ica-icon  { font-size: 20px; }
.ica-size  { font-size: 13px; font-weight: 700; color: #999; }
.ica-name  { font-size: 11px; color: #bbb; }

/* Mobile: full width */
@media (max-width: 640px) {
  .in-content-ad-slot {
    max-width: 100%;
    height: 60px;
  }
}

/* ══ Mobile Ad Slots — Show/Hide Logic ══ */

/* Desktop pe mobile ads hide */
.mobile-only,
.ica-mobile,
.body-ad-320x50 {
  display: none !important;
}

/* Mobile pe desktop ads hide, mobile ads show */
@media (max-width: 640px) {
  .mobile-only   { display: block !important; }
  .ica-mobile    { display: block !important; }
  .ica-desktop   { display: none  !important; }

  .body-ad-320x50 {
    display: block !important;
    margin: 10px auto;
    text-align: center;
  }
  .body-ad-320x50 .body-ad-slot {
    width: 320px;
    height: 50px;
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #f8f9fb;
    border: 1.5px dashed #dde0ec;
    border-radius: 5px;
    color: #aaa;
    font-size: 12px;
  }

  /* Mobile article ad slot size */
  .in-content-ad-slot.mobile {
    width: 100%;
    max-width: 320px;
    height: 50px;
  }
}

/* ══ CATEGORY PAGE MOBILE FIX — Article list visible karo ══ */
@media (max-width: 640px) {
  /* Article list — kabhi hide mat karo */
  .article-list             { display: block !important; }
  .art-item                 { display: flex !important; visibility: visible !important; opacity: 1 !important; }

  /* Cat featured — full width, proper height */
  .cat-featured             { display: flex !important; flex-direction: column !important; width: 100% !important; }

  /* Section head — visible */
  .section-head             { display: flex !important; }

  /* Main content area — fill full width */
  .cat-layout main          { width: 100% !important; min-width: 0 !important; overflow: visible !important; }
  .cat-layout               { display: block !important; }

  /* Art item image — proper size */
  .art-item-img             { min-width: 80px !important; width: 80px !important; height: 70px !important; flex-shrink: 0 !important; }

  /* Art item title — readable size */
  .ai-title                 { font-size: 13px !important; line-height: 1.4 !important; }
}

/* ══════════════════════════════════════════════════════
   AD SLOT PLACEHOLDERS — Visitors ko hide, Admin ko faint
   ══════════════════════════════════════════════════════ */

/* Empty ad wrapper — koi space mat lo */
.body-ad-wrap:not(:has(.bm-ad-live)),
.ad-sidebar:not(:has(.bm-ad-live)) {
  display: none;
}

/* Admin ke liye faint placeholder */
.body-ad-slot--admin {
  opacity: 0.35 !important;
  pointer-events: none;
  border-style: dashed !important;
  font-size: 11px;
}

/* Skin ads — real code nahi hai toh visitors ko hide */
.skin-ad-left:not(:has(.bm-ad-live)),
.skin-ad-right:not(:has(.bm-ad-live)) {
  display: none !important;
}

/* In-content ad — real code nahi toh hide */
.in-content-ad:not(:has(.bm-ad-live)) {
  display: none;
}

/* Mobile sticky — real code nahi toh hide */
.ad-mobile-sticky:not(:has(.bm-ad-live)) {
  display: none !important;
}

/* ── TradingView Branding Hide ─────────────────────────────────────────────── */
.tradingview-widget-copyright,
.tradingview-widget-container a[href*="tradingview"],
.tradingview-widget-container__widget a[href*="tradingview"],
#tradingview-widget-trader-rating,
a.tv-widget-disclaimer,
.tv-widget-disclaimer,
.tv-screener-toolbar__button--tv-logo,
.tv-site-dark-logo,
div[class*="disclaimer"],
div[class*="copyright"] a[href*="tradingview.com"],
.tradingview-widget-container > a,
iframe + div a[target="_blank"][href*="tradingview"] {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

/* ── TradingView Footer Link Cover ────────────────────────────────────────── */
.tv-widget-wrap {
  position: relative;
  overflow: hidden;
}
.tv-widget-wrap .tv-brand-cover {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 28px;
  background: #ffffff;
  z-index: 99;
  pointer-events: none;
}
