#latest-news {
  display: grid;
  grid-template-columns: repeat(auto-fill, calc(33.33% - 17px));
  grid-gap: 25px;
  justify-content: space-between;
}

#latest-news .post-carousel-item {
  border: 1px solid var(--color-light-grey);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

#latest-news .post-carousel-item:first-child {
  grid-column: span 2;
}

#latest-news .post-carousel-item > img {
  height: 280px;
  width: 100%;
  object-fit: cover;
  object-position: center;
}

#latest-news .post-carousel-item .post-info-wrap {
  padding: 30px 30px 85px;
}

#latest-news p {
  width: 100%;
  line-height: 24px;
}

#latest-news span.read-more {
  color: #212223;
  font-size: 18px;
  font-style: normal;
  font-weight: 600;
  line-height: 22px;
  align-items: center;
  display: flex;
  padding: 2px 0px;
  position: absolute;
  bottom: 30px;
}

#latest-news span.read-more::after {
  position: absolute;
  width: 0%;
  height: 2px;
  background-color: #212223;
  bottom: -3px;
  left: 0px;
  transition: all 0.2s linear;
  content: "";
}

#latest-news .post-carousel-item:hover span.read-more::after,
#latest-news .post-carousel-item:focus span.read-more::after,
#latest-news .post-carousel-item span.read-more:focus::after {
  width: 100%;
}

#latest-news .carousel-tag-wrap {
  margin-bottom: 20px;
  display: none;
}

#latest-news .carousel-date {
  font-size: 14px;
  display: block;
  margin: 0 0 8px;
}

.news-grid {
  margin: 80px auto;
}

.news-grid .filter-buttons {
  margin-bottom: 45px;
  display: flex;
}

.news-grid .filter-buttons button {
  background-color: transparent;
  border-radius: 30px;
  line-height: 22px;
  font-size: 18px;
  font-weight: 600;
  color: var(--color-graphite);
  padding: 13px 20px;
  border: 1px solid var(--color-graphite);
  margin-right: 9px;
  cursor: pointer;
  transition: var(--transition);
}

.news-grid .filter-buttons button.active,
.news-grid .filter-buttons button:hover,
.news-grid .filter-buttons button:active {
  background-color: var(--color-graphite);
  border-color: var(--color-graphite);
  color: var(--color-white);
}

.news-grid-header {
  margin-bottom: 22px;
}

.news-grid-header h2 {
  font-size: 42px;
}

.news-grid-header a {
  font-weight: 600;
  position: relative;
  font-size: 17px;
  border: none;
  bottom: 0;
}

.news-grid-header a span {
  position: relative;
}

.news-grid-header a span::after {
  position: absolute;
  width: 0%;
  height: 2px;
  background-color: var(--color-graphite);
  bottom: -3px;
  left: 0px;
  transition: all 0.2s linear;
  content: "";
}

.news-grid-header a:hover span::after,
.news-grid-header a:focus span::after {
  width: 100%;
}

.news-grid-header a::after {
  content: "";
  display: inline-block;
  background-image: url("/wp-content/uploads/2024/07/arrow-right-graphite-small.svg");
  width: 8px;
  height: 12px;
  margin-left: 12px;
  position: relative;
  top: 1px;
}

.news-grid .button.mobile {
  display: none;
}

@media (max-width: 1080px) {
  .news-grid-header h2 {
    font-size: 36px;
  }
  #latest-news .post-carousel-item .post-info-wrap {
    padding: 38px 35px 80px 35px;
  }
}

@media (max-width: 781px) {
  .news-grid {
    margin: 55px auto;
  }
  #latest-news {
    display: flex;
    grid-gap: 16px;
    flex-wrap: wrap;
  }
  #latest-news .post-carousel-item {
    width: calc(50% - 8px);
  }
  .news-grid .filter-buttons {
    overflow-x: scroll;
    scrollbar-width: none;
  }
  .news-grid .filter-buttons button {
    flex: none;
  }
  #latest-news .post-carousel-item .post-info-wrap {
    padding: 20px 20px 75px 20px;
  }
}

@media (max-width: 639px) {
  .news-grid-header h2 {
    font-size: 32px;
    margin-bottom: 10px;
  }
  .news-grid-header a {
    display: none;
  }
  #latest-news .post-carousel-item {
    width: 100%;
  }
  .news-grid .button.mobile {
    display: block;
    text-align: center;
    margin: 35px 0 -20px;
  }
  .news-grid .button.mobile::after {
    left: 50%;
    transform: translateX(-50%);
  }
  .news-grid .button.mobile:hover::after,
  .news-grid .button.mobile:focus::after {
    width: 93px;
  }
  #latest-news .post-carousel-item > img {
    height: 240px;
  }
}