/**
 * Elite+ Guides Feature Styles - Revamped Edition
 * Premium dark theme with neon accents & modern UI
 * ═══════════════════════════════════════════════════════════════════════════
 */

/* ===== CSS Custom Properties ===== */
:root {
  --guides-accent: #a855f7;
  --guides-accent-alt: #6366f1;
  --guides-accent-glow: rgba(168, 85, 247, 0.4);
  --guides-gold: #fbbf24;
  --guides-surface: rgba(255, 255, 255, 0.03);
  --guides-border: rgba(255, 255, 255, 0.08);
}

/* ===== Blogs Page Layout ===== */
section.page[data-page="blogs"] {
  padding: 0;
}

section.page.active[data-page="blogs"] {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.blogs-container {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

/* ═══════════════════════════════════════════════════════════════════════════
   HERO HEADER — Immersive Landing Experience
   ═══════════════════════════════════════════════════════════════════════════ */
.guides-hero {
  position: relative;
  padding: 2.5rem 2rem 2rem;
  flex-shrink: 0;
  overflow: hidden;
}

.guides-hero-bg {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse 120% 80% at 20% 0%, rgba(168, 85, 247, 0.25) 0%, transparent 50%),
    radial-gradient(ellipse 100% 70% at 80% 10%, rgba(59, 130, 246, 0.2) 0%, transparent 45%),
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(99, 102, 241, 0.12) 0%, transparent 40%),
    linear-gradient(180deg, rgba(10, 10, 18, 0.9) 0%, rgba(10, 10, 18, 0.97) 100%);
  z-index: 0;
}

.guides-hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
}

.guides-hero-bg::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(168, 85, 247, 0.3) 20%, 
    rgba(99, 102, 241, 0.4) 50%, 
    rgba(168, 85, 247, 0.3) 80%, 
    transparent 100%
  );
}

.guides-hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.guides-hero-text {
  flex: 1;
  min-width: 0;
}

.guides-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.15) 0%, rgba(99, 102, 241, 0.1) 100%);
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #c4b5fd;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.guides-hero-badge svg {
  color: #fbbf24;
}

.guides-hero-title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.85) 50%, #c4b5fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.guides-hero-title .elite-icon {
  -webkit-text-fill-color: #a855f7;
  margin-right: 0.35rem;
}

.guides-hero-subtitle {
  margin: 0;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
  max-width: 480px;
}

/* Hero Stats */
.guides-hero-stats {
  display: flex;
  gap: 1.75rem;
  padding: 1.25rem 1.75rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  flex-shrink: 0;
}

.guides-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.guides-stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.2;
  background: linear-gradient(135deg, #fff 0%, #c4b5fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.guides-stat-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 0.25rem;
}

/* Hero Search */
.guides-hero-search {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 1.75rem auto 0;
}

.guides-search-container {
  position: relative;
  width: 100%;
}

.guides-search-icon {
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: rgba(255, 255, 255, 0.4);
  pointer-events: none;
  transition: color 0.3s ease;
}

.guides-search-input {
  width: 100%;
  padding: 1rem 4rem 1rem 3.25rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(168, 85, 247, 0.25);
  border-radius: 16px;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 4px 24px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.guides-search-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.guides-search-input:focus {
  outline: none;
  border-color: rgba(168, 85, 247, 0.5);
  box-shadow: 
    0 0 0 4px rgba(168, 85, 247, 0.12),
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 0 40px rgba(168, 85, 247, 0.1);
}

.guides-search-input:focus + .guides-search-kbd,
.guides-search-input:focus ~ .guides-search-icon {
  opacity: 0;
}

.guides-search-kbd {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  padding: 0.3rem 0.6rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  font-size: 0.7rem;
  font-family: inherit;
  color: rgba(255, 255, 255, 0.4);
  transition: opacity 0.2s ease;
}

/* ═══════════════════════════════════════════════════════════════════════════
   CATEGORY FILTERS — Enhanced Pills
   ═══════════════════════════════════════════════════════════════════════════ */
.guides-categories-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 2rem;
  background: rgba(9, 9, 11, 0.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.guides-categories {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  flex: 1;
  padding: 0.25rem 0;
  scrollbar-width: none;
}

.guides-categories::-webkit-scrollbar {
  display: none;
}

.blog-category-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  flex-shrink: 0;
}

.blog-category-btn svg {
  width: 16px;
  height: 16px;
  opacity: 0.7;
}

.blog-category-btn:hover {
  background: rgba(168, 85, 247, 0.12);
  border-color: rgba(168, 85, 247, 0.35);
  color: rgba(255, 255, 255, 0.9);
  transform: translateY(-1px);
}

.blog-category-btn.active {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.22) 0%, rgba(99, 102, 241, 0.18) 100%);
  border-color: rgba(168, 85, 247, 0.5);
  color: #fff;
  box-shadow: 
    0 0 20px rgba(168, 85, 247, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.blog-category-btn.active svg {
  opacity: 1;
  color: #a855f7;
}

/* View Toggle */
.guides-view-toggle {
  display: flex;
  gap: 0.35rem;
  padding: 0.35rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  flex-shrink: 0;
}

.guides-view-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: all 0.2s ease;
}

