/* Dunkage Hero Template Slider FORCE Compact Fix */
/* Loaded after homepage-hero-templates.css to beat cached/older slider rules */

body .hero-template-slider-section {
  width: min(1440px, calc(100% - 40px)) !important;
  margin: 12px auto 12px !important;
}

body .hero-template-slider-head {
  margin: 0 0 8px !important;
  align-items: center !important;
}

body .hero-template-slider-head span {
  display: none !important;
}

body .hero-template-slider-head h2 {
  margin: 0 !important;
  font-size: clamp(24px, 2.7vw, 40px) !important;
  line-height: 1.02 !important;
  letter-spacing: -.045em !important;
}

body .hero-template-slider-head a {
  font-size: 14px !important;
}

body .hero-template-slider {
  border-radius: 24px !important;
  min-height: 0 !important;
}

body .hero-template-track {
  min-height: 260px !important;
  height: 260px !important;
  max-height: 260px !important;
}

body .hero-template-slide {
  grid-template-columns: minmax(0, 1.06fr) minmax(360px, .94fr) !important;
  gap: 28px !important;
  padding: 28px 44px !important;
  min-height: 260px !important;
  height: 260px !important;
  max-height: 260px !important;
  align-items: center !important;
}

body .hero-template-kicker {
  padding: 5px 10px !important;
  font-size: 10px !important;
  letter-spacing: .10em !important;
}

body .hero-template-copy h3 {
  margin: 9px 0 7px !important;
  font-size: clamp(32px, 3.2vw, 52px) !important;
  line-height: .92 !important;
  letter-spacing: -.055em !important;
  max-width: 680px !important;
}

body .hero-template-copy p {
  margin: 0 !important;
  font-size: clamp(13px, 1.05vw, 16px) !important;
  line-height: 1.28 !important;
  max-width: 620px !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

body .hero-template-meta {
  margin-top: 10px !important;
  gap: 6px !important;
}

body .hero-template-meta span {
  padding: 5px 8px !important;
  font-size: 10px !important;
}

body .hero-template-actions {
  margin-top: 12px !important;
  gap: 8px !important;
}

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

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

body .hero-template-visual {
  min-height: 0 !important;
  height: 190px !important;
  max-height: 190px !important;
  border-radius: 20px !important;
}

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

body .hero-template-fallback {
  width: 82px !important;
  height: 82px !important;
  border-radius: 22px !important;
  font-size: 44px !important;
}

body .hero-template-controls {
  left: 22px !important;
  right: 22px !important;
  bottom: 12px !important;
}

body .hero-template-controls > button {
  width: 32px !important;
  height: 32px !important;
  border-radius: 11px !important;
  font-size: 15px !important;
}

body .hero-template-dots {
  gap: 5px !important;
}

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

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

/* Extra safety: if original slide uses absolute positioning, keep it constrained */
body .hero-template-slide.active,
body .hero-template-slide {
  overflow: hidden !important;
}

/* Mobile/tablet compact layout */
@media (max-width: 920px) {
  body .hero-template-slider-section {
    width: calc(100% - 26px) !important;
  }

  body .hero-template-slider-head {
    align-items: flex-start !important;
  }

  body .hero-template-slider-head h2 {
    font-size: clamp(24px, 7vw, 36px) !important;
  }

  body .hero-template-track {
    height: 390px !important;
    min-height: 390px !important;
    max-height: 390px !important;
  }

  body .hero-template-slide {
    grid-template-columns: 1fr !important;
    height: 390px !important;
    min-height: 390px !important;
    max-height: 390px !important;
    padding: 20px !important;
    gap: 12px !important;
    align-content: start !important;
  }

  body .hero-template-copy h3 {
    font-size: clamp(28px, 7vw, 40px) !important;
  }

  body .hero-template-visual {
    height: 140px !important;
    max-height: 140px !important;
  }

  body .hero-template-actions {
    margin-bottom: 24px !important;
  }
}
