.giving-page {
  background: #f4f9fd;
}

.giving-signpost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 11px;
  margin-bottom: 18px;
  border: 1px solid #ffd16b70;
  border-radius: 50px;
  background: #102641d9;
  color: #ffdb86;
  font-size: 12px;
  font-weight: 600;
}

.giving-signpost .icon {
  width: 17px;
  height: 17px;
}

.giving-availability {
  display: block;
  width: fit-content;
  margin-top: 9px;
  color: #f1ddb0;
  font-size: 11px;
}

.giving-hero {
  position: relative;
  padding: clamp(118px, 10vw, 155px) 0 clamp(47px, 6vw, 88px);
  background: radial-gradient(ellipse at 78% 24%, #12466e, #071d38 65%);
  color: #fff;
}

.giving-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .9fr);
  align-items: center;
  gap: clamp(30px, 5vw, 72px);
}

.giving-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin: 0 0 24px;
  color: #48657e;
  font-size: 12px;
}

.giving-breadcrumb a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.giving-hero .giving-breadcrumb {
  color: #b9def2;
}

.giving-hero h1,
.giving-checkout h1 {
  margin: 0;
  font-weight: 800;
  font-size: clamp(38px, 4.65vw, 72px);
  line-height: 1.08;
  letter-spacing: -.055em;
  text-wrap: balance;
}

.giving-hero h1 em {
  color: #ffdb86;
}

.giving-hero p {
  max-width: 52ch;
  margin: 18px 0 24px;
  color: #e1eef9;
  font-size: 14px;
  line-height: 1.8;
}

