.book::after,
.book::before, .book img, .book {
  border-top-right-radius: 5px;
  border-bottom-right-radius: 5px;
}


ul {
  display: table-cell;
  vertical-align: middle;
}

.list-inline {
  padding-left: 0;
  list-style: none;
}
.list-inline > li {
  display: inline-block;
  margin-left: 2em;
}
.list-inline > li:first-child {
  margin-left: 0;
}

.book {
  cursor: pointer;
  display: block;
  width: 280px;
  height: 400px;
  position: relative;
  background: white;
  z-index: 1;
  box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.1), 0 9px 20px 0 rgba(0, 0, 0, 0.25);
  overflow: hidden;
  transition: box-shadow 0.3s linear;
}

.book img {
  width: inherit;
  height: inherit;
  transform-origin: 0 50%;
  transform: rotateY(0);
  transition: all 0.45s ease;
}

.book:hover {
  box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.25), 0 9px 20px 0 rgba(0, 0, 0, 0.45);
}
.book:hover img {
  transform: rotateY(-25deg);
  box-shadow: 1px 1px 5px 5px rgba(0, 0, 0, 0.2);
}

.book::after,
.book::before {
  content: "";
  display: block;
  width: inherit;
  height: inherit;
  position: absolute;
  z-index: -1;
  top: 0;
  background: white;
  border: 1px solid #d9d9d9;
}

.book::before {
  left: -3px;
}

.book::after {
  left: -6px;
}

/* Section styling */
.s-books {
    background-color: var(--color-white);
    min-height: 100vh;
    width: 100%;
    padding: 8rem 0;
}

.book-list {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    list-style: none;
    padding: 0;
    margin: 4rem auto;
    width: 100%;
    flex-wrap: wrap;
}

/* Book styling */
.book {
    cursor: pointer;
    display: block;
    width: 280px;
    height: 400px;
    position: relative;
    background: white;
    z-index: 1;
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.1), 0 9px 20px 0 rgba(0, 0, 0, 0.25);
    overflow: hidden;
    transition: box-shadow 0.3s linear;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
}

.book img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform-origin: 0 50%;
    transform: rotateY(0);
    transition: all 0.45s ease;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
}

/* Hover effects */
.book:hover {
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.25), 0 9px 20px 0 rgba(0, 0, 0, 0.45);
}

.book:hover img {
    transform: rotateY(-25deg);
    box-shadow: 1px 1px 5px 5px rgba(0, 0, 0, 0.2);
}

/* Book page effects */
.book::after,
.book::before {
    content: '';
    display: block;
    width: inherit;
    height: inherit;
    position: absolute;
    z-index: -1;
    top: 0;
    background: white;
    border: 1px solid #d9d9d9;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
}

.book::before {
    left: -3px;
}

.book::after {
    left: -6px;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .book-list {
        flex-direction: column;
        gap: 3rem;
    }
    
    .book {
        width: 230px;
        height: 330px;
    }
}

@media screen and (max-width: 480px) {
    .book-list {
        gap: 2.5rem;
    }
    
    .book {
        width: 180px;
        height: 260px;
    }
}