/*
Theme Name: BusinessMunch
Theme URI: https://businessmunch.in
Author: BusinessMunch
Author URI: https://businessmunch.in
Description: Fast, responsive WordPress news theme for Hindi and English news publications.
Version: 1.3.1
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-light: #1a3a6e;
  --red: #d42b2b;
  --red-soft: #fdf2f2;
  --gold: #c9922a;
  --white: #ffffff;
  --off-white: #f2f3f7;
  --surface: #ffffff;
  --border: #e4e6ed;
  --border-dark: #ced1db;
  --text: #0b1220;
  --text-mid: #3a4156;
  --text-light: #616574;
  --font-display: 'EB Garamond', Georgia, serif;
  --font-serif: 'EB Garamond', Georgia, serif;
  --font-ui: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --max: 1120px;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05), 0 0 0 1px rgba(0,0,0,0.04);
  --shadow: 0 4px 24px rgba(0,0,0,0.08), 0 1px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.13), 0 4px 16px rgba(0,0,0,0.07);
  --shadow-navy: 0 2px 8px rgba(14,31,61,0.25);
  --shadow-red: 0 2px 8px rgba(212,43,43,0.25);
}

/* ══════════════════════════════════════════════════
   AD DEVICE VISIBILITY — BASE RULES (Desktop default)
   ══════════════════════════════════════════════════ */
.ica-mobile  { display: none !important; }
.ica-tablet  { display: none !important; }
.ica-desktop { display: block !important; }

html { font-size: 16px; scroll-behavior: smooth; overflow-x: hidden; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; border-radius: 2px; }
:focus:not(:focus-visible) { outline: none; }
body { font-family: var(--font-serif); font-size: 1.0625rem; background: var(--off-white); color: var(--text); line-height: 1.75; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-size-adjust: 100%; -webkit-text-size-adjust: 100%; letter-spacing: 0; -webkit-tap-highlight-color: transparent; overflow-x: hidden; }
/* ── Hindi text — letter-spacing MUST be 0 ── */
[lang="hi"], :lang(hi),
.bm-hero-title-ov, .bm-grid-title, .bm-trend-title, .bm-topnews-title,
.bm-widget-title, .featured-title, .tn-title, .sw-title,
.bm-cat-title, .col-label, .sw-header, .pg-title,
.pg-list-title, .bm-hero-title {
  letter-spacing: 0 !important;
  word-spacing: 0;
}

input, textarea, select { font-size: 16px !important; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; height: auto; }

/* Red accent bar at very top */
.header::before {
  content: '';
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--red) 0%, #e74c3c 60%, var(--gold) 100%);
}

.header {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06), 0 1px 0 rgba(0,0,0,0.04);
  width: 100%;
}

/* ── Header Top Row ── */
.header-top {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}

/* ── LOGO ── */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  text-decoration: none;
  min-width: 0;
  max-width: 60%;
}

/* ── Header Actions ── */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  position: relative;
  z-index: 201;
}

/* Search button */
.header-search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1.5px solid #dde1ea;
  border-radius: 9px;
  background: #f8f9fb;
  color: var(--text-mid);
  cursor: pointer;
  transition: background .18s, border-color .18s, color .18s, box-shadow .18s;
  flex-shrink: 0;
  position: relative;
  /* overflow: hidden removed — was blocking touch hit-area */
}
.header-search-btn:hover {
  background: #fff;
  border-color: var(--border-dark);
  color: var(--navy);
  box-shadow: 0 2px 8px rgba(14,31,61,0.1);
}
.header-search-btn.active {
  background: var(--navy);
  border-color: var(--navy);
  color: #ffffff;
  box-shadow: 0 3px 12px rgba(14,31,61,0.25);
}
.header-search-btn svg { transition: transform .2s; }
.header-search-btn:hover svg { transform: scale(1.1); }

/* ── Hamburger ── */
.mob-hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4.5px;
  width: 36px;
  height: 36px;
  border: 1.5px solid #dde1ea;
  border-radius: 9px;
  background: #f8f9fb;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .18s, border-color .18s, box-shadow .18s;
  padding: 0;
  position: relative;
  /* overflow: hidden removed — was blocking touch hit-area */
}
.mob-hamburger:hover {
  background: #fff;
  border-color: var(--border-dark);
  box-shadow: 0 2px 8px rgba(14,31,61,0.1);
}
.mob-hamburger.active {
  background: var(--navy);
  border-color: var(--navy);
  box-shadow: 0 3px 12px rgba(14,31,61,0.25);
}
.mob-hamburger span {
  display: block;
  width: 15px;
  height: 1.5px;
  background: #3a4156;
  border-radius: 2px;
  transition: all .3s cubic-bezier(.4,0,.2,1);
  transform-origin: center;
}
.mob-hamburger.active span { background: #ffffff; }
.mob-hamburger.active span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.mob-hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.mob-hamburger.active span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* ── Search Bar ── */
.header-search-bar {
  overflow: hidden;
  max-height: 0;
  transition: max-height .28s ease, opacity .2s;
  border-top: 0px solid var(--border);
  background: #f8f9fb;
  opacity: 0;
}
.header-search-bar.open {
  max-height: 64px;
  border-top: 1px solid #eceef2;
  opacity: 1;
}
.header-search-form {
  max-width: var(--max);
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.header-search-form svg { color: var(--text-light); flex-shrink: 0; }
.header-search-form input[type=search] {
  flex: 1;
  border: none;
  outline: none;
  font-size: 14px;
  font-family: var(--font-ui);
  color: var(--text);
  background: transparent;
  padding: 4px 0;
}
.header-search-form input[type=search]::placeholder { color: var(--text-light); }
.header-search-close {
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  font-size: 14px;
  padding: 4px 8px;
  border-radius: 4px;
  transition: color .2s;
}
.header-search-close:hover { color: var(--text); }

/* ====== NAV ROW 1 & ROW 2 ====== */
.nav, .nav-row2 {
  width: 100%;
  overflow: hidden;
  border-top: 1px solid #eceef2;
  -webkit-overflow-scrolling: touch;
}
.nav { background: #fafafa; }
.nav-row2 {
  background: #f0f2f7;
  border-top-color: #e4e6ed;
  max-height: 0;
  transition: max-height 0.28s ease;
}
.nav-row2.open { max-height: 56px; }

.nav-scroll-wrap {
  display: block;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.nav-scroll-wrap::-webkit-scrollbar { display: none; }

.nav-links {
  display: inline-flex;
  flex-wrap: nowrap;
  min-width: 100%;
  padding: 0 4px;
}

.nav-tab {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  white-space: nowrap;
  min-height: 44px;
  padding: 0 13px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-mid);
  font-family: var(--font-ui);
  letter-spacing: 0;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 2.5px solid transparent;
  transition: color .18s, border-color .18s, background .18s;
}
.nav-tab:hover {
  color: var(--navy);
  border-bottom-color: rgba(14,31,61,0.18);
  background: rgba(14,31,61,0.03);
}
.nav-tab.active {
  color: var(--red);
  border-bottom-color: var(--red);
  font-weight: 700;
}

.nav-links-sub .nav-tab {
  min-height: 38px;
  padding: 0 11px;
  font-size: 0.78rem;
  letter-spacing: 0.2px;
  color: var(--text-light);
}
.nav-links-sub .nav-tab:hover { color: var(--navy); }
.nav-links-sub .nav-tab.active { color: var(--red); border-bottom-color: var(--red); font-weight: 700; }

@media (max-width: 768px) {
  .nav-tab              { font-size: 0.8rem;  padding: 0 10px; }
  .nav-links-sub .nav-tab { font-size: 0.74rem; padding: 0 9px; }
}
@media (max-width: 480px) {
  .nav-tab              { font-size: 0.76rem; padding: 0 9px; }
  .nav-links-sub .nav-tab { font-size: 0.72rem; padding: 0 8px; }
}

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

/* FIX #25 — Renamed keyframes for clarity */
/* bm-fade-pulse: generic opacity fade (used on general badges) */
@keyframes bm-fade-pulse {
  0%,100% { opacity: 1; }
  50%      { opacity: 0.35; }
}
/* bm-live-pulse: live dot animation with scale */
@keyframes bm-live-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.25; transform: scale(0.85); }
}
/* Keep legacy blink alias for any plugin/child theme that references it */
@keyframes blink {
  0%,100% { opacity: 1; }
  50%      { opacity: 0.35; }
}

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

.trending-col { display: flex; flex-direction: column; }

.sidebar-col {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.sidebar-col .ad-sidebar-250 { margin-bottom: 0; text-align: center; border-radius: var(--radius-lg); overflow: hidden; background: transparent; }
.sidebar-col .ad-sidebar-250:has(.bm-ad-live:empty) { display: none !important; }
.sidebar-col .ad-sidebar-600-wrap { margin-bottom: 0; text-align: center; }
.sidebar-col .ad-sidebar-600-wrap:has(.bm-ad-live:empty) { display: none !important; }
.sidebar-col .sidebar-widget { margin-bottom: 0; }

.featured-col { position: relative; border-radius: var(--radius-lg); cursor: pointer; }

.live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--red);
  display: inline-block;
  flex-shrink: 0;
  animation: bm-live-pulse 1.2s ease-in-out infinite;
}

