* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #a3193f;
    --secondary-color: #1a3a52;
    --accent-color: #d4a574;
    --dark-bg: #1a1a1a;
    --light-bg: #f5f5f5;
    --text-dark: #333;
    --text-light: #666;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: white;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 0.2rem;
}

.tagline {
    font-size: 0.85rem;
    font-style: italic;
    color: var(--accent-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--accent-color);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 5px 0;
    transition: 0.3s;
}

/* Hero Section - Home Page with Image Beside Text */
.hero-section {
    background: white;
    padding: 80px 20px;
}

.hero-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: var(--primary-color);
}

.hero-content p {
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: var(--text-light);
}

.hero-description {
    font-size: 1rem !important;
    color: var(--text-dark) !important;
    margin-bottom: 2rem !important;
}

.hero-image-box {
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.hero-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-weight: 600;
}

.btn-primary {
    background: var(--accent-color);
    color: var(--primary-color);
}

.btn-primary:hover {
    background: #e6b887;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
    padding: 10px 20px;
    font-size: 0.95rem;
}

.btn-secondary:hover {
    background: var(--primary-color);
}

.btn-secondary-small {
    background: var(--primary-color);
    color: white;
    padding: 8px 16px;
    font-size: 0.85rem;
    margin-top: 1rem;
}

.btn-secondary-small:hover {
    background: var(--secondary-color);
}

/* Featured Section */
.featured {
    padding: 60px 20px;
    background: white;
}

.featured h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.book-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.book-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.book-cover {
    height: 200px;
    background-color: #ddd;
}

.book-card h3 {
    padding: 1rem 1rem 0.5rem;
    font-size: 1.1rem;
    color: var(--primary-color);
}

.book-card .author {
    padding: 0 1rem;
    color: var(--text-light);
    font-style: italic;
    font-size: 0.95rem;
}

.book-card .price {
    padding: 0 1rem;
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 1.1rem;
    margin: 0.5rem 0;
}

.book-card button {
    width: calc(100% - 2rem);
    margin: 1rem;
}

/* Info Section */
.info {
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--secondary-color) 100%);
    padding: 60px 20px;
    color: white;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.info-card {
    background: rgba(255,255,255,0.1);
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
}

.info-card h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.info-card p {
    margin-bottom: 0.8rem;
    line-height: 1.8;
}

.info-card ul {
    list-style: none;
    padding-left: 0;
}

.info-card li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.info-card li:before {
    content: "▸";
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

/* CTA Section */
.cta {
    background: var(--light-bg);
    padding: 60px 20px;
    text-align: center;
}

.cta h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.cta p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--text-light);
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* About Page Styles */
.about-content {
    padding: 60px 20px;
}

.about-section {
    margin-bottom: 60px;
}

.about-section h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.about-section p {
    font-size: 1.05rem;
    margin-bottom: 1rem;
    line-height: 1.8;
    color: var(--text-light);
}

/* About Section with Image */
.about-section-with-image {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 60px;
    padding: 40px 0;
}

