/* ============================================================
   blog.css — D.R. Healthcare Blog Pages
   ============================================================ */

/* Blog Nav */
.blog-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(7,17,31,0.95); backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 14px 0;
}
.blog-nav-inner { display: flex; align-items: center; justify-content: space-between; }
.blog-nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: white; font-family: 'Playfair Display', serif; font-size: 16px; }
.blog-nav-actions { display: flex; align-items: center; gap: 16px; }
.blog-nav-back { color: rgba(255,255,255,0.6); text-decoration: none; font-size: 14px; transition: color 0.2s; }
.blog-nav-back:hover { color: white; }

/* Blog Hero */
.blog-hero {
  background: linear-gradient(180deg, #07111F 0%, #0d2040 100%);
  padding: 64px 0 80px;
  position: relative;
  overflow: hidden;
}
.blog-hero::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(8,84,194,0.15) 0%, transparent 60%);
  pointer-events: none;
}
.blog-breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: rgba(255,255,255,0.45); margin-bottom: 24px;
  position: relative; z-index: 1;
}
.blog-breadcrumb a { color: rgba(255,255,255,0.45); text-decoration: none; transition: color 0.2s; }
.blog-breadcrumb a:hover { color: white; }
.blog-meta-top {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  margin-bottom: 20px; position: relative; z-index: 1;
}
.blog-tag {
  background: rgba(8,84,194,0.2);
  border: 1px solid rgba(8,84,194,0.4);
  color: #7eb8ff;
  font-size: 11px; font-weight: 600;
  padding: 4px 12px;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.blog-author-mini, .blog-date, .blog-read-time {
  font-size: 13px; color: rgba(255,255,255,0.45);
}
.blog-hero-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(32px, 5vw, 56px);
  color: white;
  line-height: 1.15;
  max-width: 800px;
  margin-bottom: 20px;
  position: relative; z-index: 1;
}
.blog-hero-subtitle {
  font-size: 18px;
  color: rgba(255,255,255,0.6);
  max-width: 640px;
  line-height: 1.7;
  margin-bottom: 32px;
  position: relative; z-index: 1;
}
.blog-author-card {
  display: flex; align-items: center; gap: 14px;
  position: relative; z-index: 1;
}
.blog-author-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0854c2, #2172b3);
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 700; font-size: 14px;
  flex-shrink: 0;
}
.blog-author-card strong {
  display: block; color: white; font-size: 15px; margin-bottom: 2px;
}
.blog-author-card span {
  font-size: 12px; color: rgba(255,255,255,0.45);
}

/* Blog Layout */
.blog-main { padding: 64px 0; background: #F8FAFF; }
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
}
@media (max-width: 1024px) {
  .blog-layout { grid-template-columns: 1fr; }
  .blog-sidebar { order: -1; position: static; }
}

/* Article */
.blog-article {
  background: white;
  border-radius: 20px;
  padding: 48px;
  box-shadow: 0 4px 24px rgba(8,84,194,0.06);
}
@media (max-width: 768px) { .blog-article { padding: 24px; } }

/* Key Takeaways */
.blog-key-takeaways {
  background: linear-gradient(135deg, rgba(8,84,194,0.06), rgba(8,84,194,0.03));
  border-left: 4px solid #0854c2;
  border-radius: 12px;
  padding: 24px 24px 18px;
  margin-bottom: 40px;
}
.blog-key-takeaways h3 {
  font-family: 'Playfair Display', serif;
  font-size: 18px; color: #0854c2;
  margin: 0 0 12px;
}
.blog-key-takeaways ul { margin: 0; padding-left: 20px; }
.blog-key-takeaways li {
  color: #4A5568; font-size: 15px;
  line-height: 1.7; margin-bottom: 6px;
}

