/* =====================================================
   Blog-specific styles — SparkleClean
   ===================================================== */

/* ── Blog Hero ─────────────────────────────────────── */
.blog-hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 60%, var(--brand-teal-900) 100%);
  padding: 120px 20px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.blog-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.blog-hero .section-label {
  display: inline-block;
  background: rgba(var(--primary-rgb),0.15);
  border: 1px solid rgba(var(--primary-rgb),0.3);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.blog-hero h1 {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  color: #fff;
  margin: 0 auto 16px;
  max-width: 760px;
  line-height: 1.2;
}
.blog-hero h1 span {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.blog-hero p {
  color: #94a3b8;
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── Blog Listing Grid ─────────────────────────────── */
.blog-listing {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px 80px;
}
.blog-listing-header {
  text-align: center;
  margin-bottom: 48px;
}
.blog-listing-header h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 10px;
}
.blog-listing-header p {
  color: #64748b;
  font-size: 1.05rem;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 32px;
}
.blog-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(15,23,42,0.08);
  border: 1px solid #e2e8f0;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 36px rgba(15,23,42,0.14);
}
.blog-card-thumb {
  height: 220px;
  position: relative;
  overflow: hidden;
  background: #0f172a;
}
.blog-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}
.blog-card:hover .blog-card-thumb img {
  transform: scale(1.05);
}
.blog-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 0.8rem;
  color: #94a3b8;
}
.blog-card-tag {
  background: #f0f9ff;
  color: var(--primary);
  border-radius: 999px;
  padding: 2px 10px;
  font-weight: 600;
  font-size: 0.75rem;
}
.blog-card h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.4;
  margin: 0 0 10px;
}
.blog-card p {
  color: #64748b;
  font-size: 0.92rem;
  line-height: 1.6;
  flex: 1;
  margin-bottom: 20px;
}
.blog-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: gap 0.2s;
}
.blog-card-link:hover { gap: 10px; }
.blog-card-link::after { content: '→'; }

/* Featured card (first post) */
.blog-card.featured {
  grid-column: 1 / -1;
  flex-direction: row;
}
.blog-card.featured .blog-card-thumb {
  width: 380px;
  min-width: 380px;
  height: auto;
  min-height: 260px;
  border-radius: 0;
}
.blog-card.featured .blog-card-body {
  padding: 36px;
}
.blog-card.featured h3 {
  font-size: 1.5rem;
}
.blog-card.featured p {
  font-size: 1rem;
}
@media (max-width: 768px) {
  .blog-card.featured {
    flex-direction: column;
    grid-column: auto;
  }
  .blog-card.featured .blog-card-thumb {
    width: 100%;
    min-width: unset;
    height: 220px;
  }
  .blog-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Individual Post Layout ────────────────────────── */
.post-hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 70%, var(--brand-teal-900) 100%);
  padding: 120px 20px 50px;
  position: relative;
  overflow: hidden;
}
.post-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.post-hero-inner {
  max-width: 820px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: #64748b;
  margin-bottom: 20px;
}
.breadcrumb a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s;
}
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { color: #475569; }
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.post-tag {
  background: rgba(var(--primary-rgb),0.15);
  border: 1px solid rgba(var(--primary-rgb),0.25);
  color: #38bdf8;
  border-radius: 999px;
  padding: 3px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.post-hero h1 {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.7rem, 4vw, 2.7rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin: 0 0 20px;
}
.post-hero h1 span {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.post-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  color: #94a3b8;
  font-size: 0.88rem;
}
.post-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}
.post-meta-item svg {
  width: 14px;
  height: 14px;
  opacity: 0.7;
}

/* ── Post Featured Image ─────────────────────────── */
.post-featured-image {
  margin: 0 0 36px 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(15,23,42,0.1);
  border: 1px solid #e2e8f0;
  background: #0f172a;
}
.post-featured-image img {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: cover;
  display: block;
}
.post-featured-image figcaption {
  padding: 10px 18px;
  font-size: 0.82rem;
  color: #64748b;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  text-align: center;
}

/* ── Article Body ──────────────────────────────────── */
.post-layout {
  max-width: 1100px;
  margin: 0 auto;
  padding: 52px 20px 80px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 52px;
  align-items: start;
}
@media (max-width: 900px) {
  .post-layout {
    grid-template-columns: 1fr;
  }
  .post-sidebar { order: -1; }
}
.post-content {
  min-width: 0;
}
.post-intro {
  font-size: 1.13rem;
  color: #334155;
  line-height: 1.8;
  margin-bottom: 36px;
  padding-bottom: 36px;
  border-bottom: 2px solid #f1f5f9;
  font-weight: 500;
}
.post-content h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
  margin: 40px 0 14px;
  padding-top: 8px;
}
.post-content h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark);
  margin: 28px 0 10px;
}
.post-content p {
  color: #475569;
  line-height: 1.8;
  margin-bottom: 18px;
  font-size: 1rem;
}
.post-content ul,
.post-content ol {
  margin: 16px 0 22px 0;
  padding-left: 28px;
}
.post-content li {
  color: #475569;
  line-height: 1.75;
  margin-bottom: 8px;
  font-size: 1rem;
}
.post-content strong {
  color: var(--dark);
  font-weight: 600;
}
.post-content a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.post-content a:hover {
  color: var(--primary-dark);
}

