/* ==========================================================================
   News overview page
   Figma v4: "News – Desktop 1680" (144:1214) · "– Desktop 1440" (432:3192) · "– Mobile 390" (149:2335)
   ========================================================================== */

/* 2. Featured article: image 760 fixed down to 1440 (text column 584 → 424) */
.featured {
  display: flex; align-items: center; gap: 96px;
  padding-top: 120px; padding-bottom: 120px;
  background: var(--white);
}
.featured__img {
  display: block;
  flex: 0 1 760px; min-width: 0;
  aspect-ratio: 760 / 460;
  border-radius: var(--radius-card);
  overflow: hidden;
}
.featured__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.featured__img:hover img { transform: scale(1.03); }
.featured__text { flex: 1 1 424px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.featured__text .lead { line-height: 1.55; letter-spacing: 0; }

/* 3. Article grid */
.articles { padding-top: 128px; padding-bottom: 128px; background: var(--cream); }
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 32px; row-gap: 40px; }
/* Figma keeps the card images 270 tall at every desktop width (458×270 at 1680, 405×270 at 1440) */
.news-grid .news-card__img { aspect-ratio: auto; height: 270px; }
.news-card__img--placeholder { background: #E4DED2; }
/* cards without a link yet (placeholders, global media page) don't zoom on hover */
.news-card--static:hover .news-card__img img { transform: none; }

.pagination {
  display: flex; justify-content: center; align-items: center; gap: 28px;
  margin-top: 48px;
  font-size: 16px; font-weight: 700; line-height: 20px;
  color: var(--char);
}
.pagination[hidden] { display: none; }
.pagination__link { text-align: center; transition: color .15s ease; }
a.pagination__link:hover { color: var(--red); }
.pagination__link[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }

/* Tablet */
@media (max-width: 1199px) {
  .featured { flex-direction: column; align-items: stretch; gap: 48px; }
  .featured__img { flex-basis: auto; width: 100%; }
  .featured__text { flex-basis: auto; }
  .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Mobile (390 reference) */
@media (max-width: 767px) {
  .page-news .page-hero { padding-bottom: 64px; }

  .featured { padding: 56px 20px; gap: 18px; }
  .featured__img { aspect-ratio: 350 / 240; border-radius: var(--radius-img); }
  .featured__text { gap: 18px; }
  .featured__text .lead { line-height: 1.52; }

  .articles { padding: 56px 20px; }
  .news-grid { grid-template-columns: 1fr; row-gap: 32px; }
  .news-grid .news-card__img { height: 190px; border-radius: 8px; }
  .pagination { gap: 20px; margin-top: 20px; }
}
