.wp2prProgramLogo {
  display: block;
  width: min(330px, 82%);
  max-height: 110px;
  object-fit: contain;
  object-position: left center;
  margin: 4px 0 10px;
}

.wp2prBrand {
  display: inline-flex;
  align-items: flex-start;
  gap: 3px;
}

.wp2prBrand .brandTm {
  color: #fff;
  font: 800 10px/1 "Source Sans 3", Arial, sans-serif;
  margin-top: 9px;
}

.wp2prVideoLogo {
  width: 78px;
  height: 26px;
  object-fit: contain;
  object-position: left center;
  margin-top: 8px;
}

.testimonialVideo .wp2prVideoLogo {
  pointer-events: none;
}

.entreGrid .pathway {
  display: flex;
  flex-direction: column;
}

.pathwayPageButton {
  align-self: flex-start;
  margin-top: auto;
}

@media (max-width: 650px) {
  .wp2prProgramLogo {
    width: min(280px, 78%);
  }
}

/* Full-team photo with a shorter navy fade to reveal colleagues on the left. */
.heroSlide.team {
  background: #073458 !important;
  background-image: none !important;
}

.heroSlide.team::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  background: #073458 url("assets/ril-current-group-photo-hires.webp") right center / contain no-repeat;
  -webkit-mask-image: none;
  mask-image: none;
  pointer-events: none;
}

.heroSlide.team::after {
  display: block !important;
  z-index: 1;
  background: linear-gradient(90deg, #073458 0%, #073458 23%, rgba(7,52,88,.88) 28%, rgba(7,52,88,.55) 33%, rgba(7,52,88,.22) 39%, rgba(7,52,88,.06) 45%, transparent 51%) !important;
}

.heroSlide.team .heroContent {
  width: min(39vw, 520px) !important;
  max-width: min(39vw, 520px) !important;
}

@media (max-width: 980px) {
  .heroSlide.team::before {
    inset: 0 0 auto;
    height: 44%;
    background-position: center top;
    background-size: contain;
  }

  .heroSlide.team::after {
    background: linear-gradient(180deg, transparent 0%, rgba(7,52,88,.08) 32%, rgba(7,52,88,.66) 42%, #073458 56%) !important;
  }

  .heroSlide.team .heroContent {
    width: 100% !important;
    max-width: 100% !important;
    padding-top: 320px !important;
  }
}

@media (max-width: 650px) {
  .heroSlide.team::after {
    background: linear-gradient(180deg, transparent 0%, rgba(7,52,88,.08) 29%, rgba(7,52,88,.66) 42%, #073458 56%) !important;
  }

  .heroSlide.team::before {
    height: 40%;
    background-position: center top;
  }

  .heroSlide.team .heroContent {
    padding-top: 315px !important;
  }
}

.numberOne {
  font-family: "Source Sans 3", Arial, sans-serif;
  font-weight: 800;
  letter-spacing: -.04em;
}

/* First-slide copy: deliberate phrase breaks and a slightly lower position. */
.heroSlide.team .heroTrustLine,
.heroSlide.team .heroExperienceLine,
.heroSlide.team .heroHeadlineLine {
  display: block;
}
.heroSlide.team .eyebrow {
  font-size: .75rem;
  line-height: 1.6;
  letter-spacing: .12em;
}
.heroSlide.team .heroContent h1 {
  font-size: clamp(2.75rem, 3.7vw, 3.5rem) !important;
  line-height: 1.06;
  margin-top: 18px;
  margin-bottom: 22px;
}
.heroSlide.team .heroContent p {
  line-height: 1.4;
  margin-top: 0;
}
@media (min-width: 981px) {
  .heroSlide.team .heroContent {
    padding-top: calc(clamp(105px, 13vh, 145px) + 24px);
  }
}
@media (min-width: 651px) and (max-width: 980px) {
  .heroSlide.team .heroContent {
    padding-top: 340px !important;
  }
  .heroSlide.team .heroContent h1 {
    max-width: 100% !important;
  }
}
@media (max-width: 650px) {
  .heroSlide.team .heroContent {
    padding-top: 335px !important;
  }
  .heroSlide.team .heroContent h1 {
    max-width: 100% !important;
    font-size: clamp(2rem, 8.5vw, 2.75rem) !important;
  }
}

/* Keep the original team photograph behind left-aligned copy. */
@media (min-width: 651px) {
  .hero { height: clamp(460px, 36vw, 580px); min-height: 460px; }
  .heroSlide.team::before {
    inset: 0;
    height: 100%;
    background: #073458 url("assets/ril-current-group-photo-hires.webp") left center / cover no-repeat;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .heroSlide.team::after {
    background: linear-gradient(90deg, rgba(7,52,88,.98) 0%, rgba(7,52,88,.94) 20%, rgba(7,52,88,.78) 27%, rgba(7,52,88,.38) 33%, rgba(7,52,88,.06) 37%, transparent 40%) !important;
  }
  .heroSlide.team .heroContent {
    width: min(30vw, 460px) !important;
    max-width: min(30vw, 460px) !important;
    padding-top: clamp(65px, 7vw, 110px) !important;
  }
  .heroSlide.team .heroContent h1 {
    max-width: 100% !important;
    font-size: clamp(32px, 3.5vw, 54px) !important;
  }
  .heroSlide.team .heroContent p { font-size: clamp(16px, 1.35vw, 20px); }
  .heroSlide.team .countryPick { gap: 12px; }
  .heroSlide.team .countryBtn {
    min-width: 0;
    flex: 1 1 180px;
    width: auto;
    max-width: 240px;
    height: 48px;
    font-size: 16px;
  }
  .heroSlide.team .countryBtn > span:first-child { padding: 0 16px; }
  .heroSlide.team .flagPane { width: 60px; }
  .heroSlide.team .heroExperienceSeal { width: clamp(88px, 8vw, 120px); top: 20px; right: 20px; }
}
@media (min-width: 651px) and (max-width: 980px) {
  .heroSlide.team .heroContent { width: 32vw !important; max-width: 32vw !important; padding-top: 54px !important; }
  .heroSlide.team .eyebrow { font-size: 10px; letter-spacing: .08em; }
  .heroSlide.team .heroContent h1 { font-size: clamp(29px, 3.8vw, 38px) !important; }
}
@media (max-width: 650px) {
  .heroSlide.team::before {
    inset: 0;
    height: 100%;
    background: #073458 url("assets/ril-current-group-photo-hires.webp") 44% top / auto 340px no-repeat;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .heroSlide.team::after {
    background: linear-gradient(180deg, transparent 0%, rgba(7,52,88,.08) 29%, rgba(7,52,88,.65) 39%, #073458 48%) !important;
  }
}
@media (min-width: 651px) {
  .heroSlide.team > .wrap { width: 92%; max-width: none; }
}
