/* ==========================================================================
   news.css – News & Events listing (Figma 1:4008) and details (Figma 1:4065)
   1 Figma px = var(--u). Shared hero and .cut-frame live in pages.css.
   ========================================================================== */

/* ---------- Event card (Figma component 1:136 – 512 × 482, default + hover) ---------- */
.event-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: calc(32 * var(--u));
}
.event-card {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column;
  height: calc(482 * var(--u));
  background: #fff;
  box-shadow: 0 0 calc(16 * var(--u)) rgba(0, 0, 0, 0.16);
  color: #000;
}
/* navy circle: 100px at (516, 485) → 751px at (-119, -135) on hover (Ellipse 2) */
.event-card__fill {
  position: absolute; z-index: -1;
  left: calc(-119 * var(--u)); top: calc(-135 * var(--u));
  width: calc(751 * var(--u)); height: calc(751 * var(--u));
  border-radius: 50%;
  background: var(--c-navy);
  transform: translate(calc(309.5 * var(--u)), calc(294.5 * var(--u))) scale(0.1332);
  transition: transform 0.8s var(--ease-out);
}
/* photo – the blue corner mark is part of the Figma photo layer */
.event-card__media { display: block; aspect-ratio: 512 / 210; overflow: hidden; }
.event-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease-out); }
.event-card__body {
  flex: 1;
  display: flex; flex-direction: column; align-items: flex-start;
  padding: calc(32 * var(--u));
}
.event-card__date {
  color: var(--c-date);
  font-size: calc(20 * var(--u));
  line-height: calc(32 * var(--u));
  transition: color 0.5s var(--ease-out);
}
.event-card__title {
  width: calc(448 * var(--u));
  margin-top: calc(8 * var(--u));
  font-family: var(--f-head);
  font-weight: 600;
  font-size: calc(28 * var(--u));
  line-height: calc(40 * var(--u));
  transition: color 0.5s var(--ease-out);
}
.event-card .text-link { margin-top: auto; }

.event-card:hover .event-card__fill, .event-card:focus-visible .event-card__fill { transform: none; }
.event-card:hover :is(.event-card__date, .event-card__title, .text-link),
.event-card:focus-visible :is(.event-card__date, .event-card__title, .text-link) { color: #fff; }

/* ---------- Listing (title y684, sub y772, grid y872) ---------- */
.news-list { position: relative; padding-top: calc(96 * var(--u)); }
/* triangle strip – Figma (x -72, y 360), same tiles as About */
.news-list__triangles {
  position: absolute; left: calc(-2 * var(--u)); top: calc(-228 * var(--u));
  width: calc(224 * var(--u)); height: calc(588 * var(--u));
  max-width: none; pointer-events: none;
}
.news-list__head { position: relative; width: calc(1600 * var(--u)); margin-inline: auto; }
.news-list__sub {
  width: calc(1202 * var(--u));
  margin: calc(16 * var(--u)) auto 0;
  color: var(--c-text);
  font-size: calc(24 * var(--u));
  line-height: calc(36 * var(--u));
  text-align: center;
}
.news-list .event-grid { position: relative; margin-top: calc(64 * var(--u)); }

/* ---------- Details hero (1920 × 832 photo with #185697 fade to the bottom) ---------- */
.article-hero {
  position: relative; z-index: 1;
  height: calc(832 * var(--u));
  overflow: hidden;
  background: #185697;
  color: #fff;
}
.article-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.article-hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to bottom, rgba(24, 86, 151, 0) 0%, #185697 100%);
}
.article-hero__content {
  position: absolute; z-index: 2;
  left: 50%; bottom: calc(64 * var(--u));
  width: calc(1600 * var(--u));
  transform: translateX(-50%);
}
.article-hero__title {
  width: calc(1192 * var(--u));
  font-weight: 600;
  font-size: calc(56 * var(--u));
  line-height: calc(72 * var(--u));
}
/* meta row – Figma line #467eb8 at y704, 24px above the row */
.article-hero__meta {
  position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: calc(24 * var(--u));
  margin-top: calc(32 * var(--u));
  padding-top: calc(24 * var(--u));
}
.article-hero__meta::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: #467eb8; }
.article-hero__date {
  display: flex; align-items: center; gap: calc(16 * var(--u));
  font-size: calc(20 * var(--u));
  line-height: calc(32 * var(--u));
}
.article-hero__date img { flex: none; width: calc(40 * var(--u)); height: calc(40 * var(--u)); }
.article-hero__date b { font-weight: 600; }

.share { position: relative; display: flex; align-items: center; gap: calc(16 * var(--u)); }
.share__label { font-size: calc(20 * var(--u)); line-height: calc(32 * var(--u)); }
.share__list { display: flex; gap: calc(12 * var(--u)); }
.share__link {
  display: block;
  width: calc(24 * var(--u)); height: calc(24 * var(--u));
  padding: 0; border: 0; background: none; cursor: pointer;
  transition: opacity 0.3s, transform 0.3s var(--ease-out);
}
.share__link img { display: block; width: 100%; height: 100%; }
.share__link:hover, .share__link:focus-visible { opacity: 0.75; transform: translateY(-2px); }
.share__status {
  position: absolute; right: 0; top: 100%;
  padding-top: calc(6 * var(--u));
  font-size: calc(16 * var(--u)); line-height: calc(24 * var(--u));
  white-space: nowrap;
}

