/* ═══════════════════════════════════════════
   MYHEARTCARE — INSIGHTS (BLOG)
   Built entirely on existing site design tokens.
   No new hex values — only var(--*) + the same
   rgba(0,76,151,…) primary tints the site uses.
   ═══════════════════════════════════════════ */

/* ── Shared line-clamp helper ── */
.clamp-2, .clamp-3 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.clamp-2 { -webkit-line-clamp: 2; }
.clamp-3 { -webkit-line-clamp: 3; }

/* ═══ LISTING — HERO BLOCK ═══ */
.insights-hero {
  background: linear-gradient(135deg, var(--off-white) 0%, var(--primary-lighter) 100%);
  padding: 72px 0 56px;
  position: relative;
  overflow: hidden;
}
.insights-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(0,76,151,0.08) 1px, transparent 0);
  background-size: 40px 40px;
  opacity: 0.4;
  pointer-events: none;
}
.insights-hero-inner { position: relative; z-index: 2; max-width: 760px; }
.insights-eyebrow {
  font-family: 'Outfit', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--primary);
  margin-bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(0,76,151,0.06);
  padding: 8px 18px;
  border-radius: 100px;
  border: 1px solid rgba(0,76,151,0.12);
}
.insights-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-dark);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}
.insights-hero-sub {
  font-size: 1.08rem;
  color: var(--text-body);
  line-height: 1.7;
  max-width: 620px;
}

/* ═══ LISTING — GRID ═══ */
.insights-section { padding: 64px 0 88px; background: var(--white); }
.insights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  align-items: stretch;
}
.insights-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 24px;
  color: var(--text-muted);
  background: var(--off-white);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border);
}

/* ═══ BLOG CARD (reused on listing + More from Insights) ═══ */
a.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  text-decoration: none;
  height: 100%;
}
a.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}
.blog-card-img {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--off-white);
}
.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
a.blog-card:hover .blog-card-img img { transform: scale(1.07); }
.blog-card-body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.blog-card-meta {
  font-family: 'Outfit', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.blog-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.28rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-dark);
  margin-bottom: 10px;
  transition: color 0.3s ease;
}
a.blog-card:hover .blog-card-title { color: var(--primary); }
.blog-card-excerpt {
  font-size: 0.94rem;
  line-height: 1.65;
  color: var(--text-body);
  margin-bottom: 18px;
  flex-grow: 1;
}
.blog-card-readmore {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
  width: fit-content;
}
.blog-card-readmore svg {
  width: 16px; height: 16px;
  transition: transform 0.3s ease;
}
a.blog-card:hover .blog-card-readmore svg { transform: translateX(5px); }

/* ═══ ARTICLE — HERO ═══ */
.article-hero {
  background: linear-gradient(135deg, var(--off-white) 0%, var(--primary-lighter) 100%);
  padding: 56px 0 64px;
  position: relative;
  overflow: hidden;
}
.article-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(0,76,151,0.08) 1px, transparent 0);
  background-size: 40px 40px;
  opacity: 0.35;
  pointer-events: none;
}
.article-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.article-hero-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
}
.back-to-insights {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 22px;
}
.back-to-insights::before {
  content: '';
  width: 26px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}
.back-to-insights svg { width: 14px; height: 14px; }
.article-pill {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-family: 'Outfit', sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: 100px;
  margin-bottom: 16px;
}
.article-hero-card .article-meta {
  font-family: 'Outfit', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 18px;
}
.article-hero-card h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  font-weight: 700;
  line-height: 1.18;
  color: var(--text-dark);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}
.article-hero-excerpt {
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--text-body);
}
.article-hero-media {
  position: relative;
  border-radius: var(--radius-xl);
  padding: 14px;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-lighter) 100%);
  box-shadow: var(--shadow-lg);
}
.article-hero-media::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(0,76,151,0.25), rgba(0,76,151,0));
  z-index: 0;
}
.article-hero-media img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  display: block;
}

/* ═══ ARTICLE — BODY LAYOUT ═══ */
.article-body { padding: 72px 0 80px; background: var(--white); }
.article-body-grid {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}
.article-body-grid.no-sidebar { grid-template-columns: minmax(0, 1fr); max-width: none; }
/* No sidebar (single post): center the reading column so margins are balanced,
   instead of leaving a large empty gap on the right. */
.article-body-grid.no-sidebar .article-main {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}
.article-body-grid.no-sidebar .article-content { max-width: none; }