.guides-view-btn:hover {
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.06);
}

.guides-view-btn.active {
  background: rgba(168, 85, 247, 0.2);
  color: #a855f7;
}

/* ═══════════════════════════════════════════════════════════════════════════
   FEATURED BLOGS SECTION — Stunning Bento Layout
   ═══════════════════════════════════════════════════════════════════════════ */
.blogs-featured-section {
  position: relative;
  margin: 0 0 2rem;
  padding: 2rem;
  flex-shrink: 0;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(18, 12, 30, 0.98) 0%, rgba(10, 8, 20, 0.99) 100%);
  border: 1px solid rgba(168, 85, 247, 0.25);
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.5),
    0 0 80px rgba(168, 85, 247, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

/* Animated gradient mesh */
.blogs-featured-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 500px 350px at 0% 0%, rgba(168, 85, 247, 0.3), transparent 55%),
    radial-gradient(ellipse 400px 300px at 100% 0%, rgba(59, 130, 246, 0.2), transparent 50%),
    radial-gradient(ellipse 300px 250px at 50% 100%, rgba(139, 92, 246, 0.15), transparent 45%);
  animation: featuredGradientPulse 12s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes featuredGradientPulse {
  0% { opacity: 0.7; transform: scale(1); }
  100% { opacity: 1; transform: scale(1.05); }
}

/* Floating particles */
.blogs-featured-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 15% 25%, rgba(168, 85, 247, 0.5) 1px, transparent 1px),
    radial-gradient(circle at 75% 15%, rgba(59, 130, 246, 0.4) 1px, transparent 1px),
    radial-gradient(circle at 55% 75%, rgba(139, 92, 246, 0.4) 1px, transparent 1px),
    radial-gradient(circle at 85% 65%, rgba(6, 182, 212, 0.3) 1px, transparent 1px);
  background-size: 100% 100%;
  animation: featuredParticleDrift 18s ease-in-out infinite;
  pointer-events: none;
}

@keyframes featuredParticleDrift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.blogs-featured-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.blogs-featured-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}

.blogs-featured-title svg {
  width: 22px;
  height: 22px;
  color: #fbbf24;
  filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.5));
  animation: featuredStarGlow 2.5s ease-in-out infinite;
}

@keyframes featuredStarGlow {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.1) rotate(8deg); }
}

.blogs-featured-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.2) 0%, rgba(245, 158, 11, 0.1) 100%);
  border: 1px solid rgba(251, 191, 36, 0.4);
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  color: #fbbf24;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  box-shadow: 0 0 20px rgba(251, 191, 36, 0.15);
}

/* Featured Grid - Asymmetric Bento Layout */
.blogs-featured-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  grid-template-rows: repeat(2, minmax(170px, 1fr));
  gap: 1.25rem;
}

/* === Main Featured Card - Hero Spotlight === */
.blogs-featured-grid .blog-card-featured:first-child {
  grid-row: span 2;
  min-height: 380px;
  background: linear-gradient(160deg, rgba(28, 18, 48, 0.95) 0%, rgba(18, 12, 35, 0.98) 100%);
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 
    0 20px 50px rgba(0, 0, 0, 0.4),
    0 0 40px rgba(168, 85, 247, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.blogs-featured-grid .blog-card-featured:first-child:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: rgba(168, 85, 247, 0.55);
  box-shadow: 
    0 28px 60px rgba(0, 0, 0, 0.5),
    0 0 60px rgba(168, 85, 247, 0.18);
}

.blogs-featured-grid .blog-card-featured:first-child .blog-card-featured-icon {
  width: 64px;
  height: 64px;
  font-size: 1.8rem;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.25) 0%, rgba(99, 102, 241, 0.15) 100%);
  border: 2px solid rgba(168, 85, 247, 0.4);
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(168, 85, 247, 0.2);
}

.blogs-featured-grid .blog-card-featured:first-child .blog-card-featured-title {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.3;
  -webkit-line-clamp: 3;
  background: linear-gradient(135deg, #fff 0%, #e2d4f0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.blogs-featured-grid .blog-card-featured:first-child .blog-card-featured-excerpt {
  font-size: 0.95rem;
  -webkit-line-clamp: 4;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.65;
}

.blogs-featured-grid .blog-card-featured:first-child .blog-card-featured-number {
  width: 34px;
  height: 34px;
  font-size: 0.85rem;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.25), rgba(99, 102, 241, 0.15));
  border: 2px solid rgba(168, 85, 247, 0.45);
  box-shadow: 0 4px 12px rgba(168, 85, 247, 0.25);
}

/* === Secondary Featured Cards === */
.blogs-featured-grid .blog-card-featured:not(:first-child) {
  min-height: 170px;
  background: linear-gradient(160deg, rgba(22, 18, 38, 0.95) 0%, rgba(15, 12, 28, 0.98) 100%);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 16px;
  padding: 1.35rem;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.blogs-featured-grid .blog-card-featured:not(:first-child):hover {
  transform: translateY(-4px) translateX(2px);
  border-color: rgba(99, 102, 241, 0.45);
  box-shadow: 
    0 14px 35px rgba(0, 0, 0, 0.35),
    0 0 25px rgba(99, 102, 241, 0.12);
}

.blogs-featured-grid .blog-card-featured:not(:first-child) .blog-card-featured-icon {
  width: 42px;
  height: 42px;
  font-size: 1.2rem;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(139, 92, 246, 0.1) 100%);
  border: 1px solid rgba(99, 102, 241, 0.35);
}

