/* ===================== BODY ===================== */
body {
    margin: 0;
    font-family: 'Lora', serif;
    background-color: #FAF8F4; /* Soft Cream */
    color: #1E1E1E;
}

/* ===================== HERO ===================== */
.hero {
    text-align: center;
    font-size: 3rem;
    padding: 2rem 1rem;
    background-color: #FAF8F4; /* Soft Cream */
    position: relative;
}

.hero::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px; /* Thin line */
    background-color: #F0856B; /* Coral color for contrast */
}

/* ===================== BOOKS SECTION ===================== */
.books {
    padding: 3rem 1rem;
    background-color: #FFFFFF; /* Keeping the background light */
    color: #1E1E1E;
    margin-bottom: 50px; /* Ensures space between books and next section */
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ===================== SERIES DESCRIPTION ===================== */
.series-description {
    max-width: 700px;
    margin: 1.5rem auto 2rem;
    text-align: center;
    font-family: 'Lora', serif;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #2F3C55;
}

.series-description em {
    font-style: italic;
    color: #F0856B; /* Coral for first line emphasis */
}

h2 {
    text-align: center;
    font-family: 'DM Serif Display', serif;
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #2F3C55;
}

/* ===================== BOOKS GRID ===================== */
.book-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    margin-top: 2rem;
}

/* ===================== SINGLE BOOK ===================== */
.book {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    flex: 1 1 200px; /* Ensures equal width */
    max-width: 200px;
    height: auto; /* Let height adjust based on content */
    padding: 20px;
    box-sizing: border-box;
    border: none; /* Remove any borders */
    margin-bottom: 20px; /* Space below each book */
    text-align: center;
}

.book img {
    width: 100%; /* Ensures responsiveness */
    max-width: 200px; /* Max width of the image */
    height: auto;
    margin-bottom: 1rem; /* Spacing below the image */
}

.book-blurb {
    font-family: 'Lora', serif;
    font-size: 1rem;
    color: #2F3C55;
    margin-top: 1.5rem;
    font-style: italic;
    text-align: center;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
    flex-grow: 1; /* Ensure blurb fills the available space */
    border: none; /* Ensure no borders */
}

/* ===================== BUTTONS ===================== */
.buy-button {
    background-color: #2F3C55; /* Deep navy */
    color: #FAF8F4;
    border: 2px solid #F0856B;
    padding: 10px 20px;
    text-align: center;
    margin-top: 20px; /* Consistent space for buttons */
}

.buy-button:hover {
    background-color: #F0856B;
    color: #FFFFFF;
}

.button {
    display: inline-block;
    margin-top: 1.5rem; /* Increased spacing between buttons */
    padding: 0.5rem 1rem;
    background-color: #F0856B;
    color: #FFFFFF;
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    font-family: 'Lora', serif;
}

.button:hover {
    background-color: #D8705A;
    color: #FFFFFF;
}

/* ===================== ABOUT ===================== */
.about {
    padding: 2rem 1rem;
    background-color: #FAF8F4;
    color: #2F3C55;
    clear: both; /* Ensures no overlap with previous sections */
    margin-top: 50px; /* Added space between books section and About section */
}

.about h2 {
    font-family: 'DM Serif Display', serif;
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* ===================== FOOTER ===================== */
.footer-cta {
    background-color: #F0856B; /* Coral background */
    color: #FAF8F4; /* Light text for contrast */
    padding: 2rem 1rem;
    text-align: center;
    font-size: 1.5rem;
    font-family: 'Lora', serif;
    border-radius: 6px;
    font-weight: bold;
}

.footer-cta a {
    color: #FAF8F4;
    text-decoration: none;
    font-size: 1.2rem;
    margin-top: 1rem;
    display: inline-block;
    border: 2px solid #FAF8F4;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.footer-cta a:hover {
    background-color: #2F3C55;
    color: #F4E2B2;
}

footer {
    text-align: center;
    padding: 1rem;
    background-color: #2F3C55;
    color: #FAF8F4;
    font-family: 'Lora', serif;
}

/* ===================== HOVER EFFECTS ===================== */
.book img:hover {
    transform: scale(1.05); /* Slightly enlarges image on hover */
    transition: transform 0.3s ease-in-out;
}
