/* General Body Styles */
body {
    font-family: 'Georgia', serif; /* A classic, romantic font */
    margin: 0;
    padding: 0;
    background-color: #f8f0e3; /* Soft, warm background */
    color: #4a3d3c; /* Dark brown for text */
    line-height: 1.6;
}

/* Header Styles */
header {
    background-color: #f1e2d2; /* Slightly darker cream for header */
    padding: 20px 0;
    text-align: center;
    border-bottom: 1px solid #d2c1b0;
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 15px;
}

.logo {
    width: 100px; /* Adjust as needed */
    height: auto;
    margin-bottom: 10px;
}

header h1 {
    font-family: 'Playfair Display', serif; /* Elegant font for the main title */
    font-size: 3em;
    color: #8c5a5a; /* A soft rose color for the title */
    margin: 0;
}

header p {
    font-style: italic;
    color: #6a5e5e;
    margin-top: 5px;
}

/* Navigation Styles */
nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    text-decoration: none;
    color: #6a5e5e;
    font-weight: bold;
    font-size: 1.1em;
    padding: 5px 10px;
    transition: color 0.3s ease, background-color 0.3s ease;
}

nav ul li a:hover,
nav ul li a:focus {
    color: #8c5a5a;
    background-color: #f8f0e3;
    border-radius: 5px;
}

/* Main Content Styles */
main {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

section {
    background-color: #fff;
    padding: 40px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

section h2 {
    font-family: 'Playfair Display', serif;
    color: #8c5a5a;
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 30px;
}

#about h3 {
    font-family: 'Playfair Display', serif;
    color: #6a5e5e;
    font-size: 1.8em;
    margin-bottom: 15px;
    text-align: left;
}

/* Hero Section */
#hero {
    background-image: url('bookstore_exterior_bg.png'); /* Image for the hero section, changed to exterior */
    background-size: cover;
    background-position: center;
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
    text-align: center;
    padding: 100px 20px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.hero-text {
    max-width: 800px;
    margin: 0 auto;
}

#hero h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5em;
    margin-bottom: 15px;
    color: #fff; /* White for better contrast on background image */
}

#hero p {
    font-size: 1.4em;
    margin-bottom: 30px;
}

.btn {
    display: inline-block;
    background-color: #8c5a5a; /* Rose button */
    color: #fff;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    border: none; /* For button elements */
    cursor: pointer; /* For button elements */
    font-size: 1em;
}

.btn:hover {
    background-color: #a36f6f; /* Slightly lighter rose on hover */
}

/* Book Grid */
.book-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}

.book-item {
    background-color: #fdfdfd;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.08);
    transition: transform 0.2s ease;
}

.book-item:hover {
    transform: translateY(-5px);
}

.book-item img {
    max-width: 100%;
    height: 300px; /* Fixed height for book covers */
    object-fit: cover; /* Ensures covers fit nicely */
    border-radius: 5px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.book-item h3 {
    font-family: 'Playfair Display', serif;
    color: #6a5e5e;
    font-size: 1.5em;
    margin-top: 0;
    margin-bottom: 10px;
}

.book-item p {
    color: #5d5050;
    font-size: 0.95em;
    margin-bottom: 15px;
}

/* Content Container for sections with images */
.content-container {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 30px;
}

.about-birdie-container {
    padding-top: 40px; /* Add space between the two parts of the about section */
}

.content-container img {
    max-width: 40%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.content-container .text-content {
    flex: 1;
}

.content-container.reverse {
    flex-direction: row-reverse;
}

/* Responsive adjustments for content containers */
@media (max-width: 768px) {
    .content-container,
    .content-container.reverse {
        flex-direction: column;
        text-align: center;
    }

    #about h3 {
        text-align: center;
    }

    .content-container img {
        max-width: 100%;
        margin-bottom: 20px;
    }
}

/* Events Section specific styles */
#events h3 {
    font-family: 'Playfair Display', serif;
    color: #6a5e5e;
    font-size: 1.8em;
    text-align: center;
    margin-bottom: 20px;
}

#events ul {
    list-style: disc;
    margin: 20px auto;
    padding-left: 40px;
    max-width: 700px;
}

#events ul li {
    margin-bottom: 10px;
    font-size: 1.1em;
    color: #5d5050;
}

/* Footer Styles */
footer {
    background-color: #f1e2d2;
    color: #6a5e5e;
    text-align: center;
    padding: 20px;
    margin-top: 30px;
    border-top: 1px solid #d2c1b0;
    font-size: 0.9em;
}

/* Placeholder for Google Fonts - will be added via script.js */
/*
@import url('https://fonts.googleapis.com/css2?family=Georgia&family=Playfair+Display:wght@400;700&display=swap');
*/