/* ==========================================================================
   HERO BANNER - CROSS-PLATFORM (DESKTOP, MAC SAFARI, ANDROID)
   ========================================================================== */
.hero {
  position: relative;
  width: 100%;
  margin-top: 80px;
  min-height: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background-color: #fbf7ea;
}

.hero-image-canvas {
  width: 100%;
  position: relative;
  overflow: hidden;
}

/* ==========================================================================
   HERO BANNER - CROSS-PLATFORM OVERLAY POSITIONING
   ========================================================================== */
.hero {
  position: relative;
  width: 100%;
  margin-top: 80px;
  overflow: hidden;
  background-color: #fbf7ea;
}

.hero-image-canvas {
  position: relative;
  width: 100%;
  max-width: 1400px; /* Optional max-width container */
  margin: 0 auto;
  overflow: hidden;
}

.hero-image-canvas img {
  width: 100%;
  height: auto;
  display: block;
}

/* Container positioned dynamically on top of the image */
.hero-overlay-content {
  position: absolute;
  top: 78%; /* Positions the button directly below the tagline text in the image */
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  text-align: center;
  width: 100%;
}

/* Contribute Securely Button Styling */
.btn-contribute-hero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #0d6668;
  color: #ffffff !important;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  padding: 12px 28px;
  border-radius: 50px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.25s ease;
  cursor: pointer;
}

.btn-contribute-hero:hover {
  background-color: #198754;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Mobile & Tablet Responsiveness */
@media (max-width: 992px) {
  .hero {
    margin-top: 70px;
  }
  .hero-overlay-content {
    top: 82%;
  }
  .btn-contribute-hero {
    font-size: 0.85rem;
    padding: 8px 18px;
  }
}

@media (max-width: 576px) {
  .hero-overlay-content {
    top: 85%;
  }
  .btn-contribute-hero {
    font-size: 0.75rem;
    padding: 6px 14px;
    border-width: 1px;
  }
}
.hero-image-canvas img {
  width: 100%;
  height: auto;
  max-height: 500px;
  display: block;
  object-fit: cover;
  object-position: center top;
}

.hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 40px 24px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-text-block {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  /* Replaced physical unit (cm) with cross-platform relative viewport spacing */
  transform: none; 
}

.eyebrow-badge {
  display: inline-block;
  margin-bottom: 16px;
  padding: 6px 16px;
  border: 1px solid rgba(13, 102, 104, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  color: #0d6668;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.hero-content h1 {
  width: 100%;
  margin: 0 auto 16px auto;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  line-height: 1.2;
  font-weight: 800;
  color: #0d6668;
  letter-spacing: -0.02em;
}

.hero-subtext {
  width: 100%;
  max-width: 680px;
  margin: 0 auto 24px auto;
  font-size: clamp(0.95rem, 1.5vw, 1.2rem);
  line-height: 1.6;
  color: #315f55;
}

/* Embedded Hero Button Column */
.button-column {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
  margin-top: 10px !important;
}

.razorpay-embed-btn {
  display: inline-block !important;
  margin: 0 auto !important;
  text-align: center !important;
}

/* Embedded Hero Button Column - Centered & Shifted 3cm Down */
.button-column {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;     /* Center flex items horizontally */
  justify-content: center !important;  /* Center content vertically if needed */
  text-align: center !important;      /* Center text content */
  gap: 12px !important;
  margin-top: 3cm !important;          /* Move 3cm down from the top element */
  margin-left: auto !important;        /* Horizontal centering */
  margin-right: auto !important;       /* Horizontal centering */
  width: 100% !important;
}

/* Ensure the Razorpay embed button wrapper stays centered */
.razorpay-embed-btn {
  display: flex !important;
  justify-content: center !important;  /* Center the embedded Razorpay button */
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  text-align: center !important;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .button-column {
    margin-top: 1.5cm !important;      /* Scale down spacing slightly for small mobile screens */
    align-items: center !important;
  }
}

/* Mobile & Tablet Specific Adapters (Android & iOS Safari) */
@media (max-width: 992px) {
  .hero {
    margin-top: 70px;
  }
  .hero-image-canvas img {
    max-height: 320px;
  }
  .hero-content {
    padding: 24px 16px 36px 16px;
  }
}

@media (max-width: 576px) {
  .hero-image-canvas img {
    max-height: 220px;
  }
  .hero-text-block {
    padding: 0 8px;
  }
}