/* ---------- Article body (1056 column, 64 between blocks, 40 before tight blocks) ---------- */
.article {
  display: flex; flex-direction: column; gap: calc(64 * var(--u));
  width: calc(1056 * var(--u));
  margin: calc(96 * var(--u)) auto 0;
}
.article__block--tight { margin-top: calc(-24 * var(--u)); }
.article__title {
  color: #000;
  font-weight: 600;
  font-size: calc(56 * var(--u));
  line-height: calc(72 * var(--u));
}
.article__text {
  margin-top: calc(16 * var(--u));
  color: var(--c-text);
  font-size: calc(24 * var(--u));
  line-height: calc(36 * var(--u));
}
.article__text p + p { margin-top: calc(36 * var(--u)); }
.article__media { height: calc(500 * var(--u)); }
.article__pair { display: grid; grid-template-columns: 1fr 1fr; gap: calc(32 * var(--u)); }
.article__cta-title {
  color: var(--c-navy);
  font-weight: 600;
  font-size: calc(40 * var(--u));
  line-height: calc(56 * var(--u));
}
.article__btn { margin-top: calc(40 * var(--u)); }

/* ---------- Other news (title y3918, rule y4014, cards y4054) ---------- */
.other-news { margin-top: calc(160 * var(--u)); }
.other-news__head {
  position: relative;
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: calc(24 * var(--u));
}
.other-news__head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--c-border); }
.other-news .event-grid { margin-top: calc(40 * var(--u)); }

/* ==========================================================================
   TABLET + MOBILE (< 1200px)
   ========================================================================== */
@media (max-width: 1199.98px) {
  .event-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .event-card { height: auto; box-shadow: 0 0 12px rgba(0, 0, 0, 0.14); }
  .event-card__fill { left: 50%; top: 50%; width: 220%; height: auto; aspect-ratio: 1; margin: -110% 0 0 -110%; transform: translate(55%, 55%) scale(0.12); }
  .event-card__body { padding: 20px 24px 24px; }
  .event-card__date { font-size: 15px; line-height: 24px; }
  .event-card__title { width: auto; margin-bottom: 18px; font-size: 20px; line-height: 30px; }

  .news-list { padding-top: 64px; }
  .news-list__triangles { display: none; }
  .news-list__head { width: auto; padding-inline: var(--gutter); }
  .news-list .section-title, .other-news .section-title { font-size: clamp(26px, 3.6vw, 36px); line-height: 1.25; }
  .news-list__sub { width: auto; max-width: 640px; margin-top: 12px; font-size: 17px; line-height: 1.6; }
  .news-list .event-grid { margin-top: 32px; }

  .article-hero { height: auto; min-height: 520px; display: flex; align-items: flex-end; }
  .article-hero__content { position: relative; left: auto; bottom: auto; transform: none; width: calc(100% - var(--gutter) * 2); margin: 0 auto; padding: 160px 0 40px; }
  .article-hero__title { width: auto; max-width: 760px; font-size: clamp(26px, 4.4vw, 40px); line-height: 1.3; }
  .article-hero__meta { flex-wrap: wrap; row-gap: 16px; margin-top: 24px; padding-top: 20px; }
  .article-hero__date { gap: 12px; font-size: 16px; line-height: 24px; }
  .article-hero__date img { width: 36px; height: 36px; }
  .share { gap: 12px; }
  .share__label { font-size: 16px; line-height: 24px; }
  .share__list { gap: 14px; }
  .share__link { width: 24px; height: 24px; }
  .share__status { left: 0; right: auto; padding-top: 4px; font-size: 14px; line-height: 20px; }

  .article { gap: 40px; width: auto; max-width: 760px; margin-top: 56px; padding-inline: var(--gutter); }
  .article__block--tight { margin-top: -16px; }
  .article__title { font-size: clamp(24px, 3.4vw, 34px); line-height: 1.3; }
  .article__text { margin-top: 12px; font-size: 17px; line-height: 1.6; }
  .article__text p + p { margin-top: 16px; }
  .article__media { height: auto; aspect-ratio: 1056 / 500; }
  .article__pair { gap: 16px; }
  .article__pair .article__media { aspect-ratio: 512 / 500; }
  .article__cta-title { font-size: clamp(22px, 3vw, 28px); line-height: 1.35; }
  .article__btn { margin-top: 24px; }

  .other-news { margin-top: 80px; }
  .other-news__head { gap: 16px; padding-bottom: 16px; }
  .other-news .event-grid { margin-top: 24px; }
}

/* tablet only: the three "Other News" cards stay on one row */
@media (min-width: 768px) and (max-width: 1199.98px) {
  .other-news .event-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .other-news .event-card__body { padding: 16px 16px 20px; }
  .other-news .event-card__title { font-size: 17px; line-height: 26px; }
}

@media (max-width: 767.98px) {
  .event-grid { grid-template-columns: 1fr; gap: 20px; }
  .news-list .event-grid, .other-news .event-grid { max-width: 480px; margin-inline: auto; }
  .article-hero { min-height: 480px; }
  .article-hero__content { padding: 120px 0 32px; }
  .article__pair { grid-template-columns: 1fr; }
}