.button.giving-primary {
  gap: 16px;
  background: linear-gradient(110deg, #ffe7aa, #ffc95d);
  border-color: #ffe9ad;
  color: #0b2743;
  box-shadow: 0 7px 24px #06162b59;
}

.button.giving-primary:hover {
  box-shadow: 0 10px 24px #ffc95d42;
}

.button.giving-primary .icon {
  width: 18px;
  height: 18px;
}

.button.giving-primary:focus-visible {
  outline-color: #ffe49d;
}

.giving-visual {
  align-self: center;
  margin: 0;
  overflow: hidden;
  border: 1px solid #7bbfe354;
  border-radius: 22px;
  background: #0c2c4d;
  box-shadow: 0 16px 54px #00122759;
}

.giving-photo {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
}

.giving-photo-base {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.giving-display {
  position: absolute;
  inset: 0;
}

.giving-display img {
  position: absolute;
  display: block;
  object-fit: contain;
}

.giving-photo--tablet .giving-display {
  background: #0a1d4b;
  clip-path: polygon(31% 16%, 90.8% 15.9%, 90.1% 71.9%, 30.9% 70.5%);
}

.giving-photo--tablet .giving-display img {
  inset: 16% auto auto 30.9%;
  width: 59.9%;
  height: 55%;
  transform: skewY(.4deg);
}

.giving-photo--classroom .giving-display {
  background: #0a1d4b;
  /* Follow the screen and exclude the instructor's hand and the two heads in front of it. */
  clip-path: polygon(
    10.75% 14%, 63.3% 16.2%, 63.3% 51.5%, 62% 54.5%, 59% 52%, 55.25% 49.3%,
    54.7% 47.1%, 53.5% 44.5%, 52.9% 44.5%, 52.95% 46.65%, 50.3% 45.9%, 49.52% 46%,
    49.52% 47.05%, 50.35% 48.1%, 51.2% 50.6%, 53.25% 52.25%, 55.1% 52.5%, 57.8% 55.6%,
    61.45% 60.3%, 63.3% 60.7%, 63.3% 62.5%, 54.25% 62.5%, 53.7% 62%, 52% 61.8%,
    50.3% 62.1%, 49.2% 62.5%, 14.6% 62.8%, 14.85% 59.4%, 14.8% 56.65%, 13.9% 55.4%,
    12.4% 54.6%, 10.75% 54.5%
  );
}

.giving-photo--classroom .giving-display img {
  inset: 14.2% auto auto 10.8%;
  width: 52.5%;
  height: 49%;
  transform: skewY(1.5deg);
}

.giving-visual figcaption {
  display: grid;
  gap: 3px;
  padding: 14px 17px;
  color: #d6e8f7;
  font-size: 12px;
}

.giving-visual figcaption strong {
  color: #fff;
  font-size: 14px;
}

.giving-priorities li {
  border-top: 3px solid #e9ad36;
}

.giving-example {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(20px, 4vw, 54px);
  margin-top: 32px;
  padding: clamp(15px, 2.4vw, 28px);
  border-radius: 16px;
  border: 1px solid #c8e0f0;
  background: #e8f4fc;
}

.giving-photo--classroom {
  border-radius: 11px;
}

.giving-example h3 {
  margin: 0;
  font-size: clamp(19px, 2.3vw, 27px);
  line-height: 1.2;
}

.giving-example p {
  max-width: 75ch;
  margin: 10px 0 0;
  color: #3e5d75;
}

.giving-example .text-link,
.giving-back {
  min-height: 44px;
  color: #0067a9;
}

.giving-example .text-link {
  margin-top: 8px;
}

.giving-next {
  padding: clamp(36px, 6vw, 84px) 0;
  border-bottom: 1px solid #254565;
  background: radial-gradient(ellipse at 84% 20%, #153c61, #081e39 68%);
  color: #fff;
}

.giving-next > .container {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(27px, 6vw, 88px);
}

.giving-next h2 {
  margin: 0;
  font-size: clamp(31px, 3.9vw, 56px);
  line-height: 1.08;
  letter-spacing: -.05em;
}

.giving-next h2 em {
  color: #ffdb86;
}

.giving-next-copy > p {
  max-width: 46ch;
  margin: 16px 0 21px;
  color: #e1eef9;
  font-size: 14px;
  line-height: 1.7;
}

.giving-next-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  object-position: center 46%;
  border: 1px solid #f6ce7859;
  border-radius: 18px;
  box-shadow: 0 16px 44px #06132965;
}

.giving-checkout {
  min-height: max(580px, calc(100svh - 80px));
  padding-block: clamp(115px, 12vw, 162px) 60px;
}

.giving-checkout > .giving-breadcrumb,
.giving-checkout-panel {
  max-width: 760px;
  margin-inline: auto;
}

.giving-emblem {
  display: grid;
  place-items: center;
  width: 45px;
  height: 45px;
  margin-bottom: 16px;
  border-radius: 13px;
  background: #fff1cb;
  color: #775019;
}

.giving-checkout-panel {
  padding: clamp(20px, 5vw, 58px);
  border: 1px solid #c8e0f0;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 16px 50px #0c416214;
}

.giving-checkout-intro {
  max-width: 48ch;
  margin-top: 14px;
  color: #3e5d75;
}

.giving-status {
  margin: 24px 0 14px;
  padding: 15px 18px;
  border-left: 3px solid #eab547;
  border-radius: 0 10px 10px 0;
  background: #fff6e3;
  color: #544220;
}

.giving-status h2 {
  margin: 0 0 5px;
  color: #3f3118;
  font-size: 17px;
  line-height: 1.25;
  letter-spacing: -.02em;
}

.giving-status p {
  margin: 0;
  font-size: 13px;
}

.giving-back .icon {
  transform: rotate(180deg);
}

@media (max-width: 800px) {
  .giving-layout,
  .giving-next > .container {
    grid-template-columns: 1fr;
  }

  .giving-next-photo {
    aspect-ratio: 3 / 2;
  }

  .giving-visual {
    max-width: 560px;
  }

  .giving-priorities {
    grid-template-columns: 1fr;
  }

  .giving-example {
    grid-template-columns: 1fr;
  }
}
