/* Water and Youth YEP page
   (templates/node--water-and-youth-yep-page.html.twig). */

/* Letter spacing: -1% on page text, 4% on eyebrows, none on buttons */
:where(.page-node-type-water-and-youth-yep-page main) * {
  letter-spacing: -0.01em;
}

.page-node-type-water-and-youth-yep-page main .section-title__subtitle {
  letter-spacing: 0.04em;
}

.page-node-type-water-and-youth-yep-page main .default-btn {
  letter-spacing: normal;
}

/* Hero */
.water-and-youth-yep-hero.fullscreen-hero {
  min-height: 800px;
  padding-bottom: 3.5rem;
}

.water-and-youth-yep-hero .reveal {
  max-width: 870px;
}

.water-and-youth-yep-hero.fullscreen-hero p {
  font-size: 18px;
  line-height: 1.5;
  letter-spacing: -0.01em;
}

/* 32px between title and text, a blank line between paragraphs */
.water-and-youth-yep-hero .hero-title + p {
  margin-top: 12px;
}

.water-and-youth-yep-hero p + p {
  margin-top: 7px;
}

/* Mobile: photo pinned to the top */
@media (max-width: 767.98px) {
  .water-and-youth-yep-hero.fullscreen-hero {
    background-blend-mode: normal;
    background-size: cover;
    background-position: top center;
  }
}

/* Desktop: shorter hero, text centred, gradient in from the left */
@media (min-width: 768px) {
  .water-and-youth-yep-hero.fullscreen-hero {
    --fullscreen-hero-gradient-start: 0%;
    --fullscreen-hero-gradient-end: 75.23%;
    height: 720px;
    min-height: 0;
    align-content: center;
    padding-bottom: 0;
  }

  .water-and-youth-yep-hero.fullscreen-hero .hero-description > .h6-style {
    color: var(--color-white);
  }

  .water-and-youth-yep-hero .hero-title + p {
    margin-top: 8px;
  }

  .water-and-youth-yep-hero p + p {
    margin-top: 6px;
  }

  .water-and-youth-yep-hero.fullscreen-hero p {
    font-size: 20px;
  }
}

@media (min-width: 1440px) {
  .water-and-youth-yep-hero .hero-title {
    font-size: 64px;
  }
}

/* Latest Events */
.water-and-youth-yep-events.card-slider {
  padding-top: 64px;
  padding-bottom: 64px;
}

.water-and-youth-yep-events .control-container {
  margin-bottom: 32px;
}

.water-and-youth-yep-event {
  display: flex;
  flex-direction: column;
  gap: 20px;
  color: var(--brand-retro-black);
}

/* Dark box until the event has a photo */
.water-and-youth-yep-event__image {
  aspect-ratio: 519 / 386;
  border-radius: 15px;
  overflow: hidden;
  background: var(--brand-retro-black);
}

.water-and-youth-yep-event__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.water-and-youth-yep-event__text {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.water-and-youth-yep-event__text .h5-style {
  line-height: 1;
}

.water-and-youth-yep-event__list {
  margin: 0;
  padding-left: 27px;
  font-size: 18px;
  line-height: 1.5;
}

@media (min-width: 768px) {
  .water-and-youth-yep-events.card-slider {
    padding-top: 100px;
    padding-bottom: 100px;
  }

  .water-and-youth-yep-events .control-container {
    margin-bottom: 40px;
  }

  .water-and-youth-yep-event__image {
    border-radius: 24px;
  }

  .water-and-youth-yep-event__text {
    gap: 16px;
  }

  .water-and-youth-yep-event__text .h5-style {
    line-height: 1.2;
  }
}

/* Tailormade Batch */
.water-and-youth-yep-batch.banner-container {
  --gradient-start: 33.67%;
  --gradient-end: 68.19%;
  min-height: 800px;
  background-color: var(--brand-deep-sky-blue);
}

.water-and-youth-yep-batch .section-title__heading {
  margin-bottom: 4px !important;
}

.water-and-youth-yep-batch .section-description {
  font-family: var(--font-ideal-sans-medium);
  font-size: 18px;
  max-width: none;
}

.water-and-youth-yep-batch__list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.water-and-youth-yep-batch__item {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--brand-off-white);
}

