/* ============================================================
   MG Theme v2.0 — Complete Production CSS yyyyyyyyyyyyyyy
   Professional Hindi News Theme — Jannah/TieLabs Inspired
   Covers all 40 phases: Foundation, Header, Nav, Hero, Categories,
   Sidebar, Article, Footer, Mobile, Performance, Special Pages
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Noto+Sans+Devanagari:wght@400;500;600;700&display=swap');

/* ============================================================
   PHASE 1: CSS VARIABLES & FOUNDATION
   ============================================================ */
:root {
  /* Colors */
  --c-primary: #D32F2F;
  --c-primary-dark: #B71C1C;
  --c-primary-light: #fde8e8;
  --c-secondary: #e67e22;
  --c-accent: #2ecc71;
  --c-text: #111111;
  --c-text-secondary: #555555;
  --c-text-muted: #999999;
  --c-bg: #f0f0f0;
  --c-surface: #ffffff;
  --c-border: #e8e8e8;
  --c-success: #2ecc71;
  --c-warning: #f39c12;
  --c-error: #e74c3c;
  --c-overlay: rgba(0,0,0,.6);
  --c-link: #0088ff;
  --c-link-hover: #0066cc;
  --c-nav-dark: #1a1a2e;
  --c-nav-bg: #222222;

  /* 8 Category Colors */
  --c-cat-1: #e67e22;
  --c-cat-2: #2ecc71;
  --c-cat-3: #9b59b6;
  --c-cat-4: #34495e;
  --c-cat-5: #e74c3c;
  --c-cat-6: #00afd8;
  --c-cat-7: #e255f8;
  --c-cat-8: #8a8acb;

  /* Typography */
  --f-primary: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --f-hindi: 'Noto Sans Devanagari', sans-serif;
  --f-mono: 'Fira Code', Consolas, monospace;

  /* Font Sizes (base 15px) */
  --fs-xs: 0.733rem;
  --fs-sm: 0.8rem;
  --fs-base: 1rem;
  --fs-md: 1.133rem;
  --fs-lg: 1.267rem;
  --fs-xl: 1.533rem;
  --fs-2xl: 1.867rem;
  --fs-3xl: 2.267rem;

  /* Spacing — Compact/Tight */
  --sp-1: 0.2rem;
  --sp-2: 0.35rem;
  --sp-3: 0.5rem;
  --sp-4: 0.75rem;
  --sp-5: 1rem;
  --sp-6: 1.15rem;
  --sp-8: 1.5rem;
  --sp-10: 2rem;
  --sp-12: 2.5rem;
  --sp-16: 3rem;

  /* Layout */
  --max-w: 1200px;
  --sidebar-w: 32%;
  --content-w: 68%;
  --header-h: 60px;
  --nav-h: 60px;
  --top-bar-h: 32px;
  --radius: 6px;
  --radius-lg: 10px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow: 0 2px 8px rgba(0,0,0,.1);
  --shadow-lg: 0 8px 24px rgba(0,0,0,.12);
  --shadow-lift: 0 12px 32px rgba(0,0,0,.15);

  /* Transitions */
  --ease: cubic-bezier(.4,0,.2,1);
  --dur: 0.25s;
}

/* ============================================================
   PHASE 2: DARK MODE VARIABLES
   ============================================================ */
body.dark-mode {
  --c-primary: #EF5350;
  --c-primary-dark: #E53935;
  --c-primary-light: #2a1a1a;
  --c-secondary: #f0a04b;
  --c-accent: #3ddc84;
  --c-text: #e0e0e0;
  --c-text-secondary: #b0b0b0;
  --c-text-muted: #707070;
  --c-bg: #181a1e;
  --c-surface: #22252a;
  --c-border: #2e3035;
  --c-overlay: rgba(0,0,0,.8);
  --c-link: #5eaaff;
  --c-link-hover: #88ccff;
  --c-nav-dark: #0d0d1a;
  --c-nav-bg: #1a1a1a;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.4);
  --shadow: 0 2px 8px rgba(0,0,0,.5);
  --shadow-lg: 0 8px 24px rgba(0,0,0,.6);
  --shadow-lift: 0 12px 32px rgba(0,0,0,.7);
}

body.dark-mode img {
  filter: brightness(0.9);
}

body.dark-mode .card--overlay img,
body.dark-mode .hero-slider img {
  filter: brightness(0.85);
}

/* Exclude logo/brand/ad images from dark mode dimming */
body.dark-mode .site-logo img,
body.dark-mode .sticky-nav__logo img,
body.dark-mode .lightbox img,
body.dark-mode .ad-slot img,
body.dark-mode .login-logo img {
  filter: none;
}

/* ============================================================
   PHASE 3: CSS RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 15px;
  overflow-x: hidden;
}

body {
  font-family: var(--f-primary);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body[lang="hi"],
.hindi {
  font-family: var(--f-hindi);
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Global rule: all image containers use 16:9 aspect ratio */
.card__img,
.card--cat-large__img {
  aspect-ratio: 16/9;
  background: var(--c-bg);
}

.card--overlay__link {
  background: var(--c-bg);
}

a {
  color: var(--c-link);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}

a:hover {
  color: var(--c-link-hover);
}

ul, ol {
  list-style: none;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
  border: none;
  outline: none;
  background: none;
}

button {
  cursor: pointer;
}

table {
  border-collapse: collapse;
  width: 100%;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--c-text);
}

h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); }
h5 { font-size: var(--fs-md); }
h6 { font-size: var(--fs-base); }
p { margin-bottom: var(--sp-4); }

/* ============================================================
   PHASE 3: CONTAINER & GRID SYSTEM
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--sp-4);
  box-sizing: border-box;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 calc(var(--sp-3) * -1);
}

.col { padding: 0 var(--sp-3); width: 100%; }
.col-3 { width: 25%; }
.col-4 { width: 33.333%; }
.col-6 { width: 50%; }
.col-8 { width: 66.666%; }
.col-9 { width: 75%; }
.col-12 { width: 100%; }

/* Main Layout: 68% content + 32% sidebar */
.layout-main {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-6);
  padding: var(--sp-5) 0;
}

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

.sidebar-area {
  width: var(--sidebar-w);
  flex-shrink: 0;
  max-width: 380px;
}

.section-title {
  font-size: var(--fs-xl);
  font-weight: 700;
  padding-bottom: var(--sp-3);
  margin-bottom: var(--sp-6);
  border-bottom: 3px solid var(--c-primary);
  display: inline-block;
}

/* ============================================================
   PHASE 4: READING PROGRESS BAR
   ============================================================ */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--c-primary), var(--c-accent));
  z-index: 9999;
  transition: width 0.1s linear;
  pointer-events: none;
}

/* ============================================================
   PHASE 5: TOP BAR
   ============================================================ */
.top-bar {
  background: var(--c-nav-dark);
  color: #fff;
  font-size: var(--fs-xs);
  height: var(--top-bar-h);
  line-height: var(--top-bar-h);
  overflow: hidden;
}

body.dark-mode .top-bar {
  background: #000;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-4);
  height: 100%;
}

.top-bar__date {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  opacity: 0.85;
  white-space: nowrap;
  flex-shrink: 0;
  font-size: var(--fs-xs);
}

.top-bar__date i {
  font-size: 0.85em;
}

.top-bar__social {
  display: flex;
  gap: var(--sp-3);
  flex-shrink: 0;
}

.top-bar__social a {
  color: #fff;
  opacity: 0.85;
  font-size: var(--fs-sm);
  transition: opacity var(--dur) var(--ease);
}

.top-bar__social a:hover {
  opacity: 1;
  color: #fff;
}

/* Breaking News Ticker */
.top-bar__ticker {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  height: 100%;
}

.ticker__label {
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 2px 10px;
  background: #D32F2F;
  border-radius: var(--radius);
  animation: pulse-label 2s infinite;
  flex-shrink: 0;
  letter-spacing: 0.5px;
}

@keyframes pulse-label {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.ticker__track {
  flex: 1;
  overflow: hidden;
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.ticker__items {
  white-space: nowrap;
  display: inline-block;
  transition: transform 0.5s var(--ease);
}

.ticker__item {
  color: #fff;
  font-size: var(--fs-sm);
  font-weight: 500;
  display: none;
}

.ticker__item a {
  color: #fff;
}

.ticker__item a:hover {
  color: var(--c-primary);
}

.ticker__item.active {
  display: inline;
}

.ticker__controls {
  display: flex;
  gap: var(--sp-1);
  flex-shrink: 0;
}

.ticker__controls button {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--dur) var(--ease);
  font-size: 10px;
}

.ticker__controls button:hover {
  background: rgba(255,255,255,.3);
}

/* ============================================================
   PHASE 6: SITE HEADER (Logo + Ad)
   ============================================================ */
.site-header {
  background: var(--c-surface);
  padding: var(--sp-4) 0;
  border-bottom: 1px solid var(--c-border);
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-logo {
  flex-shrink: 0;
  width: 33%;
}

.site-logo a {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
}

.site-logo img {
  height: 50px;
  max-height: 88px;
  width: auto;
}

.site-logo span {
  font-size: var(--fs-2xl);
  font-weight: 800;
  color: var(--c-primary);
  letter-spacing: -0.5px;
}

.header-ad {
  flex-shrink: 0;
  width: 67%;
  display: flex;
  justify-content: flex-end;
}

.header-ad .ad-slot {
  max-width: 728px;
  height: 90px;
}

/* ============================================================
   PHASE 7: STICKY NAVIGATION
   ============================================================ */
.sticky-nav {
  background: var(--c-nav-bg);
  position: relative;
  z-index: 1000;
  transition: box-shadow var(--dur) var(--ease);
}

.sticky-nav.stuck {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  box-shadow: 0 2px 12px rgba(0,0,0,.3);
}

.sticky-nav__inner {
  display: flex;
  align-items: center;
  height: var(--nav-h);
  gap: var(--sp-4);
}

.sticky-nav__logo {
  display: none;
  flex-shrink: 0;
}

.sticky-nav.stuck .sticky-nav__logo {
  display: flex;
  align-items: center;
}

.sticky-nav__logo img {
  height: 30px;
  width: auto;
}

.sticky-nav__logo span {
  font-size: var(--fs-md);
  font-weight: 800;
  color: var(--c-primary);
}

.sticky-nav__links {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
  height: 100%;
}

.sticky-nav__links::-webkit-scrollbar {
  display: none;
}

.sticky-nav__links a {
  color: #ffffff;
  font-size: var(--fs-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  position: relative;
  padding: 0 var(--sp-4);
  height: 100%;
  display: flex;
  align-items: center;
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.sticky-nav__links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--c-primary);
  transition: width var(--dur) var(--ease);
}

.sticky-nav__links a:hover::after,
.sticky-nav__links a.active::after {
  width: 100%;
}

.sticky-nav__links a:hover {
  color: var(--c-primary);
  background: rgba(255,255,255,.05);
}

.sticky-nav__links a.active {
  color: var(--c-primary);
}

/* Nav Dropdown Submenu */
.sticky-nav__links > li,
.sticky-nav__links > .nav-item {
  position: relative;
  height: 100%;
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--c-surface);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--dur) var(--ease);
  z-index: 1100;
  padding: var(--sp-2) 0;
}

