/* =====================================================
   WARM & FRIENDLY THEME - mumdadtoddlers.co.uk
   Cozy, welcoming design for UK parenting families
   UPDATED: Glassmorphic Lavender Theme
   ===================================================== */

/* Accessibility Skip Link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100000;
  background: linear-gradient(135deg, #b8a9c9, #9b8aa5);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 0 0 12px 12px;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.skip-link:focus {
  top: 0;
  color: #fff;
  outline: 3px solid #fff;
  outline-offset: 2px;
}

/* Under Construction Banner */
.under-construction-banner {
  background: linear-gradient(135deg, #ff9800, #f57c00);
  color: #fff;
  padding: 12px 20px;
  text-align: center;
  font-weight: 600;
  position: relative;
  z-index: 9999;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.under-construction-banner i {
  margin-right: 8px;
}
/* CSS Variables for easy customization */
:root {
  /* Soft lavender color palette */
  --primary-gradient: linear-gradient(135deg, #b8a9c9 0%, #9b8aa5 100%);
  --secondary-gradient: linear-gradient(135deg, #e8e0f0 0%, #d4c6e6 100%);
  --accent-gradient: linear-gradient(135deg, #c8b8d8 0%, #a898b8 100%);
  --warm-gradient: linear-gradient(135deg, #e0d4f0 0%, #c9b8dc 100%);
  --cozy-gradient: linear-gradient(135deg, #faf8fc 0%, #f5f0fa 50%, #f8f5fb 100%);
  
  /* Glassmorphism with lavender tones */
  --glass-bg: rgba(245, 240, 255, 0.75);
  --glass-bg-strong: rgba(230, 220, 245, 0.85);
  --glass-border: rgba(184, 169, 201, 0.35);
  --glass-shadow: 0 8px 32px rgba(155, 138, 165, 0.15);
  --glass-highlight: rgba(255, 255, 255, 0.6);
  
  /* Readable text colors with lavender accents */
  --text-primary: #3d3545;
  --text-secondary: #5a5063;
  --text-accent: #8b7a9e;
  --text-warm: #a090b5;
  --text-link: #9683a9;
  
  --blur-amount: 16px;
  
  /* Soft lavender background colors */
  --bg-soft-1: #faf8fc;
  --bg-soft-2: #f5f0fa;
  --bg-soft-3: #f0eaf5;
  --bg-cream: #fcfafd;
  
  /* Accent colors for variety */
  --mint: #c8d8e8;
  --peach: #d4c6e6;
  --lavender: #b8a9c9;
  --sunshine: #e0d4f0;
  --coral: #c9b8dc;
  
  /* Reading comfort */
  --reading-width: 720px;
  --content-padding: 2.5rem;
  --border-radius: 20px;
}

/* Dreamy glassmorphic lavender background */
body {
  min-height: 100vh;
  margin-top: 5rem;
  background: 
    linear-gradient(165deg, 
      rgba(245, 238, 255, 0.95) 0%, 
      rgba(235, 225, 250, 0.9) 30%,
      rgba(225, 215, 245, 0.85) 60%, 
      rgba(240, 232, 255, 0.9) 100%),
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800"><defs><radialGradient id="a" cx="30%25" cy="20%25" r="80%25"><stop offset="0%25" stop-color="%23d4c6e6" stop-opacity="0.5"/><stop offset="100%25" stop-color="%23ebe4f0" stop-opacity="0.15"/></radialGradient><radialGradient id="b" cx="70%25" cy="60%25" r="70%25"><stop offset="0%25" stop-color="%23c4b5d4" stop-opacity="0.4"/><stop offset="100%25" stop-color="%23e6ddee" stop-opacity="0.1"/></radialGradient><radialGradient id="c" cx="90%25" cy="10%25" r="50%25"><stop offset="0%25" stop-color="%23ddd0f0" stop-opacity="0.35"/><stop offset="100%25" stop-color="%23f0eaf8" stop-opacity="0.05"/></radialGradient></defs><rect fill="url(%23a)" width="1200" height="800"/><rect fill="url(%23b)" width="1200" height="800"/><rect fill="url(%23c)" width="1200" height="800"/><circle cx="100" cy="150" r="120" fill="%23d4c6e6" fill-opacity="0.25"/><circle cx="1100" cy="80" r="180" fill="%23c4b5d4" fill-opacity="0.2"/><circle cx="150" cy="650" r="140" fill="%23b8a8c9" fill-opacity="0.18"/><circle cx="950" cy="550" r="200" fill="%23d5c8e0" fill-opacity="0.15"/><circle cx="600" cy="300" r="250" fill="%23e0d5f0" fill-opacity="0.12"/></svg>');
  background-attachment: fixed;
  background-size: cover;
  color: var(--text-primary);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

/* Glassmorphic Lavender Navigation */
.bg-steel {
  background: linear-gradient(135deg, rgba(230, 220, 245, 0.8) 0%, rgba(245, 238, 255, 0.75) 50%, rgba(235, 225, 250, 0.8) 100%) !important;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(184, 169, 201, 0.3);
  box-shadow: 
    0 4px 30px rgba(155, 138, 180, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.site-header .navbar-nav .nav-link {
  color: #5a4a6a;
  font-weight: 500;
  padding: 0.6rem 1.2rem;
  border-radius: 25px;
  transition: all 0.3s ease;
  position: relative;
}

.site-header .navbar-nav .nav-link:hover {
  background: linear-gradient(135deg, rgba(184, 169, 201, 0.35) 0%, rgba(200, 185, 220, 0.3) 100%);
  color: #4a3a5a;
  box-shadow: 0 2px 12px rgba(155, 138, 180, 0.2);
}

/* Glassmorphic Lavender Cards */
.content-section {
  background: linear-gradient(145deg, rgba(250, 245, 255, 0.85) 0%, rgba(240, 232, 250, 0.8) 100%);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  padding: 28px 32px;
  border: 1px solid rgba(184, 169, 201, 0.25);
  border-radius: var(--border-radius);
  margin-bottom: 24px;
  box-shadow: 
    0 4px 24px rgba(155, 138, 180, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.content-section:hover {
  box-shadow: 
    0 12px 40px rgba(155, 138, 180, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transform: translateY(-3px);
  border-color: rgba(184, 169, 201, 0.4);
}

/* =====================================================
   HERO BANNER - Glassmorphic Lavender Style
   ===================================================== */
.hero-banner {
  position: relative;
  width: 100%;
  min-height: 420px;
  background: 
    linear-gradient(180deg, 
      rgba(220, 210, 240, 0.7) 0%,
      rgba(235, 225, 250, 0.6) 50%,
      rgba(245, 240, 255, 0.5) 100%),
    linear-gradient(135deg, #d5c8e8 0%, #e5daf0 50%, #f5f0fa 100%);
  background-size: cover;
  background-position: center bottom;
  border-radius: 1.5rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(184, 169, 201, 0.25);
  box-shadow: 0 8px 32px rgba(155, 138, 180, 0.15);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, 
    rgba(245, 238, 255, 0.3) 0%, 
    rgba(255, 255, 255, 0.4) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
  max-width: 600px;
}

.hero-logo {
  max-width: 280px;
  height: auto;
  margin-bottom: 1rem;
  filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.15));
}

.hero-title {
  font-size: 2.75rem;
  font-weight: 800;
  color: #3d3545;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: #5a5063;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-hero-primary {
  background: linear-gradient(135deg, #7c6f9c 0%, #9585b5 100%);
  color: #fff;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(124, 111, 156, 0.3);
}

.btn-hero-primary:hover {
  background: linear-gradient(135deg, #6b5e8a 0%, #8474a5 100%);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(124, 111, 156, 0.4);
}

.btn-hero-secondary {
  background: rgba(255, 255, 255, 0.9);
  color: #5a5063;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid rgba(184, 169, 201, 0.4);
  transition: all 0.3s ease;
}

.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 1);
  color: #4a3a5a;
  border-color: rgba(184, 169, 201, 0.6);
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-hero-primary {
  background: rgba(255, 255, 255, 0.95);
  color: var(--text-primary);
  padding: 0.75rem 1.75rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-hero-primary:hover {
  background: #fff;
  color: var(--text-primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.btn-hero-secondary {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 0.75rem 1.75rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid rgba(255, 255, 255, 0.5);
  transition: all 0.3s ease;
}

.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.3);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.8);
}

/* Hero responsive */
@media (max-width: 768px) {
  .hero-banner {
    height: auto;
    min-height: 300px;
    padding: 1.5rem 0;
    border-radius: 0;
    margin-left: -12px;
    margin-right: -12px;
    width: calc(100% + 24px);
  }
  
  .hero-content {
    padding: 1rem;
  }
  
  .hero-logo {
    max-width: 180px;
    margin-bottom: 0.75rem;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }
  
  .hero-cta {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }
  
  .btn-hero-primary,
  .btn-hero-secondary {
    width: 200px;
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-banner {
    min-height: 260px;
    padding: 1rem 0;
    margin-left: -12px;
    margin-right: -12px;
    width: calc(100% + 24px);
    border-radius: 0;
  }
  
  .hero-content {
    padding: 0.75rem;
  }
  
  .hero-logo {
    max-width: 140px;
  }
  
  .hero-subtitle {
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
  }
  
  .hero-title {
    font-size: 1.5rem;
  }
  
  .btn-hero-primary,
  .btn-hero-secondary {
    width: 180px;
    padding: 0.45rem 1rem;
    font-size: 0.85rem;
    text-align: center;
  }
}

/* Typography - comfortable reading */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  font-weight: 600;
  letter-spacing: -0.02em;
}

ul {
  margin: 0;
}

/* Soft Glassmorphism Navigation - Warm & Welcoming */

.logout-icon {
  width: 80px;
  height: 80px;
  background: var(--warm-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.logout-icon i {
  font-size: 2rem;
  color: #fff;
}

.logout-page h2 {
  font-weight: 600;
  color: var(--text-primary);
}

.logout-actions .btn {
  padding: 0.6rem 1.25rem;
  border-radius: 50px;
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.4rem;
  color: #fff !important;
  padding: 0;
}

.navbar-logo {
  height: 50px;
  width: auto;
  transition: transform 0.2s ease;
}

.navbar-logo:hover {
  transform: scale(1.05);
}

.navbar-brand i {
  color: #ffc0cb;
}

/* Footer Logo */
.footer-logo-link {
  display: inline-block;
}

.footer-logo {
  height: 60px;
  width: auto;
}

/* Glassmorphism Cards - Warm & Cozy */
.content-section {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(var(--blur-amount));
  -webkit-backdrop-filter: blur(var(--blur-amount));
  padding: 28px 32px;
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  margin-bottom: 24px;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.content-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary-gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.content-section:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.content-section:hover::before {
  opacity: 1;
}

/* =====================================================
   MODERN ARTICLE CARDS - Homepage listing
   ===================================================== */
.section-heading {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
}

.section-heading .heading-icon {
  width: 36px;
  height: 36px;
  background: var(--warm-gradient);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.9rem;
}

.article-card {
  background: rgba(255, 255, 255, 0.97);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.article-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.article-card-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.article-card-image img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.article-card:hover .article-card-image img {
  transform: scale(1.05);
}

.article-category {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--text-accent);
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  backdrop-filter: blur(4px);
}

.article-card-body {
  padding: 1.25rem 1.5rem 1.5rem;
}

.article-card-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.author-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.author-name {
  font-weight: 500;
  color: var(--text-primary);
}

.author-display {
  font-weight: 500;
  color: var(--primary-color);
  font-size: 0.95rem;
}

.meta-dot {
  color: var(--text-muted);
}

.article-card-title {
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 0.75rem;
}

.article-card-title a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.article-card-title a:hover {
  color: var(--text-accent);
}

.article-card-excerpt {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.read-more-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-accent);
  font-weight: 500;
  font-size: 0.9rem;
  text-decoration: none;
  transition: gap 0.2s ease;
}

.read-more-link:hover {
  color: var(--text-accent);
  gap: 0.6rem;
}

.read-more-link i {
  font-size: 0.75rem;
}

/* Article card without image */
.article-card:not(:has(.article-card-image)) .article-card-body {
  padding-top: 1.5rem;
}

/* Article Cards - Warm & Inviting */
.article-title {
  color: var(--text-primary);
  font-weight: 700;
  transition: color 0.2s ease;
  line-height: 1.4;
}

a.article-title:hover {
  color: var(--lavender);
  text-decoration: none;
}

.article-content {
  white-space: normal;
  color: var(--text-secondary);
  line-height: 1.8;
}

.article-img {
  height: 85px;
  width: 85px;
  margin-right: 20px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(200, 141, 158, 0.15);
}

.article-metadata {
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 2px solid rgba(232, 168, 124, 0.15);
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.article-metadata a {
  color: var(--text-accent);
  font-weight: 500;
}

.article-metadata a:hover {
  color: #818cf8;
  text-decoration: none;
}

.article-svg {
  width: 25px;
  height: 25px;
  vertical-align: middle;
}

.account-img {
  height: 120px;
  width: 120px;
  margin-right: 20px;
  margin-bottom: 15px;
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  border: 3px solid rgba(255, 255, 255, 0.8);
}

/* Sidebar - Soft Glass */
.sidebar {
  padding: 20px 25px;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(var(--blur-amount));
  -webkit-backdrop-filter: blur(var(--blur-amount));
}

.sidebar h3 {
  font-size: 1rem;
  margin-bottom: 15px;
  color: var(--text-primary);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar h3 i {
  color: var(--text-accent);
}

/* Category List - Parent with Subcategories - Warm Style */
.category-list li.parent-category {
  padding: 0;
  margin-bottom: 4px;
}

.category-list .parent-link {
  padding: 12px 14px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
  background: rgba(255, 250, 245, 0.5);
}

.category-list .parent-link:hover {
  background: var(--secondary-gradient);
  color: var(--text-primary);
  transform: translateX(4px);
}

.category-list .parent-link i {
  color: var(--lavender);
  width: 20px;
  text-align: center;
}

.category-list .subcategory-count {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin-left: auto;
  background: rgba(232, 168, 124, 0.15);
  padding: 2px 8px;
  border-radius: 10px;
}

/* Subcategory List - Warm Style */
.subcategory-list {
  list-style: none;
  padding: 8px 0 8px 24px;
  margin: 0;
  border-left: 3px solid var(--peach);
  margin-left: 24px;
}

.subcategory-list li {
  padding: 6px 10px;
  margin: 2px 0;
}

.subcategory-list a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.subcategory-list a:hover {
  color: var(--lavender);
  transform: translateX(4px);
}

.subcategory-list a i {
  font-size: 0.65rem;
  color: var(--peach);
}

/* Subcategory Cards (for parent category pages) - Warm & Friendly */
.subcategory-card {
  padding: 1.75rem;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  background: linear-gradient(145deg, #fffcf9 0%, #fff8f3 100%);
}

.subcategory-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(200, 141, 158, 0.2);
  border-color: var(--peach);
}

.subcategory-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-gradient);
  border-radius: 50%;
  color: white;
  box-shadow: 0 8px 24px rgba(232, 168, 124, 0.3);
  transition: transform 0.3s ease;
}

.subcategory-card:hover .subcategory-icon {
  transform: scale(1.1);
}

.subcategory-title {
  color: var(--text-primary);
  font-weight: 700;
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}

.subcategory-desc {
  line-height: 1.5;
  color: var(--text-secondary);
}

.subcategories-section h4 {
  color: var(--text-primary);
  font-weight: 600;
}

/* Section Titles - Warm Style */
.section-title {
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.35rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-title i {
  color: var(--lavender);
}

/* Category Header */
.category-header {
  text-align: center;
  padding: 2rem 1rem;
  margin-bottom: 1.5rem;
}

.category-header h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.category-header h2 i {
  color: var(--lavender);
  margin-right: 0.5rem;
}

/* Latest Posts Section */
.latest-posts-section {
  margin-top: 2rem;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
  gap: 1.5rem;
}

/* Full width for no-posts message in grid */
.posts-grid .no-posts-message {
  grid-column: 1 / -1;
}

/* Post Cards - Modern Grid Style */
.post-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0 !important;
  overflow: hidden;
}

.post-card-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.post-card-image { /* removed fixed height - using aspect-ratio */
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius) var(--border-radius) 0 0;
  aspect-ratio: 16/10;
}

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

.post-card:hover .post-card-image img {
  transform: scale(1.05);
}

.post-card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.post-category-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--secondary-gradient);
  color: var(--text-primary);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  text-decoration: none;
  margin-bottom: 0.75rem;
  width: fit-content;
  transition: all 0.2s ease;
}

.post-category-badge:hover {
  background: var(--primary-gradient);
  color: white;
  transform: translateY(-1px);
}

.post-category-badge i {
  font-size: 0.7rem;
}

.post-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 0.75rem;
}

.post-card-title a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.post-card-excerpt {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.post-card-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.post-card-meta i {
  color: var(--peach);
  margin-right: 0.3rem;
}

.post-date {
  display: flex;
  align-items: center;
}

/* Pagination - Warm Style */
.pagination .page-link {
  border: none;
  background: rgba(255, 255, 255, 0.97);
  color: var(--text-primary);
  border-radius: 10px;
  margin: 0 3px;
  padding: 0.6rem 1rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.pagination .page-link:hover {
  background: var(--secondary-gradient);
  color: var(--text-primary);
}

.pagination .page-item.active .page-link {
  background: var(--primary-gradient);
  color: white;
}

/* Legacy category-list styles for fallback */
.category-list li {
  padding: 8px 12px;
  border-radius: 8px;
  margin-bottom: 4px;
  transition: background 0.2s ease;
}

.category-list li:hover {
  background: rgba(232, 168, 124, 0.1);
}

.category-list a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

.category-list a:hover {
  color: var(--text-accent);
}

.category-list a i {
  width: 20px;
  text-align: center;
  color: var(--text-accent);
  opacity: 0.7;
}

/* Featured Section - Soft */
.featured-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
  gap: 1.5rem;
}

.featured-section {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(var(--blur-amount));
  -webkit-backdrop-filter: blur(var(--blur-amount));
  padding: 20px;
  border-radius: 16px;
  margin-bottom: 20px;
  border: 1px solid var(--glass-border);
}

/* Featured horizontal scroll on mobile */
.featured-scroll-container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  margin: 0 -10px;
  padding: 0 10px;
}

.featured-scroll-container::-webkit-scrollbar {
  display: none;
}

@media (max-width: 767px) {
  .featured-scroll-container .row {
    flex-wrap: nowrap;
    margin: 0 -6px;
    padding-bottom: 5px;
  }
  
  .featured-scroll-container .featured-col {
    flex: 0 0 75%;
    max-width: 75%;
    padding: 0 6px;
  }
  
  .featured-section {
    padding: 15px 12px;
    margin-left: -12px;
    margin-right: -12px;
    width: calc(100% + 24px);
    border-radius: 0;
  }
}

@media (min-width: 768px) {
  .featured-scroll-container {
    overflow-x: visible;
    margin: 0;
    padding: 0;
  }
  
  .featured-scroll-container .row {
    flex-wrap: wrap;
  }
}

.featured-card {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  transition: box-shadow 0.2s ease;
  overflow: hidden;
}

.featured-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.featured-card .card-img-top {
  height: 120px;
  object-fit: cover;
}

.featured-card .card-body {
  padding: 15px;
}

.featured-card .card-title a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
}

.featured-card .card-title a:hover {
  color: var(--text-accent);
}

/* Affiliate Box - Soft Green */
.affiliate-box {
  background: linear-gradient(135deg, rgba(167, 243, 208, 0.5) 0%, rgba(187, 247, 208, 0.5) 100%);
  backdrop-filter: blur(var(--blur-amount));
  -webkit-backdrop-filter: blur(var(--blur-amount));
  padding: 18px 22px;
  border-radius: 12px;
  border-left: 3px solid #10b981;
}

/* =====================================================
   ✨ IMMERSIVE POST EXPERIENCE
   Beautiful, cozy design that makes visitors want to stay
   ===================================================== */

/* Reading Progress Bar - Warm Gradient */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background: var(--primary-gradient);
  z-index: 9999;
  transition: width 0.1s ease-out;
}

/* Article Container - Cozy & Warm */
article.content-section {
  background: linear-gradient(180deg, rgba(255,253,250,0.98) 0%, rgba(255,250,245,0.98) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--border-radius);
  padding: 3rem 0.5rem;
  margin-bottom: 2rem;
  border: 1px solid rgba(232, 168, 124, 0.15);
  box-shadow: 
    0 4px 8px rgba(200, 141, 158, 0.04),
    0 12px 28px rgba(200, 141, 158, 0.06),
    0 24px 48px rgba(200, 141, 158, 0.04);
  position: relative;
  overflow: hidden;
}

/* Subtle decorative corner accents - Warm */
article.content-section::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle at top right, rgba(232, 168, 124, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

article.content-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle at bottom left, rgba(195, 141, 158, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

/* Post Header - Warm & Welcoming */
.post-header {
  text-align: center;
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: none;
  position: relative;
}

.post-header::after {
  content: '♡ ♡ ♡';
  display: block;
  margin-top: 1.5rem;
  color: var(--peach);
  font-size: 0.85rem;
  letter-spacing: 0.8rem;
  opacity: 0.6;
}

.post-header .badge {
  background: var(--primary-gradient);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.65rem 1.4rem;
  border-radius: 25px;
  box-shadow: 0 4px 16px rgba(232, 168, 124, 0.3);
  border: none;
  letter-spacing: 0.02em;
  color: white;
}

.post-header .badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(232, 168, 124, 0.4);
}

.post-header .article-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 1.25rem 0;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

/* Post title mobile responsive */
@media (max-width: 768px) {
  .post-header .article-title {
    font-size: 1.6rem;
    line-height: 1.35;
    margin: 1rem 0;
  }
  
  .post-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
  }
  
  .post-header .badge {
    font-size: 0.75rem;
    padding: 0.5rem 1rem;
  }
  
  .post-header::after {
    margin-top: 1rem;
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  .post-header .article-title {
    font-size: 1.4rem;
    line-height: 1.3;
  }
}

.post-header .article-metadata {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.post-header .article-metadata img {
  width: 48px;
  height: 48px;
  border: 3px solid var(--peach);
  box-shadow: 0 4px 12px rgba(232, 168, 124, 0.2);
}

.post-header .article-metadata a {
  color: var(--lavender);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.post-header .article-metadata a:hover {
  color: var(--text-warm);
}

/* Reading Time Badge - Warm */
.reading-time {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: linear-gradient(135deg, rgba(232, 168, 124, 0.2) 0%, rgba(252, 182, 159, 0.15) 100%);
  color: var(--text-warm);
  padding: 0.45rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.reading-time i {
  font-size: 0.9rem;
  color: var(--peach);
}

/* Featured Image - Warm & Inviting */
.post-featured-image {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
  margin: -1rem -1.5rem 2.5rem -1.5rem;
}

.post-featured-image img {
  max-height: 480px;
  object-fit: cover;
  border-radius: var(--border-radius);
  box-shadow: 
    0 8px 24px rgba(200, 141, 158, 0.12),
    0 20px 50px rgba(200, 141, 158, 0.08);
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.post-featured-image:hover img {
  transform: scale(1.02);
}

/* Image Overlay Gradient - Warm Fade */
.post-featured-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(to top, var(--bg-cream) 0%, transparent 100%);
  pointer-events: none;
  border-radius: 0 0 var(--border-radius) var(--border-radius);
}

/* =====================================================
   POST CONTENT - Luxurious Reading Experience
   ===================================================== */

.post-content {
  line-height: 1.9;
  font-size: 1.125rem;
  color: var(--text-primary);
  position: relative;
}

/* Paragraph Spacing & Flow */
.post-content p {
  margin-bottom: 1.6rem;
  text-align: left;
  hyphens: auto;
  word-spacing: 0.02em;
}

/* First Paragraph - Warm Drop Cap */
.post-content > p:first-of-type {
  font-size: 1.2rem;
  line-height: 1.8;
}

.post-content > p:first-of-type::first-letter {
  font-size: 4rem;
  font-weight: 800;
  float: left;
  line-height: 0.85;
  margin-right: 0.6rem;
  margin-top: 0.15rem;
  padding: 0.1rem 0.15rem;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: Georgia, 'Times New Roman', serif;
}

/* Headings - Clear Hierarchy */
.post-content h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 3rem 0 1.25rem 0;
  padding-bottom: 0.75rem;
  color: var(--text-primary);
  position: relative;
  border-bottom: none;
}

.post-content h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--primary-gradient);
  border-radius: 4px;
}

.post-content h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 2.5rem 0 1rem 0;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.post-content h3::before {
  content: '♥';
  color: var(--peach);
  font-size: 0.85rem;
}

.post-content h4 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 2rem 0 0.75rem 0;
  color: var(--text-secondary);
}

/* Links - Warm & Friendly */
.post-content a {
  color: var(--lavender);
  text-decoration: none;
  background: linear-gradient(to right, var(--peach), var(--peach)) no-repeat;
  background-size: 100% 2px;
  background-position: 0 100%;
  transition: all 0.25s ease;
  padding-bottom: 2px;
  font-weight: 500;
}

.post-content a:hover {
  color: var(--text-warm);
  background-size: 100% 100%;
  background-image: linear-gradient(to right, rgba(252, 182, 159, 0.25), rgba(252, 182, 159, 0.25));
}

/* Images - Gallery Feel */
.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 20px;
  margin-top: 2rem;
  margin-bottom: 2rem;
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.06),
    0 12px 28px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.post-content img:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 
    0 8px 20px rgba(0, 0, 0, 0.08),
    0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Figure & Captions */
.post-content figure {
  margin: 2.5rem 0;
  text-align: center;
}

.post-content figure img {
  margin: 0 auto;
}

.post-content figcaption {
  font-size: 0.9rem;
  color: #718096;
  font-style: italic;
  margin-top: 1rem;
  padding: 0 1.5rem;
}

/* Blockquotes - Warm & Inspiring */
.post-content blockquote {
  background: linear-gradient(135deg, rgba(232, 168, 124, 0.08) 0%, rgba(252, 182, 159, 0.06) 100%);
  border: none;
  border-radius: var(--border-radius);
  padding: 2rem 2.5rem 2rem 3.5rem;
  margin: 2.5rem 0;
  font-style: normal;
  font-size: 1.15rem;
  color: var(--text-primary);
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(232, 168, 124, 0.2);
}

.post-content blockquote::before {
  content: '"';
  font-size: 5rem;
  font-family: Georgia, serif;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: absolute;
  top: -0.5rem;
  left: 1rem;
  line-height: 1;
  opacity: 0.7;
}

.post-content blockquote p {
  margin-bottom: 0;
  line-height: 1.7;
}

.post-content blockquote cite,
.post-content blockquote footer {
  display: block;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--lavender);
  font-weight: 600;
}

/* Lists - Engaging */
.post-content ul,
.post-content ol {
  margin: 1.5rem 0;
  padding-left: 0;
}

.post-content ul {
  list-style: none;
}

.post-content ul li {
  position: relative;
  padding: 0.65rem 0 0.65rem 2rem;
  transition: background 0.2s ease;
  border-radius: 10px;
  margin: 0.2rem 0;
}

.post-content ul li:hover {
  background: rgba(232, 168, 124, 0.08);
}

.post-content ul li::before {
  content: '♥';
  position: absolute;
  left: 0.4rem;
  top: 0.7rem;
  font-size: 0.7rem;
  color: var(--peach);
}

.post-content ol {
  counter-reset: fancy-counter;
  list-style: none;
}

.post-content ol li {
  counter-increment: fancy-counter;
  position: relative;
  padding: 0.65rem 0 0.65rem 2.5rem;
}

.post-content ol li::before {
  content: counter(fancy-counter);
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 1.7rem;
  height: 1.7rem;
  background: var(--primary-gradient);
  color: white;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(232, 168, 124, 0.3);
}

/* Code - Developer Friendly */
.post-content pre {
  background: linear-gradient(160deg, #1e1b4b 0%, #312e81 100%);
  border-radius: 16px;
  padding: 1.5rem 2rem;
  margin: 2rem -0.5rem;
  overflow-x: auto;
  box-shadow: 
    0 4px 12px rgba(30, 27, 75, 0.2),
    0 12px 28px rgba(30, 27, 75, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.2);
  position: relative;
}

.post-content pre::before {
  content: '●  ●  ●';
  position: absolute;
  top: 0.8rem;
  left: 1.2rem;
  font-size: 0.5rem;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 0.3rem;
}

.post-content pre code {
  color: #e0e7ff;
  font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 0.9rem;
  line-height: 1.7;
  background: none;
  padding: 0;
  display: block;
  margin-top: 0.5rem;
}

.post-content code {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.12) 0%, rgba(244, 114, 182, 0.08) 100%);
  color: #7c3aed;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.88em;
  font-weight: 500;
}

/* Tables - Clean & Modern */
.post-content table {
  width: calc(100% + 2rem);
  margin: 2rem -1rem;
  border-collapse: separate;
  border-spacing: 0;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(139, 92, 246, 0.1);
}

.post-content th {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(244, 114, 182, 0.08) 100%);
  padding: 1.1rem 1.25rem;
  text-align: left;
  font-weight: 600;
  color: #4a5568;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 2px solid rgba(139, 92, 246, 0.15);
}

.post-content td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  transition: background 0.2s ease;
}

.post-content tr:last-child td {
  border-bottom: none;
}

.post-content tr:hover td {
  background: rgba(139, 92, 246, 0.04);
}

/* Horizontal Rule - Decorative */
.post-content hr {
  border: none;
  height: auto;
  text-align: center;
  margin: 3rem 0;
  background: none;
}

.post-content hr::before {
  content: '❧  ❧  ❧';
  display: block;
  color: rgba(139, 92, 246, 0.3);
  font-size: 1rem;
  letter-spacing: 1rem;
}

/* Emphasis Boxes - Helpful Callouts */
.post-content .tip,
.post-content .note,
.post-content .warning,
.post-content .info,
.post-content .success {
  padding: 1.5rem 2rem 1.5rem 4rem;
  border-radius: 16px;
  margin: 2rem 0;
  position: relative;
  border: none;
}

.post-content .tip::before,
.post-content .note::before,
.post-content .warning::before,
.post-content .info::before,
.post-content .success::before {
  position: absolute;
  left: 1.25rem;
  top: 1.5rem;
  font-size: 1.4rem;
}

.post-content .tip {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(167, 243, 208, 0.12) 100%);
  box-shadow: inset 0 0 0 1px rgba(16, 185, 129, 0.15);
}

.post-content .tip::before {
  content: '💡';
}

.post-content .warning {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(253, 230, 138, 0.12) 100%);
  box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.15);
}

.post-content .warning::before {
  content: '⚠️';
}

.post-content .note,
.post-content .info {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(147, 197, 253, 0.12) 100%);
  box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.15);
}

