/* PAGE */
.books-page {
  max-width: 1300px;
  margin: auto;
  padding: 60px 20px;
}

.page-title {
  text-align: center;
  font-size: 32px;
  margin-bottom: 50px;
}

/* CARD */
.book-card {
  display: flex;
  gap: 40px;
  padding: 30px;
  border: 3px solid #06185a;
  margin-bottom: 50px;
}

.book-cover {
  width: 35%;
  height: 35%;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.35));
}

.book-info h2 {
  font-size: 24px;
  margin-bottom: 10px;
}

.book-info p {
  margin: 8px 0;
  line-height: 1.5;
}

.sinopse-wrapper {
  position: relative;
}

.sinopse {
  max-height: 11.5em;
  /* ~8 linhas */
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.sinopse.expandida {
  max-height: 1000px;
  /* grande o suficiente pra mostrar tudo */
}

.sinopse-toggle {
  background: none;
  border: none;
  color: #2f49ff;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  font-size: 14px;
}

.book-buttons {
  display: flex;
  gap: 15px;
  margin-top: 25px;
}

.book-buttons a {
  padding: 12px 28px;
  border-radius: 30px;
  border: 2px solid #2f49ff;
  background: none;
  color: #2f49ff;
  font-weight: 600;
  cursor: pointer;
  transition: all .3s ease;
}

.book-buttons a:hover {
  background: #2f49ff;
  color: #fff;
}

/* MOBILE */
@media (max-width: 768px) {
  .book-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .book-cover {
    width: 200px;
  }

  .book-buttons {
    flex-direction: column;
    width: 100%;
  }

  .book-buttons button {
    width: 100%;
  }
}