/* Hero Slider Section */
.hero-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
}

/* Slider Container */
.slider-container {
  position: relative;
  width: 100%;
  /* height: 600px; */
  cursor: grab;
  user-select: none;
  overflow: hidden;
}

.slider-container:active {
  cursor: grabbing;
}

/* Individual Slide */
.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out, visibility 0.6s;
  z-index: 0;
}

.slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

/* Slide direction animations */
.slide.slide-from-right {
  transform: translateX(100%);
}

.slide.slide-from-left {
  transform: translateX(-100%);
}

.slide.active.slide-from-right,
.slide.active.slide-from-left {
  transform: translateX(0);
}

.slide.slide-to-left {
  transform: translateX(-100%);
}

.slide.slide-to-right {
  transform: translateX(100%);
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-content {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  color: white;
  text-align: center;
  z-index: 2;
}

.slide-content h1 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(165, 145, 130, 0.35);
  animation: slideContentIn 0.8s ease-out 0.2s both;
}

.slide-content p {
  font-size: 20px;
  text-shadow: 1px 1px 2px rgba(165, 145, 130, 0.35);
  animation: slideContentIn 0.8s ease-out 0.4s both;
}

@keyframes slideContentIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Clickable slide with link */
.slide[data-link]:not([data-link=""]) {
  cursor: pointer;
}

/* Subtle hover effect without moving content */
.slide[data-link]:not([data-link=""]):hover::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.05);
  pointer-events: none;
  z-index: 1;
  transition: background 0.3s ease;
}

/* Slider Navigation Arrows */
.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(165, 145, 130, 0.14);
}

.slider-nav:hover {
  background: rgba(255, 255, 255, 1);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 20px rgba(165, 145, 130, 0.22);
}

.slider-nav:active {
  transform: translateY(-50%) scale(0.95);
}

.slider-nav.prev {
  left: 30px;
}

.slider-nav.next {
  right: 30px;
}

.slider-nav svg {
  color: var(--primary-green);
  width: 24px;
  height: 24px;
}

/* Slider Dots */
.slider-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: white;
  width: 30px;
  border-radius: 6px;
}

.dot:hover {
  background: rgba(255, 255, 255, 0.8);
}

/* Prevent text selection during drag */
.slider-container * {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .slider-container {
    height: 400px;
  }

  .slide-content h1 {
    font-size: 32px;
  }

  .slide-content p {
    font-size: 16px;
  }

  .slider-nav {
    width: 40px;
    height: 40px;
  }

  .slider-nav.prev {
    left: 15px;
  }

  .slider-nav.next {
    right: 15px;
  }

  .slider-nav svg {
    width: 20px;
    height: 20px;
  }

  .slider-dots {
    bottom: 20px;
  }

  .dot {
    width: 10px;
    height: 10px;
  }

  .dot.active {
    width: 24px;
  }
}

/* Hide arrows on very small screens */
@media (max-width: 480px) {
  .slider-container {
    height: 300px;
  }

  .slide-content h1 {
    font-size: 24px;
  }

  .slide-content p {
    font-size: 14px;
  }

  .slider-nav {
    width: 36px;
    height: 36px;
    opacity: 0.8;
  }

  .slider-nav:hover {
    opacity: 1;
  }
}