.blogs-featured-grid .blog-card-featured:not(:first-child) .blog-card-featured-title {
  font-size: 1rem;
  font-weight: 700;
  -webkit-line-clamp: 2;
}

.blogs-featured-grid .blog-card-featured:not(:first-child) .blog-card-featured-excerpt {
  margin: 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.55;
  flex: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Featured Card Base */
.blogs-featured-section .blog-card-featured {
  position: relative;
  background: linear-gradient(160deg, rgba(24, 24, 36, 0.9) 0%, rgba(16, 16, 26, 0.95) 100%);
  border: 1px solid rgba(168, 85, 247, 0.15);
  border-radius: 16px;
  padding: 1.4rem;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  overflow: hidden;
  min-height: 200px;
}

.blogs-featured-section .blog-card-featured-cover {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.35;
  filter: saturate(1.1) contrast(1.05);
  z-index: 0;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.blogs-featured-section .blog-card-featured-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 8, 16, 0.2) 0%, rgba(8, 8, 16, 0.85) 70%);
}

.blogs-featured-section .blog-card-featured::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(350px 180px at 10% -8%, rgba(168, 85, 247, 0.2), transparent 60%);
  opacity: 0.6;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.blogs-featured-section .blog-card-featured:hover {
  transform: translateY(-5px);
  border-color: rgba(168, 85, 247, 0.4);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.45),
    0 0 40px rgba(168, 85, 247, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.blogs-featured-section .blog-card-featured:hover::before {
  opacity: 1;
}

.blogs-featured-section .blog-card-featured:hover .blog-card-featured-cover {
  opacity: 0.45;
  transform: scale(1.02);
}

.blogs-featured-section .blog-card-featured.premium {
  background: linear-gradient(160deg, rgba(28, 24, 18, 0.95) 0%, rgba(18, 16, 12, 0.98) 100%);
  border-color: rgba(251, 191, 36, 0.25);
}

.blogs-featured-section .blog-card-featured.premium::before {
  background:
    radial-gradient(350px 180px at 10% -8%, rgba(251, 191, 36, 0.22), transparent 60%);
}

.blogs-featured-section .blog-card-featured.premium:hover {
  border-color: rgba(251, 191, 36, 0.5);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.45),
    0 0 40px rgba(251, 191, 36, 0.12);
}

.blogs-featured-section .blog-card-featured > *:not(.blog-card-featured-cover) {
  position: relative;
  z-index: 1;
}

/* Featured Card Number Badge */
.blogs-featured-section .blog-card-featured-number {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 800;
  color: #c4b5fd;
}

.blogs-featured-section .blog-card-featured.premium .blog-card-featured-number {
  background: rgba(251, 191, 36, 0.15);
  border-color: rgba(251, 191, 36, 0.35);
  color: #fbbf24;
}

/* Featured Card Icon */
.blogs-featured-section .blog-card-featured-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.18) 0%, rgba(99, 102, 241, 0.1) 100%);
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 12px;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.blogs-featured-section .blog-card-featured.premium .blog-card-featured-icon {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.2) 0%, rgba(245, 158, 11, 0.1) 100%);
  border-color: rgba(251, 191, 36, 0.35);
}

/* Featured Card Content */
.blogs-featured-section .blog-card-featured-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.blogs-featured-section .blog-card-featured-category {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  width: fit-content;
  padding: 0.2rem 0.55rem;
  background: rgba(var(--cat-color-rgb, 168, 85, 247), 0.12);
  border-radius: 6px;
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--cat-color, #a855f7);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.blogs-featured-section .blog-card-featured-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blogs-featured-section .blog-card-featured-excerpt {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.blogs-featured-section .blog-card-featured-meta {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: auto;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
}

/* Premium Crown Badge */
.blog-card-premium-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.6rem;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  border-radius: 6px;
  font-size: 0.6rem;
  font-weight: 800;
  color: #000;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  box-shadow: 0 2px 8px rgba(251, 191, 36, 0.3);
}

.blog-card-premium-badge svg {
  width: 10px;
  height: 10px;
}

/* Section Divider */
.blogs-section-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 2rem 1rem;
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.blogs-section-divider::before,
.blogs-section-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.06) 50%,
    transparent 100%
  );
}

/* Featured Section Responsive */
@media (max-width: 1024px) {
  .blogs-featured-section {
    margin: 0 0 1.5rem;
    padding: 1.5rem;
  }

  .blogs-featured-grid {
    grid-template-columns: 1.5fr 1fr;
  }
  
  .blogs-featured-grid .blog-card-featured:first-child {
    min-height: 320px;
    padding: 1.5rem;
  }

  .blogs-featured-grid .blog-card-featured:first-child .blog-card-featured-title {
    font-size: 1.3rem;
  }
}

