/* ===== ENHANCED CATEGORY CARD DESIGN ===== */

.category-card-2 {
  position: relative !important;
  border-radius: 24px !important;
  overflow: hidden !important;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
  cursor: pointer !important;
  height: 400px !important;
  display: flex !important;
  flex-direction: column !important;
  box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3) !important;
  padding: 0 !important;
}

.category-card-2::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(249, 216, 74, 0.1), rgba(253, 175, 132, 0.1));
  opacity: 0;
  transition: all 0.4s ease;
  z-index: 1;
}

.category-card-2:hover::before {
  opacity: 1;
}

.category-card-2:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 20px 60px rgba(102, 126, 234, 0.4);
}

/* Image styling */
.category-card-2 .category-img {
  width: 100% !important;
  height: 250px !important;
  object-fit: cover !important;
  transition: all 0.6s ease !important;
  filter: brightness(0.8) saturate(1.2) !important;
  position: relative !important;
  top: auto !important;
  left: auto !important;
}

.category-card-2:hover .category-img {
  transform: scale(1.1) !important;
  filter: brightness(1) saturate(1.4) !important;
}

/* Content container */
.category-card-2 .content {
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8)) !important;
  padding: 30px 24px 24px !important;
  z-index: 2 !important;
  transform: translateY(20px) !important;
  transition: all 0.4s ease !important;
  padding-top: 7px !important;
}

.category-card-2:hover .content {
  transform: translateY(0) !important;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.9)) !important;
}

/* Title styling */
.category-card-2 .title {
  font-size: 24px !important;
  font-weight: 800 !important;
  margin-bottom: 8px !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5) !important;
  transition: all 0.3s ease !important;
  letter-spacing: -0.5px !important;
}

.category-card-2:hover .title {
  transform: translateY(-2px);
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.7);
}

/* Description */
.category-card-2 .desc {
  font-size: 14px;
  opacity: 0.9;
  margin-bottom: 20px;
  line-height: 1.5;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
}

.category-card-2:hover .desc {
  opacity: 1;
}

/* Button styling */
.category-card-2 .cus-btn {
  background: linear-gradient(135deg, #f9d84a 0%, #FDAF84 100%);
  border: none;
  border-radius: 50px;
  padding: 14px 28px;
  font-weight: 700;
  font-size: 14px;
  color: #282525;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(249, 216, 74, 0.4);
  position: relative;
  overflow: hidden;
}

.category-card-2 .cus-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s ease;
}

.category-card-2 .cus-btn:hover::before {
  left: 100%;
}

.category-card-2 .cus-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(249, 216, 74, 0.6);
  color: #282525;
}

.category-card-2 .cus-btn:active {
  transform: translateY(-1px);
}

/* Icon wrapper */
.category-card-2 .icon-wrapper {
  position: relative;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-card-2 .icon-svg {
  position: absolute;
  transition: all 0.3s ease;
}

.category-card-2 .icon-svg-copy {
  opacity: 0;
  transform: translateX(-10px);
}

.category-card-2 .cus-btn:hover .icon-svg {
  opacity: 0;
  transform: translateX(10px);
}

.category-card-2 .cus-btn:hover .icon-svg-copy {
  opacity: 1;
  transform: translateX(0);
}

/* Floating elements */
.category-card-2::after {
  content: '';
  position: absolute;
  top: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  backdrop-filter: blur(10px);
  opacity: 0;
  transition: all 0.4s ease;
  z-index: 1;
}

.category-card-2:hover::after {
  opacity: 1;
  transform: scale(1.2) rotate(180deg);
}

/* Special effects */
.category-card-2 .sparkle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: #fff;
  border-radius: 50%;
  opacity: 0;
  animation: sparkle 2s infinite;
}

.category-card-2 .sparkle:nth-child(1) {
  top: 20%;
  left: 20%;
  animation-delay: 0s;
}

.category-card-2 .sparkle:nth-child(2) {
  top: 30%;
  right: 20%;
  animation-delay: 0.5s;
}

.category-card-2 .sparkle:nth-child(3) {
  bottom: 30%;
  left: 30%;
  animation-delay: 1s;
}

@keyframes sparkle {
  0%, 100% { opacity: 0; transform: scale(0); }
  50% { opacity: 1; transform: scale(1); }
}

/* Loading state */
.category-card-2.loading {
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* Responsive design */
@media (max-width: 768px) {
  .category-card-2 {
    height: 350px;
  }
  
  .category-card-2 .category-img {
    height: 200px;
  }
  
  .category-card-2 .content {
    padding: 24px 20px 20px;
  }
  
  .category-card-2 .title {
    font-size: 20px;
  }
  
  .category-card-2 .cus-btn {
    padding: 12px 24px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .category-card-2 {
    height: 300px;
  }
  
  .category-card-2 .category-img {
    height: 180px;
  }
  
  .category-card-2 .content {
    padding: 20px 16px 16px;
  }
  
  .category-card-2 .title {
    font-size: 18px;
  }
}

/* Dark mode variant */
.category-card-2.dark-theme {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
}

.category-card-2.dark-theme:hover {
  box-shadow: 0 20px 60px rgba(44, 62, 80, 0.4);
}

/* Premium variant */
.category-card-2.premium {
  background: linear-gradient(135deg, #ff6b6b 0%, #feca57 50%, #48dbfb 100%);
  position: relative;
}

.category-card-2.premium::before {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
}

.category-card-2.premium .cus-btn {
  background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
  color: #333;
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.3);
}

.category-card-2.premium .cus-btn:hover {
  box-shadow: 0 8px 30px rgba(255, 255, 255, 0.5);
}
