/* ======================================================
   KHABAR.CSS — Nepal's News Hub
   khabar.matrixnet.com.np
   ====================================================== */

/* ── CUSTOM PROPERTIES ── */
:root {
  /* Brand */
  --c-red:       #B5261E;
  --c-red-dark:  #8A1B15;
  --c-red-pale:  #FEF2F2;
  --c-gold:      #C8860A;
  --c-gold-pale: #FEFCE8;
  --c-navy:      #1E3A5F;
  --c-navy-pale: #EEF2F8;

  /* Surface */
  --bg:          #FFFFFF;
  --bg-2:        #F7F7F5;
  --bg-3:        #EFEEEA;
  --surface:     #FFFFFF;

  /* Text */
  --text:        #18181B;
  --text-2:      #52525B;
  --text-3:      #A1A1AA;

  /* Border */
  --border:      rgba(0,0,0,0.10);
  --border-md:   rgba(0,0,0,0.16);

  /* Type */
  --ff-serif:    Georgia, 'Times New Roman', serif;
  --ff-sans:     -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

  /* Radius */
  --r-sm:  6px;
  --r-md:  10px;
  --r-lg:  14px;
  --r-xl:  20px;

  /* Transition */
  --t: 0.15s ease;
}

[data-theme="dark"] {
  --bg:       #0F0F0F;
  --bg-2:     #1A1A1A;
  --bg-3:     #242424;
  --surface:  #1A1A1A;
  --text:     #FAFAFA;
  --text-2:   #A1A1AA;
  --text-3:   #52525B;
  --border:   rgba(255,255,255,0.10);
  --border-md:rgba(255,255,255,0.18);
  --c-red-pale:  #2D1110;
  --c-gold-pale: #231904;
  --c-navy-pale: #0D1F30;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--ff-sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-2);
  transition: background var(--t), color var(--t);
}
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; }
ul, ol { list-style: none; }

/* ── CONTAINER ── */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ── TOPBAR ── */
.topbar {
  background: var(--c-red);
  color: #fff;
  font-size: 11px;
  padding: 5px 0;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.topbar-date { opacity: 0.9; }
.topbar-right { display: flex; align-items: center; gap: 16px; }
.lang-toggle { display: flex; gap: 3px; }
.lang-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.4);
  color: #fff;
  font-size: 10px;
  padding: 1px 7px;
  border-radius: 3px;
  cursor: pointer;
  transition: var(--t);
}
.lang-btn.active { background: rgba(255,255,255,0.25); border-color: rgba(255,255,255,0.7); }
.topbar-socials a { color: rgba(255,255,255,0.8); font-size: 13px; margin-left: 6px; transition: color var(--t); }
.topbar-socials a:hover { color: #fff; }

/* ── HEADER ── */
.site-header {
  background: var(--surface);
  border-bottom: 0.5px solid var(--border);
  padding: 10px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 14px;
}
.logo-wrap {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  text-decoration: none;
}
.logo-mark {
  font-family: var(--ff-serif);
  font-size: 28px;
  font-weight: 700;
  color: var(--c-red);
  line-height: 1;
  letter-spacing: -0.5px;
}
.logo-tagline {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-3);
  margin-top: 1px;
}
.search-form {
  flex: 1;
  max-width: 340px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 0.5px solid var(--border-md);
  border-radius: var(--r-md);
  padding: 7px 12px;
  background: var(--bg-2);
  color: var(--text-3);
}
.search-form i { font-size: 14px; flex-shrink: 0; }
.search-form input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 13px;
  color: var(--text);
  outline: none;
}
.search-form input::placeholder { color: var(--text-3); }
.search-form button { display: none; }
.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.nepse-chip {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  background: var(--c-gold-pale);
  border: 0.5px solid var(--border);
  border-radius: 20px;
  padding: 4px 10px;
  color: var(--text-2);
}
.nepse-chip strong { font-weight: 700; color: var(--text); }
.chip-chg.up  { color: #15803D; font-weight: 600; }
.chip-chg.dn  { color: #B91C1C; font-weight: 600; }
.icon-btn {
  width: 36px; height: 36px;
  border: 0.5px solid var(--border-md);
  border-radius: var(--r-sm);
  background: var(--bg-2);
  color: var(--text-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  transition: var(--t);
  position: relative;
}
.icon-btn:hover { background: var(--bg-3); color: var(--text); }
.notif-dot {
  position: absolute; top: 6px; right: 6px;
  width: 6px; height: 6px;
  background: var(--c-red); border-radius: 50%;
  border: 1.5px solid var(--surface);
}
.subscribe-btn {
  background: var(--c-red);
  color: #fff;
  border: none;
  border-radius: var(--r-sm);
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 600;
  transition: background var(--t);
}
.subscribe-btn:hover { background: var(--c-red-dark); }
.hamburger {
  display: none;
  width: 36px; height: 36px;
  border: 0.5px solid var(--border-md);
  border-radius: var(--r-sm);
  background: var(--bg-2);
  color: var(--text);
  align-items: center; justify-content: center;
  font-size: 18px;
}

/* ── DRAWER ── */
.drawer-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 150;
}
.drawer {
  position: fixed; top: 0; left: -280px; bottom: 0;
  width: 270px;
  background: var(--surface);
  border-right: 0.5px solid var(--border);
  z-index: 200;
  transition: left 0.25s ease;
  display: flex; flex-direction: column;
}
.drawer.open { left: 0; }
.drawer-overlay.open { display: block; }
.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px;
  border-bottom: 0.5px solid var(--border);
}
.drawer-head button {
  background: none; border: none; font-size: 20px;
  color: var(--text-2); cursor: pointer;
}
.drawer-nav { flex: 1; overflow-y: auto; padding: 8px 0; }
.drawer-item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 16px;
  font-size: 14px; color: var(--text-2);
  border-left: 3px solid transparent;
  transition: var(--t);
}
.drawer-item:hover, .drawer-item.active {
  color: var(--c-red);
  background: var(--c-red-pale);
  border-left-color: var(--c-red);
}
.drawer-item i { font-size: 17px; }
.drawer-footer {
  padding: 12px 16px;
  font-size: 11px; color: var(--text-3);
  border-top: 0.5px solid var(--border);
}
.drawer-footer a { color: var(--text-3); }

