/**
 * =====================================================
 * Hero Slider Section Styles
 * Path: assets/css/hero-slider.css
 * =====================================================
 */

.hero-slider {
  position: relative;
  width: 100%;
  height: 85vh;
  min-height: 580px;
  max-height: 800px;
  overflow: hidden;
  background-color: #002b19; /* Dark fallback */
}

/* Individual Slide */
.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
  z-index: 1;
  display: flex;
  align-items: center;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

/* Image Containment & Visibility */
.hero-slide img.hero-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
  transform: scale(1.05);
  transition: transform 6s ease-out;
}

.hero-slide.active img.hero-bg-img {
  transform: scale(1);
}

.hero-bg-fallback {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #004B2D 0%, #002b19 100%);
  z-index: 1;
}

/* Balanced Gradient Overlay */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg, 
    rgba(0, 43, 25, 0.85) 0%, 
    rgba(0, 75, 45, 0.6) 50%, 
    rgba(0, 0, 0, 0.35) 100%
  );
  z-index: 2;
}

/* Text Content Container */
.hero-content {
  position: relative;
  z-index: 3;
  max-width: 820px;
  color: #ffffff;
  padding-top: 20px;
}

/* Subtitle Tag */
.hero-subtitle {
  display: inline-block;
  background-color: #F7941D; /* Brand Orange */
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 6px 16px;
  border-radius: 30px;
  margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(247, 148, 29, 0.3);
}

/* Main Heading */
.hero-content h1 {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.2;
  color: #ffffff;
  margin: 0 0 20px 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.hero-content h1 span {
  color: #F7941D; /* Brand Orange Highlight */
}

/* Paragraph Text */
.hero-content p {
  font-size: 18px;
  line-height: 1.6;
  color: #f0fdf4;
  margin: 0 0 35px 0;
  max-width: 680px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7);
}

/* Buttons */
.hero-buttons {
  display: flex;
  gap: 18px;
  align-items: center;
}

.btn-hero-primary {
  background-color: #00843D; /* Brand Green */
  color: #ffffff !important;
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 132, 61, 0.4);
  display: inline-block;
}

.btn-hero-primary:hover {
  background-color: #00602c;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 132, 61, 0.5);
}

.btn-hero-secondary {
  background-color: #F7941D; /* Brand Orange */
  color: #ffffff !important;
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(247, 148, 29, 0.4);
  display: inline-block;
}

.btn-hero-secondary:hover {
  background-color: #e07f08;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(247, 148, 29, 0.5);
}

/* Slider Controls: Arrows */
.hero-prev,
.hero-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 50px;
  height: 50px;
  background-color: rgba(255, 255, 255, 0.85);
  color: #00843D;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.hero-prev {
  left: 25px;
}

.hero-next {
  right: 25px;
}

.hero-prev:hover,
.hero-next:hover {
  background-color: #F7941D;
  color: #ffffff;
  transform: translateY(-50%) scale(1.1);
}

/* Slider Controls: Pagination Dots */
.hero-dots {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  gap: 10px;
}

.hero-dots .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero-dots .dot.active {
  width: 32px;
  border-radius: 12px;
  background-color: #F7941D;
}

/* Responsive Styles */
@media (max-width: 991px) {
  .hero-slider {
    height: 70vh;
  }

  .hero-content h1 {
    font-size: 38px;
  }

  .hero-content p {
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .hero-slider {
    height: auto;
    min-height: 500px;
    padding: 80px 0;
  }

  .hero-overlay {
    background: rgba(0, 43, 25, 0.75);
  }

  .hero-content h1 {
    font-size: 30px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-hero-primary,
  .btn-hero-secondary {
    text-align: center;
  }

  .hero-prev,
  .hero-next {
    display: none; /* Hide arrows on mobile for cleaner UI */
  }
}