.news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.news-grid .news-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid #dee2e6;
  border-radius: 10px;
  background: #fff;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.news-grid .news-card__thumb {
  display: flex;
  flex-direction: column;
  background: #f0f2f5;
}

.news-grid .news-card__img {
  display: block;
  order: 1;
  width: 100%;
  aspect-ratio: 8 / 5;
  object-fit: cover;
}

.news-grid .news-card__date-badge {
  position: static;
  order: 2;
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  width: auto;
  margin: 0.65rem 1.25rem 0;
  padding: 0;
  color: #64748b;
  background: transparent;
  box-shadow: none;
  font-size: 0.8125rem;
  line-height: 1.4;
  font-weight: 500;
}

.news-grid .news-card__date-day,
.news-grid .news-card__date-mon {
  display: inline;
  font-size: inherit;
  line-height: inherit;
  font-weight: inherit;
}

.news-grid .news-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 0.25rem 1.25rem 1.25rem;
}

.news-grid .news-card__title {
  display: -webkit-box;
  min-height: calc(1.4em * 3);
  margin: 0 0 0.75rem;
  overflow: hidden;
  color: #1a1d23;
  font-size: 1.125rem;
  line-height: 1.4;
  font-weight: 700;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.news-grid .news-card__title a {
  color: inherit;
  text-decoration: none;
}

.news-grid .news-card__title a:hover {
  color: #0056b3;
}

.news-grid .news-card__excerpt {
  display: -webkit-box;
  min-height: calc(1.6em * 3);
  margin: 0 0 1rem;
  overflow: hidden;
  color: #475569;
  font-size: 0.9375rem;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.news-grid .news-card__more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  margin-top: auto;
  color: #0056b3;
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: none;
}

.news-grid .news-card__more svg {
  display: none;
}

.news-grid .news-card__more::after {
  content: "→";
  transition: transform 160ms ease;
}

@media (min-width: 640px) {
  .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .news-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
  }
}

@media (hover: hover) and (pointer: fine) {
  .news-grid .news-card:hover {
    transform: translateY(-4px);
    border-color: #cbd5e1;
    box-shadow: 0 14px 28px -16px rgba(15, 23, 42, 0.28);
  }

  .news-grid .news-card:hover .news-card__more::after {
    transform: translateX(3px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .news-grid .news-card,
  .news-grid .news-card__more::after {
    transition: none !important;
    transform: none !important;
  }
}

@media (max-width: 639px) {
  .news-grid .news-card__body {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .news-grid .news-card__date-badge {
    margin-left: 1rem;
  }
}


/* Scoped archive card UI for the shared News archive renderer. */
.news-grid-v2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
}

.news-grid-v2 .news-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid #d7e0e8;
  border-radius: 10px;
  background: #fff;
  color: #0f2742;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.news-grid-v2 .news-card__thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #edf3f7;
}

.news-grid-v2 .news-card__img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.news-grid-v2 .news-card__date-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  gap: 5px;
  align-items: baseline;
  padding: 5px 9px;
  border-radius: 999px;
  color: #fff;
  background: rgba(15, 39, 66, 0.88);
  font-size: 12px;
  line-height: 1;
  font-weight: 700;
}

.news-grid-v2 .news-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 20px;
}

.news-grid-v2 .news-card__badge {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  min-height: 24px;
  margin: 0 0 10px;
  padding: 4px 9px;
  border: 1px solid #b7ddd9;
  border-radius: 999px;
  color: #0d6f6a;
  background: #eef9f7;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.news-grid-v2 .news-card__title {
  display: -webkit-box;
  min-height: calc(1.4em * 2);
  margin: 0 0 10px;
  overflow: hidden;
  color: #0f2742;
  font-size: 18px;
  line-height: 1.4;
  font-weight: 800;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.news-grid-v2 .news-card__title a {
  color: inherit;
  text-decoration: none;
}

.news-grid-v2 .news-card__title a:hover {
  color: #0d6f6a;
}

.news-grid-v2 .news-card__excerpt {
  display: -webkit-box;
  min-height: calc(1.6em * 3);
  margin: 0 0 14px;
  overflow: hidden;
  color: #52677a;
  font-size: 15px;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.news-grid-v2 .news-card__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  margin-top: auto;
  color: #0d6f6a;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
}

.news-grid-v2 .news-card__more::after,
.news-featured-card__link::after {
  content: "→";
}

.news-grid-v2 .news-card__more svg,
.news-featured-card__link svg {
  display: none;
}

.news-featured-card__badge {
  color: #fff;
  background: #0f2742;
}

.news-featured-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  color: #0d6f6a;
  font-weight: 800;
}

.news-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
}

.news-pagination .page-numbers {
  display: inline-flex;
  width: 40px;
  min-width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid #c7d4df;
  border-radius: 6px;
  color: #0f2742;
  background: #fff;
  font-weight: 700;
  text-decoration: none;
}

.news-pagination .page-numbers.current,
.news-pagination .page-numbers:hover {
  color: #fff;
  border-color: #0f2742;
  background: #0f2742;
}

.news-pagination .page-numbers:focus-visible,
.news-grid-v2 a:focus-visible,
.news-featured-card a:focus-visible {
  outline: 3px solid #13a8a0;
  outline-offset: 3px;
}

@media (min-width: 768px) {
  .news-grid-v2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .news-grid-v2 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (hover: hover) and (pointer: fine) {
  .news-grid-v2 .news-card:hover {
    transform: translateY(-4px);
    border-color: #9fc6c8;
    box-shadow: 0 14px 28px -16px rgba(15, 39, 66, 0.3);
  }
}

@media (prefers-reduced-motion: reduce) {
  .news-grid-v2 .news-card,
  .news-grid-v2 .news-card__more::after {
    transition: none !important;
    transform: none !important;
  }
}

@media (max-width: 767px) {
  .news-grid-v2 {
    gap: 16px;
  }

  .news-grid-v2 .news-card__body {
    padding: 16px;
  }

  .news-grid-v2 .news-card__title {
    font-size: 17px;
  }
}