.nav-item:hover .nav-dropdown,
.sticky-nav__links a:hover + .nav-dropdown,
.nav-dropdown:hover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown a {
  display: block;
  padding: var(--sp-2) var(--sp-4);
  color: var(--c-text);
  font-size: var(--fs-sm);
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  height: auto;
  border-bottom: 1px solid var(--c-border);
}

.nav-dropdown a:last-child {
  border-bottom: none;
}

.nav-dropdown a:hover {
  background: var(--c-bg);
  color: var(--c-primary);
}

.nav-dropdown a::after {
  display: none;
}

/* Nav Actions (search, dark mode, follow) */
.sticky-nav__actions {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-shrink: 0;
}

.sticky-nav__actions > button,
.sticky-nav__actions > a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: background var(--dur) var(--ease);
  font-size: var(--fs-base);
}

.sticky-nav__actions > button:hover,
.sticky-nav__actions > a:hover {
  background: rgba(255,255,255,.15);
}

/* Follow Dropdown in Nav */
.sticky-nav__actions .follow-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 200px;
  background: var(--c-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--dur) var(--ease);
  z-index: 1100;
  padding: var(--sp-3);
}

.sticky-nav__actions .follow-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Search Overlay (in nav) */
.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,.85);
  z-index: 2500;
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.search-overlay.active {
  display: flex;
}

.search-overlay .container {
  position: relative;
  max-width: 600px;
}

.search-overlay__form {
  display: flex;
  gap: var(--sp-2);
}

.search-overlay__form input {
  flex: 1;
  padding: var(--sp-4) var(--sp-6);
  font-size: var(--fs-lg);
  border: 2px solid rgba(255,255,255,.3);
  border-radius: 50px;
  background: rgba(255,255,255,.1);
  color: #fff;
  transition: border-color var(--dur) var(--ease);
}

.search-overlay__form input::placeholder {
  color: rgba(255,255,255,.5);
}

.search-overlay__form input:focus {
  border-color: var(--c-primary);
  background: rgba(255,255,255,.15);
}

.search-overlay__form button {
  width: 50px;
  height: 50px;
  background: var(--c-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.search-overlay__close {
  position: absolute;
  top: -60px;
  right: 0;
  width: 40px;
  height: 40px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background var(--dur) var(--ease);
}

.search-overlay__close:hover {
  background: rgba(255,255,255,.15);
}

/* ============================================================
   PHASE 8: HAMBURGER & MOBILE MENU
   ============================================================ */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px 0;
  background: none;
  z-index: 10;
}

.hamburger span {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu - Full height slide from left */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 300px;
  height: 100vh;
  height: 100dvh;
  background: var(--c-surface);
  box-shadow: var(--shadow-lg);
  z-index: 2000;
  transform: translateX(-100%);
  transition: transform 0.3s var(--ease);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0;
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-menu__overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s;
}

.mobile-menu__overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu__close {
  position: absolute;
  top: var(--sp-3);
  right: var(--sp-3);
  font-size: var(--fs-xl);
  color: var(--c-text-secondary);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background var(--dur) var(--ease);
  z-index: 10;
}

.mobile-menu__close:hover {
  background: var(--c-bg);
}

.mobile-menu__brand {
  display: block;
  font-size: var(--fs-lg);
  font-weight: 800;
  color: var(--c-primary) !important;
  padding: var(--sp-5) var(--sp-5) var(--sp-4);
  border-bottom: 2px solid var(--c-primary);
  margin-bottom: 0;
}

.mobile-menu__nav {
  padding: 0;
}

.mobile-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-3) var(--sp-5);
  color: var(--c-text);
  font-size: var(--fs-md);
  font-weight: 500;
  border-bottom: 1px solid var(--c-border);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}

.mobile-menu a:hover {
  color: var(--c-primary);
  background: var(--c-bg);
}

.mobile-menu a i {
  font-size: var(--fs-sm);
  transition: transform var(--dur) var(--ease);
}

/* Mobile Menu Item with toggle */
.mobile-menu__item {
  position: relative;
}

.mobile-menu__item a {
  flex: 1;
}

.mobile-menu__toggle {
  position: absolute;
  right: var(--sp-3);
  top: var(--sp-2);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-text-muted);
  transition: transform var(--dur) var(--ease);
  z-index: 1;
}

.mobile-menu__toggle.rotated {
  transform: rotate(180deg);
}

/* Expandable Children Categories */
.mobile-menu__children {
  display: none;
  background: var(--c-bg);
  padding-left: var(--sp-4);
}

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

.mobile-menu__children a {
  font-size: var(--fs-sm);
  font-weight: 400;
  padding: var(--sp-2) var(--sp-5);
  color: var(--c-text-secondary);
}

.mobile-menu__children a::before {
  content: '—';
  margin-right: var(--sp-2);
  color: var(--c-text-muted);
}

.mobile-menu__social {
  padding: var(--sp-4) var(--sp-5);
  border-top: 2px solid var(--c-border);
  margin-top: var(--sp-4);
  display: flex;
  gap: var(--sp-3);
  flex-wrap: wrap;
}

.mobile-menu__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--c-bg);
  color: var(--c-text);
  font-size: var(--fs-md);
  padding: 0;
  border: none;
}

.mobile-menu__social a:hover {
  background: var(--c-primary);
  color: #fff;
}

/* ============================================================
   PHASE 9-11: HERO SLIDER
   ============================================================ */
.hero-slider {
  padding: var(--sp-4) 0;
  position: relative;
}

.hero-slider__grid {
  display: grid;
  grid-template-columns: 60% 40%;
  gap: 4px;
  min-height: 450px;
}

.hero-slider__main {
  display: flex;
}

.hero-slider__main .card--overlay {
  flex: 1;
}

.hero-slider__side {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 4px;
}

.hero-slider__side-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}

.hero-slider__side-top .card--overlay {
  min-height: 0;
}

.hero-slider__side-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}

.hero-slider__side-bottom .card--overlay {
  min-height: 0;
}

/* Hero Slider Arrows - Only visible on hover */
.hero-slider__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  background: rgba(255,255,255,.92);
  color: var(--c-text);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  z-index: 10;
  transition: all var(--dur) var(--ease);
  opacity: 0;
  visibility: hidden;
}

.hero-slider:hover .hero-slider__arrow {
  opacity: 1;
  visibility: visible;
}

.hero-slider__arrow:hover {
  background: var(--c-primary);
  color: #fff;
  transform: translateY(-50%) scale(1.1);
}

.hero-slider__arrow--left {
  left: var(--sp-4);
}

.hero-slider__arrow--right {
  right: var(--sp-4);
}

/* Auto-slide CSS transition classes */
.hero-slider__main .slide-enter {
  opacity: 0;
  transform: translateX(20px);
}

.hero-slider__main .slide-active {
  opacity: 1;
  transform: translateX(0);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.hero-slider__main .slide-exit {
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

/* ============================================================
   PHASE 10: OVERLAY CARDS
   ============================================================ */
.card--overlay {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
}

.card--overlay__link {
  display: block;
  position: relative;
  height: 100%;
  min-height: 180px;
  aspect-ratio: 16/9;
}

.card--overlay__link img {
  width: 100%;
  min-height: 100%;
  object-fit: contain;
  transition: transform 0.5s var(--ease);
}

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

.card--overlay__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--sp-5) var(--sp-4) var(--sp-4);
  background: linear-gradient(transparent, rgba(0,0,0,.75));
  color: #fff;
}

.card--overlay__badge {
  display: inline-block;
  background: var(--c-primary);
  color: #fff;
  font-size: var(--fs-xs);
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius);
  text-transform: uppercase;
  margin-bottom: var(--sp-2);
  letter-spacing: 0.3px;
}

.card--overlay__date {
  font-size: var(--fs-xs);
  opacity: 0.8;
  margin-bottom: var(--sp-1);
}

.card--overlay__title {
  font-size: var(--fs-md);
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

/* Main hero card - larger title */
.hero-slider__main .card--overlay__content {
  padding: var(--sp-8) var(--sp-6) var(--sp-5);
}

.hero-slider__main .card--overlay__title {
  font-size: var(--fs-2xl);
  -webkit-line-clamp: 3;
}

/* Side cards smaller titles */
.hero-slider__side-bottom .card--overlay__title {
  font-size: var(--fs-sm);
  -webkit-line-clamp: 2;
}

.hero-slider__side-bottom .card--overlay__badge {
  font-size: 10px;
  padding: 2px 6px;
}

.hero-slider__side-bottom .card--overlay__content {
  padding: var(--sp-3) var(--sp-2) var(--sp-2);
}

/* Overlay Wide (Secondary Slider) */
.card--overlay-wide .card--overlay__link {
  min-height: 260px;
}

.card--overlay-wide .card--overlay__title {
  font-size: var(--fs-xl);
}

/* ============================================================
   PHASE 12-16: CATEGORY SECTIONS (Jannah/TieLabs style)
   ============================================================ */
.cat-section {
  background: var(--c-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 20px;
  margin-bottom: 20px;
}

.cat-section__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--sp-4);
  padding-bottom: var(--sp-3);
  border-bottom: 2px solid #e0e0e0;
  position: relative;
}

body.dark-mode .cat-section__header {
  border-bottom-color: var(--c-border);
}

.cat-section__title {
  font-size: var(--fs-md);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding-bottom: var(--sp-3);
  margin-bottom: -2px;
  border-bottom: 3px solid;
  position: relative;
  z-index: 1;
}

.cat-section__all {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--c-text-secondary);
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color var(--dur) var(--ease);
}

.cat-section__all:hover {
  color: var(--c-primary);
}

/* Content grid: 55% left big card + 45% right list */
.cat-section__content {
  display: grid;
  grid-template-columns: 55% 45%;
  gap: var(--sp-5);
}

.cat-section__main {
  min-width: 0;
}

.cat-section__list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Category Large Card */
.card--cat-large {
  background: none;
  box-shadow: none;
  border-radius: 0;
}

.card--cat-large:hover {
  box-shadow: none;
  transform: none;
}

.card--cat-large__img {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: var(--sp-3);
  aspect-ratio: 16/9;
  position: relative;
  background: var(--c-bg);
}

.card--cat-large__img img {
  width: 100%;
  min-height: 100%;
  object-fit: contain;
  transition: transform 0.4s var(--ease);
}

.card--cat-large:hover .card--cat-large__img img {
  transform: scale(1.04);
}

