/*************************************
 * Programme Steps
 ************************************/

.programme-steps {
  background: var(--light-grey);
  overflow: hidden;
}

.programme-steps-head {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 28px;
}

.programme-steps-title {
  margin: 0;
  color: var(--blue);
  font-size: clamp(2em, 5vw, 3.2em);
}

.programme-steps-title span {
  color: var(--red);
}

.programme-steps-copy {
  max-width: 820px;
  color: rgba(30, 37, 104, 0.72);
  font-weight: 500;
  font-size: clamp(16px, 2.6vw, 20px);
}

.programme-steps-copy p {
  margin: 0 0 10px;
}

.programme-steps-copy p:last-child {
  margin-bottom: 0;
}

.programme-steps-cta {
  align-self: flex-start;
}

.programme-steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.programme-step-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 20px;
  border: 2px solid var(--red);
  border-radius: 12px;
  background: var(--white);
  color: var(--blue);
  text-align: left;
  cursor: pointer;
  box-shadow: none;
  transition:
    border-color 220ms ease,
    box-shadow 220ms ease,
    transform 220ms ease;
  @media screen and (min-width: 50em) {
    min-height: 224px;
    padding: 34px 34px 30px;
  }
}

.programme-step-card:hover,
.programme-step-card:focus-visible {
  border-color: var(--light-blue);
  box-shadow: 0 18px 42px rgba(30, 37, 104, 0.08);
  transform: translateY(-3px);
  outline: none;
}

.programme-step-card-icon {
  position: absolute;
  top: 24px;
  right: 18px;
  width: 42px;
  height: 42px;
  color: var(--blue);
  background: #f6f6f7;
  border-radius: 50%;
  padding: 7px;
  transition:
    color 220ms ease,
    background 220ms ease,
    transform 220ms ease;
}

.programme-step-card:hover .programme-step-card-icon,
.programme-step-card:focus-visible .programme-step-card-icon {
  color: var(--red);
  background: #fff1f1;
  transform: translate(2px, -2px);
}

.programme-step-card-kicker {
  display: block;
  margin-bottom: 20px;
  color: var(--red);
  font-size: 20px;
  font-weight: 600;
}

.programme-step-card-title {
  display: block;
  color: var(--blue);
  font-size: clamp(1em, 2vw, 1.5em);
  font-weight: 600;
}

.programme-step-card-copy {
  display: block;
  margin-top: 12px;
  color: #8f7777;
  font-size: 1em;
  font-weight: 500;
  line-height: 1.35;
}

.programme-steps-modal {
  --programme-steps-modal-control-clearance: clamp(128px, 16vh, 190px);
  position: fixed;
  inset: 0;
  z-index: 13;
  width: 100vw;
  max-width: 100%;
  height: 100%;
  display: none;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  outline: 0;
  padding: 0;
  flex-direction: column;
  scrollbar-width: none;
}

.programme-steps-modal::-webkit-scrollbar {
  display: none;
}

.programme-steps-modal-backdrop {
  background: #f0f0f0 !important;
}

.programme-steps-modal-circle {
  background: var(--blue);
}

.programme-steps-modal-close {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 4;
  width: 50px;
  height: 50px;
  border: 0;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 300ms ease;
}

.programme-steps-modal-close:hover {
  background: var(--light-blue);
}

.programme-steps-modal-close svg {
  fill: currentColor;
  transition: transform 300ms ease;
}

.programme-steps-modal-close:hover svg {
  transform: rotate(90deg);
}

.programme-steps-modal-outer {
  min-height: 100%;
  padding-top: clamp(76px, 9vh, 104px);
  padding-bottom: clamp(40px, 6vh, 72px);
  margin-top: auto;
  margin-bottom: auto;
  width: 100%;
}

.programme-steps-modal-slides {
  position: relative;
}

.programme-steps-modal-slide {
  align-items: stretch;
  min-height: clamp(520px, 72vh, 760px);
}

.programme-steps-modal-slide[hidden] {
  display: none;
}

.programme-steps-modal-copy {
  position: relative;
  z-index: 2;
  max-width: 680px;
  margin-left: auto;
  color: var(--white);
  @media screen and (min-width: 50em) {
    margin: 0 0 0 auto;
  }
  @media screen and (min-width: 1318px) {
    margin: 0 auto 0 17%;
  }
}

.programme-steps-modal-copy-cell {
  display: flex;
  align-items: center;
  padding-bottom: var(--programme-steps-modal-control-clearance);
}

.programme-steps-modal-number {
  display: flex;
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.18);
  font-family: 'BureauGrotesque', sans-serif;
  font-size: clamp(4em, 14vw, 8em);
  font-weight: 600;
  line-height: 0.9;
}

.programme-steps-modal-number-reel {
  display: block;
  overflow: hidden;
  padding-top: 0.06em;
  margin-top: -0.06em;
}

.programme-steps-modal-number-value {
  display: block;
  will-change: transform, opacity;
}

.programme-steps-modal-title {
  overflow: hidden;
  margin: 0 0 20px;
  color: var(--white);
  font-family: 'Gotham', sans-serif;
  font-size: clamp(1em, 2vw, 1.5em);
  font-weight: 600;
  text-transform: unset;
  will-change: clip-path, opacity;
}

.programme-steps-modal-body {
  max-width: 640px;
  color: var(--white);
  font-size: clamp(16px, 2.1vw, 19px);
  font-weight: 500;
  line-height: 1.55;
}

