/* ═══════════════════════════════════════════════════════════════════
   news-cards.css — the "Latest Insights" card mosaic.
   ─────────────────────────────────────────────────────────────────────
   Ported from .hn-news in public/css/home-new.css, which is scoped under
   .home-new and therefore unusable anywhere else. This is the shared
   version; markup stays per-page, same arrangement as how-bento.css.

   Structure:
     .ent-news                    navy-ramp section
       .ent-news-head             text block left, optional link right
         .ent-news-head-text
         .ent-news-all            "see all" link (omit when no listing)
       .ent-news-grid             zero-gap mosaic, single row
         a.ent-news-card          coloured tile (+ .is-light to flip white)

   Card content classes:
     .ent-news-art   category mark, pinned bottom right
     .ent-news-cat   category label
     .ent-news-date  publication date
     .ent-news-name  title
     .ent-news-exc   excerpt, clamped to 3 lines
     .ent-news-more  READ MORE, anchored to the tile's bottom

   Tile colour comes from an inline background-color the template sets per
   card, so the palette can rotate by position. Corner rounding is done
   with :first-child / :last-child rather than the fixed nth-child(1/3/5/7)
   the homepage uses, so the mosaic closes correctly for ANY number of
   cards in a single row — including one, where first and last are the
   same element and all four corners round.
   ═══════════════════════════════════════════════════════════════════ */

.ent-news {
  --ent-news-r: 18px;
  /* Navy-to-white ramp, the site's standard gradient, matching The Team
     section above. Header sits on the navy top; tiles land in the light
     half, which is why the lead tile is NOT flipped white here. */
  background: linear-gradient(180deg, #1a2857 0%, #16214a 12%, #121c3a 30%, #eef1f6 58%, #ffffff 100%);
  padding: 62px 40px 62px;
}

.ent-news-head {
  max-width: 1440px;
  margin: 0 auto 34px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
}
.ent-news-head-text { min-width: 0; }

.ent-news-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ffffff;
}
.ent-news-rule { display: block; width: 28px; height: 2px; background: #ffffff; }

.ent-news-title {
  margin: 14px 0 0;
  font-size: clamp(28px, 3.6vw, 46px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.ent-news-all {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex: none;
  padding: 0 0 6px;
  color: rgba(255,255,255,0.88);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.ent-news-all svg { width: 16px; height: 16px; }

.ent-news-grid {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

/* Chunky solid-colour tiles, zero gap so the row reads as one mosaic.
   Big padding, big type, bottom-anchored READ MORE. */
.ent-news-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 380px;
  border-radius: 0;
  padding: 40px 36px 36px;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: filter .25s ease;
  background-image: radial-gradient(circle at 0% 0%, rgba(0,0,0,0.22), transparent 55%);
}
.ent-news-card:hover { filter: brightness(1.08); }
.ent-news-card:hover .ent-news-more svg { transform: translateX(4px); }

/* Outer corners only. With one card, first and last are the same node, so
   every corner rounds and it reads as a single tile. */
.ent-news-grid > .ent-news-card:first-child {
  border-top-left-radius: var(--ent-news-r);
  border-bottom-left-radius: var(--ent-news-r);
}
.ent-news-grid > .ent-news-card:last-child {
  border-top-right-radius: var(--ent-news-r);
  border-bottom-right-radius: var(--ent-news-r);
}

/* Footer row: READ MORE left, category mark right, vertically centred on
   each other. The mark used to be absolutely positioned at bottom:32px
   while READ MORE sat in flow above the 36px bottom padding, so the two
   never shared a baseline. */
.ent-news-foot {
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
}
.ent-news-art {
  flex: none;
  width: 44px;
  height: 44px;
  color: #fff;
  opacity: 0.55;
  pointer-events: none;
}

.ent-news-cat {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.82);
  margin-bottom: 6px;
}
.ent-news-date {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  margin-bottom: 20px;
}

.ent-news-name {
  margin: 0 0 18px;
  font-size: clamp(19px, 1.7vw, 22px);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
}

/* 3-line excerpt, pushed up so READ MORE anchors the tile's bottom. */
.ent-news-exc {
  margin: 0 0 auto;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255,255,255,0.88);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ent-news-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
}
.ent-news-more svg { width: 14px; height: 14px; transition: transform .25s ease; }

/* Light-flip variant: white tile with navy body type. The top-left bloom
   carries through from the base rule. */
.ent-news-card.is-light .ent-news-cat  { color: rgba(26,40,87,0.62); }
.ent-news-card.is-light .ent-news-date { color: rgba(26,40,87,0.55); }
.ent-news-card.is-light .ent-news-name { color: var(--navy); }
.ent-news-card.is-light .ent-news-exc  { color: var(--muted); }
.ent-news-card.is-light .ent-news-more { color: var(--navy); }
.ent-news-card.is-light .ent-news-art  { color: var(--navy); opacity: 0.45; }

@media (max-width: 1100px) {
  .ent-news { padding: 58px 40px 58px; }
  .ent-news-card { min-height: 340px; }
}
@media (max-width: 900px) {
  .ent-news { padding: 50px 40px 50px; }
}
@media (max-width: 720px) {
  .ent-news { padding: 42px 18px 42px; }
  .ent-news-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .ent-news-grid { grid-template-columns: 1fr; }
  .ent-news-card { min-height: 260px; padding: 32px 26px 28px; }
  .ent-news-name { font-size: 22px; }
  /* Single column: first card owns both top corners, last both bottom.
     :nth-child(n) resets at matching specificity so this cascade wins. */
  .ent-news-grid > .ent-news-card:nth-child(n) { border-radius: 0; }
  .ent-news-grid > .ent-news-card:first-child {
    border-top-left-radius: var(--ent-news-r);
    border-top-right-radius: var(--ent-news-r);
  }
  .ent-news-grid > .ent-news-card:last-child {
    border-bottom-left-radius: var(--ent-news-r);
    border-bottom-right-radius: var(--ent-news-r);
  }
}