.card--cat-large__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  font-size: var(--fs-xs);
  color: var(--c-text-muted);
  margin-bottom: var(--sp-2);
  padding-bottom: var(--sp-2);
  border-bottom: 1px solid var(--c-border);
}

.card--cat-large__meta span {
  display: flex;
  align-items: center;
  gap: 3px;
}

.card--cat-large__meta i {
  font-size: 0.85em;
}

.card--cat-large__title {
  font-size: var(--fs-lg);
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: var(--sp-2);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.card--cat-large__title a {
  color: var(--c-text);
}

.card--cat-large__title a:hover {
  color: var(--c-primary);
}

.card--cat-large__excerpt {
  font-size: var(--fs-sm);
  color: var(--c-text-secondary);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin-bottom: var(--sp-3);
}

.card--cat-large__readmore {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--c-primary);
  border: 1px solid var(--c-primary);
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--radius);
  transition: all var(--dur) var(--ease);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.card--cat-large__readmore:hover {
  background: var(--c-primary);
  color: #fff;
}

/* Category List Items */
.card--cat-list {
  display: flex;
  gap: var(--sp-3);
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--c-border);
  background: none;
  box-shadow: none;
  border-radius: 0;
  transition: background var(--dur) var(--ease);
}

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

.card--cat-list:hover {
  transform: none;
  box-shadow: none;
  background: rgba(0,136,255,.03);
}

body.dark-mode .card--cat-list:hover {
  background: rgba(255,255,255,.03);
}

.card--cat-list__img {
  width: 120px;
  aspect-ratio: 16/9;
  flex-shrink: 0;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  background: var(--c-bg);
}

.card--cat-list__img img {
  width: 100%;
  min-height: 100%;
  object-fit: contain;
  transition: transform 0.3s var(--ease);
}

.card--cat-list:hover .card--cat-list__img img {
  transform: scale(1.05);
}

.card--cat-list__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card--cat-list__date {
  font-size: 11px;
  color: var(--c-text-muted);
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  gap: 3px;
}

.card--cat-list__title {
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.card--cat-list__title a {
  color: var(--c-text);
}

.card--cat-list__title a:hover {
  color: var(--c-primary);
}

/* ============================================================
   PHASE 13: PAIRED CATEGORIES (50/50 grid)
   ============================================================ */
.paired-categories {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-5);
  margin-bottom: var(--sp-5);
}

.paired-categories__col {
  background: var(--c-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 20px;
}

.paired-categories__col .cat-section__header {
  margin-bottom: var(--sp-3);
}

.paired-categories__col .card--overlay {
  margin-bottom: var(--sp-3);
  min-height: 200px;
  border-radius: var(--radius);
}

.paired-categories__list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ============================================================
   PHASE 14: SECONDARY SLIDER
   ============================================================ */
.secondary-slider {
  position: relative;
  padding: var(--sp-6) 0;
  overflow: hidden;
}

.secondary-slider__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
}

.secondary-slider__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,.92);
  color: var(--c-text);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  z-index: 10;
  transition: all var(--dur) var(--ease);
}

.secondary-slider__arrow:hover {
  background: var(--c-primary);
  color: #fff;
}

.secondary-slider__arrow--left {
  left: var(--sp-2);
}

.secondary-slider__arrow--right {
  right: var(--sp-2);
}

/* ============================================================
   PHASE 15: BASE ARTICLE CARDS (all variants)
   ============================================================ */
.card {
  background: var(--c-surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}

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

.card__img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--c-bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card__img img {
  width: 100%;
  min-height: 100%;
  object-fit: contain;
  transition: transform 0.4s var(--ease);
}

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

.card__category {
  position: absolute;
  top: var(--sp-3);
  left: var(--sp-3);
  background: var(--c-primary);
  color: #fff;
  font-size: var(--fs-xs);
  font-weight: 600;
  padding: var(--sp-1) var(--sp-2);
  border-radius: var(--radius);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 2;
}

.card__badge {
  position: absolute;
  top: var(--sp-3);
  right: var(--sp-3);
  font-size: var(--fs-xs);
  font-weight: 700;
  padding: var(--sp-1) var(--sp-2);
  border-radius: var(--radius);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 2;
}

.card__badge--trending {
  background: var(--c-accent);
  color: #fff;
  animation: pulse-label 2s infinite;
}

.card__body {
  padding: var(--sp-3) var(--sp-4);
}

.card__title {
  font-weight: 700;
  line-height: 1.3;
  color: var(--c-text);
  margin-bottom: var(--sp-2);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card__title a {
  color: inherit;
}

.card__title a:hover {
  color: var(--c-primary);
}

.card__excerpt {
  font-size: var(--fs-sm);
  color: var(--c-text-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  -webkit-line-clamp: 3;
}

.card__meta {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: var(--fs-xs);
  color: var(--c-text-muted);
  margin-top: var(--sp-3);
}

.card__meta span {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
}

/* Card Variants */
.card--hero .card__img { aspect-ratio: 16/9; }
.card--hero .card__title { font-size: var(--fs-2xl); -webkit-line-clamp: 3; }
.card--hero .card__excerpt { -webkit-line-clamp: 3; }

.card--grid .card__img { aspect-ratio: 16/9; }
.card--grid .card__title { font-size: var(--fs-base); -webkit-line-clamp: 2; }
.card--grid .card__excerpt { -webkit-line-clamp: 2; font-size: var(--fs-xs); }

.card--small {
  display: flex;
  gap: var(--sp-3);
  box-shadow: none;
  border-radius: 0;
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--c-border);
}

.card--small:hover {
  transform: none;
  box-shadow: none;
}

.card--small .card__img {
  width: 110px;
  aspect-ratio: 16/9;
  flex-shrink: 0;
  border-radius: var(--radius);
  background: var(--c-bg);
  overflow: hidden;
}

.card--small .card__body { padding: 0; }
.card--small .card__title { font-size: var(--fs-sm); -webkit-line-clamp: 2; }
.card--small .card__excerpt { display: none; }
.card--small .card__meta { margin-top: var(--sp-1); }

.card--list {
  display: flex;
  gap: var(--sp-4);
  border-radius: var(--radius);
}

.card--list .card__img {
  width: 240px;
  aspect-ratio: 16/9;
  flex-shrink: 0;
  background: var(--c-bg);
}

.card--list .card__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card--list .card__title {
  font-size: var(--fs-lg);
  -webkit-line-clamp: 2;
}

/* ============================================================
   PHASE 16: HOMEPAGE LAYOUT
   ============================================================ */
.section {
  padding: var(--sp-5) 0;
}

.section--alt {
  background: var(--c-surface);
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
}

.article-grid .card--grid {
  background: var(--c-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}

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

.category-section {
  padding: var(--sp-5) 0;
}

.category-section__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--sp-5);
}

.category-section__more {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--c-primary);
}

/* ============================================================
   PHASE 17-19: SIDEBAR
   ============================================================ */
.sidebar {
  position: sticky;
  top: calc(var(--nav-h) + var(--sp-4));
}

.widget {
  background: var(--c-surface);
  border-radius: var(--radius);
  padding: var(--sp-5);
  margin-bottom: var(--sp-4);
  box-shadow: var(--shadow-sm);
}

.widget__title {
  font-size: var(--fs-base);
  font-weight: 700;
  margin-bottom: var(--sp-3);
  padding-bottom: var(--sp-3);
  border-bottom: 2px solid var(--c-border);
  position: relative;
}

.widget__title::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--c-primary);
  border-radius: 2px;
}

/* Follow Us Widget - 2 column grid */
.follow-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-2);
}

.follow-btn {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3);
  border-radius: var(--radius);
  color: #fff;
  font-size: var(--fs-sm);
  font-weight: 600;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
  flex-direction: column;
  text-align: center;
}

.follow-btn:hover {
  opacity: 0.9;
  color: #fff;
  transform: translateY(-1px);
}

.follow-btn i {
  font-size: var(--fs-lg);
}

