/* BARTELS-CONJAR: izolirani stil za novi početni slider */
.bc-hero-slider {
  position: relative;
  height: 610px;
  overflow: hidden;
  background: #0b1624;
  isolation: isolate;
}
.bc-hero-slider .bc-hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .95s ease, visibility 0s linear .95s;
}
.bc-hero-slider .bc-hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5,13,24,.65) 0%, rgba(5,13,24,.33) 54%, rgba(5,13,24,.12) 100%);
}
.bc-hero-slider .bc-hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 1;
  transition: opacity .95s ease, visibility 0s;
}
.bc-hero-slider .bc-hero-slide > .container {
  height: 100%;
  position: relative;
  z-index: 2;
}
.bc-hero-slider .bc-hero-content {
  height: 100%;
  max-width: 830px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 0 0 36px;
}
.bc-hero-slider .bc-hero-content h1,
.bc-hero-slider .bc-hero-content h2 {
  color: #fff !important;
  font-size: clamp(38px, 4.1vw, 62px) !important;
  font-weight: 700 !important;
  line-height: 1.12 !important;
  text-transform: uppercase;
  margin: 0 0 22px !important;
}
.bc-hero-slider .bc-hero-content > p {
  color: #fff !important;
  font-size: 16px !important;
  line-height: 1.6 !important;
  max-width: 770px;
  margin: 0 0 32px !important;
}
.bc-hero-slider .bc-hero-buttons {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  width: 100%;
}
.bc-hero-slider .bc-hero-buttons > .bc-hero-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 auto;
  width: auto !important;
  min-width: 0 !important;
  max-width: 100%;
  min-height: 58px;
  height: auto;
  padding: 16px 28px !important;
  margin: 0 !important;
  box-sizing: border-box;
  border: 0 !important;
  border-radius: 0 !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
  text-transform: none !important;
  text-decoration: none !important;
  text-align: center;
  white-space: normal;
  transition: background-color .25s ease, color .25s ease;
}
.bc-hero-slider .bc-hero-primary,
.bc-hero-slider .bc-hero-primary:focus {
  background: #dd3333 !important;
  color: #fff !important;
}
.bc-hero-slider .bc-hero-secondary,
.bc-hero-slider .bc-hero-secondary:focus {
  background: #fff !important;
  color: #142340 !important;
}
.bc-hero-slider .bc-hero-primary:hover { background: #fff !important; color: #142340 !important; }
.bc-hero-slider .bc-hero-secondary:hover { background: #142340 !important; color: #fff !important; }
.bc-hero-slider .bc-hero-btn span { margin-left: 14px; }
.bc-hero-slider .bc-hero-controls {
  position: absolute;
  bottom: 28px;
  right: max(25px, calc((100% - 1170px)/2));
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 18px;
}
.bc-hero-slider .bc-hero-controls > button {
  border: 0;
  background: transparent;
  color: #fff;
  padding: 8px;
  font-size: 24px;
  cursor: pointer;
}
.bc-hero-slider .bc-hero-dots { display: flex; align-items: center; gap: 9px; }
.bc-hero-slider .bc-hero-dots button {
  display: block;
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.55);
  cursor: pointer;
}
.bc-hero-slider .bc-hero-dots button.is-active { background: #dd3333; }
.bc-hero-slider button:focus-visible,
.bc-hero-slider a:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@media (max-width: 767px) {
  .bc-hero-slider { height: 590px; }
  .bc-hero-slider .bc-hero-slide { background-position: 66% center; }
  .bc-hero-slider .bc-hero-slide::before { background: linear-gradient(90deg, rgba(5,13,24,.82), rgba(5,13,24,.5)); }
  .bc-hero-slider .bc-hero-content { padding: 25px 0 74px; max-width: 100%; }
  .bc-hero-slider .bc-hero-content h1,
  .bc-hero-slider .bc-hero-content h2 { font-size: clamp(29px, 7.5vw, 38px) !important; margin-bottom: 16px !important; }
  .bc-hero-slider .bc-hero-content > p { font-size: 14px !important; line-height: 1.55 !important; margin-bottom: 21px !important; }
  .bc-hero-slider .bc-hero-buttons { flex-direction: column; align-items: flex-start; gap: 10px; }
  .bc-hero-slider .bc-hero-buttons > .bc-hero-btn { min-height: 50px; padding: 13px 20px !important; font-size: 13px !important; }
  .bc-hero-slider .bc-hero-controls { bottom: 21px; left: 15px; right: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .bc-hero-slider .bc-hero-slide { transition: none !important; }
}

/* Precizna prilagodba vrlo uskim uređajima i kraj animacije. */
.bc-hero-slider .bc-hero-slide { will-change: opacity; }
.bc-hero-slider .bc-hero-btn { gap: 12px; }
.bc-hero-slider .bc-hero-btn span { margin-left: 0; }
@media (max-width: 380px) {
  .bc-hero-slider { height: 620px; }
  .bc-hero-slider .bc-hero-content h1,
  .bc-hero-slider .bc-hero-content h2 { font-size: 29px !important; }
  .bc-hero-slider .bc-hero-buttons > .bc-hero-btn { padding: 12px 16px !important; font-size: 12px !important; }
}

/* Bartels 0.15.1: mobilni gumbi jednako široki, uredno jedan ispod drugoga. */
@media (max-width: 767px) {
  .bc-hero-slider .bc-hero-buttons {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100% !important;
    gap: 10px !important;
  }
  .bc-hero-slider .bc-hero-buttons > a.bc-hero-btn {
    display: flex !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    min-height: 54px !important;
    height: 54px !important;
    flex: none !important;
    padding: 0 18px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    font-size: 13px !important;
    line-height: 1.25 !important;
    white-space: normal !important;
  }
}
