/* Modal background */
.modal {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Modal content box */
.modal-content {
  background-color: var(--bg-color);
  margin: 1.4rem auto;
  padding: 25px 25px;
  border-radius: 12px;
  max-width: 600px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  color: var(--text-color);
  line-height: 1.6;
  position: relative;
}

/* Close button */
.closeBtn {
  color: var(--error);
  position: absolute;
  right: 1rem;
  top: -0.4rem;
  font-size: 2.4rem;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
}

.closeBtn:hover {
  color: #333;
}

/* Headings */
.modal-content h2 {
  margin-top: 0;
  font-weight: 700;
  font-size: 1.8rem;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 8px;
  color: var(--text-color);
}

.modal-content h3 {
  font-weight: 600;
  margin-top: 25px;
  margin-bottom: 10px;
  color: var(--text-color);
}

/* Lists */
.modal-content ul {
  padding-left: 20px;
  color: var(--text-color);
}

.modal-content ul li {
  margin-bottom: 8px;
}

/* Links */
.modal-content a {
  color: #4a90e2;
  text-decoration: none;
  font-weight: 600;
}

.modal-content a:hover {
  text-decoration: underline;
}

/* Paragraph */
.modal-content p {
  margin-top: 12px;
  font-size: 1rem;
  text-align: justify;
}

/* Responsive */
@media (max-width: 640px) {
  .modal-content {
    margin: 12% auto;
    padding: 2rem 1.5rem;
    max-width: 90%;
  }
}
