/* ============================================================
   DigiWS Blog — World-Class Premium Design System
   Inspired by: Medium, HubSpot, Vercel, Stripe, ThemeForest
   ============================================================ */

/* ── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800;900&family=Inter:wght@400;500;600;700&display=swap');

/* ── CSS Variables ────────────────────────────────────────── */
:root {
  --primary:       #2563EB;
  --primary-dark:  #1D4ED8;
  --primary-soft:  rgba(37,99,235,0.1);
  --secondary:     #4F46E5;
  --accent:        #06B6D4;
  --success:       #10B981;
  --warning:       #F59E0B;
  --danger:        #EF4444;
  --purple:        #8B5CF6;
  --pink:          #EC4899;

  --bg:            #F8FAFC;
  --bg-soft:       #EFF6FF;
  --surface:       #FFFFFF;
  --surface-2:     #F1F5F9;
  --border:        #E5E7EB;
  --border-soft:   rgba(229,231,235,0.6);

  --text:          #111827;
  --text-2:        #374151;
  --muted:         #6B7280;
  --muted-light:   #9CA3AF;

  --shadow-xs:     0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-sm:     0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -1px rgba(0,0,0,0.04);
  --shadow-md:     0 10px 25px -3px rgba(0,0,0,0.08), 0 4px 6px -2px rgba(0,0,0,0.04);
  --shadow-lg:     0 25px 50px -12px rgba(0,0,0,0.12);
  --shadow-xl:     0 35px 80px -15px rgba(0,0,0,0.15);
  --shadow-blue:   0 20px 40px rgba(37,99,235,0.18);
  --shadow-card:   0 2px 8px rgba(0,0,0,0.06), 0 0 0 1px rgba(0,0,0,0.04);

  --radius-sm:     10px;
  --radius:        16px;
  --radius-lg:     22px;
  --radius-xl:     32px;
  --radius-pill:   999px;

  --font-head:     'Poppins', 'Inter', system-ui, -apple-system, sans-serif;
  --font-body:     'Inter', 'Poppins', system-ui, -apple-system, sans-serif;

  --transition:    all 0.2s cubic-bezier(0.4,0,0.2,1);
  --transition-slow: all 0.4s cubic-bezier(0.4,0,0.2,1);

  --container:     1320px;
  --container-pad: clamp(24px, 6vw, 80px);
}

/* Dark Theme overrides for Blog */
[data-theme="dark"] {
  --primary:       #6366F1;
  --primary-dark:  #4F46E5;
  --primary-soft:  rgba(99,102,241,0.1);
  --secondary:     #8B5CF6;
  --accent:        #06B6D4;
  --bg:            #0A0A0F;
  --bg-soft:       #12121A;
  --surface:       #161622;
  --surface-2:     #1A1A2E;
  --border:        rgba(255, 255, 255, 0.06);
  --border-soft:   rgba(255, 255, 255, 0.04);
  --text:          #F1F5F9;
  --text-2:        #94A3B8;
  --muted:         #64748B;
  --muted-light:   #64748B;
  --shadow-card:   0 2px 8px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.06);
}

/* ── Base Reset ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ── Blog Container ───────────────────────────────────────── */
.blog-page { background: var(--bg); }
.blog-container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

/* ── Reading Progress Bar ─────────────────────────────────── */
.reading-progress-container {
  position: fixed; top: 0; left: 0; width: 100%; height: 3px;
  background: transparent; z-index: 99999;
}
.reading-progress-bar {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--purple));
  border-radius: 0 2px 2px 0;
  transition: width 0.08s linear;
}

/* ── Announcement Bar ─────────────────────────────────────── */
.blog-announcement {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, var(--accent) 100%);
  color: #fff; padding: 10px 0; overflow: hidden; position: relative;
}
.blog-announcement a { color: #fff; opacity: 0.9; font-weight: 500; font-size: 0.84rem; }
.blog-announcement a:hover { opacity: 1; }
.announcement-ticker {
  display: flex; align-items: center; gap: 48px;
  white-space: nowrap; font-size: 0.84rem; font-weight: 500;
  animation: ticker 28s linear infinite;
}
.announcement-ticker .ticker-sep { color: rgba(255,255,255,0.4); }
.announcement-ticker .ticker-badge {
  background: rgba(255,255,255,0.2); padding: 2px 10px; border-radius: 999px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.5px;
}
@keyframes ticker { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }

/* ── Section Helpers ──────────────────────────────────────── */
.blog-section { padding: 72px 0; }
.blog-section-sm { padding: 48px 0; }
.section-label {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 1.2px;
  text-transform: uppercase; color: var(--primary); margin-bottom: 12px;
}
.section-label::before {
  content: ''; display: block; width: 18px; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
}
.section-heading { margin-bottom: 40px; }
.section-heading h2 {
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800; color: var(--text); line-height: 1.15;
  letter-spacing: -0.03em;
}
.section-heading p { color: var(--muted); margin-top: 10px; font-size: 1.05rem; max-width: 560px; }
.section-head-row {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  margin-bottom: 40px; flex-wrap: wrap;
}
.section-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--primary); font-weight: 600; font-size: 0.9rem;
  white-space: nowrap;
  transition: var(--transition);
}
.section-link:hover { gap: 10px; }
.section-link i { transition: transform 0.2s; }
.section-link:hover i { transform: translateX(3px); }

/* ── Buttons ──────────────────────────────────────────────── */
.btn-dg {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 0 24px; height: 48px;
  border-radius: var(--radius-pill); font-weight: 600; font-size: 0.93rem;
  transition: var(--transition); cursor: pointer;
  text-decoration: none; white-space: nowrap; border: none;
}
.btn-dg-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff; box-shadow: var(--shadow-blue);
}
.btn-dg-primary:hover { transform: translateY(-2px); box-shadow: 0 25px 50px rgba(37,99,235,0.28); color: #fff; }
.btn-dg-secondary {
  background: var(--primary-soft); color: var(--primary);
  border: 1.5px solid rgba(37,99,235,0.2);
}
.btn-dg-secondary:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }
.btn-dg-outline {
  background: transparent; color: var(--primary);
  border: 1.5px solid var(--border);
}
.btn-dg-outline:hover { border-color: var(--primary); background: var(--primary-soft); }
.btn-dg-white {
  background: #fff; color: var(--primary);
  box-shadow: var(--shadow-sm);
}
.btn-dg-white:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-dg-sm { height: 38px; padding: 0 16px; font-size: 0.84rem; }
.btn-dg-lg { height: 56px; padding: 0 32px; font-size: 1rem; }

/* ── ═══════════════════════════════════════════════════════ ── */
/*    HERO SECTION                                              */
/* ── ═══════════════════════════════════════════════════════ ── */
.blog-hero {
  background: linear-gradient(155deg, #F0F7FF 0%, #EEF2FF 40%, #F8FAFC 100%);
  padding: 40px 0 32px; overflow: hidden; position: relative;
}
.blog-hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 75% 50%, rgba(99,102,241,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 20% 80%, rgba(6,182,212,0.06) 0%, transparent 55%);
  pointer-events: none;
}
.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: center; position: relative; z-index: 1;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(37,99,235,0.1); color: var(--primary);
  padding: 6px 14px; border-radius: var(--radius-pill);
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.4px;
  margin-bottom: 20px; border: 1px solid rgba(37,99,235,0.15);
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); animation: pulse-dot 2s ease infinite; }
@keyframes pulse-dot { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.5;transform:scale(1.3)} }
.hero-title {
  font-family: var(--font-head);
  font-size: clamp(2.04rem, 3.82vw, 3.23rem);
  font-weight: 900; line-height: 1.08;
  letter-spacing: -0.04em; color: var(--text);
  margin-bottom: 20px;
}
.hero-title .gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  color: var(--muted); font-size: 1.08rem;
  line-height: 1.7; margin-bottom: 28px; max-width: 500px;
}
.hero-stats {
  display: flex; flex-wrap: wrap; gap: 20px 32px;
  margin-bottom: 36px;
}
.hero-stat { display: flex; flex-direction: column; }
.hero-stat strong {
  font-family: var(--font-head); font-size: 1.45rem; font-weight: 800;
  color: var(--text); line-height: 1;
}
.hero-stat span { font-size: 0.8rem; color: var(--muted); margin-top: 3px; font-weight: 500; }
.hero-stat-divider { width: 1px; background: var(--border); align-self: stretch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }

