:root {
    --primary-color: #a61c1c;
    /* Deep Red from original */
    --secondary-color: #f8f9fa;
    /* Light Grey */
    --text-color: #333;
    --light-text: #666;
    --white: #ffffff;
    --border-color: #eaeaea;
    --header-height: 80px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Lato', sans-serif;
    color: var(--text-color);
    background-color: var(--white);
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
    margin-bottom: 0.5em;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #801313;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header */
#site-header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: auto;
    padding: 10px 0;
    display: flex;
    align-items: center;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.branding-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-photo img {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    object-position: 40% 30%;
    border: 2px solid var(--primary-color);
}

.branding h1 {
    font-size: 1.5rem;
    margin: 0;
}

.branding h1 a {
    color: var(--primary-color);
}

.branding p {
    font-size: 0.85rem;
    color: var(--light-text);
    margin: 0;
}

/* Navigation */
#main-nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

#main-nav a {
    font-weight: 700;
    color: var(--text-color);
    text-transform: uppercase;
    font-size: 0.9rem;
    padding: 5px 0;
}

#main-nav a:hover {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section Removed */

/* Content Layout (Inner Pages) */
.content-container {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    padding: 40px 0;
}

.sidebar .widget {
    background: var(--secondary-color);
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
}

.widget h3 {
    font-size: 1.2rem;
    border-bottom: 1px solid #ccc;
    padding-bottom: 10px;
}

.sidebar ul {
    list-style: none;
}

.sidebar li {
    margin-bottom: 10px;
}

/* Button link styling */
.btn-cta {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: bold;
}

.btn-cta:hover {
    background: #801313;
    color: white;
    text-decoration: none;
}

/* Book Grid on Homepage */
.book-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.book-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    padding: 20px;
    text-align: center;
    border-radius: 8px;
    transition: transform 0.2s;
}

.book-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.book-card img {
    max-height: 400px;
    width: auto;
    max-width: 100%;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Footer */
footer {
    background: #333;
    color: #fff;
    padding: 40px 0;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.footer-col h4 {
    color: #fff;
    font-family: 'Lato', sans-serif;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.footer-col ul {
    list-style: none;
}

.footer-col a {
    color: #aaa;
}

.footer-col a:hover {
    color: #fff;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .header-container {
        flex-wrap: wrap;
    }

    .menu-toggle {
        display: block;
    }

    #main-nav {
        display: none;
        width: 100%;
        margin-top: 10px;
    }

    #main-nav.open {
        display: block;
    }

    #main-nav ul {
        flex-direction: column;
        gap: 10px;
    }

    .hero-container {
        flex-direction: column;
        text-align: center;
    }

    .content-container {
        grid-template-columns: 1fr;
    }

    .sidebar {
        order: 2;
    }
}