@media (max-width: 768px) {
  .blogs-featured-section {
    margin: 0 0 1.25rem;
    padding: 1.25rem;
    border-radius: 18px;
  }

  .blogs-featured-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
  }

  .blogs-featured-title {
    font-size: 1.1rem;
  }

  .blogs-featured-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 1rem;
  }
  
  .blogs-featured-grid .blog-card-featured:first-child {
    grid-row: span 1;
    min-height: 260px;
  }

  .blogs-featured-grid .blog-card-featured:first-child .blog-card-featured-title {
    font-size: 1.2rem;
  }

  .blogs-featured-grid .blog-card-featured:not(:first-child) {
    min-height: 130px;
  }

  .blogs-section-divider {
    padding: 0 0 0.85rem;
  }
}

/* Legacy Featured Header - Hide */
.blogs-header {
  display: none;
}

.blogs-featured-section .blog-card-featured.premium::before {
  background:
    radial-gradient(380px 220px at 10% -10%, rgba(245, 158, 11, 0.3), transparent 65%),
    linear-gradient(135deg, rgba(251, 191, 36, 0.15), transparent 60%);
}

.blogs-featured-section .blog-card-featured.premium:hover {
  border-color: rgba(245, 158, 11, 0.55);
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.4),
    0 0 36px rgba(245, 158, 11, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.blogs-featured-section .blog-card-featured > *:not(.blog-card-featured-cover) {
  position: relative;
  z-index: 1;
}

/* Featured Card Layout Emphasis */
.blogs-featured-grid .blog-card-featured:nth-child(1) {
  grid-row: span 2;
  min-height: 360px;
  padding: 2rem;
}

.blogs-featured-grid .blog-card-featured:nth-child(1) .blog-card-featured-title {
  font-size: 1.35rem;
  line-height: 1.3;
  -webkit-line-clamp: 3;
}

.blogs-featured-grid .blog-card-featured:nth-child(1) .blog-card-featured-excerpt {
  font-size: 0.95rem;
  -webkit-line-clamp: 3;
}

.blogs-featured-grid .blog-card-featured:nth-child(1) .blog-card-featured-icon {
  width: 56px;
  height: 56px;
  font-size: 1.7rem;
}

/* Featured Card Number Badge */
.blogs-featured-section .blog-card-featured-number {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.35);
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 800;
  color: #c7d2fe;
}

.blogs-featured-section .blog-card-featured.premium .blog-card-featured-number {
  background: rgba(245, 158, 11, 0.18);
  border-color: rgba(245, 158, 11, 0.4);
  color: #fbbf24;
}

/* Featured Card Icon */
.blogs-featured-section .blog-card-featured-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(59, 130, 246, 0.12) 100%);
  border: 1px solid rgba(99, 102, 241, 0.35);
  border-radius: 14px;
  font-size: 1.5rem;
}

.blogs-featured-section .blog-card-featured.premium .blog-card-featured-icon {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.22) 0%, rgba(245, 158, 11, 0.12) 100%);
  border-color: rgba(245, 158, 11, 0.4);
}

/* Featured Card Content */
.blogs-featured-section .blog-card-featured-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.blogs-featured-section .blog-card-featured-category {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  width: fit-content;
  padding: 0.25rem 0.65rem;
  background: rgba(var(--cat-color-rgb, 168, 85, 247), 0.14);
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--cat-color, #a855f7);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.blogs-featured-section .blog-card-featured-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blogs-featured-section .blog-card-featured-excerpt {
  margin: 0;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.58);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.blogs-featured-section .blog-card-featured-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
}

/* Premium Crown Badge */
.blog-card-premium-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.7rem;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  border-radius: 8px;
  font-size: 0.65rem;
  font-weight: 800;
  color: #000;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 8px rgba(251, 191, 36, 0.3);
}

.blog-card-premium-badge svg {
  width: 12px;
  height: 12px;
}

/* Section Divider */
.blogs-section-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 2rem 1.25rem;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.blogs-section-divider::before,
.blogs-section-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.08) 50%,
    transparent 100%
  );
}

/* Featured Section Responsive */
@media (max-width: 1024px) {
  .blogs-featured-section {
    margin: 1.25rem 1.5rem 0;
    padding: 1.5rem;
  }

  .blogs-featured-grid {
    grid-template-columns: 1fr;
  }

  .blogs-featured-grid .blog-card-featured:nth-child(1) {
    grid-row: auto;
    min-height: 260px;
  }
}

