/* =========================================================
   SabeelConnect — Frontend Design System
   Color Palette:
     --primary:      #003314  (Forest Green)
     --primary-dark: #001f0d
     --primary-mid:  #1a5c32
     --accent:       #C9A84C  (Golden)
     --accent-light: #e8d5a3
     --surface:      #f5f9f5  (Off-white green tint)
     --text:         #1a2e1a
     --muted:        #5a7a62
     --border:       #d4e6d6

   Fonts:
     Headings: Playfair Display (Google Fonts)
     Body:     Inter (Google Fonts)
========================================================= */

/* ─── CSS Custom Properties ────────────────────────────── */
:root {
  --primary:       #003314;
  --primary-dark:  #001f0d;
  --primary-mid:   #1a5c32;
  --primary-light: #2d7a50;
  --accent:        #C9A84C;
  --accent-dark:   #a8872e;
  --accent-light:  #f0dfa0;
  --accent-pale:   #fdf8eb;
  --surface:       #f5f9f5;
  --surface-2:     #eaf2eb;
  --white:         #ffffff;
  --text:          #1a2e1a;
  --text-muted:    #5a7a62;
  --border:        #d4e6d6;
  --border-light:  #e8f2e9;
  --shadow-sm:     0 1px 3px rgba(0,51,20,.08);
  --shadow-md:     0 4px 16px rgba(0,51,20,.12);
  --shadow-lg:     0 8px 32px rgba(0,51,20,.16);
  --radius-sm:     4px;
  --radius:        8px;
  --radius-lg:     16px;
  --radius-xl:     24px;
  --transition:    all 0.3s ease;
  --font-heading:  'Playfair Display', Georgia, serif;
  --font-body:     'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --container:     1200px;
  --header-h:      72px;
}

/* Dark Theme — proper dark gray/charcoal, NOT green-tinted */
[data-theme="dark"] {
  --primary:       #4caf7d;
  --primary-dark:  #2e7d52;
  --primary-mid:   #66bb8e;
  --primary-light: #81c99f;
  --surface:       #1a1a1a;
  --surface-2:     #242424;
  --white:         #121212;
  --text:          #e8e8e8;
  --text-muted:    #9a9a9a;
  --border:        #2e2e2e;
  --border-light:  #262626;
  --accent-pale:   #2a2416;
  --shadow-sm:     0 1px 3px rgba(0,0,0,.4);
  --shadow-md:     0 4px 16px rgba(0,0,0,.5);
  --shadow-lg:     0 8px 32px rgba(0,0,0,.6);
}

/* ─── Reset & Base ──────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background-color: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.3s, color 0.3s;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text);
  line-height: 1.3;
  font-weight: 700;
  margin-bottom: 0;
  word-break: break-word;
}

h1 { font-size: clamp(2rem,   4vw, 2.75rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 1.75rem); }
h4 { font-size: clamp(1.2rem, 2vw,  1.4rem); }
h5 { font-size: 1.15rem; }
h6 { font-size: 1rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--primary-mid);
  text-decoration: none;
  transition: color 0.25s;
}
a:hover { color: var(--accent); }

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

ul, ol { list-style: none; margin: 0; padding: 0; }

.list-inline li { display: inline-block; }

input, textarea, select, button { font-family: var(--font-body); }

.container-fluid {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}

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

/* ─── Page Loader ───────────────────────────────────────── */
.loader {
  position: fixed;
  inset: 0;
  background: var(--primary);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.loader.loaded {
  opacity: 0;
  visibility: hidden;
}
.loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.loader-logo img { filter: brightness(0) invert(1); }
.loader-dots {
  display: flex;
  gap: 8px;
}
.loader-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: loader-bounce 0.8s infinite alternate;
}
.loader-dots span:nth-child(2) { animation-delay: 0.15s; }
.loader-dots span:nth-child(3) { animation-delay: 0.3s; }

@keyframes loader-bounce {
  from { transform: translateY(0); opacity: 0.5; }
  to   { transform: translateY(-10px); opacity: 1; }
}

/* ─── Back to Top ───────────────────────────────────────── */
.back-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition);
  z-index: 500;
  box-shadow: var(--shadow-md);
}
.back-top.visible {
  opacity: 1;
  transform: translateY(0);
}
.back-top:hover {
  background: var(--accent);
}
.back-top i { font-size: 1.1rem; }

