/* Hex Slider - Swiper Integration */

.hex-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
}

/* Remove default hex-hero margins when inside slider */
.hex-slider .hex-hero {
  margin: 0;
}

/* Swiper wrapper and slides */
.swiper-wrapper {
  display: flex;
  align-items: stretch;
}

.swiper-slide {
  flex-shrink: 0;
  width: 100%;
  height: auto;
  display: flex;
}

.swiper-slide .hex-hero {
  width: 100%;
}
.swiper-slide .hex-hero-img {  width: 100%;  height: auto;  display: block;  object-fit: contain;}

/* Navigation buttons */
.swiper-button-prev,
.swiper-button-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.3) !important;
  backdrop-filter: blur(10px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background 0.3s ease, transform 0.2s ease;
  color: white;
  font-size: 20px;
  font-weight: bold;
}

.swiper-button-prev::after,
.swiper-button-next::after {
  content: '';
  display: block;
  width: 10px;
  height: 10px;
  border-top: 2px solid white;
  border-right: 2px solid white;
}

.swiper-button-prev::after {
  transform: rotate(-135deg);
  margin-right: -3px;
}

.swiper-button-next::after {
  transform: rotate(45deg);
  margin-left: -3px;
}

.swiper-button-prev {
  left: 20px;
}

.swiper-button-next {
  right: 20px;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
  background: rgba(255, 255, 255, 0.5);
  transform: translateY(-50%) scale(1.1);
}

.swiper-button-disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* Pagination dots */
.swiper-pagination {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.swiper-pagination-bullet:hover {
  background: rgba(255, 255, 255, 0.7);
}

.swiper-pagination-bullet-active {
  background: white;
  width: 40px;
  border-radius: 6px;
}

/* Dot fill animation */
.swiper-pagination-bullet-active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.3) !important;
  animation: fillDot var(--autoplay-duration, 5s) linear;
  border-radius: inherit;
}

@keyframes fillDot {
  from {
    width: 0%;
  }
  to {
    width: 100%;
  }
}

/* Play/Pause button */
.hex-slider-pause {
  position: absolute;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.3) !important;
  backdrop-filter: blur(10px);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 16px;
  cursor: pointer;
  z-index: 10;
  transition: background 0.3s ease, transform 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hex-slider-pause:hover {
  background: rgba(255, 255, 255, 0.5);
  transform: scale(1.1);
}

.hex-slider-pause:active {
  transform: scale(0.95);
}

/* Fade effect */
.swiper-fade .swiper-slide {
  opacity: 0;
  transition: opacity 0.6s ease;
}

.swiper-fade .swiper-slide-active {
  opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .swiper-button-prev,
  .swiper-button-next {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
  
  .swiper-button-prev {
    left: 10px;
  }
  
  .swiper-button-next {
    right: 10px;
  }
  
  .swiper-pagination {
    bottom: 20px;
  }
  
  .hex-slider-pause {
    bottom: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
  }
  
  .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
  }
  
  .swiper-pagination-bullet-active {
    width: 30px;
  }
}

/* Accessibility */
.swiper-button-prev:focus,
.swiper-button-next:focus,
.hex-slider-pause:focus {
  outline: 2px solid white;
  outline-offset: 2px;
}
/* Force override Swiper default styles */
.hex-slider .swiper-button-prev,
.hex-slider .swiper-button-next {
  background: rgba(255, 255, 255, 0.3) !important;
  backdrop-filter: blur(10px) !important;
  border-radius: 50% !important;
  width: 44px !important;
  height: 44px !important;
  color: transparent !important;
}

.hex-slider .swiper-button-prev:hover,
.hex-slider .swiper-button-next:hover {
  background: rgba(255, 255, 255, 0.5) !important;
}

/* Override blue pagination dots */
.hex-slider .swiper-pagination-bullet {
  background: rgba(255, 255, 255, 0.5) !important;
  opacity: 0.7 !important;
}

.hex-slider .swiper-pagination-bullet-active {
  background: white !important;
  opacity: 1 !important;
}

/* Hero overlay link - makes entire hero clickable */
.hex-hero-overlay-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 100;
  cursor: pointer;
  text-decoration: none;
}

/* Ensure buttons/elements inside hero are above overlay */
.hex-hero .hex-button,
.hex-hero .hero-content a,
.hex-hero-overlay-link ~ * {
  position: relative;
  z-index: 101;
}
