/* =========================
   HERO SLIDER — Improved UI
========================= */

.hero-slider {
  position: relative;
  height: 85vh;
  overflow: hidden;
}

/* Slides wrapper */
.hero-slider .slides {
  height: 100%;
}

/* Individual slide — smooth crossfade + subtle zoom */
.hero-slider .slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.9s ease, transform 8s ease-out;
}

.hero-slider .slide.active {
  opacity: 1;
  z-index: 1;
  transform: scale(1);
}

/* Gradient overlay */
.hero-slider .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(44, 69, 60, 0.85) 0%,
    rgba(124, 154, 74, 0.65) 100%
  );
  z-index: 1;
}

/* Slide content — animate in when slide becomes active */
.hero-slider .slide .slide-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
  color: #ffffff;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease 0.2s, transform 0.6s ease 0.2s;
}

.hero-slider .slide.active .slide-content {
  opacity: 1;
  transform: translateY(0);
}

/* Heading */
.hero-slider h1 {
  font-size: clamp(2.6rem, 5vw, 4rem);
  line-height: 1.15;
  font-weight: 700;
  margin-bottom: 16px;
  color: #ffffff;
  text-shadow: 0 6px 20px rgba(0,0,0,0.35);
}

/* Subtext */
.hero-slider p {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  margin-bottom: 32px;
  color: rgba(255,255,255,0.95);
  max-width: 600px;
}

/* Actions */
.hero-slider .hero-actions {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.hero-slider .btn-light {
  font-weight: 600;
}

.hero-slider .btn-outline:hover {
  background: rgba(255,255,255,0.15);
}

/* =========================
   SLIDER ARROWS — Improved
========================= */

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 6;
  font-size: 18px;
  color: #2a3b33;
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}

.slider-arrow:hover {
  background: #ffffff;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.slider-arrow:active {
  transform: translateY(-50%) scale(0.98);
}

.slider-arrow.prev {
  left: 24px;
}

.slider-arrow.next {
  right: 24px;
}

@media (max-width: 768px) {
  .slider-arrow {
    width: 44px;
    height: 44px;
    font-size: 16px;
    left: 12px;
  }
  .slider-arrow.next {
    right: 12px;
  }
}

/* =========================
   SLIDER DOTS — Pill + progress
========================= */

.slider-dots {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 5;
  padding: 8px 14px;
  background: rgba(0,0,0,0.25);
  border-radius: 999px;
  backdrop-filter: blur(6px);
}

.slider-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: width 0.35s ease, background 0.3s ease, transform 0.2s ease;
}

.slider-dots .dot:hover {
  background: rgba(255,255,255,0.8);
  transform: scale(1.15);
}

.slider-dots .dot.active {
  width: 28px;
  border-radius: 999px;
  background: #ffffff;
}

/* =========================
   SLIDER PROGRESS BAR (optional visual)
========================= */

.slider-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 4px;
  background: rgba(255,255,255,0.3);
  width: 100%;
  z-index: 5;
  overflow: hidden;
}

.slider-progress-bar {
  height: 100%;
  width: 0%;
  background: rgba(255,255,255,0.95);
  transition: width 0.1s linear;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 768px) {
  .hero-slider {
    height: 70vh;
  }

  .hero-slider p {
    margin-bottom: 26px;
  }

  .slider-dots {
    bottom: 24px;
    padding: 6px 12px;
  }

  .slider-dots .dot {
    width: 8px;
    height: 8px;
  }

  .slider-dots .dot.active {
    width: 22px;
  }
}
