.category-hero {
  background: linear-gradient(135deg, #0f172a, #064e3b);
  color: #fff;
  border-radius: 24px;
  padding: 2rem;
  margin: 2rem 0;
  box-shadow: 0 18px 45px rgba(15, 23, 42, .18);
}

.category-hero h1 {
  margin: 0 0 .75rem;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
  color: #fff;
}

.category-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255,255,255,.82);
  line-height: 1.6;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.category-card {
  display: block;
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
  color: #0f172a;
  text-decoration: none;
  border: 1px solid rgba(15, 23, 42, .08);
  box-shadow: 0 12px 32px rgba(15, 23, 42, .10);
  transition: transform .18s ease, box-shadow .18s ease;
}

.category-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 42px rgba(15, 23, 42, .16);
}

.category-card-photo {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
  background: #e5e7eb;
}

.category-card-placeholder {
  height: 190px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #dcfce7, #dbeafe);
  font-size: 2.4rem;
}

.category-card-body {
  padding: 1rem;
}

.category-card-title {
  margin: 0 0 .5rem;
  font-size: 1.15rem;
}

.category-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-top: .75rem;
}

.category-pill {
  font-size: .82rem;
  padding: .35rem .55rem;
  border-radius: 999px;
  background: #f1f5f9;
  color: #334155;
}

.category-empty {
  border-radius: 20px;
  padding: 2rem;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  color: #64748b;
}