/* ── Optima Health Care — Blog Shared Stylesheet ── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { font-family: 'Inter', system-ui, sans-serif; color: #1A2E40; background: #fff; line-height: 1.6; }

:root {
  --navy:      #0D2840;
  --teal:      #58AF9E;
  --teal-deep: #3d8f80;
  --cream:     #F6F1EA;
  --ink:       #1A2E40;
  --ink-muted: rgba(26,46,64,0.58);
  --rule:      rgba(13,40,64,0.1);
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --ease:      cubic-bezier(0.22, 0.68, 0, 1.2);
}

img { display: block; max-width: 100%; }
a { color: inherit; }

/* ───────────── HEADER ───────────── */
.blog-header {
  background: var(--navy);
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.blog-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; max-width: 1200px; margin: 0 auto; padding: 0 2rem;
}
.blog-logo img { height: 38px; width: auto; }
.blog-nav { display: flex; align-items: center; gap: 1.75rem; }
.blog-nav a {
  color: rgba(246,241,234,0.65); text-decoration: none;
  font-size: 0.8rem; letter-spacing: 0.04em;
  transition: color 180ms;
}
.blog-nav a:hover { color: var(--teal); }
.blog-nav .nav-cta {
  background: var(--teal); color: var(--navy) !important;
  padding: 0.5rem 1.25rem; border-radius: 100px;
  font-weight: 700; font-size: 0.76rem; letter-spacing: 0;
  transition: background 180ms;
}
.blog-nav .nav-cta:hover { background: var(--teal-deep); color: #fff !important; }

/* ───────────── BLOG LISTING HERO ───────────── */
.blog-list-hero {
  background: var(--navy);
  padding: 5rem 2rem 4rem;
  text-align: center;
}
.blog-list-hero .eyebrow {
  font-size: 0.62rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--teal);
  font-weight: 600; margin-bottom: 1rem; display: block;
}
.blog-list-hero h1 {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(2.2rem, 5vw, 3.5rem); color: var(--cream);
  line-height: 1.15; margin-bottom: 1rem;
}
.blog-list-hero p {
  font-size: 0.95rem; color: rgba(246,241,234,0.55);
  max-width: 520px; margin: 0 auto;
}

/* ───────────── LISTING GRID ───────────── */
.blog-section { padding: 4rem 2rem 5rem; max-width: 1200px; margin: 0 auto; }
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}
.blog-card {
  border: 1px solid var(--rule); overflow: hidden;
  transition: transform 240ms var(--ease), box-shadow 240ms ease;
  text-decoration: none; color: inherit; display: flex; flex-direction: column;
}
.blog-card:hover { transform: translateY(-5px); box-shadow: 0 16px 40px rgba(13,40,64,0.11); }
.blog-card-img {
  aspect-ratio: 16/9; overflow: hidden; position: relative;
}
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms ease; }
.blog-card:hover .blog-card-img img { transform: scale(1.04); }
.blog-card-img-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
}
.blog-card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.blog-card-cat {
  font-size: 0.6rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--teal);
  font-weight: 600; margin-bottom: 0.6rem; display: block;
}
.blog-card-title {
  font-family: var(--font-display); font-size: 1.3rem;
  font-weight: 400; color: var(--navy); line-height: 1.28;
  margin-bottom: 0.75rem;
}
.blog-card-excerpt {
  font-size: 0.82rem; color: var(--ink-muted);
  line-height: 1.65; margin-bottom: 1.25rem; flex: 1;
}
.blog-card-footer {
  display: flex; align-items: center;
  justify-content: space-between; font-size: 0.72rem; color: var(--ink-muted);
  border-top: 1px solid var(--rule); padding-top: 1rem; margin-top: auto;
}
.blog-read-more { color: var(--teal); font-weight: 600; font-size: 0.76rem; }

/* ───────────── ARTICLE HERO ───────────── */
.article-hero { background: var(--navy); padding: 5rem 2rem 3.5rem; }
.article-hero-inner { max-width: 780px; margin: 0 auto; }
.breadcrumb {
  display: flex; gap: 0.5rem; align-items: center;
  flex-wrap: wrap; margin-bottom: 1.5rem;
}
.breadcrumb a {
  font-size: 0.72rem; color: rgba(246,241,234,0.4);
  text-decoration: none; transition: color 150ms;
}
.breadcrumb a:hover { color: var(--teal); }
.breadcrumb-sep { font-size: 0.65rem; color: rgba(246,241,234,0.25); }
.breadcrumb-current { font-size: 0.72rem; color: rgba(246,241,234,0.4); }
.article-cat {
  display: inline-block; font-size: 0.6rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--teal); font-weight: 600; margin-bottom: 1rem;
}
.article-title {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(1.9rem, 4.5vw, 3rem); color: var(--cream);
  line-height: 1.18; margin-bottom: 1.25rem;
}
.article-meta {
  font-size: 0.76rem; color: rgba(246,241,234,0.4);
  display: flex; gap: 1.5rem; flex-wrap: wrap; align-items: center;
}
.article-meta-sep { opacity: 0.3; }

