/* Book Carousel Styles */

.book-carousel-section {
    background-color: var(--light-gray);
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.book-carousel {
    position: relative;
    padding: 2rem 0;
    margin: 0 auto;
    max-width: 1200px;
    z-index: 1;
}

.book-slides-container {
    display: flex;
    transition: transform 0.5s ease;
}

.book-slide {
    text-align: center;
    padding: 0 1.5rem;
    transition: all 0.3s ease;
}

.book-image {
    height: 320px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.book-image img {
    max-height: 100%;
    box-shadow: var(--shadow-md);
    border-radius: 8px;
    transition: transform 0.5s ease;
    position: relative;
    z-index: 2;
}

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

.book-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--navy-blue);
    font-weight: 600;
}

.book-description {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    min-height: 2.7rem;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--navy-blue);
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.carousel-nav:hover {
    background-color: var(--soft-gold);
    transform: translateY(-50%) scale(1.1);
    box-shadow: var(--shadow-lg);
}

.carousel-prev {
    left: -20px;
}

.carousel-next {
    right: -20px;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .carousel-nav {
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 768px) {
    .book-image {
        height: 280px;
    }
    
    .carousel-nav {
        width: 30px;
        height: 30px;
    }
}

@media (max-width: 576px) {
    .book-carousel-section {
        padding: 4rem 0;
    }
    
    .book-image {
        height: 250px;
    }
}

.book-transition {
    transition: all 0.5s ease-in-out;
}

.featured-book {
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
}

.featured-book.book-transition {
    transform: scale(1.02);
}

.book-card {
    cursor: pointer;
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out, opacity 0.3s ease-out;
}

.book-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.book-card.book-transition {
    transform: scale(1.05);
}

/* Animation for swapping books */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.featured-book-image img,
.featured-book-content,
.book-image img,
.book-content {
    animation: fadeInUp 0.5s ease-out forwards;
}
