.resources-page-template {
  background: #ffffff;
}

.resources-page-template .content-block--injected[data-injected="about-hero"] {
  margin-top: -20px;
}

.resources-page-template__intro {
  padding: clamp(56px, 8vw, 112px) 0 clamp(48px, 7vw, 92px);
}

.resources-page-template__intro-inner {
  width: min(1290px, calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(320px, 460px) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
}

.resources-page-template__intro--no-image .resources-page-template__intro-inner {
  grid-template-columns: minmax(0, 1fr);
}

.resources-page-template__media {
  position: relative;
  min-height: 460px;
}

.resources-page-template__media-primary,
.resources-page-template__media-secondary {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 18px 42px rgba(21, 50, 75, 0.16);
  background: transparent;
  transition: transform 280ms ease, box-shadow 280ms ease;
  will-change: transform;
}

.resources-page-template__media-primary {
  width: min(100%, 420px);
  aspect-ratio: 4 / 5;
}

.resources-page-template__media-secondary {
  width: min(62%, 240px);
  aspect-ratio: 4 / 4.2;
  position: absolute;
  right: 0;
  bottom: -24px;
}

.resources-page-template__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 380ms ease;
}

.resources-page-template__content {
  max-width: 640px;
  transition: transform 280ms ease;
  will-change: transform;
}

.resources-page-template__eyebrow {
  margin: 0;
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  background: #040c2f;
  color: #ffffff;
  font-family: var(--body-regular-font-family, "Inter-Regular", sans-serif);
  font-size: 12px;
  letter-spacing: 0.1em;
  font-weight: 600;
  text-transform: uppercase;
}

.resources-page-template__title {
  margin: 18px 0 0;
  color: #22313f;
  font-family: var(--headings-h2-font-family, "JosefinSans-Regular", sans-serif);
  font-size: clamp(40px, 4.2vw, 60px);
  line-height: 1.04;
  font-weight: var(--headings-h2-font-weight, 400);
}

.resources-page-template__body {
  margin-top: 18px;
  color: #22313f;
  max-width: 620px;
  font-family: var(--body-regular-font-family, "Inter-Regular", sans-serif);
  font-size: var(--body-regular-font-size, 16px);
  line-height: var(--body-regular-line-height, 160%);
  font-weight: var(--body-regular-font-weight, 400);
}

.resources-page-template__body p {
  margin: 0 0 14px;
}

.resources-page-template__body p:last-child {
  margin-bottom: 0;
}

.resources-page-template__cta {
  margin-top: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 26px;
  border-radius: 12px;
  background: #040c2f;
  color: #ffffff;
  font-family: var(--body-regular-font-family, "Inter-Regular", sans-serif);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 180ms ease, opacity 180ms ease, background-color 180ms ease;
}

.resources-page-template__cta:hover,
.resources-page-template__cta:focus-visible {
  color: #ffffff;
  background: #0d1744;
  transform: translateY(-1px);
  opacity: 0.96;
}

.resources-page-template__sections {
  padding: clamp(40px, 6vw, 88px) 0 clamp(52px, 7vw, 104px);
}

.resources-page-template__sections-inner {
  width: min(1290px, calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  gap: clamp(40px, 6vw, 72px);
}

.resources-page-template__sections .child-h2-stack__inner {
  width: min(820px, 100%);
}

.resources-page-template .child-h2-stack__accordion-list {
  margin-top: 14px;
  border: 1px solid #d5deea;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(180deg, #f9fbfd 0%, #f4f8fc 100%);
}

.resources-page-template .child-h2-stack .accordion__item {
  border-bottom: 1px solid #d5deea;
  background: transparent;
  transition: background-color 220ms ease, border-color 220ms ease, transform 220ms ease;
}

.resources-page-template .child-h2-stack .accordion__item:last-child {
  border-bottom: 0;
}

.resources-page-template .child-h2-stack .accordion__question {
  padding: 16px 20px;
}

.resources-page-template .child-h2-stack .accordion__item.is-open {
  background: #ffffff;
}

.resources-page-template .child-h2-stack .accordion__item:hover {
  background: #ffffff;
  border-bottom-color: #c8d4e3;
  transform: translateX(2px);
}

.resources-page-template .child-h2-stack .accordion__item.is-open .accordion__question {
  border-left: 3px solid #2f80b7;
  padding-left: 17px;
}

.resources-page-template .child-h2-stack .accordion__answer-text {
  padding: 0 20px 20px;
}

.resources-page-template .child-h2-stack .accordion__icon {
  color: #15324b;
  opacity: 0.92;
}

.resources-page-template__media-primary:hover,
.resources-page-template__media-secondary:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 52px rgba(21, 50, 75, 0.22);
}

