#block-capacity-plus-engineeringtechfrontpageblock {
  background: url("/sites/default/files/stone-wall-papercut-texture-vintag.webp") center center no-repeat;
  background-size: cover;
  padding: 60px 20px;
  position: relative;
  color: #fff;
}

#block-capacity-plus-engineeringtechfrontpageblock::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5); /* adjust opacity as needed */
  z-index: 0;
  pointer-events: none; /* allows clicks to pass through */
}

#block-capacity-plus-engineeringtechfrontpageblock .h2-eng-tech {
  text-align: center !important;
  text-shadow: 0 4px 5px rgb(0, 0, 0);
}

#block-capacity-plus-engineeringtechfrontpageblock > * {
  position: relative;
  z-index: 1;
}

.h2-eng-tech {
  font-size: 2rem;
  font-weight: 600;
  text-align: center;
  color: #fff;
  margin-bottom: 30px;
  position: relative;
  display: inline-block;
}

.h2-eng-tech::after {
  content: "";
  display: block;
  height: 4px;
  text-align: center;
  background-color: #bd1c1c;
  margin-top: 8px;
  width: 0;
  transition: width 0.6s ease 0.3s;
}

.h2-eng-tech.visible::after {
  width: 100%;
  text-align: center;
}

.eng-tech-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  max-width: 100%;
  margin: 0 auto;
}

.eng-tech-image img {
  max-width: 600px;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.eng-tech-text {
  background-color: rgba(0,0,0,0.3); /* opaque dark background */
  padding: 25px;
  border-radius: 8px;
  max-width: 600px;
  font-size: 1.15rem;
  color: white;
  pointer-events: none; /* allows clicks to pass through */
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1.2s ease, transform 1.5s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

@media only screen and (max-width: 768px) {
  .eng-tech-container {
    flex-direction: column;
    text-align: center;
    pointer-events: none; /* allows clicks to pass through */
  }

  .h2-eng-tech {
    text-align: center;
  }

  .eng-tech-text {
    max-width: 100%;
  }
}