/* Sidebar */
.article-sidebar {
  position: -webkit-sticky;
  position: sticky;
  top: 100px;
}
.sidebar-eyebrow {
  font-family: 'Outfit', sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--primary);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary-light);
}
.sidebar-post {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-light);
  text-decoration: none;
  transition: transform 0.25s ease;
}
.sidebar-post:last-child { border-bottom: none; }
.sidebar-post:hover { transform: translateX(4px); }
.sidebar-post-thumb {
  width: 72px;
  height: 56px;
  border-radius: var(--radius);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--off-white);
}
.sidebar-post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-post-date {
  font-family: 'Outfit', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.sidebar-post-title {
  font-family: 'Playfair Display', serif;
  font-size: 0.96rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-dark);
  transition: color 0.25s ease;
}
.sidebar-post:hover .sidebar-post-title { color: var(--primary); }

/* Main column */
.article-overview {
  background: var(--off-white);
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: 22px 26px;
  margin-bottom: 40px;
}
.article-overview-label {
  font-family: 'Outfit', sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--primary);
  margin-bottom: 8px;
}
.article-overview p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-body);
  margin: 0;
}

.article-content { max-width: 760px; }
.article-content a { color: var(--primary); font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color var(--transition); }
.article-content a:hover { color: var(--primary-dark); }
.article-content p {
  font-size: 1.04rem;
  line-height: 1.8;
  color: var(--text-body);
  margin-bottom: 22px;
}
.article-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.85rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-dark);
  margin: 44px 0 18px;
  letter-spacing: -0.01em;
}
.article-content h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--primary);
  margin: 32px 0 14px;
}
.article-content ul {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.article-content ul li {
  position: relative;
  padding-left: 34px;
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--text-body);
}
.article-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary-light);
  box-shadow: inset 0 0 0 5px var(--white), inset 0 0 0 6px var(--primary);
}
.article-content .inline-image {
  margin: 36px 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.article-content .inline-image img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

/* CTA box */
.article-cta {
  margin: 52px 0 12px;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-lighter) 100%);
  border: 1px solid var(--primary-light);
  border-radius: var(--radius-xl);
  padding: 36px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.article-cta::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}
.article-cta h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
}
.article-cta p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-body);
  max-width: 560px;
  margin: 0 auto 22px;
}
.article-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--primary);
  color: var(--white);
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 15px 32px;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(0,76,151,0.3);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}
.article-cta-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0,76,151,0.4);
}
.article-cta-btn svg { width: 18px; height: 18px; }

/* FAQs */
.faq-block { margin-top: 8px; }
.faq-item {
  border-bottom: 1px solid var(--border-light);
  padding: 22px 0;
}
.faq-item:first-child { border-top: 1px solid var(--border-light); }
.faq-q {
  font-family: 'Playfair Display', serif;
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-dark);
  margin-bottom: 10px;
}
.faq-a {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-body);
  margin: 0;
}

/* Contributor / Clinical / How-we-help blocks */
.article-note {
  background: var(--off-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 26px 30px;
  margin: 28px 0;
}
.article-note p { font-size: 1rem; line-height: 1.75; color: var(--text-body); margin-bottom: 14px; }
.article-note p:last-child { margin-bottom: 0; }

/* More from Insights */
.more-insights { padding: 72px 0 88px; background: var(--off-white); }
.more-insights-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.more-insights-head .insights-eyebrow { margin-bottom: 10px; }
.more-insights-head h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.2;
  margin: 0;
}
.more-insights-head p {
  font-size: 0.98rem;
  color: var(--text-muted);
  max-width: 360px;
  margin: 0;
  line-height: 1.6;
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 1024px) {
  .insights-grid { grid-template-columns: repeat(2, 1fr); }
  .article-body-grid { grid-template-columns: 240px minmax(0, 1fr); gap: 40px; }
}
@media (max-width: 900px) {
  .article-hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .article-hero-media { order: 2; }
  .article-body-grid { grid-template-columns: 1fr; gap: 40px; max-width: none; }
  .article-sidebar { display: none; }
  .article-content { max-width: 100%; }
}
@media (max-width: 768px) {
  .insights-hero { padding: 52px 0 40px; }
  .insights-section { padding: 48px 0 64px; }
  .insights-grid { grid-template-columns: 1fr; gap: 24px; }
  .article-hero { padding: 40px 0 48px; }
  .article-hero-card { padding: 28px 24px; }
  .article-body { padding: 48px 0 56px; }
  .article-content h2 { font-size: 1.55rem; }
  .article-content h3 { font-size: 1.18rem; }
  .article-cta { padding: 28px 22px; }
  .article-cta h3 { font-size: 1.4rem; }
  .more-insights { padding: 52px 0 64px; }
}
@media (max-width: 480px) {
  .article-hero-card { padding: 24px 20px; }
  .article-overview { padding: 18px 20px; }
}
