#rss-feed {
  display: grid;
  grid-template-columns: repeat(auto-fill, calc(34% - 25px));
  grid-gap: 25px;
  justify-content: space-between;
}

#rss-feed .post-carousel-item {
  border: 1px solid var(--color-light-grey);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  text-align: left;
  transition: var(--transition);
}

#rss-feed .post-carousel-item:hover,
#rss-feed .post-carousel-item:focus {
  border: 1px solid var(--color-graphite);
}

#rss-feed .post-carousel-item:first-child {
  grid-column: span 3;
  display: flex;
  justify-content: space-between;
}

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

#rss-feed .post-carousel-item:first-child > img {
  width: 40%;
  height: 100%;
}

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

#rss-feed .post-carousel-item:first-child .post-info-wrap {
  width: 60%;
  padding: 50px 50px 85px;
}

#rss-feed p {
  width: 100%;
  line-height: 24px;
}

#rss-feed div.line-hover {
  color: #212223;
  font-size: 18px;
  font-style: normal;
  font-weight: 600;
  line-height: 22px;
  align-items: center;
  display: flex;
  padding: 2px 0px;
  border-bottom: 0px solid #212223;
  position: absolute;
  bottom: 30px;
}

#rss-feed div.line-hover::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #212223;
  transition: all 0.2s ease 0s;
}

#rss-feed .post-carousel-item:hover div.line-hover::after,
#rss-feed .post-carousel-item:focus div.line-hover::after {
  width: 100%;
}

#rss-feed .post-carousel-item:first-child .post-info-wrap a {
  bottom: 50px;
}

#rss-feed .carousel-tag-wrap {
  margin-bottom: 20px;
}

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

.rss-grid-header {
  align-items: baseline;
}

.rss-grid {
  margin: 80px auto;
  text-align: center;
}

.rss-grid .filter-buttons {
  display: flex;
  align-items: baseline;
  margin-bottom: 45px;
  text-align: left;
}

.rss-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);
}

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

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

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

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

.rss-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;
}

.rss-grid .filter-buttons a.button::after {
  content: "";
  display: inline-block;
  background-image: url("/wp-content/uploads/2024/07/uil-external-link-alt.svg");
  width: 20px;
  height: 20px;
  filter: invert(1);
  position: relative;
  top: 3px;
  margin-left: 8px;
  transition: var(--transition);
}

.rss-grid .filter-buttons span {
  font-size: 18px;
  font-weight: 600;
  margin-right: 12px;
}

.rss-grid .filter-buttons a.button {
  margin-bottom: 8px;
  margin-left: 15px;
  flex: none !important;
}

.rss-grid .filter-buttons a.button:hover,
.rss-grid .filter-buttons a.button:focus {
  background-color: #042d52;
  border-color: #042d52;
  color: var(--color-white);
}

.rss-grid .filter-buttons a.button:hover::after,
.rss-grid .filter-buttons a.button:focus::after {
  filter: none;
}

#rss-feed + .button {
  margin-top: 50px;
  background-color: #042d52;
  border-color: #042d52;
  color: var(--color-white);
}

#rss-feed + .button:hover,
#rss-feed + .button:focus {
  background-color: transparent;
  border-color: var(--color-graphite);
  color: var(--color-graphite);
}

#rss-feed + .button::after {
  content: "";
  display: inline-block;
  background-image: url("/wp-content/uploads/2024/07/uil-external-link-alt.svg");
  width: 20px;
  height: 20px;
  filter: none;
  position: relative;
  top: 3px;
  margin-left: 8px;
  transition: var(--transition);
}

#rss-feed + .button:hover::after,
#rss-feed + .button:focus::after {
  filter: invert(1);
}

@media (max-width: 1080px) {
  .rss-grid-header h2 {
    font-size: 36px;
  }
}

@media (max-width: 781px) {
  #rss-feed {
    grid-template-columns: repeat(auto-fill, calc(50% - 8px));
    grid-gap: 16px;
  }
  #rss-feed .post-carousel-item {
    flex-wrap: wrap;
  }
  #rss-feed .post-carousel-item:first-child {
    grid-column: span 2;
  }
  #rss-feed .post-carousel-item:first-child > img {
    width: 100%;
    max-height: 240px;
  }
  #rss-feed .post-carousel-item:first-child .post-info-wrap {
    width: 100%;
    padding: 40px 30px 75px;
  }
  #rss-feed .post-carousel-item:first-child .post-info-wrap a {
    bottom: 40px;
  }
  .rss-grid {
    margin: 60px auto 65px;
  }
  .rss-grid .filter-buttons {
    overflow-x: scroll;
    scrollbar-width: none;
  }
}

@media (max-width: 639px) {
  #rss-feed {
    grid-gap: 16px;
    display: flex;
    flex-wrap: wrap;
  }
  .rss-grid {
    margin: 50px auto 58px;
  }
  .rss-grid-header {
    margin-bottom: 22px;
    display: block !important;
    text-align: left;
  }
  .rss-grid-header h2 {
    font-size: 32px;
  }
  .rss-grid-header img {
    max-width: 144px;
    margin-top: 10px;
  }
  #rss-feed .post-carousel-item > img {
    height: 240px;
  }
}