.button-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px; /* spacing between buttons */
  justify-items: center;
  margin: 20px auto;
  max-width: 800px;
}

.button-item {
  width: 200px;
  text-align: center;
}

.button-item a {
  text-decoration: none;
  color: inherit; /* keep text consistent */
  display: inline-block;
}

.button-item img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 15px; /* reduced corners */
  padding: 0px; /* sufficient padding */
  background-color: #f4f4f4; /* optional background */
  box-shadow: 0 4px 8px rgba(0,0,0,0.2); /* drop shadow */
  transition: transform 0.5s ease, box-shadow 0.2s ease;
}

.button-item img:hover {
  transform: translateY(-5px); /* subtle lift */
  box-shadow: 0 8px 16px rgba(0,0,0,0.3);
}

.button-item p {
  margin-top: 10px;
  font-size: 17px;
  font-weight: 500;
  color: #666666;
  transition: color 0.2s ease;
}

.button-item a:hover p {
  color: #0077b6; /* highlight text on hover */
}

.button {
  padding: 20px 20px;
  background-color: #f4f4f4;   /* light background for contrast */
/* Background image settings */
  background-image: url('../img/otherbg.png'); /* replace with your PNG path */
  background-repeat: no-repeat;
  background-position: top right;
  background-size: 820px auto;   /* adjust size as needed */
}
