.g-has-app-sidebar .g-hero--full {
  width: 100%;
  left: auto;
  right: auto;
  margin-left: 0;
  margin-right: 0;
  position: relative;
}

.g-hero__wrap {
  --ct-hero-frame-radius: 16px;
  --ct-hero-border-width: 64px;
  position: relative;
  background: var(--ct-primary);
  overflow: hidden;
  isolation: isolate;
}

.g-hero--full .g-hero__wrap {
  border-radius: var(--ct-hero-frame-radius);
  box-sizing: border-box;
  box-shadow: none;
  width: 100%;
  border: solid 1px var(--ct-border-default);
}

/* .g-hero__wrap::before {
  content: '';
  position: absolute;
  inset: -1px;
  z-index: 5;
  width: auto;
  height: auto;
  border: 1px solid transparent;
  border-image-source: url('../images/buttons/banner-border.webp');
  border-image-slice: 128;
  border-image-width: var(--ct-hero-border-width);
  border-image-repeat: stretch;
  pointer-events: none;
} */

.g-hero__wrap::after {
  content: none;
}

.g-hero__slider {
  position: relative;
  z-index: auto;
  aspect-ratio: 1920 / 720;
  min-height: 360px;
  max-height: 560px;
  border-radius: var(--ct-hero-frame-radius);
  overflow: hidden;
}

.g-hero--full .g-hero__slider {
  width: 100%;
}

.g-has-app-sidebar .g-hero--full .g-hero__slide {
  width: 100%;
}

.g-hero__slide {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  flex-shrink: 0;
  box-sizing: border-box;
  background-color: var(--ct-primary);
}

.g-hero--full .g-hero__slide {
  width: 100vw;
}

.g-hero__slide--has-bg {
  background-image: var(--g-hero-bg, none);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.g-hero__lcp {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 0;
  pointer-events: none;
  opacity: 0; /* The CSS background paints the visible layer; the IMG is for browser LCP discovery. */
}

.g-hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 0;
  pointer-events: none;
}

.g-hero__slide--video {
  background-color: var(--ct-primary);
}

.g-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* In full-width mode, anchor content to the left edge of the viewport. */
.g-hero--full .g-hero__inner {
  margin-left: 0;
  margin-right: auto;
  padding-left: clamp(24px, 8vw, 96px);
}

.g-hero__inner {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  padding: 64px 56px;
  max-width: 660px;
  text-align: center;
  z-index: 6;
}

@media (max-width: 1000px) {
  .g-hero--full .g-hero__inner {
    margin-left: auto;
    margin-right: auto;
    padding-left: clamp(24px, 5vw, 48px);
    padding-right: clamp(24px, 5vw, 48px);
  }

  .g-hero__actions,
  .g-hero__action {
    display: flex;
    justify-content: center;
  }
}

.g-hero__eyebrow {
  display: inline-flex;
  margin: 0 0 6px;
  padding: 4px 12px;
  border-radius: 12px;
  letter-spacing: -0.02em;
  background: var(--ct-eybrow-bg);
  color: var(--ct-text-primary);
  text-shadow: 1px 1px 0 rgb(0 0 0 / 0.4);
  font-size: clamp(14px, 1.35vw, 20px);
  font-weight: var(--ct-font-w-500);
  line-height: 1.08;
}

.g-hero__title {
  margin: 0 0 10px;
  color: var(--ct-text-primary);
  font-size: clamp(30px, 4vw, 52px);
  font-weight: var(--ct-font-w-500);
  line-height: 1.25;
  letter-spacing: 0.04em;
  text-shadow: 1px 1px 0 rgb(0 0 0 / 0.4);
  filter: drop-shadow(0 3px 0 rgb(0 0 0 / 1));
  -webkit-text-stroke-width: 2px;
  -webkit-text-stroke-color: var(--ct-primary);
  paint-order: stroke;
}

.g-hero__title em {
  font-style: italic;
  color: #fff;
}

.g-hero__sub {
  color: #fff;
  opacity: 0.92;
  margin: 0 0 24px;
  font-size: clamp(13px, 1.15vw, 16px);
  font-weight: 500;
}

