.icon-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin: 1rem 0;
}

.icon-box {
  flex: 1 1 240px; /* responsive: minimum 240px, expand if space */
  max-width: 300px;
  text-align: center;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.icon-box:hover {
  background: #004ec3;
  color: #fff;
  border-color: #004ec3;
  transform: translateY(-4px);
}

.icon-box img {
  max-width: 90px;
  margin-bottom: 0.5rem;
}

.icon-text {
  font-size: 1.2em;
  font-weight: bold;
  margin-top: 0.5rem;
}

.icon-box a {
  text-decoration: none;
  color: inherit; /* ensures text inherits hover color */
}