.category-scroll-section {
  background: #f3c300; 
  padding: 50px 0; 
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); 
  gap: 20px; 
  max-width: 1100px; 
  margin: 0 auto;
  padding: 0 15px; 
}

.category-card {
  background: #ffffff;
  border-radius: 4px; 
  overflow: hidden;
  box-shadow: 0 3px 8px rgba(0,0,0,0.15); 
  border: 1px solid #eaeaea;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.category-card:hover {
    transform: translateY(-3px); 
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.category-card-img {
  width: 100%;
  aspect-ratio: 16/10; 
  overflow: hidden;
}

.category-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.category-card:hover .category-card-img img {
    transform: scale(1.05); 
}

.category-card-body {
  background-color: #f7f7f7; 
  padding: 12px 8px; 
  text-align: center;
  min-height: 100px; 
  display: flex;
  flex-direction: column;
  justify-content: flex-start; 
}

.category-card-body h3 {
  font-size: 15px; 
  font-weight: 600;
  margin: 0;
  color: #070707; 
}

.category-card-body p {
  display: block; 
  font-size: 12px;
  color: #666; 
  margin-top: 5px;
  line-height: 1.3;
  flex-grow: 1; 

  display: -webkit-box;
  -webkit-line-clamp: 3; 
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}


.section-head-center .section-tag,
.section-head-center h2 {
    color: #fff; 
}
.section-head-center .section-tag {
    color: #ffc107; 
}

@media (max-width: 992px) {
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px; 
  }
}

@media (max-width: 600px) {
  .category-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 0 10px;
  }
}