.home-videos {
  background: #ebf4ff;
  border-bottom: 1px solid #d8e8fb;
  border-top: 1px solid #d8e8fb;
  color: #2f3351;
  contain: layout paint;
  overflow-x: hidden;
  padding: 88px 0;
}

.home-videos *,
.home-videos *::before,
.home-videos *::after {
  box-sizing: border-box;
}

.home-videos__container {
  margin: 0 auto;
  max-width: 1320px;
  min-width: 0;
  padding: 0 24px;
  width: 100%;
}

.home-videos__heading {
  align-items: flex-end;
  display: flex;
  gap: 32px;
  justify-content: space-between;
  margin-bottom: 34px;
  min-width: 0;
}

.home-videos__heading > div:first-child {
  min-width: 0;
}

.home-videos .home-videos__eyebrow {
  color: #2f80ed;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.home-videos h2 {
  color: #2f3351;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.18;
  margin: 0 0 12px;
  max-width: 760px;
}

.home-videos .home-videos__intro {
  color: #5a6283;
  font-size: 16px;
  line-height: 1.7;
  margin: 0;
  max-width: 760px;
}

.home-videos__controls {
  display: flex;
  flex-shrink: 0;
  gap: 10px;
}

.home-videos__controls[hidden] {
  display: none;
}

.home-videos__controls button {
  align-items: center;
  background: #fff;
  border: 1px solid #b9d3f2;
  border-radius: 50%;
  color: #1769d2;
  cursor: pointer;
  display: inline-flex;
  font-size: 22px;
  height: 46px;
  justify-content: center;
  padding: 0;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
  width: 46px;
}

.home-videos__controls button:hover:not(:disabled) {
  background: #2f80ed;
  border-color: #2f80ed;
  color: #fff;
}

.home-videos__controls button:disabled {
  cursor: default;
  opacity: .38;
}

.home-videos__track {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding: 0 0 14px;
  scrollbar-color: #8cb9ed #dceafa;
  scrollbar-width: thin;
  scroll-snap-type: x mandatory;
  width: 100%;
}

.home-video-card {
  background: #fff;
  border: 1px solid #d6e3f2;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(46, 81, 125, .09);
  display: flex;
  flex: 0 0 calc((100% - 48px) / 3);
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  scroll-snap-align: start;
}

.home-video-card__cover {
  background: #dcecff;
  display: block;
  position: relative;
  text-decoration: none;
}

.home-video-card__cover img {
  aspect-ratio: 941 / 1671;
  display: block;
  height: auto;
  object-fit: contain;
  width: 100%;
}

.home-video-card__play {
  align-items: center;
  background: rgba(26, 105, 210, .94);
  border: 2px solid rgba(255, 255, 255, .85);
  border-radius: 50%;
  box-shadow: 0 5px 18px rgba(24, 61, 110, .32);
  color: #fff;
  display: flex;
  font-size: 22px;
  height: 60px;
  justify-content: center;
  left: 50%;
  padding-left: 4px;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
}

.home-video-card__badge {
  background: rgba(47, 51, 81, .92);
  border-radius: 4px;
  bottom: 12px;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  left: 12px;
  padding: 5px 9px;
  position: absolute;
}

.home-video-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px;
}

.home-video-card__body h3 {
  font-size: 18px;
  line-height: 1.4;
  margin: 0 0 12px;
}

.home-video-card__body h3 a {
  color: #2f3351;
  text-decoration: none;
}

.home-video-card__body h3 a:hover {
  color: #1769d2;
}

.home-video-card__body p {
  color: #626b88;
  font-size: 14px;
  line-height: 1.65;
  margin: 0 0 20px;
}

.home-video-card__action {
  align-items: center;
  background: #2f80ed;
  border-radius: 6px;
  color: #fff;
  display: flex;
  font-size: 14px;
  font-weight: 700;
  gap: 12px;
  justify-content: space-between;
  margin-top: auto;
  padding: 12px 15px;
  text-decoration: none;
}

.home-video-card__action:hover {
  background: #1769d2;
  color: #fff;
}

.home-videos .home-videos__footnote {
  color: #687492;
  font-size: 13px;
  margin: 20px 0 0;
  text-align: center;
}

.home-videos a:focus-visible,
.home-videos button:focus-visible,
.home-videos__track:focus-visible {
  outline: 3px solid #0f5fc4;
  outline-offset: 3px;
}

.home-videos__sr {
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

@media (max-width: 991px) {
  .home-video-card {
    flex-basis: calc((100% - 24px) / 2);
  }
}

@media (max-width: 767px), (max-device-width: 767px) {
  .home-videos {
    padding: 58px 0;
  }

  .home-videos__container {
    padding: 0 16px;
  }

  .home-videos__heading {
    align-items: flex-start;
    gap: 16px;
  }

  .home-videos h2,
  .home-videos .home-videos__intro {
    overflow-wrap: anywhere;
  }

  .home-videos__controls {
    flex-direction: column;
  }

  .home-video-card {
    flex-basis: 82%;
  }

  .home-video-card__body {
    padding: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-videos *,
  .home-videos *::before,
  .home-videos *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
