/* Modal background overlay */
/* Modal overlay */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6);
  animation: fadeIn 0.3s ease-in-out;
}

/* Modal content box */
.modal-content {
  position: relative;
  margin: 5vh auto;
  padding: 40px;
  width: 90%;
  max-width: 900px;
  height: 80vh;
  background: linear-gradient(to bottom right, #ffffff, #f8f8f8);
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  overflow-y: auto;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  animation: slideUp 0.4s ease;
}

/* Close icon */
.close {
  position: absolute;
  top: 20px;
  right: 25px;
  font-size: 28px;
  font-weight: bold;
  color: #666;
  cursor: pointer;
  transition: color 0.3s ease;
}
.close:hover {
  color: #000;
}

/* Typography */
.modal-content h2 {
  margin-top: 0;
  font-size: 28px;
  color: #2c3e50;
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 10px;
}

.modal-content h3 {
  color: #34495e;
  margin-top: 20px;
}

.modal-content p, 
.modal-content li {
  line-height: 1.7;
  color: #555;
  margin-bottom: 12px;
}

.modal-content ul {
  padding-left: 20px;
}

/* Scrollbar styling (optional) */
.modal-content::-webkit-scrollbar {
  width: 8px;
}
.modal-content::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 4px;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slideUp {
  from { transform: translateY(40px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

/* Responsive adjustments */
@media screen and (max-width: 600px) {
  .modal-content {
    width: 85%;
    height: 80vh;
    padding: 25px;
  }
}

 .close-btn {
  position: absolute;
  top: 12px;
  right: 16px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: bold;
  color: #333; /* dark gray for contrast on white */
  background: #ffffff; /* white button blends with page */
  border-radius: 50%;
  cursor: pointer;
  border: 1px solid #ddd; /* soft border for definition */
  box-shadow: 0 4px 8px rgba(0,0,0,0.1), 0 -2px 4px rgba(255,255,255,0.7); /* subtle bulge effect */
  transition: all 0.3s ease;
}

.close-btn:hover {
  background: #f0f0f0; /* slightly darker on hover */
  color: #000; /* darker icon for hover */
  transform: scale(1.1);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15), 0 -2px 4px rgba(255,255,255,0.8);
}

 
 

