/* Container styling for the entire book showcase section */
.book-showcase-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

/* Book article cards styling */
.book-article {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    max-width: 300px;
    text-align: center;
}

/* Hover effect for book cards */
.book-article:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

/* Book image container to make images responsive */
.book-image-container {
    width: 100%;
    padding-top: 150%; /* Maintains a 2:3 aspect ratio */
    position: relative;
    overflow: hidden;
}

/* Styling for images within book container */
.book-image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image fills the container while maintaining its aspect ratio */
    transition: transform 0.3s ease;
}

/* Hover effect for book image */
.book-article:hover .book-image-container img {
    transform: scale(1.05);
}

/* Content styling for each book */
.book-content {
    padding: 1.5rem 1rem;
}

/* Styling for book titles */
.book-title {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 1rem;
    font-weight: bold;
}

/* Styling for book descriptions */
.book-description {
    font-size: 1rem;
    color: #555;
    margin-bottom: 1.5rem;
}

/* Updated Button Styling for 'Learn More' or 'Coming Soon' */
.book-button {
    padding: 0.75rem 1.5rem;  /* Add balanced padding */
    background-color: #007bff; /* Primary color */
    color: #fff; /* White text color */
    text-decoration: none;
    border-radius: 5px;
    display: inline-block;
    font-size: 1rem;
    line-height: 1.5; /* Ensures text is vertically centered */
    text-align: center; /* Ensures text is centered horizontally */
    transition: background-color 0.3s ease, transform 0.3s ease;
    vertical-align: middle; /* Corrects the vertical alignment */
}

/* Hover effect for buttons */
.book-button:hover {
    background-color: #0056b3;
    transform: translateY(-3px);
}