/* ─── Search Overlay ────────────────────────────────────── */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,51,20,.96);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.search-overlay.active {
  opacity: 1;
  visibility: visible;
}
.search-overlay-inner {
  width: 100%;
  max-width: 680px;
  padding: 40px 24px;
  text-align: center;
}
.search-label {
  color: rgba(255,255,255,.6);
  font-size: .875rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.search-overlay-form {
  display: flex;
  gap: 12px;
  align-items: center;
}
.search-input-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--radius);
  padding: 0 16px;
  gap: 12px;
}
.search-input-wrap i { color: rgba(255,255,255,.5); font-size: 1.1rem; }
.search-input-wrap input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 1.1rem;
  padding: 16px 0;
}
.search-input-wrap input::placeholder { color: rgba(255,255,255,.4); }
.btn-search-go {
  width: 52px;
  height: 52px;
  background: var(--accent);
  border: none;
  border-radius: var(--radius);
  color: var(--primary-dark);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}
.btn-search-go:hover { background: #fff; }
.search-close {
  position: absolute;
  top: 24px;
  right: 30px;
  background: rgba(255,255,255,.1);
  border: none;
  color: rgba(255,255,255,.7);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  transition: var(--transition);
}
.search-close:hover { background: rgba(255,255,255,.2); color: #fff; }

/* ─── Header ────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  background: var(--white);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: box-shadow 0.3s, background 0.3s;
}
.site-header.scrolled {
  box-shadow: var(--shadow-md);
}
[data-theme="dark"] .site-header {
  background: var(--surface);
  border-bottom-color: var(--border);
}

.header-inner {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}

/* Logo */
.site-logo {
  flex-shrink: 0;
}
.site-logo img {
  height: 42px;
  width: auto;
  display: block;
}
.logo-light { display: block !important; }
.logo-dark  { display: none  !important; }
[data-theme="dark"] .logo-light { display: none  !important; }
[data-theme="dark"] .logo-dark  { display: block !important; }

/* Nav */
.site-nav {
  flex: 1;
  display: flex;
  align-items: center;
}
.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
}
.nav-list li a {
  display: block;
  padding: 6px 14px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--text);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  white-space: nowrap;
}
.nav-list li a:hover,
.nav-list li a.active {
  color: var(--primary);
  background: var(--surface);
}
[data-theme="dark"] .nav-list li a:hover,
[data-theme="dark"] .nav-list li a.active {
  color: var(--accent);
  background: rgba(255,255,255,.05);
}

/* Header Right */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.header-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  border: none;
  background: transparent;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1.1rem;
}
.header-icon-btn:hover {
  background: var(--surface-2);
  color: var(--primary);
}

/* Theme Toggle */
.theme-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}
.theme-switch input { display: none; }
.theme-track {
  width: 40px;
  height: 22px;
  background: var(--border);
  border-radius: 11px;
  position: relative;
  transition: background 0.3s;
}
.theme-switch input:checked ~ .theme-track { background: var(--primary); }
.theme-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  background: white;
  border-radius: 50%;
  transition: transform 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.theme-switch input:checked ~ .theme-track .theme-thumb { transform: translateX(18px); }
.theme-icon { font-size: 9px; color: var(--accent); }

/* CTA Button */
.btn-header-cta {
  padding: 7px 18px;
  background: var(--primary);
  color: #fff;
  font-size: .875rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 2px solid var(--primary);
  transition: var(--transition);
  white-space: nowrap;
}
.btn-header-cta:hover {
  background: transparent;
  color: var(--primary);
}
[data-theme="dark"] .btn-header-cta { border-color: var(--primary); }

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  width: 38px;
  height: 38px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* Mobile Nav */
.mobile-nav {
  display: none;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 12px 20px 20px;
}
[data-theme="dark"] .mobile-nav { background: var(--surface); }
.mobile-nav .nav-list { flex-direction: column; align-items: flex-start; gap: 2px; }
.mobile-nav .nav-list li { width: 100%; }
.mobile-nav .nav-list li a { padding: 10px 12px; display: block; }

/* ─── Main Content offset for fixed header ──────────────── */
#main-content {
  padding-top: var(--header-h);
}

/* ─── Section Titles ────────────────────────────────────── */
.section-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}
.section-head-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}
.section-head h2,
.section-head h3 {
  white-space: nowrap;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--primary);
}
[data-theme="dark"] .section-head h2,
[data-theme="dark"] .section-head h3 { color: var(--accent); }

.section-title {
  margin-bottom: 32px;
}
.section-title h3 {
  color: var(--primary);
  position: relative;
  padding-bottom: 12px;
}
.section-title h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 48px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}
.section-title p {
  color: var(--text-muted);
  margin-top: 8px;
  font-size: .9rem;
}

/* ─── Buttons ───────────────────────────────────────────── */
.btn-primary-custom {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: var(--primary);
  color: #fff;
  font-size: .9rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 2px solid var(--primary);
  cursor: pointer;
  transition: var(--transition);
}
.btn-primary-custom:hover {
  background: transparent;
  color: var(--primary);
}

