/* ======== LIVROS / CARDS ======== */
.livros {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  justify-items: center;
  margin: 1rem auto;
  padding: 2rem;
  max-width: 1400px;
}

/* Card */
.livros .box {
  text-align: center;
  width: 100%;
  max-width: 600px;
  height: auto;
  padding: 1.5rem;
  border-radius: 8px;
}

/* Imagem */
.livros .boxContent img {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 6px;
  margin-bottom: 1rem;
}

/* Textos */
.livros .boxP {
  margin: 0.4rem 0;
  text-align: left;
  line-height: normal;
  margin-left: 2.1rem; /* recuo suave */
}

/* Rótulos (Título / Autor) */
.livros .titulo,
.livros .autor {
  color: #FB6C04;
  text-align: left;
  font-family: "Source Sans Pro", sans-serif;
  font-size: 20px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  display: inline-block;
}

/* Nomes (em branco / preto) */
.livros .nome-livro,
.livros .nome-autor {
  color: #000000;
  font-family: "Source Code Variable", monospace;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  margin-left: 0.3rem;
  text-align: left;
}

/* Link sem sublinhado */
.livros a {
  text-decoration: none;
  color: inherit;
}

/* Botão */
.livros a button {
  background-color: #353535;
  color: #fff;
  border: none;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-top:-2rem;
  cursor: pointer;
  font-size: 20px;
  font-weight: 600;
  transition: background 0.3s;
  width: 100%;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
  text-decoration: none;
}

.livros a button .text {
  font-size: 16px;
  font-family: "Source Sans Pro", sans-serif;
  font-weight: 600;
  line-height: 1.3;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
}

.livros a button:hover {
  background-color: #FB6C04;
}

.livros a button img {
  width: 34px;
  height: 34px;
}

/* Responsivo */
@media screen and (max-width: 900px) {
  .livros {
    grid-template-columns: 1fr;
    padding: 1.5rem;
  }

  .livros .box {
    width: 100%;
  }

  .livros .boxContent img {
    width: 100%;
  }

}
