/* ===========================
   slider_container.css
   Hero Full-screen Slider
   =========================== */

/* Root fix: prevent ANY horizontal overflow globally */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}

.hero-slider {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  width: 100%;
}

.slider {
  display: flex;
  height: 100%;
  /* Must be wide enough for all slides — do NOT restrict width */
  transition: transform 0.7s cubic-bezier(0.77, 0, 0.175, 1);
}

.slide {
  /* 100vw ensures each slide is exactly the screen width on mobile too */
  flex: 0 0 100vw;
  width: 100vw;
  height: 100%;
  position: relative;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  animation: zoomOut 6s ease forwards;
  /* Block any sub-pixel bleed */
  display: block;
}

@keyframes zoomOut {
  from { transform: scale(1.08); }
  to   { transform: scale(1.0); }
}

/* Gradient overlay - bottom-heavy for text */
.overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.25) 0%,
    rgba(0,0,0,0.15) 40%,
    rgba(0,0,0,0.60) 100%
  );
  z-index: 1;
}

/* Hero Content */
.hero-content {
  position: absolute;
  bottom: 14%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  text-align: center;
  color: white;
  width: 90%;
  max-width: 800px;
}

.hero-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 8px 20px;
  border-radius: 30px;
  margin-bottom: 24px;
}

.hero-content h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(42px, 7vw, 80px);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
  text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.hero-content h1 em {
  font-style: italic;
  color: #f8c640;
}

.hero-content p {
  font-size: clamp(15px, 2vw, 18px);
  opacity: 0.9;
  margin-bottom: 36px;
  line-height: 1.8;
}

.hero-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  padding: 15px 38px;
  background: #f8c640;
  color: #0d1117;
  font-size: 15px;
  font-weight: 700;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: 0.3s ease;
  letter-spacing: 0.5px;
}

.btn-primary:hover {
  background: white;
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}

.btn-ghost {
  padding: 15px 38px;
  background: transparent;
  color: white;
  font-size: 15px;
  font-weight: 600;
  border: 2px solid rgba(255,255,255,0.7);
  border-radius: 50px;
  cursor: pointer;
  transition: 0.3s ease;
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.15);
  border-color: white;
  transform: translateY(-3px);
}

/* Arrow Buttons */
.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.25);
  color: white;
  font-size: 20px;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 50%;
  transition: 0.3s ease;
}

.prev:hover, .next:hover {
  background: rgba(255,255,255,0.28);
  transform: translateY(-50%) scale(1.1);
}

.prev { left: 32px; }
.next { right: 32px; }

/* Dots */
.slider-dots {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 10px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none;
  cursor: pointer;
  transition: 0.3s;
  padding: 0;
}

.dot.active {
  width: 28px;
  border-radius: 4px;
  background: #f8c640;
}

@media (max-width: 768px) {
  .prev, .next { display: none; }
  .hero-content { bottom: 16%; }
}