.hero-wrapper {
  position: relative;
  width: 100%;
  height: auto;
  overflow: hidden;
}

.hero-wrapper img {
  width: 100%; 
  height: auto;
  display: block;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(255, 255, 255, 0.85);
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  z-index: 2;
}

@media (max-width: 600px) {
  .hero-overlay {
    position: static;
    transform: none;
    width: 100%;
    max-width: none;
    background-color: rgba(255, 255, 255, 0.95);
    margin-top: -4px;
    padding: 1.5rem 1rem;
    box-shadow: none;
    text-align: left;
  }

  .hero-overlay h1 {
    font-size: 1.6rem;
    text-align: left;
  }

  .hero-overlay p {
    font-size: 1rem;
    text-align: left;
  }
}

/* Responsive text */
.hero-overlay h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.hero-overlay p {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .hero-overlay {
    padding: 1.5rem;
  }

  .hero-overlay h1 {
    font-size: 2rem;
  }

  .hero-overlay p {
    font-size: 1rem;
  }
}

/* Fade-in animation — only applies opacity, not transform */
.fade-in {
  opacity: 0;
  animation: fadeInOnly 1s ease forwards;
}

@keyframes fadeInOnly {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}


/* Newsletter */

.newsletter-feature {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;

  background: url('/img/newsletter-feature.jpg') center center / cover no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 16px;
  margin-top: 40px;
  border-radius: 0;
  overflow: hidden;
  box-sizing: border-box;
}

.newsletter-signup {
  background-color: rgba(255, 255, 255, 0.95);
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  max-width: 500px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.newsletter-signup p {
  margin-bottom: 10px;
  font-weight: bold;
}

.newsletter-signup iframe {
  width: 100% !important;
  max-width: 100%;
  height: 200px;
  border-radius: 6px;
  box-sizing: border-box;
}

@media (max-width: 600px) {
  .newsletter-feature {
    padding: 32px 16px;
  }

  .hero-wrapper img {
    margin-bottom: 16px;
  }
}



