.training-hero {
  position: relative;
  min-height: clamp(60vh, 80vh, 100vh);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.training-hero-img {
  position: absolute;
  width: 100%;
  height: auto; /* Default for larger screens */
  object-fit: cover;
  opacity: 1;
  z-index: 1;
  animation: zoomInOut 15s infinite ease-in-out;
}

.training-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  z-index: 2;
  animation: pulse 6s infinite;
  -webkit-animation: pulse 6s infinite;
}

.training-hero-content {
  position: relative;
  width: 90%;
  max-width: 1200px;
  margin: clamp(2rem, 10vh, 6rem) auto;
  z-index: 3;
  padding: clamp(1rem, 2vw, 2rem);
}

.training-hero-title {
  /*font-size: clamp(2rem, 6vw, 4.5rem);*/
  font-weight: 700;
  color: #fff;
  text-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
  margin-bottom: 1.5rem;
  animation: bounceIn 1.5s ease;
}

.training-hero-text {
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  color: #fff;
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto;
  animation: fadeInUp 1s ease 0.5s both;
}

/* Animations */
@keyframes bounceIn {
  0% { opacity: 0; transform: scale(0.3); }
  50% { opacity: 1; transform: scale(1.05); }
  100% { transform: scale(1); }
}

@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes zoomInOut {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

@keyframes pulse {
  0% { opacity: 0.25; }
  50% { opacity: 0.4; }
  100% { opacity: 0.25; }
}

/* Media Queries */
@media (max-width: 768px) {
  .training-hero {
      min-height: 60vh;
  }

  .training-hero-title {
      font-size: clamp(1.5rem, 4vw, 2.5rem);
  }

  .training-hero-text {
      font-size: clamp(0.9rem, 2vw, 1.2rem);
  }
}

/* New media query for 715px to 320px */
@media (max-width: 715px) {
  .training-hero {
      min-height: 60vh; /* Keep a reasonable minimum height */
  }

  .training-hero-img {
      height: 100%; /* Force image to fill container height */
      width: 100%; /* Ensure full width */
      object-fit: cover; /* Maintain aspect ratio and cover container */
  }
}

@media (max-width: 480px) {
  .training-hero-content {
      padding: clamp(1rem, 3vw, 2rem);
  }

  .training-hero-title {
      font-size: clamp(1.2rem, 3.5vw, 2rem);
  }

  .training-hero-text {
      font-size: clamp(1rem, 2vw, 1rem);
      max-width: 90%;
  }

  .training-hero-img {
      height: 100%; 
      width: 100%;
  }
}