/* Books Section*/
.books-intro {
    max-width: 820px;
    padding: 80px 0 0;
    background: #fff;
    text-align: center;
    margin: 0 auto;
}
h1 {
    margin-bottom: 20px;
}

.books-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* center the row */
    gap: 2rem;
    margin-top: 2rem;
    text-align: center; /* center text inside each book card */
    padding: 20px 0;
    background: #fff;
}


.book-item {
    flex: 1 1 350px; /* ensures they center and stay balanced */
    max-width: 350px; /* limit width of each book card */
    background: #f8fafc;
    padding: 1rem;
    border-radius: 10px;
}

.book-item img {
    width: 100%;
    max-width: 350px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 4px solid #0C47DA;
}

.book-item h2 a {
    color: #0C47DA;
    text-decoration: none;
    font-size: 1.2rem;
}

.book-item h2 a:hover {
    text-decoration: underline;
}

.book-item p {
    color: #64748b;
}

/* Mobile: stack one per row */
@media (max-width: 768px) {
    .book-item {
        max-width: 100%;
    }
}



/* Mobile: stack one per row */
@media (max-width: 768px) {
    .book-item {
        flex: 1 1 100%;
        max-width: 100%;
    }
}