/* Hero Search */
.hero-search-wrap { position: relative; max-width: 480px; }
.hero-search {
  display: flex; align-items: center; gap: 10px;
  background: #fff; border: 1.5px solid var(--border);
  border-radius: var(--radius-pill); padding: 8px 8px 8px 20px;
  box-shadow: var(--shadow-md); transition: var(--transition);
}
.hero-search:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(37,99,235,0.1), var(--shadow-md); }
.hero-search i.search-icon { color: var(--muted); font-size: 1rem; flex-shrink: 0; }
.hero-search input {
  flex: 1; border: none; outline: none; background: transparent;
  font-size: 0.95rem; font-family: var(--font-body); color: var(--text);
}
.hero-search input::placeholder { color: var(--muted-light); }
.hero-search .search-voice-btn {
  width: 36px; height: 36px; border-radius: 50%; background: var(--surface-2);
  color: var(--muted); display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: var(--transition); flex-shrink: 0;
}
.hero-search .search-voice-btn:hover { background: var(--primary); color: #fff; }
.hero-search .search-go-btn {
  height: 38px; padding: 0 18px; border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff; font-weight: 600; font-size: 0.88rem; cursor: pointer;
  border: none; transition: var(--transition); flex-shrink: 0;
}
.hero-search .search-go-btn:hover { transform: scale(1.04); }
.hero-search-tags {
  display: flex; align-items: center; gap: 8px; margin-top: 12px; flex-wrap: wrap;
}
.hero-search-tags span { font-size: 0.8rem; color: var(--muted); }
.hero-search-tags a {
  font-size: 0.8rem; color: var(--primary); font-weight: 500;
  background: var(--primary-soft); padding: 3px 10px; border-radius: var(--radius-pill);
  transition: var(--transition);
}
.hero-search-tags a:hover { background: var(--primary); color: #fff; }
/* Live search results */
.live-search-results {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0;
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-xl);
  border: 1px solid var(--border); z-index: 1000; display: none; overflow: hidden;
}
.live-search-results.show { display: block; animation: fadeInDown 0.18s ease; }
.search-suggestion-item {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px;
  cursor: pointer; transition: var(--transition);
}
.search-suggestion-item:hover { background: var(--bg-soft); }
.suggestion-thumb {
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  object-fit: cover; background: var(--surface-2); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; color: var(--muted);
}
.suggestion-info { flex: 1; min-width: 0; }
.suggestion-title { font-weight: 600; font-size: 0.88rem; color: var(--text); line-height: 1.3; }
.suggestion-meta { font-size: 0.76rem; color: var(--muted); margin-top: 2px; }

/* Hero Visual (Right Side) */
.hero-visual { position: relative; display: flex; align-items: center; justify-content: center; }
.hero-visual-inner {
  position: relative; width: 100%; max-width: 520px;
}
.hero-image {
  width: 100%;
  height: auto;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  object-fit: cover;
}
.hero-laptop {
  background: linear-gradient(145deg, #ffffff, #f0f4ff);
  border-radius: var(--radius-xl); border: 1px solid var(--border);
  box-shadow: var(--shadow-xl), inset 0 1px 0 rgba(255,255,255,0.9);
  padding: 28px; position: relative; overflow: hidden;
}
.hero-laptop::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at top right, rgba(99,102,241,0.07), transparent 60%);
}
.hero-laptop-bar {
  display: flex; align-items: center; gap: 6px; margin-bottom: 16px;
}
.hero-laptop-bar .dot { width: 10px; height: 10px; border-radius: 50%; }
.hero-laptop-bar .dot:nth-child(1) { background: #FC615D; }
.hero-laptop-bar .dot:nth-child(2) { background: #FDBC40; }
.hero-laptop-bar .dot:nth-child(3) { background: #34C749; }
.hero-laptop-screen {
  background: linear-gradient(135deg, #F8FAFC, #EEF2FF);
  border-radius: var(--radius); padding: 20px;
  border: 1px solid var(--border-soft);
}
.hero-laptop-title { font-family: var(--font-head); font-size: 0.9rem; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.hero-laptop-line { height: 8px; border-radius: 4px; background: var(--border); margin-bottom: 6px; }
.hero-laptop-line:nth-child(2) { width: 90%; }
.hero-laptop-line:nth-child(3) { width: 75%; }
.hero-laptop-line:nth-child(4) { width: 55%; background: rgba(37,99,235,0.15); }
.hero-laptop-tags { display: flex; gap: 6px; margin-top: 14px; flex-wrap: wrap; }
.hero-laptop-tag {
  font-size: 0.7rem; font-weight: 700; padding: 3px 9px;
  border-radius: var(--radius-pill);
}
/* Floating topic bubbles */
.hero-float-chips {
  position: absolute; inset: -16px; pointer-events: none;
}
.hero-chip {
  position: absolute; display: flex; align-items: center; gap: 6px;
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-pill); padding: 7px 12px;
  font-size: 0.78rem; font-weight: 600; color: var(--text-2);
  box-shadow: var(--shadow-md); white-space: nowrap;
  animation: float-chip 5s ease-in-out infinite;
}
.hero-chip i { font-size: 0.9rem; }
.hero-chip:nth-child(1) { top: 5%;  left: -5%;  animation-delay: 0s; }
.hero-chip:nth-child(2) { top: 22%; right: -8%; animation-delay: 0.8s; }
.hero-chip:nth-child(3) { top: 50%; left: -10%; animation-delay: 1.4s; }
.hero-chip:nth-child(4) { bottom: 20%; right: -6%; animation-delay: 0.4s; }
.hero-chip:nth-child(5) { bottom: 5%; left: 10%; animation-delay: 1.8s; }
.hero-chip:nth-child(6) { top: 38%; right: 2%;  animation-delay: 1s; }
@keyframes float-chip {
  0%,100% { transform: translateY(0) rotate(0deg); }
  33%      { transform: translateY(-8px) rotate(-1deg); }
  66%      { transform: translateY(4px) rotate(1deg); }
}

/* ── ═══════════════════════════════════════════════════════ ── */
/*    CATEGORY GRID                                             */
/* ── ═══════════════════════════════════════════════════════ ── */
.blog-categories-section { background: #fff; padding: 56px 0; border-bottom: 1px solid var(--border); }
.category-carousel-wrap {
  position: relative;
  overflow: hidden;
  padding: 10px 0;
}
.category-carousel {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 10px 4px;
}
.category-carousel::-webkit-scrollbar { display: none; }
.category-carousel-track {
  display: flex;
  gap: 16px;
  transition: transform 0.5s ease;
}
.cat-card {
  display: flex; flex-direction: column; align-items: center;
  gap: 10px; padding: 22px 16px; border-radius: var(--radius-lg);
  background: var(--bg); border: 1.5px solid var(--border);
  text-align: center; transition: var(--transition); cursor: pointer;
  text-decoration: none; color: var(--text);
  flex-shrink: 0;
  width: 140px;
}
.cat-card:hover {
  transform: translateY(-5px); border-color: transparent;
  box-shadow: var(--shadow-md);
  background: linear-gradient(145deg, #fff, var(--bg-soft));
}
.cat-icon-wrap {
  width: 52px; height: 52px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; color: #fff; flex-shrink: 0;
  transition: transform 0.3s ease;
}
.cat-card:hover .cat-icon-wrap { transform: scale(1.1) rotate(-5deg); }
.cat-name { font-size: 0.84rem; font-weight: 700; color: var(--text); line-height: 1.3; }
.cat-count { font-size: 0.76rem; color: var(--muted); font-weight: 500; }

/* Responsive Category Carousel */
@media (max-width: 480px) {
  .category-carousel {
    scroll-snap-type: x mandatory;
  }
  .cat-card {
    width: calc((100vw - 32px - 48px) / 4);
    scroll-snap-align: start;
  }
}
@media (min-width: 481px) and (max-width: 768px) {
  .cat-card {
    width: calc((100vw - 32px - 80px) / 6);
  }
}
@media (min-width: 769px) {
  .cat-card {
    width: calc((1320px - 32px - 96px) / 7);
  }
}

/* ── ═══════════════════════════════════════════════════════ ── */
/*    FEATURED ARTICLES CAROUSEL                                */
/* ── ═══════════════════════════════════════════════════════ ── */
.featured-section { padding: 72px 0; background: var(--bg); }
.featured-carousel-wrap { position: relative; }
.featured-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 28px;
}
.featured-card {
  background: #fff; border-radius: var(--radius-xl);
  border: 1px solid var(--border); overflow: hidden;
  box-shadow: var(--shadow-md); transition: var(--transition-slow);
  display: flex; flex-direction: column; position: relative;
}
.featured-card:hover { 
  transform: translateY(-12px); 
  box-shadow: 0 30px 60px -15px rgba(0,0,0,0.15);
  border-color: rgba(37,99,235,0.2);
}
.featured-img {
  aspect-ratio: 16/10; overflow: hidden; position: relative;
  background: linear-gradient(135deg, var(--primary-soft), rgba(99,102,241,0.1));
}
.featured-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.4) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}
.featured-card:hover .featured-img::before {
  opacity: 1;
}
.featured-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.4,0,0.2,1); }
.featured-card:hover .featured-img img { transform: scale(1.08); }
.featured-img-fallback {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem; color: var(--primary);
}
.featured-cat-badge {
  position: absolute; top: 16px; left: 16px;
  z-index: 2;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: var(--radius-pill);
  font-size: 0.76rem; font-weight: 700; letter-spacing: 0.3px;
  background: rgba(255,255,255,0.98); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.9);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.featured-bookmark {
  position: absolute; top: 16px; right: 16px;
  z-index: 2;
  width: 40px; height: 40px; border-radius: 12px;
  background: rgba(255,255,255,0.98); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; color: var(--muted); transition: var(--transition);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.featured-bookmark:hover { 
  background: var(--primary); 
  color: #fff; 
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37,99,235,0.3);
}
.featured-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.featured-body h3 {
  font-family: var(--font-head); font-size: 1.15rem; font-weight: 800;
  line-height: 1.3; color: var(--text); margin-bottom: 12px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.featured-body h3 a { color: inherit; transition: color 0.2s; }
.featured-body h3 a:hover { color: var(--primary); }
.featured-body p {
  font-size: 0.9rem; color: var(--muted); line-height: 1.7;
  margin-bottom: 18px; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.featured-meta {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  border-top: 1px solid var(--border-soft); padding-top: 16px; margin-top: auto;
}
.author-mini { display: flex; align-items: center; gap: 8px; }
.author-mini-av {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff; font-size: 0.8rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(37,99,235,0.2);
}
.author-mini span { font-size: 0.87rem; font-weight: 700; color: var(--text-2); }
.meta-sep { color: var(--border); font-size: 0.7rem; }
.meta-chip {
  display: flex; align-items: center; gap: 5px;
  font-size: 0.8rem; color: var(--muted);
  font-weight: 500;
}
.meta-chip i { font-size: 0.8rem; }

/* ── ═══════════════════════════════════════════════════════ ── */
/*    RESPONSIVE DESIGN - MOBILE FIRST                             */
/* ── ═══════════════════════════════════════════════════════ ── */

/* Mobile (max-width: 480px) */
@media (max-width: 480px) {
  .blog-hero {
    padding: 32px 0 24px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero-visual {
    display: none;
  }
  .hero-title {
    font-size: clamp(1.8rem, 8vw, 2.4rem);
  }
  .hero-sub {
    font-size: 0.95rem;
  }
  .hero-search-wrap {
    max-width: 100%;
  }
  .hero-search {
    padding: 8px 8px 8px 16px;
  }
  .hero-search input {
    font-size: 0.9rem;
  }
  .hero-search-tags {
    flex-wrap: wrap;
  }
  
  .blog-categories-section {
    padding: 40px 0;
  }
  .section-heading h2 {
    font-size: 1.5rem;
  }
  
  .featured-section {
    padding: 48px 0;
  }
  .featured-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .featured-card:hover {
    transform: translateY(-4px);
  }
  
  .latest-section {
    padding: 48px 0;
  }
  .latest-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .sidebar {
    position: static;
  }
  
  .post-card {
    grid-template-columns: 1fr;
  }
  .post-card-thumb {
    min-height: 200px;
  }
  
  .tab-filters {
    overflow-x: auto;
    flex-wrap: nowrap;
  }
  
  .trending-row {
    gap: 8px;
  }
  .trending-tag {
    font-size: 0.76rem;
    padding: 6px 12px;
  }
}

/* Tablet (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
  .blog-hero {
    padding: 40px 0 32px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-visual {
    display: none;
  }
  .hero-title {
    font-size: clamp(2rem, 5vw, 2.8rem);
  }
  
  .featured-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .latest-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .sidebar {
    position: static;
  }
  
  .post-card {
    grid-template-columns: 180px 1fr;
  }
}

/* Small Desktop (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .hero-grid {
    gap: 40px;
  }
  .hero-visual-inner {
    max-width: 400px;
  }
  
  .featured-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .latest-layout {
    grid-template-columns: 1fr 300px;
    gap: 28px;
  }
}

/* Large Desktop (1025px+) */
@media (min-width: 1025px) {
  .featured-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .latest-layout {
    grid-template-columns: 1fr 340px;
  }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  .featured-card:hover,
  .cat-card:hover,
  .post-card:hover {
    transform: none;
  }
  
  .featured-bookmark:hover,
  .action-btn:hover {
    transform: scale(1);
  }
  
  .hero-search .search-voice-btn {
    display: flex;
  }
}

/* ── ═══════════════════════════════════════════════════════ ── */
/*    TRENDING TAGS ROW                                         */
/* ── ═══════════════════════════════════════════════════════ ── */
.trending-row-section { padding: 28px 0; background: #fff; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.trending-row {
  display: flex; align-items: center; gap: 12px; overflow-x: auto;
  padding-bottom: 4px; scrollbar-width: none;
}
.trending-row::-webkit-scrollbar { display: none; }
.trending-label {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.8rem; font-weight: 700; color: var(--danger); white-space: nowrap;
}
.trending-label i { animation: fire-pulse 1.2s ease-in-out infinite alternate; }
@keyframes fire-pulse { from { transform: scale(1); } to { transform: scale(1.2); } }
.trending-tag {
  display: inline-flex; align-items: center; gap: 5px; white-space: nowrap;
  padding: 7px 14px; border-radius: var(--radius-pill);
  font-size: 0.82rem; font-weight: 600;
  background: var(--bg); border: 1.5px solid var(--border);
  color: var(--text-2); transition: var(--transition); cursor: pointer; text-decoration: none;
}
.trending-tag:hover { background: var(--primary); color: #fff; border-color: var(--primary); transform: translateY(-2px); }

/* ── ═══════════════════════════════════════════════════════ ── */
/*    LATEST ARTICLES + SIDEBAR LAYOUT                          */
/* ── ═══════════════════════════════════════════════════════ ── */
.latest-section { padding: 72px 0; background: var(--bg); }
.latest-layout { display: grid; grid-template-columns: 1fr 340px; gap: 36px; align-items: start; }

/* Tab Filters */
.tab-filters {
  display: flex; align-items: center; gap: 4px;
  background: #fff; border: 1px solid var(--border);
  padding: 5px; border-radius: var(--radius-pill);
  margin-bottom: 28px; overflow-x: auto; scrollbar-width: none; flex-wrap: nowrap;
}
.tab-filters::-webkit-scrollbar { display: none; }
.tab-btn {
  padding: 8px 18px; border-radius: var(--radius-pill); border: none;
  font-size: 0.86rem; font-weight: 600; color: var(--muted);
  background: transparent; cursor: pointer; transition: var(--transition);
  white-space: nowrap; display: flex; align-items: center; gap: 6px;
}
.tab-btn:hover { color: var(--primary); background: var(--primary-soft); }
.tab-btn.active { background: var(--primary); color: #fff; box-shadow: var(--shadow-blue); }

/* Posts Grid */
.posts-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
.post-card {
  display: grid; grid-template-columns: 200px 1fr;
  gap: 0; background: #fff; border-radius: var(--radius-lg);
  border: 1px solid var(--border); overflow: hidden;
  box-shadow: var(--shadow-card); transition: var(--transition-slow);
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(37,99,235,0.15); }
.post-card-thumb {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--primary-soft), rgba(99,102,241,0.08));
  min-height: 180px;
}
.post-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.45s ease; }
.post-card:hover .post-card-thumb img { transform: scale(1.07); }
.post-card-thumb-fallback {
  width: 100%; height: 100%; min-height: 180px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.2rem; color: var(--primary);
}
.post-cat-chip {
  position: absolute; top: 10px; left: 10px;
  padding: 4px 10px; border-radius: var(--radius-pill);
  font-size: 0.72rem; font-weight: 700;
  background: rgba(255,255,255,0.95); backdrop-filter: blur(6px);
}
.post-card-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.post-card-body h3 {
  font-family: var(--font-head); font-size: 1rem; font-weight: 700;
  color: var(--text); line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.post-card-body h3 a { color: inherit; }
.post-card-body h3 a:hover { color: var(--primary); }
.post-card-body p {
  font-size: 0.87rem; color: var(--muted); line-height: 1.65;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.post-card-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: auto; }
.post-card-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--border-soft); }
.action-btns { display: flex; gap: 6px; }
.action-btn {
  width: 34px; height: 34px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--bg);
  color: var(--muted); cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; transition: var(--transition);
}
.action-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.action-btn.liked { color: var(--danger); border-color: rgba(239,68,68,0.2); background: rgba(239,68,68,0.06); }
.read-link {
  font-size: 0.83rem; font-weight: 700; color: var(--primary);
  display: flex; align-items: center; gap: 4px; transition: var(--transition);
}
.read-link:hover { gap: 8px; }

/* Load More */
.load-more-wrap { text-align: center; padding: 36px 0 0; }

/* ── Skeleton Cards ───────────────────────────────────────── */
.skeleton-card {
  display: grid; grid-template-columns: 200px 1fr;
  background: #fff; border-radius: var(--radius-lg);
  border: 1px solid var(--border); overflow: hidden; height: 180px;
}
.skeleton-thumb { background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; }
.skeleton-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.sk-line { height: 12px; border-radius: 4px; background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; }
.sk-line.w-80 { width: 80%; } .sk-line.w-60 { width: 60%; } .sk-line.w-40 { width: 40%; }
@keyframes shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }

