/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #3b3938;
    background-color: #f7f7f7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    line-height: 1.2;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }
}

.purchase-hover-group {
    position: relative;
    display: inline-block;
}

.purchase-hover-group .more-purchase-options {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-radius: 0.5rem;
    margin-top: 0.5rem;
    min-width: 160px;
    z-index: 1000;
    padding: 0.5rem 0;
}

.purchase-hover-group:hover .more-purchase-options {
    display: block;
}

.purchase-hover-group .more-purchase-options .purchase-btn {
    display: block;
    padding: 0.4rem 1rem;
    font-weight: 500;
    background-color: #2aabe8;
    color: white;
    border-radius: 0;
    margin: 0;
    text-align: left;
    white-space: nowrap;
    transition: background-color 0.3s ease;
}

.purchase-hover-group .more-purchase-options .purchase-btn:hover {
    background-color: rgba(42, 171, 232, 0.9);
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
}

/* Header */
.header {
    background-color: #f7f7f7;
    border-bottom: 1px solid #cdcbc8;
    padding: 0.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Header Content - Default for larger screens */
.header-content {
    display: flex;
    flex-direction: column; /* Desktop: Stack title and nav */
    align-items: center;
    gap: 0.5rem;
    position: relative; /* Essential for absolute positioning of mobile menu/hamburger */
}

.site-title {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin: 0;
}

.site-title a {
    color: #3b3938;
    text-decoration: none;
    transition: color 0.3s ease;
}

.site-title a:hover {
    color: #2aabe8;
}

/* Navigation - Default desktop styles (always visible, flex row) */
#mainNav {
    display: flex;
    flex-direction: row;
    gap: 2rem; /* Desktop gap */
    border-top: none;
    padding: 0;
}

/* Styles for navigation links on desktop */
.nav-link {
    font-size: 1.125rem;
    font-weight: 400;
    color: #3b3938;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #2aabe8;
}

/* Hamburger button - initially hidden on desktop */
.hamburger {
    display: none; /* Hidden by default on large screens */
    background: none;
    border: none;
    cursor: pointer;
    width: 25px;
    height: 10px;
    position: relative; /* Keep this for internal span positioning */
    z-index: 1100; /* Ensure it's above other content when visible */
}

/* Hamburger bar styles */
.hamburger span,
.hamburger span::before,
.hamburger span::after {
    display: block;
    background-color: #3b3938;
    height: 3px;
    width: 100%;
    border-radius: 3px;
    position: absolute;
    transition: all 0.3s ease;
}

.hamburger span {
    top: 50%;
    transform: translateY(-50%);
}

.hamburger span::before {
    content: "";
    top: -10px;
}

.hamburger span::after {
    content: "";
    top: 10px;
}

/* Hamburger active state animation */
.hamburger.active span {
    background-color: transparent; /* Hides the middle bar */
}

.hamburger.active span::before {
    top: 0;
    transform: rotate(45deg); /* Rotates the top bar */
}

.hamburger.active span::after {
    top: 0;
    transform: rotate(-45deg); /* Rotates the bottom bar */
}


/* RESPONSIVE MEDIA QUERIES */

/* Desktop / Large Screen Specific Styles */
@media (min-width: 1024px) {
    .site-title {
        font-size: 3rem;
    }
}