.follow-btn__info {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.follow-btn__count {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 700;
}

.follow-btn__label {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 400;
  opacity: 0.85;
}

.follow-btn--facebook { background: #1877F2; }
.follow-btn--instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.follow-btn--twitter { background: #1DA1F2; }
.follow-btn--youtube { background: #FF0000; }
.follow-btn--telegram { background: #0088cc; }
.follow-btn--whatsapp { background: #25D366; }

/* Sidebar Tabs */
.tabs__nav {
  display: flex;
  border-bottom: 2px solid var(--c-border);
  margin-bottom: var(--sp-4);
}

.tabs__btn {
  flex: 1;
  padding: var(--sp-3) var(--sp-2);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--c-text-secondary);
  text-align: center;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all var(--dur) var(--ease);
}

.tabs__btn:hover {
  color: var(--c-primary);
}

.tabs__btn.active {
  color: var(--c-primary);
  border-bottom-color: var(--c-primary);
}

.tabs__panel {
  display: none;
}

.tabs__panel.active {
  display: block;
}

/* Sidebar Item (for tabbed widget) */
.sidebar-item {
  display: flex;
  gap: var(--sp-3);
  padding: var(--sp-2) 0;
  border-bottom: 1px solid var(--c-border);
  color: var(--c-text);
  transition: color var(--dur) var(--ease);
}

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

.sidebar-item:hover {
  color: var(--c-primary);
}

.sidebar-item__img {
  width: 80px;
  aspect-ratio: 16/9;
  flex-shrink: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--c-bg);
}

.sidebar-item__img img {
  width: 100%;
  min-height: 100%;
  object-fit: contain;
}

.sidebar-item__placeholder {
  width: 100%;
  height: 100%;
  background: var(--c-bg);
}

.sidebar-item__body h4 {
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.sidebar-item__body span {
  font-size: var(--fs-xs);
  color: var(--c-text-muted);
  display: flex;
  align-items: center;
  gap: var(--sp-1);
}

/* Most Viewed Widget - Numbered with colored circles */
.most-viewed__item {
  display: flex;
  gap: var(--sp-3);
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--c-border);
  color: var(--c-text);
  transition: color var(--dur) var(--ease);
}

.most-viewed__item:last-child {
  border-bottom: none;
}

.most-viewed__item:hover {
  color: var(--c-primary);
}

.most-viewed__num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: #fff;
  font-size: var(--fs-sm);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Different color per position */
.most-viewed__item:nth-child(1) .most-viewed__num { background: #e74c3c; }
.most-viewed__item:nth-child(2) .most-viewed__num { background: #e67e22; }
.most-viewed__item:nth-child(3) .most-viewed__num { background: #2ecc71; }
.most-viewed__item:nth-child(4) .most-viewed__num { background: #0088ff; }
.most-viewed__item:nth-child(5) .most-viewed__num { background: #9b59b6; }

.most-viewed__body {
  flex: 1;
  min-width: 0;
}

.most-viewed__body h4 {
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.most-viewed__body span {
  font-size: var(--fs-xs);
  color: var(--c-text-muted);
}

/* ============================================================
   PHASE 20-24: ARTICLE PAGE
   ============================================================ */

/* Breadcrumb */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  color: var(--c-text-muted);
  padding: var(--sp-4) 0;
}

.breadcrumb a {
  color: var(--c-text-secondary);
}

.breadcrumb a:hover {
  color: var(--c-primary);
}

.breadcrumb__sep {
  color: var(--c-border);
}

/* Article Header */
.article-header {
  margin-bottom: var(--sp-6);
}

.article-header__category {
  display: inline-block;
  background: var(--c-primary);
  color: #fff;
  font-size: var(--fs-xs);
  font-weight: 600;
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--radius);
  text-transform: uppercase;
  margin-bottom: var(--sp-4);
}

.article-header__title {
  font-size: 1.87rem;
  line-height: 1.2;
  margin-bottom: var(--sp-4);
  font-weight: 700;
}

.article-header__subtitle {
  font-size: var(--fs-lg);
  color: var(--c-text-secondary);
  font-weight: 400;
  margin-bottom: var(--sp-4);
  line-height: 1.5;
}

/* Article Meta */
.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-4);
  font-size: var(--fs-sm);
  color: var(--c-text-muted);
  padding: var(--sp-4) 0;
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
}

.article-meta span {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
}

.article-meta i {
  font-size: 0.9em;
}

.article-meta__author {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.article-meta__author img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: contain;
}

/* Featured Image */
.article-featured-img {
  margin: var(--sp-6) 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--c-bg);
}

.article-featured-img img {
  width: 100%;
  min-height: 100%;
  object-fit: contain;
}

.article-featured-img figcaption {
  font-size: var(--fs-xs);
  color: var(--c-text-muted);
  padding: var(--sp-2) 0;
  text-align: center;
}

/* Article Content */
.article-content {
  font-size: 1.133rem;
  line-height: 1.8;
  max-width: 720px;
}

.article-content p {
  margin-bottom: var(--sp-6);
}

.article-content h2 {
  font-size: var(--fs-xl);
  margin: var(--sp-8) 0 var(--sp-4);
}

.article-content h3 {
  font-size: var(--fs-lg);
  margin: var(--sp-6) 0 var(--sp-3);
}

.article-content blockquote {
  border-left: 4px solid var(--c-primary);
  padding: var(--sp-4) var(--sp-6);
  margin: var(--sp-6) 0;
  background: var(--c-primary-light);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--c-text-secondary);
}

body.dark-mode .article-content blockquote {
  background: rgba(0,136,255,.08);
}

.article-content ul,
.article-content ol {
  padding-left: var(--sp-6);
  margin-bottom: var(--sp-6);
}

.article-content ul { list-style: disc; }
.article-content ol { list-style: decimal; }
.article-content li { margin-bottom: var(--sp-2); }

.article-content img {
  border-radius: var(--radius);
  margin: var(--sp-4) 0;
  cursor: zoom-in;
}

.article-content code {
  font-family: var(--f-mono);
  background: var(--c-bg);
  padding: 0.15em 0.4em;
  border-radius: 3px;
  font-size: 0.9em;
}

.article-content pre {
  background: #1e1e2e;
  color: #f5f5f5;
  padding: var(--sp-4);
  border-radius: var(--radius);
  overflow-x: auto;
  margin: var(--sp-6) 0;
}

.article-content pre code {
  background: none;
  padding: 0;
  color: inherit;
}

.article-content table {
  margin: var(--sp-6) 0;
  border: 1px solid var(--c-border);
}

.article-content th,
.article-content td {
  padding: var(--sp-3);
  border: 1px solid var(--c-border);
  text-align: left;
}

.article-content th {
  background: var(--c-bg);
  font-weight: 600;
}

/* Article Tags */
.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  padding: var(--sp-6) 0;
  border-top: 1px solid var(--c-border);
}

.article-tags a {
  font-size: var(--fs-xs);
  padding: var(--sp-1) var(--sp-3);
  background: var(--c-bg);
  color: var(--c-text-secondary);
  border-radius: var(--radius);
  border: 1px solid var(--c-border);
  transition: all var(--dur) var(--ease);
}

.article-tags a:hover {
  background: var(--c-primary);
  color: #fff;
  border-color: var(--c-primary);
}

/* ============================================================
   PHASE 21: SHARE BUTTONS
   ============================================================ */
.share-bar {
  display: flex;
  gap: var(--sp-2);
  padding: var(--sp-4) 0;
  flex-wrap: wrap;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--radius);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: #fff;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.share-btn:hover {
  opacity: 0.85;
  color: #fff;
  transform: translateY(-1px);
}

.share-btn--facebook { background: #1877F2; }
.share-btn--twitter { background: #1DA1F2; }
.share-btn--whatsapp { background: #25D366; }
.share-btn--telegram { background: #0088cc; }
.share-btn--copy { background: var(--c-text-secondary); }
.share-btn--copy.copied { background: var(--c-success); }

/* Floating Share Bar (desktop left side) */
.share-floating {
  position: fixed;
  left: var(--sp-4);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  z-index: 100;
}

.share-floating .share-btn {
  width: 42px;
  height: 42px;
  padding: 0;
  justify-content: center;
  border-radius: 50%;
  font-size: 0;
}

.share-floating .share-btn i {
  font-size: var(--fs-md);
}

/* Mobile bottom share bar */
.share-bar--mobile {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: none;
  justify-content: space-around;
  padding: var(--sp-2) var(--sp-3);
  background: var(--c-surface);
  border-top: 1px solid var(--c-border);
  box-shadow: 0 -2px 10px rgba(0,0,0,.1);
  z-index: 2500;
}

/* ============================================================
   PHASE 22: RELATED ARTICLES (2x2 grid)
   ============================================================ */
.related-articles {
  padding: var(--sp-8) 0;
  border-top: 1px solid var(--c-border);
}

.related-articles__title {
  font-size: var(--fs-lg);
  font-weight: 700;
  margin-bottom: var(--sp-5);
  padding-bottom: var(--sp-3);
  border-bottom: 2px solid var(--c-border);
  position: relative;
}

.related-articles__title::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 80px;
  height: 3px;
  background: var(--c-primary);
}

.related-articles__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
}

/* Article Navigation (Next/Prev) */
.article-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
  padding: var(--sp-6) 0;
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
  margin: var(--sp-6) 0;
}

.article-nav__item {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  padding: var(--sp-4);
  background: var(--c-bg);
  border-radius: var(--radius);
  transition: background var(--dur) var(--ease);
}

.article-nav__item:hover {
  background: var(--c-primary-light);
}

.article-nav__item--next {
  text-align: right;
}

.article-nav__label {
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  color: var(--c-primary);
  letter-spacing: 0.5px;
}

.article-nav__title {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--c-text);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.article-nav__item:hover .article-nav__title {
  color: var(--c-primary);
}

/* ============================================================
   PHASE 23: COMMENTS SECTION
   ============================================================ */
.comments-section {
  padding: var(--sp-8) 0;
}

.comments-section__title {
  font-size: var(--fs-lg);
  margin-bottom: var(--sp-6);
}

.comment {
  display: flex;
  gap: var(--sp-4);
  padding: var(--sp-4) 0;
  border-bottom: 1px solid var(--c-border);
}

.comment__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--c-bg);
  flex-shrink: 0;
  overflow: hidden;
}

.comment__avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.comment__body { flex: 1; }

.comment__header {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-2);
}

.comment__name {
  font-weight: 600;
  font-size: var(--fs-sm);
}

.comment__date {
  font-size: var(--fs-xs);
  color: var(--c-text-muted);
}

.comment__text {
  font-size: var(--fs-sm);
  line-height: 1.6;
  color: var(--c-text-secondary);
}

/* Comment Form */
.comment-form {
  margin-top: var(--sp-8);
}

.comment-form__title {
  font-size: var(--fs-md);
  font-weight: 600;
  margin-bottom: var(--sp-4);
}

.form-group {
  margin-bottom: var(--sp-4);
}

.form-group label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 500;
  margin-bottom: var(--sp-2);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: var(--sp-3);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  background: var(--c-surface);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(0,136,255,.1);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-group .error-msg {
  color: var(--c-error);
  font-size: var(--fs-xs);
  margin-top: var(--sp-1);
  display: none;
}

.form-group.has-error .error-msg { display: block; }

.form-group.has-error input,
.form-group.has-error textarea {
  border-color: var(--c-error);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-6);
  font-weight: 600;
  font-size: var(--fs-sm);
  border-radius: var(--radius);
  transition: all var(--dur) var(--ease);
  cursor: pointer;
}

.btn--primary {
  background: var(--c-primary);
  color: #fff;
}

.btn--primary:hover {
  background: var(--c-primary-dark);
  color: #fff;
}

.btn--outline {
  border: 1px solid var(--c-border);
  color: var(--c-text);
}

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

.btn--sm {
  padding: var(--sp-1) var(--sp-3);
  font-size: var(--fs-xs);
}

/* Nav Follow Dropdown */
.nav-follow {
  position: relative;
}

.nav-follow__btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: background var(--dur) var(--ease);
}

.nav-follow__btn:hover {
  background: rgba(255,255,255,.15);
}

.nav-follow__dropdown {
  position: absolute;
  top: calc(100% + var(--sp-2));
  right: 0;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  padding: var(--sp-2);
  display: none;
  z-index: 1100;
}

.nav-follow:hover .nav-follow__dropdown,
.nav-follow__dropdown:hover {
  display: block;
}

.nav-follow__dropdown a {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-3);
  color: var(--c-text);
  font-size: var(--fs-sm);
  border-radius: var(--radius);
  transition: background var(--dur) var(--ease);
}

.nav-follow__dropdown a:hover {
  background: var(--c-bg);
  color: var(--c-primary);
}

/* Article Grid 4-column */
.article-grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

/* 404 Page Enhancements */
.page-404__code--gradient {
  background: linear-gradient(135deg, var(--c-primary), var(--c-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 1;
}

.page-404__illustration {
  margin: var(--sp-4) 0;
  display: flex;
  justify-content: center;
}

/* Search Filters fix for anchor tags */
.search-filters a {
  padding: var(--sp-2) var(--sp-4);
  border: 1px solid var(--c-border);
  border-radius: 50px;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--c-text-secondary);
  transition: all var(--dur) var(--ease);
  display: inline-block;
}

.search-filters a:hover,
.search-filters a.active {
  background: var(--c-primary);
  color: #fff;
  border-color: var(--c-primary);
}

/* Sidebar comment avatar */
.sidebar-item__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--c-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-sm);
  font-weight: 700;
  flex-shrink: 0;
}

/* ============================================================
   PHASE 25-26: FOOTER
   ============================================================ */
.site-footer {
  background: #111111;
  color: #ccc;
  padding: var(--sp-12) 0 0;
  margin-top: var(--sp-12);
}

