/* Base Styles & Aspect Ratio Setup */
.hero.hero-slider {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.hero-slider-layout,
.swiper.hero-swiper,
.swiper-wrapper {
  width: 100% !important;
  height: auto !important;
}

.hero-slide-wrapper {
  position: relative !important;
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
}

/* Image Fluidity */
.hero-slide-img {
  width: 100% !important;
  height: auto !important;
  max-width: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

/* Overlay Content Positioning */
.hero-overlay-content {
  position: absolute !important;
  bottom: 10% !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  z-index: 10 !important;
  width: auto !important;
  text-align: center !important;
}

.btn-slider {
  display: inline-block !important;
  white-space: nowrap !important;
  padding: 12px 28px !important;
  font-size: 14px !important;
  text-decoration: none !important;
}

/* Responsive Scaling for Mobile & Tablets */
@media (max-width: 768px) {
  .hero.hero-slider {
    margin-top: 0px !important; /* Adjust header offset for smaller screens */
  }

  .hero-overlay-content {
    bottom: 8% !important;
  }

  .btn-slider {
    padding: 8px 16px !important;
    font-size: 11px !important;
  }

  /* Scale down Swiper navigation arrows on smaller devices */
  .swiper-button-prev,
  .swiper-button-next {
    transform: scale(0.6) !important;
  }
}

@media (max-width: 480px) {
  .hero-overlay-content {
    bottom: 6% !important;
  }

  .btn-slider {
    padding: 6px 12px !important;
    font-size: 10px !important;
  }

  .swiper-button-prev,
  .swiper-button-next {
    display: none !important; /* Hides arrows on small phones for cleaner view */
  }
}