/* --- Global Styles & Variables --- */
:root {
    --primary-color: #001f3f; /* Deep Navy */
    --secondary-color: #333333; /* Charcoal Gray */
    --accent-color: #B8860B; /* Muted Gold */
    --light-bg: #f4f4f4;
    --very-light-bg: #fafafa;
    --text-color: #333;
    --light-text: #ffffff;
    --heading-font: 'Merriweather', serif;
    --body-font: 'Lato', sans-serif;
}

/* --- Basic Reset & Defaults --- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--body-font); line-height: 1.6; color: var(--text-color); background-color: var(--light-text); }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3 { font-family: var(--heading-font); font-weight: 700; margin-bottom: 1rem; color: var(--primary-color); line-height: 1.3; }
h1 { font-size: 2.5rem; font-weight: 900; }
h2 { font-size: 2rem; text-align: center; margin-bottom: 2.5rem; padding-top: 3rem; }
h3 { font-size: 1.5rem; color: var(--secondary-color); margin-top: 1.5rem; margin-bottom: 0.8rem; }
p { margin-bottom: 1rem; }
a { color: var(--accent-color); text-decoration: none; font-weight: bold; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: disc; margin-left: 25px; margin-bottom: 1rem; padding-left: 5px; /* Indent bullet content slightly */ }
ul li { margin-bottom: 0.5rem; /* Space between list items */ }
strong, b { /* Ensure bold text stands out */
    font-weight: 700;
    color: var(--secondary-color);
}
em { /* Standard emphasis (usually italic) - used for book titles now */
    font-style: italic;
}

