
      /* ===== 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);
}

.modal-content {
  background-color: #fff;
  margin: 5% auto;
  padding: 30px 40px;
  border-radius: 10px;
  max-width: 700px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
  line-height: 1.6;
  overflow-y: auto;
  max-height: 80vh;
  position: relative;
}

.modal-content h2 {
  font-weight: 700;
  font-size: 2rem;
  margin-bottom: 20px;
  color: #111;
}

.modal-content h3 {
  font-weight: 600;
  font-size: 1.25rem;
  margin-top: 25px;
  margin-bottom: 12px;
  color: #222;
  border-bottom: 2px solid #ddd;
  padding-bottom: 4px;
}

.modal-content p {
  margin-bottom: 15px;
  font-weight: 400;
  font-size: 1rem;
}

.modal-content ul,
.modal-content ol {
  margin-left: 18px;
  margin-bottom: 15px;
  padding-left: 18px; /* tighter spacing for numbered lists */
  color: #444;
  font-weight: 400;
  font-size: 1rem;
}

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

.close {
    position:absolute;
  top: 20px;
  right: 0%;
  font-size: 28px;
  font-weight: 700;
  color: #555;
  cursor: pointer;
  transition: color 0.3s ease;
}

.close:hover {
  color: #000;
}

a {
  color: #007acc;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

section {
  margin-bottom: 2em;
}

/* Responsive styles */
@media (max-width: 768px) {
  .modal-content {
    margin: 10% 5%;
    padding: 20px;
    font-size: 0.95rem;
  }

  .modal-content h2 {
    font-size: 1.5rem;
  }

  .modal-content h3 {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .modal-content {
    margin: 15% 3%;
    padding: 15px;
    font-size: 0.9rem;
  }

  .close-btn {
    top: 15px;
    right: 15px;
    font-size: 24px;
  }
}
