/*** Ultra-Modern Category Blocks Section - Responsive V2 ***/
.category-blocks {
  padding: 50px 0;
  position: relative;
  font-family: 'Poppins', sans-serif;
}

/* Header */
.category-header h3 {
  padding: 40px 7px;
  background: linear-gradient(135deg, #eef7ff 0%, #ffffff 100%);
  border-bottom: 2px solid transparent;
  border-image: linear-gradient(to right, #ff7d00, #ff9a33);
  border-image-slice: 1;
  color: #111;
  font-size: 2.2rem;
  font-weight: 700;
}

/* Flex Row */
.category-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

/* Each Card */
.category-item {
  flex: 1 1 calc((100% - 40px) / 3);
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(18px) saturate(180%);
  border-radius: 18px;
  padding: 20px 24px;
  box-shadow: 0 8px 25px rgba(0,123,255,0.1);
  transition: all 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
  cursor: pointer;
}

.category-item:hover {
  transform: translateY(-6px) scale(1.04);
  box-shadow: 0 12px 35px rgba(0,123,255,0.2);
  background: rgba(255,255,255,0.95);
}

/* Image */
.category-item img {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  object-fit: cover;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.category-item:hover img {
  transform: scale(1.1);
  box-shadow: 0 6px 18px rgba(0,123,255,0.15);
}

/* Text */
.category-info h4 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: #111;
  transition: color 0.3s ease;
}

.category-info span {
  font-size: 0.9rem;
  color: #555;
  opacity: 0.85;
}

.category-item:hover .category-info h4 {
  color: #ff7d00;
}

/* ---------------------------
   Responsive: Tablet & Mobile
----------------------------*/

/* Tablet: 2 per row */
@media (max-width: 992px) {
  .category-item {
    flex: 1 1 calc((100% - 20px) / 2);
  }
  .category-item img {
    width: 55px;
    height: 55px;
  }
  .category-info h4 {
    font-size: 1.05rem;
  }
  .category-info span {
    font-size: 0.85rem;
  }
}

/* Mobile: 2 per row */
@media (max-width: 576px) {
  .category-item {
    flex: 1 1 calc((100% - 15px) / 2);
    padding: 16px 18px;
  }
  .category-item img {
    width: 50px;
    height: 50px;
  }
  .category-info h4 {
    font-size: 1rem;
  }
  .category-info span {
    font-size: 0.8rem;
  }

  .category-header h3 {
    padding: 20px 5px;
    font-size: 1.6rem;
  }
  .category-row {
    gap: 12px;
  }
}

/* Extra Small Mobile: 1 per row for very narrow screens (<= 400px) */
@media (max-width: 400px) {
  .category-item {
    flex: 1 1 100%;
    padding: 12px 14px;
  }
  .category-item img {
    width: 45px;
    height: 45px;
  }
  .category-info h4 {
    font-size: 0.95rem;
  }
  .category-info span {
    font-size: 0.75rem;
  }
  .category-row {
    gap: 10px;
  }
}