/* Popup overlay */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 99999;
}

/* Popup content */
.popup-content {
  position: relative;
  background-color: #fff;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  text-align: center;
  max-width: 500px;
  width: 90%;
}

/* Close button */
.close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 28px;
  cursor: pointer;
  color: #333;
  width: 30px;
  height: 30px;
  line-height: 30px;
  text-align: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.close-btn:hover {
  background: #fff;
  transform: rotate(90deg);
}

/* Popup image */
.popup-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin-top: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  max-height: 60vh; /* Limit image height to 60% of viewport height */
  object-fit: contain;
}

/* Register button in popup */
/* .popup-content .cta-btn {
  padding: 12px 25px;
  font-size: 16px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
}

.popup-content .cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
} */

/* Responsive adjustments */
@media (max-width: 768px) {
  .popup-content {
    width: 95%;
    padding: 15px;
    max-width: 400px;
  }

  .close-btn {
    top: 10px;
    right: 10px;
    font-size: 24px;
  }

  .popup-image {
    max-height: 50vh; /* Smaller max height on mobile */
  }
}

/* Button to open popup (optional) */
#openPopup {
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  margin: 20px;
}
