/* Desktop Hero defaults */
.hero-section {
  position: relative;
  min-height: 100vh;
  padding-top: 80px;
  overflow: hidden;
}

.hero-relative {
  /* Moved from inline style="position: relative;" */
  position: relative;
}

.hero-parallax {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../../images/nofy-i-androy-Fev-2025.jpg');
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  z-index: -1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    rgba(0, 126, 58, 0.4),
    rgba(0, 0, 0, 0.5)
  );
  z-index: -1;
}

.hero-content {
  position: relative; /* ensures content layers above overlays */
  z-index: 1;
  color: var(--malagasy-white);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* =============== */
/* New classes for the removed inline styles */
/* =============== */
.hero-dark-block {
  max-width: 800px;
  background-color: rgba(0, 0, 0, 0.2);
  padding: 20px;
  border-radius: 6px;
  margin-bottom: 2rem;
}

.hero-lead {
  font-size: 1.25rem; /* matches the old inline style="font-size: 1.25rem;" */
}

.hero-info-text {
  font-size: 1rem; 
  margin: 0 auto;     /* horizontally center text block */
  text-align: center; /* center the text itself */
}

/* Desktop button styling */
.hero-content .btn-warning {
  padding: 1rem 2rem;
  font-size: 1.25rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}
.hero-content .btn-warning:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.3);
}

/* Mobile overrides */
@media (max-width: 768px) {

  .hero-section {
    min-height: 100vh; 
  }

  .hero-parallax {
    background-attachment: scroll;
    display: none; /* hide the parallax image on small devices if desired */
  }

  .hero-section {
    background-color: var(--malagasy-green) !important;
    background-image: none !important; 
  }

  .hero-content .btn-warning {
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
  }
}
