* {
    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;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #333;
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

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

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

.cookie-banner a {
    color: #4a90e2;
    text-decoration: underline;
}

.cookie-banner button {
    background: #4a90e2;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 20px;
}

.cookie-banner button:hover {
    background: #357abd;
}

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

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

.nav-brand a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
    font-weight: bold;
    font-size: 1.2rem;
}

.logo {
    width: 40px;
    height: 40px;
    margin-right: 10px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

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

.nav-menu a:hover {
    color: #4a90e2;
}

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

/* Hero Section */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    padding: 4rem 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #333;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #666;
}

.cta-button {
    display: inline-block;
    background: #4a90e2;
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.cta-button:hover {
    background: #357abd;
}

.secondary-button {
    display: inline-block;
    background: transparent;
    color: #4a90e2;
    padding: 12px 24px;
    text-decoration: none;
    border: 2px solid #4a90e2;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.secondary-button:hover {
    background: #4a90e2;
    color: white;
}

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

/* Books Grid */
.featured-books, .books-directory {
    padding: 4rem 0;
}

.featured-books h2, .books-directory h1 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
}

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

.book-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.book-card img {
    width: 120px;
    height: 160px;
    object-fit: cover;
    margin-bottom: 1rem;
    border-radius: 4px;
}

.book-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #333;
}

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

.book-card .category {
    background: #4a90e2;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    display: inline-block;
    margin-bottom: 1rem;
}

.book-card p {
    color: #666;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.book-card a {
    color: #4a90e2;
    text-decoration: none;
    font-weight: 600;
}

.book-card a:hover {
    text-decoration: underline;
}

/* Categories */
.categories-preview {
    background: #f8f9fa;
    padding: 4rem 0;
}

.categories-preview h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
}

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

.category-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.category-card:hover {
    transform: translateY(-3px);
}

.category-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.category-card p {
    color: #666;
    margin-bottom: 1.5rem;
}

.category-card a {
    color: #4a90e2;
    text-decoration: none;
    font-weight: 600;
}

.category-card a:hover {
    text-decoration: underline;
}

/* Search and Filters */
.search-filters {
    background: #f8f9fa;
    padding: 2rem 0;
    margin-bottom: 2rem;
}

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

.search-box {
    width: 100%;
    max-width: 400px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.filter-btn {
    padding: 8px 16px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: #4a90e2;
    color: white;
    border-color: #4a90e2;
}

/* Book Details */
.book-detail {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 20px;
}

.book-header {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.book-cover img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.book-info h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: #333;
}

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

.book-info .category {
    background: #4a90e2;
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.9rem;
    display: inline-block;
    margin-bottom: 1rem;
}

.book-info .year {
    color: #666;
    margin-bottom: 2rem;
}

.external-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.external-links a {
    display: inline-block;
    padding: 10px 20px;
    background: #4a90e2;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.external-links a:hover {
    background: #357abd;
}

.book-content {
    display: grid;
    gap: 3rem;
}

.book-section {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
}

.book-section h2 {
    margin-bottom: 1rem;
    color: #333;
}

.book-section p,
.book-section li {
    color: #666;
    line-height: 1.7;
}

.book-section ul {
    padding-left: 1.5rem;
}

.book-section li {
    margin-bottom: 0.5rem;
}

.disclaimer-note {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    padding: 1rem;
    margin: 2rem 0;
    color: #856404;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

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

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

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

.form-submit {
    background: #4a90e2;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.form-submit:hover {
    background: #357abd;
}

/* Content Pages */
.content-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 20px;
}

.content-page h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #333;
}

.content-page h2 {
    font-size: 1.8rem;
    margin: 2rem 0 1rem 0;
    color: #333;
}

.content-page p {
    margin-bottom: 1.5rem;
    color: #666;
    line-height: 1.7;
}

.content-page ul {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.content-page li {
    margin-bottom: 0.5rem;
    color: #666;
    line-height: 1.7;
}

/* Contact Info */
.contact-info {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 3rem;
}

.contact-info h2 {
    margin-bottom: 1.5rem;
    color: #333;
}

.contact-info p {
    margin-bottom: 1rem;
    color: #666;
}

.contact-info a {
    color: #4a90e2;
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    background: #333;
    color: white;
    padding: 3rem 0 1rem 0;
    margin-top: 4rem;
}

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

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: white;
}

.footer-section p {
    color: #ccc;
    line-height: 1.6;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

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

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

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

.text-center {
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-toggle {
        display: block;
    }

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

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

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

    .book-header {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .filter-buttons {
        justify-content: center;
    }

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

    .cookie-banner {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .cookie-banner button {
        margin-left: 0;
    }
}

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

    .featured-books h2,
    .books-directory h1 {
        font-size: 2rem;
    }

    .book-card,
    .category-card {
        padding: 1.5rem;
    }

    .content-page {
        padding: 2rem 20px;
    }

    .content-page h1 {
        font-size: 2rem;
    }
}