.books-list-page {
  min-height: 100vh;
  padding-bottom: 80px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3pc 20px;
}

/* Hero / Header Section */
.books-hero {
  position: relative;
  padding: 5pc 0 0pc;
  text-align: center;
}

.books-hero .container {
  position: relative;
  z-index: 2;
}

.books-hero .page-title {
  font-family: var(--font-heading);
  font-size: clamp(40px, 6vw, 64px);
  color: #000000;
  /* Dark brownish color from image */
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.breadcrumbs {
  font-family: var(--font-body);
  font-size: 25px;
  color: #f78627;
  margin-bottom: 40px;
}

.breadcrumbs a {
  color: inherit;
  text-decoration: none;
}

.section-label {
  display: block;
  font-size: 25px;
  color: #f78627;
  font-style: italic;
  margin-bottom: 10px;
  text-align: center;

}

.section-title {
  font-family: var(--font-heading);
  font-size: 43px;
  color: #000000;
  margin-bottom: 20px;
  text-align: center;
}

.section-intro {
  max-width: 700px;
  margin: 0 auto 60px;
  font-size: 16px;
  line-height: 1.8;
  color: #4e342e;
  text-align: center;
}

.books-grid-section {
  position: relative;
  padding: 0px 20px 50px;
  overflow: visible;
}

/* =======================
   Hanging Objects
 ======================= */
@keyframes swing {
  0% {
    transform: rotate(-8deg);
  }

  50% {
    transform: rotate(8deg);
  }

  100% {
    transform: rotate(-8deg);
  }
}

.hanging-object {
  position: absolute;
  top: 0;
  transform-origin: top center;
  animation: swing 3.6s ease-in-out infinite;
  z-index: 2;
  pointer-events: none;
}

.hanging-object img {
  width: 70px;
  height: auto;
  display: block;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

.hanging-object.item-1 {
  left: 5%;
  animation-delay: 0s;
}

.hanging-object.item-2 {
  left: 15%;
  animation-delay: -1.5s;
  width: 50px;
}

.hanging-object.item-3 {
  right: 10%;
  animation-delay: -0.7s;
  width: 100px;
}

.hanging-object.item-4 {
  right: 20%;
  top: -1px;
  animation-delay: -2.2s;
  width: 80px;
}

.hanging-object.item-5 {
  right: 5%;
  animation-delay: -3s;
  width: 70px;
}

.hanging-object.item-6 {
  left: 25%;
  animation-delay: -4.5s;
  width: 100px;
}

.hanging-object img {
  width: 100%;
}

.books-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.book-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease;
}

.book-card:hover {
  transform: translateY(-5px);
}

/* The light grey box containing the book */
.book-cover-wrapper {
  background: #e0e0e0;
  /* Light grey box */
  width: 100%;
  aspect-ratio: 1 / 1.2;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 15px;
  padding: 30px;
  transition: background 0.3s ease;
}

.book-cover-wrapper img {
  width: 70%;
  height: auto;
  box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.3);
  /* 3D effect shadow */
  border-radius: 2px;
}

/* Hover state: show button at bottom of wrapper */
.btn-view-detail {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: #2963b1;
  color: white;
  padding: 12px;
  font-size: 18px;
  opacity: 0;
  transition: opacity 0.3s ease, background 0.2s ease;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  z-index: 2;
}


.btn-view-detail i {
  font-size: 16px;
}

.book-card:hover .btn-view-detail {
  opacity: 1;
}

.book-card:hover .book-cover-wrapper {
  background: #d5d5d5;
}

/* Text below the box */
.book-category {
  font-size: 17px;
  color: #f78627;
  font-style: italic;
  margin-bottom: 5px;
  display: block;
}

.book-title {
  font-size: 20px;
  font-weight: 600;
  color: #000000;
  margin: 0;
}

@media (max-width: 1400px) {
  .books-hero .page-title {
    font-size: 35px;
  }

  .section-intro {
    max-width: 550px;
  }

  .section-title {
    font-size: 30px;
  }

  .container {
    max-width: 900px;
  }
}

@media (max-width: 768px) {
  .books-hero {
    padding-top: 150px;
  }

  .books-grid {
    grid-template-columns: repeat(1, 1fr);
    gap: 100px;
  }


}