/* ==========================================================
   CATEGORY SECTION V1.0.0
   Seções de categoria ou destaque com título, link e cards
   ========================================================== */

/* Prefixo exclusivo: catsec- */

.catsec {
  margin: 4rem 0;
  padding: 0 2rem;
  box-sizing: border-box;
}

/* ===============================
   CABEÇALHO DA SEÇÃO
   =============================== */

.catsec-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.catsec-header-title {
  font-size: 1.75rem;
  font-weight: 600;
  color: #111827;
  margin: 0;
}

.catsec-header-link {
  font-size: 0.95rem;
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.catsec-header-link:hover {
  color: #1d4ed8;
}

/* ===============================
   GRID DE CARDS
   =============================== */

.catsec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* ===============================
   CARD GENÉRICO (opcional)
   =============================== */

.catsec-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.catsec-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.catsec-card img {
  width: 100%;
  height: auto;
  display: block;
}

.catsec-card-body {
  padding: 1rem 1.25rem;
}

.catsec-card-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #111827;
}

.catsec-card-text {
  font-size: 0.95rem;
  color: #4b5563;
  line-height: 1.4;
}

/* ===============================
   RESPONSIVIDADE
   =============================== */

@media (max-width: 768px) {
  .catsec-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .catsec-header-title {
    font-size: 1.5rem;
  }

  .catsec-header-link {
    align-self: flex-end;
  }
}