@media (max-width: 640px) {
  .blogs-featured-section {
    margin: 1rem 1rem 0;
    padding: 1.25rem;
  }

  .blogs-featured-grid {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .blogs-featured-section .blog-card-featured {
    min-height: auto;
    padding: 1.25rem;
  }

  .blogs-section-divider {
    padding: 0 1rem 1rem;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   BLOGS GRID — Enhanced Card Layout
   ═══════════════════════════════════════════════════════════════════════════ */
.blogs-grid {
  flex: 1;
  min-height: 0;
  padding: 0 2rem 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
  align-content: start;
}

/* List View Mode */
.blogs-grid.list-view {
  grid-template-columns: 1fr;
  gap: 0.85rem;
  max-width: 800px;
  margin: 0 auto;
}

.blogs-grid.list-view .blog-card {
  flex-direction: row;
  align-items: center;
  gap: 1.25rem;
  min-height: auto;
  padding: 1rem 1.25rem;
}

.blogs-grid.list-view .blog-card-title {
  -webkit-line-clamp: 1;
  font-size: 1rem;
}

.blogs-grid.list-view .blog-card-excerpt {
  display: none;
}

.blogs-grid.list-view .blog-card-footer {
  border: none;
  padding: 0;
  margin: 0;
  flex-shrink: 0;
}

/* ===== Blog Card — Revamped ===== */
.blog-card {
  position: relative;
  background: linear-gradient(165deg, rgba(20, 20, 30, 0.8) 0%, rgba(14, 14, 22, 0.9) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 1.35rem;
  min-height: 210px;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  overflow: hidden;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.blog-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 400px 200px at 50% -50px, rgba(168, 85, 247, 0.08) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.blog-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #a855f7, #6366f1);
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: all 0.35s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  background: rgba(168, 85, 247, 0.06);
  border-color: rgba(168, 85, 247, 0.25);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.4),
    0 0 30px rgba(168, 85, 247, 0.1);
}

.blog-card:hover::before {
  opacity: 1;
}

.blog-card:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.blog-card:focus {
  outline: none;
  border-color: rgba(168, 85, 247, 0.5);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.15);
}

.blog-card-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.blog-card-category {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  background: rgba(var(--cat-color-rgb, 168, 85, 247), 0.12);
  border: 1px solid rgba(var(--cat-color-rgb, 168, 85, 247), 0.25);
  border-radius: 8px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--cat-color, #a855f7);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.blog-card-category svg {
  width: 12px;
  height: 12px;
  opacity: 0.8;
}

span.blog-card-featured {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.5rem;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  border-radius: 6px;
  font-size: 0.62rem;
  font-weight: 800;
  color: #000;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.blog-card-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 650;
  color: #fff;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-excerpt {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: auto;
}

.blog-card-date,
.blog-card-readtime {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.38);
}

.blog-card-readtime {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* ===== Loading State ===== */
.blogs-loading {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 4rem;
  color: rgba(255, 255, 255, 0.5);
}

.blogs-loading-spinner,
.blogs-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(168, 85, 247, 0.15);
  border-top-color: #a855f7;
  border-radius: 50%;
  animation: blogs-spin 0.75s linear infinite;
}

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

/* ===== Empty State ===== */
.blogs-empty {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 4rem 2rem;
  text-align: center;
}

.blogs-empty svg {
  width: 48px;
  height: 48px;
  color: rgba(255, 255, 255, 0.2);
}

.blogs-empty p {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
}

.blogs-empty span {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.4);
}

/* ===== Error State ===== */
.blogs-error {
  display: none;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 4rem 2rem;
  text-align: center;
}

.blogs-error svg {
  width: 48px;
  height: 48px;
  color: #ef4444;
}

.blogs-error p {
  margin: 0;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
}

.blogs-retry-btn,
#blogsRetry {
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
  border: none;
  border-radius: 10px;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.blogs-retry-btn:hover,
#blogsRetry:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(168, 85, 247, 0.35);
}

/* ═══════════════════════════════════════════════════════════════════════════
   BLOG READER — Enhanced Reading Experience
   ═══════════════════════════════════════════════════════════════════════════ */
.blog-reader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, #08080c 0%, #0a0a10 100%);
  z-index: 1000;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reading Progress Bar */
.blog-reader-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.06);
  z-index: 1001;
}

.blog-reader-progress::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: var(--progress, 0%);
  background: linear-gradient(90deg, #a855f7, #6366f1, #3b82f6);
  transition: width 0.1s ease-out;
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.5);
}

.blog-reader {
  scrollbar-width: thin;
  scrollbar-color: rgba(168, 85, 247, 0.35) rgba(255, 255, 255, 0.04);
}

.blog-reader::-webkit-scrollbar {
  width: 10px;
}

.blog-reader::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
}

.blog-reader::-webkit-scrollbar-thumb {
  background: rgba(168, 85, 247, 0.35);
  border-radius: 999px;
  border: 2px solid rgba(10, 10, 15, 0.8);
}

.blog-reader::-webkit-scrollbar-thumb:hover {
  background: rgba(168, 85, 247, 0.5);
}

.blog-reader.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.blog-reader-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 2rem 4rem;
}

/* Reader Header */
.blog-reader-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.blog-reader-back,
.blog-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
}

.blog-reader-back svg,
.blog-back-btn svg {
  width: 18px;
  height: 18px;
}

.blog-reader-back:hover,
.blog-back-btn:hover {
  background: rgba(168, 85, 247, 0.12);
  border-color: rgba(168, 85, 247, 0.3);
  color: #fff;
}

.blog-reader-actions {
  display: flex;
  gap: 0.5rem;
}

.blog-reader-actions button {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.blog-reader-actions button svg {
  width: 16px;
  height: 16px;
}

.blog-reader-actions button:hover {
  background: rgba(168, 85, 247, 0.15);
  border-color: rgba(168, 85, 247, 0.3);
  color: #fff;
}

/* Reader Title */
.blog-reader-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  margin: 0 0 1rem;
  background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.85) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Reader Meta */
