
.service-block {
  cursor: pointer;
}
/* Modal styling */
.modal {
  display: none; /* Hidden by default */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6); /* Semi-transparent backdrop */
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  width: 90%;
  max-width: 500px;
  text-align: center;
  position: relative;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  animation: fadeIn 0.3s ease-in-out;
}

.modal-content h2 {
  margin-bottom: 10px;
  font-size: 24px;
  color: #333;
}

.modal-content p {
  font-size: 16px;
  color: #555;
  line-height: 1.5;
}

/* Close button */
.close-btn {
  position: absolute; /* Stay at the top-right of the modal-content */
  top: 10px;
  right: 10px;
  background: red;
  color: white;
  border: none;
  padding: 5px 12px;
  cursor: pointer;
  font-size: 16px;
  border-radius: 50%;
  z-index: 1001; /* Higher than modal-content to ensure it's always on top */
}

@media (max-width: 768px) {
  .service-block {
      flex: 1 1 calc(50% - 20px);
  }

  .modal-content h2 {
      font-size: 20px;
  }

  .modal-content p {
      font-size: 14px;
  }
}

@media (max-width: 480px) {
  .service-block {
      flex: 1 1 calc(100% - 20px);
  }

  .modal-content {
      padding: 15px;
  }
}

/* Fade-in animation */
@keyframes fadeIn {
  from {
      opacity: 0;
      transform: scale(0.9);
  }
  to {
      opacity: 1;
      transform: scale(1);
  }
}