/* --- Call-to-Action Button Styles --- */
.cta-button { display: inline-block; background-color: var(--accent-color); color: var(--light-text) !important; padding: 12px 28px; font-size: 1.1rem; font-weight: bold; text-align: center; border: none; border-radius: 5px; cursor: pointer; transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease; text-decoration: none !important; margin: 0.5rem 0.5rem 0.5rem 0; box-shadow: 0 2px 4px rgba(0,0,0,0.2); }
.cta-button:hover, .cta-button:focus { background-color: #a0740a; text-decoration: none !important; transform: translateY(-2px); box-shadow: 0 4px 8px rgba(0,0,0,0.3); }
.cta-button.secondary-cta { background-color: var(--secondary-color); color: var(--light-text) !important; box-shadow: 0 2px 4px rgba(0,0,0,0.15); }
.cta-button.secondary-cta:hover, .cta-button.secondary-cta:focus { background-color: #555; box-shadow: 0 4px 8px rgba(0,0,0,0.25); }
.cta-button.tertiary-cta { /* Style for final CTA button - same as primary but explicit */
    background-color: var(--accent-color); color: var(--light-text) !important; transform: scale(1.05);
}
.cta-button.tertiary-cta:hover { background-color: #a0740a; transform: scale(1.1) translateY(-2px); }

/* --- Microcopy Styles --- */
.cta-microcopy {
    font-size: 0.9rem;
    margin-top: 0.75rem;
    margin-bottom: 0;
    opacity: 0.9;
    font-style: italic;
}
.hero-section .cta-microcopy { color: rgba(255, 255, 255, 0.85); }
.final-cta-section .cta-microcopy { color: rgba(255, 255, 255, 0.85); margin-top: 1rem; }


/* --- Hero Section --- */
.hero-section {
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 60px 0;
    text-align: center;
}
.hero-content { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.hero-text h1, .hero-text p { color: var(--light-text); }
.hero-text { max-width: 680px; }
.impact-statistic {
    background-color: rgba(255, 255, 255, 0.85); /* Light background */
    color: #001f3f; /* Deep navy for strong contrast against light */
    border-left: 5px solid var(--accent-color); /* Gold border */
    padding: 14px 18px;
    font-weight: 800;
    font-size: 1.2rem;
    line-height: 1.5;
    margin: 1.8rem 0;
    border-radius: 6px;
}
.book-cover-img { max-width: 300px; border: 5px solid var(--light-text); box-shadow: 0 4px 15px rgba(0,0,0,0.3); border-radius: 4px; }

/* --- About the Book Section --- */
.about-book-section {
    padding: 40px 0 20px;
    background-color: var(--light-text);
    border-top: 1px solid #eee;
}
.about-content { max-width: 800px; margin: 0 auto; }
.intro-quote { font-style: italic; font-size: 1.2rem; color: var(--secondary-color); text-align: center; margin-bottom: 2rem; border-left: 3px solid var(--accent-color); padding-left: 15px; }
.about-book-section h3 { text-align: left; color: var(--primary-color); }
.about-book-section ul { list-style-type: '✓ '; padding-left: 5px; margin-left: 10px;}
.about-book-section ul li::marker { color: var(--accent-color); }

/* --- Look Inside Section --- */
.look-inside-section {
    padding: 30px 0;
    background-color: var(--very-light-bg);
    text-align: center;
}
.look-inside-section h3 { text-align: center; color: var(--primary-color); margin-top: 0; }

/* --- Fans Of Section --- */
.fans-of-section {
    padding: 30px 0;
    background-color: var(--light-text);
    border-top: 1px solid #eee;
}
.fans-of-section .container { max-width: 700px; }
.fans-of-section h3 { text-align: center; color: var(--primary-color); margin-top: 0; }
.fans-of-section ul { list-style: disc; margin-bottom: 0.5rem; margin-left: 25px; padding-left: 5px; }
.fans-of-section ul li {
    /* MODIFIED: Removed italic style here - now handled by <em> in HTML */
    /* font-style: italic; */
    color: #555;
    margin-bottom: 0.2rem;
}
.fans-of-section ul li::marker { color: var(--text-color); }

/* --- Purchase Section --- */
.purchase-section {
    padding: 40px 0;
    text-align: center;
    background-color: var(--light-bg);
    border-top: 1px solid #eee;
}
.purchase-section h2 { margin-bottom: 1rem; }
.formats { font-size: 1.1rem; margin-bottom: 1.5rem; color: var(--secondary-color); }

/* --- Reviews Section --- */
.reviews-section {
    padding: 40px 0;
    background-color: var(--light-text);
    border-top: 1px solid #eee;
}
.review-intro { text-align: center; max-width: 700px; margin: 0 auto 1rem; color: #555; }
.verified-note { font-size: 0.85rem; font-style: italic; color: #777; margin-bottom: 2rem; display: block; }
.reviews-grid { display: grid; grid-template-columns: 1fr; gap: 25px; margin-bottom: 3rem; }
.review-card { background-color: var(--light-text); padding: 25px; border-radius: 8px; border: 1px solid #ddd; box-shadow: 0 3px 7px rgba(0,0,0,0.1); display: flex; flex-direction: column; }
.review-card .stars { color: var(--accent-color); font-size: 1.3rem; margin-bottom: 0.75rem; }
.review-card .review-text { font-style: italic; margin-bottom: 1rem; color: #444; flex-grow: 1; }
.review-card .review-text strong { font-style: normal; color: var(--primary-color); }
.review-card .reviewer-name { font-weight: bold; text-align: right; font-size: 0.9rem; color: var(--secondary-color); margin-top: auto; }

/* Help More / Leave Review Section */
.help-more-section { background-color: var(--very-light-bg); padding: 30px; border-radius: 8px; text-align: center; margin-top: 2rem; border: 1px solid #eee; }
.help-more-section h3 { color: var(--primary-color); margin-top: 0; margin-bottom: 1rem; }
.review-links .cta-button { margin: 0.5rem; }


/* --- Author Section --- */
.author-section {
    padding: 40px 0;
    background-color: var(--light-bg);
    border-top: 1px solid #eee;
}
.author-container {
    /* MODIFIED: Simplified container setup after image removal */
    display: flex; /* Still using flex for centering/alignment */
    justify-content: center; /* Center the bio content */
    max-width: 900px; /* Keep max-width */
    margin: 0 auto;
    text-align: center; /* Center text within the bio */
}
/* Author Image rule removed */
.author-bio {
     /* Bio takes up available space, max-width controlled by container */
     /* Optional: add max-width here if needed: max-width: 700px; */
     text-align: left; /* Align text left within the centered block on larger screens if preferred */
}
.author-bio h2 {
    text-align: center; /* Keep heading centered */
     margin-bottom: 1rem;
}

/* --- Final CTA Section --- */
.final-cta-section {
    background-color: var(--secondary-color);
    color: var(--light-text); /* Default text color for section */
    padding: 60px 0;
    text-align: center;
    border-top: 1px solid #555;
}
/* VERIFIED: This rule explicitly sets p text color to white */
.final-cta-section h2,
.final-cta-section p {
    color: var(--light-text); /* Ensure text is white/light */
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
.final-cta-section h2 {
    font-size: 1.8rem;
}
/* Button styling handled by .cta-button.tertiary-cta */


/* --- Footer --- */
.site-footer { background-color: var(--primary-color); color: #ccc; padding: 25px 0; text-align: center; font-size: 0.9rem; }
.site-footer p { margin-bottom: 0.5rem; }
.footer-nav a { color: #ccc; margin: 0 10px; transition: color 0.3s ease; font-weight: normal; }
.footer-nav a:hover { color: var(--light-text); text-decoration: underline; }

/* --- Responsive Design --- */

/* Tablet Styles */
@media (min-width: 768px) {
    h1 { font-size: 3rem; }
    h2 { font-size: 2.2rem; }
    h3 { font-size: 1.6rem; }

    .hero-content { flex-direction: row; text-align: left; gap: 40px; align-items: center; }
    .hero-text { flex: 1; }
    .hero-image { flex-basis: 300px; text-align: right; }
    .book-cover-img { max-width: 100%; }

    .about-book-section h3 { text-align: left; }

    .reviews-grid { grid-template-columns: repeat(2, 1fr); }

    .author-container {
        text-align: left; /* Align text left on larger screens */
        justify-content: center;
    }
     /* Author image flex rules removed */
    .author-bio {
        flex: 0 1 700px; /* Allow bio to grow but set a max base width */
        text-align: left; /* Ensure text aligns left */
    }
    .author-bio h2 {
        text-align: left; /* Align heading left as well */
    }

    .review-links { display: flex; justify-content: center; gap: 15px; }
}

/* Desktop Styles */
@media (min-width: 1024px) {
    h1 { font-size: 3.5rem; }
    h2 { font-size: 2.5rem; }
    h3 { font-size: 1.7rem; }

    .container { padding: 0; }

    .reviews-grid { grid-template-columns: repeat(3, 1fr); }

    .hero-content { gap: 60px; }
    .hero-image { flex-basis: 350px; }

    /* Author section layout refinements if needed on desktop */
    .author-bio {
       flex-basis: 800px; /* Adjust max width if desired */
    }
}

/* === Visibility Fixes === */

/* Fix 2: Ensure bold text is visible in dark final CTA section */
.final-cta-section strong,
.final-cta-section b {
    color: var(--light-text);
}

