/* Section Styling */
#categories {
  background-color: #e5e5e5;
  padding: 60px 0;
}

/* Category Card Base */
.category-card {
  display: inline-block;
  width: 180px;
  height: auto;
  margin: 10px;
  padding: 15px;
  text-align: center;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

/* Hover Effects */
.category-card:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

/* Category Image */
.category-card img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

/* Category Title */
.category-card h3,
.category-card h4 {
  margin: 10px 0;
  font-size: 1rem;
  color: #333;
}

/* Optional Label */
.category-card .label {
  font-size: 14px;
  padding: 5px 0;
  background: #f8f8f8;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .category-card {
    width: 100%;
    max-width: 300px;
    margin: 10px auto;
  }
}

@media (max-width: 480px) {
  .category-card {
    max-width: 240px;
  }
}