body.dark-mode .site-footer {
  background: #0a0a0a;
  border-top: 1px solid var(--c-border);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-8);
}

.footer-col__title {
  color: #fff;
  font-size: var(--fs-md);
  font-weight: 600;
  margin-bottom: var(--sp-4);
  padding-bottom: var(--sp-2);
  border-bottom: 2px solid var(--c-primary);
  display: inline-block;
}

.footer-col a {
  display: block;
  color: #aaa;
  font-size: var(--fs-sm);
  padding: var(--sp-1) 0;
  transition: color var(--dur) var(--ease);
}

.footer-col a:hover {
  color: #fff;
}

.footer-col p {
  font-size: var(--fs-sm);
  color: #999;
  line-height: 1.6;
}

/* Footer Timeline */
.footer-timeline__item {
  display: flex;
  gap: var(--sp-3);
  padding: var(--sp-3) 0;
  position: relative;
  padding-left: var(--sp-6);
  color: #aaa;
  transition: color var(--dur) var(--ease);
}

.footer-timeline__item:hover {
  color: #fff;
}

.footer-timeline__dot {
  position: absolute;
  left: 0;
  top: 18px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-primary);
}

.footer-timeline__item::before {
  content: '';
  position: absolute;
  left: 3px;
  top: 26px;
  width: 2px;
  height: calc(100% - 8px);
  background: rgba(255,255,255,.1);
}

.footer-timeline__item:last-child::before {
  display: none;
}

.footer-timeline__date {
  font-size: var(--fs-xs);
  color: var(--c-primary);
}

.footer-timeline__content h5 {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: inherit;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

/* Footer Thumbnail Grid */
.footer-thumb-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-2);
}

.footer-thumb {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--c-bg);
}

.footer-thumb img {
  width: 100%;
  min-height: 100%;
  object-fit: contain;
  transition: transform 0.3s var(--ease);
}

.footer-thumb:hover img {
  transform: scale(1.1);
}

.footer-thumb__placeholder {
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,.05);
}

/* Footer YouTube Button */
.footer-yt-btn {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  background: #FF0000;
  color: #fff;
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--radius);
  font-size: var(--fs-sm);
  font-weight: 600;
  margin-bottom: var(--sp-4);
  transition: opacity var(--dur) var(--ease);
}

.footer-yt-btn:hover {
  opacity: 0.9;
  color: #fff;
}

/* Footer Social Buttons */
.footer-social-btns {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.footer-social-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--radius);
  font-size: var(--fs-xs);
  font-weight: 500;
  color: #fff;
  transition: opacity var(--dur) var(--ease);
}

.footer-social-btn:hover {
  opacity: 0.85;
  color: #fff;
}

.footer-social-btn--facebook { background: #1877F2; }
.footer-social-btn--twitter { background: #1DA1F2; }
.footer-social-btn--instagram { background: #E4405F; }
.footer-social-btn--telegram { background: #0088cc; }
.footer-social-btn--whatsapp { background: #25D366; }

/* Footer Categories */
.footer-categories {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.footer-cat-link {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  color: #aaa;
  font-size: var(--fs-sm);
  padding: var(--sp-1) 0;
  width: 100%;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: color var(--dur) var(--ease);
}

.footer-cat-link:hover {
  color: #fff;
}

.footer-cat-count {
  font-size: var(--fs-xs);
  background: rgba(255,255,255,.1);
  padding: 1px 8px;
  border-radius: 10px;
  color: #999;
}

/* Footer Bottom Bar */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: var(--sp-4) 0;
  margin-top: var(--sp-8);
  font-size: var(--fs-xs);
}

.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom a {
  color: #aaa;
}

.footer-bottom a:hover {
  color: #fff;
}

.footer-bottom__links {
  display: flex;
  gap: var(--sp-4);
}

.footer-bottom__links a {
  color: #aaa;
  font-size: var(--fs-xs);
  transition: color var(--dur) var(--ease);
}

.footer-bottom__links a:hover {
  color: #fff;
}

/* ============================================================
   PHASE 26: BACK TO TOP
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: var(--sp-6);
  right: var(--sp-6);
  width: 44px;
  height: 44px;
  background: var(--c-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: all 0.3s var(--ease);
  z-index: 500;
  font-size: var(--fs-lg);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--c-primary-dark);
  color: #fff;
  transform: translateY(-2px);
}

/* ============================================================
   PHASE 27: DARK MODE TOGGLE
   ============================================================ */
.dark-toggle {
  position: relative;
  width: 44px;
  height: 24px;
  background: var(--c-border);
  border-radius: 12px;
  transition: background var(--dur) var(--ease);
  cursor: pointer;
  flex-shrink: 0;
}

.dark-toggle::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: transform var(--dur) var(--ease);
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}

body.dark-mode .dark-toggle {
  background: var(--c-primary);
}

body.dark-mode .dark-toggle::after {
  transform: translateX(20px);
}

/* ============================================================
   PHASE 28: CATEGORY PAGE
   ============================================================ */
.page-header {
  padding: var(--sp-8) 0 var(--sp-6);
  border-bottom: 1px solid var(--c-border);
  margin-bottom: var(--sp-8);
}

.page-header__title {
  font-size: var(--fs-2xl);
}

.page-header__desc {
  font-size: var(--fs-md);
  color: var(--c-text-secondary);
  margin-top: var(--sp-2);
}

/* ============================================================
   PHASE 38: SEARCH PAGE
   ============================================================ */
.search-section {
  padding: var(--sp-8) 0;
}

.search-bar {
  position: relative;
  max-width: 600px;
  margin: 0 auto var(--sp-8);
}

.search-bar input {
  width: 100%;
  padding: var(--sp-4) var(--sp-6);
  padding-right: 54px;
  font-size: var(--fs-lg);
  border: 2px solid var(--c-border);
  border-radius: 50px;
  background: var(--c-surface);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.search-bar input:focus {
  border-color: var(--c-primary);
  box-shadow: 0 0 0 4px rgba(0,136,255,.1);
}

.search-bar button {
  position: absolute;
  right: var(--sp-3);
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: var(--c-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--dur) var(--ease);
}

.search-bar button:hover {
  background: var(--c-primary-dark);
}

.search-results__count {
  font-size: var(--fs-sm);
  color: var(--c-text-muted);
  margin-bottom: var(--sp-6);
}

.search-results .card--list {
  margin-bottom: var(--sp-4);
}

/* Search Filters */
.search-filters {
  display: flex;
  gap: var(--sp-2);
  margin-bottom: var(--sp-6);
  justify-content: center;
  flex-wrap: wrap;
}

.search-filters button {
  padding: var(--sp-2) var(--sp-4);
  border: 1px solid var(--c-border);
  border-radius: 50px;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--c-text-secondary);
  transition: all var(--dur) var(--ease);
}

.search-filters button:hover,
.search-filters button.active {
  background: var(--c-primary);
  color: #fff;
  border-color: var(--c-primary);
}

/* No Results */
.search-no-results {
  text-align: center;
  padding: var(--sp-12) var(--sp-4);
}

.search-no-results__icon {
  font-size: 4rem;
  color: var(--c-text-muted);
  opacity: 0.3;
  margin-bottom: var(--sp-4);
}

.search-no-results__text {
  font-size: var(--fs-lg);
  color: var(--c-text-secondary);
  margin-bottom: var(--sp-2);
}

/* Live Search Dropdown */
.search-live {
  position: absolute;
  top: calc(100% + var(--sp-2));
  left: 0;
  right: 0;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-height: 360px;
  overflow-y: auto;
  display: none;
  z-index: 500;
}

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

.search-live__item {
  display: flex;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  transition: background var(--dur) var(--ease);
}

.search-live__item:hover {
  background: var(--c-bg);
}

.search-live__item img {
  width: 70px;
  aspect-ratio: 16/9;
  object-fit: contain;
  border-radius: var(--radius);
}

.search-live__item span {
  font-size: var(--fs-sm);
  font-weight: 500;
}

/* ============================================================
   PHASE 39: 404 PAGE
   ============================================================ */
.page-404 {
  text-align: center;
  padding: var(--sp-16) var(--sp-4);
}

.page-404__code {
  font-size: 8rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--c-primary), var(--c-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: var(--sp-2);
}

.page-404__title {
  font-size: var(--fs-2xl);
  margin: var(--sp-4) 0;
}

.page-404__text {
  color: var(--c-text-secondary);
  margin-bottom: var(--sp-8);
  max-width: 480px;
  margin-inline: auto;
  line-height: 1.6;
}

.page-404 .search-bar {
  max-width: 480px;
}

.page-404__articles {
  margin-top: var(--sp-10);
}

.page-404__articles-title {
  font-size: var(--fs-lg);
  font-weight: 600;
  margin-bottom: var(--sp-5);
}

/* ============================================================
   PHASE 25: PAGINATION & LOAD MORE
   ============================================================ */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-8) 0;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 var(--sp-3);
  font-size: var(--fs-sm);
  font-weight: 500;
  border-radius: var(--radius);
  border: 1px solid var(--c-border);
  color: var(--c-text);
  transition: all var(--dur) var(--ease);
}

.pagination a:hover {
  border-color: var(--c-primary);
  color: var(--c-primary);
}

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

.pagination .disabled {
  opacity: 0.4;
  pointer-events: none;
}

.load-more {
  display: block;
  width: 100%;
  max-width: 300px;
  margin: var(--sp-8) auto;
  padding: var(--sp-3) var(--sp-6);
  background: var(--c-surface);
  border: 2px solid var(--c-primary);
  color: var(--c-primary);
  font-weight: 600;
  font-size: var(--fs-sm);
  border-radius: var(--radius);
  transition: all var(--dur) var(--ease);
}

.load-more:hover {
  background: var(--c-primary);
  color: #fff;
}

.load-more.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* Load More Spinner */
.load-more.loading::after {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin-left: var(--sp-2);
  vertical-align: middle;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============================================================
   AD SLOTS
   ============================================================ */
.ad-slot {
  background: var(--c-bg);
  border: 1px dashed var(--c-border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-xs);
  color: var(--c-text-muted);
  overflow: hidden;
}

.ad-slot img {
  width: 100%;
  height: auto;
}

.ad-slot--header { height: 90px; margin: 0; max-width: 728px; width: 100%; }
.ad-slot--sidebar { min-height: 250px; margin-bottom: var(--sp-6); width: 100%; }
.ad-slot--in-article { min-height: 100px; margin: var(--sp-6) 0; width: 100%; }
.ad-slot--between { min-height: 90px; margin: var(--sp-6) 0; max-width: 728px; margin-inline: auto; width: 100%; }
.ad-slot--footer { min-height: 90px; margin-bottom: var(--sp-4); width: 100%; }

/* ============================================================
   PHASE 29: COOKIE CONSENT BAR
   ============================================================ */
.cookie-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--c-surface);
  box-shadow: 0 -2px 12px rgba(0,0,0,.15);
  padding: var(--sp-3) var(--sp-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  z-index: 3000;
  transform: translateY(100%);
  transition: transform 0.4s var(--ease);
}

.cookie-bar.visible {
  transform: translateY(0);
}

.cookie-bar__text {
  font-size: var(--fs-sm);
  color: var(--c-text-secondary);
  flex: 1;
}

.cookie-bar__actions {
  display: flex;
  gap: var(--sp-2);
  flex-shrink: 0;
}

/* ============================================================
   FONT SIZE CONTROLS
   ============================================================ */
.font-controls {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
}

.font-controls button {
  width: 28px;
  height: 28px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  font-weight: 700;
  font-size: var(--fs-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--dur) var(--ease);
}

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

.font-controls button.active {
  background: var(--c-primary);
  color: #fff;
  border-color: var(--c-primary);
}

/* ============================================================
   IMAGE LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.92);
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s;
  cursor: zoom-out;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: 92vw;
  max-height: 92vh;
  object-fit: contain;
  border-radius: var(--radius);
}

.lightbox__close {
  position: absolute;
  top: var(--sp-4);
  right: var(--sp-4);
  color: #fff;
  font-size: var(--fs-2xl);
  cursor: pointer;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background var(--dur) var(--ease);
}

.lightbox__close:hover {
  background: rgba(255,255,255,.1);
}

/* ============================================================
   PHASE 34: SKELETON LOADING
   ============================================================ */
.skeleton {
  background: var(--c-bg);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}

.skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.4), transparent);
  animation: shimmer 1.5s infinite;
}

