/* General Styling */
body {
  font-family: "Roboto", sans-serif;
  background: linear-gradient(120deg, #f8f9fa, #ffffff);
  color: #212529;
}

/* Container Styling */
.container {
  background: #ffffff;
  border-radius: 16px;
  padding: 30px;
  max-width: 1200px;
  margin: 40px auto;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* Infographics Section */
.infographics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
  padding: 10px;
  justify-content: center;
}

/* Infographic Images */
.infographics img {
  width: 100%;
  height: auto;
  border: 3px solid #ddd;
  border-radius: 12px;
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.infographics img:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
  border-color: #0d6efd;
}

/* Modal Styling */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
}

/* Modal Image */
.modal img {
  max-width: 90%;
  max-height: 90%;
  border: 3px solid white;
  border-radius: 10px;
}

/* Close Button */
.modal .close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2em;
  color: white;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.5);
  padding: 5px 12px;
  border-radius: 50%;
}

.modal .close:hover {
  transform: scale(1.2);
  background: rgba(255, 255, 255, 0.2);
  color: #e94560;
}

/* Responsive */
@media (max-width: 768px) {
  .infographics {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}
