/* Card container */
.cardnew {
  width: 150px;
  height: 287px;
  border-radius: 1rem;
  overflow: hidden;
  /* text-align: center; */
  position: relative;
  background-color: #fff;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

.cardnew:hover {
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1),
    0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* Cover container to allow overlaynew effect */
.cover-container-new {
  position: relative;
  width: 100%;
  overflow: hidden;
}

/* Book cover image */
.cardnew img {
  width: 100%;
  height: 170px;
  display: block;
  object-fit: cover;
  border-radius: 1rem;
}

/* Dark overlaynew on hover */
.overlaynew {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Play button */
.play-button {
  position: absolute;
  bottom: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 50px;
  background-color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  transition: bottom 0.3s ease;
}

.overlaynew {
  border-radius: 1rem;
}

/* Hover effect */
.cardnew:hover .overlaynew {
  opacity: 1;
}

.cardnew:hover .play-button {
  bottom: 40%;
}

.cardnew:hover .cardnew-content h3 {
  color: rgb(29 78 216);
}

/* Title and author container */
.cardnew-content {
  padding: 16px;
}

.cardnew-content h3 {
  font-size: 16px;
  margin: 0px 0 4px;
  color: rgb(30 41 59);
  transition: all 0.3s ease;
}

.cardnew-content p {
  font-size: 14px;
  color: rgb(100 116 139);
  margin: 0;
}

.audio-book-container {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

@media (max-width: 1280px) {
  .audio-book-container {
    grid-template-columns: repeat(5, 1fr);
  }
}
@media (max-width: 1024) {
  .audio-book-container {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (max-width: 768px) {
  .audio-book-container {
    grid-template-columns: repeat(2, 1fr);
  }
}