/* ── ═══════════════════════════════════════════════════════ ── */
/*    SIDEBAR                                                   */
/* ── ═══════════════════════════════════════════════════════ ── */
.sidebar { display: flex; flex-direction: column; gap: 24px; position: sticky; top: 88px; }
.sidebar-card {
  background: #fff; border-radius: var(--radius-lg);
  border: 1px solid var(--border); padding: 22px;
  box-shadow: var(--shadow-card);
}
.sidebar-card-title {
  font-family: var(--font-head); font-size: 0.95rem; font-weight: 800;
  color: var(--text); margin-bottom: 16px;
  display: flex; align-items: center; gap: 8px;
}
.sidebar-card-title i { color: var(--primary); }

/* Sidebar Search */
.sidebar-search {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg); border: 1.5px solid var(--border);
  border-radius: var(--radius-pill); padding: 8px 14px;
  transition: var(--transition);
}
.sidebar-search:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.sidebar-search i { color: var(--muted); font-size: 0.9rem; }
.sidebar-search input {
  flex: 1; border: none; outline: none; background: transparent;
  font-size: 0.88rem; font-family: var(--font-body); color: var(--text);
}

/* Trending Sidebar Items */
.trend-list { display: flex; flex-direction: column; gap: 12px; }
.trend-item {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: inherit; transition: var(--transition); padding: 8px; border-radius: var(--radius-sm);
}
.trend-item:hover { background: var(--bg); transform: translateX(3px); }
.trend-rank {
  font-family: var(--font-head); font-size: 1.1rem; font-weight: 900;
  color: var(--border); min-width: 28px; text-align: right; line-height: 1;
  flex-shrink: 0;
}
.trend-rank.top { color: var(--primary); }
.trend-thumb {
  width: 54px; height: 40px; border-radius: var(--radius-sm);
  object-fit: cover; background: var(--primary-soft); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; color: var(--primary);
}
.trend-info { flex: 1; min-width: 0; }
.trend-info h4 {
  font-size: 0.84rem; font-weight: 700; color: var(--text); line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.trend-info span { font-size: 0.75rem; color: var(--muted); }

/* Sidebar Categories */
.sidebar-cat-list { display: flex; flex-direction: column; gap: 2px; }
.sidebar-cat-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 10px; border-radius: var(--radius-sm);
  color: var(--text-2); font-size: 0.88rem; text-decoration: none; transition: var(--transition);
}
.sidebar-cat-item:hover { background: var(--primary-soft); color: var(--primary); }
.sidebar-cat-item .cat-badge {
  font-size: 0.75rem; font-weight: 700; color: var(--muted);
  background: var(--surface-2); padding: 2px 8px; border-radius: var(--radius-pill);
}

/* Sidebar Tags */
.sidebar-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.sidebar-tag {
  padding: 5px 12px; border-radius: var(--radius-pill); font-size: 0.79rem; font-weight: 600;
  background: var(--bg); border: 1.5px solid var(--border); color: var(--text-2);
  text-decoration: none; transition: var(--transition);
}
.sidebar-tag:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Sidebar Newsletter Mini */
.sidebar-nl {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: var(--radius-lg); padding: 22px; color: #fff; border: none;
}
.sidebar-nl h4 { font-family: var(--font-head); font-weight: 800; font-size: 1rem; margin-bottom: 6px; }
.sidebar-nl p { font-size: 0.83rem; opacity: 0.85; margin-bottom: 14px; line-height: 1.55; }
.sidebar-nl-form { display: flex; flex-direction: column; gap: 8px; }
.sidebar-nl-form input {
  width: 100%; padding: 10px 14px; border-radius: var(--radius-pill);
  border: none; outline: none; font-size: 0.88rem; font-family: var(--font-body);
  background: rgba(255,255,255,0.92); color: var(--text);
}
.sidebar-nl-form button {
  width: 100%; padding: 10px; border-radius: var(--radius-pill);
  background: #fff; color: var(--primary); font-weight: 700; font-size: 0.88rem;
  border: none; cursor: pointer; transition: var(--transition);
}
.sidebar-nl-form button:hover { background: rgba(255,255,255,0.9); transform: translateY(-1px); }
.sidebar-nl-note { font-size: 0.76rem; opacity: 0.7; margin-top: 6px; }

/* Ad Slot */
.ad-slot {
  background: var(--bg); border: 2px dashed var(--border); border-radius: var(--radius-lg);
  padding: 32px 16px; text-align: center; min-height: 180px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
}
.ad-slot i { font-size: 2rem; color: var(--muted-light); }
.ad-slot span { font-size: 0.8rem; color: var(--muted); font-weight: 600; letter-spacing: 0.5px; }

