/* ============================================================
   Widget · Hero Slider
   ============================================================
   Split hero: text panel (left) + properly-cropped image (right).
   Replaces the Loop-Carousel/post-driven hero, whose background-
   image slides cropped from arbitrary spots and needed a blur
   veil to hide it. Here the image is a real <img> with
   object-fit: cover and a per-slide focal-point control, so no
   blur and no accidental crops.

   Colors read the Elementor site kit via --e-global-color-* with
   neutral fallbacks, so the widget follows whatever brand kit the
   site defines (site-agnostic — nothing BDC-specific).

   Knobs set by the widget's Style controls (on the wrapper):
     --bdc-hs-h        desktop min-height        (default 520px)
     --bdc-hs-panel-w  desktop text-panel width  (default 40%)
     --bdc-hs-panel    panel background          (default soft blue)
     --bdc-hs-radius   outer corner radius       (default 16px)
   ============================================================ */

.bdc-hero-slider {
  position: relative;
  overflow: hidden;
  border-radius: var(--bdc-hs-radius, 16px);
}

.bdc-hs__track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.bdc-hs__slide {
  flex: 0 0 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr;
  background: var(--bdc-hs-panel, #cfe3eb);
}

.bdc-hs__panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 18px;
  padding: 32px 24px 72px; /* bottom clears the nav row */
}

.bdc-hs__title {
  margin: 0;
  font-size: clamp(26px, 2.7vw, 40px);
  line-height: 1.15;
  color: var(--e-global-color-secondary, #0f1b26);
}

.bdc-hs__text {
  margin: 0;
  font-size: clamp(15px, 1.15vw, 18px);
  line-height: 1.6;
  max-width: 46ch;
  color: var(--e-global-color-text, #0f1b26);
}

/* Doubled class beats the kit's `.elementor-kit-N a` color rule
   (0-2-0 vs 0-1-1) without resorting to !important. */
.bdc-hs__btn.bdc-hs__btn {
  display: inline-block;
  width: max-content;
  padding: 12px 26px;
  border-radius: 999px;
  background: var(--e-global-color-primary, #00759a);
  color: #ffffff;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: filter 0.2s ease;
}

.bdc-hs__btn.bdc-hs__btn:hover,
.bdc-hs__btn.bdc-hs__btn:focus {
  color: #ffffff;
  filter: brightness(0.85);
}

/* Image half — real <img>, object-fit cover, focal point via
   inline object-position from the widget's per-slide control. */
.bdc-hs__media {
  position: relative;
  min-height: 220px;
  order: -1; /* mobile: image above text */
}

.bdc-hs__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Arrows + dots, anchored over the text panel like the original */
.bdc-hs__nav {
  position: absolute;
  left: 24px;
  bottom: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 2;
}

.bdc-hs__arrow {
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 999px;
  background: #ffffff;
  color: var(--e-global-color-secondary, #0f1b26);
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 8px rgba(15, 27, 38, 0.14);
  transition: transform 0.15s ease;
}

/* Doubled class: the theme (e.g. Hello) paints its own
   button:hover/:focus background — keep the arrows white. */
.bdc-hs__arrow.bdc-hs__arrow:hover,
.bdc-hs__arrow.bdc-hs__arrow:focus {
  background: #ffffff;
  color: var(--e-global-color-secondary, #0f1b26);
  transform: scale(1.07);
  outline: none;
}

.bdc-hs__arrow.bdc-hs__arrow:focus-visible {
  outline: 2px solid var(--e-global-color-primary, #00759a);
  outline-offset: 2px;
}

.bdc-hs__arrow svg {
  width: 16px;
  height: 16px;
  display: block;
}

.bdc-hs__dots {
  display: flex;
  gap: 8px;
}

.bdc-hs__dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(15, 27, 38, 0.25);
  cursor: pointer;
  transition: background 0.2s ease;
}

.bdc-hs__dot.bdc-hs__dot:hover,
.bdc-hs__dot.bdc-hs__dot:focus {
  background: rgba(15, 27, 38, 0.45);
  outline: none;
}

.bdc-hs__dot.is-active,
.bdc-hs__dot.bdc-hs__dot.is-active {
  background: var(--e-global-color-primary, #00759a);
}

/* ── Desktop split ── */
@media (min-width: 1025px) {
  .bdc-hs__slide {
    grid-template-columns: var(--bdc-hs-panel-w, 40%) 1fr;
    /* Clamp guards vh-based heights: never shorter than 480px on
       small laptops, never a screen-swallowing hero on tall monitors
       (a sliver of the next section must stay visible as a scroll cue). */
    min-height: clamp(480px, var(--bdc-hs-h, 520px), 700px);
  }

  .bdc-hs__panel {
    padding: 48px 48px 88px;
  }

  .bdc-hs__media {
    order: 0; /* back to the right side */
    min-height: 0;
  }

  .bdc-hs__nav {
    left: 48px;
    bottom: 28px;
  }
}
