/* Category Section Styles */
.categories-section {
  background-color: #fff;
  position: relative;
}

.categories-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(0, 0, 0, 0.1), transparent);
}

.category-card {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  height: 100%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  background-color: #fff;
  margin-bottom: 20px;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  border-color: #ccc;
}

.category-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.category-image {
  height: 220px;
  overflow: hidden;
  position: relative;
  background-color: #f5f5f5;
}

.category-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.category-card:hover .category-image img {
  transform: scale(1.05);
}

.category-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  padding: 20px;
  color: #fff;
  transition: all 0.3s ease;
}

.category-count {
  font-size: 14px;
  font-weight: 500;
  background-color: rgba(128, 0, 0, 0.8);
  display: inline-block;
  padding: 5px 12px;
  border-radius: 20px;
}

.category-info {
  padding: 20px;
  text-align: center;
}

.category-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #333;
  transition: color 0.3s ease;
}

.category-card:hover .category-title {
  color: #800000;
}

.category-description {
  color: #666;
  font-size: 14px;
  margin-bottom: 15px;
  line-height: 1.5;
  height: 42px;
  overflow: hidden;
}

.browse-category-btn {
  display: inline-flex;
  align-items: center;
  color: #800000;
  font-weight: 500;
  padding: 8px 15px;
  border: 1px solid #800000;
  border-radius: 4px;
  transition: all 0.3s ease;
  margin-top: 5px;
}

.browse-category-btn i {
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.category-card:hover .browse-category-btn {
  background-color: #800000;
  color: white;
}

.category-card:hover .browse-category-btn i {
  transform: translateX(5px);
}

/* Responsive adjustments */
@media (max-width: 767px) {
  .category-image {
    height: 180px;
  }

  .category-title {
    font-size: 18px;
  }
}

@media (max-width: 575px) {
  .category-image {
    height: 160px;
  }
}