/* Article Typography */
.blog-article h2 {
  font-family: 'Playfair Display', serif;
  font-size: 28px; color: #07111F;
  margin: 40px 0 16px;
  padding-top: 8px;
  border-top: 1px solid #EEF4FF;
}
.blog-article h2:first-of-type { border-top: none; margin-top: 0; }
.blog-article h3 {
  font-family: 'Playfair Display', serif;
  font-size: 21px; color: #0854c2;
  margin: 28px 0 12px;
}
.blog-article p {
  font-size: 16px; color: #4A5568;
  line-height: 1.85; margin-bottom: 20px;
}
.blog-article ul, .blog-article ol {
  padding-left: 24px; margin-bottom: 20px;
}
.blog-article li {
  font-size: 16px; color: #4A5568;
  line-height: 1.7; margin-bottom: 8px;
}
.blog-article blockquote {
  border-left: 4px solid #e62a2b;
  padding: 16px 24px;
  margin: 32px 0;
  background: rgba(230,42,43,0.04);
  border-radius: 0 12px 12px 0;
}
.blog-article blockquote p {
  color: #07111F; font-size: 18px;
  font-style: italic; margin: 0; line-height: 1.6;
}

/* Comparison Table (div-based) */
.blog-comparison-table {
  border: 1px solid #e2eaf6;
  border-radius: 12px;
  overflow: hidden;
  margin: 28px 0;
}
.blog-comparison-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  border-bottom: 1px solid #e2eaf6;
}
.blog-comparison-row:last-child { border-bottom: none; }
.blog-comparison-row.header { background: #0854c2; }
.blog-comparison-cell {
  padding: 12px 16px;
  font-size: 14px; color: #4A5568;
  border-right: 1px solid #e2eaf6;
}
.blog-comparison-cell:last-child { border-right: none; }
.blog-comparison-row.header .blog-comparison-cell {
  color: white; font-weight: 600; font-size: 13px;
}
.blog-comparison-row:nth-child(even):not(.header) { background: #f8faff; }

/* Myth vs Fact Table */
.myth-fact-table {
  border: 1px solid #e2eaf6;
  border-radius: 12px;
  overflow: hidden;
  margin: 28px 0;
}
.myth-fact-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid #e2eaf6;
}
.myth-fact-row:last-child { border-bottom: none; }
.myth-fact-row.header { background: #07111F; }
.myth-cell {
  padding: 14px 18px;
  font-size: 15px; color: #4A5568;
  border-right: 1px solid #e2eaf6;
}
.myth-cell:last-child { border-right: none; }
.myth-fact-row.header .myth-cell { color: white; font-weight: 600; }
.myth-fact-row:not(.header) .myth-cell:first-child {
  color: #e62a2b; font-style: italic;
}
.myth-fact-row:not(.header) .myth-cell:last-child {
  color: #166534; font-weight: 500;
}
.myth-fact-row:nth-child(even):not(.header) { background: #f8faff; }

/* Info box */
.blog-info-box {
  background: rgba(8,84,194,0.05);
  border: 1px solid rgba(8,84,194,0.15);
  border-radius: 12px;
  padding: 20px 24px;
  margin: 28px 0;
}
.blog-info-box h4 {
  color: #0854c2; font-size: 15px;
  font-weight: 600; margin: 0 0 8px;
}
.blog-info-box p {
  font-size: 14px; color: #4A5568;
  margin: 0 0 6px; line-height: 1.65;
}
.blog-info-box p:last-child { margin-bottom: 0; }
.blog-info-box ul { padding-left: 18px; margin: 6px 0 0; }
.blog-info-box li {
  font-size: 14px; color: #4A5568;
  margin-bottom: 4px; line-height: 1.6;
}

/* Warning box */
.blog-warning-box {
  background: rgba(230,42,43,0.05);
  border: 1px solid rgba(230,42,43,0.2);
  border-radius: 12px;
  padding: 20px 24px;
  margin: 28px 0;
}
.blog-warning-box h4 {
  color: #e62a2b; margin: 0 0 8px;
  font-size: 15px; font-weight: 600;
}
.blog-warning-box p {
  font-size: 14px; color: #4A5568;
  margin: 0 0 6px;
}
.blog-warning-box ul { padding-left: 18px; margin: 6px 0 0; }
.blog-warning-box li {
  font-size: 14px; color: #4A5568;
  margin-bottom: 4px;
}

/* Blog CTA box */
.blog-cta-box {
  background: linear-gradient(135deg, #07111F, #0d1f38);
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  margin-top: 48px;
}
.blog-cta-box h3 {
  font-family: 'Playfair Display', serif;
  font-size: 24px; color: white;
  margin: 0 0 12px;
}
.blog-cta-box p {
  color: rgba(255,255,255,0.65);
  font-size: 16px; margin-bottom: 24px;
}

/* Rehab Timeline */
.rehab-timeline { margin: 20px 0; }
.rehab-step {
  display: flex; gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid #EEF4FF;
}
.rehab-step:last-child { border-bottom: none; }
.rehab-step-label {
  background: #0854c2; color: white;
  font-size: 12px; font-weight: 600;
  padding: 4px 10px; border-radius: 6px;
  white-space: nowrap; align-self: flex-start;
  min-width: 100px; text-align: center;
}
.rehab-step-text {
  font-size: 15px; color: #4A5568;
  line-height: 1.6;
}

/* Sidebar */
.blog-sidebar {
  position: sticky; top: 88px;
  display: flex; flex-direction: column; gap: 20px;
}
.sidebar-card {
  background: white;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 16px rgba(8,84,194,0.06);
}
.sidebar-card h4 {
  font-family: 'Playfair Display', serif;
  font-size: 16px; color: #07111F;
  margin: 0 0 12px;
}
.sidebar-card p {
  font-size: 13px; color: #718096;
  margin-bottom: 4px; line-height: 1.5;
}
.related-links { list-style: none; padding: 0; margin: 0; }
.related-links li { border-bottom: 1px solid #EEF4FF; padding: 8px 0; }
.related-links li:last-child { border-bottom: none; }
.related-links a {
  font-size: 14px; color: #0854c2;
  text-decoration: none; line-height: 1.5;
  display: block; transition: color 0.2s;
}
.related-links a:hover { color: #e62a2b; }
.service-mini-list { list-style: none; padding: 0; margin: 0 0 12px; }
.service-mini-list li {
  font-size: 14px; color: #4A5568;
  padding: 5px 0;
  border-bottom: 1px solid #f0f0f0;
}
.service-mini-list li:last-child { border-bottom: none; }
.service-mini-list li::before { content: '✓ '; color: #0854c2; font-weight: 600; }
.sidebar-card a:not(.btn) {
  font-size: 13px; color: #0854c2;
  text-decoration: none; display: block;
  margin-top: 12px; transition: color 0.2s;
}
.sidebar-card a:not(.btn):hover { color: #e62a2b; }

/* Buttons in blog context */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 24px; border-radius: 9999px;
  font-size: 14px; font-weight: 600;
  text-decoration: none; cursor: pointer;
  border: none; transition: all 0.2s;
  font-family: 'DM Sans', sans-serif;
}
.btn-primary {
  background: linear-gradient(135deg, #0854c2, #2172b3);
  color: white;
}
.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.25);
  color: white;
}
.btn-outline:hover { border-color: white; }
.btn-sm { padding: 8px 18px; font-size: 13px; }
.btn-full { width: 100%; display: flex; }

/* Blog Footer */
.blog-footer {
  background: #07111F;
  padding: 40px 0;
}
.blog-footer-inner {
  color: rgba(255,255,255,0.5);
  font-size: 13px; line-height: 1.8;
}
.blog-footer-inner strong { color: white; }
.blog-disclaimer {
  color: rgba(255,255,255,0.3);
  font-size: 12px; font-style: italic;
  margin: 14px 0 10px;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 14px;
}

/* WhatsApp Float */
.whatsapp-float {
  position: fixed; bottom: 32px; right: 32px; z-index: 500;
  width: 56px; height: 56px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(37,211,102,0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}
.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 32px rgba(37,211,102,0.45);
}

/* Container utility */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Responsive */
@media (max-width: 640px) {
  .blog-nav-actions .blog-nav-back { display: none; }
  .blog-hero { padding: 40px 0 56px; }
  .blog-main { padding: 32px 0; }
  .blog-cta-box { padding: 28px 20px; }
  .whatsapp-float { bottom: 20px; right: 20px; width: 48px; height: 48px; }
  .blog-comparison-row { grid-template-columns: 1fr; }
  .blog-comparison-cell { border-right: none; border-bottom: 1px solid #e2eaf6; }
  .myth-fact-row { grid-template-columns: 1fr; }
  .myth-cell { border-right: none; border-bottom: 1px solid #e2eaf6; }
}
