/* ============ POST CARDS WITH IMAGES ============ */
.post-card{ padding: 0; overflow: hidden; }
.post-card-image{ aspect-ratio: 16/9; overflow: hidden; background: var(--bg-alt); }
.post-card-image img{ width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.post-card:hover .post-card-image img{ transform: scale(1.04); }
.post-card-body{ padding: 28px 32px 32px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.feature-post .post-card-image{ aspect-ratio: 21/9; }
.feature-post .post-card-body{ padding: 36px 40px 40px; }

.posts-empty{
  text-align: center; padding: 64px 0; color: var(--muted);
  font-size: 16px;
}

/* ============ POST ARTICLE PAGE ============ */
.post-article{ padding: 100px 0 0; background: var(--bg); }
.post-back{
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); font-weight: 700; margin-bottom: 24px;
  text-decoration: none;
}
.post-back:hover{ color: var(--red); }

.post-meta-top{
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); font-weight: 700; margin-bottom: 18px;
}
.post-meta-top .pill{
  background: rgba(215,38,61,.10); color: var(--red);
  padding: 4px 10px; border-radius: 999px;
}

.post-title{
  font-family: var(--display);
  font-size: clamp(40px, 6.5vw, 80px);
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: .95;
  max-width: 22ch;
}
.post-deck{
  font-size: clamp(18px, 2vw, 22px);
  color: var(--ink-2);
  line-height: 1.5;
  margin-top: 20px;
  max-width: 60ch;
}

.post-hero{
  margin: 56px 0 0;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
}
.post-hero img{ width: 100%; height: 100%; object-fit: cover; display: block; }

.post-body-wrap{
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 64px;
  padding: 64px 0 80px;
  align-items: start;
}

.post-takeaways{
  position: sticky;
  top: 100px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.post-takeaways h2{
  font-family: var(--display);
  font-size: 18px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
}
.post-takeaways ul{
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 12px;
}
.post-takeaways li{
  position: relative; padding-left: 22px;
  color: var(--ink-2); line-height: 1.5; font-size: 15px;
}
.post-takeaways li::before{
  content: ""; position: absolute; left: 0; top: 9px;
  width: 8px; height: 8px; background: var(--red); border-radius: 2px;
}

.post-body{
  max-width: 70ch;
}
.post-body h2{
  font-family: var(--display);
  font-size: clamp(28px, 3.4vw, 40px);
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.05;
  margin: 56px 0 20px;
}
.post-body h2:first-child{ margin-top: 0; }
.post-body h3{
  font-family: var(--display);
  font-size: clamp(22px, 2.4vw, 28px);
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 40px 0 14px;
}
.post-body h4{
  font-family: var(--body);
  font-weight: 800;
  font-size: 18px;
  color: var(--navy);
  margin: 32px 0 10px;
}
.post-body p{
  color: var(--ink); line-height: 1.7; font-size: 18px;
  margin: 0 0 20px;
}
.post-body ul, .post-body ol{
  margin: 0 0 24px;
  padding-left: 24px;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.65;
}
.post-body li{ margin-bottom: 8px; }
.post-body strong{ color: var(--navy); font-weight: 700; }
.post-body a{ color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.post-body a:hover{ color: var(--navy); }
.post-body blockquote{
  border-left: 4px solid var(--red);
  padding: 4px 0 4px 24px;
  margin: 28px 0;
  font-size: 20px;
  color: var(--ink-2);
  font-style: italic;
  line-height: 1.55;
}
.post-body code{
  background: var(--bg-alt);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.92em;
}

.post-figure{
  margin: 36px 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-alt);
}
.post-figure img{ width: 100%; height: auto; display: block; }

.post-video{
  margin: 56px 0;
  padding: 36px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  border-radius: var(--radius-lg);
  color: #fff;
}
.post-video h2{ color: #fff; margin: 0 0 12px; }
.post-video .muted{ color: #C9D4EC; margin-bottom: 24px; }
.video-embed{
  position: relative; padding-top: 56.25%;
  border-radius: var(--radius-md); overflow: hidden;
  margin-bottom: 24px;
  background: #000;
}
.video-embed iframe{
  position: absolute; inset: 0;
  width: 100%; height: 100%; border: 0;
}

.post-resources{
  margin: 48px 0;
  padding: 32px;
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--red);
}
.post-resources h2{ margin: 0 0 16px; font-size: 24px; }
.post-resources ul{ list-style: none; padding: 0; margin: 0; }
.post-resources li{ padding: 10px 0; border-bottom: 1px solid var(--line); }
.post-resources li:last-child{ border-bottom: 0; }
.post-resources a{ font-weight: 600; }

.post-cta{
  margin: 56px 0 0;
  padding: 48px;
  text-align: center;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.post-cta h2{ margin: 0 0 12px; }
.post-cta p{ color: var(--muted); margin-bottom: 24px; }

@media (max-width: 900px){
  .post-body-wrap{
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 40px 0 60px;
  }
  .post-takeaways{ position: static; }
  .post-body{ max-width: none; }
  .post-body p{ font-size: 17px; }
  .post-hero{ aspect-ratio: 4/3; }
  .post-video, .post-cta{ padding: 28px; }
  .post-resources{ padding: 24px; }
}