body.dark-mode .skeleton::after {
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.08), transparent);
}

.skeleton-shimmer {
  background: linear-gradient(90deg, var(--c-bg) 25%, rgba(255,255,255,.3) 50%, var(--c-bg) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Skeleton variants */
.skeleton--text {
  height: 14px;
  margin-bottom: var(--sp-2);
  width: 100%;
}

.skeleton--text-sm {
  height: 10px;
  margin-bottom: var(--sp-1);
  width: 60%;
}

.skeleton--img {
  width: 100%;
  height: 200px;
}

.skeleton--avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.skeleton--card {
  height: 300px;
}

/* Image blur-up placeholder */
img[data-src] {
  background: var(--c-bg);
  min-height: 100px;
  filter: blur(10px);
  transition: filter 0.4s var(--ease);
}

img[data-src].loaded,
img.loaded {
  filter: blur(0);
  animation: fadeIn 0.4s var(--ease);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ============================================================
   PHASE 35: SCROLL ANIMATIONS
   ============================================================ */
.fade-in-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================
   PHASE 32: PRINT STYLES
   ============================================================ */
@media print {
  body {
    background: #fff;
    color: #000;
    font-size: 12pt;
  }

  .site-header, .top-bar, .sticky-nav, .sidebar-area, .site-footer,
  .share-bar, .share-floating, .share-bar--mobile, .back-to-top,
  .cookie-bar, .dark-toggle, .font-controls, .reading-progress,
  .ad-slot, .comments-section, .mobile-menu, .mobile-menu__overlay,
  .hamburger, .load-more, .pagination, .lightbox, .search-bar,
  .hero-slider, .secondary-slider, .related-articles, .article-nav,
  .bottom-nav, .article-tags {
    display: none !important;
  }

  .container { max-width: 100%; }
  .layout-main { display: block; }
  .content-area { width: 100%; }

  a { color: #000; text-decoration: underline; }
  a[href]::after { content: " (" attr(href) ")"; font-size: 0.8em; }

  .article-content img {
    max-width: 100%;
    page-break-inside: avoid;
  }

  h1, h2, h3 { page-break-after: avoid; }

  .article-content {
    max-width: 100%;
    font-size: 12pt;
    line-height: 1.6;
  }

  .article-featured-img {
    max-height: none;
  }
}

/* ============================================================
   PHASE 40: RTL READINESS FOR HINDI
   ============================================================ */
[dir="rtl"] .sticky-nav__links {
  direction: rtl;
}

[dir="rtl"] .cat-section__header {
  flex-direction: row-reverse;
}

[dir="rtl"] .card--cat-list {
  direction: rtl;
}

[dir="rtl"] .breadcrumb {
  direction: rtl;
}

[dir="rtl"] .article-content blockquote {
  border-left: none;
  border-right: 4px solid var(--c-primary);
  border-radius: var(--radius) 0 0 var(--radius);
}

[dir="rtl"] .share-floating {
  left: auto;
  right: var(--sp-4);
}

[dir="rtl"] .footer-timeline__dot {
  left: auto;
  right: 0;
}

[dir="rtl"] .footer-timeline__item {
  padding-left: 0;
  padding-right: var(--sp-6);
}

[dir="rtl"] .footer-timeline__item::before {
  left: auto;
  right: 3px;
}

/* ============================================================
   RESPONSIVE — Tablet (max-width: 1024px)
   ============================================================ */
@media (max-width: 1024px) {
  .layout-main {
    gap: var(--sp-4);
  }

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

  .hero-slider__grid {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-slider__side {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }

  .hero-slider__side-bottom {
    grid-column: 1 / -1;
  }

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

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

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

  .share-floating {
    display: none;
  }

  .col-4 { width: 50%; }
  .col-3 { width: 50%; }

  .paired-categories {
    grid-template-columns: 1fr;
    gap: var(--sp-5);
  }

  .paired-categories__col {
    padding: var(--sp-4);
  }

  .secondary-slider__grid {
    grid-template-columns: 1fr;
  }

  .cat-section__content {
    grid-template-columns: 55% 45%;
  }

  .sidebar-area {
    max-width: 300px;
    width: 280px;
  }

  .site-logo {
    width: auto;
    flex: 1;
  }

  .header-ad {
    width: auto;
  }

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

/* ============================================================
   VIDEO SECTION
   ============================================================ */
.video-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-4);
}

.video-grid--page {
  grid-template-columns: repeat(3, 1fr);
}

.video-card {
  background: var(--c-surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}

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

.video-card__thumb {
  position: relative;
  aspect-ratio: 16/9;
  background: #000;
  overflow: hidden;
}

.video-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.4s var(--ease);
}

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

.video-card__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.3);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}

.video-card:hover .video-card__play {
  opacity: 1;
}

.video-card__play svg {
  width: 48px;
  height: 48px;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
}

.video-card__body {
  padding: var(--sp-3);
}

.video-card__title {
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1.3;
  color: var(--c-text);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin-bottom: var(--sp-1);
}

.video-card__channel {
  font-size: var(--fs-xs);
  color: var(--c-text-muted);
}

/* TTS (Text-to-Speech) Floating Button */
.tts-btn {
  position: fixed;
  bottom: var(--sp-6);
  left: var(--sp-6);
  width: 50px;
  height: 50px;
  background: var(--c-primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  z-index: 500;
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.tts-btn:hover {
  background: var(--c-primary-dark);
  transform: scale(1.1);
}

.tts-btn.playing {
  background: #e74c3c;
  animation: tts-pulse 1.5s infinite;
}

@keyframes tts-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(231,76,60,0.4); }
  50% { box-shadow: 0 0 0 12px rgba(231,76,60,0); }
}

/* Video Lightbox Player */
.video-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: var(--sp-3);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s;
}

.video-lightbox.active {
  opacity: 1;
  visibility: visible;
}

.video-lightbox__close {
  position: absolute;
  top: var(--sp-4);
  right: var(--sp-4);
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  border: none;
  transition: background var(--dur) var(--ease);
}

.video-lightbox__close:hover {
  background: rgba(255,255,255,0.2);
}

.video-lightbox__player {
  width: 90%;
  max-width: 900px;
  aspect-ratio: 16/9;
}

.video-lightbox__player iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: var(--radius-lg);
}

.video-lightbox__title {
  color: #fff;
  font-size: var(--fs-md);
  text-align: center;
  max-width: 900px;
}

/* ============================================================
   RESPONSIVE — Mobile (max-width: 768px)
   ============================================================ */
