/* All Books Archive Page Styling */
.all-books-archive-page .page-header {
    text-align: center;
    margin-bottom: 40px;
}

.all-books-archive-page h1.page-title {
    font-size: 1.8rem;
    margin-top: 25px;
    margin-bottom: 21px;
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); /* شبکه واکنش‌گرا */
    gap: 30px;
}

.book-item {
    background-color: #fff;
    border-radius: 8px;
    /*box-shadow: 0 4px 15px rgba(0,0,0,0.08);*/
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.book-item:hover {
    transform: translateY(-8px);
    /*box-shadow: 0 8px 25px rgba(0,0,0,0.12);*/
}

.book-item-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.book-item-thumbnail img {
    width: 100%;
    height: 330px; /* ارتفاع ثابت برای تصاویر */
    object-fit: cover; /* تصویر بدون تغییر نسبت، کادر را پر می‌کند */
}

.book-item-title {
    font-size: 1.1em;
    padding: 15px;
    text-align: center;
    color: #333;
    background-color: #fff;
    margin: 0;
}

/* Pagination Styling */
.pagination-wrapper {
    margin-top: 50px;
    text-align: center;
}
.pagination-wrapper .page-numbers {
    padding: 8px 15px;
    margin: 0 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #555;
    transition: background-color 0.3s, color 0.3s;
}
.pagination-wrapper .page-numbers.current,
.pagination-wrapper .page-numbers:hover {
    background-color: #0073aa; /* یا رنگ اصلی سایت شما */
    color: #fff;
    border-color: #0073aa;
}


/* 3D Book - main image - start */
.book-item-link {
  align-items: center;
  display: flex;
  justify-content: center;
  padding-left: 24px;
  perspective: 700px;
  text-align: initial;
  transform-style: preserve-3d;
  padding: 50px 0;
}

.book-item-link .book-item-thumbnail {
  animation: initAnimation 1s ease 0s 1;
  height: 300px;
  position: relative;
  transform: rotateY(30deg);
  transform-style: preserve-3d;
  transition: 0.5s ease;
  width: 200px;
  width: 185px;
  height: 261px;
}

.book-item-link .book-item-thumbnail:hover {
  transform: rotateY(16deg);
}
.book-item-link .book-item-thumbnail::before {
  background: linear-gradient(
    90deg,
    #fff,
    #f9f9f9 5%,
    #fff 10%,
    #f9f9f9 15%,
    #fff 20%,
    #f9f9f9 25%,
    #fff 30%,
    #f9f9f9 35%,
    #fff 40%,
    #f9f9f9 45%,
    #fff 50%,
    #f9f9f9 55%,
    #fff 60%,
    #f9f9f9 65%,
    #fff 70%,
    #f9f9f9 75%,
    #fff 80%,
    #f9f9f9 85%,
    #fff 90%,
    #f9f9f9 95%,
    #fff
  );
  content: " ";
  height: 294px;
  position: absolute;
  top: 3px;
  transform: translateX(-172px) rotateY(90deg) translateX(25px);
  /* width: 50px; */
  width: 28px;
  transform: translateX(calc(-185px + 28px / 2 + 2px)) rotateY(90deg)
    translateX(calc(28px / 2 + 2px));
  height: calc(261px - 2 * 3px);
}

.book-item-link .book-item-thumbnail::after {
  background-color: #01060f;
  border-radius: 0 2px 2px 0;
  box-shadow: 10px 0 30px 10px #666;
  content: " ";
  height: 300px;
  left: 0;
  position: absolute;
  transform: translateZ(-50px);
  width: 200px;
  transform: translateZ(calc(-1 * 28px));
  width: 185px;
  height: 261px;
}
.book-item-link .book-item-thumbnail img {
  background-color: #01060f;
  border-radius: 0 2px 2px 0;
  box-shadow: 5px 5px 20px #666;
  height: 300px;
  left: 0;
  -o-object-fit: fill;
  object-fit: fill;
  position: absolute;
  top: 0;
  width: 185px;
  height: 261px;
}

/* 3D Book - main image - End */