/* ── ═══════════════════════════════════════════════════════ ── */
/*    EDITOR'S PICK SECTION                                     */
/* ── ═══════════════════════════════════════════════════════ ── */
.editors-section { padding: 72px 0; background: #fff; }
.editors-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.editor-card {
  background: var(--bg); border-radius: var(--radius-xl);
  border: 1px solid var(--border); overflow: hidden;
  box-shadow: var(--shadow-card); transition: var(--transition-slow);
  display: flex; flex-direction: column;
}
.editor-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.editor-card-img {
  aspect-ratio: 16/9; position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--primary-soft), rgba(99,102,241,0.12));
}
.editor-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.editor-card:hover .editor-card-img img { transform: scale(1.06); }
.editor-card-img-fallback {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem; color: var(--primary);
}
.editor-badge {
  position: absolute; top: 14px; left: 14px;
  padding: 5px 12px; border-radius: var(--radius-pill);
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.3px;
  background: linear-gradient(135deg, var(--warning), #F97316);
  color: #fff; display: flex; align-items: center; gap: 5px;
}
.editor-card-body { padding: 22px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.editor-cat { font-size: 0.76rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; color: var(--primary); }
.editor-card-body h3 {
  font-family: var(--font-head); font-size: 1.05rem; font-weight: 800;
  color: var(--text); line-height: 1.35;
}
.editor-card-body h3 a { color: inherit; }
.editor-card-body h3 a:hover { color: var(--primary); }
.editor-card-body p { font-size: 0.87rem; color: var(--muted); line-height: 1.65; flex: 1; }
.editor-card-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; border-top: 1px solid var(--border-soft); }

/* ── ═══════════════════════════════════════════════════════ ── */
/*    FREE DOWNLOADS SECTION                                    */
/* ── ═══════════════════════════════════════════════════════ ── */
.downloads-section { padding: 72px 0; background: var(--bg); }
.downloads-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.dl-card {
  background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--border);
  padding: 26px 20px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start;
  box-shadow: var(--shadow-card); transition: var(--transition-slow); text-decoration: none; color: inherit;
}
.dl-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: transparent; }
.dl-icon {
  width: 52px; height: 52px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; color: #fff; flex-shrink: 0;
}
.dl-card h4 { font-family: var(--font-head); font-size: 0.95rem; font-weight: 700; color: var(--text); line-height: 1.3; }
.dl-card p { font-size: 0.83rem; color: var(--muted); line-height: 1.6; flex: 1; }
.dl-link { font-size: 0.83rem; font-weight: 700; color: var(--primary); display: flex; align-items: center; gap: 5px; }

