.news-archive {
  margin: 0;
}

.news-archive__header h2 {
  border-bottom: 1px solid #d5d4d4;
  color: #58c1ac;
  margin-bottom: 1.5rem;
  padding-bottom: 10px;
  font-size: 3rem;
}

.featured-posts-section {
  margin: 2rem 0;
}

.featured-posts-grid {
  display: grid;
  gap: 30px;
  grid-template-columns: 1fr;
}

@media (min-width: 769px) {
  .featured-posts-grid {
    grid-template-columns: 76.5fr 24fr;
    grid-template-rows: 1fr 1fr;
  }

  .featured-posts-grid.featured-posts-count-1 {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
  }

  .featured-posts-grid.featured-posts-count-2 {
    grid-template-columns: 76.5fr 24fr;
    grid-template-rows: 1fr;
  }
}

.featured-post {
  background: #f4f4f4;
  overflow: hidden;
  transition: all 0.3s ease;
}

.featured-post:hover {
  box-shadow: 0 8px 24px rgba(66, 147, 131, 0.51);
  transform: translateY(-2px);
}

.featured-post-link {
  color: inherit;
  display: block;
  text-decoration: none;
}
.featured-post-link:hover *, .featured-post-link * {
  color: #000;
}
.featured-post-link:hover .featured-post-title {
  text-decoration: underline;
}
.featured-post.featured-post-hero:hover *, .featured-post.featured-post-hero * {
  color: #fff;
}
.featured-post.featured-post-hero {
  background: no-repeat top center;
  background-size: cover;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 400px;
  position: relative;
}

.featured-post.featured-post-hero::after {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 10%, rgba(0, 0, 0, 1) 80%);
  bottom: 0;
  content: "";
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}

@media (min-width: 769px) {
  .featured-post.featured-post-hero {
    grid-row: 1 / 3;
  }

  .featured-posts-count-1 .featured-post.featured-post-hero,
  .featured-posts-count-2 .featured-post.featured-post-hero {
    grid-row: 1;
  }
}

.featured-post.featured-post-hero.featured-post-hero-no-image {
  background: #0097a9;
}

.featured-post.featured-post-hero.featured-post-hero-no-image::after {
  display: none;
}

.featured-post.featured-post-hero h2.featured-post-title {
  font-size: 2.5rem;
}

.featured-post-image img {
  display: block;
  width: 100%;
  object-fit: cover;
}

.featured-post-content {
  padding: 1rem;
  position: relative;
  z-index: 2;
}

.featured-post-date {
  font-family: "Open Sans", sans-serif;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.featured-post-title {
  font-size: 1.6rem;
  margin: 0;
}

.featured-post-excerpt {
  margin-top: 0.75rem;
}

.news-archive-grid {
  display: grid;
  gap: 30px;
  grid-template-columns: 1fr;
  margin-bottom: 2rem;
}

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

@media (min-width: 1200px) {
  .news-archive-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.news-archive-card {
  background: #f4f4f4; 
  display: flex;
  overflow: hidden;
}

.news-archive-card__link {
  color: inherit;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  width: 100%;
}

.news-archive-card {
  transition: all 0.3s ease;
}

.news-archive-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(66, 147, 131, 0.51);
}


.news-archive-card__link:hover *, .news-archive-card__link * {
  color: #000;
}

.news-archive-card__link:hover .news-archive-card__title {
  text-decoration: underline;
}

.news-archive-card__image img {
  display: block;
  height: 220px;
  object-fit: cover;
  width: 100%;
}

.news-archive-card__content {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem;
}

.news-archive-card__date {
  font-family: "Open Sans", sans-serif;
  font-size: 0.8125rem;
  margin: 0;
}

.news-archive-card__title {
  font-size: 1.6rem;
  margin: 0;
}

.news-archive-card__excerpt {
  margin: 0;
}

.news-archive-pagination {
  margin: 0 0 2rem;
}

.news-archive-pagination ul {
  display: flex;
  gap: 0.4rem;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.news-archive-pagination a,
.news-archive-pagination span {
  border: 1px solid #58595B;
  color: #58595B;
  display: inline-flex;
  min-height: 34px;
  min-width: 34px;
  padding: 0.25rem 0.5rem;
  text-decoration: none;
  align-items: center;
  justify-content: center;
}

.news-archive-pagination .current, .news-archive-pagination a:hover {
  background: #D6D9DB;
  color: #000;
}
