/* ============================================================
   MedRepute — BLOG STYLES
   Shared by the blog index and every article page.
   Loads AFTER assets/site.css (tokens, nav, footer, buttons).
   ============================================================ */

/* ── Page header (under the floating nav) ── */
.blog-hero {
  background: var(--off);
  padding: 140px 0 56px;
}
.blog-hero h1 {
  font-size: clamp(30px, 4.5vw, 48px);
  font-weight: 800; line-height: 1.1;
  letter-spacing: -0.8px; color: var(--blue-dk);
  max-width: 640px;
}
.blog-hero p {
  font-size: 16px; color: var(--gray);
  line-height: 1.7; margin-top: 14px; max-width: 520px;
}

/* ── Article cards (index) ── */
.post-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 18px; padding: 48px 0 90px;
}
.post-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 28px 26px;
  display: flex; flex-direction: column; gap: 10px;
  transition: box-shadow 0.18s, transform 0.18s, border-color 0.18s;
}
.post-card:hover {
  border-color: var(--blue);
  box-shadow: 0 14px 40px rgba(8,45,130,0.10);
  transform: translateY(-3px);
}
.post-kicker {
  font-size: 11px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--blue-md);
}
.post-card h2 {
  font-size: 21px; font-weight: 800; letter-spacing: -0.4px;
  color: var(--blue-dk); line-height: 1.25;
}
.post-card p { font-size: 14px; color: var(--gray); line-height: 1.7; }
.post-meta { font-size: 12px; color: var(--gray-lt); margin-top: 4px; }
.post-read {
  margin-top: 6px; font-size: 14px; font-weight: 700; color: var(--blue);
}
@media (min-width: 768px) {
  .post-grid { grid-template-columns: 1fr 1fr; }
}

/* ── Article page ── */
.article-head {
  background: var(--off);
  padding: 140px 0 48px;
}
.article-head .wrap, .article-body { max-width: 760px; }
.article-kicker {
  font-size: 11px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--blue-md);
  display: block; margin-bottom: 12px;
}
.article-head h1 {
  font-size: clamp(28px, 4.5vw, 44px);
  font-weight: 800; line-height: 1.15;
  letter-spacing: -0.8px; color: var(--blue-dk);
}
.article-head .article-meta {
  margin-top: 16px; font-size: 13px; color: var(--gray);
}
.article-head .article-meta strong { color: var(--text); }

.article-body {
  margin: 0 auto; padding: 48px 24px 40px;
}
.article-body > p, .article-body li {
  font-size: 16.5px; color: #33415C; line-height: 1.85;
}
.article-body > p { margin-bottom: 22px; }
.article-body .lede {
  font-size: 19px; color: var(--text); line-height: 1.75;
}
.article-body h2 {
  font-size: 26px; font-weight: 800; letter-spacing: -0.5px;
  color: var(--blue-dk); margin: 44px 0 16px;
}
.article-body h3 {
  font-size: 19px; font-weight: 700;
  color: var(--blue-dk); margin: 30px 0 12px;
}
.article-body ul, .article-body ol { margin: 0 0 22px 22px; }
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li { margin-bottom: 8px; }
.article-body strong { color: var(--text); }
.article-body a { color: var(--blue-md); font-weight: 600; }
.article-body a:hover { text-decoration: underline; }

/* comparison table */
.article-body table {
  width: 100%; border-collapse: collapse;
  margin: 8px 0 26px; font-size: 14.5px;
  border: 1px solid var(--border); border-radius: var(--r);
  overflow: hidden;
}
.article-body th {
  background: var(--blue-dk); color: #fff;
  text-align: left; padding: 12px 14px;
  font-size: 13px; font-weight: 700;
}
.article-body td {
  padding: 12px 14px; border-top: 1px solid var(--border);
  color: #33415C; vertical-align: top;
}
.article-body tr:nth-child(even) td { background: var(--off); }
.table-scroll { overflow-x: auto; }

/* callout / highlight */
.callout {
  background: var(--blue-lt); border-left: 4px solid var(--blue);
  border-radius: 0 var(--r) var(--r) 0;
  padding: 18px 20px; margin: 0 0 24px;
  font-size: 15px; color: var(--text); line-height: 1.7;
}

/* CTA box inside articles */
.article-cta {
  background: var(--blue-dk); border-radius: var(--r-lg);
  padding: 34px 30px; margin: 40px 0;
  text-align: center;
}
.article-cta h3 {
  color: #fff !important; font-size: 22px !important;
  font-weight: 800; letter-spacing: -0.4px; margin: 0 0 8px !important;
}
.article-cta p {
  color: rgba(255,255,255,0.62) !important;
  font-size: 14.5px !important; line-height: 1.7;
  margin-bottom: 20px !important;
}
.article-cta .btn-wa { margin: 0 auto; }
.article-body a.btn-cta-light, .btn-cta-light {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  background: #fff; color: var(--blue-dk);
  padding: 16px 28px; border-radius: 50px;
  font-weight: 700; font-size: 15px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.22);
  transition: transform 0.14s, box-shadow 0.14s, background 0.14s;
}
.btn-cta-light:hover { background: var(--blue-lt); transform: translateY(-1px); box-shadow: 0 8px 26px rgba(0,0,0,0.30); }
.btn-cta-light:active { transform: scale(0.97); }

/* ── Website showcase cards (listicles) ── */
.site-card {
  border: 1px solid var(--border); border-radius: var(--r-lg);
  overflow: hidden; margin: 28px 0 36px;
  box-shadow: 0 2px 18px rgba(8,45,130,0.06);
}
.site-shot { position: relative; background: var(--off); }
.site-shot img { width: 100%; display: block; aspect-ratio: 1280/900; object-fit: cover; object-position: top; }
.site-card-body { padding: 20px 22px 22px; }
.site-card-title {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; margin-bottom: 8px;
}
.site-card-title h3 { margin: 0 !important; font-size: 19px !important; }
.site-card-title .site-loc { font-size: 12.5px; font-weight: 600; color: var(--gray-lt); white-space: nowrap; }
.site-card-body p { font-size: 14.5px !important; color: var(--gray) !important; line-height: 1.7; margin: 0 0 12px !important; }
.site-visit {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 700; color: var(--blue-md);
}
.site-visit:hover { text-decoration: underline; }

/* author / footer note */
.article-foot {
  border-top: 1px solid var(--border);
  margin-top: 44px; padding-top: 20px;
  font-size: 13px; color: var(--gray-lt); line-height: 1.7;
}

/* back link */
.back-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 700; color: var(--blue-md);
  margin-bottom: 18px;
}
.back-link:hover { text-decoration: underline; }