/* Mobile Specific Styles (Screen size up to 1023px) */
@media (max-width: 1023px) {
    .header {
        padding: 1rem 0; /* Adjust header padding for mobile */
    }

    .header-content {
        flex-direction: row; /* Mobile: Place title and hamburger side-by-side */
        justify-content: space-between; /* Space out title and hamburger */
        align-items: center;
        gap: 0; /* No gap needed for side-by-side items */
    }

    .site-title {
        font-size: 2rem; /* Smaller title on mobile */
    }

    /* Show the hamburger icon and position it */
    .hamburger {
        display: block; /* Make hamburger visible on mobile */
        position: absolute; /* Take it out of flow to prevent pushing content */
        right: 1rem; /* Position from right edge of container */
        top: 50%; /* Center vertically */
        transform: translateY(-50%); /* Adjust for perfect vertical centering */
    }

    /* Hide the nav by default on mobile */
    #mainNav {
        display: none; /* This hides the menu initially on mobile */
        flex-direction: column;
        gap: 1rem; /* Mobile link spacing - REDUCED */
        background-color: #f7f7f7; /* Background color */
        padding: 1rem 2rem; /* Mobile menu padding */
        position: absolute; /* Overlay the page */
        top: 100%; /* Position right below the header's content area */
        right: 0; /* Keeps it aligned to the right */
        border: 1px solid rgba(205, 203, 200, 0.7); /* Added a subtle border */
        border-radius: 0.75rem; /* Added rounded corners */
        z-index: 999; /* Lower than hamburger, higher than page content */
        box-shadow: 0 8px 20px rgba(0,0,0,0.15); /* Enhanced shadow */
        width: 40%; /* The desired width */
        box-sizing: border-box; /* Include padding in width calculation */
        transition: all 0.3s ease-in-out; /* Added transition for smoother appearance */
    }

    /* When the mobile menu is active (hamburger clicked), show it */
    #mainNav.mobile-open {
        display: flex; /* This makes the menu visible */
    }

    /* Style for mobile nav links */
    #mainNav .nav-link {
        padding: 0.5rem 0; /* Vertical padding for links - REDUCED */
        font-size: 1.25rem;
        text-align: center; /* Center links in mobile menu if desired */
    }
}

/* Main Content */
main {
    flex: 1;
}

/* Sections */
.hero-section {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.welcome-section {
    padding-top: 1rem;
    padding-bottom: 3rem; /* Increased padding for more space below welcome on mobile */
}


@media (min-width: 1024px) {
    .hero-section {
        padding-top: 5rem;
        padding-bottom: 5rem;
    }

    .welcome-section {
        padding-top: 5rem;
        padding-bottom: 10rem; /* Significantly increased padding for more space below welcome on desktop */
    }
}

.quick-links-section {
    padding: 4rem 0;
    background-color: rgba(232, 228, 219, 0.3);
}

/* Grid Layouts */

/* Hero Grid Specific Styles (Homepage) */
.hero-grid {
    display: grid;
    gap: 3rem;
    align-items: center;
    max-width: 1152px;
    margin: 0 auto;
    /* Mobile-first: book cover then content */
    grid-template-columns: 1fr;
    grid-template-areas:
        "photo"
        "content";
}

/* Welcome Grid Specific Styles (Homepage) */
.welcome-grid {
    display: grid;
    gap: 1rem;
    align-items: center;
    max-width: 1152px;
    margin: 0 auto;

    /* MOBILE-FIRST: Welcome, then Image, then Learn More Link */
    grid-template-columns: 1fr;
    grid-template-areas:
        "Welcome-title" /* First content block */
        "author-photo"  /* Author image */
        "learn-more";   /* The "Learn more about me" link */
}

@media (min-width: 1024px) {
    /* Desktop layout for .hero-grid */
    .hero-grid {
        grid-template-columns: 1fr 1fr; /* Two columns for desktop */
        gap: 2rem;
        grid-template-areas: "photo content"; /* Desktop: Book cover on left, Content on right */
    }

    /* Desktop layout for .welcome-grid */
    .welcome-grid {
        grid-template-columns: 1fr 1fr; /* Desktop: two columns */
        gap: 4rem; /* More generous gap for desktop */

        /* DESKTOP: Welcome (with link) | Photo */
        grid-template-areas:
            "Welcome-title author-photo";
    }
}

/* Assign the grid-area names to your specific HTML elements for .welcome-grid */

.welcome-content.welcome-title-block {
    grid-area: Welcome-title;
}

.author-photo-container {
    grid-area: author-photo;
    display: flex;
    justify-content: center;
}

.learn-more-block {
    grid-area: learn-more; /* Separate grid area for mobile */
    text-align: center; /* Center the link on mobile */
    margin-top: 1rem; /* Add some space above the link on mobile */
}

@media (min-width: 1024px) {
    .learn-more-block {
        grid-area: Welcome-title; /* Reassign to Welcome-title area on desktop */
        margin-top: 0; /* Remove mobile margin */
        text-align: left; /* Align left on desktop */
        align-self: end; /* Pushes it to the bottom of the grid cell within Welcome-title area */
    }
}

/* Generic .welcome-content styles (applies to welcome-title-block) */
.welcome-content {
    text-align: center;
}

@media (min-width: 1024px) {
    .welcome-content {
        text-align: left;
    }
}


/* Book Cover Styles (General, used on homepage and books page) */
.book-cover-container {
    display: flex;
    justify-content: center;
    max-width: 100%;
    margin: 0 auto;
}

.book-cover-placeholder { /* This is specific to the homepage hero section */
    width: 300px;
    height: 480px; /* Specific height for book cover */
    background-color: #e8e4db;
    border-radius: 0.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #cdcbc8;
}

.book-cover-container img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}