.blog-reader-meta {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.reader-category {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid var(--cat-color, #a855f7);
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--cat-color, #a855f7);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.reader-category svg {
  width: 14px;
  height: 14px;
}

.reader-date,
.reader-readtime {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
}

/* Reader Content - Premium Typography */
.blog-reader-content {
  max-width: 680px;
  margin: 0 auto;
  padding: 3rem 3rem 2.5rem;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.035) 0%,
    rgba(255, 255, 255, 0.015) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.45),
    0 0 40px rgba(168, 85, 247, 0.06);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.blog-reader-body {
  font-size: 1.125rem;
  line-height: 2;
  color: rgba(255, 255, 255, 0.88);
  letter-spacing: 0.01em;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Lead Paragraph */
.blog-reader-body > p:first-of-type {
  font-size: 1.25rem;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 2rem;
}

/* All Paragraphs */
.blog-reader-body p {
  margin: 0 0 1.75rem;
  max-width: 65ch;
}

/* Headings */
.blog-reader-body h2,
.blog-reader-body h3,
.blog-reader-body h4,
.blog-reader-body .guide-heading,
.blog-reader-body .blog-heading {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  letter-spacing: -0.02em;
  color: #fff;
}

.blog-reader-body h2,
.blog-reader-body .guide-heading {
  font-size: 1.65rem;
  font-weight: 700;
  margin: 3.5rem 0 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid rgba(168, 85, 247, 0.25);
  position: relative;
}

.blog-reader-body h2::before,
.blog-reader-body .guide-heading::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 70px;
  height: 3px;
  background: linear-gradient(90deg, #a855f7, #6366f1);
  border-radius: 2px;
}

.blog-reader-body h3 {
  font-size: 1.35rem;
  font-weight: 600;
  margin: 2.5rem 0 1rem;
  color: rgba(255, 255, 255, 0.95);
}

/* Styled Lists - Much Better Spacing */
.blog-reader-body ul,
.blog-reader-body ul.guide-list {
  list-style: none;
  margin: 1.75rem 0 2.25rem;
  padding: 0;
}

.blog-reader-body ul li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 1rem;
  line-height: 1.8;
  font-size: 1.1rem;
}

.blog-reader-body ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7rem;
  width: 8px;
  height: 8px;
  background: linear-gradient(135deg, #a855f7, #6366f1);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.5);
}

.blog-reader-body ol,
.blog-reader-body ol.guide-list {
  list-style: none;
  counter-reset: guide-counter;
  margin: 1.75rem 0 2.25rem;
  padding: 0;
}

.blog-reader-body ol li {
  position: relative;
  padding-left: 3rem;
  margin-bottom: 1.25rem;
  line-height: 1.8;
  font-size: 1.1rem;
  counter-increment: guide-counter;
}

.blog-reader-body ol li::before {
  content: counter(guide-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(99, 102, 241, 0.15));
  border: 1px solid rgba(168, 85, 247, 0.4);
  border-radius: 10px;
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: #a855f7;
}

/* Blockquotes - More Prominent */
.blog-reader-body blockquote {
  position: relative;
  margin: 2.5rem 0;
  padding: 2rem 2rem 2rem 2.5rem;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.1) 0%, rgba(99, 102, 241, 0.05) 100%);
  border-left: 5px solid #a855f7;
  border-radius: 0 18px 18px 0;
  font-style: italic;
  color: rgba(255, 255, 255, 0.92);
}

.blog-reader-body blockquote::before {
  content: "\201C";
  position: absolute;
  top: -15px;
  left: 18px;
  font-family: Georgia, serif;
  font-size: 5rem;
  line-height: 1;
  color: rgba(168, 85, 247, 0.3);
  pointer-events: none;
}

.blog-reader-body blockquote p {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.8;
}

/* Callout Boxes - Very Prominent */
.blog-reader-body .guide-callout,
.blog-reader-body .blog-callout,
.blog-reader-body .highlight-box {
  position: relative;
  margin: 2.5rem 0;
  padding: 1.5rem 1.75rem 1.5rem 4rem;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.15) 0%, rgba(16, 185, 129, 0.08) 100%);
  border: 1px solid rgba(34, 197, 94, 0.4);
  overflow: hidden;
  font-family:
    Inter,
    -apple-system,
    sans-serif;
}

.blog-reader-body .guide-callout::before,
.blog-reader-body .blog-callout::before,
.blog-reader-body .highlight-box::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: #22c55e;
}

.blog-reader-body .guide-callout::after,
.blog-reader-body .blog-callout::after {
  content: "";
  position: absolute;
  left: 1.15rem;
  top: 1.5rem;
  font-size: 1.4rem;
  line-height: 1;
}

/* Tip Callout */
.blog-reader-body .guide-callout.tip {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.15) 0%, rgba(16, 185, 129, 0.08) 100%);
  border-color: rgba(34, 197, 94, 0.4);
}

.blog-reader-body .guide-callout.tip::before {
  background: #22c55e;
}

.blog-reader-body .guide-callout.tip::after {
  content: "";
}

