/* Hero Carousel with Slick Slider */

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

.slider-hero .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2);
  z-index: 1;
  pointer-events: none;
}

.hero-slider {
  position: relative;
}

/* Image Container with Backdrop Filter */
.img.img2 {
  position: relative;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  min-height: 100vh;
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.img.img2::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(0px) brightness(1);
  -webkit-backdrop-filter: blur(0px) brightness(1);
  background: rgba(0, 0, 0, 0.3);
  z-index: 0;
}

/* Simple Text Content Styling */
.hero-slider .slick-active .text h1,
.hero-slider .slick-active .text p {
  color: #ffffff;
  position: relative;
  z-index: 2;
}

.hero-slider .slick-active .text h1 {
  font-weight: 700;
  letter-spacing: -0.5px;
}

.hero-slider .slick-active .text p {
  font-size: 1.1rem;
  line-height: 1.8;
}

/* Typewriter effect for active slide paragraph only */
.hero-slider .slick-active .text p {
  overflow: hidden;
  max-height: 0;
  animation: typing 3.5s ease-out forwards;
  animation-delay: 0.8s;
}

@keyframes typing {
  from {
    max-height: 0;
    opacity: 0;
  }
  to {
    max-height: 500px;
    opacity: 1;
  }
}

/* Remove typewriter effect from inactive slides */
.hero-slider .slick-slide:not(.slick-active) .text p {
  animation: none;
  max-height: none;
  opacity: 1;
}

/* Slick Carousel Custom Controls */
.hero-slider .slick-prev,
.hero-slider .slick-next {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  z-index: 10;
  transition: all 0.3s ease;
}

.hero-slider .slick-prev {
  left: 20px;
}

.hero-slider .slick-next {
  right: 20px;
}

.hero-slider .slick-prev:hover,
.hero-slider .slick-next:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.hero-slider .slick-prev:before,
.hero-slider .slick-next:before {
  content: '';
  display: none;
}

.hero-slider .slick-prev .carousel-control-prev-icon,
.hero-slider .slick-next .carousel-control-next-icon {
  width: 24px;
  height: 24px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
  background-size: 100% 100%;
}

.hero-slider .slick-prev .carousel-control-prev-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e");
}

.hero-slider .slick-next .carousel-control-next-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

/* Slick Dots/Indicators */
.hero-slider .slick-dots {
  bottom: 30px;
  z-index: 10;
}

.hero-slider .slick-dots li {
  margin: 0 6px;
}

.hero-slider .slick-dots li button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.5);
  background: transparent;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  transition: all 0.3s ease;
}

.hero-slider .slick-dots li button:before {
  content: '';
  display: none;
}

.hero-slider .slick-dots li.slick-active button {
  width: 40px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.9);
}

/* Ensure content is centered */
.hero-slider .slick-slide {
  outline: none;
}

.hero-slider .slick-slide > div {
  height: 100%;
}

.container-xl,
.row {
  position: relative;
  z-index: 2;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .text h1 {
    font-size: 1.75rem;
  }
  
  .text p {
    font-size: 1rem;
  }
  
  .hero-slider .slick-prev,
  .hero-slider .slick-next {
    width: 45px;
    height: 45px;
  }
  
  .img.img2 {
    background-attachment: scroll;
    min-height: 70vh;
  }
}