/* Popup container */
.popup {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.55);
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 20px;
  backdrop-filter: blur(2px);
  margin-top: 0px;
}

/* Show popup when active */
.popup.active {
  display: flex;
}

/* Popup box */
.popup-content {
  /* From https://css.glass */
  background: rgba(29, 57, 109, 0.72);
  border-radius: 16px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(8.1px);
  -webkit-backdrop-filter: blur(8.1px);
  border: 1px solid rgba(29, 57, 109, 0.41);


  /* background: rgba(61, 141, 122, 0.72);
  border-radius: 16px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(8.1px);
  -webkit-backdrop-filter: blur(8.1px);
  border: 1px solid rgba(61, 141, 122, 0.41); */
  max-width: 900px;
  display: flex;
  gap: 25px;
  padding: 25px 30px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  position: relative;
  animation: popupFade 0.3s ease;
}

/* Left column: profile info */
.profile-info {
  flex: 0 0 220px;
  text-align: center;
}

.profile-info h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.3rem;
  margin: 8px 0 4px;
  color: #eaeaea;
}

.profile-info h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: #3d8d7a;
  margin: 0;
}

/* Right column: quote */
/* Right column: quote */
.profile-quote {
  flex: 1;
  font-size: 1rem;
  /* font size for readability */
  line-height: 1.6;
  /* spacing between lines */
  color: #eaeaea;
  /* text color */
  overflow-y: auto;
  /* scroll if quote is too long */
  max-height: 400px;
  /* optional, control popup height */
  padding-left: 15px;
  /* space between image and text */
}

.profile-quote p {
  margin-bottom: 1rem;
  /* spacing between paragraphs */
}

/* Close button */
.close-button {
  font-size: 24px;
  font-weight: bold;
  color: #3d8d7a;
  position: absolute;
  top: 12px;
  right: 15px;
  cursor: pointer;
  transition: color 0.2s ease;
}

.close-button:hover {
  color: #fff;
}

/* Animation */
@keyframes popupFade {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .popup-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
  }

  .profile-info {
    flex: none;
  }

  .profile-quote {
    margin-top: 10px;
    text-align: left;
  }
}