/* ===== Category CTA Section (Mobile First) ===== */
.category-cta-section {
  display: flex;
  flex-direction: column; /* stack vertically on mobile */
  gap: 1rem;
  padding: 1rem;
}

.category-cta-card {
  position: relative;
  height: 180px;
  border-radius: 12px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Brighter overlay (dim layer) */
.category-cta-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35); /* reduced darkness */
  transition: background 0.3s ease;
}

.cta-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #fff;
  text-align: center;
  z-index: 1;
}

.cta-overlay h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* Less curved button and brighter tone */
.cta-btn {
  display: inline-block;
  background: linear-gradient(135deg, #ffb74d, #ff9800);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 8px; /* reduced curve */
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.3s ease, transform 0.2s ease;
}

.cta-btn:hover {
  background: linear-gradient(135deg, #ffcc80, #e68900);
  transform: scale(1.05);
}

/* ===== Hover Effect ===== */
.category-cta-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}

.category-cta-card:hover::after {
  background: rgba(0, 0, 0, 0.25); /* brighten slightly on hover */
}

/* ===== Desktop View (4 in a row) ===== */
@media (min-width: 768px) {
  .category-cta-section {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    padding: 2rem 1rem;
  }

  .category-cta-card {
    flex: 1 1 calc(25% - 1.5rem);
    height: 220px;
    max-width: 300px;
  }

  .cta-overlay h3 {
    font-size: 1.3rem;
  }

  .cta-btn {
    font-size: 1rem;
    padding: 0.6rem 1.2rem;
  }
}
