.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 32px;
  width: 100%;
  padding: 12px 20px;
  box-sizing: border-box;
}

.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  text-decoration: none;
  color: #333;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.card img {
  width: 100%;
  height: auto;
  display: block;
}

.card-title {
  padding: 12px;
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
}

@media (max-width: 480px) {
  .cards {
    padding: 10px 14px;
  }
}