.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 2rem auto;
  max-width: 1200px;
  padding: 0 1.5rem;
}

.category-card {
  position: relative;
  height: 200px;
  border-radius: 8px;
  background: var(--hugo-light, #ffffff);
  overflow: hidden;
  text-decoration: none;
  display: flex;
  align-items: center;
  padding: 2rem;
  transition: all 0.3s ease;
  border: 1px solid #eee;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--category-pattern, linear-gradient(120deg, #f3f4f6 0%, #ffffff 100%));
  opacity: 0.1;
  transition: opacity 0.3s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
              0 4px 6px -2px rgba(0, 0, 0, 0.05);
  border-color: var(--category-color, #3b82f6);
}

.category-card:hover::before {
  opacity: 0.15;
}

.category-content {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.category-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  color: var(--category-color, #3b82f6);
}

.category-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--category-light-bg, rgba(59, 130, 246, 0.1));
  border-radius: 12px;
  margin-bottom: 1rem;
  color: var(--category-color, #3b82f6);
  transition: all 0.3s ease;
}

.category-card:hover .category-icon {
  transform: scale(1.1);
  background: var(--category-light-bg, rgba(59, 130, 246, 0.15));
}

.category-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1f2937;
  margin: 0;
  line-height: 1.4;
}

.category-card p {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0;
  line-height: 1.5;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .category-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0 1rem;
  }
  
  .category-card {
    height: auto;
    min-height: 160px;
  }

  .category-card h3 {
    font-size: 1.125rem;
  }
  
  .category-card p {
    font-size: 0.875rem;
  }
  
  .category-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 0.75rem;
  }
}