/* Thẻ sách trong slider (relative-book) — tách từ relative-book.php để trình duyệt lưu đệm */
.book-module {
      max-width: 1000px;
      margin: auto;
    }
    .book-module .ulclass {
      display: flex;
      flex-wrap: wrap;
      justify-content: space-around;
      z-index: 0;
    }
    .book-module .class1 {
      flex-basis: calc(20% - 10px);
      align-items: center;
      position: relative;
      margin-bottom: 20px;
      max-width: 200px;
    }
  
    .book-module .owl-nav {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      width: 100%;
      text-align: center;
    }
    .book-module .owl-prev {
      float: left;
      margin-left: 10px;
      font-size: 40px !important;
    }
    .book-module .owl-next {
      float: right;
      margin-right: 10px;
      font-size: 40px !important;
    }

  /* General container styling for the book item */
.class1.item-container {
  display: flex;
  gap: 20px;
}

.class1.item {
  width: 150px;
  margin: 10px;
  border-radius: 10px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-color: #fff;
  text-decoration: none;
  animation: fadeIn 1s ease-in-out;
  cursor: pointer;
}

.class1.item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* Styling for the cover image */
.cover {
  width: 130px;
    height: 160px;
    margin: 0 auto;
  background-size: cover;
  background-position: center;
  animation: zoomIn 1s ease-in-out;
}

/* Styling for the information section */
.info {
  padding: 10px;
}

.info p {
  margin: 3px 0;
  animation: fadeInUp 1s ease-in-out;
}

.title {
  font-weight: bold;
  font-size: 13px;
  color: #333;
}

.author {
  font-size: 12px;
  color: #333;
}

.subinfo {
  font-size: 0.8em;
  color: #666;
}

/* Styling for the reading formats */
.subinfo i {
  color: #ff6347; /* Adding some color to the icons */
  margin-right: 5px;
  animation: bounceIn 1s ease-in-out;
}

/* Add some more spacing and emphasis */
.info p:first-child {
  margin-top: 0;
}

/* Link styling */
.class1.item a {
  color: inherit;
  text-decoration: none;
}

.class1.item a:hover {
  text-decoration: none;
}

/* Adding a subtle transition to the icons */
.subinfo i {
  transition: color 0.3s ease;
}

.class1.item:hover .subinfo i {
  color: #ff4500;
}

/* Keyframes for animations */
@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes zoomIn {
  0% { transform: scale(0.9); }
  100% { transform: scale(1); }
}

@keyframes fadeInUp {
  0% { transform: translateY(20px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

@keyframes bounceIn {
  0%, 20%, 40%, 60%, 80%, 100% {
    transform: translateY(0);
  }
  30%, 50%, 70% {
    transform: translateY(-5px);
  }
}
.top-slider{
    width:100%;
}

/* Ảnh bìa tải chậm (owl lazyLoad): giữ nguyên chiều cao khung bìa, hiện dần khi tải xong */
.owl-carousel .owl-item .cover.owl-lazy{max-height:none!important;background-color:#eef1f5}