.g-hero__cta {
  --stb-button-inner-background-inset: 3px;
  --stb-button-inner-background-border-radius: 4px;
  --stb-button-inner-active-background-inset: 2px;
  --stb-button-inner-active-background-border-radius: 4px;
  --stb-button-loading-after-filter: brightness(0) saturate(100%) invert(100%)
    sepia(10%) saturate(7484%) hue-rotate(182deg) brightness(113%)
    contrast(123%);
  --stb-button-text-color: #ffffff;
  --stb-button-background: radial-gradient(
      51.3% 72.22% at 52.91% 0%,
      rgb(255 255 255 / 0.9) 0%,
      rgb(255 214 161 / 0) 100%
    ),
    linear-gradient(180deg, #fff166 0%, #fe5e01 48.56%, #990000 100%),
    linear-gradient(180deg, #ffd941 0%, #ff3300 100%);
  --stb-button-inner-background: radial-gradient(
      89.4% 50% at 50% 0%,
      rgb(246 94 0 / 0.6) 0%,
      rgb(254 191 1 / 0) 100%
    ),
    linear-gradient(180deg, #ffd941 0%, #ff3300 100%);
  --stb-button-text-shadow: 0 -1px 1px rgb(255 210 94 / 0.5),
    0 1px 1px rgb(242 0 0 / 0.6);
  --stb-button-shadow: 0 -8px 20px 0 rgb(255 63 15 / 0.5),
    0 -2px 4px 0 rgb(255 255 153 / 0.15), 0 1px 10px 0 rgb(51 26 29 / 0.7);
  --ct-hero-cta-cap: clamp(38px, 5vw, 60px);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: clamp(150px, 19vw, 240px);
  min-height: clamp(48px, 6vw, 88px);
  padding: clamp(7px, 1vw, 10px) clamp(34px, 5.5vw, 88px);
  border: 0;
  border-radius: 6px;
  background: var(--stb-button-background);
  box-shadow: var(--stb-button-shadow);
  color: var(--stb-button-text-color);
  font-size: clamp(15px, 2vw, 28px);
  font-weight: var(--ct-font-w-500);
  line-height: 1;
  text-align: center;
  text-decoration: none;
  text-shadow: var(--stb-button-text-shadow);
  transition: var(--transition-default);
}

.g-hero__cta::before {
  content: '';
  position: absolute;
  inset: var(--stb-button-inner-background-inset);
  z-index: 0;
  border-radius: var(--stb-button-inner-background-border-radius);
  background: var(--stb-button-inner-background);
  pointer-events: none;
  transition: var(--transition-default);
}

.g-hero__cta:hover {
  background: radial-gradient(
      51.3% 72.22% at 52.91% 0%,
      rgb(255 255 255 / 0.9) 0%,
      rgb(255 214 161 / 0) 100%
    ),
    linear-gradient(180deg, #fff166 0%, #fe5e01 48.56%, #990000 100%);
  box-shadow: -2px -2px 10px 0 rgb(255 186 36 / 0.1),
    2px -2px 10px 0 rgb(255 186 36 / 0.1), 0 -8px 20px 0 rgb(255 63 15 / 0.5),
    0 -4px 16px 0 rgb(255 255 153 / 0.1), 0 1px 5px 0 rgb(51 26 29 / 0.3);
  color: var(--stb-button-text-color);
}

.g-hero__cta:hover::before {
  background: radial-gradient(
      89.4% 50% at 50% 0%,
      rgb(246 94 0 / 0.6) 0%,
      rgb(254 191 1 / 0) 100%
    ),
    linear-gradient(180deg, #ffe066 0%, #ff571a 100%);
}

.g-hero__cta-inner {
  position: relative;
  z-index: 1;
  display: inline-block;
  overflow: hidden;
  max-width: 100%;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Slider arrows. */
.g-hero__nav {
  --ct-nav-background: linear-gradient(180deg, #3f4152 0%, #202532 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid transparent;
  border-radius: 6px;
  background-color: var(--ct-secondary);
  color: var(--ct-hero-nav);
  cursor: pointer;
  margin-top: 0;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  transition: var(--transition-default);
}

.g-hero__nav::before {
  position: absolute;
  inset: -1px;
  border: inherit;
  border-radius: inherit;
  background: var(--ct-nav-background) border-box;
  mask: linear-gradient(#202532, #202532) padding-box,
    linear-gradient(#202532, #202532);
  mask-composite: exclude;
  pointer-events: none;
  content: '';
}

.g-hero__nav::after {
  content: '';
  width: 14px;
  height: 14px;
  background-color: currentColor;
  mask-image: url('../images/buttons/triangle-arrow.svg');
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
  -webkit-mask-image: url('../images/buttons/triangle-arrow.svg');
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
}

.g-hero__nav--prev {
  left: 20px;
  transform: translateY(-50%) scaleX(-1);
}

.g-hero__nav--next {
  right: 20px;
}

.g-hero__nav:hover {
  color: var(--ct-grey-dark);
}

.g-hero__nav:hover::before {
  background: linear-gradient(rgb(105, 105, 129) 0%, rgb(43, 47, 61) 100%)
    border-box;
}

.g-hero__nav:active {
  color: var(--ct-grey-dark);
}

.g-hero__nav--next:active {
  color: var(--ct-grey-dark);
}

.g-hero__nav.swiper-button-disabled {
  opacity: 0.4;
  pointer-events: none;
}

/* Pagination: round dots, accent active. */
.g-hero__pagination {
  bottom: 20px;
}

.g-hero__pagination .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: var(--ct-secondary);
  opacity: 1;
  border-radius: 50%;
  margin: 0 5px !important;
  transition: var(--transition-default);
}

.g-hero__pagination .swiper-pagination-bullet-active {
  background: var(--ct-accent);
  transform: scale(1.15);
}

@media (max-width: 780px) {
  .g-hero__inner {
    padding-top: max(24px, env(safe-area-inset-top, 0px));
    padding-bottom: 24px;
    padding-left: max(28px, env(safe-area-inset-left, 0px));
    padding-right: max(28px, env(safe-area-inset-right, 0px));
  }

  .g-hero--full .g-hero__inner {
    padding-left: max(28px, env(safe-area-inset-left, 0px));
    padding-right: max(28px, env(safe-area-inset-right, 0px));
  }

  .g-hero__title {
    -webkit-text-stroke-width: 1.25px;
  }

  .g-hero__cta {
    --ct-hero-cta-cap: 36px;
    min-width: 0;
    min-height: 44px;
    padding: 8px 34px;
    font-size: clamp(14px, 3.8vw, 17px);
  }
}

@media (max-width: 700px) {
  .g-hero__nav {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .g-hero__video {
    display: none;
  }
}
