
/* =============================================================================
   HERO SLIDER
   ============================================================================= */
.hero-slider {
  padding: 0;
  margin: 0;
  /* Loading states for smooth fade-in */
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
  /* Prevent blinking on mobile scroll */
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
  will-change: auto;
}

.hero-slider.loading {
  opacity: 0;
}

.hero-slider.loaded {
  opacity: 1;
}

/* Remove forced min-heights to allow natural content sizing */

/* Loading placeholder for slider */
#slider-container {
  min-height: 300px; /* Fallback height */
  /* Prevent blinking on mobile scroll */
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
}

#slider-container:empty::before {
  content: '';
  display: block;
  width: 100%;
  height: 400px;
  background: var(--gradient-brand, linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%));
  background-size: 400% 400%;
  animation: loadingGradient 2s ease-in-out infinite;
  position: relative;
}

#slider-container:empty::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s ease-in-out infinite;
}

@keyframes loadingGradient {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes spin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Responsive placeholder heights - use reasonable estimates */
@media (max-width: 499px) {
  #slider-container:empty::before {
    height: 350px; /* Reasonable mobile estimate */
  }
}

@media (min-width: 500px) and (max-width: 999px) {
  #slider-container:empty::before {
    height: 400px; /* Reasonable tablet estimate */
  }
}

@media (min-width: 1000px) {
  #slider-container:empty::before {
    height: 450px; /* Reasonable desktop estimate */
  }
}

/* Max height constraints for slider with responsive breakpoints */
/* Narrowest: <500px */
@media (max-width: 499px) {
  .hero-slider[data-narrowest-max-height-px] {
    max-height: calc(var(--narrowest-slider-max-height, none) * 1px);
    overflow: hidden;
  }
  
  .hero-slider[data-narrowest-max-height-px] .glide__slide {
    max-height: calc(var(--narrowest-slider-max-height, none) * 1px);
    box-sizing: border-box;
  }
}

/* Middle: 500px - 999px */
@media (min-width: 500px) and (max-width: 999px) {
  .hero-slider[data-middle-max-height-px] {
    max-height: calc(var(--middle-slider-max-height, none) * 1px);
    overflow: hidden;
  }
  
  .hero-slider[data-middle-max-height-px] .glide__slide {
    max-height: calc(var(--middle-slider-max-height, none) * 1px);
    box-sizing: border-box;
  }
}

/* Widest: ≥1000px */
@media (min-width: 1000px) {
  .hero-slider[data-widest-max-height-px] {
    max-height: calc(var(--widest-slider-max-height, none) * 1px);
    overflow: hidden;
  }
  
  .hero-slider[data-widest-max-height-px] .glide__slide {
    max-height: calc(var(--widest-slider-max-height, none) * 1px);
    box-sizing: border-box;
  }
}



  .glide__bullets {
    bottom: 22px; /* Push nav dots lower on narrowest screens */
  }



.glide__slide {
  background: var(--gradient-brand);
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 0;
}

.slide-content {
  display: flex;
  align-items: center;
  max-width: 1300px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}


.slide-text {
  flex: 1;
  padding: 0 4rem 0 6rem;
}

.slide-text ul {
  list-style: none;
  padding-left: 2em;
  margin: 0;
}

.slide-text li {
  position: relative;
  margin-bottom: 0.5em;
  line-height: 1;
  font-size: 1.5rem;
}

.slide-text li::before {
  content: "•";
  position: absolute;
  left: -1em;
  top: 0;
  color: #fff; /* custom bullet color */
  font-weight: bold;
  font-size: 1.2em;
}


.slide-text h2 {
  color: inherit;
}

.slide-text h2 {
  text-shadow: 4px 3px 0 var(--brand-secondary);
}

.slide-text p {
  color: inherit;
}

.slide-image {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;

}

.slide-image img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
}

/* Custom width properties for slide images - Responsive breakpoints */

/* Narrowest: <500px */
@media (max-width: 499px) {
  .slide-image[data-narrowest-max-width][data-narrowest-width-unit="percent"] img {
    max-width: calc(var(--narrowest-max-width, 100) * 1%);
  }

  .slide-image[data-narrowest-max-width][data-narrowest-width-unit="px"] img {
    max-width: calc(var(--narrowest-max-width, 100) * 1px);
  }

  .slide-image[data-narrowest-width-percentage][data-narrowest-width-unit="percent"] img {
    width: calc(var(--narrowest-width-percentage, auto) * 1%);
  }

  .slide-image[data-narrowest-width-percentage][data-narrowest-width-unit="px"] img {
    width: calc(var(--narrowest-width-percentage, auto) * 1px);
  }
}

/* Middle: 500px to 768px */
@media (min-width: 500px) and (max-width: 768px) {
  .slide-image[data-middle-max-width][data-middle-width-unit="percent"] img {
    max-width: calc(var(--middle-max-width, 100) * 1%);
  }

  .slide-image[data-middle-max-width][data-middle-width-unit="px"] img {
    max-width: calc(var(--middle-max-width, 100) * 1px);
  }

  .slide-image[data-middle-width-percentage][data-middle-width-unit="percent"] img {
    width: calc(var(--middle-width-percentage, auto) * 1%);
  }

  .slide-image[data-middle-width-percentage][data-middle-width-unit="px"] img {
    width: calc(var(--middle-width-percentage, auto) * 1px);
  }
}

