/* ═══════════════════════════════════════════════════════
   MEDACCER Blog — blog.css
   Dark mode article styles
   ═══════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: #0a2024;
  color: #CBD5E1;
  font-family: 'Inter Tight', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ── Navigation ──────────────────────────────────────── */
.blog-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 64px;
  background: rgba(10, 22, 40, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.blog-nav-logo {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #F8FAFC;
  text-decoration: none;
}
.blog-nav-logo span { color: #5eead4; }
.blog-nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.blog-nav-links a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.2s;
}
.blog-nav-links a:hover { color: #F8FAFC; }
.blog-nav-cta {
  background: #0e8174;
  color: #fff !important;
  padding: 9px 22px;
  border-radius: 8px;
  font-weight: 600 !important;
  font-size: 14px !important;
  transition: background 0.2s, transform 0.15s !important;
}
.blog-nav-cta:hover {
  background: #0b2e33 !important;
  transform: translateY(-1px);
}

/* ── Article hero ────────────────────────────────────── */
.article-hero {
  max-width: 820px;
  margin: 0 auto;
  padding: 72px 40px 48px;
}
.article-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #5eead4;
  margin-bottom: 22px;
}
.article-tag::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #5eead4;
  flex-shrink: 0;
}
.article-h1 {
  font-family: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  font-size: 54px;
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: #F8FAFC;
  margin-bottom: 28px;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.45);
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.article-meta strong {
  color: rgba(255, 255, 255, 0.75);
  font-weight: 500;
}
.article-meta-sep { color: rgba(255, 255, 255, 0.2); }

