/* Block 08: one integrated educational program. */
.gd37-program {
  position: relative;
  min-height: 1150px;
  overflow: hidden;
  color: var(--gd37-ink);
  background: var(--gd37-cream);
}

.gd37-program__top-wave {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  width: 100%;
  height: 66px;
}

.gd37-program__inner {
  position: relative;
  z-index: 2;
  padding-top: 78px;
}

.gd37-program__header {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(440px, .85fr);
  align-items: start;
  gap: 78px;
}

.gd37-program__header > * {
  min-width: 0;
}

.gd37-program__kicker,
.gd37-program-directions__kicker,
.gd37-program-more__kicker {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  margin: 0 0 14px;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.gd37-program__kicker {
  background: #ddf6f8;
}

.gd37-program__kicker span,
.gd37-program-directions__kicker span,
.gd37-program-more__kicker span {
  flex: 0 0 11px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--gd37-blue);
}

.gd37-program__title {
  margin: 0;
  font-family: "Adigiana 2", cursive;
  font-size: clamp(46px, 4vw, 58px);
  font-weight: 400;
  line-height: 1.08;
}

.gd37-program__title span {
  color: var(--gd37-orange-strong);
}

.gd37-program__underline {
  display: block;
  width: 540px;
  max-width: 90%;
  height: 15px;
  margin-top: 3px;
  border-bottom: 6px solid var(--gd37-yellow);
  border-radius: 0 0 68% 48%;
  transform: rotate(-.8deg);
}

.gd37-program__intro {
  margin: 34px 0 0;
  font-size: 17px;
  line-height: 1.8;
}

.gd37-program__main {
  display: grid;
  grid-template-columns: minmax(0, 680px) minmax(0, 1fr);
  align-items: start;
  gap: 48px;
  margin-top: 18px;
}

.gd37-program-photo {
  --program-outer-mask: none;
  --program-inner-mask: none;
  --program-photo-accent: #8ed7df;
  position: relative;
  margin: 0;
}

.gd37-program-photo__frame,
.gd37-program-photo__media,
.gd37-program-photo__outline {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.gd37-program-photo__frame {
  z-index: 0;
  background: var(--program-photo-accent);
  -webkit-mask: var(--program-outer-mask) center / 100% 100% no-repeat;
  mask: var(--program-outer-mask) center / 100% 100% no-repeat;
}

.gd37-program-photo__media {
  z-index: 1;
  overflow: hidden;
  background: #d9e5df;
  -webkit-mask: var(--program-inner-mask) center / 100% 100% no-repeat;
  mask: var(--program-inner-mask) center / 100% 100% no-repeat;
}

.gd37-program-photo__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gd37-program-photo__outline {
  z-index: 2;
  object-fit: fill;
  pointer-events: none;
}

.gd37-program-photo--main {
  --program-outer-mask: url("masks/program-main-outer.svg");
  --program-inner-mask: url("masks/program-main-inner.svg");
  width: 100%;
  height: 500px;
}

.gd37-program-photo--main .gd37-program-photo__media img {
  object-position: center 52%;
}

.gd37-program-photo--main figcaption {
  position: absolute;
  right: 38px;
  bottom: 18px;
  left: 38px;
  z-index: 3;
  display: flex;
  min-height: 92px;
  align-items: center;
  gap: 20px;
  padding: 16px 42px;
  border-radius: 51% 49% 45% 55% / 36% 54% 46% 64%;
  background: rgba(255, 253, 248, .98);
}

.gd37-program-photo__dot {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gd37-blue);
}

