:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-alt: #f1f5f9;
  --text: #0f172a;
  --text-muted: #475569;
  --text-light: #64748b;
  --border: #e2e8f0;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-soft: rgba(37, 99, 235, 0.1);
  --accent: #7c3aed;
  --success: #059669;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 8px 24px -4px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 40px -12px rgba(15, 23, 42, 0.12);
  --radius: 14px;
  --radius-sm: 8px;
  --font-sans: 'Noto Sans Tamil', 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

[data-theme="dark"] {
  --bg: #0b1120;
  --surface: #111827;
  --surface-alt: #1e293b;
  --text: #f1f5f9;
  --text-muted: #cbd5e1;
  --text-light: #94a3b8;
  --border: #1e293b;
  --primary: #3b82f6;
  --primary-hover: #60a5fa;
  --primary-soft: rgba(59, 130, 246, 0.15);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px -4px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 40px -12px rgba(0, 0, 0, 0.55);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  transition: background 0.2s ease, color 0.2s ease;
}

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

.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Reading Progress Bar */
#reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  z-index: 9999;
  transition: width 0.08s linear;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.brand-badge {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1rem;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.brand-sub {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-light);
  line-height: 1.1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  padding: 7px 13px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: background 0.15s, color 0.15s;
}

.nav-links a:hover, .nav-links a.active {
  background: var(--primary-soft);
  color: var(--primary);
}

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

.search-box {
  position: relative;
}

.search-input {
  width: 220px;
  padding: 8px 14px 8px 36px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-alt);
  color: var(--text);
  font-family: inherit;
  font-size: 0.88rem;
  outline: none;
  transition: width 0.2s, border-color 0.2s, background 0.2s;
}

.search-input:focus {
  width: 280px;
  border-color: var(--primary);
  background: var(--surface);
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  pointer-events: none;
}

.search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 340px;
  max-height: 400px;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: none;
  z-index: 200;
}

.search-dropdown.open { display: block; }

.search-item {
  display: flex;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  align-items: center;
}

.search-item:hover { background: var(--surface-alt); }
.search-item img { width: 46px; height: 46px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.search-item-title { font-size: 0.88rem; font-weight: 600; line-height: 1.35; }
.search-item-meta { font-size: 0.75rem; color: var(--text-light); }

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.15s;
}

.icon-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-soft);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  font-size: 0.88rem;
  border: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}

.btn-primary:hover { background: var(--primary-hover); transform: translateY(-1px); }

/* Category Strip */
.cat-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 14px 0 6px;
  scrollbar-width: none;
}

.cat-strip::-webkit-scrollbar { display: none; }

.cat-pill {
  white-space: nowrap;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 600;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: all 0.15s;
}

.cat-pill:hover, .cat-pill.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* Hero Section */
.hero-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 20px;
  margin: 20px 0 32px;
}

.hero-main {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  min-height: 390px;
  background: #0f172a;
  display: flex;
  align-items: flex-end;
  box-shadow: var(--shadow-md);
}

.hero-main img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

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

.hero-overlay {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 28px;
  background: linear-gradient(to top, rgba(2, 6, 23, 0.94) 15%, rgba(2, 6, 23, 0.55) 65%, transparent);
  color: #fff;
}

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  background: var(--primary);
  color: #fff;
  margin-bottom: 10px;
}

.hero-title {
  margin: 0 0 8px;
  font-size: 1.6rem;
  line-height: 1.35;
  font-weight: 800;
}

.hero-meta {
  font-size: 0.82rem;
  color: #cbd5e1;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.side-card {
  display: flex;
  gap: 14px;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.18s, box-shadow 0.18s;
  align-items: center;
}

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

.side-card-thumb {
  width: 105px;
  height: 82px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--surface-alt);
}

.side-card-title {
  margin: 4px 0 6px;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Main Content + Sidebar Layout */
.content-layout {
  display: grid;
  grid-template-columns: 1fr 330px;
  gap: 28px;
  margin-bottom: 48px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.section-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title::before {
  content: '';
  width: 4px;
  height: 20px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--primary), var(--accent));
}

