/* General styles for the container */
.container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0 auto;
  padding: 20px;
  max-width: 800px; /* Reduced max-width to fit better for fewer items */
}

/* Styling for each box */
.box {
  background-color: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
  margin: 15px;
  padding: 20px;
  flex: 1 1 calc(50% - 30px); /* Adjust flex basis for two items */
  max-width: calc(50% - 30px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  color: inherit;
}

.box:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Image styling */
.box-img {
  max-width: 100%;
  height: auto;
  border-radius: 10px 10px 0 0;
  margin-bottom: 10px;
}

/* Icon styling */
.icon {
  font-size: 40px;
  color: #333;
  margin-bottom: 10px;
}

/* Heading and paragraph styling */
h2 {
  font-size: 24px;
  margin: 10px 0;
  color: #333;
}

p {
  font-size: 16px;
  color: #666;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .box {
      flex: 1 1 100%;
      max-width: 100%;
  }
}
