{% set primary = theme.global_colors.primary.color %}
{% set secondary = theme.global_colors.secondary.color %}
{% set space_cadet = theme.global_colors.space_cadet.color %}
{% set ash_blue = theme.global_colors.ash_blue.color %}
{% set white = theme.global_colors.white.color %}

.dnd-section:has(.hero),
.dnd-column:has(.hero),
.dnd-row:has(.hero),
.hero {
  overflow: visible;
}

.dnd-section:has(.hero) {
  padding-top: 0;
  padding-bottom: 0;
}

.hero {
  --hero-pad-y: 5.5rem;
  --hero-bg: ;
  --hero-heading: ;
  --hero-text: ;
  align-items: start;
  background-color: var(--hero-bg);
  color: var(--hero-text);
  display: grid;
  gap: 2.5rem 3rem;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: var(--hero-pad-y) 0;
  position: relative;
}

.hero--dark {
  --hero-bg: ;
  --hero-heading: ;
  --hero-text: ;
}

.hero--accent {
  --hero-bg: ;
  --hero-heading: ;
  --hero-text: ;
}

.hero--has-video:not(.hero--has-badge) {
  grid-template-columns: 1fr;
}

.hero__content {
  grid-column: 1;
  max-width: 900px;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.hero--has-badge .hero__content {
  padding-right: 12rem;
}

.hero__heading {
  color: var(--hero-heading);
  margin-bottom: 0.75rem;
}

.hero__heading-line {
  display: block;
}

.hero__body,
.hero__body p {
  color: var(--hero-text);
}

.hero__body {
  margin-bottom: 1.25rem;
}

.hero__body p:last-child {
  margin-bottom: 0;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero--dark .button--secondary,
.hero--dark .button--secondary:hover,
.hero--dark .button--secondary:focus,
.hero--dark .button--secondary:active {
  background-color: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  color:  !important;
}

.hero--dark .button--secondary:hover,
.hero--dark .button--secondary:focus {
  background-color: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
}

.hero__media {
  grid-column: 2;
  height: 0;
  margin: 0;
  overflow: visible;
  padding: 0;
  width: 0;
  z-index: 2;
}

.hero__badge {
  background-color: ;
  border-radius: 10px 0 0 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
  left: auto;
  margin-right: calc(50% - 50vw);
  padding: 0.55rem 0.8rem;
  position: absolute;
  right: 0;
  top: var(--hero-pad-y);
  z-index: 2;
}

.hero__badge img {
  display: block;
  height: auto;
  max-width: 140px;
  width: 140px;
}

.hero__video {
  aspect-ratio: 16 / 9;
  background-color: ;
  border-radius: 10px;
  grid-column: 1 / -1;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.hero__video iframe {
  border: 0;
  display: block;
  height: 100%;
  inset: 0;
  position: absolute;
  width: 100%;
}

.hero__video-play.no-button {
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: inherit;
  cursor: pointer;
  display: block;
  height: 100%;
  inset: 0;
  margin: 0;
  padding: 0;
  position: absolute;
  width: 100%;
}

.hero__video-play.no-button::before {
  background: rgba(28, 37, 65, 0.28);
  content: "";
  inset: 0;
  position: absolute;
  z-index: 1;
}

.hero__video-poster {
  display: block;
  height: 100%;
  object-fit: cover;
  position: relative;
  width: 100%;
  z-index: 0;
}

.hero__video-icon {
  align-items: center;
  background-color: ;
  border-radius: 50%;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  color: ;
  display: flex;
  height: 5rem;
  justify-content: center;
  left: 50%;
  pointer-events: none;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 5rem;
  z-index: 2;
}

.hero__video-icon svg {
  display: block;
  margin-left: 3px;
}

.hero__video-play:hover .hero__video-icon,
.hero__video-play:focus .hero__video-icon {
  transform: translate(-50%, -50%) scale(1.06);
}

@media (max-width: 767px) {
  .hero {
    --hero-pad-y: 3.5rem;
    grid-template-columns: 1fr;
  }

  .hero--has-badge .hero__content {
    padding-right: 0;
  }

  .hero__media {
    height: auto;
    width: auto;
  }

  .hero__badge {
    margin-right: 0;
    position: relative;
    right: auto;
    top: auto;
  }
}