/* ── ═══════════════════════════════════════════════════════ ── */
/*    AI TOOLS SECTION                                          */
/* ── ═══════════════════════════════════════════════════════ ── */
.ai-section {
  padding: 72px 0;
  background: linear-gradient(135deg, #0F172A 0%, #1E1B4B 50%, #0F172A 100%);
  position: relative; overflow: hidden;
}
.ai-section::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(99,102,241,0.15), transparent 60%),
              radial-gradient(ellipse at 70% 50%, rgba(6,182,212,0.1), transparent 60%);
}
.ai-section .blog-container { position: relative; z-index: 1; }
.ai-section .section-label { color: var(--accent); }
.ai-section .section-heading h2 { color: #fff; }
.ai-section .section-heading p { color: rgba(255,255,255,0.6); }
.ai-tools-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.ai-tool-card {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg); padding: 20px 18px;
  display: flex; align-items: center; gap: 14px;
  transition: var(--transition); cursor: pointer; text-decoration: none;
  backdrop-filter: blur(8px);
}
.ai-tool-card:hover { background: rgba(255,255,255,0.12); transform: translateY(-3px); border-color: rgba(255,255,255,0.2); }
.ai-tool-icon {
  width: 44px; height: 44px; border-radius: 14px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; color: #fff;
}
.ai-tool-info h4 { font-size: 0.9rem; font-weight: 700; color: #fff; line-height: 1.3; }
.ai-tool-info p { font-size: 0.78rem; color: rgba(255,255,255,0.5); margin-top: 2px; }

/* ── ═══════════════════════════════════════════════════════ ── */
/*    NEWSLETTER SECTION                                        */
/* ── ═══════════════════════════════════════════════════════ ── */
.newsletter-section { padding: 72px 0; background: var(--bg); }
.nl-card {
  background: linear-gradient(135deg, #2563EB 0%, #4F46E5 50%, #7C3AED 100%);
  border-radius: var(--radius-xl); padding: 56px 64px;
  position: relative; overflow: hidden;
}
.nl-card::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at top left, rgba(255,255,255,0.15), transparent 40%),
              radial-gradient(ellipse at bottom right, rgba(6,182,212,0.15), transparent 40%);
  pointer-events: none;
}
.nl-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.nl-badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,0.15); color: #fff; padding: 6px 14px; border-radius: var(--radius-pill); font-size: 0.8rem; font-weight: 700; margin-bottom: 16px; }
.nl-card h2 { font-family: var(--font-head); font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; color: #fff; margin-bottom: 14px; letter-spacing: -0.03em; }
.nl-card p { color: rgba(255,255,255,0.7); font-size: 1rem; line-height: 1.7; margin-bottom: 0; }
.nl-form-wrap { display: flex; flex-direction: column; gap: 12px; }
.nl-form { display: flex; gap: 10px; }
.nl-form input {
  flex: 1; padding: 14px 20px; border-radius: var(--radius-pill);
  border: none; outline: none; font-size: 0.95rem; font-family: var(--font-body);
  background: rgba(255,255,255,0.92); color: var(--text);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.nl-form button {
  padding: 14px 28px; border-radius: var(--radius-pill); border: none;
  background: #fff; color: var(--primary); font-weight: 700; font-size: 0.95rem;
  cursor: pointer; white-space: nowrap; box-shadow: var(--shadow-md); transition: var(--transition);
}
.nl-form button:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.nl-proof { display: flex; align-items: center; gap: 10px; }
.nl-avatars { display: flex; }
.nl-avatars .av {
  width: 30px; height: 30px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.8);
  background: linear-gradient(135deg, var(--accent), var(--secondary));
  margin-left: -8px; display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem; font-weight: 700; color: #fff;
}
.nl-avatars .av:first-child { margin-left: 0; }
.nl-proof-text { font-size: 0.83rem; color: rgba(255,255,255,0.75); }
.nl-proof-text strong { color: #fff; font-weight: 700; }

/* ── ═══════════════════════════════════════════════════════ ── */
/*    SOCIAL PROOF STATS                                        */
/* ── ═══════════════════════════════════════════════════════ ── */
.stats-section { padding: 56px 0; background: #fff; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.stat-item { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.stat-icon-wrap {
  width: 56px; height: 56px; border-radius: 18px;
  display: flex; align-items: center; justify-content: center; font-size: 1.3rem; color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
}
.stat-item strong {
  font-family: var(--font-head); font-size: 2rem; font-weight: 900;
  color: var(--text); line-height: 1;
}
.stat-item span { font-size: 0.85rem; color: var(--muted); font-weight: 500; }

/* ── ═══════════════════════════════════════════════════════ ── */
/*    TESTIMONIALS                                              */
/* ── ═══════════════════════════════════════════════════════ ── */
.testimonials-section { padding: 72px 0; background: var(--bg); }
.testimonials-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.testimonial-card {
  background: #fff; border-radius: var(--radius-xl); border: 1px solid var(--border);
  padding: 28px; box-shadow: var(--shadow-card); transition: var(--transition-slow);
  display: flex; flex-direction: column; gap: 16px;
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.tc-stars { display: flex; gap: 3px; color: var(--warning); font-size: 0.85rem; }
.tc-quote { font-size: 0.93rem; color: var(--text-2); line-height: 1.75; font-style: italic; flex: 1; }
.tc-author { display: flex; align-items: center; gap: 12px; border-top: 1px solid var(--border-soft); padding-top: 16px; }
.tc-av {
  width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
}
.tc-name { font-weight: 700; font-size: 0.9rem; color: var(--text); }
.tc-role { font-size: 0.78rem; color: var(--muted); }

/* ── ═══════════════════════════════════════════════════════ ── */
/*    FAQ SECTION                                               */
/* ── ═══════════════════════════════════════════════════════ ── */
.faq-section { padding: 72px 0; background: #fff; }
.faq-list { display: flex; flex-direction: column; gap: 12px; max-width: 820px; margin: 0 auto; }
.faq-item {
  background: var(--bg); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden; transition: border-color 0.2s;
}
.faq-item.open { border-color: rgba(37,99,235,0.25); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px; background: transparent; border: none; cursor: pointer;
  font-size: 0.95rem; font-weight: 700; color: var(--text); text-align: left;
  font-family: var(--font-head);
}
.faq-q i { color: var(--primary); transition: transform 0.3s; flex-shrink: 0; }
.faq-item.open .faq-q i { transform: rotate(180deg); }
.faq-a {
  max-height: 0; overflow: hidden; transition: max-height 0.35s ease, padding 0.2s ease;
}
.faq-a-inner { padding: 0 22px 20px; color: var(--muted); font-size: 0.92rem; line-height: 1.75; }
.faq-item.open .faq-a { max-height: 400px; }

/* ── ═══════════════════════════════════════════════════════ ── */
/*    FINAL CTA BANNER                                          */
/* ── ═══════════════════════════════════════════════════════ ── */
.final-cta-section { padding: 80px 0; background: var(--bg); }
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: var(--radius-xl); padding: 56px 64px;
  display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: center;
  box-shadow: var(--shadow-xl); position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ''; position: absolute; top: -60px; right: -40px;
  width: 260px; height: 260px; border-radius: 50%;
  background: rgba(255,255,255,0.07); pointer-events: none;
}
.cta-banner::after {
  content: ''; position: absolute; bottom: -80px; left: 30%;
  width: 200px; height: 200px; border-radius: 50%;
  background: rgba(255,255,255,0.05); pointer-events: none;
}
.cta-text h2 {
  font-family: var(--font-head); font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 800; color: #fff; letter-spacing: -0.03em; margin-bottom: 10px;
}
.cta-text p { color: rgba(255,255,255,0.72); font-size: 1rem; line-height: 1.65; }
.cta-actions { display: flex; gap: 12px; align-items: center; flex-shrink: 0; flex-wrap: wrap; }

/* ── ═══════════════════════════════════════════════════════ ── */
/*    TRUST FEATURES BAR                                        */
/* ── ═══════════════════════════════════════════════════════ ── */
.trust-bar { padding: 36px 0; background: var(--bg); border-top: 1px solid var(--border); }
.trust-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.trust-item { display: flex; align-items: flex-start; gap: 14px; }
.trust-icon-wrap {
  width: 44px; height: 44px; border-radius: 14px; flex-shrink: 0;
  background: var(--primary-soft); color: var(--primary);
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
}
.trust-item h5 { font-size: 0.9rem; font-weight: 700; color: var(--text); margin-bottom: 3px; }
.trust-item p { font-size: 0.8rem; color: var(--muted); line-height: 1.5; }

/* ── Animations ───────────────────────────────────────────── */
.animate-fade-up {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-fade-up.in-view { opacity: 1; transform: translateY(0); }
.animate-stagger > * { opacity: 0; transform: translateY(20px); transition: opacity 0.5s ease, transform 0.5s ease; }
.animate-stagger.in-view > *:nth-child(1) { opacity: 1; transform: none; transition-delay: 0s; }
.animate-stagger.in-view > *:nth-child(2) { opacity: 1; transform: none; transition-delay: 0.07s; }
.animate-stagger.in-view > *:nth-child(3) { opacity: 1; transform: none; transition-delay: 0.14s; }
.animate-stagger.in-view > *:nth-child(4) { opacity: 1; transform: none; transition-delay: 0.21s; }
.animate-stagger.in-view > *:nth-child(5) { opacity: 1; transform: none; transition-delay: 0.28s; }
.animate-stagger.in-view > *:nth-child(6) { opacity: 1; transform: none; transition-delay: 0.35s; }
.animate-stagger.in-view > *:nth-child(n+7) { opacity: 1; transform: none; transition-delay: 0.42s; }

@keyframes fadeInDown { from{opacity:0;transform:translateY(-8px)} to{opacity:1;transform:translateY(0)} }

/* ── Blog Filters Row ────────────────────────────────────── */
.blog-filters-row {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 16px; margin-bottom: 24px;
}
.filter-options { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-btn {
  padding: 7px 16px; border-radius: var(--radius-pill); border: 1px solid var(--border);
  background: transparent; font-weight: 600; font-size: 0.85rem; color: var(--muted);
  cursor: pointer; transition: var(--transition); display: flex; align-items: center; gap: 5px;
}
.filter-btn:hover { color: var(--primary); background: var(--primary-soft); border-color: rgba(37,99,235,0.2); }
.filter-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); box-shadow: var(--shadow-blue); }
.filter-count { font-size: 0.8rem; color: var(--muted); }

/* Empty State */
.empty-state { text-align: center; padding: 56px 24px; color: var(--muted); }
.empty-state i { font-size: 3rem; display: block; margin-bottom: 16px; opacity: 0.4; }
.empty-state h5 { font-family: var(--font-head); font-weight: 700; color: var(--text-2); margin-bottom: 8px; }

/* ── ═══════════════════════════════════════════════════════ ── */
/*    RESPONSIVE DESIGN                                         */
/* ── ═══════════════════════════════════════════════════════ ── */
@media (max-width: 1200px) {
  .latest-layout { grid-template-columns: 1fr 300px; }
  .featured-grid { grid-template-columns: repeat(2,1fr); }
  .testimonials-grid { grid-template-columns: repeat(2,1fr); }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .trust-grid { grid-template-columns: repeat(2,1fr); }
  .ai-tools-grid { grid-template-columns: repeat(2,1fr); }
  .downloads-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 992px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { display: none; }
  .hero-title { font-size: clamp(2rem, 6vw, 3rem); }
  .latest-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .editors-grid { grid-template-columns: repeat(2,1fr); }
  .nl-inner { grid-template-columns: 1fr; gap: 32px; }
  .cta-banner { grid-template-columns: 1fr; text-align: center; }
  .cta-actions { justify-content: center; }
  .nl-card { padding: 36px 28px; }
}
@media (max-width: 768px) {
  .blog-section, .latest-section, .editors-section, .newsletter-section, .featured-section { padding: 48px 0; }
  .featured-grid { grid-template-columns: 1fr; }
  .editors-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .downloads-grid { grid-template-columns: repeat(2,1fr); }
  .category-grid-wrap { grid-template-columns: repeat(4,1fr); }
  .post-card { grid-template-columns: 1fr; }
  .post-card-thumb { min-height: 200px; aspect-ratio: 16/9; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .trust-grid { grid-template-columns: repeat(2,1fr); }
  .ai-tools-grid { grid-template-columns: repeat(2,1fr); }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn-dg { width: 100%; }
  .nl-form { flex-direction: column; }
}
@media (max-width: 480px) {
  .category-grid-wrap { grid-template-columns: repeat(3,1fr); }
  .downloads-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .trust-grid { grid-template-columns: 1fr; }
  .ai-tools-grid { grid-template-columns: 1fr; }
  .cta-banner { padding: 36px 24px; }
}

/* ── Print ───────────────────────────────────────────────── */
@media print {
  .blog-announcement, .reading-progress-container, .sidebar,
  .newsletter-section, .ai-section, .final-cta-section, .trust-bar { display: none !important; }
  .latest-layout { grid-template-columns: 1fr !important; }
}

/* ── ═══════════════════════════════════════════════════════ ── */
/*    CATEGORY / TAG ARCHIVE PAGES                              */
/* ── ═══════════════════════════════════════════════════════ ── */

/* Category/Tag Hero ─────────────────────────────────────────── */
.cat-archive-hero {
  padding: 64px 0 56px; position: relative; overflow: hidden;
}
.cat-hero-glow {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% -10%, rgba(255,255,255,0.12), transparent 60%);
  pointer-events: none;
}
.cat-hero-inner { position: relative; z-index: 1; }
.cat-breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.82rem; color: rgba(255,255,255,0.65); margin-bottom: 28px; flex-wrap: wrap;
}
.cat-breadcrumb a { color: rgba(255,255,255,0.75); text-decoration: none; transition: color 0.2s; }
.cat-breadcrumb a:hover { color: #fff; }
.cat-breadcrumb i.bi-chevron-right { font-size: 0.65rem; opacity: 0.5; }

.cat-hero-content { display: flex; flex-direction: column; align-items: center; text-align: center; }
.cat-hero-icon-wrap {
  width: 70px; height: 70px; border-radius: 22px;
  background: rgba(255,255,255,0.18); backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255,255,255,0.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; color: #fff; margin-bottom: 20px;
}
.cat-hero-title {
  font-family: var(--font-head); font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900; color: #fff; letter-spacing: -0.04em;
  margin-bottom: 12px; line-height: 1.1;
}
.cat-hero-desc {
  color: rgba(255,255,255,0.72); font-size: 1.02rem;
  line-height: 1.65; max-width: 560px; margin-bottom: 24px;
}
.cat-hero-stats {
  display: flex; align-items: center; gap: 16px;
  background: rgba(255,255,255,0.12); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-pill); padding: 10px 24px;
  flex-wrap: wrap; justify-content: center;
}
.cat-stat { display: flex; align-items: center; gap: 7px; color: rgba(255,255,255,0.85); font-size: 0.88rem; font-weight: 600; }
.cat-stat i { opacity: 0.8; }
.cat-stat-div { width: 1px; height: 18px; background: rgba(255,255,255,0.2); }

/* Category / Tag Filter Strip ───────────────────────────────── */
.cat-filter-strip {
  background: #fff; border-bottom: 1px solid var(--border);
  padding: 12px 0;
}
.cat-strip-scroll {
  display: flex; align-items: center; gap: 8px;
  overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; flex-wrap: nowrap;
}
.cat-strip-scroll::-webkit-scrollbar { display: none; }
.cat-strip-pill {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  padding: 7px 16px; border-radius: var(--radius-pill);
  font-size: 0.83rem; font-weight: 600; color: var(--text-2);
  background: var(--bg); border: 1.5px solid var(--border);
  text-decoration: none; transition: var(--transition); flex-shrink: 0;
}
.cat-strip-pill:hover { background: var(--primary-soft); color: var(--primary); border-color: rgba(37,99,235,0.2); }
.cat-strip-pill.active {
  background: var(--strip-color, var(--primary));
  color: #fff; border-color: transparent;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.cat-strip-count {
  background: rgba(255,255,255,0.25); border-radius: 999px;
  padding: 1px 7px; font-size: 0.72rem; font-weight: 700;
}
.cat-strip-pill:not(.active) .cat-strip-count {
  background: var(--surface-2); color: var(--muted);
}

/* Archive Result Header ─────────────────────────────────────── */
.archive-result-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; margin-bottom: 24px; flex-wrap: wrap;
}
.archive-result-title {
  font-family: var(--font-head); font-size: 1.3rem; font-weight: 800;
  color: var(--text); display: flex; align-items: center; gap: 10px;
  margin-bottom: 4px;
}
.archive-result-meta { font-size: 0.85rem; color: var(--muted); }
.archive-sort-select {
  padding: 8px 14px; border-radius: var(--radius-pill);
  border: 1.5px solid var(--border); background: #fff;
  font-size: 0.86rem; font-family: var(--font-body); font-weight: 600;
  color: var(--text-2); cursor: pointer; outline: none;
  transition: var(--transition);
}
.archive-sort-select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }

/* Sidebar active cat ────────────────────────────────────────── */
.sidebar-cat-item.active-cat {
  background: var(--primary-soft); color: var(--primary);
  font-weight: 700;
}

/* Active tag ────────────────────────────────────────────────── */
.sidebar-tag.active-tag {
  background: var(--primary); color: #fff; border-color: var(--primary);
}

/* Pagination ────────────────────────────────────────────────── */
.archive-pagination {
  padding: 40px 0 0; display: flex; justify-content: center;
}
.archive-pagination nav {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center;
}
.pag-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 9px 18px; border-radius: var(--radius-pill);
  background: #fff; border: 1.5px solid var(--border);
  color: var(--text-2); font-weight: 600; font-size: 0.88rem;
  text-decoration: none; transition: var(--transition);
}
.pag-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); transform: translateY(-1px); }
.pag-numbers { display: flex; gap: 4px; }
.pag-num {
  width: 40px; height: 40px; border-radius: var(--radius-pill);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.9rem;
  background: #fff; border: 1.5px solid var(--border);
  color: var(--text-2); text-decoration: none; transition: var(--transition);
}
.pag-num:hover { background: var(--primary-soft); color: var(--primary); border-color: rgba(37,99,235,0.2); }
.pag-num.active {
  background: var(--primary); color: #fff; border-color: var(--primary);
  box-shadow: var(--shadow-blue);
}

/* Archive responsive ────────────────────────────────────────── */
@media (max-width: 768px) {
  .cat-archive-hero { padding: 48px 0 40px; }
  .cat-hero-title { font-size: 2rem; }
  .cat-hero-stats { gap: 10px; padding: 8px 16px; }
  .archive-result-header { flex-direction: column; gap: 12px; }
}

