/* Container that holds the four items */

html {
  scroll-behavior: smooth;
}

.image-text-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  justify-items: center;
  padding: 20px;
  background-color: white;
  font-family: Arial, Helvetica, sans-serif;
}

.image-text-item {
  text-align: center;
}

.image-text-item img {
  width: 100%;
  max-width: 100px;
  /* You can adjust the max width */
  height: auto;
  border-radius: 8px;
  /* Optional: adds rounded corners */
}

.image-text {
  font-size: 16px;
  font-weight: bold;
  margin-top: 10px;
}

.image-text:hover {
  color: rgb(34, 114, 146);
  transform: scale(1.2);
  transition: 1s;
}

/* Responsive styles for smaller screens */
@media (max-width: 1200px) {
  .image-text-container {
    grid-template-columns: repeat(3, 1fr);
    /* 3 columns for large tablets */
  }
}

@media (max-width: 900px) {
  .image-text-container {
    grid-template-columns: repeat(2, 1fr);
    /* 2 columns for tablets */
  }
}

@media (max-width: 600px) {
  .image-text-container {
    grid-template-columns: 1fr;
    /* 1 column for mobile */
  }
}

@media (max-width: 400px) {
  .image-text-item img {
    max-width: 100px;
    /* Adjust image size for very small screens */
  }

  .image-text {
    font-size: 14px;
    /* Adjust font size for smaller screens */
  }
}