.brand {
  width: 285px;
}

.brand img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 1px 1px rgba(0, 23, 42, 0.08));
}

.hero::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0 0 0 49%;
  opacity: 0.26;
  background-image:
    linear-gradient(rgba(111, 213, 232, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(111, 213, 232, 0.07) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(90deg, transparent, #000 35%, #000);
  pointer-events: none;
}

.hero-photo {
  z-index: 0;
}

.hero-video {
  transform: scale(1.025);
  filter: brightness(0.9) contrast(1.04) saturate(0.98);
}

.hero-shade {
  z-index: 2;
  background: linear-gradient(90deg, #00223c 0%, #032943 31%, rgba(3, 41, 67, 0.78) 46%, rgba(3, 41, 67, 0.10) 74%);
}

.hero-content,
.motto {
  z-index: 3;
}

.strategic-partnership {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  background:
    linear-gradient(115deg, #04192b 0%, #052c43 55%, #04364b 100%);
  border-top: 1px solid rgba(91, 220, 221, 0.35);
  border-bottom: 1px solid rgba(91, 220, 221, 0.22);
}

.strategic-partnership::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: 0.3;
  background-image:
    linear-gradient(rgba(91, 220, 221, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91, 220, 221, 0.07) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(90deg, transparent, #000 45%, #000);
}

.strategic-partnership-glow {
  position: absolute;
  z-index: -1;
  width: 540px;
  height: 540px;
  right: 8%;
  top: 50%;
  border-radius: 50%;
  transform: translateY(-50%);
  background: rgba(0, 179, 170, 0.18);
  filter: blur(90px);
}

.strategic-partnership-inner {
  min-height: 245px;
  display: grid;
  grid-template-columns: minmax(290px, 0.72fr) minmax(520px, 1.28fr);
  align-items: center;
  gap: clamp(32px, 5vw, 78px);
  padding-top: 34px;
  padding-bottom: 34px;
}

.strategic-partnership-copy {
  padding-left: 22px;
  border-left: 3px solid #00b5ad;
}

.partner-kicker {
  margin: 0 0 10px;
  color: #70dedb;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2.2px;
}

.strategic-partnership h2 {
  margin: 0 0 12px;
  color: #fff;
  font-size: clamp(27px, 2.4vw, 38px);
  line-height: 1.08;
}

.strategic-partnership-copy > p:not(.partner-kicker) {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 16px;
  line-height: 1.5;
}

.partner-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
}

.partner-actions .button {
  min-height: 46px;
  padding: 12px 20px;
  white-space: nowrap;
}

.partner-primary {
  background: #00b5ad;
  color: #031f34;
}

.partner-primary:hover {
  background: #37d1c9;
}

.partner-secondary {
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}

.partner-secondary:hover {
  background: #fff;
  color: #062b43;
}

.strategic-partnership img {
  width: 100%;
  max-height: 190px;
  object-fit: contain;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.28));
}

.strategic-partnership-media {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
}

.facility {
  display: flex;
  min-height: 520px;
  flex-direction: column;
}

.facility-main {
  height: auto;
  min-height: 280px;
  flex: 1 1 auto;
}

.facility-bottom {
  height: 180px;
  flex: 0 0 180px;
}

.facility-bottom figure {
  position: relative;
  min-width: 0;
  height: 100%;
  margin: 0;
  overflow: hidden;
  border-radius: 6px;
}

.facility-bottom figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 28px 14px 12px;
  color: #fff;
  background: linear-gradient(transparent, rgba(0, 21, 40, 0.92));
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

.accreditations {
  padding-top: 38px;
  padding-bottom: 42px;
}

.accreditations .section-heading {
  margin-bottom: 22px;
}

.accreditations .eyebrow {
  margin-bottom: 9px;
}

.credentials-grid {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 16px;
}

.credential-card {
  grid-column: span 2;
  min-width: 0;
  height: 180px;
  margin: 0;
  padding: 20px 18px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.credential-card:nth-child(6) {
  grid-column-start: 2;
}

.accreditations .credential-card img {
  width: 100%;
  height: 118px;
  margin: 0;
  min-height: 0;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.credential-card figcaption {
  color: #41505d;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.6px;
  text-align: center;
  text-transform: uppercase;
}

.services {
  position: relative;
  overflow: hidden;
  padding: 46px 0 58px;
  background: #f6f9fb;
}

.services::before {
  content: "";
  position: absolute;
  inset: 138px 0 auto;
  height: 205px;
  background: linear-gradient(100deg, #062b73 0%, #075d98 58%, #00a890 100%);
}

.services .section-heading,
.service-carousel {
  position: relative;
  z-index: 1;
}

.services .section-heading {
  margin-bottom: 26px;
}

.carousel-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.carousel-arrow {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(11, 29, 45, 0.2);
  border-radius: 50%;
  background: #fff;
  color: var(--navy);
  font-size: 22px;
  line-height: 1;
  box-shadow: 0 4px 14px rgba(11, 29, 45, 0.08);
  transition: color 0.2s, background 0.2s, transform 0.2s;
}

.carousel-arrow:hover {
  color: #fff;
  background: var(--blue);
  transform: translateY(-2px);
}

.service-carousel {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: max(4vw, calc((100vw - 1340px) / 2));
  padding: 0 max(4vw, calc((100vw - 1340px) / 2)) 22px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.service-carousel::-webkit-scrollbar {
  display: none;
}

.service-carousel .service-card {
  flex: 0 0 clamp(315px, 28vw, 390px);
  height: 560px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  scroll-snap-align: start;
  border: 0;
  border-bottom: 4px solid #00b6a8;
  border-radius: 6px 6px 3px 3px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(11, 29, 45, 0.13);
  text-align: left;
}

.service-carousel .service-card:hover {
  box-shadow: 0 18px 36px rgba(11, 29, 45, 0.18);
  transform: translateY(-5px);
}

.service-carousel .service-card > img {
  flex: 0 0 auto;
  width: 100%;
  height: 218px;
  object-fit: cover;
}

.service-carousel .service-card > .service-card-body {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  padding: 22px 23px 20px;
}

.service-number {
  color: #008e88;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
}

.service-carousel .service-card h3 {
  min-height: 54px;
  margin: 7px 0 13px;
  color: #092d74;
  font-size: 20px;
  line-height: 1.28;
}

.service-carousel .service-card ul {
  margin: 0;
  padding-left: 19px;
  color: #52606b;
  font-size: 14px;
  line-height: 1.45;
}

.service-carousel .service-card li {
  margin: 3px 0;
}

.service-learn {
  margin-top: auto;
  padding-top: 17px;
  color: #073a8d;
  font-size: 14px;
  font-weight: 700;
}

.service-learn b {
  margin-left: 6px;
  font-size: 18px;
}

@media (max-width: 1150px) {
  header > .brand {
    width: 225px;
  }
}

@media (max-width: 950px) {
  .strategic-partnership-inner {
    grid-template-columns: 1fr;
    gap: 22px;
    padding-top: 34px;
    padding-bottom: 32px;
  }

  .strategic-partnership img {
    width: min(100%, 720px);
    max-height: 170px;
    margin: auto;
  }

  .credentials-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .credential-card,
  .credential-card:nth-child(6) {
    grid-column: auto;
  }
}

@media (max-width: 760px) {
  header > .brand {
    width: 230px;
  }

  .hero-video {
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    object-position: center bottom;
    transform: none;
    background: #032943;
    filter: brightness(0.98) contrast(1.02) saturate(1.02);
  }

  .hero::after {
    inset: 58% 0 0;
    opacity: 0.12;
    background-size: 34px 34px;
    mask-image: linear-gradient(180deg, transparent, #000 30%);
  }

  .hero-shade {
    background: linear-gradient(180deg, #01233c 0%, #032b48 57%, rgba(3, 43, 72, 0.72) 66%, rgba(3, 43, 72, 0.16) 78%, transparent 92%);
  }

  .hero-shade::after {
    display: none;
  }

  .strategic-partnership-inner {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 20px;
    padding-top: 32px;
    padding-bottom: 30px;
  }

  .strategic-partnership-copy {
    padding-left: 16px;
  }

  .strategic-partnership h2 {
    font-size: 28px;
  }

  .strategic-partnership img {
    max-height: 150px;
  }

  .facility {
    height: auto;
    min-height: 0;
  }

  .facility-main {
    height: 245px;
    min-height: 245px;
    flex: 0 0 245px;
  }

  .facility-bottom {
    height: 190px;
    flex-basis: 190px;
  }

  .partner-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .partner-actions .button {
    width: 100%;
  }

  .accreditations {
    padding-top: 30px;
    padding-bottom: 34px;
  }

  .accreditations .section-heading {
    margin-bottom: 18px;
  }

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

  .credential-card {
    height: 150px;
    padding: 14px 12px 11px;
  }

  .accreditations .credential-card img {
    height: 98px;
  }

  .credential-card figcaption {
    font-size: 11px;
  }

  .credential-card:last-child {
    grid-column: 1 / -1;
    width: calc(50% - 6px);
    justify-self: center;
  }

  .services {
    padding-top: 34px;
    padding-bottom: 42px;
  }

  .services::before {
    top: 178px;
    height: 178px;
  }

  .services .section-heading {
    margin-bottom: 20px;
  }

  .carousel-controls {
    align-self: flex-end;
  }

  .carousel-arrow {
    width: 42px;
    height: 42px;
  }

  .service-carousel {
    gap: 15px;
    padding-right: 5%;
    padding-left: 5%;
    scroll-padding-inline: 5%;
  }

  .service-carousel .service-card {
    flex-basis: min(84vw, 350px);
    height: 540px;
  }

  .service-carousel .service-card > img {
    height: 198px;
  }

  .service-carousel .service-card > .service-card-body {
    padding: 20px 20px 18px;
  }

  .service-carousel .service-card h3 {
    min-height: 0;
    font-size: 19px;
  }
}

@media (max-width: 390px) {
  header > .brand {
    width: 205px;
  }
}
