/* Custom Book Styles */

.single-book .wf-container-main{grid-template-columns: repeat(1, 1fr) !important;} 
.books-grid {display: grid;grid-template-columns: repeat(4, 1fr);gap: 50px 20px;}
 

/* CARD */
.book-card {
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  transition: all 0.35s ease;
}

.book-card:hover {
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

 
.book-thumb {
  height: 400px;
  border-radius: 16px;
   position: relative;
  overflow: hidden;
}

.book-thumb img {
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  object-position: top;
  transition: transform 0.5s ease;
}
/* ZOOM */
.book-card:hover img {
  transform: scale(1.0);
}

/* OVERLAY */
.book-overlay {
  position: absolute;
  inset: 0;
  background: rgba(129,215,66,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: 0.4s ease;
   pointer-events: none;
}

.book-card:hover .book-overlay {
  opacity: 1;
}
 
.book-overlay .view-btn {
  pointer-events: auto;
}

.view-btn{font-size: 40px !important;color: #fff;text-decoration: none !important;} 
.book-info .title{ font-weight: 500;min-height: 60px;font-size: 22px;line-height: 30px;display: -webkit-box;-webkit-line-clamp: 2;-webkit-box-orient: vertical;overflow: hidden;text-overflow: ellipsis;}
.single-book .page-title-breadcrumbs li:nth-child(2){ display: none;}

@media screen and (max-width: 1024px){

.books-grid{grid-template-columns: repeat(3, 1fr);}
.book-info .title{font-size: 20px;line-height: 26px;}

}

@media screen and (max-width: 768px){

.books-grid{grid-template-columns: repeat(2, 1fr); gap: 40px 20px;}
.single-book .page-title.solid-bg{padding: 30px 0px;}
.single-book .page-title .wf-wrap {padding-left: 0;padding-right: 0;}
 

}

@media screen and (max-width: 576px){

.books-grid{grid-template-columns: repeat(1, 1fr) !important; }
.book-info .title{-webkit-line-clamp: unset;min-height: unset;padding-bottom: 10px;text-align: center;}
 

}