.water-and-youth-yep-batch__icon {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  background: var(--brand-off-white) url("../../../images/water-and-youth/check-blue.svg") no-repeat center / 15.6px;
}

.water-and-youth-yep-batch .button-link {
  margin-top: 24px;
  padding: 20px 32px;
  text-align: center;
}

.water-and-youth-yep-batch .button-link:not(:hover) {
  background: var(--brand-off-white);
}

.water-and-youth-yep-batch .button-link:hover {
  border-color: rgba(255, 255, 255, 0.24);
}

/* Mobile: photo spans the full width, pinned to the top, with cyan below it */
@media (max-width: 767.98px) {
  .water-and-youth-yep-batch.banner-container {
    align-items: end;
    padding-bottom: 56px;
  }

  .water-and-youth-yep-batch img.banner {
    top: 0;
    height: auto;
  }

  .water-and-youth-yep-batch .section-title-container {
    padding-top: 0;
    padding-bottom: 0;
  }
}

@media (min-width: 768px) {
  .water-and-youth-yep-batch.banner-container {
    --gradient-start: 2.27%;
    --gradient-end: 55.86%;
    /* 640px tall at every desktop width, content centred */
    height: 640px;
    min-height: 0;
    align-items: center;
  }

  .water-and-youth-yep-batch .section-title-container {
    padding-top: 0;
    padding-bottom: 0;
  }

  .water-and-youth-yep-batch .section-description {
    font-family: var(--font-ideal-sans-regular);
  }

  .water-and-youth-yep-batch__list,
  .water-and-youth-yep-batch .button-link {
    margin-top: 32px;
  }
}

@media (min-width: 1440px) {
  .water-and-youth-yep-batch .section-description {
    font-size: 20px;
  }
}

/* Meet a Young Expert */
.water-and-youth-yep-video .right {
  gap: 40px;
}

.water-and-youth-yep-video .left {
  border-radius: 32px;
}

.water-and-youth-yep-video__text {
  color: var(--brand-retro-black);
  font-size: 18px;
  line-height: 1.5;
}

@media (min-width: 768px) {
  .water-and-youth-yep-video .left {
    border-radius: 48px;
  }

  .water-and-youth-yep-video .video-thumbnail {
    --video-thumbnail-play-size: 128px;
  }
}

@media (min-width: 992px) {
  .water-and-youth-yep-video .right {
    gap: 32px;
  }

  .water-and-youth-yep-video .section-title__heading {
    max-width: none;
  }
}

@media (min-width: 1280px) {
  .water-and-youth-yep-video .right {
    padding-left: 56px;
  }
}

@media (min-width: 1440px) {
  .water-and-youth-yep-video__text {
    font-size: 20px;
  }
}

@media (min-width: 1600px) {
  .water-and-youth-yep-video .right {
    padding-right: 28px;
  }
}

/* Applications */
.water-and-youth-yep-roles {
  position: relative;
  overflow: hidden;
}

/* Blue wave behind the cards: centred on mobile, on the right edge from 992px */
.water-and-youth-yep-roles::before {
  content: "";
  position: absolute;
  top: 319px;
  left: calc(50% - 491px);
  width: 987px;
  height: 555px;
  background: url("../../../images/water-and-youth/yep-roles-wave-mobile.svg") no-repeat center / 100% 100%;
  transform: scaleY(-1);
  pointer-events: none;
}

.water-and-youth-yep-roles .max-width {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.water-and-youth-yep-roles .section-title {
  margin-bottom: 0;
}

/* Shared link cards (components/link-card), with the YEP sizes at every width */
.water-and-youth-yep-roles .link-card {
  --link-card-padding: 40px;
  --link-card-title-size: 26px;
  --link-card-title-line-height: 1.2;
  --link-card-text-size: 18px;
}

@media (min-width: 992px) {
  .water-and-youth-yep-roles::before {
    background-image: url("../../../images/water-and-youth/yep-roles-wave.svg");
    top: 0;
    left: auto;
    right: 0;
    width: 1317px;
    height: 474px;
  }
}
