/* Authored \n breaks are desktop-only; below the site's mobile breakpoint
   (navbar switch, 1280px) the text reflows naturally. */
@media (max-width: 1280px) {
  br.multiline-br {
    display: none;
  }
}

.programme-features,
.programme-features *,
.programme-features *::before,
.programme-features *::after,
.programme-feature-block,
.programme-feature-block *,
.programme-feature-block *::before,
.programme-feature-block *::after,
.programme-feature-fact,
.programme-feature-fact *,
.programme-feature-fact *::before,
.programme-feature-fact *::after {
  box-sizing: border-box;
}

.programme-features {
  width: 100%;
  padding: 79px 30px 84px;
  overflow: hidden;
  border-radius: 20px 20px 0 0;
  background: #e6ece9;
  color: #18141e;
  font-family: "Mona Sans", "Helvetica Neue", Arial, sans-serif;
}

.programme-features__inner {
  width: 100%;
  max-width: 1380px;
  margin: 0 auto;
}

.programme-features__blocks {
  display: flex;
  width: 100%;
  min-width: 0;
  flex-direction: column;
  gap: 84px;
}

.programme-features__blocks > slot[name="children"] {
  display: flex !important;
  width: 100%;
  min-width: 0;
  flex-direction: column;
  gap: 84px;
}

.programme-features__blocks > slot[name="children"]::slotted(*) {
  display: flex !important;
  width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  flex-direction: column !important;
  gap: 84px !important;
}

:host {
  display: block;
  width: 100%;
  min-width: 0;
}

.programme-feature-block {
  display: grid;
  grid-template-columns: minmax(280px, 401px) minmax(0, 850px);
  justify-content: space-between;
  gap: clamp(48px, 5.7vw, 82px);
  width: 100%;
  min-width: 0;
  color: #18141e;
  font-family: "Mona Sans", "Helvetica Neue", Arial, sans-serif;
}

.programme-feature-block__copy {
  min-width: 0;
  padding-top: 0;
}

