/* Book Page Styles */

.book-section {
  background-color: #f8f9fa;
  padding: 2rem 1rem;
  font-family: 'Montserrat', sans-serif;
}

.book-container {
  max-width: 800px;
  margin: 0 auto;
  color: #333;
  text-align: center;
}

.book-container h1 {
  font-size: 2.5rem;
  color: #2c3e50;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  margin-bottom: 3.5rem;
}

.book-container h1::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background-color: #e74c3c;
}

/* Books Grid */
.books-section {
  padding: 2rem 1rem;
  background-color: #fff;
}

.books-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

/* Book Card */
.book-card {
  width: 260px;
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  font-family: 'Montserrat', sans-serif;
  text-align: center;
}

.book-card:hover {
  transform: translateY(-5px);
}

/* Image Styling */
.image-wrap {
  position: relative;
  height: 340px;
  overflow: hidden;
}

.image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}

.image-wrap:hover img {
  transform: scale(1.05);
}

/* Read Button on Hover */
.read-btn {
  position: absolute;
  bottom: 12px;
  right: 12px;
  padding: 8px 14px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 0.9rem;
  border-radius: 4px;
  text-decoration: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.image-wrap:hover .read-btn {
  opacity: 1;
}

/* Book Info */
.info {
  padding: 15px;
}

.title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2c3e50;
  margin: 8px 0 4px;
}

.author {
  font-size: 0.9rem;
  color: #666;
}

/* Responsive */
@media (max-width: 768px) {
  .book-card {
    width: 90%;
  }
}
