/* ==== Hero Section - Better sizing, centering, and contrast ==== */
.s-crossfit-slider {
  height: 600px !important;
  max-height: 600px !important;
}

.s-crossfit-slider .swiper {
  width: 100%;
  height: 100% !important;
  position: relative;
}

.s-crossfit-slider .swiper-wrapper,
.s-crossfit-slider .swiper-slide {
  height: 100% !important;
}

.swiper-slide { 
  height: 100% !important;
  position: relative !important;
  overflow: hidden;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
}

/* Dark overlay for better text contrast */
.swiper-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.5));
  z-index: 1;
}

.crossfit-slide-bg { 
  position: absolute !important;
  inset: 0 !important;
  background-size: cover !important;
  background-position: center !important;
  z-index: 0 !important;
}

.swiper-slide .container {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  z-index: 2 !important;
  width: 100%;
  max-width: 1200px;
  height: auto !important;
  min-height: 0 !important;
  padding: 20px !important;
}

.crossfit-slide-cover {
  max-width: 900px;
  text-align: center;
  padding: 30px;
  margin: 0 auto;
}

/* Enhanced text contrast */
.crossfit-slide .title {
  text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
  color: #fff;
}

.crossfit-slide p {
  text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
  color: #fff;
}

@media (max-width: 768px) {
  .s-crossfit-slider {
    height: 450px;
    max-height: 450px;
  }
  
  .crossfit-slide-cover {
    padding: 20px;
  }
}
