.latest-books {
    background: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
    padding: 20px;
    border-radius: 5px;
}

.book-item {
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.book-image {
    position: relative;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9f9f9;
    margin: 5px 0px;
    /* height: 200px; */
    background-size: cover;
}

.book-image img {
    /* max-width: 100%;
    height: auto; */
    object-fit: cover;
    transition: transform 0.3s ease-in-out;
    padding: 1px;
    border-radius: 5px;
}

.book-image.no-image img {
    object-fit: cover;
    height: 100%;
}

.book-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    text-align: center;
    opacity: 0;
    transition: background 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.book-title {
    font-size: 0.8rem;
    font-weight: normal;
    color: #333;
    padding: 20px 5px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 3px;
}

.book-item:hover .book-overlay {
    background: rgba(255, 255, 255, 0.6);
    opacity: 1;
}

.book-item:hover img {
    transform: scale(1.05);
}