/* ───────────── ARTICLE BODY ───────────── */
.article-wrap { max-width: 780px; margin: 0 auto; padding: 0 2rem; }
.article-body { padding: 3rem 0 4rem; }
.article-body h2 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.4rem, 2.5vw, 1.85rem); color: var(--navy);
  margin: 2.75rem 0 1rem; line-height: 1.25;
  padding-bottom: 0.5rem; border-bottom: 1px solid var(--rule);
}
.article-body h3 {
  font-size: 1.05rem; font-weight: 700; color: var(--navy);
  margin: 1.75rem 0 0.6rem;
}
.article-body p {
  font-size: 1rem; line-height: 1.8; color: var(--ink);
  margin-bottom: 1.25rem;
}
.article-body ul, .article-body ol {
  margin: 0 0 1.25rem 1.5rem;
}
.article-body li {
  font-size: 1rem; line-height: 1.8; color: var(--ink);
  margin-bottom: 0.35rem;
}
.article-body strong { color: var(--navy); }
.article-body a { color: var(--teal); text-decoration: underline; text-decoration-thickness: 1px; }

/* ── Comparison table ── */
.article-body .compare-table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.88rem; }
.article-body .compare-table th {
  background: var(--navy); color: var(--cream);
  padding: 0.75rem 1rem; text-align: left; font-weight: 600; font-size: 0.8rem;
}
.article-body .compare-table td {
  padding: 0.7rem 1rem; border-bottom: 1px solid var(--rule); vertical-align: top;
}
.article-body .compare-table tr:last-child td { border-bottom: none; }
.article-body .compare-table tr:nth-child(even) td { background: rgba(13,40,64,0.03); }

/* ── Highlight box ── */
.article-highlight {
  background: rgba(88,175,158,0.08); border-left: 3px solid var(--teal);
  padding: 1.1rem 1.4rem; margin: 1.5rem 0; border-radius: 0 2px 2px 0;
}
.article-highlight p { margin: 0; font-size: 0.92rem; color: var(--ink); }

/* ───────────── CTA BOX ───────────── */
.article-cta {
  background: var(--navy); border-radius: 3px;
  padding: 2.5rem 2rem; text-align: center; margin: 3rem 0;
}
.article-cta h3 {
  font-family: var(--font-display); font-weight: 300;
  font-size: 1.65rem; color: var(--cream); margin-bottom: 0.6rem;
}
.article-cta p {
  font-size: 0.86rem; color: rgba(246,241,234,0.55);
  margin-bottom: 1.5rem; line-height: 1.6;
}
.article-cta .cta-btn {
  display: inline-block; background: var(--teal); color: var(--navy);
  padding: 0.85rem 2.2rem; border-radius: 100px; text-decoration: none;
  font-weight: 700; font-size: 0.86rem; letter-spacing: 0.01em;
  transition: background 180ms; margin: 0.25rem;
}
.article-cta .cta-btn:hover { background: var(--teal-deep); color: #fff; }
.article-cta .cta-ghost {
  display: inline-block; color: rgba(246,241,234,0.5);
  padding: 0.85rem 1.5rem; text-decoration: none;
  font-size: 0.82rem; margin: 0.25rem; transition: color 180ms;
}
.article-cta .cta-ghost:hover { color: var(--teal); }

/* ───────────── RELATED POSTS ───────────── */
.related-section { background: var(--cream); padding: 3.5rem 2rem 4rem; }
.related-inner { max-width: 1000px; margin: 0 auto; }
.related-section h2 {
  font-family: var(--font-display); font-weight: 300;
  font-size: 1.6rem; color: var(--navy); margin-bottom: 2rem;
}
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.related-card {
  background: #fff; text-decoration: none; color: inherit;
  border: 1px solid var(--rule); display: flex; flex-direction: column;
  transition: transform 220ms var(--ease), box-shadow 220ms ease;
}
.related-card:hover { transform: translateY(-4px); box-shadow: 0 10px 28px rgba(13,40,64,0.1); }
.related-card-img { aspect-ratio: 16/9; overflow: hidden; }
.related-card-img img { width: 100%; height: 100%; object-fit: cover; }
.related-card-img-placeholder { width: 100%; height: 100%; }
.related-card-body { padding: 1.1rem 1.25rem; }
.related-card-cat {
  font-size: 0.58rem; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--teal); font-weight: 600; margin-bottom: 0.4rem; display: block;
}
.related-card-title {
  font-family: var(--font-display); font-size: 1.1rem;
  color: var(--navy); line-height: 1.3; font-weight: 400;
}

/* ───────────── FOOTER ───────────── */
.blog-footer { background: var(--navy); padding: 2.5rem 2rem; }
.blog-footer-inner {
  max-width: 1000px; margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 1.5rem;
}
.blog-footer img { height: 36px; }
.blog-footer-links { display: flex; gap: 1.75rem; flex-wrap: wrap; }
.blog-footer-links a {
  color: rgba(246,241,234,0.45); text-decoration: none;
  font-size: 0.76rem; transition: color 150ms;
}
.blog-footer-links a:hover { color: var(--teal); }
.blog-footer-copy {
  width: 100%; text-align: center;
  font-size: 0.7rem; color: rgba(246,241,234,0.25);
  border-top: 1px solid rgba(255,255,255,0.06); padding-top: 1.5rem; margin-top: 1rem;
}

/* ───────────── RESPONSIVE ───────────── */
@media (max-width: 640px) {
  .blog-nav a:not(.nav-cta) { display: none; }
  .blog-nav { gap: 1rem; }
  .article-wrap { padding: 0 1.1rem; }
  .article-body { padding: 2rem 0 3rem; }
  .article-body .compare-table { font-size: 0.78rem; }
  .article-body .compare-table th,
  .article-body .compare-table td { padding: 0.55rem 0.65rem; }
  .article-cta { padding: 2rem 1.25rem; }
  .blog-footer-inner { flex-direction: column; align-items: flex-start; }
}
