.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(--ct-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;
  background-image: url('../images/backgrounds/title-bg-desk.webp');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
  color: var(--ct-text-primary);
  text-shadow: var(--ct-text-shadow);
  font-size: clamp(14px, 1.35vw, 20px);
  font-weight: var(--ct-font-w-lg);
  line-height: 1.25;
}

.g-hero__title {
  margin: 0 0 10px;
  color: var(--ct-accent);
  font-size: clamp(30px, 4vw, 52px);
  font-weight: var(--ct-font-w-xl);
  line-height: 1.16;
  text-shadow: var(--ct-text-shadow-styled);
}

.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: var(--ct-font-w-md);
}

.g-hero__cta {
  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: var(--ct-border-radius-lg);
  color: var(--ct-white);
  font-size: clamp(15px, 2vw, 28px);
  font-weight: var(--ct-font-w-sm);
  line-height: 1;
  text-align: center;
  text-decoration: none;
  transition: var(--transition-default);
  border-image-source: url('../images/buttons/cta-btn-default.png');
  border-image-slice: 80 fill;
  border-image-width: 80px;
  border-image-outset: 0;
  border-image-repeat: stretch;
  -webkit-text-stroke: 5px #992b07;
  paint-order: stroke;
  background-size: 100% 100%;
  background-image: url('../images/buttons/cta-btn-default.png');
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
  transform-style: preserve-3d;
}

/* .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 {
  border-image-source: url('../images/buttons/cta-btn-hover.png');
  background-image: url('../images/buttons/cta-btn-hover.png');
}

/* .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;
  max-width: 100%;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Slider arrows. */
.g-hero__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 0;
  background-color: transparent;
  background-image: url('../images/buttons/arrow-btn-default.webp');
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  color: transparent;
  cursor: pointer;
  margin-top: 0;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  transition: filter 0.15s var(--transition-default), transform 0.12s ease;
}

.g-hero__nav--prev {
  left: 20px;
}

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

.g-hero__nav:hover {
  background-image: url('../images/buttons/arrow-btn-hover.webp');
}

.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;
  }
}
