/* Custom Category Cards Styling */

.category-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  height: 100%;
}

.category-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.category-card-image {
  position: relative;
  overflow: hidden;
}

.category-card-image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.category-card:hover .category-card-image img {
  transform: scale(1.05);
}

.category-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(65, 48, 124, 0.3);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
}

.category-card:hover .category-overlay {
  opacity: 1;
}

.category-icon {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #41307c;
  font-size: 18px;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.4s ease;
}

.category-card:hover .category-icon {
  transform: translateY(0);
  opacity: 1;
}

.category-card-content {
  padding: 20px;
  position: relative;
}

.category-card-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 15px;
  transition: all 0.3s ease;
}

.category-card-title a {
  color: #333;
  text-decoration: none;
}

.category-card-title a:hover {
  color: #41307c;
}

.category-card-line {
  width: 40px;
  height: 3px;
  background: #41307c;
  margin-bottom: 15px;
  transition: width 0.3s ease;
}

.category-card:hover .category-card-line {
  width: 60px;
}

.category-card-action>a {
    /* display: inline-block; */
    text-decoration: none;
    margin-top: -10px;
    color: #f79b2f;
}

/* Responsive adjustments */
@media (max-width: 767px) {
  .category-card-image img {
    height: 180px;
  }
}
