/* ── Books Slider Section ── */
.books-slider-section {
    padding: 80px 60px 90px;
    background-color: #f7f9fc;
    background-image:
        linear-gradient(rgba(0, 147, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 147, 255, 0.05) 1px, transparent 1px);
    background-size: 60px 60px;
    overflow: hidden;
    position: relative;
}

/* ── Section Header ── */
.books-slider-section__header {
    text-align: center;
    margin-bottom: 56px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.books-slider-section__title {
    font-family: 'TTFirsNeue', sans-serif;
    font-weight: 800;
    font-size: 38px;
    color: #0d1b2a;
    margin: 0;
}

.books-slider-section__line {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #0093ff, #ffffff);
    border-radius: 2px;
}

.books-slider-section__sub {
    font-family: 'nexa', sans-serif;
    font-size: 15px;
    color: #6b7a99;
    margin: 0;
}

/* ── Swiper Container ── */
.booksSwiper {
    padding: 40px 20px 60px !important;
    overflow: visible !important;
}

/* ── Each Book Slide ── */
.swiper-slide {
    transition: transform 0.4s ease, z-index 0.4s ease;
    opacity: 1;
    transform: scale(0.88);
    z-index: 1;
}

/* Center active slide — elevated by scale only, z-index brings it forward */
.swiper-slide-active {
    opacity: 1 !important;
    transform: scale(1.12) !important;
    z-index: 10 !important;
}

/* Adjacent slides */
.swiper-slide-prev,
.swiper-slide-next {
    opacity: 1;
    transform: scale(0.95);
    z-index: 5;
}

/* ── Book Card ── */
.book-card {
    border-radius: 0;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transition: box-shadow 0.4s ease;
    background: #e8edf5;
}

.swiper-slide-active .book-card {
    box-shadow: 0 24px 60px rgba(0, 147, 255, 0.3), 0 8px 24px rgba(0, 0, 0, 0.18);
}

.book-card img {
    width: 100%;
    height: 280px;
    object-fit: contain;
    display: block;
    background: #e8edf5;
    transition: transform 0.4s ease;
}

.swiper-slide-active .book-card img {
    transform: scale(1.03);
}

/* Blue glow bottom bar on active */
.book-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #0093ff;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.swiper-slide-active .book-card::after {
    transform: scaleX(1);
}

/* ── Pagination Dots ── */
.booksSwiper .swiper-pagination {
    bottom: 10px;
}

.booksSwiper .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: #c5d0e0;
    opacity: 1;
    transition: all 0.3s ease;
    border-radius: 50%;
}

.booksSwiper .swiper-pagination-bullet-active {
    background: #0093ff;
    width: 28px;
    border-radius: 4px;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .books-slider-section {
        padding: 60px 20px 70px;
    }

    .books-slider-section__title {
        font-size: 28px;
    }

    .book-card img {
        height: 220px;
    }
}

@media (max-width: 480px) {
    .book-card img {
        height: 190px;
    }

    .books-slider-section__title {
        font-size: 24px;
    }
}