.gd37-program-photo--main figcaption > span:last-child {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.gd37-program-photo--main figcaption strong {
  font-family: "Adigiana 2", cursive;
  font-size: 25px;
  font-weight: 400;
  line-height: 1.05;
}

.gd37-program-photo--main figcaption small {
  margin-top: 10px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.35;
  text-transform: uppercase;
}

.gd37-program-directions {
  position: relative;
  min-width: 0;
  padding-top: 4px;
}

.gd37-program-directions__kicker {
  position: relative;
  z-index: 2;
  min-width: 355px;
  margin-bottom: 18px;
  background: #e8f4df;
}

.gd37-program-directions__kicker span {
  background: var(--gd37-green);
}

.gd37-program-directions__route {
  position: absolute;
  top: 63px;
  right: 8px;
  z-index: 0;
  width: calc(100% - 16px);
  height: 365px;
}

.gd37-program-directions__list {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 48px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.gd37-program-direction {
  --program-direction-accent: var(--gd37-blue);
  display: grid;
  min-width: 0;
  min-height: 49px;
  grid-template-columns: 26px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  border-bottom: 4px solid var(--program-direction-accent);
}

.gd37-program-direction__number {
  color: var(--program-direction-accent);
  font-size: 10px;
  font-weight: 800;
}

.gd37-program-direction strong {
  min-width: 0;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
}

.gd37-program-direction--orange { --program-direction-accent: var(--gd37-orange-strong); }
.gd37-program-direction--blue { --program-direction-accent: var(--gd37-blue); }
.gd37-program-direction--green { --program-direction-accent: var(--gd37-green); }
.gd37-program-direction--yellow { --program-direction-accent: var(--gd37-yellow); }
.gd37-program-direction--sand { --program-direction-accent: #e8b75d; }

.gd37-program-direction:last-child {
  width: calc(50% - 24px);
  grid-column: 1 / -1;
  justify-self: center;
}

.gd37-program-directions__summary {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  margin: 15px 0 0;
  font-family: "Adigiana 2", cursive;
  font-size: 24px;
  line-height: 1.15;
}

.gd37-program-directions__summary strong {
  font-weight: 400;
}

.gd37-program-directions__summary span {
  margin-top: 4px;
  color: var(--gd37-orange-strong);
}

.gd37-program-more {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  min-height: 362px;
  background: #eaf5e1;
  border-radius: 50% 50% 0 0 / 8% 8% 0 0;
}

.gd37-program-more__inner {
  display: grid;
  min-height: 362px;
  grid-template-columns: 600px minmax(0, 1fr) 225px;
  align-items: center;
  gap: 24px;
  padding-top: 26px;
  padding-bottom: 25px;
}

.gd37-program-more__photos {
  position: relative;
  align-self: stretch;
  min-height: 315px;
}

.gd37-program-photo--chess {
  --program-photo-accent: #f7a76f;
  --program-outer-mask: url("masks/program-chess-outer.svg");
  --program-inner-mask: url("masks/program-chess-inner.svg");
  position: absolute;
  top: 19px;
  left: -15px;
  width: 295px;
  height: 298px;
}

.gd37-program-photo--art {
  --program-outer-mask: url("masks/program-art-outer.svg");
  --program-inner-mask: url("masks/program-art-inner.svg");
  position: absolute;
  top: -1px;
  left: 265px;
  width: 335px;
  height: 316px;
}

.gd37-program-photo--chess .gd37-program-photo__media img,
.gd37-program-photo--art .gd37-program-photo__media img {
  object-position: center;
}

.gd37-program-more__content {
  min-width: 0;
  align-self: center;
}

.gd37-program-more__kicker {
  margin-bottom: 20px;
  background: var(--gd37-paper);
}

.gd37-program-more__kicker span {
  background: var(--gd37-green);
}

.gd37-program-more__content h3 {
  margin: 0;
  font-family: "Adigiana 2", cursive;
  font-size: 32px;
  font-weight: 400;
  line-height: 1.18;
}

.gd37-program-more__content h3 span {
  color: var(--gd37-orange-strong);
}

.gd37-program-more__underline {
  display: block;
  width: 410px;
  max-width: 94%;
  height: 14px;
  margin-top: 4px;
  border-bottom: 6px solid var(--gd37-yellow);
  border-radius: 0 0 68% 48%;
  transform: rotate(.6deg);
}

.gd37-program-more__list {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 25px;
  margin: 17px 0 0;
  padding: 0;
  list-style: none;
}

.gd37-program-more__list li {
  position: relative;
  padding-left: 18px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.gd37-program-more__list li::before {
  position: absolute;
  top: .42em;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gd37-blue);
  content: "";
}

.gd37-program-more__list li:nth-child(2)::before { background: var(--gd37-orange-strong); }
.gd37-program-more__list li:nth-child(4)::before { background: var(--gd37-yellow); }
.gd37-program-more__list li:nth-child(5)::before { background: var(--gd37-green); }

.gd37-page .gd37-program-more__cta {
  display: flex;
  min-height: 70px;
  align-items: center;
  justify-content: space-between;
  align-self: center;
  padding: 0 28px 0 38px;
  border-radius: 999px;
  color: #fff;
  background: var(--gd37-orange-strong);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  transition: transform .2s ease, background-color .2s ease;
}

.gd37-page .gd37-program-more__cta:hover,
.gd37-page .gd37-program-more__cta:focus-visible {
  color: #fff;
  background: #e96b11;
  transform: translateY(-2px);
}

.gd37-page .gd37-program-more__cta span {
  font-size: 31px;
  font-weight: 400;
  line-height: 1;
}

.gd37-program__sprout {
  position: absolute;
  top: 74px;
  right: 64px;
  z-index: 1;
  width: 95px;
  height: 86px;
}

.gd37-program__dot {
  position: absolute;
  top: 202px;
  right: 42px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gd37-green);
}

@media (max-width: 1280px) {
  .gd37-program__main {
    grid-template-columns: minmax(0, 56%) minmax(0, 44%);
    gap: 28px;
  }

  .gd37-program-directions__list { column-gap: 28px; }
  .gd37-program-direction strong { font-size: 14px; }
  .gd37-program-more__inner { grid-template-columns: 48% minmax(0, 1fr) 190px; }
  .gd37-program-photo--chess { width: 47%; }
  .gd37-program-photo--art { left: 42%; width: 56%; }
}

@media (max-width: 1020px) {
  .gd37-program {
    min-height: 0;
  }

  .gd37-program__header {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .gd37-program__intro {
    margin-top: 20px;
  }

  .gd37-program__main {
    grid-template-columns: 1fr;
    gap: 34px;
    margin-top: 26px;
  }

  .gd37-program-photo--main {
    height: clamp(390px, 67vw, 560px);
  }

  .gd37-program-directions {
    padding-bottom: 32px;
  }

  .gd37-program-direction strong { font-size: 16px; }

  .gd37-program-more {
    position: relative;
    min-height: 0;
    border-radius: 48% 48% 0 0 / 3% 3% 0 0;
  }

  .gd37-program-more__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 25px 35px;
    padding-top: 45px;
    padding-bottom: 55px;
  }

  .gd37-program-more__photos {
    grid-row: 1 / 3;
  }

  .gd37-program-more__cta {
    width: min(100%, 320px);
  }

  .gd37-program__sprout,
  .gd37-program__dot { display: none; }
}

@media (max-width: 700px) {
  .gd37-program__inner {
    padding-top: 52px;
  }

  .gd37-program__kicker,
  .gd37-program-directions__kicker,
  .gd37-program-more__kicker {
    min-width: 0;
    max-width: 100%;
    margin-bottom: 10px;
    padding: 10px 15px;
    font-size: 9px;
    line-height: 1.25;
  }

  .gd37-program__title {
    font-size: clamp(32px, 9.4vw, 39px);
    line-height: 1.04;
  }

  .gd37-program__underline {
    width: 64%;
    height: 9px;
    margin-top: 1px;
    border-bottom-width: 3px;
  }

  .gd37-program__title span,
  .gd37-program-more__content h3 span {
    display: block;
  }

  .gd37-program__intro {
    margin-top: 16px;
    font-size: 14px;
    line-height: 1.58;
  }

  .gd37-program__main {
    gap: 32px;
    margin-top: 14px;
  }

  .gd37-program-photo--main {
    width: 100%;
    height: auto;
    aspect-ratio: 760 / 530;
  }

  .gd37-program-photo--main figcaption {
    right: 12px;
    bottom: -15px;
    left: 12px;
    min-height: 76px;
    gap: 11px;
    padding: 11px 20px;
    border-radius: 31px 35px 30px 37px;
  }

  .gd37-program-photo--main figcaption strong {
    font-size: clamp(17px, 5.3vw, 21px);
    line-height: 1.08;
  }

  .gd37-program-photo--main figcaption small {
    margin-top: 6px;
    font-size: 7px;
  }

  .gd37-program-photo__dot {
    flex-basis: 12px;
    width: 12px;
    height: 12px;
  }

  .gd37-program-directions__route { display: none; }

  .gd37-program-directions {
    padding-top: 3px;
    padding-bottom: 24px;
  }

  .gd37-program-directions__kicker {
    margin-bottom: 14px;
  }

  .gd37-program-directions__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 0;
  }

  .gd37-program-direction,
  .gd37-program-direction:last-child {
    width: 100%;
    min-height: 82px;
    grid-template-columns: 28px minmax(0, 1fr);
    justify-self: stretch;
    gap: 8px;
    padding: 11px 10px;
    border: 0;
    border-radius: 26px 19px 24px 18px;
    background: #fffdf8;
    box-shadow: inset 3px 0 0 var(--program-direction-accent), inset 0 0 0 1px rgba(21, 83, 71, .06);
  }

  .gd37-program-direction:nth-child(even) {
    border-radius: 19px 27px 18px 25px;
  }

  .gd37-program-direction:last-child {
    min-height: 60px;
    grid-column: 1 / -1;
    border-radius: 24px 29px 22px 27px;
  }

  .gd37-program-direction--orange { background: #fff1e7; }
  .gd37-program-direction--blue { background: #e8f7f8; }
  .gd37-program-direction--green { background: #eef7e8; }
  .gd37-program-direction--yellow { background: #fff6d8; }
  .gd37-program-direction--sand { background: #faf1df; }

  .gd37-program-direction__number {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: var(--program-direction-accent);
    font-size: 8px;
  }

  .gd37-program-direction strong {
    overflow-wrap: normal;
    font-size: 12px;
    line-height: 1.25;
  }

  .gd37-program-directions__summary {
    margin-top: 16px;
    font-size: 20px;
    line-height: 1.12;
  }

  .gd37-program-more__inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    padding-top: 32px;
    padding-bottom: 38px;
  }

  .gd37-program-more__photos {
    display: grid;
    order: 2;
    width: 100%;
    min-height: 0;
    grid-template-columns: .94fr 1.06fr;
    align-items: center;
    gap: 0;
    margin-top: 0;
  }

  .gd37-program-photo--chess {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    width: 100%;
    height: auto;
    aspect-ratio: 325 / 340;
    transform: translateX(6px);
  }

  .gd37-program-photo--art {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    width: 100%;
    height: auto;
    aspect-ratio: 365 / 345;
    transform: translateX(-6px);
  }

  .gd37-program-more__content {
    order: 1;
    width: 100%;
    align-self: stretch;
  }

  .gd37-program-more__content h3 {
    font-size: clamp(27px, 8vw, 33px);
    line-height: 1.12;
  }

  .gd37-program-more__underline {
    width: 62%;
    height: 9px;
    margin-top: 2px;
    border-bottom-width: 3px;
  }

  .gd37-program-more__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 12px;
    margin-top: 14px;
  }

  .gd37-program-more__list li {
    overflow-wrap: anywhere;
    padding-left: 14px;
    font-size: 9px;
    line-height: 1.35;
  }

  .gd37-program-more__list li::before {
    top: .36em;
    width: 7px;
    height: 7px;
  }

  .gd37-program-more__cta {
    order: 3;
    width: 100%;
    min-height: 58px;
  }
}

@media (max-width: 380px) {
  .gd37-program-photo--main figcaption {
    right: 8px;
    left: 8px;
    padding-inline: 16px;
  }

  .gd37-program-photo--main figcaption strong {
    font-size: 16px;
  }

  .gd37-program-direction,
  .gd37-program-direction:last-child {
    min-height: 78px;
    grid-template-columns: 25px minmax(0, 1fr);
    padding: 9px 8px;
  }

  .gd37-program-direction:last-child {
    min-height: 56px;
  }

  .gd37-program-direction__number {
    width: 25px;
    height: 25px;
  }

  .gd37-program-direction strong {
    font-size: 11px;
  }
}
