/* Popup Code */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  display: none;
}

.popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #393C44;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  padding: 20px;
  display: none;
  z-index: 1000;
  text-align: center;
  width: 90%; /* Ensures proper fit on small screens */
  max-width: 800px; /* Prevents excessive width on larger screens */
}

.popup-header {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  margin-bottom: 10px;
  flex-wrap: wrap; /* Ensures wrapping for narrow widths */
}

.popup-header img {
  width: 80px; /* Reduced size for smaller screens */
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
}

.popup-description {
  margin-top: 10px;
  padding: 10px;
  font-size: 14px; /* Adjusted for readability on small screens */
  line-height: 1.5;
}

/* Media Queries for Mobile Responsiveness */
@media (max-width: 600px) {
  .popup {
    padding: 15px; /* Reduced padding for small screens */
  }

  .popup-header img {
    width: 60px; /* Smaller image for very small devices */
    height: 60px;
  }

  .popup-description {
    font-size: 12px; /* Further adjust text size */
    padding: 8px;
  }
}
