.amaxa-news {
  padding-top: var(--space);
  padding-bottom: var(--space);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 24px;
}

.news-card {
  min-width: 0;
  border-radius: var(--radius);
}

.news-card-link,
.news-card-link * {
  cursor: pointer !important;
}

/* Animate the link independently of the article's entrance animation. */
.news-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
  background: #eaf2fb;
  border-radius: inherit;
  overflow: hidden;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.news-card-media {
  position: relative;
  flex: 0 0 auto;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f6f9fc;
}

.news-card-media img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.news-card-copy {
  position: relative;
  flex: 1 0 auto;
  padding: 20px 24px 60px;
}

.news-card-date {
  font-size: 10px;
  margin-bottom: 8px;
}

.news-card h3 {
  font-size: 16px;
  margin: 0 0 8px;
}

.news-card-excerpt {
  font-size: 12px;
  margin: 0;
}

.news-card-arrow {
  position: absolute;
  right: 24px;
  bottom: 24px;
  display: block;
  line-height: 1;
  color: var(--navy);
  transition:
    transform 0.3s ease,
    color 0.3s ease;
}

.news-card-link:focus-visible {
  outline: 2px solid #043673;
  outline-offset: 4px;
}

@media (hover: hover) and (pointer: fine) {
  .news-card:hover .news-card-link {
    transform: translateY(-6px);
    box-shadow: 0 14px 30px rgb(9 35 81 / 14%);
  }

  .news-card:hover .news-card-arrow {
    transform: translateX(4px);
    color: #043673;
  }
}

@media (max-width: 768px) {
  .news-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .news-card-link,
  .news-card-arrow {
    transition: none;
  }

  .news-card:hover .news-card-link,
  .news-card:hover .news-card-arrow {
    transform: none;
  }
}
