/* Enhanced Card Styles */
.catCard__visual {
  position: relative;
  /* Removed static width/height to let children control it or flex */
}

.catCard__img--hero {
  width: 280px;
  height: 280px;
  margin: -40px -50px 0 0;
  transform: rotate(12deg);
  filter: drop-shadow(0 20px 30px rgba(0,0,0,0.15));
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.catCard:hover .catCard__img--hero {
  transform: rotate(0deg) scale(1.08);
}

.catCard__fab {
  position: absolute;
  bottom: 15px;
  right: 25px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
  background: var(--accent);
  color: #fff;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s;
  z-index: 10;
}

.catCard:hover .catCard__fab {
  transform: scale(1.1);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

/* Soft Button Style */
.btn--soft {
  background: #f1f5f9;
  color: var(--text);
  border: none;
  font-weight: 700;
  transition: all 0.2s ease;
}

.btn--soft:hover {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

/* Make card interactive */
.catCardGrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 1024px) {
  .catCardGrid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .catCardGrid { grid-template-columns: 1fr; }
}

/* Also support .catGrid class if used */
.catGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.catCard {
  cursor: pointer;
  text-decoration: none !important;
  position: relative;
  background: white;
  border-radius: 24px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.04);
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.catCard:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px -12px rgba(0,0,0,0.12);
  border-color: transparent;
}

.catCard .catCard__title {
  margin-top: -10px; /* Pull title up slightly if needed */
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
}

.catCard .catCard__text {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 20px;
  font-weight: 500;
}