.btn-accent {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: var(--accent);
  color: var(--primary-dark);
  font-size: .9rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 2px solid var(--accent);
  cursor: pointer;
  transition: var(--transition);
}
.btn-accent:hover {
  background: transparent;
  color: var(--accent);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: transparent;
  color: var(--primary);
  font-size: .875rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 1.5px solid var(--primary);
  cursor: pointer;
  transition: var(--transition);
}
.btn-ghost:hover {
  background: var(--primary);
  color: #fff;
}

/* Backwards compat with old class names */
.btn-custom { @extend .btn-primary-custom; }
.btn-subscribe {
  display: inline-flex;
  align-items: center;
  padding: 7px 18px;
  background: var(--primary);
  color: #fff;
  font-size: .875rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 2px solid var(--primary);
  transition: var(--transition);
}
.btn-subscribe:hover {
  background: transparent;
  color: var(--primary);
}
.btn-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .875rem;
  font-weight: 600;
  color: var(--primary);
  transition: var(--transition);
}
.btn-read-more i {
  transition: transform 0.3s;
  font-size: 1.1rem;
}
.btn-read-more:hover { color: var(--accent); }
.btn-read-more:hover i { transform: translateX(5px); }

.btn-reply {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .8rem;
  font-weight: 500;
  color: var(--text-muted);
  border: none;
  background: none;
  cursor: pointer;
  transition: var(--transition);
}
.btn-reply:hover { color: var(--primary); }

.btn-submit {
  width: 40px;
  height: 40px;
  background: var(--primary);
  border: none;
  border-radius: var(--radius-sm);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}
.btn-submit:hover { background: var(--accent); }
.btn-submit i { font-size: .9rem; }

/* ─── Category Badge ─────────────────────────────────────── */
.category-badge {
  display: inline-block;
  padding: 3px 12px;
  background: var(--accent-pale);
  color: var(--accent-dark);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 100px;
  border: 1px solid var(--accent-light);
  transition: var(--transition);
}
.category-badge:hover {
  background: var(--accent);
  color: var(--primary-dark);
  border-color: var(--accent);
}

.category-style-1, .category-style-2 { @extend .category-badge; }

/* ─── Hero / Featured Slider ─────────────────────────────── */
.hero-slider-section {
  position: relative;
  overflow: hidden;
}
.hero-slide {
  position: relative;
  height: 520px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,.1) 0%,
    rgba(0,51,20,.7) 60%,
    rgba(0,51,20,.92) 100%
  );
  z-index: 1;
}
/* Islamic pattern overlay on hero */
.hero-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('/assets/patterns/1.svg');
  background-size: 320px;
  opacity: .04;
  z-index: 1;
  pointer-events: none;
}
.hero-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 48px;
}
.hero-content .category-badge { margin-bottom: 14px; }
.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: #fff;
  line-height: 1.25;
  margin-bottom: 16px;
}
.hero-title a { color: inherit; }
.hero-title a:hover { color: var(--accent-light); }
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.hero-meta a,
.hero-meta span {
  color: rgba(255,255,255,.8);
  font-size: .82rem;
}
.hero-meta .meta-sep { color: rgba(255,255,255,.35); }

/* Owl Carousel Dots */
.hero-slider-section .owl-dots {
  position: absolute;
  bottom: 24px;
  left: 48px;
  z-index: 10;
}
.hero-slider-section .owl-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: rgba(255,255,255,.4);
  border-radius: 50%;
  margin-right: 6px;
  cursor: pointer;
  transition: var(--transition);
}
.hero-slider-section .owl-dot.active {
  background: var(--accent);
  width: 24px;
  border-radius: 4px;
}

/* ─── Categories Strip ───────────────────────────────────── */
.categories-strip {
  padding: 40px 0;
  background: var(--surface);
  border-block: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.categories-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('/assets/patterns/4.svg');
  background-size: 280px;
  opacity: .025;
  pointer-events: none;
}
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 16px;
}
.cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 12px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
}
.cat-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.cat-card:hover .cat-name { color: var(--primary); }
.cat-img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-light);
}
.cat-name {
  font-size: .8rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  transition: color 0.25s;
}
.cat-count {
  font-size: .72rem;
  color: var(--text-muted);
  background: var(--surface);
  padding: 2px 8px;
  border-radius: 100px;
}

/* ─── Main Layout ───────────────────────────────────────── */
.main-layout {
  padding: 56px 0;
}
.content-col { }
.sidebar-col { }

