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

body {
    font-family: Georgia, 'Times New Roman', serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #2c5530;
    font-weight: bold;
    font-size: 1.2rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 4px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: #333;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    min-height: 500px;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #2c5530;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #666;
    line-height: 1.6;
}

.hero-image img {
    width: 100%;
    height: auto;
}

/* Buttons */
.btn-primary {
    background: #2c5530;
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    display: inline-block;
    transition: background 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary:hover {
    background: #1e3a21;
}

.btn-secondary {
    background: transparent;
    color: #2c5530;
    padding: 12px 24px;
    text-decoration: none;
    border: 2px solid #2c5530;
    border-radius: 5px;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.btn-secondary:hover {
    background: #2c5530;
    color: white;
}

/* Featured Books */
.featured-books {
    padding: 80px 0;
    background: #f8f9fa;
}

.featured-books h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
    color: #2c5530;
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.book-card {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    color: inherit;
}

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

.book-image {
    text-align: center;
    margin-bottom: 20px;
}

.book-image img {
    width: 120px;
    height: 160px;
    object-fit: cover;
    border-radius: 5px;
}

.book-card h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: #2c5530;
}

.book-card .author {
    color: #666;
    margin-bottom: 10px;
    font-style: italic;
}

.book-card .category {
    background: #e8f5e8;
    color: #2c5530;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    display: inline-block;
    margin-bottom: 15px;
}

.book-card p {
    color: #666;
    line-height: 1.6;
}

/* Categories Preview */
.categories-preview {
    padding: 80px 0;
}

.categories-preview h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
    color: #2c5530;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.category-card {
    background: white;
    border: 2px solid #e8f5e8;
    border-radius: 10px;
    padding: 30px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
    text-align: center;
}

.category-card:hover {
    border-color: #2c5530;
    transform: translateY(-3px);
}

.category-card h3 {
    color: #2c5530;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.category-card p {
    color: #666;
    line-height: 1.5;
}

/* Book Directory */
.book-directory {
    padding: 40px 0;
}

.directory-header {
    margin-bottom: 40px;
}

.directory-header h1 {
    color: #2c5530;
    margin-bottom: 20px;
    font-size: 2.5rem;
}

.search-filter-bar {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 30px;
}

.search-box {
    flex: 1;
    min-width: 250px;
}

.search-box input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.search-box input:focus {
    outline: none;
    border-color: #2c5530;
}

.filter-select select {
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    background: white;
    cursor: pointer;
}

.filter-select select:focus {
    outline: none;
    border-color: #2c5530;
}

/* Book Detail */
.book-detail {
    padding: 40px 0;
}

.book-detail-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 50px;
    margin-bottom: 40px;
}

.book-detail-image {
    text-align: center;
}

.book-detail-image img {
    width: 250px;
    height: 350px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.book-detail-info h1 {
    color: #2c5530;
    margin-bottom: 10px;
    font-size: 2.2rem;
}

.book-detail-info .author {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 15px;
    font-style: italic;
}

.book-detail-info .category {
    background: #e8f5e8;
    color: #2c5530;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-block;
    margin-bottom: 20px;
}

.book-detail-info .description {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 30px;
    color: #555;
}

.external-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.disclaimer-note {
    background: #f8f9fa;
    border-left: 4px solid #2c5530;
    padding: 15px 20px;
    margin: 30px 0;
    font-style: italic;
    color: #666;
}

.book-sections {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.section h3 {
    color: #2c5530;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.section ul {
    list-style: none;
    padding-left: 0;
}

.section li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.section li:before {
    content: "•";
    color: #2c5530;
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #2c5530;
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

/* Footer */
.footer {
    background: #2c5530;
    color: white;
    padding: 50px 0 20px;
}

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

.footer-section h3,
.footer-section h4 {
    margin-bottom: 15px;
    color: white;
}

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

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #4a7c59;
    padding-top: 20px;
    text-align: center;
    color: #ccc;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #2c5530;
    color: white;
    padding: 20px;
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner.hidden {
    display: none;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.cookie-content p {
    margin: 0;
    flex: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: white;
        flex-direction: column;
        justify-content: start;
        align-items: center;
        padding-top: 50px;
        transition: left 0.3s;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 40px 20px;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .books-grid {
        grid-template-columns: 1fr;
    }

    .book-detail-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .book-detail-image {
        order: -1;
    }

    .book-sections {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .search-filter-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .search-box {
        min-width: auto;
    }

    .external-links {
        justify-content: center;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .categories-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }

    .featured-books h2,
    .categories-preview h2 {
        font-size: 2rem;
    }

    .book-card {
        padding: 20px;
    }

    .category-card {
        padding: 20px;
    }

    .container {
        padding: 0 15px;
    }

    .nav-container {
        padding: 0 15px;
    }
}

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

.mb-20 {
    margin-bottom: 20px;
}

.mb-30 {
    margin-bottom: 30px;
}

.hidden {
    display: none;
}

.page-header {
    background: #f8f9fa;
    padding: 40px 0;
    text-align: center;
}

.page-header h1 {
    color: #2c5530;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.page-header p {
    color: #666;
    font-size: 1.1rem;
}

.content-section {
    padding: 50px 0;
}

.content-section h2 {
    color: #2c5530;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.content-section h3 {
    color: #2c5530;
    margin-bottom: 15px;
    margin-top: 30px;
    font-size: 1.4rem;
}

.content-section p {
    margin-bottom: 15px;
    line-height: 1.7;
    color: #555;
}

.content-section ul {
    margin-bottom: 20px;
    padding-left: 30px;
}

.content-section li {
    margin-bottom: 8px;
    color: #555;
}