/* Match Hero Section Styling with Product/Services Pages */
.hero-headline {
  text-align: center;
  padding: 0 2rem;
}

.hero-headline h1 {
  font-size: 3.6rem;
  font-weight: 800;
  color: #b50000;
  font-family: 'Segoe UI', 'Poppins', sans-serif;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-headline p {
  font-size: 1.8rem;
  font-weight: 500;
  color: #002244;
  font-family: 'Segoe UI', 'Poppins', sans-serif;
  margin-bottom: 0.5rem;
  letter-spacing: 0.4px;
}

.hero-headline .tagline {
  font-size: 1.5rem;
  font-style: italic;
  color: #0072bb;
  font-weight: 500;
  font-family: 'Segoe UI', 'Poppins', sans-serif;
  margin-top: 0.3rem;
}

.hero-slider-wrapper {
  flex: 1 1 50%;
  height: 100%;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
}

.hero-slider-track {
  display: flex;
  height: 100%;
  width: calc(100% * 5); /* 5 slides total */
  animation: scrollHeroSlider 25s linear infinite;
}

.hero-slide {
  flex: 0 0 100%;
  height: 100%;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  border: none;
  box-shadow: none;
  position: relative;
}

.hero-slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  padding: 10px 0;
  text-align: center;
  font-size: 1rem;
  font-weight: 500;
  z-index: 2;
}

@keyframes scrollHeroSlider {
  0%   { transform: translateX(0%); }
  20%  { transform: translateX(0%); }
  25%  { transform: translateX(-100%); }
  45%  { transform: translateX(-100%); }
  50%  { transform: translateX(-200%); }
  70%  { transform: translateX(-200%); }
  75%  { transform: translateX(-300%); }
  95%  { transform: translateX(-300%); }
  100% { transform: translateX(-400%); }
}

/* === Mobile Styles === */
@media (max-width: 768px) {
  .hero-headline {
    padding: 0 1rem;
  }

  .hero-headline h1 {
    font-size: 2.2rem;
    line-height: 1.3;
  }

  .hero-headline p {
    font-size: 1.1rem;
    letter-spacing: 0.3px;
    margin-bottom: 0.5rem;
  }

  .hero-headline .tagline {
    font-size: 1rem;
    margin-top: 0.3rem;
  }

  .hero-slider-wrapper {
    height: 240px;
    margin-top: 1rem;
  }

  .hero-slide {
    height: 240px;
    background-size: contain;
    background-position: center;
  }

  .hero-slide-caption {
    font-size: 0.85rem;
    padding: 6px 0;
  }

  .custom-industry-content {
    display: flex;
    flex-direction: column;
  }

  .custom-industry-content .services-text {
    order: 1;
    padding: 1rem;
    text-align: center;
  }

  .custom-industry-content .services-image-slider {
    order: 2;
    padding: 1rem;
  }

  .services-image-slider .slider-track {
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .services-image-slider .slide {
    min-width: 90%;
    height: 200px;
    scroll-snap-align: start;
    background-size: contain;
    background-position: center;
  }
}