.about-image-box {
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.about-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.image-caption {
    text-align: center;
    margin-top: 1rem;
    font-style: italic;
    color: var(--text-light);
    font-size: 0.95rem;
}

.about-text-box h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.about-text-box p {
    margin-bottom: 1rem;
}

/* Benefits Grid */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.benefit-card {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 8px;
    border-top: 4px solid var(--primary-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.benefit-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.benefit-card p {
    color: var(--text-light);
}

/* Info Boxes */
.info-boxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.info-box {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.info-box h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.info-box p {
    color: var(--text-light);
    line-height: 1.8;
}

/* Events Page Styles */
.events-section {
    padding: 60px 20px;
    background: white;
}

.events-intro {
    margin-bottom: 4rem;
    text-align: center;
}

.events-intro h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.intro-text {
    font-size: 1.05rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.event-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: grid;
    grid-template-columns: 120px 1fr;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.event-date {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 150px;
}

.event-date .month {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    opacity: 0.9;
}

.event-date .day {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

.event-info {
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.event-info h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.event-time {
    font-size: 0.95rem;
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.event-description {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex-grow: 1;
}

/* Partnerships Section */
.partnerships {
    padding: 60px 20px;
    background: var(--light-bg);
}

.partnerships h2 {
    font-size: 2rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 3rem;
}

.partnership-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border-left: 4px solid var(--accent-color);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.partnership-card:hover {
    transform: translateX(5px);
}

.partnership-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.partnership-card h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.partnership-card p {
    color: var(--text-light);
    line-height: 1.8;
}

/* Community Page Styles */
.community-intro-section {
    padding: 60px 20px;
    background: white;
}

.community-intro-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.community-image-box {
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    order: 2;
}

.community-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.community-text-box {
    order: 1;
}

.community-text-box h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.community-text-box p {
    font-size: 1.05rem;
    margin-bottom: 1rem;
    line-height: 1.8;
    color: var(--text-light);
}

.community-programs {
    padding: 60px 20px;
    background: white;
}

.community-programs h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.program-card {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border-left: 4px solid var(--primary-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.program-card:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.program-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.program-card p {
    color: var(--text-light);
    line-height: 1.8;
}

/* Why Shop Local */
.why-local {
    background: white;
    padding: 60px 20px;
}

.why-local h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.reasons-list {
    list-style: none;
    padding: 0;
    max-width: 900px;
    margin: 0 auto;
}

.reasons-list li {
    padding: 1.25rem;
    margin-bottom: 1rem;
    background: var(--light-bg);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    line-height: 1.8;
    font-size: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.reasons-list li:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Connect Section */
.connect-section {
    padding: 60px 20px;
    background: var(--light-bg);
}

.connect-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.connect-section > .container > p {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-light);
    font-size: 1.05rem;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.social-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.social-card:hover {
    transform: translateY(-5px);
}

.social-card h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.social-card p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.email-signup {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 3rem;
    border-radius: 8px;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.email-signup h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.email-signup p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

/* Contact Page Styles */
.contact-content {
    padding: 60px 20px;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info h2 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.info-block {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #eee;
}

.info-block:last-child {
    border-bottom: none;
}

.info-block h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.info-block p {
    color: var(--text-light);
    line-height: 1.8;
}

.info-block a {
    color: var(--primary-color);
    text-decoration: none;
}

.info-block a:hover {
    text-decoration: underline;
}

/* Contact Form */
.contact-form h2 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(163, 25, 63, 0.3);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.form-note {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 1rem;
    font-style: italic;
}

/* Catalog Page */
.filters {
    padding: 30px 20px;
    background: var(--light-bg);
    border-bottom: 1px solid #ddd;
}

.filter-group {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.filter-group label {
    font-weight: 600;
    color: var(--primary-color);
}

.filter-group select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.catalog {
    padding: 60px 20px;
    background: white;
}

/* Footer */
.footer {
    background: var(--dark-bg);
    color: #ccc;
    padding: 40px 20px 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: white;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--accent-color);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 1rem;
    text-align: center;
    color: #999;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--primary-color);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        gap: 0;
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hero-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-content h2 {
        font-size: 1.8rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .featured h2,
    .cta h2,
    .page-header h1,
    .events-intro h2 {
        font-size: 1.5rem;
    }

    .books-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }

    .about-section-with-image {
        grid-template-columns: 1fr;
    }

    .community-intro-wrapper {
        grid-template-columns: 1fr;
    }

    .community-image-box {
        order: 1;
    }

    .community-text-box {
        order: 2;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .event-card {
        grid-template-columns: 1fr;
    }

    .event-date {
        min-height: auto;
        padding: 1.5rem;
        flex-direction: row;
        gap: 1rem;
    }

    .event-date .day {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.4rem;
    }

    .hero-wrapper {
        gap: 1rem;
    }

    .hero-content h2 {
        font-size: 1.5rem;
    }

    .hero-content p {
        font-size: 0.9rem;
    }

    .books-grid {
        grid-template-columns: 1fr;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .page-header h1 {
        font-size: 1.8rem;
    }

    .about-section h2,
    .events-intro h2 {
        font-size: 1.5rem;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .contact-wrapper {
        gap: 1rem;
    }

    .event-card {
        grid-template-columns: 1fr;
    }

    .event-date {
        padding: 1rem;
    }

    .social-grid {
        grid-template-columns: 1fr;
    }

    .email-signup {
        padding: 2rem 1.5rem;
    }
}