.book-section-slider {
    margin: 0 auto;
}

/* --- Individual Book Card --- */
.book-card {
    background-color: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}

.book-card img {
    aspect-ratio: 2 / 1;
    object-fit: contain;
    margin-top: 0.5rem;
    padding: 0.5rem 0;
    justify-self: center;
}

.book-card .book-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Makes card content fill the space */
}

.book-card h3 {
    margin-top: 0;
    font-size: 1.25rem;
    text-align: center;
}

.book-card .author-name {
    font-style: italic;
    color: #555;
    margin-top: -10px;
    margin-bottom: 15px;
    text-align: center;
}

.book-card .book-description {
    font-size: 0.95em;
    color: #333;
    flex-grow: 1; /* Pushes buttons to the bottom */
}

button {
    display: grid;
    grid-template-columns: 138px auto;
    text-decoration: none;
}

.book-buy-button:hover {
    text-decoration: none;
}

.button-svg {
    margin-left: 0.5rem;
    align-self: center;
}

.purchase-links {
    margin-top: 15px;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    align-content: center;
}

.swiper {
    padding-bottom: 1.5rem;
}

/* Style for Swiper.js Navigation Buttons */
.book-slider .swiper-button-next,
.book-slider .swiper-button-prev {
    top: auto;
    bottom: 30px;
    color: var(--global-palette-btn-bg);
}

.book-slider .swiper-button-next:hover,
.book-slider .swiper-button-prev:hover {
    color: var(--global-palette-btn-bg-hover);
}

/* Styles for the new wrapper to center the pagination container */
.swiper-pagination-wrapper {
  position: absolute;
  bottom: 30px;
  left: 50%;
  
  z-index: 10;
}

/* Styles for the pagination container to create the oval */
.swiper-pagination {
  background-color: #f0f0f0;
  border-radius: 20px;
  border: 2px solid var(--global-palette-btn-bg);
  padding: 10px 10px;
  display: inline-flex;
  transform: translateX(-50%);
}

.swiper-pagination-bullets.swiper-pagination-horizontal {
    width: unset;
}

.swiper-pagination-bullet-active {
    background-color: var(--global-palette-btn-bg-hover);
}

/* Ensure book cards have a consistent height in the slider */
.swiper-slide {
    height: auto;
}

.book-card {
    height: 100%; /* Make the card fill the slide's height */
}