/* Post Cards Grid */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.post-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: color-mix(in srgb, var(--primary) 40%, var(--border));
}

.post-card-img-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--surface-alt);
  overflow: hidden;
}

.post-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.post-card:hover .post-card-img-wrap img { transform: scale(1.04); }

.post-card-cat {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(6px);
  color: #fff;
}

.post-card-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-card-title {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.45;
}

.post-card-title a:hover { color: var(--primary); }

.post-card-excerpt {
  margin: 0 0 14px;
  font-size: 0.87rem;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.post-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-light);
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

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

.widget {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.widget-title {
  margin: 0 0 14px;
  font-size: 1rem;
  font-weight: 800;
}

.popular-item {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}

.popular-item:last-child { border-bottom: none; padding-bottom: 0; }

.popular-num {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
  opacity: 0.75;
  line-height: 1.2;
  min-width: 24px;
}

.popular-title {
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.4;
}

.popular-title:hover { color: var(--primary); }

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag-chip {
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--surface-alt);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all 0.15s;
}

.tag-chip:hover { background: var(--primary-soft); color: var(--primary); }

/* Newsletter */
.newsletter-widget {
  background: linear-gradient(135deg, #1e3a8a, #4c1d95);
  color: #fff;
  border: none;
}

.newsletter-widget p { font-size: 0.86rem; color: #dbeafe; margin: 0 0 12px; }

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.newsletter-form input {
  padding: 10px 12px;
  border-radius: 8px;
  border: none;
  font-family: inherit;
  font-size: 0.88rem;
}

.newsletter-form button {
  padding: 10px;
  border-radius: 8px;
  border: none;
  background: #38bdf8;
  color: #0f172a;
  font-weight: 700;
  cursor: pointer;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.page-btn {
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-weight: 600;
  font-size: 0.88rem;
}

.page-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* Single Post Page */
.article-wrap {
  max-width: 840px;
  margin: 28px auto 56px;
}

.breadcrumbs {
  display: flex;
  gap: 8px;
  font-size: 0.83rem;
  color: var(--text-light);
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.article-header h1 {
  margin: 0 0 14px;
  font-size: 2rem;
  line-height: 1.35;
  font-weight: 800;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.86rem;
  color: var(--text-light);
  margin-bottom: 22px;
}

.article-hero-img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 26px;
  box-shadow: var(--shadow-md);
}

.toc-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 24px;
}

.toc-box h4 { margin: 0 0 8px; font-size: 0.95rem; }
.toc-box ul { margin: 0; padding-left: 18px; font-size: 0.88rem; }
.toc-box li { margin: 4px 0; }
.toc-box a:hover { color: var(--primary); text-decoration: underline; }

.prose {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  font-size: 1.04rem;
  line-height: 1.85;
}

.prose h2, .prose h3, .prose h4 {
  margin-top: 1.7em;
  margin-bottom: 0.6em;
  line-height: 1.35;
  font-weight: 800;
}

.prose p { margin: 0 0 1.2em; }
.prose a { color: var(--primary); text-decoration: underline; }
.prose img { border-radius: 12px; margin: 18px auto; box-shadow: var(--shadow-sm); }
.prose blockquote {
  margin: 18px 0;
  padding: 14px 18px;
  background: var(--surface-alt);
  border-left: 4px solid var(--primary);
  border-radius: 0 10px 10px 0;
}

.prose pre {
  position: relative;
  background: #0f172a;
  color: #e2e8f0;
  padding: 16px;
  border-radius: 10px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.88rem;
}

.copy-code-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 4px 9px;
  font-size: 0.72rem;
  border-radius: 6px;
  border: 1px solid #334155;
  background: #1e293b;
  color: #e2e8f0;
  cursor: pointer;
}

.share-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 22px 0;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.share-btn {
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  background: var(--surface-alt);
  color: var(--text);
  border: 1px solid var(--border);
  cursor: pointer;
}

.share-btn:hover { border-color: var(--primary); color: var(--primary); }

/* Comments */
.comments-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  margin-top: 28px;
}

