/* ============ Recent News and Upcoming Events ============ */

.news-list { display: flex; flex-direction: column; gap: 28px; }

.news-card {
  background: #fff;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-card);
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: stretch;
}

.news-media {
  position: relative;
  width: 100%;
  min-height: 100%;
  aspect-ratio: 16 / 9;
  background: var(--color-charcoal);
}
/* A story with a picture rather than a video fills the same frame. */
.news-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* A story with neither runs full width. */
.news-card-text-only { grid-template-columns: minmax(0, 1fr); }
.news-media iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.news-card-body { padding: 30px 32px 32px; }

.news-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 13px;
}
.news-meta-date {
  font-family: var(--font-heading);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--color-text-mutest);
}

.news-card-body h3 {
  font-weight: 700;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}
.news-card-body p {
  font-size: 15px;
  color: var(--color-text-muted);
  line-height: 1.65;
  max-width: 68ch;
}
.news-card-body p + p { margin-top: 12px; }

.news-card-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }

/* Empty / holding state for the events column */
.news-holding {
  background: var(--tint-sand);
  border-radius: var(--radius-panel);
  padding: 34px 36px;
}
.news-holding h3 {
  font-weight: 700;
  font-size: 19px;
  margin-bottom: 10px;
}
.news-holding p {
  font-size: 14.5px;
  color: var(--color-text-muted);
  line-height: 1.65;
  max-width: 60ch;
}
.news-holding .btn { margin-top: 20px; }

@media (max-width: 900px) {
  /* minmax(0, …), not 1fr: a plain 1fr column grew to the width of its
     longest button ("Employment Support Services") and pushed the card's
     words past its right edge on a phone, where they were cut off. */
  .news-card { grid-template-columns: minmax(0, 1fr); }
  .news-media { min-height: 0; }
}

@media (max-width: 640px) {
  .news-card-body { padding: 24px 22px 26px; }
  .news-card-body h3 { font-size: 19px; }
  .news-holding { padding: 26px 24px; }
  /* A long label wraps inside its button instead of running past the card. */
  .news-card-actions .btn,
  .news-holding .btn { white-space: normal; text-align: center; }
}