.featured-img {
  width: 100%;
  aspect-ratio: 16/9;
  background: #0e1f3d;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  margin-bottom: 0;
  box-shadow: var(--shadow);
  display: block;
}
.featured-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

.featured-badges-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }

.featured-col a:focus,
.featured-col a:focus-visible { outline: none; }

.featured-content-block { padding: 14px 0 4px; border-radius: 0 0 var(--radius-lg) var(--radius-lg); }

.featured-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.7;
  margin: 4px 0 6px;
  letter-spacing: -0.2px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.featured-meta { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--text-light); font-family: var(--font-ui); margin: 4px 0 0 0; }

/* ====== TRENDING COL ====== */
.col-label {
  font-size: 16px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0.2px;
  color: var(--navy);
  border-bottom: 1px solid var(--border);
  border-left: 4px solid var(--red);
  padding: 10px 0 10px 14px;
  margin-top: 0;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-ui);
}

/* ====== TOP NEWS ====== */
.tn-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: background .15s;
  position: relative;
}
.tn-item:last-child { border-bottom: none; }
.tn-item:hover .tn-title { color: var(--red); }
.tn-item:hover .tn-num  { background: var(--red); transform: scale(1.08); }

.tn-num {
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-display);
  color: #fff;
  background: var(--navy);
  min-width: 22px;
  height: 22px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
  line-height: 1;
  transition: background .2s, transform .2s;
  box-shadow: 0 2px 4px rgba(14,31,61,0.2);
}
.tn-item:nth-child(1) .tn-num,
.tn-item:nth-child(2) .tn-num,
.tn-item:nth-child(3) .tn-num { background: var(--red); box-shadow: 0 2px 6px rgba(212,43,43,0.3); }

/* Top News — desktop: 5 items, mobile: 10 items */
.tn-item:nth-child(n+11) { display: none; }
@media (min-width: 900px) { .tn-item:nth-child(n+6) { display: none; } }

.tn-body { flex: 1; min-width: 0; }
.tn-meta { display: flex; align-items: center; gap: 5px; margin-bottom: 4px; }
.tn-cat {
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--red);
  background: var(--red-soft);
  padding: 1px 7px;
  border-radius: 10px;
  font-family: var(--font-ui);
  white-space: nowrap;
  display: none;
}
.tn-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.7;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color .2s;
  margin-top: 4px;
}

/* ====== SECTION DIVIDER ====== */
.section-divider {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  margin-top: 8px;
  padding-bottom: 10px;
  padding-left: 14px;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.section-divider::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 10px;
  width: 4px;
  background: linear-gradient(180deg, var(--red) 0%, #b32020 100%);
  border-radius: 3px;
  box-shadow: 0 2px 6px rgba(212,43,43,0.3);
}
.section-divider::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0;
  width: 60px; height: 2px;
  background: var(--red);
  border-radius: 2px;
  z-index: 1;
}
.section-divider-title {
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0.2px;
  color: var(--navy);
  white-space: nowrap;
  display: flex;
  align-items: center;
  line-height: 1;
}

/* ====== SIDEBAR WIDGETS ====== */
.sidebar-widget { background: transparent; border: none; border-radius: 0; margin-bottom: 20px; overflow: visible; box-shadow: none; }
.ad-sidebar-250 { margin-bottom: 20px; text-align: center; border-radius: var(--radius-lg); overflow: hidden; }
.ad-sidebar-600-wrap { margin-bottom: 20px; text-align: center; }
.sw-header {
  padding: 10px 0 10px 14px;
  font-size: 16px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0.2px;
  color: var(--navy);
  background: transparent;
  border-bottom: 1px solid var(--border);
  border-left: 4px solid var(--red);
  font-family: var(--font-ui);
  display: flex;
  align-items: center;
  margin-bottom: 4px;
}
.sw-item {
  padding: 11px 0;
  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: transparent; }
.sw-num {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: var(--navy);
  min-width: 22px;
  height: 22px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
  font-family: var(--font-display);
  line-height: 1;
  transition: background .2s;
  box-shadow: 0 2px 4px rgba(14,31,61,0.18);
}
.sw-item:nth-child(1) .sw-num,
.sw-item:nth-child(2) .sw-num,
.sw-item:nth-child(3) .sw-num { background: var(--red); box-shadow: 0 2px 6px rgba(212,43,43,0.28); }
.sw-item:hover .sw-num { background: var(--red); }
.sw-title {
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.7;
  color: var(--text);
  font-family: var(--font-display);
  transition: color .2s;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 4px;
}
.sw-item:hover .sw-title { color: var(--red); }