/* ── NAVIGATION ── */
.site-nav {
  background: var(--surface);
  border-bottom: 2px solid var(--c-red);
  overflow-x: auto;
  scrollbar-width: none;
}
.site-nav::-webkit-scrollbar { display: none; }
.nav-inner {
  display: flex;
  gap: 0;
  padding: 0;
}
.nav-item {
  display: block;
  padding: 9px 14px;
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
  color: var(--text-2);
  border-bottom: 2.5px solid transparent;
  margin-bottom: -2px;
  transition: color var(--t);
}
.nav-item:hover { color: var(--text); }
.nav-item.active { color: var(--c-red); border-bottom-color: var(--c-red); font-weight: 600; }

/* ── BREAKING TICKER ── */
.breaking-bar {
  background: var(--c-red);
  overflow: hidden;
  padding: 5px 0;
}
.ticker-wrap {
  display: flex;
  align-items: center;
}
.ticker-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  white-space: nowrap;
  color: #fff;
  background: rgba(0,0,0,0.25);
  padding: 0 14px;
  line-height: 22px;
  flex-shrink: 0;
}
.ticker-viewport { flex: 1; overflow: hidden; }
.ticker-track {
  display: inline-block;
  white-space: nowrap;
  color: rgba(255,255,255,0.95);
  font-size: 12px;
  padding-left: 24px;
  animation: ticker-scroll 35s linear infinite;
}
@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── MAIN LAYOUT ── */
#main-content { padding-bottom: 80px; }
.main-layout {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 20px;
  padding-top: 20px;
}

/* ── STORIES BAR (mobile only) ── */
.stories-bar {
  display: none;
  gap: 12px;
  overflow-x: auto;
  padding: 12px 0 10px;
  scrollbar-width: none;
  margin-bottom: 12px;
}
.stories-bar::-webkit-scrollbar { display: none; }
.story-item {
  display: flex; flex-direction: column;
  align-items: center; gap: 4px;
  flex-shrink: 0;
  cursor: pointer;
}
.story-ring {
  width: 54px; height: 54px;
  border: 2.5px solid var(--c-red);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  background: var(--bg-2);
}
.story-item span {
  font-size: 9px;
  color: var(--text-2);
  text-align: center;
  max-width: 54px;
  line-height: 1.2;
}

