/* ===============================
   APP (HERO BAR + HERO SLIDER)
   fajl: /assets/css/app.css
================================ */

.hero{
  margin: 0;
}

/* CRVENA TRAKA (INFO) */
.hero-bar{
  background: #b10000;
  color: #fff;
}

.hero-bar-inner{
  min-height: 54px;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 16px;
}

.hero-bar-title{
  font-weight: 800;
  font-size: 18px;
  line-height: 1.1;
}

.hero-bar-sub{
  opacity: .9;
  font-size: 13px;
  margin-top: 2px;
}

.hero-bar-cta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.28);
  color: #fff;
  font-weight: 800;
  white-space: nowrap;
}
.hero-bar-cta:hover{
  background: rgba(255,255,255,.22);
}

/* SLIDER (SAMO SLIKE) */
.hero-slider{
  position: relative;
  width: 100%;
  height: 360px;
  background: #0b0b0b;
  overflow: hidden;
}

.hero-slide{
  position:absolute;
  inset:0;
  opacity: 0;
  transition: opacity .5s ease;
}

.hero-slide.is-active{
  opacity: 1;
}

.hero-slide img{
  width: 100%;
  height: 100%;
  object-fit: cover;      /* slika popuni */
  object-position: center;
  display:block;
}

/* strelice */
.hero-nav{
  position:absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(0,0,0,.35);
  color:#fff;
  font-size: 26px;
  line-height: 1;
  cursor:pointer;
  display:grid;
  place-items:center;
  z-index: 5;
}
.hero-nav:hover{ background: rgba(0,0,0,.55); }
.hero-nav.prev{ left: 14px; }
.hero-nav.next{ right: 14px; }

/* tačkice */
.hero-dots{
  position:absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  display:flex;
  gap: 8px;
  justify-content:center;
  z-index: 6;
}
.hero-dots .dot{
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: rgba(255,255,255,.45);
}
.hero-dots .dot.is-active{
  background: #fff;
}

.hero-empty{
  color:#fff;
  padding: 24px;
}

/* responsive */
@media (max-width: 900px){
  .hero-slider{ height: 260px; }
  .hero-bar-title{ font-size: 16px; }
}
@media (max-width: 600px){
  .hero-bar-inner{
    flex-direction: column;
    align-items:flex-start;
  }
  .hero-bar-cta{ width:100%; }
}
