/* Fade css class: fade-target (hero section writing) */
.fade-target {
    opacity: 1;
    transition: opacity 1.5s ease; /* adjust speed */
}

.fade-target.fade-out {
    opacity: 0;
}




/* Popup Background */
.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 26, 47, 0.75);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  animation: fadeIn 0.3s ease-out;
  padding: 20px;
}

/* Popup Box */
.popup-content {
  background: #FFFFFF;
  padding: 28px 30px 35px; /* reduced top padding */
  border-radius: 14px;
  max-width: 480px;
  width: 100%;
  text-align: center;
  position: relative;
  border: 1px solid #D4A857;
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
  font-family: 'Segoe UI', sans-serif;
}

/* Close Button — now its own line */
.close-popup {
  display: block;
  width: 100%;
  text-align: right;
  margin-bottom: 12px;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  background: none;
  border: none;
  color: #0A1A2F;
}

/* Headline */
.popup-content h2 {
  font-size: 28px;
  color: #0A1A2F;
  margin-bottom: 12px;
  font-weight: 700;
}

/* Subtext */
.subtext {
  font-size: 18px;
  color: #0A1A2F;
  margin-bottom: 16px;
  font-weight: 500;
}

/* Value Proposition */
.value {
  font-size: 16px;
  color: #333;
  margin-bottom: 26px;
  line-height: 1.55;
}

/* CTA Button */
.cta-btn {
  display: inline-block;
  background: #D4A857;
  color: #0A1A2F;
  padding: 14px 24px;
  border-radius: 6px;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  transition: 0.25s ease;
}

.cta-btn:hover {
  background: #b98c3f;
}

/* Trust Line */
.trust {
  margin-top: 18px;
  font-size: 14px;
  color: #555;
}

/* Fade Animation */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Mobile Optimisation */
@media (max-width: 480px) {
  .popup-content {
    padding: 24px 22px 30px;
  }

  .popup-content h2 {
    font-size: 24px;
  }

  .subtext {
    font-size: 16px;
  }

  .value {
    font-size: 15px;
  }

  .cta-btn {
    font-size: 16px;
    padding: 12px 20px;
  }

  .close-popup {
    margin-bottom: 10px;
    font-size: 26px;
  }
}

.close-popup {
    display: block !important;
    width: 20% !important;
    text-align: right !important;
    margin-bottom: 4px !important;
    position: relative !important;
    top: 0 !important;
    right: 0 !important;
}