/* ==========================================================================
   RepuNEXT TV — blog post card (template-parts/post/card.php)
   Used by the Insights page (8 cards with excerpts).
   Hover: the card lifts with a teal shadow, the image slowly zooms, the arrow nudges.
   ========================================================================== */
.insight-card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface);
  border: 1.5px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: 0 4px 0 var(--line);
  transition: transform .35s var(--ease-out), border-color .25s, box-shadow .35s var(--ease-out);
}
.insight-card:hover, .insight-card:focus-within { transform: translateY(-6px); border-color: var(--ink); box-shadow: 0 8px 0 var(--sq-5); }
.insight-card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--en-tint); }
.insight-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease-out); }
.insight-card:hover .insight-card__media img .insight-card__media img { transform: scale(1.06); }
.insight-card__placeholder { --u: 18px; display: block; margin: auto; top: 50%; translate: 0 -50%; }
.insight-card__body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 20px; }
.insight-card__date { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--tagline); }
.insight-card__title {
  margin: 8px 0 0;
  font-family: var(--f-display); font-weight: 700; font-size: clamp(1.08rem, 1.25vw, 1.2rem); line-height: 1.25; letter-spacing: -.02em;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
  min-height: calc(1.25em * 2);   /* same height for one- and two-line titles */
}
.insight-card__title a { color: var(--ink); text-decoration: none; }
/* The whole card is clickable (stretched title link); "Read More" stays its own link on top */
.insight-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 0; }
.insight-card__excerpt {
  margin: 10px 0 0; color: var(--muted); font-size: .95rem; line-height: 1.6;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden;
  min-height: calc(1.6em * 3);
}
.insight-card__more {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
  margin-top: auto; padding-top: 16px;
  font-weight: 700; font-size: .95rem; color: var(--en); text-decoration: none;
}
.insight-card__more .icon { width: 1em; height: 1em; transition: transform .3s var(--ease-out); }
.insight-card:hover .insight-card__more .icon .insight-card__more .icon, .insight-card__more:focus-visible .icon { transform: translate(3px, -3px); }
.insight-card__more:hover { color: var(--ink); }

/* Compact cards (homepage): no excerpt, so "Read More" sits a little closer to the title */
.insight-card--compact .insight-card__more { padding-top: 12px; }

/* Logo-mark placeholder for posts without an image */
.insight-card .pixels { --u: 18px; position: relative; width: calc(var(--u) * 3.54); height: calc(var(--u) * 3.54); }
.insight-card .pixels i { position: absolute; width: var(--u); height: var(--u); border-radius: 3px; }

@media (prefers-reduced-motion: reduce) {
  .insight-card, .insight-card__media img { transition: none; }
}