/* ── Table of contents ───────────────────────────────── */
.article-toc {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 28px 32px;
  margin: 40px 0;
}
.article-toc h3 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 18px;
}
.article-toc ol {
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.article-toc li { font-size: 15px; }
.article-toc a {
  color: #7de0d0;
  text-decoration: none;
  transition: color 0.2s;
}
.article-toc a:hover { color: #5eead4; text-decoration: underline; }

/* ── Article body ────────────────────────────────────── */
.article-body {
  max-width: 820px;
  margin: 0 auto;
  padding: 8px 40px 100px;
}
.article-body h2 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 36px;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: #F1F5F9;
  margin: 60px 0 20px;
  line-height: 1.18;
}
.article-body h3 {
  font-size: 20px;
  font-weight: 600;
  color: #E2E8F0;
  margin: 40px 0 14px;
  letter-spacing: -0.01em;
}
.article-body p {
  font-size: 16.5px;
  line-height: 1.78;
  color: #CBD5E1;
  margin-bottom: 22px;
  max-width: 72ch;
}
.article-body ul,
.article-body ol {
  padding-left: 26px;
  margin-bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.article-body li {
  font-size: 16px;
  line-height: 1.65;
  color: #CBD5E1;
}
.article-body strong { color: #F1F5F9; font-weight: 600; }
.article-body em { color: #7de0d0; font-style: italic; }
.article-body a { color: #5eead4; text-decoration: underline; text-underline-offset: 3px; }

/* ── Callout boxes ───────────────────────────────────── */
.callout {
  border-radius: 14px;
  padding: 22px 26px;
  margin: 30px 0;
  border-left: 3px solid;
}
.callout-blue  { background: rgba(37,99,235,0.09);  border-color: #0e8174;  }
.callout-teal  { background: rgba(6,182,212,0.08);  border-color: #5eead4;  }
.callout-amber { background: rgba(245,158,11,0.08); border-color: #F59E0B;  }
.callout-green { background: rgba(16,185,129,0.08); border-color: #10B981;  }
.callout-red   { background: rgba(239,68,68,0.07);  border-color: #EF4444;  }

.callout-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: block;
}
.callout-blue  .callout-label { color: #5eead4; }
.callout-teal  .callout-label { color: #7de0d0; }
.callout-amber .callout-label { color: #FCD34D; }
.callout-green .callout-label { color: #34D399; }
.callout-red   .callout-label { color: #FCA5A5; }
.callout p { margin-bottom: 0; color: inherit; }
.callout ul { margin-bottom: 0; }

/* Semantic callout aliases */
.callout-info    { background: rgba(37,99,235,0.09);  border-color: #0e8174; }
.callout-warning { background: rgba(245,158,11,0.08); border-color: #F59E0B; }
.callout-success { background: rgba(16,185,129,0.08); border-color: #10B981; }

/* ── Stat highlight ──────────────────────────────────── */
.stat-block {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  padding: 32px;
  margin: 32px 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 24px;
}
.stat-item { text-align: center; }
.stat-num {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 52px;
  font-weight: 400;
  letter-spacing: -0.03em;
  color: #0e8174;
  line-height: 1;
  display: block;
  margin-bottom: 8px;
}
.stat-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.45;
}
.stat-desc {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.55);
  max-width: 52ch;
  margin: 0 auto;
}
.stat-source {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.3);
  margin-top: 8px;
}

/* ── Comparison table ────────────────────────────────── */
.compare-wrap { overflow-x: auto; margin: 32px 0; border-radius: 16px; border: 1px solid rgba(255,255,255,0.08); }
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  background: rgba(255,255,255,0.02);
}
.compare-table th {
  background: rgba(37, 99, 235, 0.14);
  color: #7de0d0;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid rgba(37, 99, 235, 0.25);
  white-space: nowrap;
}
.compare-table td {
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #CBD5E1;
  vertical-align: top;
}
.compare-table tr:last-child td { border-bottom: none; }
.compare-table .winner { color: #34D399; font-weight: 600; }
.compare-table .check { color: #34D399; }
.compare-table .cross { color: #F87171; }
.compare-table .partial { color: #FCD34D; }
.compare-table .medaccer-row td {
  background: rgba(37, 99, 235, 0.07);
  border-left: 2px solid #0e8174;
}
.compare-table .medaccer-row td:first-child { font-weight: 600; color: #7de0d0; }

/* ── WhatsApp demo block ─────────────────────────────── */
.wa-demo {
  background: #123c42;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 20px;
  margin: 32px 0;
  max-width: 480px;
}
.wa-demo-header {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.wa-out {
  align-self: flex-end;
  margin-left: auto;
  background: #0e8174;
  color: #fff;
  border-radius: 14px 14px 4px 14px;
  padding: 10px 14px;
  font-size: 14px;
  line-height: 1.55;
  max-width: 88%;
  margin-bottom: 8px;
  display: block;
}
.wa-in {
  align-self: flex-start;
  background: rgba(255,255,255,0.07);
  color: #E2E8F0;
  border-radius: 14px 14px 14px 4px;
  padding: 10px 14px;
  font-size: 14px;
  line-height: 1.55;
  max-width: 88%;
  margin-bottom: 8px;
  display: block;
}
.wa-demo-footer {
  font-size: 11px;
  color: rgba(255,255,255,0.3);
  text-align: center;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.05);
  margin-top: 8px;
}

/* ── CTA card ────────────────────────────────────────── */
.article-cta {
  background: linear-gradient(135deg, rgba(37,99,235,0.14), rgba(6,182,212,0.07));
  border: 1px solid rgba(37, 99, 235, 0.28);
  border-radius: 22px;
  padding: 52px 48px;
  text-align: center;
  margin: 72px 0 48px;
}
.article-cta h2 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 40px;
  font-weight: 400;
  color: #F8FAFC;
  letter-spacing: -0.02em;
  margin: 0 0 14px !important;
  line-height: 1.12;
}
.article-cta p {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 0 36px;
  max-width: 54ch;
  margin-left: auto;
  margin-right: auto;
}
.btn-cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #0e8174;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  padding: 16px 40px;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.2s, transform 0.18s, box-shadow 0.2s;
  box-shadow: 0 4px 24px rgba(37, 99, 235, 0.3);
}
.btn-cta-primary:hover {
  background: #0b2e33;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(37, 99, 235, 0.4);
  color: #fff;
  text-decoration: none;
}
.btn-cta-sub {
  display: block;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 14px;
}

/* article-cta variants used in articles */
.article-cta-inner {
  max-width: 560px;
  margin: 0 auto;
}
.article-cta-inner h3 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 36px;
  font-weight: 400;
  color: #F8FAFC;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  line-height: 1.15;
}
.article-cta-inner p {
  font-size: 16px;
  color: rgba(255,255,255,0.6);
  margin: 0 0 28px;
  line-height: 1.6;
}
.article-cta-btn {
  display: inline-flex;
  align-items: center;
  background: #0e8174;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  padding: 15px 36px;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.2s, transform 0.18s, box-shadow 0.2s;
  box-shadow: 0 4px 22px rgba(37,99,235,0.32);
}
.article-cta-btn:hover {
  background: #0b2e33;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(37,99,235,0.42);
  color: #fff;
  text-decoration: none;
}
.article-cta-sub {
  display: block;
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  margin-top: 12px;
}

/* ── Footer ──────────────────────────────────────────── */
.blog-footer {
  background: #061518;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 48px 40px;
  text-align: center;
}
.blog-footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-bottom: 20px;
}
.blog-footer-links a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  transition: color 0.2s;
}
.blog-footer-links a:hover { color: #F8FAFC; }
.blog-footer p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.25);
  margin-top: 4px;
}

/* ── Blog index page ─────────────────────────────────── */
.blog-index-hero {
  max-width: 900px;
  margin: 0 auto;
  padding: 80px 40px 56px;
}
.blog-index-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #5eead4;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.blog-index-tag::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #5eead4;
  flex-shrink: 0;
}
.blog-index-hero h1 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 56px;
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: #F8FAFC;
  margin-bottom: 20px;
}
.blog-index-hero p {
  font-size: 18px;
  color: rgba(255,255,255,0.6);
  max-width: 60ch;
  line-height: 1.6;
}

.blog-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px 100px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.blog-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 18px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-decoration: none;
  transition: border-color 0.25s, background 0.25s, transform 0.25s;
  cursor: pointer;
}
.blog-card:hover {
  border-color: rgba(37, 99, 235, 0.4);
  background: rgba(37, 99, 235, 0.06);
  transform: translateY(-4px);
}
.blog-card-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #5eead4;
}
.blog-card h2 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: #F1F5F9;
  margin: 0;
}
.blog-card p {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255,255,255,0.5);
  margin: 0;
  flex: 1;
}
.blog-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  margin-top: 4px;
}
.blog-card-read {
  background: rgba(37,99,235,0.15);
  color: #7de0d0;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 900px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .blog-nav { padding: 0 20px; }
  .blog-nav-links { display: none; }
  .article-hero { padding: 48px 20px 32px; }
  .article-h1 { font-size: 36px; }
  .article-body { padding: 0 20px 60px; }
  .article-body h2 { font-size: 28px; margin-top: 44px; }
  .article-toc { padding: 20px; }
  .article-cta { padding: 32px 20px; }
  .article-cta h2 { font-size: 28px; }
  .blog-grid { grid-template-columns: 1fr; }
  .blog-index-hero { padding: 48px 20px 40px; }
  .blog-index-hero h1 { font-size: 38px; }
  .blog-footer { padding: 40px 20px; }
}