/* ── NEWS CARD ── */
.news-card {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color var(--t);
  display: flex;
  flex-direction: column;
}
.news-card:hover { border-color: var(--border-md); }
.news-card-link { display: flex; flex-direction: column; flex: 1; color: inherit; }
.card-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--bg-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  overflow: hidden;
  flex-shrink: 0;
}
.card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.card-thumb.bg-red    { background: var(--c-red-pale); }
.card-thumb.bg-gold   { background: var(--c-gold-pale); }
.card-thumb.bg-navy   { background: var(--c-navy-pale); }
.card-thumb.bg-gray   { background: var(--bg-3); }
.card-body { padding: 12px; flex: 1; display: flex; flex-direction: column; }
.card-cat {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--c-red);
  margin-bottom: 5px;
}
.card-title {
  font-family: var(--ff-serif);
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  margin: 0 0 6px;
  flex: 1;
}
.card-title.sm { font-size: 13.5px; }
.card-title.md { font-size: 15px; }
.card-title.lg { font-size: 18px; }
.card-desc {
  font-size: 12px;
  color: var(--text-2);
  line-height: 1.5;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-meta {
  display: flex; align-items: center; gap: 6px;
  font-size: 10px; color: var(--text-3);
  margin-top: auto;
}
.card-source { font-weight: 600; color: var(--text-2); }
.card-badge {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 9px; font-weight: 700;
  padding: 2px 7px; border-radius: 3px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.badge-red  { background: var(--c-red); color: #fff; }
.badge-live { background: #DC2626; color: #fff; animation: pulse-badge 2s ease infinite; }
@keyframes pulse-badge { 0%,100%{opacity:1} 50%{opacity:0.7} }
.badge-live::before {
  content: '';
  display: inline-block;
  width: 5px; height: 5px;
  background: #fff; border-radius: 50%;
  margin-right: 3px;
  animation: blink 1s step-end infinite;
}
@keyframes blink { 50%{opacity:0} }

/* ── HERO ARTICLE ── */
.hero-article {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: 14px;
}
.hero-article a { color: inherit; }
.hero-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--c-red-pale);
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem;
  overflow: hidden;
}
.hero-thumb img { width: 100%; height: 100%; object-fit: cover; }
.hero-body { padding: 18px; }
.hero-badges { display: flex; gap: 6px; margin-bottom: 8px; }
.hero-title {
  font-family: var(--ff-serif);
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
  margin-bottom: 10px;
}
.hero-desc {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.6;
  margin-bottom: 10px;
}
.hero-meta {
  display: flex; align-items: center; gap: 8px;
  font-size: 11px; color: var(--text-3);
}
.hero-source { font-weight: 700; color: var(--text-2); font-size: 12px; }

/* ── GRIDS ── */
.mid-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}
.news-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
.news-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* ── SECTION HEADERS ── */
.news-section { margin-bottom: 20px; }
.section-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--c-red);
  padding-bottom: 7px;
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--ff-serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  display: flex; align-items: center; gap: 8px;
}
.dot {
  display: inline-block;
  width: 12px; height: 12px;
  border-radius: 3px;
  flex-shrink: 0;
}
.dot.red  { background: var(--c-red); }
.dot.gold { background: var(--c-gold); }
.dot.navy { background: var(--c-navy); }
.section-link { font-size: 11px; color: var(--c-red); font-weight: 500; }
.section-link:hover { text-decoration: underline; }

/* ── LOAD MORE ── */
.load-more-wrap { text-align: center; padding: 16px 0; }
.load-more-btn {
  background: var(--bg-2);
  border: 0.5px solid var(--border-md);
  border-radius: var(--r-md);
  padding: 10px 28px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  transition: var(--t);
  display: inline-flex; align-items: center; gap: 8px;
}
.load-more-btn:hover { background: var(--bg-3); color: var(--text); }
.load-more-btn.loading i { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── SIDEBAR ── */
.sidebar-col { display: flex; flex-direction: column; gap: 14px; }
.widget {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 14px;
}
.widget-title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--text-3);
  border-bottom: 1.5px solid var(--c-red);
  padding-bottom: 6px;
  margin-bottom: 10px;
  display: flex; align-items: center; gap: 6px;
}

/* Trending */
.trending-list { display: flex; flex-direction: column; }
.trending-item {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 8px 0;
  border-bottom: 0.5px solid var(--border);
}
.trending-item:last-child { border-bottom: none; }
.trending-num {
  font-size: 22px;
  font-weight: 700;
  font-family: var(--ff-serif);
  color: var(--border-md);
  line-height: 1;
  flex-shrink: 0;
  width: 22px;
}
.trending-title {
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.35;
}
.trending-meta { font-size: 10px; color: var(--text-3); margin-top: 2px; }

