.top-banner-image img {
  width: 100%;
}

/* Container */
.top-banner-image {
  position: relative;
  overflow: hidden;      /* Prevent image from spilling out */
  width: 100%;
/*  height: 400px;         /* Set a height as needed */
}

/* Image inside */
.top-banner-image img {
  width: 100%;
  height: auto;
  display: block;
  transform-origin: center center;
  animation: zoom-in 30s forwards;
}

/* Opaque red overlay */
.top-banner-image::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(189, 28, 28, 0.6); /* capacity-red with opacity */
  z-index: 1;
  pointer-events: none; /* allows clicks to pass through */
} 

/* Keyframes */
@keyframes zoom-in {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.25); /* Zoom in slightly */
  }
}

/* Initial layout */
.animated-overlay {
  position: absolute; /* Or relative depending on image context */
  top: 40%;           /* Adjust as needed */
  left: 0;
  transform: translateX(-100%); /* Start off-screen */
  opacity: 0;
  padding: 1.5rem 2rem;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 16px;
  z-index: 10;
  animation: slideIn 1s ease-out forwards;
  max-width: 1000px;
  animation-delay: 0.5s;
}

/* Text elements inside: fade in after container */
.animated-overlay h1,
.animated-overlay p,
.animated-overlay .button-capacity {
  opacity: 0;
  transform: translateX(-10px);
  animation: fadeText 1s ease forwards;
}

/* Delays for staggered appearance */
.animated-overlay h1 {
  animation-delay: 1s;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 1); */
}
.animated-overlay p {
  animation-delay: 1.5s;
  font-size: 1.5rem;
  text-shadow: 0 4px 5px rgba(0, 0, 0, 1);
}
.animated-overlay .button-capacity {
  animation-delay: 2.75s;
}

/* Tablet adjustments */
@media only screen and (max-width: 1000px) {
  .animated-overlay {
    padding: 1rem 1.5rem;
    top: 15%;
    max-width: 90%;
  }

  .animated-overlay h1 {
    font-size: 1.2rem;
  }

  .animated-overlay p {
    font-size: 1.15rem;
  }

  .animated-overlay .button-capacity {
    font-size: 0.9rem;
    padding: 8px 12px;
  }
}

/* Phone adjustments */
@media only screen and (max-width: 650px) {
  .animated-overlay {
    padding: 0.75rem 1rem;
    max-width: 95%;
    top: 20%;
    /*top: auto; */
    /*bottom: 10%;*/
  }

  .animated-overlay h1 {
    font-size: 0.9rem;
  }

  .animated-overlay p {
    font-size: 0.8rem;
  }

  .animated-overlay .button-capacity {
    font-size: 0.7rem;
    padding: 6px 10px;
  }
}

/* tablet Adjustments */
@media only screen and (max-width: 1224px) {
.animated-overlay {
    top: 20%;
   }
}

/* Keyframes */
@keyframes slideIn {
  to {
    transform: translateX(15px); /* Slight overshoot if desired */
    opacity: 1;
  }
}

@keyframes fadeText {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}