/* Checklist items */
.checklist {
  list-style: none;
  padding-left: 0;
  margin: 16px 0 24px;
}
.checklist li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 10px;
  color: #475569;
  line-height: 1.7;
}
.checklist li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  background: var(--secondary);
  color: #fff;
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Room checklist block */
.room-checklist {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 4px solid var(--primary);
  border-radius: 0 12px 12px 0;
  padding: 20px 24px;
  margin: 20px 0 28px;
}
.room-checklist h4 {
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--dark);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.room-checklist ul {
  margin: 0;
  padding-left: 20px;
}
.room-checklist li {
  font-size: 0.92rem;
  color: #475569;
  margin-bottom: 5px;
  line-height: 1.6;
}

/* Callout boxes */
.callout {
  border-radius: 12px;
  padding: 20px 24px;
  margin: 28px 0;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.callout-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 2px;
}
.callout-body strong {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.callout-body p {
  margin: 0;
  font-size: 0.93rem;
  line-height: 1.6;
}
.callout.tip { background: #f0fdf4; border-left: 4px solid var(--secondary); }
.callout.tip .callout-body strong { color: #065f46; }
.callout.tip .callout-body p { color: #166534; }
.callout.warning { background: #fffbeb; border-left: 4px solid #f59e0b; }
.callout.warning .callout-body strong { color: #92400e; }
.callout.warning .callout-body p { color: #78350f; }
.callout.info { background: #f0f9ff; border-left: 4px solid var(--primary); }
.callout.info .callout-body strong { color: var(--brand-teal-800); }
.callout.info .callout-body p { color: #075985; }

/* Numbered mistake items */
.mistake-item {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 20px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  box-shadow: 0 1px 8px rgba(15,23,42,0.05);
}
.mistake-number {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
  border-radius: 50%;
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.mistake-body h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}
.mistake-body p {
  margin: 0;
  font-size: 0.93rem;
}

/* Comparison table */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 8px rgba(15,23,42,0.07);
}
.compare-table th {
  background: var(--dark);
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 14px 18px;
  text-align: left;
}
.compare-table th:first-child { background: #1e293b; }
.compare-table td {
  padding: 13px 18px;
  font-size: 0.92rem;
  color: #475569;
  border-bottom: 1px solid #f1f5f9;
}
.compare-table tr:last-child td { border-bottom: none; }
.compare-table tr:nth-child(even) td { background: #f8fafc; }
.compare-table td:first-child {
  font-weight: 600;
  color: #334155;
}
.compare-table .good { color: var(--secondary); font-weight: 600; }
.compare-table .bad { color: #ef4444; font-weight: 600; }
.compare-table .neutral { color: #f59e0b; font-weight: 600; }

/* In-post CTA box */
.post-cta-box {
  background: linear-gradient(135deg, var(--dark), var(--dark-2));
  border-radius: 16px;
  padding: 32px;
  margin: 40px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.post-cta-box::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 160px; height: 160px;
  background: rgba(var(--primary-rgb),0.12);
  border-radius: 50%;
  pointer-events: none;
}
.post-cta-box h3 {
  font-family: 'Poppins', sans-serif;
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 0 10px;
}
.post-cta-box p {
  color: #94a3b8;
  margin: 0 0 22px;
  font-size: 0.95rem;
}
.post-cta-box .btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  padding: 13px 28px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(var(--primary-rgb),0.35);
}
.post-cta-box .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(var(--primary-rgb),0.45);
}

/* ── Sidebar ───────────────────────────────────────── */
.post-sidebar {
  position: sticky;
  top: 90px;
}
.sidebar-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 2px 12px rgba(15,23,42,0.06);
}
.sidebar-card h4 {
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid #f1f5f9;
}
.sidebar-cta {
  background: linear-gradient(135deg, var(--dark), var(--dark-2));
  border: none;
  text-align: center;
}
.sidebar-cta h4 {
  color: #fff;
  border-bottom-color: rgba(255,255,255,0.1);
}
.sidebar-cta p {
  color: #94a3b8;
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 16px;
}
.sidebar-cta .btn-primary {
  display: block;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  text-align: center;
  margin-bottom: 10px;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(var(--primary-rgb),0.3);
}
.sidebar-cta .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(var(--primary-rgb),0.4);
}
.sidebar-phone {
  color: #94a3b8;
  font-size: 0.82rem;
  text-align: center;
  margin: 0;
}
.sidebar-phone a {
  color: var(--secondary);
  font-weight: 600;
  text-decoration: none;
}
.sidebar-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sidebar-links li {
  margin-bottom: 2px;
}
.sidebar-links a {
  display: block;
  color: #475569;
  text-decoration: none;
  font-size: 0.88rem;
  padding: 8px 0;
  border-bottom: 1px solid #f8fafc;
  transition: color 0.2s, padding-left 0.2s;
}
.sidebar-links a:hover {
  color: var(--primary);
  padding-left: 6px;
}
.sidebar-guarantee {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.guarantee-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: #475569;
}
.guarantee-item span:first-child {
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* ── Related Posts ─────────────────────────────────── */
.related-posts {
  border-top: 2px solid #f1f5f9;
  padding-top: 40px;
  margin-top: 40px;
}
.related-posts h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 24px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.related-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 18px;
  text-decoration: none;
  transition: background 0.2s, box-shadow 0.2s;
  display: block;
}
.related-card:hover {
  background: #fff;
  box-shadow: 0 4px 16px rgba(15,23,42,0.1);
}
.related-card-emoji {
  font-size: 1.8rem;
  margin-bottom: 8px;
  display: block;
}
.related-card h4 {
  font-family: 'Poppins', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.4;
  margin: 0 0 6px;
}
.related-card span {
  font-size: 0.78rem;
  color: #94a3b8;
}

/* ── Back to Blog ──────────────────────────────────── */
.back-to-blog {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #94a3b8;
  font-size: 0.85rem;
  text-decoration: none;
  margin-bottom: 24px;
  transition: color 0.2s;
}
.back-to-blog:hover { color: var(--primary); }
.back-to-blog::before { content: '←'; }

/* ── Utility ───────────────────────────────────────── */
.highlight-stat {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
}
.post-divider {
  border: none;
  border-top: 2px solid #f1f5f9;
  margin: 36px 0;
}
.section-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 700;
  margin-right: 8px;
  vertical-align: middle;
  flex-shrink: 0;
}
