/* Hero Carousel Styles */
.hero-carousel {
  position: relative;
  width: 100%;
  height: 450px;
  overflow: hidden;
  margin-bottom: 30px;
  border-radius: 30px; /* Increased from 20px to make it more rounded */
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.hero-slides {
  width: 100%;
  height: 100%;
  position: relative;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  border-radius: 30px; /* Match the parent container */
}

.hero-slide.active {
  opacity: 1;
  z-index: 1;
}

.hero-slide-content {
  max-width: 600px;
  padding: 30px;
  margin-left: 10%;
  background-color: rgba(0, 0, 0, 0.7);
  border-radius: 10px;
  color: white;
  transform: translateY(30px);
  opacity: 0;
  transition: all 1s ease 0.5s;
}

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

.hero-slide-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-slide-subtitle {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.9);
}

.hero-slide-button {
  display: inline-block;
  padding: 12px 30px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero-slide-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  color: white;
}

/* Navigation Controls */
.hero-carousel-nav {
  position: absolute;
  bottom: 30px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  z-index: 10;
}

.hero-carousel-dots {
  display: flex;
  gap: 10px;
}

.hero-carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  padding: 0;
}

.hero-carousel-dot.active {
  background-color: white;
  transform: scale(1.2);
}

.hero-carousel-arrows {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 10;
}

.hero-carousel-arrow {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.hero-carousel-arrow:hover {
  background-color: rgba(0, 0, 0, 0.8);
  transform: scale(1.1);
}

.hero-carousel-arrow svg {
  width: 24px;
  height: 24px;
}

.hero-slide-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}

/* Overlay for better text readability */
.hero-slide::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.1) 100%);
  z-index: 1;
  border-radius: 30px; /* Match the parent container */
}

/* Responsive Styles */
@media (max-width: 992px) {
  .hero-carousel {
    height: 400px;
  }

  .hero-slide-content {
    max-width: 500px;
    margin-left: 5%;
  }

  .hero-slide-title {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .hero-carousel {
    height: 350px;
  }

  .hero-slide-content {
    max-width: 90%;
    margin: 0 auto;
    text-align: center;
  }

  .hero-slide-title {
    font-size: 1.8rem;
  }

  .hero-slide-subtitle {
    font-size: 1rem;
  }

  .hero-slide::before {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.6) 100%);
  }
}

@media (max-width: 576px) {
  .hero-carousel {
    height: 300px;
  }

  .hero-slide-title {
    font-size: 1.5rem;
  }

  .hero-slide-button {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  .hero-carousel-arrow {
    width: 40px;
    height: 40px;
  }
}
