/* ubertex/public/assets/css/banner.css */

/* 1. Banner full-screen */
.banner {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  margin: 0;
}

/* 2. Slides */
.slides {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease;
  z-index: 0;
}
.slide.active {
  opacity: 1;
  z-index: 0;
}

/* 3. Overlay teks */
.banner-overlay {
  position: absolute;
  top: 10%;
  left: 0;
  width: 100%;
  padding: 0 15px;
  text-align: center;
  z-index: 2;
}
.banner-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: #fff;
  margin: 0;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
  white-space: nowrap;
}
.banner-subtitle {
  font-size: clamp(0.875rem, 2.5vw, 1.25rem);
  color: #fff;
  margin-top: 0.5em;
  text-shadow: 1px 1px 6px rgba(0,0,0,0.6);
}

/* 4. Tombol “Pelajari Selengkapnya” */
.banner-btn-container {
  position: absolute;
  bottom: 8%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.banner-btn {
  display: inline-block;
  padding: 0.75em 2em;
  font-size: clamp(0.875rem, 2vw, 1.1rem);
  color: var(--dark);                         /* teks tombol jadi hitam */
  background: rgba(255, 255, 255, 0.5);     /* dasar putih transparan */
  border-radius: 4px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.3s ease, transform 0.3s ease;
  backdrop-filter: saturate(180%) blur(4px);
}
.banner-btn:hover {
  background: rgba(255, 255, 255, 0.9);       /* lebih solid saat hover */
  transform: translateY(-2px);
}

/* 5. Mobile responsive */
@media (max-width: 768px) {
  .banner-overlay {
    top: 20%;
    padding: 0 10px;
  }
  .banner-title {
    font-size: clamp(1.5rem, 8vw, 2.5rem);
    white-space: normal;
  }
  .banner-subtitle {
    font-size: clamp(0.75rem, 3vw, 1rem);
  }
  .banner-btn-container {
    bottom: 10%;
  }
  .banner-btn {
    font-size: clamp(0.75rem, 4vw, 1rem);
    padding: 0.6em 1.5em;
    white-space: nowrap;
  }
}