/* ====== POPULAR TAGS ====== */
.tag-cloud-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px;
  height: 220px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--red) transparent;
}
.tag-cloud-wrap::-webkit-scrollbar { width: 3px; }
.tag-cloud-wrap::-webkit-scrollbar-track { background: transparent; }
.tag-cloud-wrap::-webkit-scrollbar-thumb { background: var(--red); border-radius: 3px; }
.tag-cloud-item {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  font-family: var(--font-ui);
  color: var(--navy);
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 4px 12px;
  white-space: nowrap;
  transition: background .18s, color .18s, border-color .18s;
}
.tag-cloud-item:hover,
.tag-cloud-item.hot { background: var(--red); color: #fff; border-color: var(--red); }

/* ====== SPONSORED CONTENT ====== */
.sponsored-section { margin-bottom: 32px; }
.sponsored-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 12px;
  position: relative;
}
.sponsored-header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, #c9a96e 0%, #e8c97e 30%, transparent 75%);
}
.sponsored-header-left { display: flex; align-items: center; gap: 12px; }
.sponsored-header-left::before {
  content: '';
  display: block;
  width: 3px;
  height: 22px;
  background: linear-gradient(to bottom, #b8913a, #e8c97e, #b8913a);
  border-radius: 3px;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(184,145,58,.35);
}
.sponsored-header-title { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 4px; color: #3d3a4a; font-family: var(--font-display); }
.sponsored-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #8a6520;
  background: linear-gradient(135deg, #fffbef 0%, #fef0c0 50%, #fde68a 100%);
  border: 1px solid rgba(184,145,58,.4);
  padding: 5px 12px 5px 10px;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(184,145,58,.2), inset 0 1px 0 rgba(255,255,255,.8);
  position: relative;
  overflow: hidden;
}
.sponsored-header-badge::after {
  content: '';
  position: absolute;
  top: 0; left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent);
  border-radius: 20px;
}
.sponsored-header-badge::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #f0d060, #b8913a);
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(184,145,58,.4);
}
.sponsored-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.sponsored-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow .25s, transform .2s, border-color .25s;
  box-shadow: var(--shadow-sm);
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.sponsored-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: transparent; }
.sponsored-card-img {
  width: 100%; height: 160px; min-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; justify-content: flex-start; }
.sponsored-card-brand { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.4px; color: var(--gold); margin-bottom: 6px; font-family: var(--font-ui); }
.sponsored-card-title { font-family: var(--font-display); font-size: 15.5px; font-weight: 700; line-height: 1.7; margin-top: 4px; 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: ''; display: inline-block; width: 6px; height: 6px; border-right: 2px solid currentColor; border-top: 2px solid currentColor; transform: rotate(45deg); flex-shrink: 0; margin-left: 2px; }

/* ====== WORDPRESS CORE COMPATIBILITY ====== */
.alignleft  { float: left;  margin: 0.5em 1.5em 0.5em 0; max-width: 50%; }
.alignright { float: right; margin: 0.5em 0 0.5em 1.5em; max-width: 50%; }
.aligncenter { display: block; margin: 0 auto 1em; }
.alignnone  { display: block; margin: 0 0 1em; }
.wp-caption { max-width: 100%; margin-bottom: 1em; }
.wp-caption img { display: block; max-width: 100%; }
.wp-caption-text { font-size: 12px; color: var(--text-light); text-align: center; margin-top: 4px; }
.gallery { margin: 1em 0; }
.gallery-item { display: inline-block; vertical-align: top; width: 33.33%; padding: 4px; box-sizing: border-box; }
.gallery-item img { max-width: 100%; height: auto; display: block; }
.gallery-caption { font-size: 11px; color: var(--text-light); text-align: center; margin-top: 3px; }

.screen-reader-text {
  border: 0; clip: rect(1px,1px,1px,1px);
  clip-path: inset(50%); height: 1px; margin: -1px;
  overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal;
}
.screen-reader-text:focus {
  background: var(--white); border-radius: 4px; box-shadow: 0 0 2px 2px rgba(0,0,0,.1);
  clip: auto; clip-path: none; color: var(--navy); display: block;
  font-size: 14px; font-weight: 700; height: auto; left: 5px; line-height: normal;
  padding: 15px 23px 14px; text-decoration: none; top: 5px; width: auto; z-index: 999999;
}
.skip-link { position: absolute; top: -100%; left: 0; padding: 10px 16px; background: var(--navy); color: white; font-size: 13px; z-index: 9999; transition: top .2s; }
.skip-link:focus { top: 0; }

@media (max-width: 640px) {
  .alignleft, .alignright { float: none; display: block; margin: 0 auto 1em; max-width: 100%; }
}

/* ====== AD SLOTS ====== */
/* FIX #4 — Article leaderboard ad wrapper (moved from inline styles in single.php) */
.article-leaderboard-wrap {
  width: 100%;
  max-width: var(--max, 1120px);
  margin: 24px auto;
  padding: 0 24px;
  box-sizing: border-box;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.ad-label {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #c0c5d8;
  margin-bottom: 8px;
}

.ad-sidebar { margin-bottom: 20px; text-align: center; }
.ad-slot { width: 100%; text-align: center; overflow: hidden; }
.ad-slot:has(.bm-ad-live:empty) { display: none !important; }

.body-ad-wrap {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 20px 0;
  padding: 12px 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); }
.body-ad-728x90  { width: 728px; max-width: 100%; min-height: 90px; height: auto; display: flex; overflow: hidden; }

.sidebar-ad-600 {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 20px;
  box-sizing: border-box;
}
.sidebar-ad-600 .sidebar-ad-label { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: #bbb; margin-bottom: 6px; text-align: center; }
.sidebar-ad-600 .bm-ad-live { width: 100%; max-width: 300px; }
@media (max-width: 900px) { .sidebar-ad-600 { display: none; } }

.bm-infeed-ad { width: 100%; text-align: center; padding: 12px 0; box-sizing: border-box; }
.bm-infeed-ad:empty, .bm-infeed-ad:has(.bm-ad-live:empty) { display: none !important; padding: 0 !important; }

/* ═══ AD EMPTY-HIDE SYSTEM ═══ */
.bm-ad-live:empty { display: none !important; }
.bm-infeed-ad:has(.bm-ad-live:empty),
.in-content-ad:has(.bm-ad-live:empty),
.body-ad-wrap:has(.bm-ad-live:empty),
.ad-sidebar:has(.bm-ad-live:empty),
.sidebar-ad:has(.bm-ad-live:empty),
.sidebar-ad-600:has(.bm-ad-live:empty),
.ad-sidebar-600-block:has(.bm-ad-live:empty) { display: none !important; }
.bm-infeed-ad .bm-ad-live { display: flex; justify-content: center; }

/* ====== OFF-CANVAS MENU ====== */
.oc-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 990; backdrop-filter: blur(3px); transition: opacity .3s; }
.oc-overlay.open { display: block; animation: ocFadeIn .25s ease; }
@keyframes ocFadeIn { from { opacity:0; } to { opacity:1; } }