.programme-steps-modal-body p,
.programme-steps-modal-body ul,
.programme-steps-modal-body ol {
  margin-top: 0;
  margin-bottom: 16px;
}

.programme-steps-modal-body :last-child {
  margin-bottom: 0;
}

.programme-steps-modal-quote {
  position: relative;
  max-width: 500px;
  color: var(--blue);
  margin-left: auto;
  margin-right: auto;
}

.programme-steps-modal-quote-inner {
  position: relative;
  z-index: 1;
}

.programme-steps-modal-quote-inner blockquote {
  margin: 0;
}

.programme-steps-modal-quote-inner .quote-mark {
  color: rgba(30, 37, 104, 0.14);
}

.programme-steps-modal-quote-inner .quote-mark.open {
  top: -70px;
  left: -34px;
}

.programme-steps-modal-quote-inner .quote-mark.close {
  right: -18px;
  bottom: -280px;
}

.programme-steps-modal-quote-text {
  position: relative;
  z-index: 1;
  font-weight: 600;
  font-size: 1em;
  line-height: 1.35;
  color: var(--blue);
  margin: 0 0 16px;
  @media screen and (min-width: 50em) {
    font-size: 1.3em;
  }
  @media screen and (min-width: 64em) {
    font-size: 1.5em;
  }
}

.programme-steps-modal-controls {
  position: fixed;
  right: max(16px, calc((100vw - 1180px) / 2));
  bottom: clamp(18px, 4vh, 36px);
  left: max(16px, calc((100vw - 1180px) / 2));
  max-width: 440px;
  margin: 0 auto;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px;
  background: #f0f0f052;
  border: 2px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  border-radius: 100px;
  color: var(--blue);
  transform: translateZ(0);
}

.programme-steps-modal-progress {
  grid-column: 1 / -1;
  width: 100%;
  height: 8px;
  background: #bfe9ff;
  border-radius: 999px;
  overflow: hidden;
  margin-left: 10px;
}

.programme-steps-modal-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--red);
  border-radius: inherit;
  transition: width 0.45s ease;
}

.programme-steps-modal-arrows {
  display: inline-flex;
  align-items: center;
  gap: 0px;
}

.programme-steps-modal-arrow {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  transition:
    color 200ms ease,
    opacity 200ms ease;
  .site-arrow {
    background: var(--blue);
    border-radius: 50%;
  }
}

.programme-steps-modal-arrow:hover:not(:disabled) {
  color: var(--light-blue);
}

.programme-steps-modal-arrow:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

@media screen and (min-width: 50em) {
  .programme-steps-head {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 45px;
  }

  .programme-steps-cta {
    align-self: center;
    white-space: nowrap;
  }

  .programme-steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }

  .programme-steps-modal-quote-cell {
    position: sticky;
    top: clamp(94px, 16vh, 150px);
    align-self: flex-start;
    min-height: calc(100vh - clamp(188px, 32vh, 300px));
    display: flex;
    align-items: center;
  }

  .programme-steps-modal-quote {
    margin-top: 0;
    padding-right: 20px;
  }
}

@media screen and (min-width: 50em) and (max-width: 63.9375em) {
  .programme-steps-modal-quote {
    max-width: 350px;
    padding-right: 70px;
  }
}

@media screen and (min-width: 75em) {
  .programme-steps-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media screen and (max-width: 49.9375em) {
  .programme-steps-modal.content-backgrounds-ready {
    background: #f0f0f0;
  }

  .programme-steps-modal-circle {
    top: 50%;
    left: 50%;
    width: 120vmax;
    height: 120vmax;
    transform: translate(-50%, -50%);
    transform-origin: center;
  }

  .programme-steps-modal-outer {
    padding-top: 0;
    padding-bottom: 0;
  }

  .programme-steps-modal-slide {
    align-items: stretch;
    min-height: 0;
  }

  .programme-steps-modal.content-backgrounds-ready .programme-steps-modal-copy-cell {
    background: var(--blue);
    box-shadow: 0 0 0 100vmax var(--blue);
    clip-path: inset(0 -100vmax);
  }

  .programme-steps-modal.content-backgrounds-ready .programme-steps-modal-quote-cell {
    background: #f0f0f0;
    box-shadow: 0 0 0 100vmax #f0f0f0;
    clip-path: inset(0 -100vmax);
  }

  .programme-steps-modal-quote-cell,
  .programme-steps-modal-copy-cell {
    display: flex;
    align-items: center;
  }

  .programme-steps-modal-quote-cell {
    min-height: clamp(260px, 42vh, 390px);
    padding-top: 90px;
    padding-bottom: 48px;
  }

  .programme-steps-modal-copy-cell {
    padding-top: 34px;
    padding-bottom: var(--programme-steps-modal-control-clearance);
  }

  .programme-steps-modal-quote {
    margin-top: 0;
  }

  .programme-steps-modal-quote-inner .quote-mark.open {
    top: -48px;
    left: -20px;
  }

  .programme-steps-modal-quote-inner .quote-mark.close {
    right: -10px;
    bottom: -180px;
  }

  .programme-steps-modal-close {
    width: 44px;
    height: 44px;
    top: 14px;
    right: 14px;
  }

  .programme-steps-modal-copy {
    margin-bottom: 0;
  }

  .programme-steps-modal-controls {
    right: 16px;
    bottom: 16px;
    left: 16px;
    max-width: 440px;
    border-radius: 100px;
  }

  .programme-steps-modal-arrows {
    grid-column: auto;
  }
}