@media (max-width: 768px) {
  :root {
    --nav-h: 50px;
    --fs-3xl: 1.75rem;
    --fs-2xl: 1.5rem;
    --fs-xl: 1.25rem;
  }

  /* === HERO: Horizontal swipe slider === */
  .hero-slider {
    padding: var(--sp-2) 0;
    overflow: hidden;
  }

  .hero-slider .container {
    padding: 0;
    overflow: visible;
  }

  .hero-slider__grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: var(--sp-2);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    grid-template-columns: none;
    min-height: auto;
    padding: 0 var(--sp-4);
  }

  .hero-slider__grid::-webkit-scrollbar {
    display: none;
  }

  .hero-slider__grid::after {
    content: '';
    flex-shrink: 0;
    width: var(--sp-4);
  }

  .hero-slider__main,
  .hero-slider__side,
  .hero-slider__side-top,
  .hero-slider__side-bottom {
    display: contents;
  }

  .hero-slider__grid .card--overlay {
    min-width: calc(100vw - 2 * var(--sp-4) - var(--sp-3));
    max-width: calc(100vw - 2 * var(--sp-4) - var(--sp-3));
    flex-shrink: 0;
    scroll-snap-align: start;
    border-radius: var(--radius);
  }

  .hero-slider__grid .card--overlay__link {
    min-height: 180px;
    aspect-ratio: 16/9;
  }

  .hero-slider__grid .card--overlay__title {
    font-size: 14px;
    -webkit-line-clamp: 2;
    line-height: 1.3;
  }

  .hero-slider__grid .card--overlay__content {
    padding: var(--sp-3);
  }

  .hero-slider__grid .card--overlay__badge {
    font-size: 10px;
    padding: 2px 6px;
  }

  .hero-slider__grid .card--overlay__date {
    font-size: 10px;
  }

  .hero-slider__arrow {
    display: none;
  }

  /* === CATEGORY SECTIONS: List style === */
  .cat-section {
    padding: var(--sp-3);
    margin-bottom: var(--sp-3);
  }

  .cat-section__header {
    margin-bottom: var(--sp-2);
    padding-bottom: var(--sp-2);
  }

  .cat-section__title {
    font-size: var(--fs-sm);
  }

  .cat-section__all {
    font-size: 11px;
  }

  .cat-section__content {
    grid-template-columns: 1fr;
    gap: var(--sp-2);
    width: 100%;
  }

  /* Big card in category becomes compact */
  .card--cat-large {
    display: flex;
    gap: var(--sp-3);
    flex-direction: row;
  }

  .card--cat-large__img {
    width: 120px;
    min-width: 120px;
    aspect-ratio: 16/9;
    margin-bottom: 0;
  }

  .card--cat-large__body {
    flex: 1;
    min-width: 0;
  }

  .card--cat-large__meta {
    display: none;
  }

  .card--cat-large__title {
    font-size: var(--fs-sm);
    margin-bottom: var(--sp-1);
  }

  .card--cat-large__excerpt {
    display: none;
  }

  .card--cat-large__readmore {
    display: none;
  }

  /* List items compact */
  .card--cat-list {
    padding: var(--sp-2) 0;
  }

  .card--cat-list__img {
    width: 90px;
    aspect-ratio: 16/9;
  }

  .card--cat-list__title {
    font-size: 13px;
  }

  .card--cat-list__date {
    font-size: 10px;
  }

  /* === PAIRED CATEGORIES === */
  .paired-categories {
    grid-template-columns: 1fr;
    gap: var(--sp-3);
    width: 100%;
  }

  .paired-categories__col {
    padding: var(--sp-3);
  }

  .paired-categories__col .card--overlay {
    min-height: 150px;
  }

  /* === ARTICLE GRID (Latest News) === */
  .article-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-3);
    width: 100%;
  }

  /* Make grid cards list-style on mobile */
  .card--grid {
    display: flex;
    flex-direction: row;
    gap: 0;
  }

  .card--grid .card__img {
    width: 110px;
    min-width: 110px;
    aspect-ratio: 16/9;
    border-radius: var(--radius) 0 0 var(--radius);
  }

  .card--grid .card__body {
    flex: 1;
    min-width: 0;
    padding: var(--sp-2) var(--sp-3);
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .card--grid .card__title {
    font-size: 13px;
    -webkit-line-clamp: 2;
    margin-bottom: var(--sp-1);
  }

  .card--grid .card__excerpt {
    display: none;
  }

  .card--grid .card__meta {
    font-size: 10px;
    margin-top: var(--sp-1);
    gap: var(--sp-2);
  }

  .card--grid .card__category {
    font-size: 11px;
    padding: 1px 5px;
    top: var(--sp-1);
    left: var(--sp-1);
  }

  .card--grid .card__badge {
    display: none;
  }

  /* === SECONDARY SLIDER === */
  .secondary-slider {
    overflow: hidden;
  }

  .secondary-slider__grid {
    grid-template-columns: 1fr;
  }

  .secondary-slider__arrow {
    display: none;
  }

  /* === VIDEO SECTION === */
  .video-section {
    padding: var(--sp-3) 0;
    overflow: hidden;
  }

  .video-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: var(--sp-3);
    padding-bottom: var(--sp-2);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

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

  .video-grid .video-card {
    min-width: 68vw;
    max-width: 68vw;
    flex-shrink: 0;
    scroll-snap-align: start;
  }

  .video-grid--page {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-2);
    overflow-x: visible;
    scroll-snap-type: none;
  }

  .video-grid--page .video-card {
    min-width: 0;
    max-width: none;
  }

  .video-card__play {
    opacity: 1;
    background: rgba(0,0,0,0.2);
  }

  .video-card__play svg {
    width: 32px;
    height: 32px;
  }

  .video-card__body {
    padding: var(--sp-2) var(--sp-3);
  }

  .video-card__title {
    font-size: 12px;
  }

  .video-card__channel {
    font-size: 10px;
  }

  /* === SIDEBAR === */
  .layout-main {
    flex-direction: column;
    gap: var(--sp-4);
    width: 100%;
    overflow: hidden;
  }

  .sidebar-area {
    width: 100%;
    max-width: 100%;
  }

  .content-area {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .sidebar {
    position: static;
  }

  .widget {
    padding: var(--sp-3);
    margin-bottom: var(--sp-3);
    width: 100%;
    overflow: hidden;
  }

  .widget__title {
    font-size: var(--fs-sm);
    margin-bottom: var(--sp-2);
    padding-bottom: var(--sp-2);
  }

  .follow-buttons {
    grid-template-columns: 1fr 1fr;
  }

  .sidebar-item__img {
    width: 70px;
  }

  .sidebar-item__body h4 {
    font-size: 12px;
  }

  /* === FOOTER === */
  .site-footer {
    padding-top: var(--sp-6);
    margin-top: var(--sp-6);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-5);
  }

  .footer-col__title {
    font-size: var(--fs-sm);
    margin-bottom: var(--sp-3);
  }

  .footer-bottom .container {
    flex-direction: column;
    gap: var(--sp-2);
    text-align: center;
  }

  .footer-bottom__links {
    justify-content: center;
    flex-wrap: wrap;
  }

  /* === HEADER === */
  .site-header {
    padding: var(--sp-2) 0;
  }

  .site-header .container {
    justify-content: space-between;
    gap: var(--sp-3);
  }

  .site-logo {
    width: auto;
    flex: 1;
  }

  .site-logo img {
    height: 36px;
    max-height: 36px;
  }

  .header-ad {
    display: none;
  }

  .hamburger {
    display: flex;
    order: -1;
  }

  .hamburger span {
    background: #fff;
  }

  .sticky-nav__links {
    display: none;
  }

  .sticky-nav__inner {
    justify-content: space-between;
  }

  .sticky-nav__actions {
    gap: var(--sp-2);
  }

  .sticky-nav__actions > button {
    color: #fff;
  }

  .font-controls {
    display: none !important;
  }

  .nav-follow {
    display: none;
  }

  .hide-mobile,
  .dark-toggle.hide-mobile {
    display: none !important;
  }

  /* === TOP BAR === */
  .top-bar__social {
    display: none;
  }

  /* === MISC === */
  .col-6, .col-4, .col-3, .col-8, .col-9 {
    width: 100%;
  }

  .row { margin: 0; }
  .col { padding: 0; }

  .ad-slot--header {
    height: 60px;
    max-width: 100%;
  }

  .ad-slot--between {
    max-width: 100%;
  }

  .page-404__code {
    font-size: 5rem;
  }

  /* === BACK TO TOP above bottom nav === */
  .back-to-top {
    bottom: calc(50px + env(safe-area-inset-bottom, 0px) + var(--sp-4));
  }

  /* === TTS button above bottom nav === */
  .tts-btn {
    bottom: calc(56px + var(--sp-4));
    left: var(--sp-4);
    width: 44px;
    height: 44px;
  }

  .tts-btn svg {
    width: 18px;
    height: 18px;
  }

  /* === COOKIE BAR above bottom nav === */
  .cookie-bar {
    bottom: calc(50px + env(safe-area-inset-bottom, 0px));
    flex-direction: column;
    text-align: center;
    padding: var(--sp-3) var(--sp-4);
  }

  /* === Card tap effect === */
  .card:active,
  .card--overlay:active,
  .card--cat-list:active {
    transform: scale(0.98);
  }

  /* === ARTICLE PAGE (kept from original) === */
  .sticky-nav.stuck {
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
  }

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

  .card--list .card__img {
    width: 100%;
    aspect-ratio: 16/9;
  }

  .share-bar {
    flex-wrap: wrap;
    padding: var(--sp-2) 0;
    gap: var(--sp-1);
  }

  .share-btn {
    padding: var(--sp-2) var(--sp-3);
    font-size: 12px;
  }

  .share-floating {
    display: none !important;
  }

  .share-bar--mobile {
    display: flex;
    bottom: calc(50px + env(safe-area-inset-bottom, 0px));
  }

  .article-header {
    margin-bottom: var(--sp-4);
  }

  .article-header__title {
    font-size: var(--fs-lg);
    line-height: 1.3;
  }

  .article-header__category {
    font-size: 10px;
    padding: 2px 8px;
    margin-bottom: var(--sp-2);
  }

  .article-content {
    font-size: 14px;
    line-height: 1.7;
    max-width: 100%;
  }

  .article-content p {
    margin-bottom: var(--sp-4);
  }

  .article-content h2 {
    font-size: var(--fs-md);
    margin: var(--sp-5) 0 var(--sp-3);
  }

  .article-content h3 {
    font-size: var(--fs-base);
    margin: var(--sp-4) 0 var(--sp-2);
  }

  .article-content blockquote {
    padding: var(--sp-3) var(--sp-4);
    margin: var(--sp-4) 0;
    font-size: 13px;
  }

  .article-content img {
    margin: var(--sp-3) 0;
  }

  .article-featured-img {
    margin-left: calc(var(--sp-4) * -1);
    margin-right: calc(var(--sp-4) * -1);
    margin-top: var(--sp-3);
    margin-bottom: var(--sp-3);
    width: calc(100% + var(--sp-4) * 2);
    border-radius: 0;
    aspect-ratio: 16/9;
    overflow: hidden;
  }

  .article-nav {
    grid-template-columns: 1fr;
    gap: var(--sp-2);
    margin: var(--sp-4) 0;
  }

  .article-nav__item--next {
    text-align: left;
  }

  .article-nav__item {
    padding: var(--sp-3);
    font-size: 12px;
  }

  .article-nav__label {
    font-size: 10px;
  }

  .article-nav__title {
    font-size: 12px;
  }

  .related-articles {
    padding: var(--sp-4) 0;
  }

  .related-articles__grid {
    grid-template-columns: 1fr;
    gap: var(--sp-3);
  }

  .top-bar__ticker {
    flex: 1;
  }

  .search-bar input {
    padding: var(--sp-3) var(--sp-4);
    padding-right: 50px;
    font-size: var(--fs-base);
  }

  .search-bar {
    max-width: 100%;
    margin-bottom: var(--sp-4);
    width: 100%;
  }

  .section-title {
    font-size: var(--fs-base);
    padding-bottom: var(--sp-2);
    margin-bottom: var(--sp-4);
  }

  .breadcrumb {
    font-size: 11px;
    padding: var(--sp-2) 0;
    gap: var(--sp-1);
  }

  .article-meta {
    font-size: 11px;
    gap: var(--sp-2);
    padding: var(--sp-2) 0;
    flex-wrap: wrap;
  }

  .article-meta svg {
    width: 12px;
    height: 12px;
  }

  .article-tags {
    padding: var(--sp-3) 0;
    gap: var(--sp-1);
  }

  .article-tags a {
    font-size: 11px;
    padding: 2px 8px;
  }

  .comments-section {
    padding: var(--sp-4) 0;
  }

  .comments-section__title {
    font-size: var(--fs-base);
    margin-bottom: var(--sp-4);
  }

  .comment {
    padding: var(--sp-3) 0;
    gap: var(--sp-3);
  }

  .comment__avatar {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }

  .comment__name {
    font-size: 12px;
  }

  .comment__text {
    font-size: 12px;
  }

  .comment-form .d-flex {
    flex-direction: column;
    gap: var(--sp-3);
  }

  .form-group input,
  .form-group textarea {
    padding: var(--sp-2);
    font-size: 13px;
  }

  .bottom-nav__item {
    color: var(--c-text-muted);
  }

  .bottom-nav__item svg {
    width: 20px;
    height: 20px;
  }

  .bottom-nav__item.active {
    color: var(--c-primary);
  }
}

