:root {
  --cor-fundo: #FFF8E7;
  --cor-primaria: #00BCD4;
  --cor-texto: #333;
  --cor-link: #00BCD4;
}

/* ---------- BASE ---------- */
body {
  background-color: var(--cor-fundo);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--cor-texto);
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

/* ---------- NAVEGAÇÃO ---------- */
.navbar {
  background-color: var(--cor-primaria);
  padding: 1rem;
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.navbar a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

.navbar a:hover {
  text-decoration: underline;
}

/* ---------- CONTEÚDO PRINCIPAL ---------- */
main {
  max-width: 1000px;
  margin: 2rem auto;
  padding: 2rem;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

main p {
  margin-bottom: 1.5rem;
  text-align: justify;
  text-indent: 1em;
}

/* ---------- TÍTULOS ---------- */
h1, h2, h3 {
  color: var(--cor-primaria);
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  text-align: center;
}

/* ---------- LINKS ---------- */
a {
  color: var(--cor-link);
}

a:hover {
  text-decoration: underline;
}

/* ---------- FOOTER ---------- */
footer {
  background-color: var(--cor-primaria);
  color: white;
  text-align: center;
  padding: 1rem;
  margin-top: 4rem;
}

/* ---------- PORTFÓLIO / CARDS ---------- */
.portfolio-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex;
  gap: 2rem;
}

.card {
  flex: 1 1 250px;
  background-color: var(--cor-fundo);
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  text-align: justify;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* ---------- GRID PARA LIST PAGE (NOVO) ---------- */
.list-items {
  display: grid;               
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  padding: 0;
  list-style: none;
}

.list-items li {
  background-color: var(--cor-fundo);
  padding: 1rem;
  border-radius: 8px;
  text-align: justify;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease;
}

.list-items li:hover {
  transform: scale(1.02);
}

.post-meta {
  display: flex;                
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 1rem;
}

/* ---------- RESPONSIVIDADE ---------- */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    gap: 1rem;
  }

  main {
    margin: 1rem;
    padding: 1rem;
  }

  .portfolio-cards {
    flex-direction: column;
    gap: 1rem;
  }

  .list-items {
    grid-template-columns: 1fr;
  }

  .post-meta {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  h1, h2, h3 {
    font-size: 1.5rem;
  }

  .card {
    padding: 1rem;
  }

  .list-items {
    grid-template-columns: 1fr; /* reforço para telas muito pequenas */
  }

  .portfolio-cards {
    flex-direction: column; /* reforço */
  }
}