.post-content .note::before,
.post-content .info::before {
  content: 'ℹ️';
}

.post-content .success {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.08) 0%, rgba(187, 247, 208, 0.12) 100%);
  box-shadow: inset 0 0 0 1px rgba(34, 197, 94, 0.15);
}

.post-content .success::before {
  content: '✅';
}

/* =====================================================
   AFFILIATE BOX - Warm & Trustworthy
   ===================================================== */

.affiliate-box {
  background: linear-gradient(135deg, rgba(168, 230, 207, 0.15) 0%, rgba(136, 216, 176, 0.1) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 1.75rem 2rem;
  border-radius: var(--border-radius);
  border: 2px solid rgba(168, 230, 207, 0.3);
  box-shadow: 0 4px 24px rgba(136, 216, 176, 0.12);
  position: relative;
  overflow: hidden;
}

.affiliate-box::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(168, 230, 207, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.affiliate-box .btn-success {
  background: linear-gradient(135deg, #a8e6cf 0%, #88d8b0 100%);
  border: none;
  border-radius: 25px;
  padding: 0.85rem 1.75rem;
  font-weight: 700;
  font-size: 1rem;
  color: #2d5a4a;
  box-shadow: 0 4px 20px rgba(136, 216, 176, 0.35);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.affiliate-box .btn-success:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(136, 216, 176, 0.45);
  color: #2d5a4a;
}

/* =====================================================
   RELATED POSTS - Keep Them Engaged
   ===================================================== */

/* Related Posts Section */
.content-section h5 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.content-section h5 i {
  color: #f472b6;
}

.content-section h5::after {
  content: '';
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, rgba(139, 92, 246, 0.2), transparent);
  margin-left: 1rem;
}

.content-section .card {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.content-section .card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 
    0 16px 40px rgba(0, 0, 0, 0.1),
    0 4px 12px rgba(139, 92, 246, 0.12);
  border-color: rgba(139, 92, 246, 0.25);
}

.content-section .card .card-img-top {
  transition: transform 0.5s ease;
}

.content-section .card:hover .card-img-top {
  transform: scale(1.08);
}

.content-section .card .card-body {
  padding: 1.25rem;
}

.content-section .card-title {
  margin-bottom: 0;
}

.content-section .card-title a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.4;
  transition: color 0.2s ease;
  display: block;
}

.content-section .card-title a:hover {
  color: #8b5cf6;
}

/* Post Actions - Edit/Delete buttons */
.post-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.5rem;
  margin-top: 2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.post-actions .btn {
  border-radius: 12px;
  padding: 0.6rem 1.25rem;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.post-actions .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.post-actions .btn-secondary {
  background: linear-gradient(135deg, #64748b, #475569);
  border: none;
}

.post-actions .btn-danger {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  border: none;
}

/* Warm & Friendly Footer */
.site-footer {
  background: linear-gradient(180deg, rgba(255, 252, 247, 0.95) 0%, rgba(255, 248, 240, 0.98) 100%);
  backdrop-filter: blur(var(--blur-amount));
  -webkit-backdrop-filter: blur(var(--blur-amount));
  border-top: 3px solid var(--peach);
  margin-top: auto;
  padding-top: 3rem;
  padding-bottom: 2.5rem;
}

.site-footer h4 {
  color: var(--text-primary);
  font-weight: 700;
  margin-bottom: 1.25rem;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.site-footer h4 i {
  color: var(--lavender);
}

.site-footer a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.2s ease;
}

.site-footer a:hover {
  color: var(--lavender);
}

.site-footer ul li {
  padding: 5px 0;
}

/* Social Media Links */
.social-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  font-size: 1.25rem;
  color: white;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.social-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  color: white;
}

/* Platform-specific colors */
.social-link.youtube {
  background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
}

.social-link.instagram {
  background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-link.tiktok {
  background: linear-gradient(135deg, #000000 0%, #25f4ee 50%, #fe2c55 100%);
}

.social-link.facebook {
  background: linear-gradient(135deg, #1877f2 0%, #0d5fc7 100%);
}

.social-link.twitter {
  background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
}

.social-link.pinterest {
  background: linear-gradient(135deg, #e60023 0%, #bd001a 100%);
}

/* Mobile adjustments */
@media (max-width: 576px) {
  .social-links {
    justify-content: center;
    margin-top: 1rem;
  }
  
  .social-link {
    width: 38px;
    height: 38px;
    font-size: 1.1rem;
  }
}

/* Sidebar Social Links (larger buttons) */
.social-links-sidebar {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.social-link-lg {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
}

.social-link-lg:hover {
  transform: translateX(5px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  color: white;
}

.social-link-lg i {
  font-size: 1.4rem;
  width: 28px;
  text-align: center;
}

.social-link-lg.youtube {
  background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
}

.social-link-lg.instagram {
  background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-link-lg.tiktok {
  background: linear-gradient(135deg, #25f4ee 0%, #000000 50%, #fe2c55 100%);
}

/* Warm, Friendly Buttons */
.btn-primary {
  background: var(--primary-gradient);
  border: none;
  border-radius: 25px;
  padding: 12px 28px;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(232, 168, 124, 0.35);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  box-shadow: 0 6px 24px rgba(232, 168, 124, 0.45);
  background: var(--primary-gradient);
  transform: translateY(-2px);
}

.btn-success {
  background: linear-gradient(135deg, #a8e6cf 0%, #88d8b0 100%);
  border: none;
  border-radius: 25px;
  font-weight: 600;
  color: #2d5a4a;
  box-shadow: 0 4px 16px rgba(136, 216, 176, 0.35);
}

.btn-success:hover {
  box-shadow: 0 6px 24px rgba(136, 216, 176, 0.45);
  background: linear-gradient(135deg, #a8e6cf 0%, #88d8b0 100%);
  color: #2d5a4a;
  transform: translateY(-2px);
}

.btn-outline-secondary {
  border: 2px solid var(--peach);
  color: var(--text-primary);
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.6);
  transition: all 0.3s ease;
  padding: 10px 24px;
}

.btn-outline-secondary:hover {
  background: var(--secondary-gradient);
  border-color: transparent;
  color: var(--text-primary);
}

.btn-outline-primary {
  border: 2px solid var(--lavender);
  color: var(--lavender);
  border-radius: 25px;
  background: transparent;
  transition: all 0.3s ease;
}

.btn-outline-primary:hover {
  background: var(--primary-gradient);
  border-color: transparent;
  color: white;
}

.btn-danger {
  background: linear-gradient(135deg, #f8a5a5 0%, #f5b8b8 100%);
  border: none;
  border-radius: 25px;
  color: #7a3535;
  box-shadow: 0 4px 16px rgba(248, 165, 165, 0.35);
}

.btn-danger:hover {
  box-shadow: 0 4px 12px rgba(248, 113, 113, 0.35);
}

/* Category Header - Soft */
.category-header {
  padding: 20px 25px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(var(--blur-amount));
  -webkit-backdrop-filter: blur(var(--blur-amount));
  border-radius: 16px;
  border-left: 4px solid var(--text-accent);
  margin-bottom: 20px;
}

.category-header h2 {
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Soft Badges */
.badge-primary {
  background: var(--primary-gradient);
  border-radius: 6px;
  padding: 5px 10px;
  font-weight: 500;
}

.badge-info {
  background: var(--accent-gradient);
  border-radius: 6px;
  padding: 5px 10px;
  color: #fff;
}

.badge-success {
  background: linear-gradient(135deg, #34d399 0%, #6ee7b7 100%);
  border-radius: 6px;
}

/* Soft Dropdown Menu */
.dropdown-menu {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(var(--blur-amount));
  -webkit-backdrop-filter: blur(var(--blur-amount));
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  padding: 8px;
  margin-top: 8px;
}

.dropdown-item {
  border-radius: 8px;
  padding: 10px 15px;
  font-weight: 500;
  transition: background 0.2s ease;
}

.dropdown-item:hover {
  background: rgba(99, 102, 241, 0.08);
  color: var(--text-accent);
}

.dropdown-item i {
  width: 20px;
  margin-right: 8px;
  opacity: 0.7;
}

/* Category Dropdown with Subcategories */
.category-dropdown {
  min-width: 220px;
}

.dropdown-submenu {
  position: relative;
}

.dropdown-parent {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.submenu-arrow {
  font-size: 0.7rem;
  opacity: 0.5;
  margin-left: auto;
  margin-right: 0;
  width: auto;
  transition: transform 0.2s ease;
}

.dropdown-submenu-content {
  display: none;
  position: absolute;
  left: 100%;
  top: 0;
  min-width: 200px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(var(--blur-amount));
  -webkit-backdrop-filter: blur(var(--blur-amount));
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  padding: 8px;
  margin-left: 4px;
}

.dropdown-submenu:hover .dropdown-submenu-content {
  display: block;
}

.dropdown-submenu:hover .submenu-arrow {
  transform: translateX(3px);
  opacity: 1;
}

.dropdown-submenu:hover > .dropdown-parent {
  background: rgba(99, 102, 241, 0.08);
  color: var(--text-accent);
}

/* Mobile: Stack subcategories instead of flyout */
@media (max-width: 991px) {
  .dropdown-submenu-content {
    position: static;
    display: none;
    margin-left: 0;
    margin-top: 4px;
    padding-left: 1rem;
    background: transparent;
    border: none;
    box-shadow: none;
  }
  
  .dropdown-submenu.open .dropdown-submenu-content {
    display: block;
  }
  
  .dropdown-submenu-content .dropdown-item {
    font-size: 0.9rem;
    padding: 8px 12px;
  }
  
  .submenu-arrow {
    transition: transform 0.2s ease;
  }
  
  .dropdown-submenu.open .submenu-arrow {
    transform: rotate(90deg);
  }
}

.account-heading {
  font-size: 2rem;
  color: var(--text-accent);
}

/* Cookie Consent Overlay - Warm & Friendly Full Screen */
.cookie-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.cookie-modal {
  background: linear-gradient(180deg, #fffaf5 0%, #fff5eb 100%);
  border-radius: 24px;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
  animation: cookieSlideIn 0.4s ease-out;
}

@keyframes cookieSlideIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.cookie-modal-header {
  text-align: center;
  padding: 35px 30px 20px;
  background: linear-gradient(135deg, var(--warm-peach, #b8a9c9) 0%, var(--warm-coral, #d4c6e6) 100%);
  border-radius: 24px 24px 0 0;
  color: white;
}

.cookie-icon {
  width: 80px;
  height: 80px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.cookie-icon i {
  font-size: 36px;
  color: var(--warm-peach, #b8a9c9);
}

.cookie-modal-header h2 {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cookie-subtitle {
  font-size: 1rem;
  opacity: 0.95;
  margin: 0;
  color: white;
}

.cookie-modal-body {
  padding: 25px 30px;
}

.cookie-intro {
  color: #5a4a42;
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 25px;
  text-align: center;
}

.cookie-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cookie-option {
  background: white;
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(232, 168, 124, 0.2);
  transition: all 0.2s ease;
}

.cookie-option:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border-color: rgba(232, 168, 124, 0.4);
}

.cookie-option-header {
  display: flex;
  align-items: center;
  gap: 15px;
}

.cookie-option-icon {
  width: 45px;
  height: 45px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cookie-option-icon.essential {
  background: linear-gradient(135deg, #a8e6cf 0%, #88d4ab 100%);
  color: #2d6a4f;
}

.cookie-option-icon.analytics {
  background: linear-gradient(135deg, #b4c6e7 0%, #93b5e1 100%);
  color: #1e4976;
}

.cookie-option-icon.marketing {
  background: linear-gradient(135deg, #f8d7da 0%, #f5c2c7 100%);
  color: #842029;
}

.cookie-option-icon i {
  font-size: 18px;
}

.cookie-option-info {
  flex: 1;
}

.cookie-option-info h4 {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #3d3d3d;
  margin: 0 0 4px 0;
}

.cookie-option-info p {
  font-size: 0.8rem;
  color: #777;
  margin: 0;
  line-height: 1.4;
}

.cookie-badge {
  font-size: 0.7rem;
  padding: 5px 12px;
  border-radius: 20px;
  font-weight: 600;
  flex-shrink: 0;
}

.cookie-badge.always-on {
  background: linear-gradient(135deg, #a8e6cf 0%, #88d4ab 100%);
  color: #2d6a4f;
}

/* Cookie Toggle Switch */
.cookie-switch {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 28px;
  flex-shrink: 0;
}

.cookie-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #ddd;
  transition: 0.3s;
  border-radius: 28px;
}

.cookie-slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 3px;
  bottom: 3px;
  background: white;
  transition: 0.3s;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.cookie-switch input:checked + .cookie-slider {
  background: linear-gradient(135deg, var(--warm-peach, #b8a9c9) 0%, var(--warm-coral, #d4c6e6) 100%);
}

.cookie-switch input:checked + .cookie-slider:before {
  transform: translateX(24px);
}

.cookie-modal-footer {
  padding: 0 30px 25px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-cookie-accept-all {
  background: linear-gradient(135deg, var(--warm-peach, #b8a9c9) 0%, var(--warm-coral, #d4c6e6) 100%);
  color: white;
  border: none;
  padding: 16px 28px;
  border-radius: 14px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(232, 168, 124, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-cookie-accept-all:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(232, 168, 124, 0.5);
}

.btn-cookie-accept-all i {
  font-size: 1rem;
}

/* Manage Preferences Button */
.btn-cookie-manage {
  background: white;
  color: #666;
  border: 2px solid #ddd;
  padding: 14px 24px;
  border-radius: 12px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-cookie-manage:hover {
  border-color: var(--warm-peach, #b8a9c9);
  color: var(--warm-peach, #b8a9c9);
}

.btn-cookie-save-choices {
  background: white;
  color: var(--warm-peach, #b8a9c9);
  border: 2px solid var(--warm-peach, #b8a9c9);
  padding: 14px 24px;
  border-radius: 12px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-cookie-save-choices:hover {
  background: var(--warm-peach, #b8a9c9);
  color: white;
}

.btn-cookie-reject-all {
  background: transparent;
  color: #888;
  border: none;
  padding: 10px 20px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: underline;
}

.btn-cookie-reject-all:hover {
  color: #555;
}

/* Policy link buttons in Step 1 */
.cookie-policy-links {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.cookie-policy-btn {
  background: rgba(195, 141, 158, 0.1);
  border: 1px solid rgba(195, 141, 158, 0.3);
  color: var(--warm-lavender, #9b8aa5);
  padding: 10px 18px;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cookie-policy-btn:hover {
  background: rgba(195, 141, 158, 0.2);
  border-color: var(--warm-lavender, #9b8aa5);
  transform: translateY(-1px);
}

.cookie-policy-btn i {
  font-size: 0.95rem;
}

/* Scrollable policy content */
.cookie-policy-content {
  max-height: 55vh;
  overflow-y: auto;
  padding-right: 10px;
}

.cookie-policy-content h4 {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary, #4a3f35);
  margin-top: 20px;
  margin-bottom: 10px;
  padding-bottom: 5px;
  border-bottom: 2px solid rgba(232, 168, 124, 0.3);
}

.cookie-policy-content h4:first-child {
  margin-top: 0;
}

.cookie-policy-content h5 {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-secondary, #6b5b4f);
  margin-top: 15px;
  margin-bottom: 8px;
}

.cookie-policy-content p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-secondary, #6b5b4f);
  margin-bottom: 12px;
}

.cookie-policy-content ul {
  margin: 0 0 15px 0;
  padding-left: 20px;
}

.cookie-policy-content ul li {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text-secondary, #6b5b4f);
  margin-bottom: 5px;
}

/* Custom scrollbar for policy content */
.cookie-policy-content::-webkit-scrollbar {
  width: 6px;
}

.cookie-policy-content::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.cookie-policy-content::-webkit-scrollbar-thumb {
  background: var(--warm-peach, #b8a9c9);
  border-radius: 3px;
}

.cookie-policy-content::-webkit-scrollbar-thumb:hover {
  background: var(--warm-lavender, #9b8aa5);
}

.cookie-modal-links {
  text-align: center;
  padding: 0 30px 25px;
  font-size: 0.85rem;
}

.cookie-modal-links a {
  color: var(--warm-lavender, #9b8aa5);
  text-decoration: none;
  transition: color 0.2s ease;
}

.cookie-modal-links a:hover {
  color: var(--warm-peach, #b8a9c9);
  text-decoration: underline;
}

.cookie-modal-links .separator {
  margin: 0 12px;
  color: #ccc;
}

.cookie-modal-links i {
  margin-right: 4px;
}

/* Step 2: Smaller header for manage preferences */
.cookie-header-small {
  padding: 20px 30px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.cookie-header-small h3 {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0;
  color: white;
}

.cookie-back-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.cookie-back-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.cookie-intro-small {
  color: #5a4a42;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 20px;
  text-align: center;
}

/* Reject text button */
.btn-cookie-reject-text {
  background: transparent;
  color: #888;
  border: none;
  padding: 10px 20px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: underline;
}

.btn-cookie-reject-text:hover {
  color: #555;
}

/* Mobile Responsive */
@media (max-width: 576px) {
  .cookie-modal {
    margin: 10px;
    max-height: 95vh;
    border-radius: 20px;
  }
  
  .cookie-modal-header {
    padding: 25px 20px 15px;
    border-radius: 20px 20px 0 0;
  }
  
  .cookie-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
  }
  
  .cookie-icon i {
    font-size: 28px;
  }
  
  .cookie-modal-header h2 {
    font-size: 1.4rem;
  }
  
  .cookie-subtitle {
    font-size: 0.9rem;
  }
  
  .cookie-modal-body {
    padding: 20px;
  }
  
  .cookie-option {
    padding: 14px 16px;
  }
  
  .cookie-option-icon {
    width: 38px;
    height: 38px;
  }
  
  .cookie-option-info h4 {
    font-size: 0.9rem;
  }
  
  .cookie-option-info p {
    font-size: 0.75rem;
  }
  
  .cookie-modal-footer {
    padding: 0 20px 20px;
  }
  
  .btn-cookie-accept-all {
    padding: 14px 20px;
    font-size: 1rem;
  }
}

/* Legacy cookie banner styles removed - using overlay now */
.toggle-slider {
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.2);
  transition: 0.3s;
  border-radius: 26px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background: white;
  transition: 0.3s;
  border-radius: 50%;
}

.cookie-toggle input:checked + .toggle-slider {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

.cookie-toggle input:checked + .toggle-slider:before {
  transform: translateX(24px);
}

/* Secondary Actions */
.cookie-actions-secondary {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-cookie-save {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-cookie-save:hover {
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

/* Reject All - Small, text-like, less prominent */
.btn-cookie-reject {
  background: transparent;
  color: rgba(255, 255, 255, 0.5);
  border: none;
  padding: 12px 16px;
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.btn-cookie-reject:hover {
  color: rgba(255, 255, 255, 0.7);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }
  
  .cookie-actions {
    flex-direction: column;
  }
  
  .btn-cookie-accept {
    justify-content: center;
  }
  
  .btn-cookie-manage {
  }
  
  .cookie-preference-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .cookie-toggle {
    align-self: flex-end;
  }
  
  .cookie-actions-secondary {
    flex-direction: column;
  }
  
  .btn-cookie-save,
  .btn-cookie-reject {
    text-align: center;
  }
}

/* Legal Pages - Clean */
.legal-page {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(var(--blur-amount));
  -webkit-backdrop-filter: blur(var(--blur-amount));
  border-radius: 16px;
  padding: 30px;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.legal-page h4 {
  margin-top: 25px;
  color: var(--text-accent);
  font-weight: 600;
}

.legal-page h5 {
  margin-top: 20px;
  color: var(--text-primary);
}

.legal-page ul {
  margin-left: 20px;
  margin-bottom: 15px;
}

.legal-page li {
  margin-bottom: 8px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Cards - Clean Glass */
.card {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(var(--blur-amount));
  -webkit-backdrop-filter: blur(var(--blur-amount));
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  overflow: hidden;
}

.card-header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  font-weight: 600;
  padding: 15px 20px;
}

.card-header.bg-info {
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.9) 0%, rgba(110, 231, 183, 0.9) 100%) !important;
  color: #fff;
}

.card-header.bg-danger {
  background: linear-gradient(135deg, rgba(248, 113, 113, 0.9) 0%, rgba(251, 113, 133, 0.9) 100%) !important;
  color: #fff;
}

.card-body {
  padding: 20px;
}

/* Form Controls - Eye Friendly */
.form-control {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  padding: 12px 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  font-size: 1rem;
}

.form-control:focus {
  background: #fff;
  border-color: var(--text-accent);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.form-control::placeholder {
  color: #9ca3af;
}

/* Custom Checkbox & Switch */
.custom-control-input:checked ~ .custom-control-label::before {
  background: var(--text-accent);
  border-color: var(--text-accent);
}

.custom-switch .custom-control-input:checked ~ .custom-control-label::before {
  background: #34d399;
  border-color: #34d399;
}

.custom-control-label::before {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.2);
}

/* Breadcrumbs - Simple */
.breadcrumb {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(var(--blur-amount));
  -webkit-backdrop-filter: blur(var(--blur-amount));
  padding: 10px 18px;
  border-radius: 10px;
  margin-bottom: 15px;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.breadcrumb-item a {
  color: var(--text-accent);
  font-weight: 500;
}

.breadcrumb-item.active {
  color: var(--text-secondary);
}

/* Alerts - Soft Colors */
.alert {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  color: var(--text-primary);
  padding: 15px 20px;
}

.alert-success {
  background: rgba(167, 243, 208, 0.4);
  border-left: 3px solid #34d399;
}

.alert-danger {
  background: rgba(254, 202, 202, 0.4);
  border-left: 3px solid #f87171;
}

.alert-info {
  background: rgba(191, 219, 254, 0.4);
  border-left: 3px solid #60a5fa;
}

.alert-warning {
  background: rgba(254, 243, 199, 0.6);
  border-left: 3px solid #fbbf24;
}

/* Table - Clean */
.table {
  background: transparent;
}

.table th {
  background: rgba(99, 102, 241, 0.1);
  border: none;
  color: var(--text-primary);
  font-weight: 600;
}

.table td {
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(0, 0, 0, 0.06);
}

/* Pagination - Soft */
.pagination .page-link {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: var(--text-primary);
  margin: 0 2px;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.pagination .page-link:hover {
  background: rgba(99, 102, 241, 0.1);
  color: var(--text-accent);
}

.pagination .page-item.active .page-link {
  background: var(--text-accent);
  border-color: var(--text-accent);
  color: #fff;
}

/* Modal - Clean */
.modal-content {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(var(--blur-amount));
  -webkit-backdrop-filter: blur(var(--blur-amount));
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.modal-header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding: 18px 24px;
}

.modal-footer {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding: 15px 24px;
}

/* Scrollbar - Subtle */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.02);
}

::-webkit-scrollbar-thumb {
  background: rgba(99, 102, 241, 0.3);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(99, 102, 241, 0.5);
}

/* Accessibility - Focus States */
a:focus,
button:focus,
.btn:focus,
.form-control:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
}

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

/* Loading Animation - Subtle */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.loading {
  background: linear-gradient(90deg, 
    rgba(0,0,0,0.02) 0%, 
    rgba(0,0,0,0.05) 50%, 
    rgba(0,0,0,0.02) 100%);
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  body {
    margin-top: 4rem;
    font-size: 15px;
  }
  
  .content-section {
    padding: 18px;
    border-radius: 12px;
  }
  
  .sidebar {
    margin-top: 20px;
  }
  
  .navbar-brand {
    font-size: 1.1rem;
  }
  
  .category-header {
    padding: 18px;
  }
  
  .cookie-banner .row {
    text-align: center;
  }
  
  .cookie-banner .col-md-4 {
    margin-top: 12px;
  }
  
  /* Article cards responsive */
  .article-card-image {
  }
  
  .article-card-body {
    padding: 1rem 1.25rem 1.25rem;
  }
  
  .article-card-title {
    font-size: 1.1rem;
  }
  
  .section-heading {
    font-size: 1.1rem;
  }
  
  .section-heading .heading-icon {
    width: 32px;
    height: 32px;
  }
}

/* =====================================================
   RESPONSIVE DESIGN - All Device Friendly
   ===================================================== */

/* Extra Small Devices (phones, less than 576px) */
@media (max-width: 575.98px) {
  body {
    margin-top: 3.5rem;
    font-size: 14px;
  }
  
  .container {
    padding-left: 12px;
    padding-right: 12px;
  }
  
  .navbar-brand {
    font-size: 1rem;
  }
  
  .navbar-logo {
    height: 38px;
  }
  
  .navbar-brand i {
    display: none;
  }
  
  .footer-logo {
    height: 50px;
  }
  
  .content-section {
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
  }
  
  .article-img {
    height: 60px;
    width: 60px;
    margin-right: 12px;
    border-radius: 8px;
  }
  
  .article-title {
    font-size: 1rem;
  }
  
  .article-metadata {
    font-size: 0.8rem;
  }
  
  .sidebar {
    padding: 15px;
  }
  
  .sidebar h3 {
    font-size: 0.95rem;
  }
  
  .category-list li {
    padding: 6px 10px;
  }
  
  .category-header {
    padding: 15px;
  }
  
  .category-header h2 {
    font-size: 1.3rem;
  }
  
  .site-footer {
    padding: 20px 0 !important;
  }
  
  .site-footer .col-md-4 {
    margin-bottom: 20px;
    text-align: center;
  }
  
  .site-footer h4 {
    font-size: 0.95rem;
  }
  
  .cookie-banner {
    padding: 12px 0;
  }
  
  .cookie-banner p {
    font-size: 0.85rem;
    margin-bottom: 10px !important;
  }
  
  .cookie-banner .btn {
    padding: 6px 12px;
    font-size: 0.8rem;
  }
  
  .btn {
    padding: 8px 16px;
    font-size: 0.9rem;
  }
  
  .post-content {
    font-size: 0.95rem;
    line-height: 1.7;
  }
  
  .post-featured-image img {
    max-height: 200px;
    border-radius: 10px;
  }
  
  .account-img {
    height: 80px;
    width: 80px;
    margin-right: 15px;
  }
  
  .account-heading {
    font-size: 1.5rem;
  }
  
  .legal-page {
    padding: 20px;
  }
  
  .legal-page h4 {
    font-size: 1.1rem;
  }
  
  .modal-content {
    margin: 10px;
    border-radius: 12px;
  }
  
  .modal-header,
  .modal-body,
  .modal-footer {
    padding: 15px;
  }
  
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.3rem; }
  h3 { font-size: 1.15rem; }
  h4 { font-size: 1rem; }
  h5 { font-size: 0.95rem; }
}

/* Small Devices (landscape phones, 576px to 767px) */
@media (min-width: 576px) and (max-width: 767.98px) {
  body {
    margin-top: 4rem;
  }
  
  .content-section {
    padding: 18px;
  }
  
  .article-img {
    height: 70px;
    width: 70px;
  }
  
  .post-featured-image img {
    max-height: 280px;
  }
  
  .site-footer .col-md-4 {
    margin-bottom: 15px;
  }
}

/* Medium Devices (tablets, 768px to 991px) */
@media (min-width: 768px) and (max-width: 991.98px) {
  body {
    margin-top: 4.5rem;
  }
  
  .content-section {
    padding: 20px;
  }
  
  .sidebar {
    padding: 18px;
  }
  
  .post-featured-image img {
    max-height: 350px;
  }
}

/* Large Devices (desktops, 992px to 1199px) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .container {
    max-width: 960px;
  }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
  
  .post-content {
    font-size: 1.1rem;
  }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
  /* Larger touch targets */
  .nav-link {
    padding: 12px 16px !important;
  }
  
  .dropdown-item {
    padding: 12px 18px;
  }
  
  .category-list li {
    padding: 10px 12px;
  }
  
  .btn {
    min-height: 44px;
    padding: 10px 20px;
  }
  
  .form-control {
    min-height: 44px;
    font-size: 16px; /* Prevents iOS zoom on focus */
  }
  
  /* Remove hover effects that don't work on touch */
  .content-section:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  }
  
  .featured-card:hover {
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  }
  
  .pagination .page-link:hover {
    background: rgba(255, 255, 255, 0.8);
  }
}

/* Landscape Orientation on Mobile */
@media (max-height: 500px) and (orientation: landscape) {
  body {
    margin-top: 3rem;
  }
  
  .navbar {
    padding: 0.25rem 1rem;
  }
  
  .navbar-brand {
    font-size: 1rem;
  }
  
  .cookie-banner {
    padding: 8px 0;
  }
  
  .cookie-banner p {
    font-size: 0.8rem;
  }
}

/* High DPI / Retina Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .article-img,
  .account-img,
  .post-featured-image img {
    image-rendering: -webkit-optimize-contrast;
  }
}

/* Safe Area for Notched Devices (iPhone X+) */
@supports (padding: max(0px)) {
  body {
    padding-left: max(12px, env(safe-area-inset-left));
    padding-right: max(12px, env(safe-area-inset-right));
  }
  
  .cookie-banner {
    padding-bottom: max(15px, env(safe-area-inset-bottom));
  }
  
  .site-footer {
    padding-bottom: max(20px, env(safe-area-inset-bottom));
  }
}

/* Foldable Devices */
@media (horizontal-viewport-segments: 2) {
  .container {
    column-gap: env(viewport-segment-width 0 0);
  }
}

/* Print Styles */
@media print {
  body {
    background: #fff;
    color: #000;
  }
  
  .bg-steel,
  .site-footer,
  .cookie-banner,
  .sidebar {
    display: none;
  }
  
  .content-section {
    background: #fff;
    box-shadow: none;
    border: 1px solid #ccc;
  }
}

/* Dark Mode Support for Eye Comfort - COMPREHENSIVE */
/* Properly consolidated dark theme styles */
@media (prefers-color-scheme: dark) {
  :root {
    --glass-bg: rgba(30, 41, 59, 0.95);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-primary: #f5f3f8;
    --text-secondary: #e0dae8;
    --text-accent: #f0abfc;
    --text-warm: #fbbf24;
    --bg-soft-1: #130f1e;
    --bg-soft-2: #1a1528;
    --bg-soft-3: #130f1e;
    --bg-cream: #1a1528;
  }
  
  body {
    background: linear-gradient(135deg, #130f1e 0%, #1a1528 50%, #130f1e 100%);
    color: var(--text-primary);
  }
  
  /* Cards and Content Sections */
  .content-section,
  .sidebar,
  .card,
  .legal-page,
  .modal-content,
  .article-card,
  .featured-card,
  .post-card,
  .subcategory-card {
    background: rgba(28, 24, 40, 0.95) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: var(--text-primary);
  }
  
  .card-body,
  .article-card-body,
  .post-card-content {
    background: transparent;
    color: var(--text-primary);
  }
  
  .card-title,
  .card-title a,
  .article-card-title,
  .article-card-title a,
  .post-card-title,
  .post-card-title a,
  .subcategory-title {
    color: var(--text-primary) !important;
  }
  
  .card-title a:hover,
  .article-card-title a:hover,
  .post-card-title a:hover {
    color: var(--text-accent) !important;
  }
  
  .card-text,
  .article-card-excerpt,
  .post-card-excerpt,
  .subcategory-desc {
    color: var(--text-secondary) !important;
  }
  
  /* Featured card specific dark mode */
  .featured-card {
    background: rgba(32, 28, 48, 0.95) !important;
    border-color: rgba(180, 160, 210, 0.2) !important;
  }
  
  /* Featured section container dark mode */
  .featured-section {
    background: rgba(28, 24, 42, 0.95) !important;
    border-color: rgba(155, 133, 176, 0.2) !important;
  }
  
  .featured-section h4,
  .featured-section .section-title {
    color: #f5f3f8 !important;
  }
  
  /* Article/Post content container dark mode */
  article.content-section {
    background: rgba(28, 24, 42, 0.95) !important;
    border-color: rgba(155, 133, 176, 0.2) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
  }
  
  article.content-section::before,
  article.content-section::after {
    display: none !important;
  }
  
  .featured-card .card-title,
  .featured-card .card-title a {
    color: #ffffff !important;
  }
  
  .featured-card .card-title a:hover {
    color: #f0abfc !important;
  }
  
  .featured-card .post-date,
  .featured-card .card-text,
  .featured-card small,
  .featured-card .text-muted {
    color: #d8d0e8 !important;
  }
  
  .featured-card .post-date i,
  .featured-card .fa-calendar,
  .featured-card i {
    color: #b8a8d8 !important;
  }
  
  /* Category badges in dark mode */
  .post-category-badge,
  .category-badge,
  .badge {
    background: rgba(139, 92, 246, 0.25) !important;
    color: #e0d0f0 !important;
  }
  
  /* Text colors */
  .text-muted,
  .text-secondary {
    color: var(--text-secondary) !important;
  }
  
  h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
  }
  
  p {
    color: #e0dae8;
  }
  
  a {
    color: var(--text-accent);
  }
  
  a:hover {
    color: #e879f9;
  }
  
  /* Navbar */
  .navbar,
  .navbar-glass {
    background: rgba(18, 15, 28, 0.98) !important;
    border-bottom-color: rgba(255, 255, 255, 0.12) !important;
  }
  
  .navbar-brand,
  .nav-link {
    color: var(--text-primary) !important;
  }
  
  .nav-link:hover {
    color: var(--text-accent) !important;
  }
  
  .navbar-collapse {
    background: rgba(15, 23, 42, 0.98) !important;
  }
  
  /* Forms */
  .form-control,
  input[type="text"],
  input[type="email"],
  input[type="password"],
  textarea,
  select {
    background: rgba(30, 41, 59, 0.95) !important;
    border-color: rgba(255, 255, 255, 0.18) !important;
    color: var(--text-primary) !important;
  }
  
  .form-control:focus,
  input:focus,
  textarea:focus {
    background: rgba(28, 24, 40, 0.95) !important;
    border-color: var(--text-accent) !important;
    color: var(--text-primary) !important;
  }
  
  .form-control::placeholder,
  input::placeholder {
    color: #94a3b8 !important;
  }
  
  /* Dropdown - COMPREHENSIVE FIX */
  .dropdown-menu,
  .dropdown-menu.category-dropdown {
    background: rgba(30, 41, 59, 0.98) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4) !important;
  }
  
  .dropdown-item {
    color: #e2e8f0 !important;
  }
  
  .dropdown-item i {
    color: #94a3b8 !important;
  }
  
  .dropdown-item:hover,
  .dropdown-item:focus {
    background: rgba(139, 92, 246, 0.25) !important;
    color: #f0abfc !important;
  }
  
  .dropdown-item:hover i,
  .dropdown-item:focus i {
    color: #f0abfc !important;
  }
  
  /* Category dropdown submenu */
  .dropdown-submenu-content {
    background: rgba(30, 41, 59, 0.98) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4) !important;
  }
  
  .dropdown-parent {
    color: #e2e8f0 !important;
  }
  
  .dropdown-submenu:hover > .dropdown-parent {
    background: rgba(139, 92, 246, 0.25) !important;
    color: #f0abfc !important;
  }
  
  .submenu-arrow {
    color: #94a3b8 !important;
  }
  
  .dropdown-divider {
    border-color: rgba(255, 255, 255, 0.1) !important;
  }
  
  /* Footer */
  .site-footer {
    background: rgba(15, 23, 42, 0.98) !important;
    border-top-color: rgba(255, 255, 255, 0.12) !important;
  }
  
  .site-footer h4,
  .site-footer a {
    color: var(--text-secondary) !important;
  }
  
  .site-footer a:hover {
    color: var(--text-accent) !important;
  }
  
  /* Tables */
  .table,
  .table td,
  .table th {
    background: rgba(30, 41, 59, 0.6) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: var(--text-primary) !important;
  }
  
  /* Pagination */
  .pagination .page-link {
    background: rgba(30, 41, 59, 0.8) !important;
    color: var(--text-primary) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
  }
  
  .pagination .page-item.active .page-link {
    background: var(--text-accent) !important;
    border-color: var(--text-accent) !important;
    color: #0f172a !important;
  }
  
  /* Buttons - COMPREHENSIVE DARK MODE */
  .btn-outline-primary {
    color: var(--text-accent) !important;
    border-color: var(--text-accent) !important;
  }
  
  .btn-outline-primary:hover {
    background: var(--text-accent) !important;
    color: #0f172a !important;
  }
  
  .btn-primary {
    background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 100%) !important;
    border: none !important;
    color: #fff !important;
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.35) !important;
  }
  
  .btn-primary:hover {
    box-shadow: 0 6px 24px rgba(139, 92, 246, 0.45) !important;
    background: linear-gradient(135deg, #6d28d9 0%, #7c3aed 100%) !important;
    color: #fff !important;
  }
  
  .btn-secondary {
    background: rgba(51, 65, 85, 0.9) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    color: #f0edf5 !important;
  }
  
  .btn-secondary:hover {
    background: rgba(71, 85, 105, 0.9) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    color: #f5f3f8 !important;
  }
  
  .btn-success {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%) !important;
    color: #fff !important;
    border: none !important;
  }
  
  .btn-success:hover {
    background: linear-gradient(135deg, #047857 0%, #059669 100%) !important;
    color: #fff !important;
  }
  
  .btn-danger {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%) !important;
    color: #fff !important;
    border: none !important;
  }
  
  .btn-danger:hover {
    background: linear-gradient(135deg, #b91c1c 0%, #dc2626 100%) !important;
    color: #fff !important;
  }
  
  .btn-outline-secondary {
    border-color: rgba(255, 255, 255, 0.3) !important;
    color: #f0edf5 !important;
    background: transparent !important;
  }
  
  .btn-outline-secondary:hover {
    background: rgba(51, 65, 85, 0.8) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    color: #f5f3f8 !important;
  }
  
  .btn-link {
    color: var(--text-accent) !important;
  }
  
  .btn-link:hover {
    color: #e879f9 !important;
  }
  
  /* Alert boxes in dark mode */
  .alert {
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
  }
  
  .alert-success {
    background: rgba(16, 185, 129, 0.15) !important;
    color: #6ee7b7 !important;
    border-color: rgba(16, 185, 129, 0.3) !important;
  }
  
  .alert-danger,
  .alert-error {
    background: rgba(239, 68, 68, 0.15) !important;
    color: #fca5a5 !important;
    border-color: rgba(239, 68, 68, 0.3) !important;
  }
  
  .alert-warning {
    background: rgba(245, 158, 11, 0.15) !important;
    color: #fcd34d !important;
    border-color: rgba(245, 158, 11, 0.3) !important;
  }
  
  .alert-info {
    background: rgba(59, 130, 246, 0.15) !important;
    color: #93c5fd !important;
    border-color: rgba(59, 130, 246, 0.3) !important;
  }
  
  /* Badges */
  .badge.bg-primary {
    background: var(--text-accent) !important;
    color: #0f172a !important;
  }
  
  .post-category-badge {
    background: rgba(240, 171, 252, 0.2) !important;
    color: var(--text-accent) !important;
  }
  
  /* Hero Banner */
  .hero-banner {
    background-color: #1e293b;
  }
  
  .hero-overlay {
    background: linear-gradient(135deg, 
      rgba(15, 23, 42, 0.85) 0%, 
      rgba(30, 41, 59, 0.75) 50%,
      rgba(15, 23, 42, 0.85) 100%) !important;
  }
  
  /* Hero buttons with improved contrast */
  .btn-hero-primary {
    background: linear-gradient(135deg, #8070a0 0%, #9585b5 100%) !important;
    color: #fff !important;
  }
  
  .btn-hero-primary:hover {
    background: linear-gradient(135deg, #9080b0 0%, #a595c5 100%) !important;
    color: #fff !important;
  }
  
  .btn-hero-secondary {
    background: rgba(139, 92, 246, 0.3) !important;
    color: #fff !important;
    border-color: rgba(139, 92, 246, 0.6) !important;
  }
  
  .btn-hero-secondary:hover {
    background: rgba(139, 92, 246, 0.5) !important;
    color: #fff !important;
    border-color: #8b5cf6 !important;
  }
  
  /* Category page specific */
  .category-header h2 {
    color: var(--text-primary);
  }
  
  .section-title {
    color: var(--text-primary);
  }
  
  /* Cookie banner - COMPREHENSIVE DARK MODE */
  .cookie-modal {
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%) !important;
    color: var(--text-primary);
  }
  
  .cookie-modal-header {
    background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 100%) !important;
  }
  
  .cookie-modal-header h2,
  .cookie-modal-header p,
  .cookie-subtitle {
    color: #fff !important;
  }
  
  .cookie-modal-body {
    background: transparent;
  }
  
  .cookie-intro,
  .cookie-intro-small {
    color: #e0dae8 !important;
  }
  
  .cookie-option {
    background: rgba(51, 65, 85, 0.8) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
  }
  
  .cookie-option:hover {
    border-color: rgba(139, 92, 246, 0.5) !important;
    background: rgba(51, 65, 85, 0.95) !important;
  }
  
  .cookie-option-info h4 {
    color: #f5f3f8 !important;
  }
  
  .cookie-option-info p {
    color: #b0a8c0 !important;
  }
  
  .cookie-policy-content h4,
  .cookie-policy-content h5 {
    color: #f5f3f8 !important;
    border-bottom-color: rgba(139, 92, 246, 0.3) !important;
  }
  
  .cookie-policy-content p,
  .cookie-policy-content li {
    color: #e0dae8 !important;
  }
  
  /* Cookie buttons in dark mode */
  .btn-cookie-accept-all {
    background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 100%) !important;
    color: #fff !important;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4) !important;
  }
  
  .btn-cookie-accept-all:hover {
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.5) !important;
  }
  
  .btn-cookie-manage {
    background: rgba(51, 65, 85, 0.8) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    color: #f0edf5 !important;
  }
  
  .btn-cookie-manage:hover {
    border-color: #8b5cf6 !important;
    color: #a78bfa !important;
    background: rgba(51, 65, 85, 0.95) !important;
  }
  
  .btn-cookie-reject-text,
  .btn-cookie-reject-all {
    color: #b0a8c0 !important;
  }
  
  .btn-cookie-reject-text:hover,
  .btn-cookie-reject-all:hover {
    color: #f0edf5 !important;
  }
  
  .cookie-policy-btn {
    background: rgba(139, 92, 246, 0.15) !important;
    border-color: rgba(139, 92, 246, 0.3) !important;
    color: #a78bfa !important;
  }
  
  .cookie-policy-btn:hover {
    background: rgba(139, 92, 246, 0.25) !important;
    border-color: #8b5cf6 !important;
  }
  
  .cookie-slider {
    background: #475569 !important;
  }
  
  .cookie-switch input:checked + .cookie-slider {
    background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 100%) !important;
  }
  
  .cookie-badge.always-on {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%) !important;
    color: #fff !important;
  }
  
  /* Cookie scrollbar dark mode */
  .cookie-policy-content::-webkit-scrollbar-track {
    background: #1e293b !important;
  }
  
  .cookie-policy-content::-webkit-scrollbar-thumb {
    background: #8b5cf6 !important;
  }
  
  /* Under construction banner - keep visible */
  .under-construction-banner {
    background: linear-gradient(135deg, #7c3aed, #6366f1) !important;
  }
  
  /* Read more links */
  .read-more-link {
    color: var(--text-accent) !important;
  }
  
  /* Author info */
  .author-name {
    color: var(--text-primary) !important;
  }
  
  /* Category list in sidebar */
  .category-list a {
    color: var(--text-secondary) !important;
  }
  
  .category-list a:hover {
    color: var(--text-accent) !important;
    background: rgba(240, 171, 252, 0.1) !important;
  }
  
  /* Search box */
  .search-box {
    background: rgba(30, 41, 59, 0.95) !important;
  }
  
  /* Image containers */
  .article-card-image,
  .post-card-image {
    background: rgba(30, 41, 59, 0.5);
  }
  
  /* Affiliate products */
  .affiliate-product-card,
  .affiliate-product-horizontal,
  .product-reel-container,
  .product-reel-card {
    background: rgba(28, 24, 40, 0.95) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
  }
  
  .reel-product-image {
    background: rgba(30, 41, 59, 0.8) !important;
  }
  
  .reel-product-name,
  .product-title {
    color: var(--text-primary) !important;
  }
  
  /* Auth pages */
  .auth-card {
    background: rgba(28, 24, 40, 0.95) !important;
  }
  
  .auth-body {
    background: transparent;
  }
  
  .auth-form-group label {
    color: var(--text-primary) !important;
  }
  
  .auth-footer {
    background: rgba(15, 23, 42, 0.95) !important;
    border-top-color: rgba(255, 255, 255, 0.12) !important;
  }
  
  .auth-features {
    background: rgba(30, 41, 59, 0.5) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
  }
  
  .auth-features h3,
  .auth-features li {
    color: var(--text-primary) !important;
  }

  /* Related Posts Section - Dark Mode */
  .related-posts-section {
    background: linear-gradient(135deg, rgba(28, 24, 40, 0.95) 0%, rgba(35, 30, 50, 0.95) 100%) !important;
  }
  
  .related-title {
    color: #f1f5f9 !important;
  }
  
  .related-title i {
    color: #f0abfc !important;
  }
  
  .related-post-card {
    background: rgba(40, 35, 55, 0.95) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
  }
  
  .related-post-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4) !important;
  }
  
  .related-post-image {
    background: rgba(50, 45, 65, 0.8) !important;
  }
  
  .related-post-image .no-image {
    color: #64748b !important;
  }
  
  .related-post-content {
    background: rgba(40, 35, 55, 0.95) !important;
  }
  
  .related-post-content h4 {
    color: #e2e8f0 !important;
  }
  
  .related-post-card:hover h4 {
    color: #f0abfc !important;
  }
  
  .related-post-date {
    color: #94a3b8 !important;
  }
  
  /* Social Share Section - Dark Mode */
  .social-share-section {
    background: linear-gradient(135deg, rgba(28, 24, 40, 0.95) 0%, rgba(35, 30, 50, 0.95) 100%) !important;
  }
  
  .share-label {
    color: #e2e8f0 !important;
  }
}


/* =====================================================
   JAVASCRIPT ENHANCEMENT STYLES
   ===================================================== */

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 45px;
  height: 45px;
  background: var(--text-accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 9998;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

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

.back-to-top:hover {
  background: #4f46e5;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

/* Touch Device Specific Styles */
.touch-device .content-section:hover,
.touch-device .featured-card:hover {
  transform: none;
}

.touch-device .btn:active {
  transform: scale(0.98);
}

/* Offline Status Indicator */
body.offline::before {
  content: 'You are offline';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #f59e0b;
  color: #fff;
  text-align: center;
  padding: 8px;
  font-size: 0.85rem;
  z-index: 10001;
}

body.offline {
  margin-top: calc(5rem + 36px);
}

/* Loading Spinner for Buttons */
.fa-spinner {
  margin-right: 8px;
}

/* Smooth Scroll Behavior */
html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  
  .back-to-top {
    transition: none;
  }
}

/* Image Lazy Loading Placeholder */
img[data-src] {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Mobile-specific touch feedback */
@media (hover: none) {
  .back-to-top {
    bottom: 100px;
    right: 15px;
  }
  
  .back-to-top:active {
    transform: scale(0.95);
  }
}

/* =====================================================
   HORIZONTAL PRODUCT REEL (Google-style carousel)
   ===================================================== */

.product-reel-container {
  margin: 2rem 0;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(var(--blur-amount));
  border-radius: 16px;
  border: 1px solid var(--glass-border);
}

.product-reel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding: 0 0.5rem;
}

.product-reel-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.product-reel-title i {
  color: #f59e0b;
  margin-right: 0.5rem;
}

.product-reel-nav {
  display: flex;
  gap: 0.5rem;
}

.reel-nav-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.97);
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.reel-nav-btn:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.reel-nav-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.product-reel {
  overflow: hidden;
  position: relative;
}

.product-reel-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0.5rem;
}

.product-reel-track::-webkit-scrollbar {
  display: none;
}

.product-reel-item {
  flex: 0 0 auto;
  width: 160px;
}

.product-reel-card {
  display: flex;
  flex-direction: column;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  border: 1px solid #e5e7eb;
  transition: all 0.2s ease;
  height: 100%;
}

.product-reel-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
  border-color: var(--primary-color);
}

.reel-product-image {
  height: 120px;
  background: #f9fafb;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
}

.reel-product-image img {
  max-height: 100%;
  object-fit: contain;
}

.reel-product-info {
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex-grow: 1;
}

.reel-product-name {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.reel-product-rating {
  display: flex;
  gap: 2px;
  color: #f59e0b;
  font-size: 0.7rem;
}

.reel-product-rating .far {
  color: #d1d5db;
}

.reel-product-price {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: auto;
}

.reel-original-price {
  font-size: 0.75rem;
  color: #9ca3af;
  text-decoration: line-through;
}

.reel-sale-price {
  font-size: 0.95rem;
  font-weight: 600;
  color: #dc2626;
}

.reel-current-price {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.reel-check-price {
  font-size: 0.8rem;
  color: var(--primary-color);
  font-weight: 500;
}

.reel-product-retailer {
  font-size: 0.7rem;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .product-reel-item {
    width: 140px;
  }
  
  .reel-product-image {
    height: 100px;
  }
  
  .product-reel-nav {
    display: none;
  }
}

@media (max-width: 576px) {
  .product-reel-container {
    padding: 1rem;
    margin: 1rem -0.5rem;
    border-radius: 12px;
  }
  
  .product-reel-item {
    width: 130px;
  }
  
  .reel-product-image {
    height: 90px;
  }
  
  .reel-product-info {
    padding: 0.5rem;
  }
  
  .reel-product-name {
    font-size: 0.8rem;
  }
}

/* =====================================================
   AFFILIATE PRODUCTS STYLING
   Beautiful product cards, boxes, and comparison tables
   ===================================================== */

/* Affiliate Button Base - Subtle & Small */
.btn-affiliate {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border: none;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.85rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
}

.btn-affiliate:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.btn-affiliate i {
  font-size: 0.8em;
}

.btn-affiliate.btn-sm {
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
}

.btn-affiliate.btn-lg {
  padding: 0.6rem 1.25rem;
  font-size: 0.9rem;
}

/* Product Badge - Subtle */
.product-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(99, 102, 241, 0.9);
  color: #fff;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  z-index: 10;
}

.product-badge-large {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(99, 102, 241, 0.9);
  color: #fff;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  z-index: 10;
}

/* Product Rating Stars */
.product-rating {
  color: #f59e0b;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.product-rating .rating-text {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-left: 0.5rem;
}

/* Affiliate Product Card - Compact & Subtle */
.affiliate-product-card {
  position: relative;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.2s ease;
}

.affiliate-product-card:hover {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.1);
}

.affiliate-product-card .product-image {
  position: relative;
  padding: 1rem;
  background: #f9fafb;
}

.affiliate-product-card .product-image img {
  height: 120px;
  object-fit: contain;
}

.affiliate-product-card .product-content {
  padding: 1rem;
}

.affiliate-product-card .product-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.affiliate-product-card .product-description {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.affiliate-product-card .product-price {
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.affiliate-product-card .product-price .original-price {
  color: #9ca3af;
  font-size: 0.8rem;
  text-decoration: line-through;
  margin-right: 0.25rem;
}

.affiliate-product-card .product-price .sale-price,
.affiliate-product-card .product-price .current-price {
  color: #059669;
  font-weight: 600;
}

/* Product Card Styles */
.affiliate-product-card.style-compact {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
}

.affiliate-product-card.style-compact .product-image {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  padding: 0.5rem;
}

.affiliate-product-card.style-compact .product-image img {
  height: 100%;
}

.affiliate-product-card.style-featured {
  border: 2px solid #8b5cf6;
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.15);
}

.affiliate-product-card.style-featured::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #8b5cf6 0%, #06b6d4 100%);
}

/* Product Grid */
.affiliate-product-grid {
  display: grid;
  gap: 1.5rem;
}

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

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

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

@media (max-width: 992px) {
  .affiliate-product-grid.columns-4 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .affiliate-product-grid.columns-3,
  .affiliate-product-grid.columns-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .affiliate-product-grid.columns-2,
  .affiliate-product-grid.columns-3,
  .affiliate-product-grid.columns-4 {
    grid-template-columns: 1fr;
  }
}

/* Affiliate Product Box (Full Review Style) */
.affiliate-product-box {
  position: relative;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(var(--blur-amount));
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--glass-shadow);
  margin: 2rem 0;
}

.affiliate-product-box .product-box-header {
  display: flex;
  gap: 2rem;
  padding: 2rem;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.affiliate-product-box .product-image {
  flex-shrink: 0;
  width: 200px;
}

.affiliate-product-box .product-image img {
  height: auto;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.affiliate-product-box .product-header-info {
  flex: 1;
}

.affiliate-product-box .product-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.affiliate-product-box .product-rating-large {
  font-size: 1.25rem;
}

.affiliate-product-box .product-price-large {
  font-size: 1.5rem;
  margin-top: 1rem;
}

.affiliate-product-box .product-price-large .original-price {
  color: #9ca3af;
  text-decoration: line-through;
  margin-right: 0.5rem;
}

.affiliate-product-box .product-price-large .sale-price {
  color: #16a34a;
  font-weight: 800;
  font-size: 1.75rem;
}

.affiliate-product-box .product-price-large .save-badge {
  display: inline-block;
  background: #dcfce7;
  color: #16a34a;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-left: 0.75rem;
}

.affiliate-product-box .product-description {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid #e5e7eb;
}

.affiliate-product-box .product-pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding: 1.5rem 2rem;
}

.affiliate-product-box .pros h4,
.affiliate-product-box .cons h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.affiliate-product-box .pros ul,
.affiliate-product-box .cons ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.affiliate-product-box .pros ul li,
.affiliate-product-box .cons ul li {
  padding: 0.5rem 0;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.affiliate-product-box .pros ul li i,
.affiliate-product-box .cons ul li i {
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.affiliate-product-box .product-verdict {
  padding: 1.5rem 2rem;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-top: 1px solid #fbbf24;
}

.affiliate-product-box .product-verdict h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #92400e;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.affiliate-product-box .product-verdict p {
  color: #78350f;
  margin: 0;
}

.affiliate-product-box .product-box-footer {
  padding: 1.5rem 2rem;
  text-align: center;
  background: #f9fafb;
  border-top: 1px solid #e5e7eb;
}

.affiliate-product-box .affiliate-disclosure {
  display: block;
  margin-top: 0.75rem;
  color: var(--text-secondary);
  font-size: 0.8rem;
}

@media (max-width: 768px) {
  .affiliate-product-box .product-box-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .affiliate-product-box .product-image {
    width: 150px;
  }
  
  .affiliate-product-box .product-pros-cons {
    grid-template-columns: 1fr;
  }
}

/* Horizontal Product Card (Inline in Content) */
.affiliate-product-horizontal {
  position: relative;
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(var(--blur-amount));
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  margin: 1.5rem 0;
  box-shadow: var(--glass-shadow);
}

.affiliate-product-horizontal img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  flex-shrink: 0;
  background: #f9fafb;
  border-radius: 12px;
  padding: 0.5rem;
}

.affiliate-product-horizontal .product-info {
  flex: 1;
}

.affiliate-product-horizontal .product-info h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.affiliate-product-horizontal .product-info p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.affiliate-product-horizontal .product-price {
  font-size: 1.1rem;
  font-weight: 600;
  color: #16a34a;
  margin-bottom: 0.75rem;
}

@media (max-width: 576px) {
  .affiliate-product-horizontal {
    flex-direction: column;
    text-align: center;
  }
  
  .affiliate-product-horizontal img {
    width: 100px;
    height: 100px;
    margin: 0 auto;
  }
}

/* Compact Product Card */
.affiliate-product-compact {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  margin: 0.75rem 0;
}

.affiliate-product-compact img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  flex-shrink: 0;
}

.affiliate-product-compact .product-info h4 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
}

.affiliate-product-compact .product-info h4 a {
  color: var(--text-primary);
  text-decoration: none;
}

.affiliate-product-compact .product-info h4 a:hover {
  color: var(--text-accent);
}

.affiliate-product-compact .product-price {
  font-size: 0.9rem;
  color: #16a34a;
  font-weight: 600;
}

/* Comparison Table */
.comparison-table-wrap {
  overflow-x: auto;
  margin: 2rem 0;
  border-radius: 16px;
  box-shadow: var(--glass-shadow);
}

.comparison-table {
  background: rgba(255, 255, 255, 0.97);
  border-collapse: collapse;
  min-width: 600px;
}

.comparison-table th,
.comparison-table td {
  padding: 1rem 1.25rem;
  border: 1px solid #e5e7eb;
  vertical-align: middle;
}

.comparison-table thead th {
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
}

.comparison-table tbody tr:hover {
  background: rgba(99, 102, 241, 0.05);
}

.comparison-table .product-cell {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.comparison-table .comparison-thumb {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 8px;
  background: #f9fafb;
}

.comparison-table .comparison-thumb-large {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin: 0.5rem auto;
  display: block;
}

.comparison-table .comparison-pros,
.comparison-table .comparison-cons {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.85rem;
}

.comparison-table .comparison-pros li,
.comparison-table .comparison-cons li {
  padding: 0.25rem 0;
}

/* Collection List Style */
.product-collection .collection-header {
  margin-bottom: 2rem;
  text-align: center;
}

.product-collection .collection-header h3 {
  font-size: 1.75rem;
  font-weight: 800;
  background: linear-gradient(135deg, #8b5cf6 0%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.collection-list .collection-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(var(--blur-amount));
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  margin-bottom: 1rem;
  box-shadow: var(--glass-shadow);
  transition: all 0.3s ease;
}

.collection-list .collection-item:hover {
  transform: translateX(5px);
  box-shadow: 0 10px 30px rgba(31, 38, 135, 0.15);
}

.collection-list .item-number {
  position: absolute;
  top: -10px;
  left: -10px;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  box-shadow: 0 3px 10px rgba(139, 92, 246, 0.3);
}

.collection-list .collection-item img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  flex-shrink: 0;
  background: #f9fafb;
  border-radius: 12px;
  padding: 0.5rem;
}

.collection-list .item-content {
  flex: 1;
}

.collection-list .item-content h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.collection-list .item-content p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.collection-list .item-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.9rem;
}

.collection-list .item-meta .rating {
  color: #f59e0b;
}

.collection-list .item-meta .price {
  color: #16a34a;
  font-weight: 600;
}

@media (max-width: 576px) {
  .collection-list .collection-item {
    flex-direction: column;
    text-align: center;
    padding-top: 2rem;
  }
  
  .collection-list .item-number {
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
  }
  
  .collection-list .item-meta {
    justify-content: center;
  }
}

/* Featured Products Section */
.featured-products {
  margin: 2.5rem 0;
  padding: 2rem;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 50%, #fef9c3 100%);
  border-radius: 20px;
}

.featured-products .featured-title {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: #92400e;
  margin-bottom: 1.5rem;
}

.featured-products .featured-title i {
  color: #f59e0b;
}

.featured-products .featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .featured-products .featured-grid {
    grid-template-columns: 1fr;
  }
}

/* Product Video Embed */
.product-video-embed {
  margin: 2rem 0;
}

.product-video-embed .video-responsive {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: var(--glass-shadow);
}

.product-video-embed .video-responsive iframe {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  border: 0;
}

/* Products Sidebar */
.products-sidebar {
  padding: 1.5rem;
  position: sticky;
  top: 100px;
}

.products-sidebar h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.products-sidebar .category-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.products-sidebar .category-list li {
  margin-bottom: 0.25rem;
}

.products-sidebar .category-list a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 10px;
  transition: all 0.2s ease;
}

.products-sidebar .category-list a:hover,
.products-sidebar .category-list a.active {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  color: #fff;
}

.products-sidebar .category-list a i {
  width: 20px;
  text-align: center;
}

/* Products Header */
.products-header h1 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.products-header h1 i {
  color: var(--text-muted);
  font-size: 1.2rem;
}

.products-header .category-description {
  color: var(--text-secondary);
  margin-top: 0.5rem;
}

/* No Products Found */
.no-products {
  padding: 3rem;
}

.no-products i {
  display: block;
  margin-bottom: 1rem;
}

/* Product Detail Page */
.product-detail-page .product-gallery {
  position: relative;
}

.product-detail-page .product-main-image {
  height: auto;
  border-radius: 16px;
  background: #f9fafb;
  padding: 1.5rem;
  box-shadow: var(--glass-shadow);
}

.product-detail-page .product-thumbnails {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
  justify-content: center;
}

.product-detail-page .product-thumbnails .thumb {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0.25rem;
  background: #fff;
}

.product-detail-page .product-thumbnails .thumb:hover,
.product-detail-page .product-thumbnails .thumb.active {
  border-color: #8b5cf6;
  box-shadow: 0 3px 10px rgba(139, 92, 246, 0.2);
}

.product-detail-page .product-title-large {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.product-detail-page .product-rating-large {
  font-size: 1.25rem;
}

.product-detail-page .product-price-detail {
  font-size: 1.5rem;
}

.product-detail-page .product-price-detail .original-price {
  color: #9ca3af;
  text-decoration: line-through;
  margin-right: 0.75rem;
}

.product-detail-page .product-price-detail .sale-price {
  color: #16a34a;
  font-weight: 800;
  font-size: 1.75rem;
}

.product-detail-page .product-price-detail .current-price {
  color: #16a34a;
  font-weight: 800;
}

.product-detail-page .product-short-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.product-detail-page .affiliate-disclosure-small {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.product-detail-page .detail-section {
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  margin-bottom: 1rem;
  overflow: hidden;
}

.product-detail-page .detail-section h3 {
  font-size: 1rem;
  font-weight: 700;
  padding: 1rem 1.25rem;
  margin: 0;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.product-detail-page .detail-content {
  padding: 1.25rem;
}

.product-detail-page .verdict-section {
  background: linear-gradient(135deg, #fef3c7 0%, #fef9c3 100%);
  border-color: #fbbf24;
}

.product-detail-page .verdict-section h3 {
  background: transparent;
  color: #92400e;
  border-bottom-color: #fbbf24;
}

.product-detail-page .pros-list,
.product-detail-page .cons-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.product-detail-page .pros-list li,
.product-detail-page .cons-list li {
  padding: 0.5rem 0;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.product-detail-page .pros-list li i,
.product-detail-page .cons-list li i {
  margin-top: 0.2rem;
  flex-shrink: 0;
}

/* Collection Page */
.collection-page .collection-header h1 {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #8b5cf6 0%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.collection-page .collection-product-item {
  position: relative;
  margin-bottom: 1.5rem;
  padding: 2rem;
}

.collection-page .product-rank {
  position: absolute;
  top: -15px;
  left: 20px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.collection-page .rank-number {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.25rem;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.collection-page .rank-badge {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #fff;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.collection-page .collection-product-image {
  max-width: 180px;
  height: auto;
  border-radius: 12px;
  background: #f9fafb;
  padding: 0.5rem;
}

.collection-page .product-name {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.collection-page .quick-pros {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0 0;
}

.collection-page .quick-pros li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding: 0.25rem 0;
}

.collection-page .product-price-block {
  font-size: 1.25rem;
}

.collection-page .product-price-block .original-price {
  color: #9ca3af;
  text-decoration: line-through;
  display: block;
  font-size: 1rem;
}

.collection-page .product-price-block .sale-price,
.collection-page .product-price-block .current-price {
  color: #16a34a;
  font-weight: 800;
}

/* Affiliate Link Inline */
.affiliate-link {
  color: var(--text-accent);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid currentColor;
  transition: all 0.2s ease;
}

.affiliate-link:hover {
  color: #8b5cf6;
  border-bottom-color: transparent;
}

/* Affiliate Disclosure Notice (In-Post - ASA Compliant) */
.affiliate-disclosure-notice {
  background: linear-gradient(135deg, #fff5f5 0%, #fef2f2 100%);
  border-left: 4px solid var(--warm-peach, #b8a9c9);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  border-radius: 0 12px 12px 0;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: #78350f;
}

.affiliate-disclosure-notice i {
  color: var(--warm-peach, #b8a9c9);
  font-size: 1.1rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.affiliate-disclosure-notice a {
  color: var(--warm-lavender, #9b8aa5);
  font-weight: 600;
  text-decoration: underline;
}

.affiliate-disclosure-notice a:hover {
  color: var(--warm-peach, #b8a9c9);
}

/* Affiliate Disclosure Banner */
.affiliate-disclosure-banner {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  padding: 1rem 1.5rem;
  border-radius: 12px;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: #78350f;
}

.affiliate-disclosure-banner i {
  color: #f59e0b;
  font-size: 1.25rem;
}

/* =====================================================
   AUTH PAGES - Login & Register
   Warm, friendly design for account pages
   ===================================================== */

.auth-page {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  max-width: 900px;
  margin: 0 auto;
  padding: 1rem 0;
}

.auth-card {
  flex: 1;
  background: var(--glass-bg, rgba(255, 253, 250, 0.95));
  border-radius: 24px;
  box-shadow: 0 10px 40px rgba(200, 141, 158, 0.15);
  overflow: hidden;
  border: 1px solid var(--glass-border, rgba(232, 168, 124, 0.2));
}

.auth-header {
  background: linear-gradient(135deg, #b8a9c9 0%, #9b8aa5 100%);
  padding: 2rem;
  text-align: center;
  color: white;
}

.auth-icon {
  width: 70px;
  height: 70px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.75rem;
}

.auth-header h1 {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.auth-header p {
  margin: 0;
  opacity: 0.95;
  font-size: 0.95rem;
}

.auth-body {
  padding: 2rem;
}

.auth-form-group {
  margin-bottom: 1.25rem;
}

.auth-form-group label {
  display: block;
  font-weight: 600;
  color: var(--text-primary, #4a3f35);
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.auth-form-group label i {
  color: var(--warm-peach, #b8a9c9);
  margin-right: 6px;
}

.auth-form-group input[type="text"],
.auth-form-group input[type="email"],
.auth-form-group input[type="password"] {
  padding: 12px 16px;
  border: 2px solid #eee;
  border-radius: 12px;
  font-size: 1rem;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  transition: all 0.2s ease;
  background: #fff;
}

.auth-form-group input:focus {
  outline: none;
  border-color: var(--warm-peach, #b8a9c9);
  box-shadow: 0 0 0 3px rgba(232, 168, 124, 0.15);
}

.auth-form-group input::placeholder {
  color: #bbb;
}

.auth-help {
  display: block;
  font-size: 0.8rem;
  color: var(--text-secondary, #6b5b4f);
  margin-top: 0.35rem;
}

.auth-error {
  color: #e74c3c;
  font-size: 0.85rem;
  margin-top: 0.35rem;
  display: flex;
  align-items: center;
  gap: 4px;
}

.auth-error::before {
  content: '\f06a';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
}

.auth-alert {
  background: #fee2e2;
  color: #dc2626;
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.auth-divider {
  display: flex;
  align-items: center;
  margin: 1.5rem 0;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, #ddd, transparent);
}

.auth-divider span {
  padding: 0 1rem;
  color: var(--text-secondary, #6b5b4f);
  font-size: 0.85rem;
  font-weight: 600;
}

.auth-divider span i {
  margin-right: 6px;
  color: var(--warm-lavender, #9b8aa5);
}

.auth-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 1rem;
  cursor: pointer;
}

.auth-checkbox input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--warm-peach, #b8a9c9);
  cursor: pointer;
  flex-shrink: 0;
}

.auth-checkbox label {
  font-size: 0.9rem;
  color: var(--text-secondary, #6b5b4f);
  line-height: 1.5;
  cursor: pointer;
}

.auth-checkbox label a {
  color: var(--warm-lavender, #9b8aa5);
  font-weight: 600;
  text-decoration: underline;
}

.auth-checkbox label a:hover {
  color: var(--warm-peach, #b8a9c9);
}

.auth-checkbox label .required {
  color: #e74c3c;
  font-weight: 700;
}

.auth-checkbox label i {
  color: var(--warm-peach, #b8a9c9);
}

.auth-btn {
  padding: 14px 24px;
  background: linear-gradient(135deg, #b8a9c9 0%, #9b8aa5 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1.05rem;
  font-weight: 700;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 1.5rem;
  box-shadow: 0 4px 15px rgba(232, 168, 124, 0.3);
}

.auth-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(232, 168, 124, 0.4);
}

.auth-btn:active {
  transform: translateY(0);
}

.auth-link-center {
  text-align: center;
  margin-top: 1rem;
}

.auth-link-center a {
  color: var(--text-secondary, #6b5b4f);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.auth-link-center a:hover {
  color: var(--warm-lavender, #9b8aa5);
}

.auth-link-center a i {
  margin-right: 4px;
}

.auth-footer {
  background: #faf8f5;
  padding: 1.25rem 2rem;
  text-align: center;
  border-top: 1px solid #eee;
}

.auth-footer p {
  margin: 0;
  color: var(--text-secondary, #6b5b4f);
  font-size: 0.95rem;
}

.auth-footer a {
  color: var(--warm-lavender, #9b8aa5);
  font-weight: 600;
  text-decoration: none;
  margin-left: 4px;
}

.auth-footer a:hover {
  color: var(--warm-peach, #b8a9c9);
  text-decoration: underline;
}

/* Auth Features Sidebar */
.auth-features {
  width: 280px;
  background: linear-gradient(135deg, rgba(232, 168, 124, 0.08) 0%, rgba(195, 141, 158, 0.08) 100%);
  border-radius: 20px;
  padding: 1.75rem;
  border: 1px solid rgba(232, 168, 124, 0.15);
}

.auth-features h3 {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary, #4a3f35);
  margin: 0 0 1.25rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.auth-features h3 i {
  color: var(--warm-peach, #b8a9c9);
}

.auth-features ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.auth-features ul li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.65rem 0;
  color: var(--text-secondary, #6b5b4f);
  font-size: 0.9rem;
  border-bottom: 1px dashed rgba(232, 168, 124, 0.2);
}

.auth-features ul li:last-child {
  border-bottom: none;
}

.auth-features ul li i {
  color: var(--mint, #a8e6cf);
  font-size: 1rem;
}

/* Auth Pages Responsive */
@media (max-width: 768px) {
  .auth-page {
    flex-direction: column;
    padding: 0.5rem;
  }
  
  .auth-card {
  }
  
  .auth-features {
    order: 2;
  }
  
  .auth-header {
    padding: 1.5rem;
  }
  
  .auth-header h1 {
    font-size: 1.5rem;
  }
  
  .auth-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
  
  .auth-body {
    padding: 1.5rem;
  }
  
  .auth-form-group input[type="text"],
  .auth-form-group input[type="email"],
  .auth-form-group input[type="password"] {
    padding: 10px 14px;
  }
  
  .auth-btn {
    padding: 12px 20px;
  }
}

/* =====================================================
   MOBILE HOME PAGE FIXES
   ===================================================== */

/* Mobile container padding */
@media (max-width: 768px) {
  main.container {
    padding-left: 12px;
    padding-right: 12px;
  }
  
  /* Hero banner mobile */
  .hero-banner {
    margin-left: -12px;
    margin-right: -12px;
    width: calc(100% + 24px);
    border-radius: 0;
  }
  
  .hero-content {
    padding: 1.5rem 1rem;
  }
  
  .hero-subtitle {
    font-size: 0.9rem;
    padding: 0 0.5rem;
  }
  
  /* Featured posts grid - single column on mobile */
  .featured-section .row {
    margin: 0 -6px;
  }
  
  .featured-section .col-md-4 {
    padding: 0 6px;
  }
  
  .featured-section .card {
    margin-bottom: 12px;
  }
  
  .featured-card .card-img-top {
    height: 150px;
    object-fit: cover;
  }
  
  .featured-card .card-body {
    padding: 0.75rem;
  }
  
  .featured-card .card-title {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
  }
  
  /* Article cards - full width, better spacing */
  .article-card {
    margin-bottom: 1rem;
    border-radius: 12px;
  }
  
  .article-card-image {
  }
  
  .article-card-body {
    padding: 1rem;
  }
  
  .article-card-meta {
    flex-wrap: wrap;
    gap: 0.25rem;
    font-size: 0.8rem;
  }
  
  .author-avatar {
    width: 24px;
    height: 24px;
  }
  
  .article-card-title {
    font-size: 1.05rem;
    line-height: 1.35;
  }
  
  .article-card-excerpt {
    font-size: 0.9rem;
    line-height: 1.5;
    -webkit-line-clamp: 3;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  
  /* Section headings */
  .section-heading {
    font-size: 1.1rem;
    padding-left: 0;
  }
  
  /* Sidebar on mobile - full width, collapsible look */
  .col-md-4 {
    margin-top: 2rem;
  }
  
  .sidebar {
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1rem;
  }
  
  .sidebar h3 {
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
  }
  
  /* Category list mobile */
  .category-list .parent-category {
    padding: 0.5rem 0;
  }
  
  .category-list .parent-link {
    font-size: 0.9rem;
  }
  
  .subcategory-list {
    padding-left: 1rem;
  }
  
  .subcategory-list li a {
    font-size: 0.85rem;
    padding: 0.25rem 0;
  }
  
  /* Newsletter form mobile */
  .sidebar .form-control {
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
  }
  
  .sidebar .btn {
    margin-top: 0.5rem;
  }
  
  /* Pagination mobile */
  .pagination {
    flex-wrap: wrap;
    gap: 0.25rem;
  }
  
  .pagination .page-link {
    padding: 0.4rem 0.7rem;
    font-size: 0.85rem;
  }
}

/* Extra small devices (phones, 480px and below) */
@media (max-width: 480px) {
  main.container {
    padding-left: 8px;
    padding-right: 8px;
  }
  
  .hero-banner {
    height: 240px;
    margin-left: -8px;
    margin-right: -8px;
    width: calc(100% + 16px);
  }
  
  .hero-logo {
    max-width: 140px;
  }
  
  .hero-subtitle {
    font-size: 0.8rem;
    margin-bottom: 1rem;
  }
  
  .hero-cta {
    gap: 0.5rem;
  }
  
  .btn-hero-primary,
  .btn-hero-secondary {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    max-width: 180px;
  }
  
  /* Featured section heading */
  .featured-section h4 {
    font-size: 1rem;
  }
  
  /* Article card image smaller */
  .article-card-image {
  }
  
  .article-card-body {
    padding: 0.875rem;
  }
  
  .article-card-title {
    font-size: 1rem;
  }
  
  .article-card-excerpt {
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
  }
  
  .read-more-link {
    font-size: 0.85rem;
  }
  
  /* Hide some meta on very small screens */
  .meta-dot,
  .post-date {
    display: none;
  }
}

/* Fix navbar on mobile */
@media (max-width: 768px) {
  .navbar-collapse {
    background: rgba(248, 245, 252, 0.98);
    padding: 1rem;
    border-radius: 12px;
    margin-top: 0.5rem;
    box-shadow: 0 4px 20px rgba(155, 133, 176, 0.15);
  }
  
  .navbar-nav {
    gap: 0.25rem;
  }
  
  .navbar-nav .nav-link {
    padding: 0.6rem 1rem !important;
    border-radius: 8px;
  }
  
  .navbar-nav .nav-link:hover {
    background: rgba(155, 133, 176, 0.15);
  }
  
  .navbar-toggler {
    border: none;
    padding: 0.5rem;
  }
  
  .navbar-toggler:focus {
    box-shadow: none;
  }
}

/* Touch-friendly tap targets */
@media (max-width: 768px) {
  a, button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  
  .article-card-title a,
  .featured-card .card-title a {
    display: block;
    min-height: auto;
  }
  
  .read-more-link {
    min-height: 44px;
  }
  
  .category-list a {
    min-height: 40px;
    display: flex;
    align-items: center;
  }
}

/* =====================================================
   CATEGORY PAGE MOBILE FIXES
   ===================================================== */

/* Category header */
.category-header {
  text-align: center;
  padding: 1.5rem 0;
}

.category-header h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.category-header h2 i {
  color: var(--text-accent, #9b8aa5);
}

/* Subcategory cards grid */
.subcategories-section {
  margin-bottom: 2rem;
}

.subcategory-card {
  padding: 1.5rem;
  text-align: center;
  border-radius: 16px;
  transition: all 0.2s ease;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid var(--glass-border);
}

.subcategory-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.subcategory-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #b8a9c9 0%, #9b8aa5 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: white;
}

.subcategory-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.subcategory-desc {
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

/* =====================================================
   TOPIC GRID - Improved "Browse by Topic" Design
   ===================================================== */

.topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.topic-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--glass-bg, rgba(255, 253, 250, 0.95));
  border: 1px solid var(--glass-border, rgba(232, 168, 124, 0.2));
  border-radius: 14px;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.topic-card:hover {
  transform: translateX(6px);
  border-color: var(--text-accent, #9b8aa5);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  text-decoration: none;
}

.topic-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #b8a9c9 0%, #9b8aa5 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.topic-icon i {
  color: white;
  font-size: 1.25rem;
}

.topic-info {
  flex: 1;
  min-width: 0;
}

.topic-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary, #4a3f35);
  margin: 0 0 0.25rem 0;
  line-height: 1.3;
}

.topic-card:hover .topic-title {
  color: var(--text-accent, #9b8aa5);
}

.topic-count {
  font-size: 0.8rem;
  color: var(--text-secondary, #6b5b4f);
}

.topic-arrow {
  color: var(--text-secondary, #6b5b4f);
  opacity: 0.4;
  font-size: 0.85rem;
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.topic-card:hover .topic-arrow {
  opacity: 1;
  color: var(--text-accent, #9b8aa5);
  transform: translateX(4px);
}

/* Topic Grid Mobile */
@media (max-width: 768px) {
  .topic-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  .topic-card {
    padding: 0.875rem 1rem;
  }
  
  .topic-icon {
    width: 42px;
    height: 42px;
  }
  
  .topic-icon i {
    font-size: 1.1rem;
  }
  
  .topic-title {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .topic-card {
    padding: 0.75rem;
    gap: 0.75rem;
  }
  
  .topic-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }
  
  .topic-icon i {
    font-size: 1rem;
  }
  
  .topic-title {
    font-size: 0.9rem;
  }
  
  .topic-count {
    font-size: 0.75rem;
  }
}

/* Topic Grid Dark Mode */
/* Dark Theme (toggle-based) */
@media (prefers-color-scheme: dark) {
  .topic-card {
    background: rgba(30, 41, 59, 0.95);
    border-color: rgba(255, 255, 255, 0.1);
  }

  .topic-card:hover {
    border-color: #f0abfc;
    background: rgba(51, 65, 85, 0.95);
  }

  .topic-icon {
    background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
  }

  .topic-title {
    color: #f1f5f9;
  }

  .topic-card:hover .topic-title {
    color: #f0abfc;
  }

  .topic-count {
    color: #94a3b8;
  }

  .topic-arrow {
    color: #64748b;
  }

  .topic-card:hover .topic-arrow {
    color: #f0abfc;
  }
}



/* Section titles */
.section-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
}

.section-title i {
  color: var(--text-accent, #9b8aa5);
}

/* Category page mobile responsive */
@media (max-width: 768px) {
  .category-header {
    padding: 1rem 0;
  }
  
  .category-header h2 {
    font-size: 1.4rem;
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .category-header h2 i {
    font-size: 1.5rem;
  }
  
  .subcategories-section .row {
    margin: 0 -6px;
  }
  
  .subcategories-section .col-md-6,
  .subcategories-section .col-lg-4 {
    padding: 0 6px;
  }
  
  .subcategory-card {
    padding: 1rem;
    margin-bottom: 12px;
  }
  
  .subcategory-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 0.75rem;
  }
  
  .subcategory-icon i {
    font-size: 1.25rem !important;
  }
  
  .subcategory-title {
    font-size: 1rem;
  }
  
  .subcategory-desc {
    font-size: 0.85rem;
    display: none; /* Hide on mobile for cleaner look */
  }
  
  /* Stack post cards vertically on mobile */
  .post-card-inner {
    flex-direction: column;
  }
  
  .post-card-image { /* removed fixed height - using aspect-ratio */
  }
  
  .post-card-content {
    padding: 1rem;
  }
  
  .post-card-title {
    font-size: 1rem;
  }
  
  .post-card-excerpt {
    font-size: 0.85rem;
    -webkit-line-clamp: 3;
  }
  
  .section-title {
    font-size: 1.1rem;
  }
  
  /* Better spacing for no-posts message */
  .content-section.text-center {
    padding: 2rem 1rem !important;
  }
}

@media (max-width: 480px) {
  .category-header h2 {
    font-size: 1.25rem;
  }
  
  .subcategory-card {
    padding: 0.875rem;
  }
  
  .subcategory-icon {
    width: 45px;
    height: 45px;
  }
  
  .subcategory-title {
    font-size: 0.95rem;
  }
  
  .post-card-image { /* removed fixed height - using aspect-ratio */
  }
  
  .post-card-content {
    padding: 0.875rem;
  }
  
  .post-card-title {
    font-size: 0.95rem;
  }
  
  .post-card-excerpt {
    font-size: 0.8rem;
  }
  
  .post-category-badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
  }
}


/* Image Placeholder Styles for AI-generated content */
.image-placeholder {
    background: linear-gradient(135deg, #fef9f5 0%, #e8e0f0 100%) !important;
    padding: 30px !important;
    text-align: center !important;
    border: 2px dashed #b8a9c9 !important;
    border-radius: 12px !important;
    margin: 25px 0 !important;
    transition: all 0.3s ease;
}

.image-placeholder:hover {
    border-color: #f27121;
    background: linear-gradient(135deg, #fff5eb 0%, #e8e0f0 100%) !important;
}

/* Hide placeholders on published pages (optional - remove if you want them visible as reminders) */
/* .post-content .image-placeholder { display: none; } */


/* DARK MODE CARD FIX - Force dark backgrounds */
/* Dark Theme (toggle-based) */
/* Force all cards to dark blue */
@media (prefers-color-scheme: dark) {
  .content-section,
  .sidebar,
  .card,
  article.content-section,
  .featured-post,
  .post-card,
  .article-card {
    background: #1e293b !important;
    background-color: #1e293b !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
  }

  /* Body background */
  body {
    background: #0f172a !important;
    background-color: #0f172a !important;
  }

  /* Sidebar Category Panel */
  .category-list .parent-link {
    background: rgba(51, 65, 85, 0.6) !important;
    color: #e2e8f0 !important;
    border: 1px solid rgba(148, 163, 184, 0.2);
  }

  .category-list .parent-link:hover {
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.2), rgba(236, 72, 153, 0.2)) !important;
    color: #f0abfc !important;
  }

  .category-list .parent-link i {
    color: #a78bfa !important;
  }

  .category-list .subcategory-count {
    background: rgba(139, 92, 246, 0.2) !important;
    color: #c4b5fd !important;
  }

  .subcategory-list {
    border-left-color: rgba(139, 92, 246, 0.4) !important;
  }

  .subcategory-list a {
    color: #94a3b8 !important;
  }

  .subcategory-list a:hover {
    color: #f0abfc !important;
  }

  .subcategory-list a i {
    color: #a78bfa !important;
  }

  /* Sidebar headings */
  .sidebar h3 {
    color: #f1f5f9 !important;
  }

  .sidebar h3 i {
    color: #a78bfa !important;
  }

  /* Category Header Card */
  .category-header {
    background: rgba(28, 24, 40, 0.95) !important;
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid rgba(139, 92, 246, 0.2) !important;
  }

  .category-header h2 {
    color: #f0abfc !important;
  }

  .category-header h2 i {
    color: #a78bfa !important;
  }

  .category-header p,
  .category-header .text-muted {
    color: #e2e8f0 !important;
  }

  /* Topic Cards (Explore Topics) */
  .topic-card {
    background: rgba(28, 24, 40, 0.95) !important;
    border: 1px solid rgba(139, 92, 246, 0.2) !important;
  }

  .topic-card:hover {
    background: rgba(51, 65, 85, 0.95) !important;
    border-color: rgba(168, 139, 250, 0.4) !important;
  }

  .topic-icon {
    background: rgba(139, 92, 246, 0.2) !important;
    color: #a78bfa !important;
  }

  .topic-title {
    color: #f1f5f9 !important;
  }

  .topic-count {
    color: #94a3b8 !important;
  }

  .topic-arrow {
    color: #64748b !important;
  }

  .topic-card:hover .topic-arrow {
    color: #a78bfa !important;
  }

  /* Section Titles */
  .section-title {
    color: #f1f5f9 !important;
  }

  .section-title i {
    color: #a78bfa !important;
  }

  /* Hero banner */
  .hero-banner {
    background: linear-gradient(135deg, #334155 0%, #475569 50%, #334155 100%) !important;
  }
}

/* =====================================================
   CONTRAST FIX - Softer, Eye-Friendly Lavender Theme
   ===================================================== */

/* Softer background - less intense */
body {
  min-height: 100vh;
  margin-top: 5rem;
  background: 
    linear-gradient(165deg, 
      rgba(252, 250, 255, 0.98) 0%, 
      rgba(248, 245, 252, 0.95) 30%,
      rgba(245, 242, 250, 0.92) 60%, 
      rgba(250, 248, 255, 0.95) 100%);
  background-attachment: fixed;
  color: #3d3545;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

/* Softer navbar */
.bg-steel {
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(184, 169, 201, 0.2);
  box-shadow: 0 2px 20px rgba(155, 138, 180, 0.08);
}

/* Softer cards */
.content-section {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 28px 32px;
  border: 1px solid rgba(184, 169, 201, 0.15);
  border-radius: 20px;
  margin-bottom: 24px;
  box-shadow: 0 4px 20px rgba(155, 138, 180, 0.08);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.content-section:hover {
  box-shadow: 0 8px 30px rgba(155, 138, 180, 0.12);
  transform: translateY(-2px);
}

/* Hero banner - softer lavender */
.hero-banner {
  position: relative;
  width: 100%;
  min-height: 420px;
  background: linear-gradient(135deg, #e8e0f5 0%, #f0eaf8 50%, #f8f5fc 100%);
  border-radius: 1.5rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(184, 169, 201, 0.2);
  box-shadow: 0 8px 32px rgba(155, 138, 180, 0.1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, 
    rgba(255, 255, 255, 0.4) 0%, 
    rgba(255, 255, 255, 0.6) 100%);
}

.hero-subtitle {
  font-size: 1.1rem;
  color: #4a4055;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* Fix hero buttons - better contrast */
.btn-hero-primary {
  background: linear-gradient(135deg, #7c6f9c 0%, #9585b5 100%);
  color: #fff;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(124, 111, 156, 0.35);
}

.btn-hero-primary:hover {
  background: linear-gradient(135deg, #6b5e8a 0%, #8474a5 100%);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(124, 111, 156, 0.45);
}

/* About Us button - much better contrast */
.btn-hero-secondary {
  background: #5a4a6a;
  color: #fff;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(90, 74, 106, 0.25);
}

.btn-hero-secondary:hover {
  background: #4a3a5a;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(90, 74, 106, 0.35);
}

/* Nav links - better readability */
.site-header .navbar-nav .nav-link {
  color: #4a4055;
  font-weight: 500;
  padding: 0.6rem 1.2rem;
  border-radius: 25px;
  transition: all 0.3s ease;
}

.site-header .navbar-nav .nav-link:hover {
  background: rgba(184, 169, 201, 0.2);
  color: #3d2d4d;
}

.site-header .navbar-nav .nav-link.active {
  background: rgba(184, 169, 201, 0.3);
  color: #3d2d4d;
  font-weight: 600;
}

/* Navbar brand */
.navbar-brand {
  color: #3d3545 !important;
}

/* Sidebar - cleaner look */
.sidebar {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(184, 169, 201, 0.15);
}

/* Featured section */
.featured-section {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(184, 169, 201, 0.15);
}

/* Post cards */
.post-card {
  background: rgba(255, 255, 255, 0.98);
}

/* Footer */
.site-footer {
  background: rgba(255, 255, 255, 0.95) !important;
  border-top: 1px solid rgba(184, 169, 201, 0.15);
}


/* Subcategory fixes - remove peachy colors */
.subcategory-list a i {
  font-size: 0.65rem;
  color: #9585b5;
}

.subcategory-card {
  padding: 1.75rem;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 1px solid rgba(184, 169, 201, 0.2);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.95);
}

.subcategory-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(155, 138, 180, 0.15);
  border-color: #b8a9c9;
  background: rgba(248, 245, 252, 0.98);
}

.subcategory-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #e8e0f5 0%, #f0eaf8 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.5rem;
  color: #7c6f9c;
}

.subcategory-card:hover .subcategory-icon {
  background: linear-gradient(135deg, #d8cce8 0%, #e8e0f5 100%);
}


/* Post Content - Better readability */
.post-content {
  font-size: 1.125rem !important;
  line-height: 1.85 !important;
  color: #3d3545;
}

.post-content p {
  font-size: 1.125rem !important;
  line-height: 1.85 !important;
  margin-bottom: 1.5rem;
}

.post-content > p:first-of-type {
  font-size: 1.2rem !important;
}

/* Article content on listing pages */
.article-content {
  font-size: 1rem !important;
  line-height: 1.75;
  color: #4a4055;
}

.article-content p {
  font-size: 1rem !important;
}

/* Mobile - still readable */
@media (max-width: 768px) {
  .post-content,
  .post-content p {
    font-size: 1.05rem !important;
    line-height: 1.8 !important;
  }
  
  .post-content > p:first-of-type {
    font-size: 1.1rem !important;
  }
  
  .article-content,
  .article-content p {
    font-size: 0.95rem !important;
  }
}


/* Mobile Post Content - Proper alignment */
@media (max-width: 768px) {
  .post-content {
    text-align: left !important;
    padding: 0 0.5rem;
  }
  
  .post-content p {
    text-align: left !important;
    margin-bottom: 1.25rem;
  }
  
  .post-content h2,
  .post-content h3,
  .post-content h4 {
    text-align: left !important;
  }
  
  .post-content h2 {
    font-size: 1.35rem !important;
  }
  
  .post-content h3 {
    font-size: 1.2rem !important;
  }
  
  .post-content h4 {
    font-size: 1.1rem !important;
  }
  
  .post-content ul,
  .post-content ol {
    text-align: left !important;
    padding-left: 1.5rem;
  }
  
  .post-content li {
    text-align: left !important;
    margin-bottom: 0.5rem;
  }
}
/* =====================================================
   CLEAN LAVENDER THEME - Warm & Pleasant Reading
   Homogenized typography and spacing
   ===================================================== */

/* ===== GLOBAL OVERRIDES ===== */

:root {
  /* Warm lavender palette */
  --primary: #9585b0;
  --primary-light: #b8a9c9;
  --primary-dark: #7a6a95;
  --accent: #a898b8;
  
  /* Warm neutrals for readability */
  --text-dark: #3d3545;
  --text-medium: #5a5063;
  --text-light: #7a7085;
  
  /* Soft backgrounds */
  --bg-white: rgba(255, 255, 255, 0.95);
}

/* =====================================================
   THEME OVERRIDES - Lavender Theme (Consolidated)
   ===================================================== */

/* === COLOR VARIABLES === */
:root {
  --primary: #9585b0;
  --primary-light: #b8a9c9;
  --primary-dark: #7a6a95;
  --text-dark: #2d2835;
  --text-medium: #3a3445;
  --text-light: #5a5268;
  --bg-white: rgba(255, 255, 255, 0.95);
  --bg-lavender: rgba(248, 245, 252, 0.98);
}

/* === BODY === */
body {
  background: linear-gradient(165deg, #fcfafd 0%, #f8f5fb 30%, #f5f2f9 60%, #faf8fc 100%) !important;
  background-attachment: fixed !important;
  color: var(--text-dark) !important;
}

/* === NAVBAR === */
.bg-steel {
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border-bottom: 1px solid rgba(155, 133, 176, 0.15) !important;
  box-shadow: 0 2px 20px rgba(155, 133, 176, 0.08) !important;
}

.navbar-brand { color: var(--text-dark) !important; }

.site-header .navbar-nav .nav-link {
  color: var(--text-medium) !important;
  font-weight: 500;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.site-header .navbar-nav .nav-link:hover {
  background: rgba(155, 133, 176, 0.12);
  color: var(--primary-dark) !important;
}

/* === CONTENT SECTIONS === */
.content-section {
  background: var(--bg-white) !important;
  border: 1px solid rgba(155, 133, 176, 0.12) !important;
  border-radius: 16px !important;
  box-shadow: 0 4px 16px rgba(155, 133, 176, 0.06) !important;
}

/* === HERO === */
.hero-banner {
  background: linear-gradient(135deg, #f0eaf8 0%, #f8f5fc 50%, #fdfcfe 100%) !important;
  border: 1px solid rgba(155, 133, 176, 0.15) !important;
  border-radius: 20px;
}

@media (max-width: 768px) {
  .hero-banner {
    border-radius: 0 !important;
    margin-left: -12px !important;
    margin-right: -12px !important;
    width: calc(100% + 24px) !important;
  }
}

.hero-title { color: var(--text-dark) !important; }
.hero-subtitle { color: var(--text-medium) !important; }

.btn-hero-primary {
  background: linear-gradient(135deg, #9585b0 0%, #a898b8 100%) !important;
  color: #fff !important;
  border: none !important;
  box-shadow: 0 4px 15px rgba(149, 133, 176, 0.35) !important;
}

.btn-hero-secondary {
  background: #5a4a6a !important;
  color: #fff !important;
  border: none !important;
}

/* === POST CONTENT === */
.post-content { color: var(--text-dark) !important; font-size: 1.125rem !important; line-height: 1.85 !important; }
.post-content p { color: var(--text-dark) !important; font-size: 1.125rem !important; line-height: 1.85 !important; text-align: left !important; }
.post-content h2, .post-content h3, .post-content h4 { color: #1f1a28 !important; }
.post-content a { color: #5a4a70 !important; }
.post-content a:hover { color: #3d2d50 !important; }
.post-content > p:first-of-type { font-size: 1.2rem !important; }
.post-content > p:first-of-type::first-letter { color: var(--primary) !important; -webkit-text-fill-color: var(--primary) !important; background: none !important; }

/* === ARTICLE CARDS === */
.article-content { color: var(--text-medium) !important; font-size: 1rem !important; }
.article-title a { color: var(--text-dark) !important; }
.article-title a:hover { color: var(--primary) !important; }

/* === SIDEBAR === */
.sidebar { background: var(--bg-white) !important; border: 1px solid rgba(155, 133, 176, 0.12) !important; border-radius: 16px !important; }
.sidebar, .sidebar p, .sidebar li, .sidebar a { color: var(--text-medium) !important; }
.category-list li a, .subcategory-list a { color: var(--text-medium) !important; }
.category-list li a:hover, .subcategory-list a:hover { color: var(--primary) !important; }
.subcategory-list a i { color: var(--primary-light) !important; }
.subcategory-card { background: rgba(255, 255, 255, 0.95) !important; border: 1px solid rgba(184, 169, 201, 0.2) !important; }
.subcategory-card:hover { border-color: #b8a9c9 !important; background: rgba(248, 245, 252, 0.98) !important; }

/* === FOOTER (light mode only) === */
@media (prefers-color-scheme: light) {
  .site-footer { background: var(--bg-white) !important; border-top: 1px solid rgba(155, 133, 176, 0.12) !important; }
  .site-footer, .site-footer p, .site-footer a { color: var(--text-medium) !important; }
  .site-footer a:hover { color: var(--primary) !important; }
}

/* === LINKS === */
a { color: #5a4a70 !important; }
a:hover { color: #3d2d50 !important; }

/* === MOBILE === */
@media (max-width: 768px) {
  .post-content, .post-content p { font-size: 1.05rem !important; line-height: 1.8 !important; text-align: left !important; }
  .post-content > p:first-of-type { font-size: 1.1rem !important; }
  .post-content h2 { font-size: 1.35rem !important; }
  .post-content h3 { font-size: 1.2rem !important; }
  .article-content { font-size: 0.95rem !important; }
}

/* === DARK MODE === */
/* Dark Theme - Consistent contrast with light mode */
@media (prefers-color-scheme: dark) {
  body { 
    color: #f5f3f8 !important; 
    background: #1a1520 !important; 
  }
  
  p, li, td, th, span { 
    color: #f5f3f8 !important; 
  }
  
  .post-content,
  .post-content p,
  .post-content li { 
    color: #f8f6fa !important; 
  }
  
  h1, h2, h3, h4, h5, h6,
  .post-content h2,
  .post-content h3,
  .post-content h4 { 
    color: #ffffff !important; 
  }
  
  .content-section,
  .sidebar { 
    background: rgba(32, 28, 45, 0.95) !important; 
    border-color: rgba(155, 133, 176, 0.3) !important; 
  }
  
  .bg-steel { 
    background: rgba(30, 25, 40, 0.98) !important; 
    border-color: rgba(155, 133, 176, 0.25) !important; 
  }
  
  .navbar-brand { 
    color: #ffffff !important; 
  }
  
  .site-header .navbar-nav .nav-link { 
    color: #f5f3f8 !important; 
  }
  
  .site-header .navbar-nav .nav-link:hover { 
    color: #ffffff !important; 
    background: rgba(155, 133, 176, 0.25) !important; 
  }
  
  .sidebar,
  .sidebar p,
  .sidebar li,
  .sidebar a,
  .sidebar h3,
  .sidebar h4 { 
    color: #f5f3f8 !important; 
  }
  
  .category-list li a,
  .subcategory-list a { 
    color: #e8e0f0 !important; 
  }
  
  .category-list li a:hover,
  .subcategory-list a:hover { 
    color: #ffffff !important; 
  }
  
  .site-footer { 
    background: rgba(30, 25, 40, 0.98) !important; 
    border-color: rgba(155, 133, 176, 0.25) !important; 
  }
  
  .site-footer,
  .site-footer p,
  .site-footer a,
  .site-footer h4 { 
    color: #e8e0f0 !important; 
  }
  
  a,
  .post-content a { 
    color: #d8c8f0 !important; 
  }
  
  a:hover,
  .post-content a:hover { 
    color: #f0e8ff !important; 
  }
  
  .hero-banner { 
    background: linear-gradient(135deg, #2a2535 0%, #352d45 50%, #2a2535 100%) !important; 
  }
  
  .hero-title { 
    color: #ffffff !important; 
  }
  
  /* Improved hero subtitle contrast - matching light mode ratio */
  .hero-subtitle { 
    color: #f0eaf8 !important; 
  }
  
  .article-title a { 
    color: #f5f3f8 !important; 
  }
  
  .btn-hero-primary { 
    background: linear-gradient(135deg, #8070a0 0%, #9585b5 100%) !important; 
    color: #ffffff !important;
  }
  
  .btn-hero-secondary { 
    background: #6a5a80 !important; 
    color: #ffffff !important;
  }
  
  .post-content > p:first-of-type::first-letter { 
    color: #d8c8f0 !important; 
    -webkit-text-fill-color: #d8c8f0 !important; 
  }
  
  input,
  textarea,
  select { 
    background: rgba(40, 35, 50, 0.95) !important; 
    color: #f5f3f8 !important; 
    border-color: rgba(155, 133, 176, 0.35) !important; 
  }
  
  .post-content blockquote { 
    background: rgba(45, 40, 60, 0.7) !important; 
    color: #f5f3f8 !important; 
  }
  
  .back-to-top,
  #back-to-top,
  .btn-back-to-top,
  [class*="back-to-top"],
  [class*="scroll-top"] {
    background: linear-gradient(135deg, #6a5a80 0%, #8070a0 100%) !important;
    color: #f5f2f8 !important;
    border: 1px solid rgba(155, 133, 176, 0.35) !important;
  }
}



/* === DARK MODE - About Page Fix === */
@media (prefers-color-scheme: dark) {
  /* About page lead text */
  .about-page .lead {
    color: #f0edf5 !important;
  }
  
  /* Approach grid items */
  .approach-item {
    background: linear-gradient(135deg, rgba(50, 45, 65, 0.8) 0%, rgba(60, 50, 75, 0.8) 100%) !important;
    border-left-color: #9585b5 !important;
  }
  
  .approach-icon {
    color: #b8a9c9 !important;
  }
  
  .approach-content strong {
    color: #f5f2f8 !important;
  }
  
  .approach-content p {
    color: #f0edf5 !important;
  }
  
  /* Email link button */
  .email-link {
    background: linear-gradient(135deg, #8070a0 0%, #9585b5 100%) !important;
    color: #fff !important;
  }
  
  .email-link:hover {
    box-shadow: 0 4px 15px rgba(128, 112, 160, 0.4) !important;
  }
  
  /* Contact options text */
  .contact-options .text-muted {
    color: #a8a0b5 !important;
  }
  
  /* Text colors on about page */
  .about-page p,
  .about-page li {
    color: #f0edf5 !important;
  }
  
  .about-page h4 {
    color: #ffffff !important;
  }
  
  .about-page strong {
    color: #f0ecf5 !important;
  }
  
  /* Icons */
  .about-page .fas,
  .about-page .far,
  .about-page i {
    color: #b8a9c9 !important;
  }
  
  .about-page .text-danger {
    color: #d88090 !important;
  }
}



/* === MOBILE NAVBAR BURGER BUTTON FIX === */

/* Light theme - make burger visible */
.navbar-toggler {
  border: 2px solid var(--primary) !important;
  padding: 0.4rem 0.6rem !important;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%235a4a70' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 3px rgba(149, 133, 176, 0.3) !important;
}

/* Dark mode burger */
@media (prefers-color-scheme: dark) {
  .navbar-toggler {
    border-color: #b8a9c9 !important;
  }
  
  .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23d5d0dc' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
  }

  .navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(184, 169, 201, 0.3) !important;
  }
}



/* === MOBILE DROPDOWN MENU - Lavender Theme === */

/* Dropdown menu background */
.dropdown-menu {
  background: rgba(255, 255, 255, 0.98) !important;
  border: 1px solid rgba(155, 133, 176, 0.15) !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 24px rgba(155, 133, 176, 0.15) !important;
}

/* Dropdown items */
.dropdown-item {
  color: #3a3445 !important;
  padding: 0.6rem 1.2rem !important;
  transition: all 0.2s ease !important;
}

.dropdown-item:hover,
.dropdown-item:focus {
  background: rgba(155, 133, 176, 0.12) !important;
  color: #5a4a70 !important;
}

.dropdown-item.active,
.dropdown-item:active {
  background: rgba(155, 133, 176, 0.2) !important;
  color: #5a4a70 !important;
}

/* Mobile collapsed navbar (light mode only) */
@media (prefers-color-scheme: light) {
  .navbar-collapse {
    background: rgba(255, 255, 255, 0.98) !important;
    border-radius: 12px !important;
    margin-top: 0.5rem !important;
    padding: 0.5rem !important;
    border: 1px solid rgba(155, 133, 176, 0.15) !important;
    box-shadow: 0 4px 16px rgba(155, 133, 176, 0.1) !important;
  }
}

@media (min-width: 992px) {
  .navbar-collapse {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin-top: 0 !important;
  }
}

/* Mobile nav links in collapsed menu (light mode only) */
@media (prefers-color-scheme: light) and (max-width: 991px) {
  .navbar-nav .nav-link {
    color: #3a3445 !important;
    padding: 0.75rem 1rem !important;
    border-radius: 8px !important;
  }
  
  .navbar-nav .nav-link:hover {
    background: rgba(155, 133, 176, 0.12) !important;
    color: #5a4a70 !important;
  }
}

/* Dark mode dropdown */
/* Dark Theme (toggle-based) */
@media (prefers-color-scheme: dark) {
  .dropdown-menu {
    background: rgba(40, 35, 50, 0.98) !important;
    border-color: rgba(155, 133, 176, 0.25) !important;
  }
  
  .dropdown-item {
    color: #e5e0ec !important;
  }
  
  .dropdown-item:hover,
  .dropdown-item:focus {
    background: rgba(155, 133, 176, 0.2) !important;
    color: #f5f2f8 !important;
  }
  
  .navbar-collapse {
    background: rgba(40, 35, 50, 0.98) !important;
    border-color: rgba(155, 133, 176, 0.25) !important;
  }
  
  @media (max-width: 991px) {
    .navbar-nav .nav-link {
      color: #ede8f5 !important;
    }
    
    .navbar-nav .nav-link:hover {
      background: rgba(155, 133, 176, 0.2) !important;
      color: #f5f2f8 !important;
    }
  }
}



/* Enhanced keyboard focus styles */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(99, 102, 241, 0.5);
  outline-offset: 2px;
  box-shadow: none;
}

@media (prefers-color-scheme: dark) {
  a:focus-visible,
  button:focus-visible,
  .btn:focus-visible,
  input:focus-visible {
    outline-color: rgba(240, 171, 252, 0.5);
  }

  /* skip-link */
  .skip-link {
    background: linear-gradient(135deg, #7c3aed, #6366f1);
  }

  /* breadcrumb */
  .breadcrumb {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(255, 255, 255, 0.08);
  }

  .breadcrumb-item a {
    color: #f0abfc;
  }

  .breadcrumb-item.active {
    color: #94a3b8;
  }

  /* under-construction banner */
  .under-construction-banner {
    background: linear-gradient(135deg, #7c3aed, #6366f1);
  }
}

/* =====================================================
   DATA REQUEST PAGE – my_data.html overrides
   ===================================================== */

/* Single-column centered layout for the data-request page */
.data-request-page .auth-card {
  max-width: 600px;
  margin: 0 auto;
}

/* Purple gradient header */
.data-request-page .auth-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Privacy download card (logged-in) */
.data-request-page .privacy-card {
  border: 2px solid #11998e;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.data-request-page .privacy-card-header {
  background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
  padding: 1rem 1.25rem;
  color: white;
}

.data-request-page .privacy-card-body {
  padding: 1.25rem;
}

.data-request-page .privacy-card-body p {
  margin: 0 0 0.75rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.data-request-page .privacy-card .auth-btn {
  background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
  margin: 0;
  box-shadow: 0 4px 15px rgba(17, 153, 142, 0.3);
}

.data-request-page .privacy-card .auth-btn:hover {
  box-shadow: 0 6px 20px rgba(17, 153, 142, 0.4);
}

/* Alert styling within the data-request page */
.data-request-page .alert {
  border-radius: 12px;
  margin-bottom: 1.5rem;
}

/* Auth divider spacing */
.data-request-page .auth-divider {
  margin: 1.5rem 0;
}

/* Auth checkbox spacing */
.data-request-page .auth-checkbox {
  margin-bottom: 1.5rem;
}

/* Purple submit button (formal request) */
.data-request-page .auth-btn--purple {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.data-request-page .auth-btn--purple:hover {
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* Form elements: select & textarea match auth-form-group inputs */
.data-request-page .auth-form-group select,
.data-request-page .auth-form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #eee;
  border-radius: 12px;
  font-size: 1rem;
  font-family: 'Nunito', sans-serif;
  transition: all 0.2s ease;
  background: #fff;
}

.data-request-page .auth-form-group select:focus,
.data-request-page .auth-form-group textarea:focus {
  outline: none;
  border-color: var(--warm-peach, #e8a87c);
  box-shadow: 0 0 0 3px rgba(232, 168, 124, 0.15);
}

/* ── Info boxes ── */
.data-request-page .info-box {
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.data-request-page .info-box:last-child {
  margin-bottom: 0;
}

.data-request-page .info-box p {
  margin: 0 0 0.5rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.data-request-page .info-box p:last-child {
  margin-bottom: 0;
}

.data-request-page .info-box ul {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Warm/neutral info box – "What data do we hold" & logged-in hint */
.data-request-page .info-box--neutral {
  background: #f8f5f2;
}

.data-request-page .info-box--neutral .info-box-title {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Green info box – "No personal data stored" */
.data-request-page .info-box--success {
  background: #e8f5e9;
}

.data-request-page .info-box--success .info-box-title {
  color: #2e7d32;
  font-size: 0.95rem;
}

/* Orange info box – "Have an account?" */
.data-request-page .info-box--warning {
  background: #fff3e0;
}

.data-request-page .info-box--warning .info-box-title {
  color: #e65100;
  font-size: 0.95rem;
}

/* Purple info box – "Believe we hold your data?" */
.data-request-page .info-box--purple {
  background: #f3e5f5;
}

.data-request-page .info-box--purple .info-box-title {
  color: #6a1b9a;
  font-size: 0.95rem;
}

/* ── Icon colour utilities (scoped to data-request) ── */
.data-request-page .icon-peach    { color: var(--warm-peach, #e8a87c); }
.data-request-page .icon-blue     { color: #667eea; }
.data-request-page .icon-red      { color: #ff6b6b; }
.data-request-page .icon-teal     { color: #11998e; }
.data-request-page .icon-warm     { color: #e8a87c; }

/* ── Rights list (moved from inline <style>) ── */
.data-request-page .rights-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.data-request-page .right-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: #f8f5f2;
  border-radius: 10px;
}

.data-request-page .right-item i {
  font-size: 1.25rem;
  width: 30px;
  text-align: center;
}

.data-request-page .right-item strong {
  display: block;
  font-size: 0.85rem;
  color: var(--text-primary);
}

.data-request-page .right-item small {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

@media (max-width: 480px) {
  .data-request-page .rights-list {
    grid-template-columns: 1fr;
  }
}

/* ── Dark mode: Data Request page ── */
@media (prefers-color-scheme: dark) {
  .data-request-page .info-box--neutral {
    background: rgba(248, 245, 242, 0.06);
  }

  .data-request-page .info-box--success {
    background: rgba(232, 245, 233, 0.08);
  }

  .data-request-page .info-box--success .info-box-title {
    color: #66bb6a;
  }

  .data-request-page .info-box--warning {
    background: rgba(255, 243, 224, 0.08);
  }

  .data-request-page .info-box--warning .info-box-title {
    color: #ffb74d;
  }

  .data-request-page .info-box--purple {
    background: rgba(243, 229, 245, 0.08);
  }

  .data-request-page .info-box--purple .info-box-title {
    color: #ce93d8;
  }

  .data-request-page .right-item {
    background: rgba(248, 245, 242, 0.06);
  }

  .data-request-page .privacy-card {
    border-color: #0f766e;
  }

  .data-request-page .auth-form-group select,
  .data-request-page .auth-form-group textarea {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
  }}