/* ============================================================
   PHASE 33: MOBILE BOTTOM NAVIGATION BAR
   ============================================================ */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50px;
  height: calc(50px + env(safe-area-inset-bottom, 0px));
  background: var(--c-surface);
  border-top: 1px solid var(--c-border);
  box-shadow: 0 -1px 8px rgba(0,0,0,.1);
  z-index: 3000;
  justify-content: space-around;
  align-items: center;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

body.dark-mode .bottom-nav {
  background: var(--c-surface);
  border-top-color: var(--c-border);
}

.bottom-nav__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: var(--sp-1);
  color: var(--c-text-muted);
  font-size: 10px;
  font-weight: 500;
  transition: color var(--dur) var(--ease);
  text-decoration: none;
  flex: 1;
  height: 100%;
}

.bottom-nav__item i {
  font-size: 18px;
}

.bottom-nav__item.active,
.bottom-nav__item:hover {
  color: var(--c-primary);
}

.bottom-nav__item span {
  font-size: 10px;
  line-height: 1;
}

/* Bottom Nav Categories Panel */
.bottom-nav__panel {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--c-surface);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  box-shadow: 0 -4px 20px rgba(0,0,0,.15);
  z-index: 3100;
  transform: translateY(100%);
  transition: transform .3s var(--ease);
  max-height: 60vh;
  overflow-y: auto;
}

.bottom-nav__panel.open {
  transform: translateY(0);
}

.bottom-nav__panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--sp-4) var(--sp-5);
  border-bottom: 1px solid var(--c-border);
  position: sticky;
  top: 0;
  background: var(--c-surface);
}

.bottom-nav__panel-header h3 {
  font-size: var(--fs-md);
  font-weight: 700;
}

.bottom-nav__panel-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--c-text-secondary);
  transition: background var(--dur) var(--ease);
}

.bottom-nav__panel-close:hover {
  background: var(--c-bg);
}

.bottom-nav__panel-body {
  padding: var(--sp-3) var(--sp-5) var(--sp-6);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-2);
}

.bottom-nav__panel-link {
  display: block;
  padding: var(--sp-3);
  color: var(--c-text);
  font-size: var(--fs-sm);
  font-weight: 500;
  border-radius: var(--radius);
  transition: background var(--dur) var(--ease);
  text-align: center;
  border: 1px solid var(--c-border);
}

.bottom-nav__panel-link:hover {
  background: var(--c-primary);
  color: #fff;
  border-color: var(--c-primary);
}

.bottom-nav__panel-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 3050;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s var(--ease), visibility .3s;
}

.bottom-nav__panel-overlay.active {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 768px) {
  .bottom-nav {
    display: flex;
  }

  body {
    padding-bottom: calc(50px + env(safe-area-inset-bottom, 0px));
  }
}

/* ============================================================
   RESPONSIVE — Small Mobile (max-width: 480px)
   ============================================================ */
@media (max-width: 480px) {
  :root {
    --fs-2xl: 1.35rem;
    --fs-xl: 1.15rem;
  }

  .container {
    padding: 0 var(--sp-3);
  }

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

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

  .cat-section {
    padding: var(--sp-3);
  }

  .card--cat-large__img {
    aspect-ratio: 16/9;
  }

  .card--cat-list__img {
    width: 90px;
    aspect-ratio: 16/9;
  }

  .paired-categories__col {
    padding: var(--sp-3);
  }

  .article-header__title {
    font-size: var(--fs-xl);
  }

  .follow-buttons {
    grid-template-columns: 1fr 1fr;
  }

  .follow-btn {
    padding: var(--sp-2);
    font-size: var(--fs-xs);
  }

  .video-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-1);
    overflow-x: visible;
    scroll-snap-type: none;
  }
  .video-grid .video-card {
    min-width: 0;
    max-width: none;
  }

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

  .share-bar .share-btn {
    padding: var(--sp-2) var(--sp-3);
    font-size: var(--fs-xs);
  }

  .mobile-menu {
    width: 280px;
  }

  .search-filters {
    gap: var(--sp-1);
  }

  .search-filters button {
    font-size: var(--fs-xs);
    padding: var(--sp-1) var(--sp-3);
  }

  .page-404__code {
    font-size: 4rem;
  }

  .video-card__title {
    font-size: 11px;
  }

  .card--grid .card__meta {
    font-size: 10px;
  }

  .sidebar-item__body h4 {
    font-size: 11px;
  }
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */

/* Display */
.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }
.d-inline { display: inline; }
.d-inline-block { display: inline-block; }
.d-inline-flex { display: inline-flex; }

/* Flex */
.flex-wrap { flex-wrap: wrap; }
.flex-col { flex-direction: column; }
.flex-1 { flex: 1; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.justify-start { justify-content: flex-start; }

/* Gap */
.gap-1 { gap: var(--sp-1); }
.gap-2 { gap: var(--sp-2); }
.gap-3 { gap: var(--sp-3); }
.gap-4 { gap: var(--sp-4); }
.gap-5 { gap: var(--sp-5); }
.gap-6 { gap: var(--sp-6); }
.gap-8 { gap: var(--sp-8); }

/* Margin */
.m-0 { margin: 0; }
.mt-1 { margin-top: var(--sp-1); }
.mt-2 { margin-top: var(--sp-2); }
.mt-3 { margin-top: var(--sp-3); }
.mt-4 { margin-top: var(--sp-4); }
.mt-6 { margin-top: var(--sp-6); }
.mt-8 { margin-top: var(--sp-8); }
.mb-1 { margin-bottom: var(--sp-1); }
.mb-2 { margin-bottom: var(--sp-2); }
.mb-3 { margin-bottom: var(--sp-3); }
.mb-4 { margin-bottom: var(--sp-4); }
.mb-6 { margin-bottom: var(--sp-6); }
.mb-8 { margin-bottom: var(--sp-8); }
.ml-2 { margin-left: var(--sp-2); }
.mr-2 { margin-right: var(--sp-2); }
.mx-auto { margin-inline: auto; }
.my-4 { margin-block: var(--sp-4); }
.my-6 { margin-block: var(--sp-6); }

/* Padding */
.p-0 { padding: 0; }
.p-2 { padding: var(--sp-2); }
.p-3 { padding: var(--sp-3); }
.p-4 { padding: var(--sp-4); }
.p-6 { padding: var(--sp-6); }
.p-8 { padding: var(--sp-8); }
.py-2 { padding-block: var(--sp-2); }
.py-4 { padding-block: var(--sp-4); }
.py-6 { padding-block: var(--sp-6); }
.py-8 { padding-block: var(--sp-8); }
.px-2 { padding-inline: var(--sp-2); }
.px-4 { padding-inline: var(--sp-4); }
.px-6 { padding-inline: var(--sp-6); }

/* Typography utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-xs { font-size: var(--fs-xs); }
.text-sm { font-size: var(--fs-sm); }
.text-base { font-size: var(--fs-base); }
.text-md { font-size: var(--fs-md); }
.text-lg { font-size: var(--fs-lg); }
.text-xl { font-size: var(--fs-xl); }
.text-2xl { font-size: var(--fs-2xl); }
.text-bold { font-weight: 700; }
.text-semibold { font-weight: 600; }
.text-medium { font-weight: 500; }
.text-normal { font-weight: 400; }
.text-muted { color: var(--c-text-muted); }
.text-secondary { color: var(--c-text-secondary); }
.text-primary { color: var(--c-primary); }
.text-white { color: #fff; }
.text-uppercase { text-transform: uppercase; }
.text-truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.line-clamp-1 { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1; overflow: hidden; }
.line-clamp-2 { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.line-clamp-3 { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }

/* Width */
.w-full { width: 100%; }
.w-auto { width: auto; }
.max-w-sm { max-width: 480px; }
.max-w-md { max-width: 640px; }
.max-w-lg { max-width: 800px; }
.max-w-xl { max-width: 1024px; }
.min-w-0 { min-width: 0; }

/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* Visibility */
.hidden { display: none !important; }
.visible { visibility: visible; }
.invisible { visibility: hidden; }

/* Borders & Radius */
.rounded { border-radius: var(--radius); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-full { border-radius: 50%; }
.border { border: 1px solid var(--c-border); }
.border-t { border-top: 1px solid var(--c-border); }
.border-b { border-bottom: 1px solid var(--c-border); }
.border-l { border-left: 1px solid var(--c-border); }
.border-r { border-right: 1px solid var(--c-border); }
.border-none { border: none; }

/* Other utilities */
.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }
.cursor-pointer { cursor: pointer; }
.relative { position: relative; }
.absolute { position: absolute; }
.sticky { position: sticky; }
.z-10 { z-index: 10; }
.z-50 { z-index: 50; }
.z-100 { z-index: 100; }
.shadow { box-shadow: var(--shadow); }
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-none { box-shadow: none; }
.transition { transition: all var(--dur) var(--ease); }
.no-select { user-select: none; }

/* Responsive visibility */
@media (max-width: 768px) {
  .hide-mobile { display: none !important; }
}

@media (min-width: 769px) {
  .hide-desktop { display: none !important; }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .hide-tablet { display: none !important; }
}

/* ============================================================
   DARK MODE — Additional component refinements
   ============================================================ */
body.dark-mode .cat-section {
  background: var(--c-surface);
  box-shadow: var(--shadow-sm);
}

body.dark-mode .paired-categories__col {
  background: var(--c-surface);
}

body.dark-mode .widget {
  background: var(--c-surface);
}

body.dark-mode .card {
  background: var(--c-surface);
}

body.dark-mode .card--cat-list:hover {
  background: rgba(255,255,255,.03);
}

body.dark-mode .cat-section__header {
  border-bottom-color: var(--c-border);
}

body.dark-mode .sticky-nav {
  background: #1a1a1a;
}

body.dark-mode .article-content pre {
  background: #111;
}

body.dark-mode .article-content code {
  background: rgba(255,255,255,.08);
}

body.dark-mode .cookie-bar {
  background: var(--c-surface);
}

body.dark-mode .bottom-nav {
  box-shadow: 0 -1px 8px rgba(0,0,0,.4);
}

body.dark-mode .footer-bottom {
  border-top-color: rgba(255,255,255,.08);
}

body.dark-mode .skeleton {
  background: #2a2d33;
}

body.dark-mode .article-tags a {
  background: var(--c-border);
  border-color: transparent;
  color: var(--c-text-secondary);
}

body.dark-mode .article-nav__item {
  background: var(--c-border);
}

body.dark-mode .form-group input,
body.dark-mode .form-group textarea {
  background: var(--c-bg);
  border-color: var(--c-border);
}

body.dark-mode .search-bar input {
  background: var(--c-surface);
  border-color: var(--c-border);
  color: var(--c-text);
}

body.dark-mode .mobile-menu {
  background: var(--c-surface);
}

body.dark-mode .mobile-menu__overlay {
  background: rgba(0,0,0,.7);
}