/**
 * Hero Slider Full Width Theme
 * Full-width header, hero section, and slider styles
 */

/* ========== Full-width header ========== */
body .sticky.top-0 header .max-w-7xl,
header .max-w-7xl.mx-auto {
  max-width: none !important;
  width: 100%;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

@media (min-width: 640px) {
  body .sticky.top-0 header .max-w-7xl,
  header .max-w-7xl.mx-auto {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  body .sticky.top-0 header .max-w-7xl,
  header .max-w-7xl.mx-auto {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* Search bar inside header - full width */
#searchBar .max-w-7xl {
  max-width: none !important;
  width: 100%;
}

/* ========== Hero section full width (no side margins) ========== */
.hero-section-with-slider {
  width: 100% !important;
  max-width: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Remove inner container constraint so slider is edge-to-edge */
.hero-section-with-slider > div {
  max-width: none !important;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* ========== Hero slider container (injected by theme JS) ========== */
.hero-slider-theme {
  position: relative;
  width: 100%;
  overflow: hidden;
  min-height: 380px;
}

@media (min-width: 768px) {
  .hero-slider-theme {
    min-height: 480px;
  }
}

@media (min-width: 1024px) {
  .hero-slider-theme {
    min-height: 560px;
  }
}

.hero-slider-theme .hero-slides {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: inherit;
}

.hero-slider-theme .hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  min-height: inherit;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s ease;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-slider-theme .hero-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

/* Slide overlay for text readability */
.hero-slider-theme .slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.5) 0%,
    rgba(0, 0, 0, 0.2) 50%,
    transparent 100%
  );
  z-index: 2;
  display: flex;
  align-items: center;
  padding: 2rem 5rem;
}

@media (min-width: 768px) {
  .hero-slider-theme .slide-overlay {
    padding: 3rem 5.5rem;
  }
}

@media (min-width: 1024px) {
  .hero-slider-theme .slide-overlay {
    padding: 4rem 6rem;
    max-width: 42rem;
  }
}

.hero-slider-theme .slide-content {
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-slider-theme .slide-content h2 {
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
  .hero-slider-theme .slide-content h2 {
    font-size: 2.5rem;
  }
}

@media (min-width: 1024px) {
  .hero-slider-theme .slide-content h2 {
    font-size: 3rem;
  }
}

.hero-slider-theme .slide-content p {
  font-size: 1rem;
  opacity: 0.95;
  margin-bottom: 1.25rem;
}

@media (min-width: 768px) {
  .hero-slider-theme .slide-content p {
    font-size: 1.125rem;
  }
}

.hero-slider-theme .slide-content .btn-slide {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 9999px;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.95);
  color: #1f2937;
}

.hero-slider-theme .slide-content .btn-slide:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Dots navigation */
.hero-slider-theme .hero-dots {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 0.5rem;
  padding: 0.25rem;
}

.hero-slider-theme .hero-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.8);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}

.hero-slider-theme .hero-dots button:hover {
  background: rgba(255, 255, 255, 0.5);
}

.hero-slider-theme .hero-dots button.active {
  background: #fff;
  transform: scale(1.2);
}

/* Arrows */
.hero-slider-theme .hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  color: #1f2937;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: background 0.2s, transform 0.2s;
}

.hero-slider-theme .hero-arrow:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.05);
}

.hero-slider-theme .hero-arrow.prev {
  left: 1rem;
}

.hero-slider-theme .hero-arrow.next {
  right: 1rem;
}

/* Hide default hero content when slider is present */
body.theme-hero-slider-active .hero-section-with-slider .hero-default-content {
  display: none !important;
}

/* Full-width sections under hero (optional) */
.theme-full-width .max-w-7xl {
  max-width: none;
  width: 100%;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.border-b {
    border-bottom-width: 0px !IMPORTANT;
}