/* Weather */
.weather-widget { background: var(--c-navy-pale); }
.weather-city {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-navy);
  margin-bottom: 6px;
  display: flex; align-items: center; gap: 4px;
}
[data-theme="dark"] .weather-city { color: #7BADD6; }
.weather-main {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 10px;
}
.weather-temp {
  font-size: 36px;
  font-weight: 700;
  font-family: var(--ff-serif);
  color: var(--text);
  line-height: 1;
}
.weather-icon { font-size: 20px; }
.weather-desc { font-size: 11px; color: var(--text-2); }
.weather-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}
.weather-cell { font-size: 11px; color: var(--text-2); }
.weather-cell strong { color: var(--text); font-weight: 600; display: block; }
.weather-cities {
  margin-top: 9px;
  font-size: 10px;
  color: var(--text-3);
  padding-top: 8px;
  border-top: 0.5px solid var(--border);
}

/* Markets */
.market-list { display: flex; flex-direction: column; gap: 0; }
.market-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 0;
  border-bottom: 0.5px solid var(--border);
}
.market-row:last-child { border-bottom: none; }
.market-name { font-size: 12px; font-weight: 700; color: var(--text); }
.market-sub  { font-size: 10px; color: var(--text-3); }
.market-val  { font-size: 12px; font-weight: 600; text-align: right; }
.market-val small { font-size: 10px; font-weight: 500; }
.market-note { font-size: 10px; color: var(--text-3); margin-top: 7px; }
.up { color: #15803D; }
.dn { color: #B91C1C; }
[data-theme="dark"] .up { color: #4ADE80; }
[data-theme="dark"] .dn { color: #F87171; }

/* Sources */
.sources-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.sources-cloud span {
  font-size: 10px;
  padding: 3px 8px;
  border: 0.5px solid var(--border-md);
  border-radius: 14px;
  color: var(--text-2);
}
.sources-cloud .more {
  color: var(--c-red);
  border-color: var(--c-red);
  font-weight: 600;
}

/* ── BOTTOM NAV (mobile) ── */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--surface);
  border-top: 0.5px solid var(--border);
  z-index: 90;
}
.bnav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 9px 4px 11px;
  font-size: 10px;
  color: var(--text-3);
  transition: color var(--t);
}
.bnav-item i { font-size: 20px; }
.bnav-item.active { color: var(--c-red); }
.bnav-item:hover { color: var(--text-2); }

/* ── LOADING SKELETON ── */
.loading-state { padding-top: 20px; }
.skel-hero, .skel-card, .skel-sidebar {
  background: var(--bg-3);
  border-radius: var(--r-lg);
  animation: shimmer 1.5s ease infinite;
}
@keyframes shimmer {
  0%   { opacity: 1; }
  50%  { opacity: 0.5; }
  100% { opacity: 1; }
}
.skel-hero { height: 360px; margin-bottom: 14px; }
.skel-row  {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.skel-card { height: 220px; }

/* ── FOOTER ── */
.site-footer {
  background: var(--surface);
  border-top: 0.5px solid var(--border);
  margin-top: 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
  gap: 28px;
  padding: 36px 16px 28px;
}
.footer-logo { font-size: 26px; color: var(--c-red); margin-bottom: 10px; }
.footer-brand p { font-size: 12.5px; color: var(--text-2); line-height: 1.6; max-width: 240px; margin-bottom: 14px; }
.footer-socials a {
  display: inline-flex;
  width: 32px; height: 32px;
  border: 0.5px solid var(--border-md);
  border-radius: 6px;
  align-items: center; justify-content: center;
  font-size: 15px;
  color: var(--text-2);
  margin-right: 6px;
  transition: var(--t);
}
.footer-socials a:hover { color: var(--c-red); border-color: var(--c-red); }
.footer-links h4 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
  margin-bottom: 10px;
}
.footer-links a {
  display: block;
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 6px;
  transition: color var(--t);
}
.footer-links a:hover { color: var(--c-red); }
.footer-app h4 {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--text-3); margin-bottom: 10px;
}
.footer-app p { font-size: 12px; color: var(--text-2); margin-bottom: 10px; line-height: 1.5; }
.pwa-btn {
  background: var(--c-red);
  color: #fff;
  border: none;
  border-radius: var(--r-sm);
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px;
  transition: background var(--t);
}
.pwa-btn:hover { background: var(--c-red-dark); }
.pwa-hint { font-size: 11px; color: var(--text-3); }
.footer-bottom {
  border-top: 0.5px solid var(--border);
  padding: 12px 0;
  font-size: 11px;
  color: var(--text-3);
}
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom a { color: var(--c-red); }