/* Note Callout */
.blog-reader-body .guide-callout.note {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(99, 102, 241, 0.08) 100%);
  border-color: rgba(59, 130, 246, 0.4);
}

.blog-reader-body .guide-callout.note::before {
  background: #3b82f6;
}

.blog-reader-body .guide-callout.note::after {
  content: "";
}

/* Warning Callout */
.blog-reader-body .guide-callout.warning {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(234, 179, 8, 0.08) 100%);
  border-color: rgba(245, 158, 11, 0.4);
}

.blog-reader-body .guide-callout.warning::before {
  background: #f59e0b;
}

.blog-reader-body .guide-callout.warning::after {
  content: "";
}

/* Key Takeaway Callout */
.blog-reader-body .guide-callout.key {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.15) 0%, rgba(139, 92, 246, 0.08) 100%);
  border-color: rgba(168, 85, 247, 0.4);
}

.blog-reader-body .guide-callout.key::before {
  background: #a855f7;
}

.blog-reader-body .guide-callout.key::after {
  content: "";
}

/* Callout Content */
.blog-reader-body .guide-callout strong,
.blog-reader-body .blog-callout strong {
  display: block;
  font-family: Inter, system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.blog-reader-body .guide-callout p,
.blog-reader-body .blog-callout p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
}

/* Inline Accents */
.blog-reader-body strong {
  font-weight: 600;
  color: #fff;
}

.blog-reader-body em {
  font-style: italic;
  color: rgba(255, 255, 255, 0.95);
}

.blog-reader-body .guide-arrow {
  color: #a855f7;
  font-weight: 800;
  margin: 0 0.2em;
}

.blog-reader-body .guide-emdash {
  color: rgba(255, 255, 255, 0.7);
}

.blog-reader-body a {
  color: #a855f7;
  text-decoration: none;
  border-bottom: 1px solid rgba(168, 85, 247, 0.4);
  transition: all 0.2s ease;
}

.blog-reader-body a:hover {
  color: #c084fc;
  border-bottom-color: #c084fc;
}

/* Section Dividers */
.blog-reader-body hr {
  border: none;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.1) 15%,
    rgba(168, 85, 247, 0.25) 50%,
    rgba(255, 255, 255, 0.1) 85%,
    transparent 100%
  );
  margin: 3.5rem 0;
}

/* Legacy Blog List Support */
.blog-reader-content .blog-callout {
  margin: 1.5rem 0;
  padding: 1.1rem 1.25rem 1.05rem 1.5rem;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.1) 0%, rgba(59, 130, 246, 0.06) 100%);
  border: 1px solid rgba(168, 85, 247, 0.22);
  border-radius: 14px;
  position: relative;
  overflow: hidden;
}

.blog-reader-content .blog-callout::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #a855f7 0%, #3b82f6 100%);
  opacity: 0.95;
}

.blog-reader-content .blog-callout strong {
  color: #fff;
  font-weight: 700;
}

/* Callouts / Tips */
.blog-reader-content .highlight-box {
  margin: 1.5rem 0;
  padding: 1.25rem 1.25rem 1.1rem 1.5rem;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.1) 0%, rgba(59, 130, 246, 0.06) 100%);
  border: 1px solid rgba(168, 85, 247, 0.25);
  border-radius: 14px;
  position: relative;
  overflow: hidden;
}

.blog-reader-content .highlight-box::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #a855f7 0%, #3b82f6 100%);
  opacity: 0.95;
}

.blog-reader-content .highlight-box h4 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}

.blog-reader-content .highlight-box p {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
}

/* Enhanced lists generated by BlogService */
.blog-reader-content ul.blog-list {
  list-style: none;
  padding-left: 0;
  margin: 1.25rem 0 1.75rem;
}

.blog-reader-content ul.blog-list li {
  position: relative;
  padding-left: 1.35rem;
}

.blog-reader-content ul.blog-list li::before {
  content: "\203A";
  position: absolute;
  left: 0;
  top: 0.1rem;
  color: #a855f7;
  font-weight: 900;
}

.blog-reader-content ol.blog-list {
  margin: 1.25rem 0 1.75rem;
  padding-left: 1.35rem;
}

.blog-reader-content ol.blog-list li::marker {
  color: #a855f7;
  font-weight: 800;
}

/* Inline accents */
.blog-reader-content .blog-arrow {
  color: #a855f7;
  font-weight: 800;
}

.blog-reader-content .blog-emdash {
  color: rgba(255, 255, 255, 0.9);
  opacity: 0.9;
}

.blog-reader-content .heading-subtitle {
  color: rgba(255, 255, 255, 0.65);
  font-weight: 600;
}

.blog-reader-content blockquote {
  position: relative;
}

.blog-reader-content blockquote::before {
  content: "\201C";
  position: absolute;
  left: 12px;
  top: -18px;
  font-size: 56px;
  line-height: 1;
  color: rgba(168, 85, 247, 0.25);
  pointer-events: none;
}

/* Replace legacy glyphs with readable symbols */
.blog-reader-content ul.blog-list li::before {
  content: "\2022";
}

