/* Homepage campaign video carousel. */
.jj-home-ads {
  padding: 80px 64px;
  background: #f8fafc;
  color: #0a2240;
  scroll-margin-top: 100px;
}
.jj-home-ads-inner {
  max-width: 1280px;
  margin: auto;
}
.jj-home-ads-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}
.jj-home-ads-accent {
  display: block;
  width: 86px;
  height: 6px;
  border-radius: 5px;
  background: #d20930;
  margin-bottom: 20px;
}
.jj-home-ads h2 {
  margin: 0;
  font:
    900 clamp(27px, 3.1vw, 43px) / 1.13 Montserrat,
    Arial,
    sans-serif;
  text-transform: uppercase;
  letter-spacing: -0.035em;
}
.jj-home-ads-heading p {
  color: #5b6d84;
  margin: 12px 0 0;
  font-size: 21px;
  line-height: 1.45;
}
.jj-home-ads-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #d20930;
  font:
    800 16px/1.4 Lato,
    Arial,
    sans-serif;
  text-transform: uppercase;
  text-decoration: none;
  flex-shrink: 0;
}
.jj-home-ads-link span {
  font-size: 25px;
  line-height: 1;
}
.jj-home-ads-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.jj-ads-carousel {
  position: relative;
}
.jj-ads-track {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 16px;
}
.jj-ads-track::-webkit-scrollbar {
  display: none;
}
.jj-home-ad-card {
  flex: 0 0 calc((100% - 40px) / 3);
  min-width: 0;
  display: flex;
  flex-direction: column;
  scroll-snap-align: start;
  background: white;
  border-radius: 7px;
  overflow: hidden;
  box-shadow: 0 8px 16px #0a224008;
}
.jj-home-ad-cover {
  position: relative;
  display: block;
  aspect-ratio: 16/9;
  background: #0a2240;
}
.jj-home-ad-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.jj-home-ad-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #001b3426;
}
.jj-home-ad-play {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border: 3px solid white;
  border-radius: 50%;
  background: #001b344d;
  color: white;
}
.jj-home-ad-play svg {
  width: 36px;
  height: 36px;
  fill: currentColor;
}
.jj-home-ad-cover:hover .jj-home-ad-play {
  background: #c41230;
}
.jj-home-ad-copy {
  padding: 18px 26px;
  display: flex;
  flex-direction: column;
  flex: none;
  align-items: flex-start;
}
.jj-home-ad-copy p {
  color: #64758b;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  margin: 0 0 8px;
}
.jj-home-ad-copy h3 {
  font:
    900 25px/1.2 Lato,
    Arial,
    sans-serif;
  margin: 0 0 16px;
}
.jj-home-ad-copy .jj-home-ads-link {
  margin-top: 0;
}
.jj-ads-arrow {
  position: absolute;
  z-index: 2;
  top: 40%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: white;
  color: #0a2240;
  box-shadow: 0 4px 18px #0a224012;
  font:
    400 42px/1 Arial,
    sans-serif;
  cursor: pointer;
}
.jj-ads-prev {
  left: -57px;
}
.jj-ads-next {
  right: -57px;
}
.jj-ads-arrow:disabled {
  opacity: 0.35;
  cursor: default;
}
.jj-ads-dots {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-top: 18px;
}
.jj-ads-dots button {
  width: 26px;
  height: 32px;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.jj-ads-dots button::before {
  content: "";
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #c8d0da;
}
.jj-ads-dots button[aria-current="true"]::before {
  background: #d20930;
}
.jj-home-ads a:focus-visible,
.jj-home-ads button:focus-visible,
.jj-ads-track:focus-visible {
  outline: 3px solid #c41230;
  outline-offset: -3px;
}
.jj-ads-dialog {
  width: min(1000px, 94vw);
  max-width: 94vw;
  padding: 0;
  background: #0a2240;
  color: white;
  border: 0;
  border-radius: 6px;
}
.jj-ads-dialog::backdrop {
  background: #00101ee6;
}
.jj-ads-dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 20px;
}
.jj-ads-dialog-heading h3 {
  font-size: 18px;
}
.jj-ads-dialog-heading button {
  font-size: 34px;
  min-width: 44px;
  cursor: pointer;
}
.jj-ads-dialog-player {
  aspect-ratio: 16/9;
  background: #000;
}
.jj-ads-dialog-player iframe,
.jj-ads-dialog-player video {
  width: 100%;
  height: 100%;
  border: 0;
}
@media (max-width: 1100px) {
  .jj-home-ads-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .jj-home-ad-card {
    flex-basis: calc((100% - 20px) / 2);
  }
}
@media (max-width: 600px) {
  .jj-home-ads {
    padding: 48px 24px;
  }
  .jj-home-ads-heading p {
    font-size: 18px;
  }
  .jj-home-ad-card {
    flex-basis: 100%;
  }
  .jj-ads-arrow {
    width: 36px;
    height: 36px;
    font-size: 30px;
  }
  .jj-ads-prev {
    left: -17px;
  }
  .jj-ads-next {
    right: -17px;
  }
}

/* Keep every thumbnail at the same 16:9 height, regardless of source dimensions. */
.jj-home-ad-cover { flex-shrink: 0; }
.jj-home-ad-cover img { position: absolute; inset: 0; }