.programme-feature-block__badge {
  display: inline-flex;
  min-height: 29px;
  max-width: 100%;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 5px 12px;
  border: 1px solid rgba(24, 20, 30, 0.04);
  border-radius: 999px;
  background: rgba(252, 252, 252, 0.72);
  color: #18141e;
  font-size: 13px;
  font-style: normal;
  font-weight: 500;
  line-height: 16px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.programme-feature-block__badge-image {
  display: block;
  width: auto;
  height: 16px;
  max-width: 20px;
  flex: 0 0 auto;
  object-fit: contain;
}

.programme-feature-block__title {
  max-width: 303px;
  margin: 27px 0 0;
  color: #18141e;
  font: inherit;
  font-size: 30px;
  font-style: normal;
  font-weight: 400;
  line-height: 36px;
  letter-spacing: 0;
}

.programme-feature-block__paragraph {
  width: 100%;
  max-width: 401px;
  margin: 27px 0 0;
  color: #18141e;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: 0;
}

.programme-feature-block__media {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 433px;
  align-items: stretch;
  justify-content: flex-end;
  padding: 19px 19px 19px 0;
  overflow: hidden;
  border-radius: 20px;
  isolation: isolate;
  background: #cfd8d2;
}

.programme-feature-block__image,
.programme-feature-block__image-placeholder {
  position: absolute;
  inset: 0;
  z-index: -1;
  display: block;
  width: 100%;
  height: 100%;
}

.programme-feature-block__image {
  object-fit: cover;
}

.programme-feature-block__image-placeholder {
  background: linear-gradient(135deg, #d7dfda, #aebbb4);
}

.programme-feature-block__facts {
  display: flex;
  width: 254px;
  min-width: 0;
  min-height: 395px;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(252, 252, 252, 0.1);
  border-radius: 20px;
  background:
    linear-gradient(
      155.46deg,
      rgba(252, 252, 252, 0.2) -50.09%,
      rgba(24, 20, 30, 0.2) 106.94%
    ),
    linear-gradient(
      155.46deg,
      rgba(252, 252, 252, 0.3) -50.09%,
      rgba(230, 236, 233, 0.3) 106.94%
    );
  box-shadow: inset 0 1px 0 rgba(252, 252, 252, 0.12);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

.programme-feature-block__facts > slot[name="children"] {
  display: flex !important;
  width: 100%;
  min-width: 0;
  min-height: 100%;
  flex: 1;
  flex-direction: column;
}

.programme-feature-block__facts > slot[name="children"]::slotted(*) {
  display: flex !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 88px !important;
  flex: 1 0 auto !important;
  flex-direction: column !important;
  align-items: stretch !important;
}

.programme-feature-fact {
  display: flex;
  width: 100%;
  min-width: 0;
  min-height: 88px;
  flex: 1 0 auto;
  align-items: center;
  padding: 20px 19px;
  color: #fcfcfc;
  font-family: "Mona Sans", "Helvetica Neue", Arial, sans-serif;
}

:host(:not(:first-child)) .programme-feature-fact,
.programme-feature-block__facts > .programme-feature-fact:not(:first-child) {
  position: relative;
}

:host(:not(:first-child)) .programme-feature-fact::before,
.programme-feature-block__facts > .programme-feature-fact:not(:first-child)::before {
  position: absolute;
  top: 0;
  right: 19px;
  left: 19px;
  height: 1px;
  background: rgba(230, 236, 233, 0.45);
  content: "";
}

.programme-feature-fact__text {
  margin: 0;
  color: inherit;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: 0;
}

@keyframes programme-features-reveal {
  from {
    opacity: 0;
    transform: translateY(36px);
  }

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

.programme-features-reveal .programme-feature-block {
  opacity: 0;
}

.programme-features-reveal.is-revealed .programme-feature-block {
  animation: programme-features-reveal 850ms cubic-bezier(0.4, 0, 0.2, 1) both;
}

@media (max-width: 1100px) {
  .programme-features {
    padding-top: 64px;
    padding-bottom: 72px;
  }

  .programme-feature-block {
    grid-template-columns: minmax(250px, 0.8fr) minmax(0, 1.5fr);
    gap: 40px;
  }

  .programme-feature-block__media {
    min-height: 410px;
  }
}

@media (max-width: 767px) {
  .programme-features {
    padding: 48px 20px 56px;
    border-radius: 16px 16px 0 0;
  }

  .programme-features__blocks,
  .programme-features__blocks > slot[name="children"] {
    gap: 60px;
  }

  .programme-features__blocks > slot[name="children"]::slotted(*) {
    gap: 60px !important;
  }

  .programme-feature-block {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .programme-feature-block__title {
    max-width: 100%;
    margin-top: 23px;
    font-size: 28px;
    line-height: 33px;
  }

  .programme-feature-block__paragraph {
    max-width: 100%;
    margin-top: 22px;
  }

  .programme-feature-block__media {
    min-height: 410px;
    padding: 15px;
  }

  .programme-feature-block__facts {
    width: min(254px, 78%);
    min-height: 380px;
  }
}

@media (max-width: 420px) {
  .programme-features {
    padding-right: 15px;
    padding-left: 15px;
  }

  .programme-feature-block__media {
    min-height: 470px;
    align-items: flex-end;
    padding: 12px;
    border-radius: 16px;
  }

  .programme-feature-block__facts {
    width: 100%;
    min-height: 305px;
    border-radius: 16px;
  }

  .programme-feature-fact,
  .programme-feature-block__facts > slot[name="children"]::slotted(*) {
    min-height: 72px !important;
  }

  .programme-feature-fact {
    padding: 14px 16px;
  }

  :host(:not(:first-child)) .programme-feature-fact::before,
  .programme-feature-block__facts > .programme-feature-fact:not(:first-child)::before {
    right: 16px;
    left: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .programme-features-reveal .programme-feature-block {
    opacity: 1;
    animation: none;
  }
}


@keyframes programme-feature-block-reveal {
  from {
    opacity: 0;
    transform: translateY(36px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.programme-feature-block--reveal {
  opacity: 0;
}

.programme-feature-block--reveal.is-revealed {
  animation: programme-feature-block-reveal 850ms cubic-bezier(0.4, 0, 0.2, 1) both;
}

@media (prefers-reduced-motion: reduce) {
  .programme-feature-block--reveal {
    opacity: 1;
    animation: none;
  }
}

/* Waterfall: siblings entering together stagger left-to-right */

/* waterfall-programme-feature-block */
:host(:nth-child(2)) .programme-feature-block--reveal.is-revealed,
.programme-feature-block--reveal.is-revealed:nth-child(2) {
  animation-delay: 160ms;
}
:host(:nth-child(3)) .programme-feature-block--reveal.is-revealed,
.programme-feature-block--reveal.is-revealed:nth-child(3) {
  animation-delay: 260ms;
}
:host(:nth-child(4)) .programme-feature-block--reveal.is-revealed,
.programme-feature-block--reveal.is-revealed:nth-child(4) {
  animation-delay: 360ms;
}
:host(:nth-child(5)) .programme-feature-block--reveal.is-revealed,
.programme-feature-block--reveal.is-revealed:nth-child(5) {
  animation-delay: 460ms;
}
:host(:nth-child(6)) .programme-feature-block--reveal.is-revealed,
.programme-feature-block--reveal.is-revealed:nth-child(6) {
  animation-delay: 560ms;
}
:host(:nth-child(7)) .programme-feature-block--reveal.is-revealed,
.programme-feature-block--reveal.is-revealed:nth-child(7) {
  animation-delay: 660ms;
}

/* waterfall-ext-programme-feature-block: items 8+ keep cascading instead of snapping to the base delay */
:host(:nth-child(8)) .programme-feature-block--reveal.is-revealed,
.programme-feature-block--reveal.is-revealed:nth-child(8) {
  animation-delay: 760ms;
}
:host(:nth-child(9)) .programme-feature-block--reveal.is-revealed,
.programme-feature-block--reveal.is-revealed:nth-child(9) {
  animation-delay: 860ms;
}
:host(:nth-child(n + 10)) .programme-feature-block--reveal.is-revealed,
.programme-feature-block--reveal.is-revealed:nth-child(n + 10) {
  animation-delay: 960ms;
}

