/* Homepage Hero Template Slider */

.hero-template-slider-section {
  width: min(1440px, calc(100% - 48px));
  margin: 34px auto 20px;
}

.hero-template-slider-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.hero-template-slider-head span {
  display: inline-flex;
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(91,46,229,.09);
  color: #5b2ee5;
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.hero-template-slider-head h2 {
  margin: 10px 0 0;
  color: #24194d;
  font-size: clamp(30px, 4vw, 56px);
  line-height: .95;
  letter-spacing: -.055em;
}

.hero-template-slider-head a {
  color: #5b2ee5;
  text-decoration: none;
  font-weight: 1000;
}

.hero-template-slider {
  position: relative;
  overflow: hidden;
  border-radius: 42px;
  background:
    radial-gradient(circle at top right, rgba(255,227,108,.24), transparent 38%),
    linear-gradient(135deg, #24194d, #5b2ee5);
  box-shadow: 0 34px 90px rgba(61, 35, 138, .22);
}

.hero-template-track {
  position: relative;
  min-height: clamp(430px, 42vw, 560px);
}

.hero-template-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateX(30px) scale(.985);
  transition: opacity .55s ease, transform .55s ease;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  gap: clamp(24px, 4vw, 70px);
  align-items: center;
  padding: clamp(30px, 5vw, 70px);
  color: #fff;
}

.hero-template-slide.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0) scale(1);
}

.hero-template-kicker {
  display: inline-flex;
  border-radius: 999px;
  padding: 9px 13px;
  background: rgba(255, 227, 108, .16);
  color: #ffe36c;
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.hero-template-copy h3 {
  margin: 16px 0 14px;
  font-size: clamp(46px, 6.2vw, 92px);
  line-height: .86;
  letter-spacing: -.08em;
}

.hero-template-copy p {
  margin: 0;
  width: min(640px, 100%);
  color: rgba(255,255,255,.78);
  font-size: clamp(17px, 1.55vw, 22px);
  line-height: 1.48;
  font-weight: 800;
}

.hero-template-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 22px;
}

.hero-template-meta span {
  border-radius: 999px;
  padding: 9px 12px;
  background: rgba(255,255,255,.12);
  color: rgba(255,255,255,.92);
  font-size: 13px;
  font-weight: 1000;
}

.hero-template-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-template-actions form {
  margin: 0;
}

.hero-template-primary,
.hero-template-actions button {
  min-height: 56px;
  border: 0;
  border-radius: 18px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  font-weight: 1000;
  text-decoration: none;
  cursor: pointer;
}

.hero-template-primary {
  background: #ffe36c;
  color: #24194d;
}

.hero-template-actions button {
  background: rgba(255,255,255,.14);
  color: #fff;
  border: 1px solid rgba(255,255,255,.18);
}

.hero-template-visual {
  min-height: 330px;
  border-radius: 34px;
  overflow: hidden;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 24px 80px rgba(0,0,0,.16);
  display: grid;
  place-items: center;
}

.hero-template-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-template-fallback {
  width: 160px;
  height: 160px;
  border-radius: 44px;
  display: grid;
  place-items: center;
  background: rgba(255,227,108,.18);
  color: #ffe36c;
  font-size: 92px;
  font-weight: 1000;
}

.hero-template-controls {
  position: absolute;
  left: clamp(22px, 4vw, 58px);
  right: clamp(22px, 4vw, 58px);
  bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.hero-template-controls > button {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.20);
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: 22px;
  font-weight: 1000;
  cursor: pointer;
  pointer-events: auto;
}

.hero-template-dots {
  display: flex;
  gap: 7px;
  pointer-events: auto;
}

.hero-template-dots button {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 0;
  background: rgba(255,255,255,.30);
  cursor: pointer;
}

.hero-template-dots button.active {
  width: 34px;
  background: #ffe36c;
}

@media (max-width: 920px) {
  .hero-template-slider-section {
    width: min(100% - 28px, 1440px);
  }

  .hero-template-slider-head {
    align-items: start;
    flex-direction: column;
  }

  .hero-template-track {
    min-height: 720px;
  }

  .hero-template-slide {
    grid-template-columns: 1fr;
    align-content: start;
  }

  .hero-template-visual {
    min-height: 260px;
  }

  .hero-template-controls {
    bottom: 16px;
  }
}


/* Hero Template Slider height reduced by about 50% */
.hero-template-slider-section {
  margin-top: 22px !important;
  margin-bottom: 14px !important;
}

.hero-template-slider {
  border-radius: 30px !important;
}

.hero-template-track {
  min-height: clamp(220px, 23vw, 300px) !important;
}

.hero-template-slide {
  grid-template-columns: minmax(0, 1.1fr) minmax(240px, .75fr) !important;
  gap: clamp(16px, 2.4vw, 34px) !important;
  padding: clamp(18px, 3vw, 34px) !important;
}

.hero-template-kicker {
  padding: 6px 10px !important;
  font-size: 10px !important;
}

.hero-template-copy h3 {
  margin: 10px 0 8px !important;
  font-size: clamp(30px, 4vw, 58px) !important;
  line-height: .88 !important;
}

.hero-template-copy p {
  font-size: clamp(13px, 1.15vw, 16px) !important;
  line-height: 1.35 !important;
  max-width: 560px !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

.hero-template-meta {
  margin-top: 12px !important;
  gap: 7px !important;
}

.hero-template-meta span {
  padding: 6px 9px !important;
  font-size: 11px !important;
}

.hero-template-actions {
  margin-top: 16px !important;
  gap: 9px !important;
}

.hero-template-primary,
.hero-template-actions button {
  min-height: 42px !important;
  border-radius: 14px !important;
  padding: 0 15px !important;
  font-size: 13px !important;
}

.hero-template-visual {
  min-height: 170px !important;
  height: clamp(170px, 19vw, 240px) !important;
  border-radius: 24px !important;
}

.hero-template-fallback {
  width: 96px !important;
  height: 96px !important;
  border-radius: 28px !important;
  font-size: 54px !important;
}

.hero-template-controls {
  bottom: 12px !important;
  left: clamp(14px, 2vw, 30px) !important;
  right: clamp(14px, 2vw, 30px) !important;
}

.hero-template-controls > button {
  width: 36px !important;
  height: 36px !important;
  border-radius: 12px !important;
  font-size: 17px !important;
}

.hero-template-dots button {
  width: 8px !important;
  height: 8px !important;
}

.hero-template-dots button.active {
  width: 26px !important;
}

@media (max-width: 920px) {
  .hero-template-track {
    min-height: 430px !important;
  }

  .hero-template-slide {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    padding: 22px !important;
  }

  .hero-template-visual {
    min-height: 150px !important;
    height: 170px !important;
  }

  .hero-template-copy h3 {
    font-size: clamp(30px, 8vw, 48px) !important;
  }
}