/* Widest: >768px */
@media (min-width: 769px) {
  .slide-image[data-widest-max-width][data-widest-width-unit="percent"] img {
    max-width: calc(var(--widest-max-width, 100) * 1%);
  }

  .slide-image[data-widest-max-width][data-widest-width-unit="px"] img {
    max-width: calc(var(--widest-max-width, 100) * 1px);
  }

  .slide-image[data-widest-width-percentage][data-widest-width-unit="percent"] img {
    width: calc(var(--widest-width-percentage, auto) * 1%);
  }

  .slide-image[data-widest-width-percentage][data-widest-width-unit="px"] img {
    width: calc(var(--widest-width-percentage, auto) * 1px);
  }
}

/* Custom height clipping properties for slide images - Responsive breakpoints */

/* Narrowest: <500px */
@media (max-width: 499px) {
  .slide-image[data-narrowest-clip-height-px] {
    max-height: calc(var(--narrowest-clip-height, 300) * 1px);
    overflow: hidden;
  }
}

/* Middle: 500px to 768px */
@media (min-width: 500px) and (max-width: 768px) {
  .slide-image[data-middle-clip-height-px] {
    max-height: calc(var(--middle-clip-height, 300) * 1px);
    overflow: hidden;
  }
}

/* Widest: >768px */
@media (min-width: 769px) {
  .slide-image[data-widest-clip-height-px] {
    max-height: calc(var(--widest-clip-height, 300) * 1px);
    overflow: hidden;
  }
}

/* Custom width properties for slide text - Responsive breakpoints */

/* Narrowest: <500px */
@media (max-width: 499px) {
  .slide-text[data-narrowest-width-px] {
    max-width: calc(var(--narrowest-text-width, 100) * 1px);
  }
  
  .slide-text[data-narrowest-width-percent] {
    max-width: calc(var(--narrowest-text-width-percent, 100) * 1%);
  }
}

/* Middle: 500px to 768px */
@media (min-width: 500px) and (max-width: 768px) {
  .slide-text[data-middle-width-px] {
    max-width: calc(var(--middle-text-width, 100) * 1px);
  }
  
  .slide-text[data-middle-width-percent] {
    max-width: calc(var(--middle-text-width-percent, 100) * 1%);
  }
}

/* Widest: >768px */
@media (min-width: 769px) {
  .slide-text[data-widest-width-px] {
    max-width: calc(var(--widest-text-width, 100) * 1px);
  }
  
  .slide-text[data-widest-width-percent] {
    max-width: calc(var(--widest-text-width-percent, 100) * 1%);
  }
}

/* Custom reverse properties for slide content - Responsive breakpoints */

/* Narrowest: <500px - Collapsed layout with optional reverse */
@media (max-width: 499px) {
  .glide__slide {
    padding: 1rem 0;
  }
  
  .slide-content {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
    padding-bottom: 1rem;
    margin-top: -0.5rem;
  }
  
  .slide-content[data-narrowest-reverse="yes"] {
    flex-direction: column-reverse;
  }
  
  .slide-text {
    padding-top: 0.75rem !important;
  }
}

/* Middle: 500px to 768px - Collapsed layout with optional reverse */
@media (min-width: 500px) and (max-width: 768px) {
  .slide-content {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
    padding-bottom: 1rem;
  }
  
  .slide-content[data-middle-reverse="yes"] {
    flex-direction: column-reverse;
  }
  
  .slide-text {
    padding-top: 0.75rem !important;
  }
}

/* Widest: >768px - Horizontal layout with optional reverse */
@media (min-width: 769px) {
  .slide-content[data-widest-reverse="yes"] {
    flex-direction: row-reverse;
  }
}

/* =============================================================================
   SLIDER CONTROLS (GLIDE.JS)
   ============================================================================= */
.glide__arrow {
  color: var(--text-light);
  border-radius: 999px;
  top: auto;
  bottom: 20px;
  transform: translateY(0);
  border: transparent;  
}

.glide__arrow:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: var(--text-light);
}

/* Large screens: ≥1330px - Move arrows to vertical center */
@media (min-width: 1330px) {
  .glide__arrow {
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
  }
}

.glide__bullet {
  background-color: rgba(255, 255, 255, 0.4);
  border: none;
  border-radius: 50%;
  width: 12px;
  height: 12px;
}

.glide__bullet--active,
.glide__bullet:hover {
  background-color: var(--text-light);
}

/* =============================================================================
   MOBILE RESPONSIVE - SLIDE TEXT
   ============================================================================= */

   @media (min-width: 1400px) {
      .slide-text h2 {
    font-size: 2.8rem !important;
  }
   }

@media (max-width: 1400px) {


  .slide-image {
  padding-right: 2rem;
}

}

   @media (max-width: 900px) {
    .slide-text h2 {
    font-size: 1.8rem;
    line-height: 2.1rem;
  }
    .slide-text p {
    font-size: 0.9rem;
    line-height: 1.2rem;
    margin-bottom: 0;
  }
  }

   @media (max-width: 768px) {

  .glide__slide {
    padding-top: 2rem;
  }

      .slide-content {
    flex-direction: column;
    text-align: center;
    padding: 0 1rem 1rem 1rem;
  }
  
  
  .slide-text {
    text-align: center;
    padding: 0;
    flex: 0.5;
  }
  
  .slide-text h2 {
    text-align: center;
  }
  
  

.slide-image {
    flex: 0.5;
    padding: 0;
  }

  .slide-image img {
    padding-top: 1rem;
      
    max-width: 275px;
    width: 100%;
  }
  .glide__arrow {
    font-size: 16px;
    padding: 10px 12px;
    bottom: 10px; /* Push arrows lower on narrowest screens */
  }

  .glide__bullets {
    bottom: 22px; /* Push nav dots lower on narrowest screens */
  }

  

}