.comment-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

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

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

.form-control {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 0.92rem;
}

/* Footer */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 36px 0;
  margin-top: 40px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

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

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .content-layout { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .mobile-only-btn { display: grid !important; }
  .trending-grid { grid-template-columns: repeat(2, 1fr); }
  .spotlight-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .posts-grid { grid-template-columns: 1fr; }
  .trending-grid { grid-template-columns: 1fr; }
  .search-box { display: none; }
  .prose { padding: 20px; }
  .article-header h1 { font-size: 1.5rem; }
  .form-grid { grid-template-columns: 1fr; }
  .utility-right { display: none; }
  .breaking-bar { flex-wrap: wrap; gap: 8px; }
}

/* ==========================================
   MODERN NEWS PORTAL & SMART MENU ADDITIONS
   ========================================== */

/* Top Utility Bar */
.top-utility-bar {
  background: #0f172a;
  color: #cbd5e1;
  font-size: 0.77rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.utility-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 34px;
  gap: 12px;
}

.utility-left {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.25);
  flex-shrink: 0;
}

.utility-sep { opacity: 0.4; }
.utility-tag { color: #94a3b8; }

.utility-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.utility-right a { color: #94a3b8; transition: color 0.15s; font-weight: 600; }
.utility-right a:hover { color: #fff; }
.utility-admin-link { color: #60a5fa !important; }

/* Smart Sticky Header Enhancements */
.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.brand-logo-img {
  max-height: 40px;
  max-width: 180px;
  width: auto;
  object-fit: contain;
  display: block;
}

.brand-text { display: flex; flex-direction: column; }
.brand-name { line-height: 1.15; }

.nav-links {
  gap: 4px;
}

.nav-link {
  padding: 7px 12px;
  border-radius: 9px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: none;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}

.nav-link:hover, .nav-link.active {
  background: var(--primary-soft);
  color: var(--primary);
}

/* Mega Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown .chevron { font-size: 0.72rem; transition: transform 0.2s; }
.nav-dropdown.open .chevron { transform: rotate(180deg); }

.nav-mega-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 440px;
  max-width: 560px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  padding: 18px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 300;
}

.nav-dropdown:hover .nav-mega-menu,
.nav-dropdown.open .nav-mega-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-mega-single {
  min-width: 240px;
  max-width: 300px;
  grid-template-columns: 1fr;
  padding: 10px;
  left: 0;
  transform: translateY(6px);
}

.nav-dropdown:hover .nav-mega-single,
.nav-dropdown.open .nav-mega-single {
  transform: translateY(0);
}

.mega-heading {
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-light);
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

.mega-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
}

.mega-list { display: flex; flex-direction: column; gap: 4px; }

.mega-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: background 0.15s, color 0.15s;
}

.mega-item:hover, .mega-item.active {
  background: var(--primary-soft);
  color: var(--primary);
}

.mega-count {
  font-size: 0.72rem;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--surface-alt);
  color: var(--text-light);
}

/* Mobile Menu Button & Drawer */
.mobile-only-btn { display: none; font-size: 1.1rem; }

.mobile-drawer {
  display: none;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

.mobile-drawer.open { display: block; }

.mobile-drawer-inner {
  padding: 16px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

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

.mobile-search-form input {
  flex: 1;
  padding: 9px 12px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--surface-alt);
  color: var(--text);
  font-family: inherit;
}

.mobile-search-form button {
  padding: 9px 16px;
  border-radius: 9px;
  border: none;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.mobile-nav-section {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 8px;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: 9px;
  background: var(--surface-alt);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text);
}

.mobile-nav-link.active {
  background: var(--primary);
  color: #fff;
}

.cat-strip-wrap {
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 60%, var(--bg));
}

.cat-strip { padding: 10px 0; }
.cat-pill-count { opacity: 0.65; font-size: 0.76rem; }

/* Breaking News Ticker */
.breaking-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px 12px;
  margin-top: 18px;
  box-shadow: var(--shadow-sm);
}

.breaking-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #dc2626;
  color: #fff;
  font-size: 0.76rem;
  font-weight: 800;
  padding: 5px 11px;
  border-radius: 8px;
  white-space: nowrap;
  flex-shrink: 0;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  animation: pulseDot 1.6s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.75); }
}

