/* ===== HouseBase Blog — Article Styles ===== */

/* ---- Article layout ---- */
.blog-article {
  max-width: 48rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}
@media (min-width: 1024px) {
  .blog-article { max-width: 52rem; }
}

/* ---- Article hero ---- */
.blog-hero {
  padding: 3rem 0 2rem;
  text-align: center;
}
.blog-hero h1 {
  font-size: 2rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}
@media (min-width: 640px) {
  .blog-hero h1 { font-size: 2.5rem; }
}
.blog-hero .subtitle {
  font-size: 1.125rem;
  color: #64748b;
  margin-bottom: 1rem;
}
.blog-updated {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  color: #94a3b8;
  background: #f1f5f9;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
}

/* ---- Table of contents ---- */
.blog-toc {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
}
.blog-toc h2 {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  margin-bottom: 0.75rem;
}
.blog-toc ol {
  list-style: decimal;
  padding-left: 1.25rem;
}
.blog-toc li {
  margin-bottom: 0.375rem;
}
.blog-toc a {
  color: #1e40af;
  text-decoration: none;
  font-size: 0.9375rem;
}
.blog-toc a:hover {
  text-decoration: underline;
}

/* ---- Article body ---- */
.blog-body h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
  margin: 2.5rem 0 1rem;
  padding-top: 1rem;
}
.blog-body h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1e293b;
  margin: 2rem 0 0.75rem;
}
.blog-body p {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: #374151;
  margin-bottom: 1.25rem;
}
.blog-body ul, .blog-body ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}
.blog-body li {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: #374151;
  margin-bottom: 0.5rem;
}
.blog-body a {
  color: #1e40af;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.blog-body strong {
  font-weight: 600;
  color: #1e293b;
}

/* ---- Expert quote callout ---- */
.expert-quote {
  background: linear-gradient(135deg, #eff6ff, #f0f4ff);
  border-left: 4px solid #2563eb;
  border-radius: 0 0.75rem 0.75rem 0;
  padding: 1.5rem;
  margin: 2rem 0;
}
.expert-quote .quote-text {
  font-size: 1.0625rem;
  font-style: italic;
  line-height: 1.65;
  color: #1e293b;
  margin-bottom: 0.75rem;
}
.expert-quote .quote-author {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1e40af;
}

/* ---- Statistics callout ---- */
.stat-box {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 0.75rem;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}
.stat-box .stat-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #92400e;
  margin-bottom: 0.5rem;
}
.stat-box .stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: #78350f;
}
.stat-box .stat-source {
  font-size: 0.75rem;
  color: #a16207;
  margin-top: 0.25rem;
}

/* ---- Comparison table ---- */
.blog-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9375rem;
  border-radius: 0.5rem;
  overflow: hidden;
  border: 1px solid #e2e8f0;
}
.blog-table th {
  background: #0f172a;
  color: white;
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
}
.blog-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #f1f5f9;
}
.blog-table tr:nth-child(even) td {
  background: #f8fafc;
}

/* ---- FAQ section ---- */
.blog-faq {
  background: #f8fafc;
  border-radius: 0.75rem;
  padding: 2rem;
  margin: 2.5rem 0;
}
.blog-faq h2 {
  margin-top: 0;
}
.blog-faq-item {
  border-bottom: 1px solid #e2e8f0;
  padding: 1rem 0;
}
.blog-faq-item:last-child {
  border-bottom: none;
}
.blog-faq-q {
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 0.5rem;
}
.blog-faq-a {
  color: #4b5563;
  line-height: 1.6;
}

/* ---- CTA section ---- */
.blog-cta {
  background: linear-gradient(135deg, #0f172a, #1e1b4b);
  border-radius: 1rem;
  padding: 2.5rem 2rem;
  text-align: center;
  margin: 3rem 0;
}
.blog-cta h2 {
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
}
.blog-cta p {
  color: rgba(255,255,255,0.7);
  margin-bottom: 1.5rem;
}
.blog-cta .cta-btn {
  display: inline-block;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #0f172a;
  font-weight: 700;
  padding: 1rem 2.5rem;
  border-radius: 9999px;
  text-decoration: none;
  transition: all 0.2s;
}
.blog-cta .cta-btn:hover {
  background: linear-gradient(135deg, #d97706, #b45309);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.3);
}
.blog-cta .cta-phone {
  display: block;
  margin-top: 1rem;
  color: rgba(255,255,255,0.5);
  font-size: 0.875rem;
}
.blog-cta .cta-phone a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
}

/* ---- Related articles ---- */
.blog-related {
  margin: 3rem 0;
}
.blog-related h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 1rem;
}
.blog-related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 640px) {
  .blog-related-grid { grid-template-columns: 1fr 1fr 1fr; }
}
.blog-related-card {
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 1.25rem;
  text-decoration: none;
  transition: all 0.2s;
}
.blog-related-card:hover {
  border-color: #93c5fd;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transform: translateY(-2px);
}
.blog-related-card .card-tag {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #2563eb;
  background: #eff6ff;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  margin-bottom: 0.5rem;
}
.blog-related-card .card-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.4;
}

/* ---- Author card ---- */
.blog-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: #f8fafc;
  border-radius: 0.75rem;
  margin: 2rem 0;
}
.blog-author-avatar {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, #312e81, #4f46e5);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  flex-shrink: 0;
}
.blog-author-name {
  font-weight: 600;
  color: #1e293b;
}
.blog-author-bio {
  font-size: 0.875rem;
  color: #64748b;
  line-height: 1.5;
}

/* ---- Disclaimer ---- */
.blog-disclaimer {
  font-size: 0.8125rem;
  color: #94a3b8;
  border-top: 1px solid #e2e8f0;
  padding-top: 1.5rem;
  margin-top: 3rem;
  line-height: 1.6;
}

/* ---- Blog listing page ---- */
.blog-listing {
  max-width: 56rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}
.blog-card {
  display: block;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 1.5rem;
  margin-bottom: 1rem;
  text-decoration: none;
  transition: all 0.2s;
}
.blog-card:hover {
  border-color: #93c5fd;
  box-shadow: 0 4px 16px rgba(0,0,0,0.05);
  transform: translateY(-2px);
}
.blog-card .card-tag {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #2563eb;
  background: #eff6ff;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  margin-bottom: 0.5rem;
}
.blog-card h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.5rem;
}
.blog-card p {
  font-size: 0.9375rem;
  color: #64748b;
  line-height: 1.5;
}
.blog-card .card-meta {
  font-size: 0.8125rem;
  color: #94a3b8;
  margin-top: 0.75rem;
}
