.sc-blocks-page--resources {
  background: #fff;
}

.sc-blocks-page--resources .sc-hero.sc-res-hero,
.sc-blocks-page--resources .sc-hero.sc-res-hero.has-global-padding {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 4.5rem 1.5rem 3.25rem;
  background-image: linear-gradient(to bottom, #008ea5, #141856);
  text-align: center;
}

.sc-blocks-page--resources .sc-res-hero .wp-block-heading,
.sc-blocks-page--resources .sc-res-hero p,
.sc-blocks-page--resources .sc-res-hero a {
  color: #fff;
}

.sc-blocks-page--resources h1.sc-hero__title,
.sc-blocks-page--resources .sc-res-hero .sc-hero__title {
  max-width: 1100px;
  margin: 0 auto;
  color: #fff;
  font-family: Poppins, Lato, sans-serif;
  font-size: clamp(2.25rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
}

.sc-blocks-page--resources .sc-res-hero .sc-hero__lede {
  max-width: 40rem;
  margin: 1rem auto 0;
  color: #fff;
  font-family: Lato, "Segoe UI", sans-serif;
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.55;
  text-align: center;
}

.sc-blocks-page--resources .sc-res,
.sc-blocks-page--resources .sc-res.has-global-padding,
.sc-blocks-page--resources .sc-res.alignfull {
  box-sizing: border-box;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 3.25rem 1.25rem 5rem;
}

.sc-res__filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.5rem 0.75rem;
  margin: 0 0 2rem;
}

.sc-res__filter {
  appearance: none;
  margin: 0;
  padding: 0.5rem 0.7rem;
  border: 0;
  border-radius: 2px;
  background: #fff;
  box-shadow: 0 4px 6px rgba(16, 24, 32, 0.12);
  color: #1071b7;
  font-family: Lato, "Segoe UI", sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-transform: uppercase;
  cursor: pointer;
}

.sc-res__filter:hover,
.sc-res__filter.is-active {
  background: #1071b7;
  color: #fff;
}

.sc-res__grid,
.wp-block-group.sc-res__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem 1.5rem;
}

.sc-res-card,
.wp-block-group.sc-res-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin: 0;
  padding: 0;
  background: transparent;
  color: #1e1e1e;
}

.sc-res-card.is-hidden {
  display: none;
}

.sc-res-card .sc-res-card__media,
.sc-res-card .wp-block-image.sc-res-card__media {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  margin: 0 0 1rem;
  padding: 1rem;
  background: #f3f4f6;
}

.sc-res-card .sc-res-card__media::before {
  content: "";
  display: block;
  padding-top: 100%;
}

.sc-res-card .sc-res-card__media img {
  position: absolute;
  inset: 1rem;
  width: calc(100% - 2rem);
  height: calc(100% - 2rem);
  object-fit: contain;
}

.sc-res-card__badge {
  position: absolute;
  top: 1.35rem;
  right: 1.35rem;
  z-index: 1;
  margin: 0;
  padding: 0.25rem 0.5rem;
  border-radius: 2px;
  background: #fff;
  color: #1071b7;
  font-family: Lato, "Segoe UI", sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-transform: uppercase;
}

.sc-blocks-page--resources h3.sc-res-card__title,
.sc-res-card__title {
  margin: 0 0 0.75rem;
  color: #1e1e1e;
  font-family: Lato, "Segoe UI", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
}

.sc-res-card__text {
  margin: 0;
  color: #1e1e1e;
  font-family: Lato, "Segoe UI", sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
}

.sc-res-card__link {
  position: absolute;
  inset: 0;
  z-index: 2;
  text-indent: -9999px;
  overflow: hidden;
}

.sc-res-card:hover .sc-res-card__title {
  color: #1071b7;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 980px) {
  .sc-res__grid,
  .wp-block-group.sc-res__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .sc-res__grid,
  .wp-block-group.sc-res__grid {
    grid-template-columns: 1fr;
  }
}