/* Author Photo Styles */
.author-photo-placeholder { /* This class is currently not used in your HTML, consider removing if not needed */
    width: 320px;
    height: 320px; /* Specific height for author photo (square) */
    border-radius: 0.5rem;
    background-color: #e8e4db;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #cdcbc8;
}

.author-photo img {
    max-width: 60%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Placeholder Content (shared styles for text/icons inside placeholders) */
.placeholder-content {
    text-align: center;
    padding: 2rem;
}

.placeholder-icon {
    width: 4rem;
    height: 4rem;
    background-color: rgba(42, 171, 232, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: #2aabe8;
    font-size: 2rem;
}

.placeholder-text {
    font-size: 1.125rem;
    font-weight: 500;
    color: #968869;
    margin-bottom: 0.5rem;
}

.placeholder-subtext {
    font-size: 0.875rem;
    color: #968869;
}

/* Book Details (General, used on homepage hero) */
.book-details {
    grid-area: content; /* Assigned from .hero-grid's grid-template-areas */
    text-align: center;
}

@media (min-width: 1024px) {
    .book-details {
        text-align: left;
    }
}

.coming-soon-badge {
    display: inline-block;
    background-color: rgba(42, 171, 232, 0.1);
    color: #2aabe8;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.book-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #3b3938;
    margin-bottom: 1rem;
    line-height: 1.1;
}

@media (min-width: 1024px) {
    .book-title {
        font-size: 3rem;
    }
}

@media (min-width: 1280px) {
    .book-title {
        font-size: 3.75rem;
    }
}

.book-subtitle {
    font-size: 1.25rem;
    color: #968869;
    margin-bottom: 1.5rem;
}

.book-description {
    font-size: 1.125rem;
    color: #3b3938;
    line-height: 1.7;
    margin-bottom: 2rem;
}

/* Buttons */
.button-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

@media (min-width: 640px) {
    .button-group {
        flex-direction: row;
    }
}

@media (min-width: 1024px) {
    .button-group {
        justify-content: flex-start;
    }
}

.btn {
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background-color: #2aabe8;
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background-color: rgba(42, 171, 232, 0.9);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-secondary {
    border: 1px solid #cdcbc8;
    color: #3b3938;
    background-color: transparent;
}

.btn-secondary:hover {
    background-color: #e8e4db;
}

/* Quote Box */
.quote-box {
    padding: 1.5rem;
    background-color: rgba(232, 228, 219, 0.5);
    border-radius: 0.5rem;
}

.quote {
    font-size: 1.125rem;
    font-style: italic;
    color: #3b3938;
    margin-bottom: 0.5rem;
}

.quote-author {
    font-weight: 500;
    color: #968869;
}

/* Welcome Section */
.welcome-title {
    font-size: 2rem;
    font-weight: 700;
    color: #2aabe8;
    margin-bottom: 1.5rem;
}

@media (min-width: 1024px) {
    .welcome-title {
        font-size: 2.25rem;
    }
}

.welcome-text {
    margin-bottom: 2rem;
}

.welcome-text p {
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: #3b3938;
}

.welcome-subtext {
    color: #968869 !important;
}

.learn-more-link {
    color: #2aabe8;
    font-weight: 500;
    font-size: 1.125rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.learn-more-link:hover {
    color: rgba(42, 171, 232, 0.8);
}

/* Quick Links */
.quick-links-grid {
    display: grid;
    gap: 2rem;
    max-width: 1024px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .quick-links-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.quick-link-card {
    background-color: #f7f7f7;
    border: 1px solid #cdcbc8;
    border-radius: 0.5rem;
    padding: 2rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
}

.quick-link-card:hover {
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    border-color: rgba(42, 171, 232, 0.5);
}

.quick-link-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #3b3938;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.quick-link-card:hover h3 {
    color: #2aabe8;
}

.quick-link-card p {
    color: #968869;
    margin-bottom: 1rem;
}

.link-arrow {
    color: #2aabe8;
    font-weight: 500;
}

/* Footer */
.footer {
    background-color: #e8e4db;
    padding: 2rem 0;
    text-align: center;
    margin-top: auto;
}

.footer p {
    color: #968869;
}

/* Responsive Design for Placeholders */
@media (max-width: 768px) {
    .book-title {
        font-size: 2rem;
    }

    /* Adjustments for book cover on smaller screens */
    .book-cover-placeholder {
        width: 280px;
        height: 420px;
    }

    /* Adjustments for author photo on smaller screens */
    .author-photo-placeholder {
        width: 280px;
        height: 280px; /* Kept square for mobile, adjust to 'auto' if image scaling is needed */
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }

/* NEW GRID-SPECIFIC STYLES FOR THE ESSAYS PAGE */
.blog-page-header {
    padding: 3rem 0;
    background: linear-gradient(to bottom, #f7f7f7, rgba(232, 228, 219, 0.2));
    text-align: center;
}

.posts-section {
    padding: 2rem 0;
    background-color: #f7f7f7; /* Adding a subtle background for the grid section */
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsive grid with min 300px wide columns */
    gap: 2rem; /* Space between grid items */
    max-width: 1200px; /* Adjust as needed */
    margin: 0 auto; /* Center the grid */
    padding: 0 1rem; /* Add some padding on smaller screens */
}

.grid-item {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 0.5rem;
    overflow: hidden; /* Ensures image corners are rounded */
    display: flex;
    flex-direction: column; /* Stack image, then text */
    box-shadow: 0 2px 5px rgba(0,0,0,0.05); /* Subtle shadow for cards */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.grid-item img {
    width: 100%;
    height: 200px; /* Fixed height for consistent image size */
    object-fit: cover; /* Covers the area, cropping as needed */
    display: block;
}

.grid-item-content {
    padding: 1.5rem;
    flex-grow: 1; /* Allows content to take up available space */
    display: flex;
    flex-direction: column;
}

.grid-item .publication-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #2aabe8; /* Highlighted color for publication */
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.grid-item .post-title {
    font-size: 1.35rem; /* Slightly smaller title for grid items */
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.grid-item .post-title a {
    color: #3b3938;
    text-decoration: none;
    transition: color 0.3s ease;
}

.grid-item .post-title a:hover {
    color: #2aabe8;
}

.grid-item .post-excerpt {
    color: #6a6a6a; /* Darker grey for readability */
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex-grow: 1; /* Pushes the read-more to the bottom */
}

.read-more {
    color: #2aabe8;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    align-self: flex-start; /* Aligns to the start of the flex container */
}

.read-more:hover {
    color: rgba(42, 171, 232, 0.8);
}

/* Styling for the main AddToAny container to center it */
.a2a_kit {
    text-align: center; /* Centers inline-block elements (like the buttons) within the container */
    margin-left: auto; /* Centers the block container itself */
    margin-right: auto; /* Centers the block container itself */
    max-width: fit-content; /* Makes the container only as wide as its content, allowing auto margins to work */
    margin-top: 2rem; /* Adds space above the buttons */
    margin-bottom: 2rem; /* Adds space below the buttons */
}

/* Custom AddToAny button styling for individual buttons */
.a2a_kit a {
    margin: 0 10px;
    border-radius: 8px;
}

/* Target the link inside the post title on the blog listing page */
.post-item .post-title a {
    color: inherit; /* Inherit the color from its parent h3, so it's not blue */
    text-decoration: none; /* Remove the underline */
    cursor: default; /* Change the cursor from a pointer to the default text cursor */
    pointer-events: none; /* This is the key property to disable clicks/interactions */
}

/* Specific styles for .post-date, .reading-time, and .post-credit within the grid-item */
.post-date,
.reading-time {
    color: #968869;
    font-size: 0.875rem;
}

.post-credit {
    font-size: 0.875rem;
    color: #968869;
    margin-bottom: 0.5rem;
}


---
/* BOOKS PAGE SPECIFIC STYLES - START */
/* These rules target elements within .book-item to override general styles */

.books-page-header {
    padding: 1rem 0;
    background: linear-gradient(to bottom, #f7f7f7, rgba(232, 228, 219, 0.2));
    text-align: center;
    color: #2aabe8;
}

/* Applying font-size and margin to the H1 within the header */
.books-page-header h1 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.books-section {
    padding: 0.5rem 0;
}

.book-item {
    display: grid;
    /* Increased gap from 1rem to 2rem for mobile view (vertical gap) */
    gap: 2rem;
    align-items: flex-start;
    margin-bottom: 4rem; /* Consistent spacing between book items */
    padding-bottom: 4rem; /* Consistent spacing between book items */
    border-bottom: 1px solid #cdcbc8;
    /* Default for mobile: stack cover then info */
    grid-template-columns: 1fr;
    /* Explicitly define areas for mobile to ensure correct stacking */
    grid-template-areas:
        "book-cover"
        "book-info";
}

.book-item:last-child {
    border-bottom: none;
}

/* Override the general .book-cover-container styles from styles.css FOR THIS CONTEXT */
.book-item .book-cover-container {
    grid-area: book-cover; /* Assign to the specific area for book items */
    display: flex; /* Keep it flex to center the image */
    justify-content: center; /* Center the image */
    max-width: 320px; /* Constrain width on mobile for consistent size */
    margin: 0 auto; /* Center on mobile, no extra margin-bottom here due to grid gap */
}

/* No changes needed for .book-item .book-cover-container img, as its styles are already general */


.book-item .book-info {
    grid-area: book-info; /* Assign to the specific area for book info */
    text-align: center; /* Center text on mobile by default */
}

.book-item .book-info h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.book-item .book-subtitle {
    font-size: 1.25rem;
    color: #968869;
    margin-bottom: 1.5rem;
}

.book-item .book-status {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.book-item .status-published {
    background-color: rgba(168, 160, 140, 0.1);
    color: #a8a08c;
}

.book-item .status-upcoming {
    background-color: rgba(42, 171, 232, 0.1);
    color: #2aabe8;
}

.book-item .purchase-links {
    margin-top: 2rem;
}

.book-item .purchase-links h3 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.book-item .purchase-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center; /* Center buttons on mobile */
}

.book-item .purchase-btn {
    background-color: #2aabe8;
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.book-item .purchase-btn:hover {
    background-color: rgba(42, 171, 232, 0.9);
}

.book-item .purchase-btn:disabled {
    background-color: #e8e4db;
    color: #968869;
    cursor: not-allowed;
}

.cta-section {
    padding: 4rem 0;
    background-color: rgba(232, 228, 219, 0.3);
    text-align: center;
}

/* Ensure specific styles for book-item descriptions and quotes */
.book-item .book-info p {
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: #3b3938;
}

.book-item .book-info .quote-box {
    padding: 1.5rem;
    background-color: rgba(232, 228, 219, 0.5);
    border-radius: 0.5rem;
    margin-bottom: 2rem; /* Add margin below quote box */
}

.book-item .book-info .quote {
    font-size: 1.125rem;
    font-style: italic;
    color: #3b3938;
    margin-bottom: 0.5rem;
}

.book-item .book-info .quote-author {
    font-weight: 500;
    color: #968869;
}


@media (min-width: 1024px) {
    .book-item {
        /* Increased image size by making its column wider */
        grid-template-columns: 1.2fr 1fr;
        /* Increased horizontal gap between image and text on desktop */
        gap: 4rem; /* Adjusted from 1rem for more spacing */
        grid-template-areas: "book-cover book-info";
    }

    /* Reverse order for even book items on desktop */
    .book-item:nth-child(even) {
        grid-template-areas: "book-info book-cover";
    }

    /* Allow book cover to scale with its grid column */
    .book-item .book-cover-container {
        max-width: none; /* Remove mobile max-width constraint */
        margin: 0; /* Remove mobile auto margins */
    }

    .book-item .book-info {
        text-align: left; /* Align text left on desktop */
    }

    .book-item .purchase-buttons {
        justify-content: flex-start; /* Align buttons left on desktop */
    }
}

/* BOOKS PAGE SPECIFIC STYLES - END */
