/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.3s ease-out;
}
.modal.show {
  display: block;
}

.modal-content {
  background-color: #fff;
  color: #060404;
  text-align: left;
  margin: 5% auto;
  padding: 0;
  border-radius: 8px;
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  animation: slideInDown 0.3s ease-out;
  /* Mobile responsive */
}
@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    margin: 10% auto;
    max-height: 85vh;
  }
}

.modal-header {
  background-color: #f8f9fa;
  padding: 20px;
  border-bottom: 1px solid #ddd;
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* Mobile responsive */
}
.modal-header h2 {
  margin: 0;
  font-size: 1.5rem;
  color: #333;
}
@media (max-width: 768px) {
  .modal-header {
    padding: 15px;
  }
}

.close {
  color: #aaa;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  line-height: 1;
}
.close:hover, .close:focus {
  color: #000;
  text-decoration: none;
}

.modal-body {
  padding: 20px;
  max-height: 60vh;
  overflow-y: auto;
  line-height: 1.6;
  /* Mobile responsive */
}
.modal-body h3 {
  color: #333;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}
.modal-body ul {
  margin: 0.5rem 0;
  padding-left: 1.5rem;
}
.modal-body li {
  margin-bottom: 0.25rem;
}
.modal-body a {
  color: #007bff;
  text-decoration: underline;
}
.modal-body a:hover {
  color: #0056b3;
}
@media (max-width: 768px) {
  .modal-body {
    padding: 15px;
    max-height: 65vh;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes slideInDown {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
