/*------------------------------------*\
    #IMPROVED SLIDER STYLES
\*------------------------------------*/

/* --- Basic Setup & Responsiveness --- */
.slider_section {
  padding: 0;
  color: #ffffff;
  position: relative;
}

.slider_section .carousel-item {
  height: 90vh;
  min-height: 500px;
  max-height: 800px;
  position: relative;
}

/* --- Background Image Container --- */
.slider_section .bg-box {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.slider_section .bg-box img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  display: block;
}

/* --- Dark Overlay for Text Readability --- */
.slider-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(27, 25, 26, 0.85) 0%,
    rgba(27, 25, 26, 0.65) 50%,
    rgba(27, 25, 26, 0.3) 100%
  );
  z-index: 1;
}

/* --- Positioning Content --- */
.slider_section .container {
  position: relative;
  z-index: 10;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.slider_section .row {
  align-items: center;
  width: 100%;
}

.slider_section .detail-box {
  margin-bottom: 0;
  position: relative;
  z-index: 10;
}

/* --- Modern Animation (Ken Burns Effect) --- */
@keyframes kenburns {
  0% {
    transform: scale(1) translate(0, 0);
  }
  100% {
    transform: scale(1.08) translate(-1.5%, 1.5%);
  }
}

.slider_section .carousel-item.active .bg-box img {
  animation: kenburns 8s ease-out forwards;
}

/* --- Responsive Typography --- */
.slider_section .detail-box h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  text-shadow: 3px 3px 12px rgba(0, 0, 0, 0.9);
  margin-bottom: 15px;
  color: #ffffff;
}

.slider_section .detail-box p {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.9);
  color: #ffffff;
  margin-bottom: 20px;
}

/* --- Carousel Controls --- */
.slider_section .carousel-indicators {
  display: none !important;
}

/* --- Smooth Fade Transition --- */
.slider_section .carousel-fade .carousel-item {
  transition: opacity 0.8s ease-in-out;
  opacity: 0;
}

.slider_section .carousel-fade .carousel-item.active,
.slider_section .carousel-fade .carousel-item-next.carousel-item-left,
.slider_section .carousel-fade .carousel-item-prev.carousel-item-right {
  opacity: 1;
}

/* --- Pre-load Images --- */
.slider_section .carousel-item img {
  opacity: 0;
  transition: opacity 0.4s;
}

.slider_section .carousel-item img.loaded {
  opacity: 1;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
  .slider_section .carousel-item {
    height: 70vh;
    min-height: 400px;
  }
  
  .slider-overlay {
    background: rgba(27, 25, 26, 0.75);
  }
  
  .slider_section .detail-box {
    text-align: center;
  }
}

@media (max-width: 576px) {
  .slider_section .carousel-item {
    height: 60vh;
    min-height: 350px;
  }
  
  .slider_section .detail-box h1 {
    font-size: 2rem;
  }
  
  .slider_section .detail-box p {
    font-size: 0.9rem;
  }
}