.oc-menu { position: fixed; top: 0; left: -360px; width: 320px; max-width: 88vw; height: 100%; background: #fff; z-index: 1000; display: flex; flex-direction: column; transition: left .32s cubic-bezier(.4,0,.2,1); box-shadow: 4px 0 32px rgba(0,0,0,.18); overflow: hidden; }
.oc-menu.open { left: 0; }

.oc-header { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 16px; background: linear-gradient(118deg, #060d1f 0%, #0e1f3d 100%); flex-shrink: 0; border-bottom: 2px solid #c0392b; }
.oc-logo { display: flex; flex-direction: column; gap: 2px; }
.oc-close { width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.15); border-radius: 8px; background: rgba(255,255,255,.08); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .2s; flex-shrink: 0; }
.oc-close:hover { background: rgba(255,255,255,.16); }

.oc-search { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: #f8f9fb; border-bottom: 1px solid #ebebeb; flex-shrink: 0; }
.oc-search-icon { color: #aaa; flex-shrink: 0; }
.oc-search-input { border: none; background: transparent; font-size: 13.5px; color: var(--text); outline: none; width: 100%; font-family: var(--font-display); }
.oc-search-input::placeholder { color: #bbb; }

.oc-nav { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 8px 0 16px; -webkit-overflow-scrolling: touch; }
.oc-nav::-webkit-scrollbar { width: 3px; }
.oc-nav::-webkit-scrollbar-thumb { background: #e0e0e0; border-radius: 3px; }

.oc-item { display: flex; align-items: center; gap: 10px; padding: 13px 20px; font-size: 14px; font-weight: 500; color: var(--text); text-decoration: none; border-left: 3px solid transparent; transition: all .15s; font-family: var(--font-display); }
.oc-item-home svg { color: #888; flex-shrink: 0; }
.oc-item:hover { background: #f7f8fb; border-left-color: rgba(192,57,43,.3); color: var(--navy); }
.oc-item.active { border-left-color: var(--red); color: var(--red); background: #fff5f5; font-weight: 700; }
.oc-count { margin-left: auto; font-size: 10px; font-weight: 700; color: #bbb; font-family: var(--font-ui); background: #f0f0f0; padding: 2px 7px; border-radius: 10px; flex-shrink: 0; }
.oc-item.active .oc-count { background: rgba(192,57,43,.1); color: var(--red); }

.oc-group { border-bottom: 1px solid #f2f2f2; }
.oc-group-header { display: flex; align-items: center; padding: 0 20px 0 0; cursor: pointer; transition: background .15s; border-left: 3px solid transparent; user-select: none; }
.oc-group-header:hover { background: #f7f8fb; border-left-color: rgba(192,57,43,.25); }
.oc-group.open .oc-group-header { background: #fff5f5; border-left-color: var(--red); }
.oc-group-title { flex: 1; display: flex; align-items: center; gap: 8px; padding: 13px 12px 13px 20px; font-size: 14px; font-weight: 600; color: var(--navy); text-decoration: none; font-family: var(--font-display); transition: color .15s; }
.oc-group.open .oc-group-title { color: var(--red); }
.oc-group-title:hover { color: var(--red); }
.oc-arrow { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; color: #bbb; transition: transform .25s, color .15s; flex-shrink: 0; }
.oc-group.open .oc-arrow { transform: rotate(180deg); color: var(--red); }

.oc-subs { display: none; padding: 4px 0 10px; background: #fafbfc; border-top: 1px solid #f0f0f0; }
.oc-group.open .oc-subs { display: block; animation: ocSlideDown .2s ease; }
@keyframes ocSlideDown { from { opacity:0; transform:translateY(-6px); } to { opacity:1; transform:translateY(0); } }

.oc-sub { display: flex; align-items: center; gap: 10px; padding: 9px 20px 9px 32px; font-size: 13px; color: var(--text-mid); text-decoration: none; transition: all .15s; font-family: var(--font-display); border-left: 3px solid transparent; }
.oc-sub:hover { background: #f0f4ff; color: var(--navy); border-left-color: rgba(14,31,61,.2); padding-left: 36px; }
.oc-sub.active { color: var(--red); font-weight: 600; background: #fff5f5; border-left-color: var(--red); }
.oc-sub-dot { width: 5px; height: 5px; border-radius: 50%; background: #d0d4de; flex-shrink: 0; transition: background .15s; }
.oc-sub:hover .oc-sub-dot { background: var(--navy); }
.oc-sub.active .oc-sub-dot { background: var(--red); }
.oc-sub-count { margin-left: auto; font-size: 10px; color: #ccc; font-family: var(--font-ui); font-weight: 700; flex-shrink: 0; }

.oc-footer { flex-shrink: 0; border-top: 1px solid #e8eaed; background: #fff; padding: 14px 20px 16px; }
.oc-footer-social { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; justify-content: center; }

/* FIX #19 — color-mix() with proper fallback for older browsers */
.oc-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--oc-icon-color, #555);
  border: none;
  color: #fff;
  text-decoration: none;
  transition: transform .2s cubic-bezier(.34,1.56,.64,1), box-shadow .2s ease, filter .2s ease;
  /* box-shadow: fallback first, then color-mix for modern browsers */
  box-shadow: 0 3px 10px rgba(85, 85, 85, 0.4);
  box-shadow: 0 3px 10px color-mix(in srgb, var(--oc-icon-color, #555) 40%, transparent);
  position: relative;
  overflow: hidden;
}
.oc-icon-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.22) 0%, rgba(255,255,255,0) 60%);
  pointer-events: none;
}
.oc-icon-btn svg { flex-shrink: 0; position: relative; z-index: 1; filter: drop-shadow(0 1px 1px rgba(0,0,0,.15)); }
.oc-icon-btn:hover {
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 8px 22px rgba(85, 85, 85, 0.55);
  box-shadow: 0 8px 22px color-mix(in srgb, var(--oc-icon-color, #555) 55%, transparent);
  filter: brightness(1.1);
  color: #fff;
}

/* ── Logo ── */
a.logo { overflow: visible; }
.spp-logo { display: inline-flex; flex-direction: column; align-items: center; text-decoration: none; line-height: 1; }
.spp-logo--header .spp-title { font-size: 23px; letter-spacing: 0.5px; }
.spp-logo--oc .spp-title { font-size: 20px; color: #ffaaaa; }
@media (max-width: 768px) { .spp-logo--header .spp-title { font-size: 20px; } }
@media (max-width: 480px) { .spp-logo--header .spp-title { font-size: 18px; } }

.sw-body { padding: 4px 0; }
.entry-content { line-height: inherit; }

/* ====== FOOTER ====== */
.footer { background: linear-gradient(180deg, #0b1b35 0%, #0e1f3d 100%); color: #7a8eaa; margin-top: 40px; border-top: 3px solid #c0392b; }
.footer-inner { max-width: var(--max); margin: 0 auto; padding: 48px 32px 0; box-sizing: border-box; }
.footer-links-row { display: grid; gap: 32px 40px; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,0.07); }
.footer-3col { grid-template-columns: repeat(3, 1fr); }
.footer-row-mid  { padding-top: 32px; }
.footer-row-last { padding-top: 32px; padding-bottom: 32px; }
.footer-col h5 { font-size: 9.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 2.8px; color: #9ab0cc; margin: 0 0 16px; padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,0.08); font-family: var(--font-ui); }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.footer-col ul li a { font-size: 13px; color: #7a90b0; text-decoration: none; display: inline-flex; align-items: center; gap: 5px; transition: color .2s, padding-left .15s; font-family: var(--font-ui); line-height: 1.45; }
.footer-col ul li a:hover { color: #e0e8f4; padding-left: 5px; }
.footer-wa-section { padding-top: 32px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,0.07); }
.footer-wa-heading { font-size: 9.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 2.8px; color: #9ab0cc; margin: 0 0 20px; padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,0.07); font-family: var(--font-ui); }
.footer-wa-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px 28px; }
.footer-wa-grid .footer-col h5 { display: none; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; padding: 18px 0; font-size: 11.5px; color: #3d5270; border-top: 1px solid rgba(255,255,255,0.06); }
.footer-copy { flex-shrink: 0; }
.footer-bottom a { color: #4e6585; text-decoration: none; transition: color .2s; }
.footer-bottom a:hover { color: #9ab8d8; }
.footer-bottom-links { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; justify-content: flex-end; }
.footer-sep { color: #2a3d58; font-size: 10px; line-height: 1; user-select: none; }

@media (max-width: 1280px) { .footer-inner { padding: 44px 28px 0; } .footer-links-row { gap: 28px 32px; } .footer-wa-grid { grid-template-columns: repeat(5, 1fr); } }
@media (max-width: 1024px) { .footer-inner { padding: 36px 24px 0; } .footer-links-row { gap: 24px 28px; padding-bottom: 28px; } .footer-3col { grid-template-columns: repeat(3, 1fr); } .footer-row-mid { padding-top: 28px; } .footer-row-last { padding-top: 28px; padding-bottom: 28px; } .footer-col h5 { font-size: 9px; letter-spacing: 2.2px; margin-bottom: 13px; } .footer-col ul { gap: 10px; } .footer-col ul li a { font-size: 12.5px; } .footer-wa-grid { grid-template-columns: repeat(4, 1fr); gap: 18px 22px; } .footer-wa-section { padding-top: 28px; padding-bottom: 30px; } .footer-bottom { padding: 16px 0; font-size: 11.5px; } }
@media (max-width: 768px) { .footer-inner { padding: 32px 20px 0; } .footer-links-row { gap: 22px 24px; padding-bottom: 24px; } .footer-3col { grid-template-columns: repeat(2, 1fr); } .footer-row-mid { padding-top: 24px; } .footer-row-last { padding-top: 24px; padding-bottom: 24px; } .footer-col h5 { font-size: 9px; margin-bottom: 12px; padding-bottom: 8px; letter-spacing: 2px; } .footer-col ul { gap: 9px; } .footer-col ul li a { font-size: 12.5px; } .footer-wa-section { padding-top: 24px; padding-bottom: 28px; } .footer-wa-heading { font-size: 9px; margin-bottom: 14px; } .footer-wa-grid { grid-template-columns: repeat(3, 1fr); gap: 16px 20px; } .footer-bottom { padding: 14px 0; font-size: 11.5px; gap: 8px; } .footer-bottom-links { justify-content: flex-start; } }
@media (max-width: 640px) { .footer-inner { padding: 28px 16px 0; } .footer-links-row { gap: 20px; padding-bottom: 20px; } .footer-3col { grid-template-columns: 1fr 1fr; gap: 16px; } .footer-row-mid { padding-top: 20px; } .footer-row-last { padding-top: 20px; padding-bottom: 20px; } .footer-col h5 { font-size: 8.5px; letter-spacing: 1.8px; margin-bottom: 10px; padding-bottom: 8px; } .footer-col ul { gap: 9px; } .footer-col ul li a { font-size: 12.5px; } .footer-col ul li a:hover { padding-left: 0; } .footer-wa-section { padding-top: 20px; padding-bottom: 22px; } .footer-wa-heading { font-size: 8.5px; margin-bottom: 12px; } .footer-wa-grid { grid-template-columns: repeat(2, 1fr); gap: 12px 16px; } .footer-bottom { flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 16px 0; font-size: 11px; } .footer-bottom-links { justify-content: center; gap: 4px 8px; } }
@media (max-width: 420px) { .footer-inner { padding: 22px 14px 0; } .footer-links-row { gap: 16px; padding-bottom: 18px; } .footer-3col { grid-template-columns: 1fr 1fr; } .footer-row-mid { padding-top: 16px; } .footer-row-last { padding-top: 16px; padding-bottom: 18px; } .footer-col h5 { font-size: 8px; letter-spacing: 1.5px; margin-bottom: 9px; } .footer-col ul { gap: 8px; } .footer-col ul li a { font-size: 12px; } .footer-wa-section { padding-top: 16px; padding-bottom: 18px; } .footer-wa-grid { grid-template-columns: 1fr 1fr; gap: 10px 14px; } .footer-bottom { padding: 14px 0; font-size: 10.5px; gap: 6px; } .footer-bottom-links { gap: 3px 6px; } .footer-sep { display: none; } }

/* ══ TABLET 641–1024px ══ */
@media (min-width: 641px) and (max-width: 1024px) {
  .ica-desktop { display: none !important; }
  .ica-tablet  { display: block !important; }
  .ica-mobile  { display: none !important; }
  .main-wrap { padding: 20px 18px; }
  .header-top { height: 60px; padding: 0 20px; }
  .home-grid { grid-template-columns: 1fr 300px; gap: 18px; }
  .sidebar-col { display: none; }
  .trending-col { display: block; }
  .tn-item:nth-child(n+5) { display: none; }
  .featured-img { aspect-ratio: 16/9; }
  .featured-title { font-size: 20px; }
  .bm-page-layout { grid-template-columns: 1fr; gap: 0; margin-top: 16px; }
  .bm-sidebar-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; position: static; }
  .bm-hero-block { grid-template-columns: 1fr 1fr; gap: 14px; }
  .bm-hero-title-ov { font-size: 15px; }
  .bm-grid-thumb { width: 80px; min-width: 80px; height: 60px; }
  .bm-grid-title { font-size: 13px; }
  .bm-cat-title { font-size: 17px; }
  .bm-cat-section { margin-bottom: 22px; }
  .article-wrap { grid-template-columns: 1fr; padding: 20px 18px 40px; }
  .article-sidebar { display: none !important; }
  .article-title { font-size: 28px; }
  .article-featured-img { height: 320px; }
  .footer-3col { grid-template-columns: repeat(2,1fr); gap: 20px; }
  .footer-inner { padding: 28px 20px 0; }
  .cat-layout { gap: 20px; }
  .cat-left-sidebar { display: none !important; }
  .col-label { font-size: 15px; }
  .sw-header { font-size: 15px; }
}

/* ── Page layout ── */
.bm-page-layout { display: grid; grid-template-columns: 1fr 300px; gap: 28px; margin-top: 28px; align-items: start; }
.bm-content-col { min-width: 0; display: flex; flex-direction: column; gap: 0; }
.bm-cat-section { background: transparent; border-radius: 0; border: none; padding: 0; margin-bottom: 28px; }
.bm-cat-header { display: flex; align-items: center; justify-content: space-between; padding-bottom: 10px; margin-bottom: 16px; position: relative; border-bottom: 1px solid var(--border); gap: 12px; }
.bm-cat-header::after { content: ''; position: absolute; bottom: -1px; left: 0; width: 60px; height: 2px; background: var(--red); border-radius: 2px; z-index: 1; }
@media (max-width: 640px) { .bm-cat-header::after { width: 48px; } }
.bm-cat-title { font-family: var(--font-display); font-size: 19px; font-weight: 700; color: var(--navy); letter-spacing: -0.1px; line-height: 1; padding-left: 0; position: relative; display: flex; align-items: center; gap: 10px; flex: 1; }
.bm-cat-title::before { display: none; }
.bm-cat-more { font-family: var(--font-ui); font-size: 12px; font-weight: 700; color: var(--red); border: 1.5px solid var(--red); border-radius: 6px; text-decoration: none; white-space: nowrap; background: transparent; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 14px; line-height: 1; letter-spacing: 0.3px; transition: background 0.2s, color 0.2s, box-shadow 0.2s; }
.bm-cat-more-text { display: inline-block; }
.bm-cat-more-arrow { display: inline-block; width: 7px; height: 7px; border-right: 2px solid currentColor; border-top: 2px solid currentColor; transform: rotate(45deg); flex-shrink: 0; margin-left: 2px; font-size: 0; line-height: 0; transition: transform 0.2s; }
.bm-cat-more:hover { background: var(--red); color: #fff; box-shadow: 0 3px 10px rgba(212,43,43,0.25); }
.bm-cat-more:hover .bm-cat-more-arrow { transform: rotate(45deg) translate(2px, -2px); }
.bm-hero-block { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.bm-hero-main { display: block; text-decoration: none; color: inherit; min-width: 0; }
.bm-hero-img { width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; background: var(--navy); position: relative; box-shadow: 0 4px 20px rgba(0,0,0,0.15); }
.bm-hero-img img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; transition: transform .4s ease; }
.bm-hero-main:hover .bm-hero-img img { transform: scale(1.04); }
.bm-img-empty { background: linear-gradient(135deg, #0e2a4a, #1c4d8a); }
.bm-hero-overlay { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.5) 50%, transparent 100%); padding: 40px 14px 14px; border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.bm-hero-title-ov { font-family: var(--font-display); font-size: 16px; font-weight: 700; color: #fff; line-height: 1.7; margin-bottom: 6px; margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; text-shadow: 0 1px 4px rgba(0,0,0,0.4); }
.bm-grid-list { display: flex; flex-direction: column; gap: 0; align-content: start; }
.bm-grid-item { display: flex; flex-direction: row; gap: 10px; align-items: flex-start; text-decoration: none; color: inherit; padding: 10px 0; border-bottom: 1px solid var(--border); }
.bm-grid-item:last-child { border-bottom: none; padding-bottom: 0; }
.bm-grid-item:hover .bm-grid-title { color: var(--red); }
.bm-grid-item:hover .bm-grid-thumb img { transform: scale(1.05); }
.bm-grid-thumb { width: 90px; min-width: 90px; height: 68px; border-radius: var(--radius); overflow: hidden; background: var(--navy); flex-shrink: 0; }
.bm-grid-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.bm-grid-body { flex: 1; min-width: 0; }
.bm-grid-title { font-family: var(--font-display); font-size: 13.5px; font-weight: 700; color: var(--text); line-height: 1.7; margin-bottom: 4px; margin-top: 4px; transition: color .2s; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bm-grid-meta { font-size: 11px; font-family: var(--font-ui); color: var(--text-light); }

/* ── Sidebar ── */
.bm-sidebar-col { position: sticky; top: 80px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.bm-widget { background: transparent; border: none; border-radius: 0; overflow: visible; }
.bm-widget-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; position: relative; }
.bm-widget-header::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 1px; background: var(--border); }
.bm-widget-title { font-family: var(--font-display); font-size: 16px; font-weight: 700; color: var(--navy); letter-spacing: -0.1px; line-height: 1; padding: 10px 0 10px 14px; border-left: 4px solid var(--red); display: flex; align-items: center; }
.bm-widget-body { padding: 10px 14px 12px; }
.bm-widget-empty { font-size: 12px; color: var(--text-light); padding: 8px 0; font-family: var(--font-ui); }
.bm-trend-item { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); text-decoration: none; color: inherit; }
.bm-trend-item:last-child { border-bottom: none; padding-bottom: 0; }
.bm-trend-item:hover .bm-trend-title { color: var(--red); }
.bm-trend-num { font-size: 22px; font-weight: 700; font-family: var(--font-display); color: var(--red); line-height: 1; min-width: 24px; flex-shrink: 0; margin-top: 0; opacity: 0.85; }
.bm-trend-body { flex: 1; min-width: 0; }
.bm-trend-title { font-size: 14px; font-weight: 600; font-family: var(--font-ui); color: var(--text); line-height: 1.7; margin-bottom: 3px; margin-top: 4px; transition: color .2s; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bm-trend-cat { font-size: 12px; font-family: var(--font-ui); color: var(--text-light); }
.bm-topnews-item { display: flex; gap: 9px; align-items: flex-start; padding: 9px 0; border-bottom: 1px solid var(--border); text-decoration: none; color: inherit; }
.bm-topnews-item:last-child { border-bottom: none; padding-bottom: 0; }
.bm-topnews-item:hover .bm-topnews-title { color: var(--red); }
.bm-topnews-thumb { width: 72px; min-width: 72px; height: 54px; border-radius: var(--radius); overflow: hidden; flex-shrink: 0; background: var(--navy); }
.bm-topnews-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.bm-topnews-item:hover .bm-topnews-thumb img { transform: scale(1.06); }
.bm-topnews-body { flex: 1; min-width: 0; }
.bm-topnews-title { font-size: 14px; font-weight: 600; font-family: var(--font-ui); color: var(--text); line-height: 1.7; margin-bottom: 3px; margin-top: 4px; transition: color .2s; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bm-sidebar-ad { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 10px; text-align: center; overflow: hidden; }
.bm-sidebar-ad-label { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: #c0c5d8; margin-bottom: 6px; font-family: var(--font-ui); }

/* ── Responsive ── */
@media (min-width: 1440px) { :root { --max: 1200px; } .home-grid { grid-template-columns: 1fr 330px 300px; gap: 28px; } .bm-page-layout { grid-template-columns: 1fr 320px; gap: 28px; } .bm-hero-block { grid-template-columns: 1fr 1fr; gap: 20px; } .bm-hero-title-ov { font-size: 18px; } .bm-grid-title { font-size: 14px; } }
@media (max-width: 1280px) { .home-grid { grid-template-columns: 1fr 300px 270px; gap: 22px; } .bm-page-layout { grid-template-columns: 1fr 280px; gap: 20px; } .footer-3col { grid-template-columns: repeat(3,1fr); gap: 18px 24px; } }
@media (max-width: 1100px) { .home-grid { grid-template-columns: 1fr 280px; gap: 18px; } .sidebar-col { display: none; } .bm-page-layout { grid-template-columns: 1fr 260px; gap: 16px; } .bm-hero-block { grid-template-columns: 1fr 1fr; gap: 14px; } .sponsored-grid { grid-template-columns: repeat(3,1fr); } .main-wrap { padding: 20px; } .footer-3col { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 1024px) { .bm-page-layout { grid-template-columns: 1fr; } .bm-sidebar-col { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; } .sponsored-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 900px) { .home-grid { grid-template-columns: 1fr; gap: 0; } .trending-col { display: none; } .main-wrap { padding: 18px 20px; } .header-top { height: 58px; padding: 0 20px; } .bm-sidebar-col { grid-template-columns: 1fr; } .footer-3col { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 768px) { .main-wrap { padding: 16px; } .bm-trend-title { font-size: 13.5px; } .bm-topnews-title { font-size: 13.5px; } .bm-topnews-thumb { width: 65px; min-width: 65px; height: 50px; } .sw-title { font-size: 14px; } .header-top { height: 56px; padding: 0 16px; } .featured-title { font-size: 18px; } .bm-hero-block { grid-template-columns: 1fr 1fr; gap: 12px; } .bm-hero-title-ov { font-size: 14px; } .bm-cat-header { padding-bottom: 7px; margin-bottom: 10px; } .bm-grid-title { font-size: 12px; } .bm-grid-thumb { height: 56px; min-width: 74px; width: 74px; } .bm-cat-title { font-size: 16px; } .sponsored-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 640px) { html, body { overflow-x: hidden; } .main-wrap { padding: 12px 14px; } .bm-trend-title { font-size: 13px; } .bm-trend-num { font-size: 18px; min-width: 20px; } .bm-topnews-title { font-size: 13px; } .bm-topnews-thumb { width: 60px; min-width: 60px; height: 46px; } .sw-title { font-size: 13.5px; } .header-top { height: 56px; padding: 0 14px; } .logo { flex: 1; max-width: calc(100% - 90px); } .nav-tab { font-size: 0.72rem; padding: 0 8px; } .home-grid { grid-template-columns: 1fr; gap: 0; margin-bottom: 0; } .sidebar-col { display: none; } .featured-img { border-radius: 10px; } .featured-title { font-size: 16px; } .featured-content-block { padding: 12px 0 8px; } .trending-col { display: block; margin: 16px 0; background: var(--white); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; } .trending-col .col-label { padding: 10px 14px 8px; margin-bottom: 0; border-bottom: 1px solid var(--border); } .tn-item { padding: 10px 14px; border-bottom: 1px solid var(--border); } .tn-item:last-child { border-bottom: none; } .tn-title { font-size: 13px; } .sw-header { font-size: 14px; } .col-label { font-size: 14px; } .bm-widget-title { font-size: 14px; } .bm-page-layout { margin-top: 14px; } .bm-hero-block { grid-template-columns: 1fr; gap: 12px; } .bm-hero-img { aspect-ratio: 16/9; } .bm-hero-title-ov { font-size: 15px; } .bm-grid-thumb { width: 72px; min-width: 72px; height: 54px; } .bm-grid-title { font-size: 13px; } .bm-cat-title { font-size: 15px; } .bm-cat-section { margin-bottom: 18px; } .bm-sidebar-col { grid-template-columns: 1fr; gap: 14px; } .sponsored-grid { display: flex; flex-direction: row; overflow-x: auto; scrollbar-width: none; gap: 12px; padding-bottom: 8px; } .sponsored-grid::-webkit-scrollbar { display: none; } .sponsored-card { flex: 0 0 76vw; min-width: 230px; max-width: 300px; } .footer { padding-bottom: 60px; } .alignleft, .alignright { float: none; display: block; margin: 0 auto 1em; max-width: 100%; } /* ica visibility handled by ads.css */ }
@media (max-width: 400px) { .main-wrap { padding: 10px 12px; } .bm-trend-title { font-size: 12.5px; } .bm-topnews-title { font-size: 12.5px; } .bm-topnews-thumb { width: 56px; min-width: 56px; height: 42px; } .sw-title { font-size: 13px; } .sw-header { font-size: 13px; } .col-label { font-size: 13px; } .bm-widget-title { font-size: 13px; } .bm-cat-title { font-size: 14px; } .footer-3col { grid-template-columns: 1fr; } .oc-menu { width: 92vw; } }

.bm-trend-item:nth-child(n+6) { display: none; }
.sidebar-col .sw-item:nth-child(n+7) { display: none; }
.bm-topnews-item:nth-child(n+6) { display: none; }
.sw-meta { font-size: 12px; color: var(--text-light); margin-top: 3px; font-family: var(--font-ui); display: none; }
.trending-col .tn-num { display: none; }
.trending-col .tn-meta { display: none; }

@media (max-width: 768px) { .bm-cat-more { font-size: 11px; padding: 6px 10px; gap: 4px; } .bm-cat-more-text { transform: translateY(0); } .bm-cat-more-arrow { width: 6px; height: 6px; } }
@media (max-width: 640px) { .bm-cat-more { font-size: 11px; padding: 5px 10px; } }
@media (max-width: 400px) { .bm-cat-more { font-size: 10.5px; padding: 5px 9px; } }

/* ====== PHOTO GALLERY SECTION ====== */
.pg-section { margin: 28px 0 0; }
.pg-header { display: flex; align-items: center; justify-content: space-between; background: var(--navy); padding: 12px 18px; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.pg-title { font-family: var(--font-display); font-size: 17px; font-weight: 700; color: #fff; letter-spacing: 0.2px; }
.pg-more { font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.8); text-decoration: none; display: flex; align-items: center; gap: 4px; font-family: var(--font-ui); transition: color .2s; }
.pg-more:hover { color: #fff; }
.pg-more span { font-size: 16px; }
.pg-tabs-wrap { background: #111827; display: flex; align-items: center; position: relative; overflow: hidden; }
.pg-tabs { display: flex; align-items: center; gap: 0; overflow-x: auto; scrollbar-width: none; flex: 1; }
.pg-tabs::-webkit-scrollbar { display: none; }
.pg-tab { flex-shrink: 0; padding: 10px 16px; font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.6); background: none; border: none; cursor: pointer; white-space: nowrap; font-family: var(--font-ui); border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
.pg-tab:hover { color: #fff; }
.pg-tab.active { color: #fff; border-bottom-color: var(--red); }
.pg-tabs-arrow { flex-shrink: 0; width: 32px; height: 100%; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.7); cursor: pointer; font-size: 20px; background: linear-gradient(to right, transparent, #111827 60%); padding-right: 6px; transition: opacity .2s; }
.pg-panel { display: none; }
.pg-panel.active { display: block; }
.pg-list { background: #0d1424; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid rgba(255,255,255,0.06); }
.pg-list-item { display: flex; align-items: flex-start; gap: 10px; padding: 12px 16px; text-decoration: none; color: inherit; border-bottom: 1px solid rgba(255,255,255,0.06); border-right: 1px solid rgba(255,255,255,0.06); transition: background .18s; }
.pg-list-item:nth-child(even) { border-right: none; }
.pg-list-item:hover { background: rgba(255,255,255,0.04); }
.pg-list-item:hover .pg-list-title { color: #fff; }
.pg-list-num { font-size: 11px; font-weight: 700; color: var(--red); min-width: 18px; flex-shrink: 0; font-family: var(--font-ui); margin-top: 2px; }
.pg-list-icon { font-size: 13px; flex-shrink: 0; margin-top: 1px; }
.pg-list-body { flex: 1; min-width: 0; }
.pg-list-title { font-family: var(--font-display); font-size: 13.5px; font-weight: 600; color: #dde4f0; line-height: 1.6; margin: 0 0 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color .18s; }
@media (max-width: 768px) { .pg-title { font-size: 15px; } .pg-tab { font-size: 12px; padding: 9px 13px; } .pg-list { grid-template-columns: 1fr; } .pg-list-item { border-right: none; } }
@media (max-width: 640px) { .pg-header { padding: 10px 14px; border-radius: var(--radius) var(--radius) 0 0; } .pg-title { font-size: 14px; } .pg-tab { font-size: 11.5px; padding: 8px 12px; } .pg-more { font-size: 12px; } .pg-list-title { font-size: 13px; } .pg-list-item { padding: 10px 14px; } }
@media (max-width: 400px) { .pg-tab { font-size: 11px; padding: 8px 10px; } .pg-list-title { font-size: 12.5px; } }

.bm-hero-col { display: flex; flex-direction: column; gap: 0; min-width: 0; }

/* ====== RAIL ADS ====== */
.bm-rail-left, .bm-rail-right { display: none !important; }
@media (min-width: 1280px) and (max-width: 1439px) {
  .main-wrap { max-width: 960px !important; }
  .bm-rail-left, .bm-rail-right { display: flex !important; position: fixed; top: 175px; width: 120px; z-index: 100; flex-direction: column; align-items: center; gap: 16px; }
  .bm-rail-left  { left:  calc(50% - 480px - 130px); }
  .bm-rail-right { right: calc(50% - 480px - 130px); }
}
@media (min-width: 1440px) and (max-width: 1599px) {
  .main-wrap { max-width: 1120px !important; }
  .bm-rail-left, .bm-rail-right { display: flex !important; position: fixed; top: 175px; width: 120px; z-index: 100; flex-direction: column; align-items: center; gap: 16px; }
  .bm-rail-left  { left:  calc(50% - 560px - 130px); }
  .bm-rail-right { right: calc(50% - 560px - 130px); }
}
@media (min-width: 1600px) {
  .main-wrap { max-width: 1200px !important; }
  .bm-rail-left, .bm-rail-right { display: flex !important; position: fixed; top: 175px; width: 160px; z-index: 100; flex-direction: column; align-items: center; gap: 16px; }
  .bm-rail-left  { left:  calc(50% - 600px - 180px); }
  .bm-rail-right { right: calc(50% - 600px - 180px); }
}

/* ====== BUG FIXES ====== */
/* FIX: Hide post counts in off-canvas nav */
.oc-count, .oc-sub-count { display: none !important; }
/* FIX: Dim inactive social icons */
.oc-icon-inactive { opacity: 0.3; filter: grayscale(1); pointer-events: none; cursor: default; }
/* FIX: Search page styling */
.bm-search-header { font-size: 22px; font-weight: 700; padding: 24px 0 20px; border-bottom: 2px solid var(--navy); margin-bottom: 20px; }
.bm-search-item { padding: 14px 0; border-bottom: 1px solid #e5e7ed; }
.bm-search-item a { font-size: 18px; font-weight: 600; color: var(--navy); }
.bm-search-item p { color: #636878; font-size: 15px; margin-top: 5px; }

/* ====== MOBILE/TABLET TOUCH FIX ====== */
/* Ensure header buttons are always tappable on mobile & tablet */
@media (max-width: 1024px) {
  .header-search-btn,
  .mob-hamburger {
    min-width: 44px;
    min-height: 44px;
    width: 44px;
    height: 44px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
    position: relative;
    z-index: 202;
  }
  .header-actions {
    position: relative;
    z-index: 202;
    gap: 10px;
  }
  /* Prevent anchor ad from sitting over header buttons */
  .bm-ad-anchor {
    z-index: 500 !important;
  }
  /* Off-canvas overlay must be above anchor ad but below menu */
  .oc-overlay {
    z-index: 600 !important;
  }
  .oc-menu {
    z-index: 700 !important;
  }
}