/* ── HORIZONTAL FEATURED (mobile) ── */
.featured-scroll {
  display: none;
  overflow-x: auto;
  gap: 10px;
  padding-bottom: 4px;
  margin-bottom: 14px;
  scrollbar-width: none;
}
.featured-scroll::-webkit-scrollbar { display: none; }
.featured-card {
  width: 200px;
  flex-shrink: 0;
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.featured-card-thumb {
  width: 200px; height: 110px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
}

/* ── ARTICLE PAGE STYLES ── */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 28px;
  padding-top: 24px;
}
.article-body { font-size: 16px; line-height: 1.75; color: var(--text); }
.article-body h1 {
  font-family: var(--ff-serif);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 14px;
  color: var(--text);
}
.article-body .article-meta {
  display: flex; flex-wrap: wrap; gap: 10px;
  align-items: center;
  font-size: 12px; color: var(--text-3);
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 0.5px solid var(--border);
}
.article-body img { width: 100%; border-radius: var(--r-md); margin: 20px 0; }
.article-body p { margin-bottom: 16px; }

/* ── SEARCH PAGE ── */
.search-page-form {
  display: flex;
  gap: 10px;
  margin: 20px 0;
}
.search-page-form input {
  flex: 1;
  padding: 10px 16px;
  border: 0.5px solid var(--border-md);
  border-radius: var(--r-md);
  font-size: 15px;
  font-family: inherit;
  background: var(--surface);
  color: var(--text);
  outline: none;
}
.search-page-form button {
  background: var(--c-red); color: #fff;
  border: none; border-radius: var(--r-md);
  padding: 10px 20px; font-size: 14px; font-weight: 600;
}
.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

/* ── UTILITY ── */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.text-red  { color: var(--c-red); }
.text-gold { color: var(--c-gold); }
[hidden] { display: none !important; }

/* ── RESPONSIVE ── */

/* Tablet */
@media (max-width: 1024px) {
  .main-layout { grid-template-columns: 1fr 210px; gap: 14px; }
  .footer-grid  { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1/-1; }
}

/* Phablet */
@media (max-width: 768px) {
  .main-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    padding-top: 12px;
  }
  .sidebar-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  #trending-widget { grid-column: 1/-1; }

  .hero-title  { font-size: 20px; }
  .news-grid-3 { grid-template-columns: 1fr 1fr; }
  .hamburger  { display: flex; }
  .subscribe-btn, .nepse-chip { display: none; }
  .search-form { max-width: 100%; }
  .stories-bar { display: flex; }
  .bottom-nav  { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 20px; padding: 24px 16px 20px; }
  #main-content { padding-bottom: 64px; }
  .skel-row { grid-template-columns: 1fr 1fr; }
}

/* Phone */
@media (max-width: 480px) {
  .topbar-socials { display: none; }
  .mid-grid, .news-grid-2, .news-grid-3 { grid-template-columns: 1fr; }
  .hero-title   { font-size: 18px; }
  .hero-desc    { display: none; }
  .sidebar-col  { grid-template-columns: 1fr; }
  .footer-grid  { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .header-right .icon-btn:not(#theme-btn) { display: none; }
  .featured-scroll { display: flex; }
  .skel-row { grid-template-columns: 1fr; }
  .skel-card:nth-child(3) { display: none; }
}

/* Better emoji thumbnails */
.card-thumb { background: var(--bg-2); }
.card-thumb.bg-red  { background: var(--c-red-pale); }
.card-thumb.bg-gold { background: var(--c-gold-pale); }
.card-thumb.bg-navy { background: var(--c-navy-pale); }
.card-thumb.bg-gray { background: var(--bg-3); }
.hero-thumb.bg-red  { background: var(--c-red-pale); }
.hero-thumb.bg-gold { background: var(--c-gold-pale); }
.hero-thumb.bg-navy { background: var(--c-navy-pale); }
.hero-thumb { min-height: 260px; font-size: 6rem !important;
  display: flex; align-items: center; justify-content: center; }