/* ─── Post Cards ─────────────────────────────────────────── */
.post-card {
  display: flex;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition);
}
.post-card:first-child { padding-top: 0; }
.post-card:last-child { border-bottom: none; }
.post-card:hover .post-card-img img { transform: scale(1.04); }
.post-card:hover .post-card-title a { color: var(--primary); }

.post-card-img {
  flex-shrink: 0;
  width: 200px;
  height: 140px;
  overflow: hidden;
  border-radius: var(--radius);
}
.post-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.post-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}
.post-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.post-card-date {
  font-size: .78rem;
  color: var(--text-muted);
}
.meta-sep { color: var(--border); }

.post-card-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
}
.post-card-title a { color: var(--text); transition: color 0.25s; }

.post-card-excerpt {
  font-size: .875rem;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.post-card-read-time {
  font-size: .78rem;
  color: var(--text-muted);
}

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

.widget {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: var(--transition);
}
[data-theme="dark"] .widget { background: var(--surface); }

.widget-title {
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-light);
}
.widget-title h5 {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--primary);
  position: relative;
}
[data-theme="dark"] .widget-title h5 { color: var(--accent); }
.widget-title h5::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin-right: 8px;
  vertical-align: middle;
  position: relative;
  top: -1px;
}

/* Sidebar Search */
.widget-search {
  display: flex;
  gap: 8px;
}
.widget-search input {
  flex: 1;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: .875rem;
  color: var(--text);
  background: var(--surface);
  outline: none;
  transition: border-color 0.25s;
}
.widget-search input:focus { border-color: var(--primary); }
[data-theme="dark"] .widget-search input { background: var(--surface-2); border-color: var(--border); color: var(--text); }

/* Sidebar Categories */
.widget-categories {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sidebar-cat-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  color: var(--text);
}
.sidebar-cat-item:hover {
  background: var(--surface);
  color: var(--primary);
}
.sidebar-cat-item img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.sidebar-cat-item span { font-size: .875rem; font-weight: 500; flex: 1; }

/* Popular Posts Widget */
.widget-popular-posts { display: flex; flex-direction: column; gap: 14px; }
.small-post {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.small-post-image {
  position: relative;
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.small-post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.small-post:hover .small-post-image img { transform: scale(1.08); }
.small-post-image .nb {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 20px;
  height: 20px;
  background: var(--accent);
  color: var(--primary-dark);
  font-size: .68rem;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.small-post-content { flex: 1; min-width: 0; }
.small-post-content p {
  font-size: .82rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.small-post-content p a { color: var(--text); }
.small-post-content p a:hover { color: var(--primary); }
.small-post-content small {
  font-size: .72rem;
  color: var(--text-muted);
}
.small-post-content .slash { display: inline-block; width: 4px; height: 4px; background: var(--border); border-radius: 50%; vertical-align: middle; margin: 0 4px; }

/* Social Widget */
.widget-social { display: flex; flex-direction: column; gap: 8px; }
.social-follow-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: .875rem;
  font-weight: 600;
  transition: var(--transition);
}
.social-follow-item:hover { filter: brightness(1.1); transform: translateX(2px); }
.social-follow-item i { font-size: 1rem; }

/* Tags Widget */
.widget-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-pill {
  display: inline-block;
  padding: 4px 14px;
  background: var(--surface);
  color: var(--text-muted);
  font-size: .78rem;
  font-weight: 500;
  border-radius: 100px;
  border: 1px solid var(--border);
  transition: var(--transition);
}
.tag-pill:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ─── Pagination ─────────────────────────────────────────── */
.pagination-area {
  padding-top: 40px;
  padding-bottom: 40px;
  text-align: center;
}
.pagination-list ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
}
.pagination-list ul li a,
.pagination-list ul li span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .875rem;
  font-weight: 600;
  color: var(--text);
  transition: var(--transition);
}
.pagination-list ul li span.active,
.pagination-list ul li a.active,
.pagination-list ul li a:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ─── Single Post ─────────────────────────────────────────── */
.post-single {
  padding: 48px 0;
}
.post-single-hero {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 40px;
  max-height: 480px;
}
.post-single-hero img {
  width: 100%;
  height: 480px;
  object-fit: cover;
}
.post-single-header {
  margin-bottom: 32px;
}
.post-single-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  margin-bottom: 20px;
  line-height: 1.25;
}
.post-meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
}
.post-meta-author {
  display: flex;
  align-items: center;
  gap: 10px;
}
.post-meta-author img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
}
.post-meta-author a {
  font-weight: 600;
  font-size: .875rem;
  color: var(--text);
}
.post-meta-author a:hover { color: var(--primary); }
.post-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .82rem;
  color: var(--text-muted);
}
.post-meta-item i { color: var(--primary-mid); }
.post-meta-sep { color: var(--border); }