/* ============================================================
   SINGLE POST PAGE — Premium Design System
   ============================================================ */

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

/* ── Page & Layout ─────────────────────────────────────────── */
.blog-post-page { background: var(--bg); padding-bottom: 60px; }
.post-main-layout { max-width: 1340px; margin: 0 auto; padding: 30px 24px; }
.post-layout-grid { display: grid; grid-template-columns: 1fr 380px; gap: 40px; align-items: start; }
.post-content-col { min-width: 0; }
.post-sidebar-col { position: sticky; top: 100px; height: fit-content; }

/* ── Breadcrumb ────────────────────────────────────────────── */
.post-breadcrumb {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 0.85rem; color: var(--muted); margin-bottom: 20px;
}
.post-breadcrumb a { color: var(--muted); text-decoration: none; transition: color 0.25s; }
.post-breadcrumb a:hover { color: var(--primary); }
.post-breadcrumb span:last-child { color: var(--text-2); font-weight: 600; }

/* ── Post Title & Subtitle ─────────────────────────────────── */
.post-hero-title {
  font-family: var(--font-head); font-size: 2.6rem; font-weight: 800;
  color: var(--text); line-height: 1.2; margin-bottom: 12px;
}
.post-subtitle {
  font-size: 1.1rem; color: var(--muted); line-height: 1.6; margin-bottom: 0;
}

/* ── Meta Bar ──────────────────────────────────────────────── */
.post-meta-bar {
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center;
  padding: 16px 0; border-top: 1.5px solid var(--border); border-bottom: 1.5px solid var(--border);
  margin-top: 12px;
}
.post-meta-item {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.85rem; color: var(--muted);
}
.post-meta-item i { font-size: 0.9rem; color: var(--muted-light); }
.post-author-mini {
  display: flex; align-items: center; gap: 10px;
  font-weight: 600; color: var(--text-2);
}

/* ── Featured Image ────────────────────────────────────────── */
.post-featured-image-container {
  border-radius: var(--radius-lg); overflow: hidden; margin: 28px 0;
  box-shadow: var(--shadow-md);
}
.post-body-featured-img { width: 100%; display: block; object-fit: cover; }
.post-image-caption {
  padding: 10px 16px; font-size: 0.82rem; color: var(--muted);
  font-style: italic; background: var(--surface-2);
}

/* ── Article Content Body ──────────────────────────────────── */
.post-content-body {
  font-family: var(--font-body); font-size: 1.08rem; line-height: 1.85;
  color: var(--text-2);
}
.post-content-body > *:first-child {
  margin-top: 0 !important;
}
.post-content-body h2,
.post-content-body h3,
.post-content-body h4 {
  font-family: var(--font-head); color: var(--text); font-weight: 700;
  margin-top: 32px; margin-bottom: 14px;
}
.post-content-body h2 { font-size: 1.6rem; }
.post-content-body h3 { font-size: 1.3rem; }
.post-content-body p { margin-bottom: 18px; }
.post-content-body img { max-width: 100%; border-radius: var(--radius); margin: 20px 0; height: auto; }
.post-content-body a { color: var(--primary); text-decoration: underline; }
.post-content-body a:hover { color: var(--primary-dark); }
.post-content-body blockquote {
  border-left: 4px solid var(--primary); padding: 20px 20px 20px 24px;
  margin: 24px 0; background: var(--primary-soft); border-radius: var(--radius-sm);
  font-style: italic; color: var(--text-2);
}
.post-content-body code {
  background: var(--surface-2); padding: 2px 8px; border-radius: 6px; font-size: 0.92rem;
}
.post-content-body pre {
  background: #1e293b; color: #e2e8f0; padding: 24px; border-radius: var(--radius);
  overflow-x: auto; margin: 24px 0; font-size: 0.9rem; line-height: 1.7;
}
.post-content-body pre code { background: transparent; padding: 0; color: inherit; }
.post-content-body ul, .post-content-body ol { padding-left: 24px; margin-bottom: 18px; }
.post-content-body li { margin-bottom: 8px; }

/* ── YouTube Video Section ─────────────────────────────────── */
.post-youtube-section {
  margin: 32px 0; padding: 28px; background: var(--surface-2);
  border-radius: var(--radius-lg);
}
.post-youtube-section h3 {
  font-family: var(--font-head); font-weight: 700; margin-bottom: 16px;
  color: var(--text); display: flex; align-items: center;
}
.youtube-video-wrapper {
  position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden;
  border-radius: var(--radius);
}
.youtube-video-wrapper iframe {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
}

/* ── Author Card ───────────────────────────────────────────── */
.post-author-card {
  display: flex; gap: 20px; align-items: center; padding: 28px;
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-card);
  margin: 32px 0; border: 1.5px solid var(--border);
}
.pac-avatar {
  width: 70px; height: 70px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.6rem; flex-shrink: 0;
}
.pac-name { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; color: var(--text); }
.pac-bio { font-size: 0.9rem; color: var(--muted); line-height: 1.5; margin-top: 4px; }
.pac-social { display: flex; gap: 12px; margin-top: 10px; }
.pac-social a {
  width: 34px; height: 34px; border-radius: 50%; background: var(--surface-2);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); transition: all 0.3s ease; text-decoration: none;
}
.pac-social a:hover { background: var(--primary); color: #fff; }

/* ── Tags Section ──────────────────────────────────────────── */
.post-tags-section { margin: 28px 0; }
.post-tags-section h4 {
  font-family: var(--font-head); font-weight: 700; font-size: 1.1rem;
  margin-bottom: 14px; display: flex; align-items: center; color: var(--text);
}
.post-tags-list { display: flex; flex-wrap: wrap; gap: 10px; }
.post-tag {
  padding: 6px 16px; border-radius: var(--radius-pill); background: var(--surface-2);
  color: var(--text-2); font-size: 0.85rem; font-weight: 600;
  text-decoration: none; border: 1.5px solid var(--border); transition: all 0.3s ease;
}
.post-tag:hover {
  background: var(--primary); color: #fff; border-color: var(--primary);
  transform: translateY(-2px);
}

/* ── Post Navigation ───────────────────────────────────────── */
.post-navigation { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 36px 0; }
.post-nav-card {
  padding: 24px; background: #fff; border-radius: var(--radius);
  border: 1.5px solid var(--border); text-decoration: none;
  transition: all 0.35s ease;
}
.post-nav-card:hover {
  box-shadow: var(--shadow-md); border-color: var(--primary); transform: translateY(-3px);
}
.post-nav-card h4 {
  font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px;
  color: var(--muted); font-weight: 600; margin-bottom: 8px; margin-top: 0;
}
.post-nav-card h3 {
  font-family: var(--font-head); font-size: 1rem; font-weight: 700;
  color: var(--text); line-height: 1.4; margin: 0;
}
.post-nav-card.next-card { text-align: right; }

/* ── Comments Container ────────────────────────────────────── */
.post-comments-container {
  margin: 36px 0; padding: 32px; background: #fff;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-card);
  border: 1.5px solid var(--border);
}
.post-comments-container > h4 {
  font-family: var(--font-head); font-weight: 700; font-size: 1.2rem;
  margin-bottom: 20px; color: var(--text);
}
.comment-item {
  display: flex; gap: 14px; padding: 18px 0;
  border-bottom: 1px solid rgba(229,231,235,0.6);
}
.comment-item:last-child { border-bottom: none; }
.comment-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.95rem; flex-shrink: 0;
}
.comment-body { flex: 1; }
.comment-author { font-weight: 700; font-size: 0.92rem; color: var(--text); }
.comment-date { font-size: 0.8rem; color: var(--muted); }
.comment-content { font-size: 0.92rem; color: var(--text-2); margin-top: 6px; line-height: 1.6; }

/* ── Newsletter CTA ────────────────────────────────────────── */
.newsletter-cta {
  margin: 36px 0; padding: 40px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: var(--radius-lg); text-align: center; color: #fff;
}
.newsletter-cta h3 {
  font-family: var(--font-head); font-weight: 800; font-size: 1.5rem; margin-bottom: 8px;
}
.newsletter-cta p { font-size: 0.95rem; opacity: 0.9; margin-bottom: 20px; }
.newsletter-cta form { display: flex; gap: 12px; max-width: 480px; margin: 0 auto; }
.newsletter-cta input {
  flex: 1; padding: 14px 20px; border-radius: var(--radius-pill);
  border: none; font-size: 0.95rem; outline: none;
}
.newsletter-cta button {
  padding: 14px 28px; border-radius: var(--radius-pill); background: #fff;
  color: var(--primary); font-weight: 700; border: none; cursor: pointer;
  transition: all 0.3s ease;
}
.newsletter-cta button:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