.blog-reader-content blockquote::before {
  content: "\201C";
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .blogs-header {
    flex-direction: column;
    align-items: stretch;
    padding: 1.25rem 1rem;
  }

  .blogs-header h1 {
    font-size: 1.5rem;
    text-align: center;
  }

  .blog-search-container {
    max-width: none;
  }

  .blogs-search-wrap {
    max-width: none;
  }

  .blogs-categories {
    padding: 0.75rem 1rem;
  }

  .blogs-content {
    padding: 1rem;
  }

  .blogs-grid {
    padding: 1rem;
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .blog-card {
    padding: 1.25rem;
  }

  .blog-reader-container {
    padding: 1.25rem;
  }

  .blog-reader-title {
    font-size: 1.75rem;
  }

  .blog-reader-header {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .blog-reader-actions {
    justify-content: flex-end;
  }

  .blog-reader-meta {
    gap: 0.75rem;
  }

  .blog-reader-content {
    padding: 1.5rem 1.25rem 1.15rem;
    border-radius: 18px;
  }

  .blog-reader-body {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .blog-category-btn span {
    display: none;
  }

  .blog-category-btn {
    padding: 0.6rem;
  }

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

  .blog-reader-actions button span {
    display: none;
  }
}

/* ===== Animations ===== */
@keyframes blog-card-enter {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes featured-card-enter {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.blog-card {
  animation: blog-card-enter 0.4s ease backwards;
}

.blogs-featured-grid .blog-card-featured {
  animation: featured-card-enter 0.5s cubic-bezier(0.4, 0, 0.2, 1) backwards;
}

.blogs-featured-grid .blog-card-featured:nth-child(1) {
  animation-delay: 0.05s;
}
.blogs-featured-grid .blog-card-featured:nth-child(2) {
  animation-delay: 0.1s;
}
.blogs-featured-grid .blog-card-featured:nth-child(3) {
  animation-delay: 0.15s;
}

.blog-card:nth-child(1) {
  animation-delay: 0.05s;
}
.blog-card:nth-child(2) {
  animation-delay: 0.1s;
}
.blog-card:nth-child(3) {
  animation-delay: 0.15s;
}
.blog-card:nth-child(4) {
  animation-delay: 0.2s;
}
.blog-card:nth-child(5) {
  animation-delay: 0.25s;
}
.blog-card:nth-child(6) {
  animation-delay: 0.3s;
}
.blog-card:nth-child(7) {
  animation-delay: 0.35s;
}
.blog-card:nth-child(8) {
  animation-delay: 0.4s;
}
.blog-card:nth-child(9) {
  animation-delay: 0.45s;
}
.blog-card:nth-child(10) {
  animation-delay: 0.5s;
}
.blog-card:nth-child(11) {
  animation-delay: 0.55s;
}
.blog-card:nth-child(12) {
  animation-delay: 0.6s;
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE — Hero & New Components
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .guides-hero {
    padding: 2rem 1.5rem 1.5rem;
  }
  
  .guides-hero-content {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .guides-hero-stats {
    align-self: flex-start;
    gap: 1.25rem;
    padding: 1rem 1.25rem;
  }
  
  .guides-stat-value {
    font-size: 1.25rem;
  }
  
  .guides-hero-search {
    margin-top: 1.25rem;
  }
}

@media (max-width: 768px) {
  .guides-hero {
    padding: 1.5rem 1rem 1.25rem;
  }
  
  .guides-hero-title {
    font-size: 1.65rem;
  }
  
  .guides-hero-subtitle {
    font-size: 0.95rem;
  }
  
  .guides-hero-stats {
    gap: 1rem;
    padding: 0.85rem 1rem;
  }
  
  .guides-stat-value {
    font-size: 1.1rem;
  }
  
  .guides-stat-label {
    font-size: 0.65rem;
  }
  
  .guides-search-input {
    padding: 0.85rem 3rem 0.85rem 2.75rem;
    font-size: 0.9rem;
  }
  
  .guides-search-kbd {
    display: none;
  }
  
  .guides-categories-wrap {
    padding: 0.65rem 1rem;
    gap: 0.75rem;
  }
  
  .guides-view-toggle {
    display: none;
  }
  
  .blogs-grid {
    padding: 0 1rem 1.5rem;
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .blog-card {
    padding: 1.15rem;
    min-height: auto;
  }
}

@media (max-width: 480px) {
  .guides-hero {
    padding: 1.25rem 1rem 1rem;
  }
  
  .guides-hero-badge {
    font-size: 0.62rem;
    padding: 0.3rem 0.7rem;
  }
  
  .guides-hero-title {
    font-size: 1.4rem;
  }
  
  .guides-hero-stats {
    width: 100%;
    justify-content: space-around;
  }
  
  .blog-category-btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.78rem;
  }
  
  .blog-category-btn svg {
    width: 14px;
    height: 14px;
  }
}

/* ===== Hero Animation ===== */
@keyframes guides-hero-fade {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.guides-hero-text {
  animation: guides-hero-fade 0.6s ease backwards;
}

.guides-hero-stats {
  animation: guides-hero-fade 0.6s ease 0.1s backwards;
}

.guides-hero-search {
  animation: guides-hero-fade 0.6s ease 0.2s backwards;
}