/* Post Tools Bar: Listen (TTS/audio) + Language Switch */
.post-tools-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}
.post-audio-player { display: flex; align-items: center; }
.tts-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s ease;
}
.tts-btn:hover { background: var(--primary-mid); }
.tts-btn i { font-size: 1.1rem; }
.tts-custom-audio {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 8px 14px;
}
.tts-custom-audio i { color: var(--primary-mid); font-size: 1.2rem; }
.tts-custom-audio audio { height: 34px; max-width: 320px; }
.post-lang-switch {
  display: flex;
  align-items: center;
  gap: 8px;
}
.post-lang-switch i { color: var(--primary-mid); font-size: 1.2rem; }
.lang-select {
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--text);
  font-size: .875rem;
  font-weight: 500;
  cursor: pointer;
}

/* Post Content Typography */
.post-content {
  line-height: 1.85;
  font-size: 1.05rem;
  color: var(--text);
}
.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4 {
  margin-top: 2em;
  margin-bottom: .75em;
}
.post-content h2 { font-size: 1.65rem; color: var(--primary); }
.post-content h3 { font-size: 1.35rem; }
.post-content p { margin-bottom: 1.4em; }
.post-content a { color: var(--primary-mid); text-decoration: underline; }
.post-content a:hover { color: var(--accent-dark); }
.post-content blockquote {
  border-left: 4px solid var(--accent);
  background: var(--accent-pale);
  padding: 16px 20px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5em 0;
  font-style: italic;
  color: var(--text);
}
.post-content img {
  border-radius: var(--radius);
  margin: 1.5em 0;
}
.post-content ul, .post-content ol {
  padding-left: 1.5em;
  margin-bottom: 1.4em;
}
.post-content ul { list-style: disc; }
.post-content ol { list-style: decimal; }
.post-content li { margin-bottom: .5em; }
.post-content pre {
  background: var(--primary-dark);
  color: #e8f5e9;
  padding: 20px;
  border-radius: var(--radius);
  overflow-x: auto;
  font-size: .875rem;
  margin: 1.5em 0;
}
.post-content code {
  background: var(--surface-2);
  color: var(--primary);
  padding: 2px 6px;
  border-radius: 3px;
  font-size: .875em;
}
.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: .9rem;
}
.post-content th { background: var(--primary); color: #fff; padding: 10px 14px; text-align: left; }
.post-content td { border: 1px solid var(--border); padding: 8px 14px; }
.post-content tr:nth-child(even) td { background: var(--surface); }

/* RTL Article Translations (Urdu, Arabic, Persian, etc.) */
.post-single-header[dir="rtl"] { text-align: right; }
.post-single-header[dir="rtl"] .post-meta-bar,
.post-single-header[dir="rtl"] .post-tools-bar { direction: rtl; }
.post-content[dir="rtl"] {
  direction: rtl;
  text-align: right;
  font-family: 'Noto Nastaliq Urdu', 'Noto Naskh Arabic', 'Segoe UI', Tahoma, sans-serif;
  line-height: 2.3;
  font-size: 1.15rem;
}
.post-content[dir="rtl"] blockquote {
  border-left: none;
  border-right: 4px solid var(--accent);
  border-radius: var(--radius) 0 0 var(--radius);
}
.post-content[dir="rtl"] ul, .post-content[dir="rtl"] ol {
  padding-left: 0;
  padding-right: 1.5em;
}
.post-content[dir="rtl"] th { text-align: right; }

/* Post Tags & Share */
.post-bottom {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--border-light);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.post-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.post-tags-label { font-size: .8rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.post-share { display: flex; align-items: center; gap: 8px; }
.post-share-label { font-size: .8rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.share-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: .9rem;
  transition: var(--transition);
  border: none;
}
.share-btn:hover { transform: translateY(-2px); filter: brightness(1.1); color: #fff; }
.share-fb   { background: #1877f2; }
.share-tw   { background: #1da1f2; }
.share-wa   { background: #25d366; }
.share-li   { background: #0077b5; }
.share-copy { background: var(--primary); cursor: pointer; }

/* Author Box */
.author-box {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 28px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  margin-top: 40px;
}
.author-box-img {
  flex-shrink: 0;
}
.author-box-img img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border);
}
.author-box-info { flex: 1; }
.author-box-info h5 { margin-bottom: 4px; }
.author-box-info a { color: var(--primary-mid); font-size: .9rem; }
.author-box-info p { color: var(--text-muted); font-size: .875rem; margin-top: 8px; }
.author-social { display: flex; gap: 8px; margin-top: 10px; }
.author-social a {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: .8rem;
  transition: var(--transition);
}
.author-social a:hover { background: var(--primary); color: #fff; }

/* ─── Related Posts ───────────────────────────────────────── */
.related-posts { margin-top: 48px; }
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 24px;
  margin-top: 24px;
}
.related-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-light);
  transition: var(--transition);
  background: var(--white);
}
.related-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.related-card-img {
  height: 160px;
  overflow: hidden;
}
.related-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.related-card:hover .related-card-img img { transform: scale(1.05); }
.related-card-body { padding: 16px; }
.related-card-title {
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.35;
  margin-top: 8px;
}
.related-card-title a { color: var(--text); }
.related-card-title a:hover { color: var(--primary); }

/* ─── Comments ───────────────────────────────────────────── */
.post-single-comments {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--border-light);
}
.post-single-comments > h4 {
  font-size: 1.3rem;
  margin-bottom: 28px;
  color: var(--primary);
}
.comments { display: flex; flex-direction: column; gap: 0; }
.comment-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--border-light);
}
.comment-item:last-child { border-bottom: none; }
.comment-item .d-flex { gap: 14px; }
.comment-item > .d-flex > img,
.comment-item img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--border-light);
}
.comment-item .content { flex: 1; }
.comment-item .meta ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.comment-item .meta ul li { font-size: .82rem; }
.comment-item .meta a { font-weight: 600; color: var(--text); }
.comment-item .meta a:hover { color: var(--primary); }
.comment-item .meta .slash {
  display: inline-block;
  width: 4px;
  height: 4px;
  background: var(--border);
  border-radius: 50%;
  vertical-align: middle;
}
.comment-item .meta li:last-child { color: var(--text-muted); }
.comment-item p { font-size: .9rem; color: var(--text); margin-bottom: 8px; }
.comments.replies { padding-left: 24px; }