.ticker-track {
  flex: 1;
  min-width: 0;
  position: relative;
  min-height: 24px;
  display: flex;
  align-items: center;
}

.ticker-item {
  display: none;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.ticker-item.active { display: flex; }
.ticker-item:hover .ticker-title { color: var(--primary); }

.ticker-cat {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--primary-soft);
  color: var(--primary);
  flex-shrink: 0;
}

.ticker-title {
  overflow: hidden;
  text-overflow: ellipsis;
}

.ticker-controls {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

.ticker-controls button {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: var(--surface-alt);
  color: var(--text-muted);
  cursor: pointer;
  font-weight: 700;
  line-height: 1;
}

.ticker-controls button:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* Hero Enhancements */
.hero-excerpt {
  margin: 0 0 12px;
  font-size: 0.92rem;
  color: #e2e8f0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 68ch;
}

.hero-side-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.86rem;
  font-weight: 800;
  padding-bottom: 4px;
  border-bottom: 2px solid var(--primary);
}

.hero-side-sub {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
}

.side-card-placeholder {
  display: grid;
  place-items: center;
  font-weight: 800;
  color: var(--primary);
}

.side-card-cat {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary);
}

.side-card-date {
  font-size: 0.74rem;
  color: var(--text-light);
}

/* Trending Strip */
.trending-section {
  margin-bottom: 32px;
}

.section-kicker {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-light);
}

.section-more {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--primary);
}

.section-more:hover { text-decoration: underline; }

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

.trending-card {
  display: flex;
  gap: 12px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}

.trending-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: color-mix(in srgb, var(--primary) 40%, var(--border));
}

.trending-rank {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
  color: var(--primary);
  opacity: 0.35;
  flex-shrink: 0;
}

.trending-cat {
  display: block;
  font-size: 0.71rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 3px;
}

.trending-title {
  margin: 0 0 6px;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.38;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.trending-meta {
  font-size: 0.74rem;
  color: var(--text-light);
}

/* Category Spotlight Blocks */
.main-news-col {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.spotlight-block {
  padding-bottom: 8px;
}

.spotlight-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 16px;
  align-items: stretch;
}

.spotlight-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: space-between;
}

.spotlight-mini {
  display: flex;
  gap: 12px;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  align-items: center;
  flex: 1;
  transition: transform 0.18s, box-shadow 0.18s;
}

.spotlight-mini:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.spotlight-mini img,
.spotlight-mini-fallback {
  width: 96px;
  height: 76px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--surface-alt);
}

.spotlight-mini-fallback {
  display: grid;
  place-items: center;
  font-weight: 800;
  color: var(--primary);
}

.spotlight-mini h4 {
  margin: 0 0 6px;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.spotlight-mini-meta {
  font-size: 0.74rem;
  color: var(--text-light);
}

.post-card-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary-soft), var(--surface-alt));
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--primary);
}

/* Sticky Sidebar & Categories Widget */
.sticky-sidebar {
  position: sticky;
  top: 86px;
  align-self: start;
}

.sidebar-cat-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sidebar-cat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: 9px;
  background: var(--surface-alt);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: background 0.15s, color 0.15s;
}

.sidebar-cat-item:hover {
  background: var(--primary-soft);
  color: var(--primary);
}

.sidebar-cat-count {
  font-size: 0.74rem;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-light);
}

/* Google AdSense Slot Containers */
.ad-slot-box {
  margin: 18px 0;
  padding: 10px 12px 12px;
  border-radius: 12px;
  border: 1px dashed var(--border);
  background: var(--surface-alt);
  text-align: center;
  overflow: hidden;
}
.ad-slot-label {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 6px;
}
.ad-sidebar { margin-top: 0; }