/* ── Related / New Articles ────────────────────────────────── */
.post-related-section { margin: 40px 0; }
.related-title {
  font-family: var(--font-head); font-weight: 800; font-size: 1.4rem;
  margin-bottom: 24px; display: flex; align-items: center; gap: 10px; color: var(--text);
}
.related-title::before {
  content: ''; width: 4px; height: 28px;
  background: linear-gradient(180deg, var(--primary), var(--accent));
  border-radius: 4px; display: inline-block;
}
.related-posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.related-card {
  text-decoration: none; background: #fff; border-radius: var(--radius);
  overflow: hidden; border: 1.5px solid var(--border);
  transition: all 0.35s ease; display: flex; flex-direction: column;
}
.related-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.related-card img { width: 100%; height: 180px; object-fit: cover; transition: transform 0.4s ease; }
.related-card:hover img { transform: scale(1.05); }
.related-card-content { padding: 18px; }
.related-card-content h4 {
  font-family: var(--font-head); font-weight: 700; font-size: 0.95rem;
  color: var(--text); line-height: 1.4; margin-bottom: 10px; margin-top: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.related-card-meta { display: flex; gap: 14px; font-size: 0.8rem; color: var(--muted); }
.related-card-meta i { margin-right: 3px; }

/* ── Sidebar Widgets ───────────────────────────────────────── */
.sidebar-widget {
  background: #fff; border-radius: var(--radius); padding: 24px;
  margin-bottom: 20px; border: 1.5px solid var(--border);
  box-shadow: var(--shadow-card); transition: box-shadow 0.3s ease;
}
.sidebar-widget:hover { box-shadow: var(--shadow-md); }
.sidebar-widget h4 {
  font-family: var(--font-head); font-weight: 700; font-size: 1.05rem;
  color: var(--text); margin-bottom: 16px; display: flex; align-items: center;
  padding-bottom: 14px; border-bottom: 2px solid var(--surface-2); margin-top: 0;
}
.sidebar-widget h4 i { color: var(--primary); font-size: 1.1rem; }

/* ── Sidebar Search ────────────────────────────────────────── */
.sidebar-search-form { position: relative; }
.sidebar-search-form input {
  width: 100%; padding: 12px 16px; padding-right: 80px;
  border-radius: var(--radius-pill); border: 1.5px solid var(--border);
  font-size: 0.9rem; font-family: var(--font-body); outline: none;
  transition: all 0.3s ease; box-sizing: border-box;
}
.sidebar-search-form input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.sidebar-search-form input::placeholder { color: var(--muted-light); }
.sidebar-search-form button {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  padding: 8px 18px; border-radius: var(--radius-pill);
  background: var(--primary); color: #fff; border: none;
  font-weight: 600; font-size: 0.85rem; cursor: pointer; transition: all 0.3s ease;
}
.sidebar-search-form button:hover { background: var(--primary-dark); }

/* Live search dropdown */
.sidebar-live-results {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0;
  background: #fff; border-radius: var(--radius); border: 1.5px solid var(--border);
  box-shadow: var(--shadow-lg); z-index: 100; max-height: 320px;
  overflow-y: auto; display: none;
}
.sidebar-live-results.active { display: block; }
.live-result-item {
  display: flex; gap: 12px; padding: 12px 16px; text-decoration: none;
  color: var(--text); transition: background 0.2s ease; align-items: center;
}
.live-result-item:hover { background: var(--bg-soft); }
.live-result-item img {
  width: 50px; height: 50px; border-radius: 8px; object-fit: cover; flex-shrink: 0;
}
.live-result-item .lr-info h5 {
  font-size: 0.88rem; font-weight: 600; color: var(--text); margin: 0; line-height: 1.3;
}
.live-result-item .lr-info span { font-size: 0.78rem; color: var(--muted); }

/* ── Social Follow Widget ──────────────────────────────────── */
.social-follow-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.social-follow-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 16px; border-radius: var(--radius-sm); text-decoration: none;
  color: #fff; font-weight: 600; font-size: 0.85rem;
  transition: all 0.3s ease; border: none;
}
.social-follow-btn:hover { transform: translateY(-3px); filter: brightness(1.1); box-shadow: 0 8px 20px rgba(0,0,0,0.2); }
.social-follow-btn i { font-size: 1.1rem; }
.social-follow-btn.fb { background: #1877F2; }
.social-follow-btn.ig { background: linear-gradient(135deg, #833AB4, #FD1D1D, #F77737); }
.social-follow-btn.tw { background: #000000; }
.social-follow-btn.yt { background: #FF0000; }

/* ── Trending Articles ─────────────────────────────────────── */
.trending-articles-list { display: flex; flex-direction: column; gap: 12px; }
.trending-item {
  display: flex; gap: 14px; text-decoration: none; padding: 12px;
  border-radius: var(--radius-sm); background: var(--surface-2);
  transition: all 0.3s ease; align-items: center;
}
.trending-item:hover { background: var(--primary-soft); transform: translateX(4px); }
.trending-item img {
  width: 65px; height: 65px; border-radius: 10px; object-fit: cover; flex-shrink: 0;
}
.trending-item div { flex: 1; min-width: 0; }
.trending-item h5 {
  font-size: 0.88rem; font-weight: 600; color: var(--text); margin: 0 0 4px;
  line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.trending-item span {
  font-size: 0.78rem; color: var(--muted); display: flex; align-items: center; gap: 4px;
}
.trending-rank {
  width: 28px; height: 28px; border-radius: 50%; background: var(--primary);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.75rem; flex-shrink: 0;
}

/* ── Categories List ───────────────────────────────────────── */
.categories-list { display: flex; flex-direction: column; gap: 4px; }
.category-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 11px 16px; border-radius: var(--radius-sm); text-decoration: none;
  color: var(--text-2); font-size: 0.9rem; font-weight: 500;
  transition: all 0.3s ease; background: transparent;
}
.category-item:hover { background: var(--primary-soft); color: var(--primary); padding-left: 20px; }
.category-item .badge {
  padding: 3px 10px; border-radius: var(--radius-pill); background: var(--surface-2);
  color: var(--muted); font-size: 0.78rem; font-weight: 700;
}
.category-item:hover .badge { background: var(--primary); color: #fff; }

/* ── Subscribe Widget ──────────────────────────────────────── */
.subscribe-widget {
  background: linear-gradient(135deg, var(--primary), var(--purple)) !important;
  color: #fff !important; border-color: transparent !important;
}
.subscribe-widget h4 { color: #fff !important; border-bottom-color: rgba(255,255,255,0.15) !important; }
.subscribe-widget h4 i { color: #fff !important; }
.subscribe-widget p { color: rgba(255,255,255,0.85); }
.subscribe-widget input {
  padding: 12px 16px; border-radius: var(--radius-pill); border: none;
  width: 100%; font-size: 0.9rem; box-sizing: border-box; outline: none;
}
.subscribe-widget button {
  width: 100%; padding: 12px; border-radius: var(--radius-pill);
  background: #fff; color: var(--primary); font-weight: 700;
  border: none; cursor: pointer; margin-top: 8px; transition: all 0.3s ease;
}
.subscribe-widget button:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* ── Ad Space ──────────────────────────────────────────────── */
.ad-space {
  padding: 40px 20px; background: var(--surface-2); border-radius: var(--radius);
  border: 2px dashed var(--border); text-align: center;
  color: var(--muted); font-size: 0.85rem; font-weight: 500;
}

/* ── Single Post Responsive ────────────────────────────────── */
@media (max-width: 1024px) {
  .post-layout-grid { grid-template-columns: 1fr; gap: 30px; }
  .post-sidebar-col { position: static; }
  .related-posts-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .post-hero-title { font-size: 1.8rem; }
  .post-meta-bar { gap: 10px; }
  .related-posts-grid { grid-template-columns: 1fr; }
  .post-navigation { grid-template-columns: 1fr; }
  .newsletter-cta form { flex-direction: column; }
  .post-content-body { font-size: 1rem; }
  .post-main-layout { padding: 20px 16px; }
  .social-follow-grid { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   SOCIAL SHARING BAR — Above Comment Box
   ============================================================ */
.post-share-bar {
  margin: 36px 0; padding: 28px 32px;
  background: #fff; border-radius: var(--radius-lg);
  border: 1.5px solid var(--border); box-shadow: var(--shadow-card);
}
.share-bar-label {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 700; font-size: 1.05rem;
  color: var(--text); margin-bottom: 18px;
}
.share-bar-label i {
  font-size: 1.15rem; color: var(--primary);
}
.share-bar-buttons {
  display: flex; flex-wrap: wrap; gap: 10px;
}
.share-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: var(--radius-pill);
  font-size: 0.88rem; font-weight: 600; text-decoration: none;
  color: #fff; border: none; cursor: pointer;
  transition: all 0.3s ease; font-family: var(--font-body);
}
.share-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  filter: brightness(1.1);
}
.share-btn i { font-size: 1.05rem; }
.share-fb { background: #1877F2; }
.share-tw { background: #000; }
.share-wa { background: #25D366; }
.share-li { background: #0A66C2; }
.share-tg { background: #0088cc; }
.share-copy {
  background: var(--surface-2); color: var(--text-2);
  border: 1.5px solid var(--border);
}
.share-copy:hover {
  background: var(--primary); color: #fff; border-color: var(--primary);
}

/* ============================================================
   PREMIUM SEARCH WIDGET — Glassmorphism Design
   ============================================================ */
.sidebar-search-premium {
  border-radius: var(--radius-lg); margin-bottom: 20px;
  background: linear-gradient(135deg, #1e3a5f 0%, #0f2744 50%, #0a1929 100%);
  padding: 3px; overflow: hidden;
  box-shadow: 0 12px 40px rgba(15,39,68,0.3);
}
.search-premium-inner {
  padding: 28px 24px; text-align: center;
  border-radius: calc(var(--radius-lg) - 3px);
  background: linear-gradient(135deg, rgba(30,58,95,0.95), rgba(15,39,68,0.98));
  position: relative; overflow: hidden;
}
.search-premium-inner::before {
  content: ''; position: absolute; top: -50%; right: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(37,99,235,0.08) 0%, transparent 60%);
  animation: searchGlow 6s ease-in-out infinite alternate;
}
@keyframes searchGlow {
  0% { transform: translate(0, 0); }
  100% { transform: translate(-10%, 10%); }
}
.search-premium-icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px; position: relative; z-index: 1;
  box-shadow: 0 8px 24px rgba(37,99,235,0.35);
  animation: iconFloat 3s ease-in-out infinite;
}
@keyframes iconFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
.search-premium-icon i { font-size: 1.4rem; color: #fff; }
.search-premium-inner h4 {
  font-family: var(--font-head); font-weight: 700; font-size: 1.15rem;
  color: #fff; margin: 0 0 6px; position: relative; z-index: 1;
  border: none; padding: 0;
}
.search-premium-inner p {
  font-size: 0.82rem; color: rgba(255,255,255,0.55);
  margin: 0 0 18px; position: relative; z-index: 1;
}
.search-premium-form { position: relative; z-index: 1; }
.search-premium-input-wrap {
  display: flex; align-items: center;
  background: rgba(255,255,255,0.1); border-radius: var(--radius-pill);
  border: 1.5px solid rgba(255,255,255,0.15);
  padding: 4px 4px 4px 16px;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}
.search-premium-input-wrap:focus-within {
  border-color: var(--primary);
  background: rgba(255,255,255,0.15);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.2);
}
.search-premium-input-wrap > i {
  color: rgba(255,255,255,0.4); font-size: 0.9rem; flex-shrink: 0;
}
.search-premium-input-wrap input {
  flex: 1; border: none; background: transparent; color: #fff;
  padding: 10px 12px; font-size: 0.9rem; font-family: var(--font-body);
  outline: none;
}
.search-premium-input-wrap input::placeholder {
  color: rgba(255,255,255,0.35);
}
.search-premium-input-wrap button {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--primary); color: #fff; border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.3s ease; flex-shrink: 0;
}
.search-premium-input-wrap button:hover {
  background: var(--accent); transform: scale(1.08);
}
.search-premium-form .sidebar-live-results {
  border-radius: var(--radius); margin-top: 10px;
  border-color: rgba(255,255,255,0.1);
  background: #fff;
}

/* ============================================================
   PREMIUM FOLLOW US WIDGET — Circular Icons
   ============================================================ */
.sidebar-follow-premium {
  background: #fff; border-radius: var(--radius); padding: 24px;
  margin-bottom: 20px; border: 1.5px solid var(--border);
  box-shadow: var(--shadow-card); transition: box-shadow 0.3s ease;
}
.sidebar-follow-premium:hover { box-shadow: var(--shadow-md); }
.sidebar-follow-premium h4 {
  font-family: var(--font-head); font-weight: 700; font-size: 1.05rem;
  color: var(--text); margin: 0 0 20px; display: flex; align-items: center;
  padding-bottom: 14px; border-bottom: 2px solid var(--surface-2);
}
.sidebar-follow-premium h4 i { color: #EF4444; font-size: 1.1rem; }
.follow-circles-row {
  display: flex; justify-content: space-between; gap: 10px;
}
.follow-circle {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  text-decoration: none; transition: all 0.35s ease;
  flex: 1;
}
.follow-circle:hover { transform: translateY(-5px); }
.follow-circle-icon {
  width: 54px; height: 54px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.3rem;
  transition: all 0.35s ease;
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}
.follow-circle:hover .follow-circle-icon {
  transform: scale(1.1);
  box-shadow: 0 10px 28px rgba(0,0,0,0.25);
}
.fc-fb .follow-circle-icon { background: #1877F2; }
.fc-ig .follow-circle-icon { background: linear-gradient(135deg, #833AB4, #FD1D1D, #F77737); }
.fc-tw .follow-circle-icon { background: #000; }
.fc-yt .follow-circle-icon { background: #FF0000; }
.follow-circle-label {
  font-size: 0.78rem; font-weight: 600; color: var(--muted);
  transition: color 0.3s ease;
}
.follow-circle:hover .follow-circle-label { color: var(--text); }

/* ── Share bar responsive ───────────────────────────────── */
@media (max-width: 768px) {
  .share-bar-buttons { gap: 8px; }
  .share-btn { padding: 8px 14px; font-size: 0.82rem; }
  .share-btn span { display: none; }
  .follow-circle-icon { width: 46px; height: 46px; font-size: 1.1rem; }
}

/* Unified Blog Footer Meta (Tags & Share) */
.post-footer-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-top: 30px;
  margin-bottom: 30px;
}

.post-footer-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.tags-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  margin-right: 4px;
}

.tags-label i {
  color: var(--primary);
}

.footer-tag-item {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  background: var(--bg-secondary);
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  text-decoration: none !important;
  transition: var(--transition);
}

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

.post-footer-share {
  display: flex;
  align-items: center;
  gap: 8px;
}

.share-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  margin-right: 4px;
}

.share-label i {
  color: var(--secondary);
}

.share-icon-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  color: var(--text-secondary);
  transition: var(--transition);
  text-decoration: none !important;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
}

.share-icon-btn:hover {
  transform: translateY(-2px);
  color: #ffffff;
}

.share-icon-btn.facebook:hover { background: #1877F2; }
.share-icon-btn.twitter:hover { background: #1DA1F2; }
.share-icon-btn.whatsapp:hover { background: #25D366; }
.share-icon-btn.linkedin:hover { background: #0A66C2; }
.share-icon-btn.copy:hover { background: var(--primary); }

/* Unified Comments Section inside content box */
.post-footer-comments {
  margin-top: 30px;
  padding: 24px;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.comments-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-top: 0 !important;
  margin-bottom: 16px;
}

.footer-comment-form textarea {
  resize: none;
  font-size: 0.85rem;
  background: #ffffff !important;
  border: 1px solid var(--border);
}

.footer-comment-form textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

.footer-comments-list {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.comment-item-compact {
  display: flex;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
}

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

.comment-avatar-compact {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.85rem;
}

.comment-body-compact {
  flex: 1;
}

.comment-header-compact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.comment-author-compact {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
}

.comment-date-compact {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.comment-text-compact {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

/* Responsive adjust */
@media (max-width: 768px) {
  .post-footer-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  /* Make sure blog page has no horizontal scrolling */
  body, .blog-page {
    overflow-x: hidden !important;
  }

  /* Fix Category cards on mobile/tablets (prevent squeezing and icon overflow) */
  .cat-card {
    width: 105px !important;
    padding: 14px 8px !important;
    scroll-snap-align: start;
    flex-shrink: 0;
  }
  .cat-icon-wrap {
    width: 42px !important;
    height: 42px !important;
    font-size: 1.1rem !important;
    border-radius: 12px !important;
  }
  .cat-name {
    font-size: 0.74rem !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
  }
  .cat-count {
    font-size: 0.68rem !important;
  }
  .category-carousel {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    gap: 12px !important;
    padding: 8px 4px !important;
  }

  /* Horizontal layout for meta bar on mobile (saves vertical space) */
  .post-meta-bar {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 10px 14px !important;
    padding: 12px 0 !important;
  }
  .post-meta-item {
    font-size: 0.8rem !important;
  }
  
  /* Optimize Post Card Padding on Mobile */
  .post-card-body {
    padding: 16px !important;
    gap: 8px !important;
  }
  .post-card-body h3 {
    font-size: 0.95rem !important;
  }
  .post-card-body p {
    font-size: 0.82rem !important;
  }
  .post-card-meta {
    gap: 8px !important;
    font-size: 0.74rem !important;
  }

  /* Article content responsive safeguards */
  .post-content-body {
    font-size: 0.98rem !important;
    line-height: 1.75 !important;
  }
  .post-content-body img {
    max-width: 100% !important;
    height: auto !important;
    margin: 16px 0 !important;
  }
  .post-content-body iframe,
  .post-content-body embed,
  .post-content-body video {
    max-width: 100% !important;
    height: auto !important;
  }
  .post-content-body pre {
    padding: 16px !important;
    font-size: 0.8rem !important;
    margin: 16px 0 !important;
    max-width: 100% !important;
    overflow-x: auto !important;
  }
  .post-content-body table {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    border-collapse: collapse !important;
  }
  .post-content-body blockquote {
    padding: 16px 16px 16px 20px !important;
    margin: 16px 0 !important;
  }

  /* Single post details responsive fixes */
  .post-share-bar {
    padding: 20px !important;
    margin: 24px 0 !important;
  }
  .post-author-card {
    padding: 20px !important;
    margin: 24px 0 !important;
    flex-direction: column !important;
    text-align: center !important;
  }
  .post-author-card .pac-avatar {
    margin: 0 auto 12px auto !important;
  }

  /* Sidebar responsive grid layout (replaces single long column) */
  .sidebar {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    gap: 20px !important;
    margin-top: 36px !important;
  }

  /* Make sidebar widgets more compact */
  .sidebar-card, .sidebar-nl {
    padding: 18px !important;
    border-radius: var(--radius) !important;
  }

  /* Compact 1-column list for Categories on mobile (prevents text clipping) */
  .sidebar-cat-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
  }
  .sidebar-cat-item {
    padding: 8px 12px !important;
    font-size: 0.84rem !important;
    background: var(--bg) !important;
    border: 1px solid var(--border-soft) !important;
    border-radius: var(--radius-sm) !important;
  }
  .sidebar-cat-item:hover {
    background: var(--primary-soft) !important;
    color: var(--primary) !important;
  }
  .sidebar-cat-item .cat-badge {
    font-size: 0.72rem !important;
    padding: 2px 8px !important;
  }

  /* Optimize Search field on mobile */
  .sidebar-search {
    padding: 6px 12px !important;
  }

  /* Optimize Advertisement Slot on mobile */
  .ad-slot {
    padding: 24px 16px !important;
    min-height: 140px !important;
    border-radius: var(--radius) !important;
  }
}

/* Premium Blog Product Promotion Card Styles */
.blog-product-promo {
    margin: 28px 0; 
    border: 1px solid var(--border-color); 
    border-left: 4px solid var(--accent); 
    border-radius: 8px; 
    padding: 16px; 
    background: var(--bg-surface); 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    gap: 16px; 
    box-shadow: var(--shadow-sm); 
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.blog-product-promo:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md) !important;
}
.blog-product-promo a {
    transition: color 0.15s;
}
.blog-product-promo a:hover {
    color: var(--accent) !important;
}
@media (max-width: 576px) {
    .blog-product-promo {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .blog-product-promo a.btn-dc-primary {
        width: 100%;
        justify-content: center;
    }
}

/* Dark Mode component overrides for Blog */
[data-theme="dark"] .stats-section,
[data-theme="dark"] .faq-section,
[data-theme="dark"] .trending-row-section,
[data-theme="dark"] .editors-section,
[data-theme="dark"] .blog-categories-section {
  background: var(--bg) !important;
  border-color: var(--border) !important;
}

[data-theme="dark"] .blog-hero {
  background: linear-gradient(155deg, #07070a 0%, #0c0c12 40%, #07070a 100%) !important;
}

[data-theme="dark"] .post-card,
[data-theme="dark"] .featured-card,
[data-theme="dark"] .editor-card,
[data-theme="dark"] .testimonial-card,
[data-theme="dark"] .author-card,
[data-theme="dark"] .post-author-card,
[data-theme="dark"] .post-nav-card,
[data-theme="dark"] .related-card,
[data-theme="dark"] .post-comments-container,
[data-theme="dark"] .download-card,
[data-theme="dark"] .dl-card,
[data-theme="dark"] .sidebar-card,
[data-theme="dark"] .sidebar-widget,
[data-theme="dark"] .sidebar-follow-premium,
[data-theme="dark"] .search-premium-form .sidebar-live-results,
[data-theme="dark"] .search-suggestions,
[data-theme="dark"] .social-card {
  background: var(--surface) !important;
  border-color: var(--border) !important;
  box-shadow: var(--shadow-card) !important;
}

[data-theme="dark"] .cat-card:hover {
  background: linear-gradient(145deg, var(--surface-2), var(--bg-soft)) !important;
  border-color: var(--primary) !important;
}

[data-theme="dark"] .footer-comment-form textarea {
  background: var(--surface-2) !important;
  border-color: var(--border) !important;
  color: var(--text) !important;
}

[data-theme="dark"] .hero-sub {
  color: var(--text-2) !important;
}

[data-theme="dark"] .hero-search,
[data-theme="dark"] .live-search-results {
  background: var(--surface) !important;
  border-color: var(--border) !important;
}
[data-theme="dark"] .hero-search input {
  color: var(--text) !important;
}

[data-theme="dark"] .trending-tag {
  background: var(--surface-2) !important;
  color: var(--text) !important;
  border-color: var(--border) !important;
}
[data-theme="dark"] .trending-tag:hover {
  background: var(--primary) !important;
  color: #ffffff !important;
  border-color: var(--primary) !important;
}

[data-theme="dark"] .section-heading p {
  color: var(--text-2) !important;
}