/* Comment Form */
.comments-form {
  margin-top: 40px;
  padding: 32px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
}
.comments-form h4 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: var(--primary);
}
.comments-form .form-hint {
  font-size: .8rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.form-group { margin-bottom: 16px; }
.form-control {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .9rem;
  color: var(--text);
  background: var(--white);
  outline: none;
  transition: border-color 0.25s;
  font-family: var(--font-body);
}
.form-control:focus { border-color: var(--primary); }
[data-theme="dark"] .form-control { background: var(--surface-2); border-color: var(--border); color: var(--text); }
textarea.form-control { resize: vertical; min-height: 110px; }
.form-control::placeholder { color: var(--text-muted); opacity: 0.6; }

/* ─── Auth Pages ─────────────────────────────────────────── */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: stretch;
}
.auth-visual {
  flex: 1;
  background: var(--primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px;
  position: relative;
  overflow: hidden;
}
.auth-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('/assets/patterns/1.svg');
  background-size: 300px;
  opacity: .06;
}
.auth-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(201,168,76,.15) 100%);
}
.auth-visual-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
}
.auth-visual-content img { height: 60px; margin: 0 auto 28px; filter: brightness(0) invert(1); }
.auth-visual-content h2 { color: #fff; margin-bottom: 12px; font-size: 1.8rem; }
.auth-visual-content p { color: rgba(255,255,255,.7); font-size: .95rem; }

.auth-form-wrap {
  width: 480px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 56px;
}
.auth-form-wrap .auth-logo { display: none; margin-bottom: 24px; }
.auth-form-header { margin-bottom: 28px; }
.auth-form-header h3 { font-size: 1.6rem; color: var(--primary); margin-bottom: 6px; }
.auth-form-header p { font-size: .875rem; color: var(--text-muted); }
.auth-form-footer {
  margin-top: 20px;
  text-align: center;
  font-size: .875rem;
  color: var(--text-muted);
}
.auth-form-footer a { color: var(--primary); font-weight: 600; }

/* ─── Footer ─────────────────────────────────────────────── */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,.8);
  position: relative;
  overflow: hidden;
}
.footer-pattern {
  position: absolute;
  inset: 0;
  background-image: url('/assets/patterns/1.svg');
  background-size: 280px;
  opacity: .06;
  pointer-events: none;
  z-index: 0;
}
.footer-body {
  position: relative;
  z-index: 1;
  padding: 64px 0 40px;
}
.footer-brand { margin-bottom: 16px; }
.footer-brand img { height: 44px; filter: brightness(0) invert(1); }
.footer-tagline {
  font-size: .875rem;
  color: rgba(255,255,255,.55);
  line-height: 1.6;
  max-width: 300px;
  margin-top: 12px;
}
.footer-col-title {
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: .875rem;
  color: rgba(255,255,255,.6);
  transition: var(--transition);
}
.footer-links a:hover { color: var(--accent); padding-left: 4px; }
.footer-social { display: flex; gap: 8px; flex-wrap: wrap; }
.footer-social-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.7);
  font-size: .85rem;
  transition: var(--transition);
}
.footer-social-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--primary-dark);
}
.footer-bottom {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 18px 0;
}
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copyright {
  font-size: .8rem;
  color: rgba(255,255,255,.4);
}
.footer-bottom-links { display: flex; gap: 16px; }
.footer-bottom-links a {
  font-size: .8rem;
  color: rgba(255,255,255,.4);
  transition: var(--transition);
}
.footer-bottom-links a:hover { color: var(--accent); }