.resources-page-template__media-primary:hover .resources-page-template__image,
.resources-page-template__media-secondary:hover .resources-page-template__image {
  transform: scale(1.035);
}

.resources-page-template__intro-inner:hover .resources-page-template__content {
  transform: translateY(-2px);
}

.resources-page-template__media-primary,
.resources-page-template__media-secondary,
.resources-page-template__content,
.resources-page-template__sections .child-h2-stack {
  opacity: 0;
  transform: translateY(20px);
}

.resources-page-template__media-primary {
  animation: resources-reveal-up 620ms cubic-bezier(0.2, 0.8, 0.2, 1) 60ms forwards;
}

.resources-page-template__media-secondary {
  animation: resources-reveal-up 620ms cubic-bezier(0.2, 0.8, 0.2, 1) 180ms forwards;
}

.resources-page-template__content {
  animation: resources-reveal-up 700ms cubic-bezier(0.2, 0.8, 0.2, 1) 140ms forwards;
}

.resources-page-template__sections .child-h2-stack {
  animation: resources-reveal-up 680ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.resources-page-template__sections .child-h2-stack:nth-child(1) { animation-delay: 220ms; }
.resources-page-template__sections .child-h2-stack:nth-child(2) { animation-delay: 320ms; }
.resources-page-template__sections .child-h2-stack:nth-child(3) { animation-delay: 420ms; }
.resources-page-template__sections .child-h2-stack:nth-child(4) { animation-delay: 520ms; }
.resources-page-template__sections .child-h2-stack:nth-child(5) { animation-delay: 620ms; }
.resources-page-template__sections .child-h2-stack:nth-child(6) { animation-delay: 720ms; }

@keyframes resources-reveal-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .resources-page-template__media-primary,
  .resources-page-template__media-secondary,
  .resources-page-template__content,
  .resources-page-template__sections .child-h2-stack {
    animation: none !important;
    opacity: 1;
    transform: none;
  }

  .resources-page-template__media-primary,
  .resources-page-template__media-secondary,
  .resources-page-template__content,
  .resources-page-template__image,
  .child-h2-stack__inner {
    transition: none !important;
  }
}

@media (max-width: 1099px) {
  .resources-page-template .content-block--injected[data-injected="about-hero"] {
    margin-top: -30px;
  }

  .resources-page-template__intro-inner {
    width: min(1290px, calc(100% - 32px));
    grid-template-columns: minmax(0, 1fr);
  }

  .resources-page-template__media {
    min-height: 0;
    width: min(520px, 100%);
    margin: 0 auto;
    padding-bottom: 84px;
  }

  .resources-page-template__media-primary {
    width: min(100%, 460px);
  }

  .resources-page-template__media-secondary {
    width: min(58%, 240px);
    right: -4px;
    bottom: 0;
  }

  .resources-page-template__sections-inner {
    width: min(1290px, calc(100% - 32px));
  }
}

@media (max-width: 640px) {
  .resources-page-template__intro {
    padding-top: 44px;
  }

  .resources-page-template__intro-inner,
  .resources-page-template__sections-inner {
    width: min(1290px, calc(100% - 24px));
  }

  .resources-page-template__media {
    width: 100%;
    padding-bottom: 68px;
  }

  .resources-page-template__media-primary {
    width: min(100%, 360px);
  }

  .resources-page-template__media-secondary {
    width: min(56%, 196px);
  }

  .resources-page-template__title {
    font-size: clamp(34px, 11vw, 46px);
  }

  .resources-page-template__cta {
    width: 100%;
    max-width: 280px;
  }
}