/* Golden accent bar at top of footer */
.footer-accent-bar {
  height: 4px;
  background: linear-gradient(90deg, var(--primary-light), var(--accent), var(--primary-light));
}

/* ─── Alert / Flash Messages ─────────────────────────────── */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: .875rem;
  margin-bottom: 16px;
}
.alert-success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}
.alert-danger {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}
[data-theme="dark"] .alert-success { background: #0d3321; color: #5fcf80; border-color: #1a5c32; }
[data-theme="dark"] .alert-danger { background: #3d1019; color: #f4a0a8; border-color: #5c1a22; }

/* Badge */
.badge {
  display: inline-block;
  padding: 2px 8px;
  font-size: .72rem;
  font-weight: 700;
  border-radius: 100px;
}
.bg-success { background: var(--primary) !important; color: #fff; }

/* ─── Forms Global ────────────────────────────────────────── */
.row { display: flex; flex-wrap: wrap; margin-inline: -10px; }
.col-md-6 { flex: 0 0 50%; max-width: 50%; padding-inline: 10px; }
.col-md-12, .col-lg-12 { flex: 0 0 100%; max-width: 100%; padding-inline: 10px; }
.col-lg-8 { flex: 0 0 66.666%; max-width: 66.666%; padding-inline: 10px; }
.col-lg-4 { flex: 0 0 33.333%; max-width: 33.333%; padding-inline: 10px; }

/* ─── Utility ─────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-muted  { color: var(--text-muted); }
.text-white  { color: #fff; }
.mt-2 { margin-top: 8px; }
.mb-2 { margin-bottom: 8px; }
.mt-3 { margin-top: 16px; }
.mb-3 { margin-bottom: 16px; }
.d-flex { display: flex; }
.align-items-center { align-items: center; }
.justify-content-between { justify-content: space-between; }
.ml-2 { margin-left: 8px; }
.ml-3 { margin-left: 16px; }
.ml-md-5 { margin-left: 40px; }
.ml-3.ml-md-5 { margin-left: 24px; }
.gap-2 { gap: 8px; }
.w-100 { width: 100%; }

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 1100px) {
  .container-fluid { padding-inline: 16px; }
}

@media (max-width: 991px) {
  .col-lg-8 { flex: 0 0 100%; max-width: 100%; }
  .col-lg-4 { flex: 0 0 100%; max-width: 100%; }
  .post-card-img { width: 140px; height: 110px; }
  .hero-slide { height: 400px; }
  .hero-content { padding: 28px; }
  .hero-title { font-size: 1.6rem; }
  .auth-visual { display: none; }
  .auth-form-wrap { width: 100%; padding: 40px 24px; }
  .auth-form-wrap .auth-logo { display: block; }
  .auth-page { min-height: auto; padding: var(--header-h) 0 40px; }
  .site-nav { display: none; }
  .nav-toggle { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767px) {
  :root { --header-h: 60px; }
  .col-md-6 { flex: 0 0 100%; max-width: 100%; }
  .post-card { flex-direction: column; }
  .post-card-img { width: 100%; height: 200px; }
  .hero-slide { height: 320px; }
  .hero-content { padding: 20px; }
  .post-meta-bar { gap: 10px; }
  .post-tools-bar { flex-direction: column; align-items: flex-start; }
  .post-bottom { flex-direction: column; align-items: flex-start; }
  .author-box { flex-direction: column; }
  .comments-form { padding: 20px; }
  .footer-grid { grid-template-columns: 1fr; }
  .categories-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
  .back-top { bottom: 20px; right: 20px; }
}

@media (max-width: 576px) {
  .hero-title { font-size: 1.35rem; }
  .search-overlay-inner { padding: 24px 16px; }
  .auth-form-wrap { padding: 32px 20px; }
  .post-single-hero img { height: 220px; }
  .related-grid { grid-template-columns: 1fr; }
}

/* ─── Dark Mode Overrides — dark gray/charcoal palette ──── */
[data-theme="dark"] body { background: #121212; color: var(--text); }
[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6 { color: #e8e8e8; }
[data-theme="dark"] a { color: var(--primary); }
[data-theme="dark"] a:hover { color: var(--accent); }

/* Header */
[data-theme="dark"] .site-header { background: #1a1a1a; border-bottom-color: #2e2e2e; }
[data-theme="dark"] .nav-list li a { color: #d0d0d0; }
[data-theme="dark"] .nav-list li a:hover,
[data-theme="dark"] .nav-list li a.active { background: #242424; color: var(--accent); }
[data-theme="dark"] .header-icon-btn { color: #888; }
[data-theme="dark"] .header-icon-btn:hover { background: #2a2a2a; color: #e8e8e8; }
[data-theme="dark"] .mobile-nav { background: #1a1a1a; border-top-color: #2e2e2e; }

/* Footer stays forest green — it's intentionally branded */
[data-theme="dark"] .site-footer { background: #0a1a0d; }

/* Cards & Surfaces */
[data-theme="dark"] .categories-strip { background: #1a1a1a; border-color: #2e2e2e; }
[data-theme="dark"] .cat-card { background: #242424; border-color: #2e2e2e; }
[data-theme="dark"] .cat-card:hover { border-color: var(--accent); }
[data-theme="dark"] .cat-name { color: #d0d0d0; }
[data-theme="dark"] .post-card { border-color: #2e2e2e; }
[data-theme="dark"] .post-card-title a { color: #e0e0e0; }
[data-theme="dark"] .post-card-excerpt { color: #888; }
[data-theme="dark"] .related-card { background: #1e1e1e; border-color: #2e2e2e; }
[data-theme="dark"] .related-card-title a { color: #e0e0e0; }

/* Post */
[data-theme="dark"] .post-meta-bar { background: #1e1e1e; border-color: #2e2e2e; }
[data-theme="dark"] .post-meta-item { color: #888; }
[data-theme="dark"] .post-content { color: #d0d0d0; }
[data-theme="dark"] .post-content h2 { color: var(--primary); }
[data-theme="dark"] .post-content blockquote { background: #1e1e1e; border-left-color: var(--accent); }
[data-theme="dark"] .post-content code { background: #2a2a2a; color: var(--primary); }
[data-theme="dark"] .post-content pre { background: #111; }
[data-theme="dark"] .post-content th { background: #003314; }
[data-theme="dark"] .post-content tr:nth-child(even) td { background: #1e1e1e; }
[data-theme="dark"] .post-content td { border-color: #2e2e2e; }
[data-theme="dark"] .post-bottom { border-color: #2e2e2e; }
[data-theme="dark"] .post-content[dir="rtl"] blockquote { border-right-color: var(--accent); }
[data-theme="dark"] .tts-custom-audio { background: #1e1e1e; border-color: #2e2e2e; }
[data-theme="dark"] .lang-select { background: #1e1e1e; color: #d0d0d0; border-color: #2e2e2e; }

/* Author & Comments */
[data-theme="dark"] .author-box { background: #1e1e1e; border-color: #2e2e2e; }
[data-theme="dark"] .author-social a { background: #2a2a2a; color: #888; }
[data-theme="dark"] .post-single-comments { border-color: #2e2e2e; }
[data-theme="dark"] .comment-item { border-color: #2e2e2e; }
[data-theme="dark"] .comment-item p { color: #d0d0d0; }
[data-theme="dark"] .comments-form { background: #1e1e1e; border-color: #2e2e2e; }
[data-theme="dark"] .form-control { background: #2a2a2a; border-color: #3a3a3a; color: #e0e0e0; }
[data-theme="dark"] .form-control:focus { border-color: var(--primary); }

/* Sidebar */
[data-theme="dark"] .widget { background: #1e1e1e; border-color: #2e2e2e; }
[data-theme="dark"] .widget-title { border-color: #2e2e2e; }
[data-theme="dark"] .sidebar-cat-item { color: #d0d0d0; }
[data-theme="dark"] .sidebar-cat-item:hover { background: #2a2a2a; }
[data-theme="dark"] .widget-search input { background: #2a2a2a; border-color: #3a3a3a; color: #e0e0e0; }
[data-theme="dark"] .small-post-content p a { color: #d0d0d0; }
[data-theme="dark"] .tag-pill { background: #242424; border-color: #2e2e2e; color: #888; }

/* Section titles */
[data-theme="dark"] .section-title h3 { color: var(--accent); }
[data-theme="dark"] .section-head h2,
[data-theme="dark"] .section-head h3 { color: var(--accent); }
[data-theme="dark"] .section-head-line { background: #2e2e2e; }

/* Auth */
[data-theme="dark"] .auth-form-wrap { background: #1a1a1a; }

/* Search overlay stays dark - already fine */
/* Back to top - stays green (brand element) */
