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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-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;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #2c5aa0;
    font-weight: 700;
    font-size: 1.5rem;
}

.nav-logo img {
    width: 40px;
    height: 40px;
}

.nav-menu {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
    padding: 8px 12px;
    border-radius: 6px;
}

.nav-link:hover,
.nav-link.active {
    color: #2c5aa0;
    background-color: #f8f9fa;
}

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

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background-color: #2c5aa0;
    color: white;
}

.btn-primary:hover {
    background-color: #1e3f73;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #545b62;
}

.btn-outline {
    background-color: transparent;
    color: #2c5aa0;
    border: 2px solid #2c5aa0;
}

.btn-outline:hover {
    background-color: #2c5aa0;
    color: white;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 80px 0;
    min-height: 500px;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #2c5aa0;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-text p {
    font-size: 1.2rem;
    color: #6c757d;
    margin-bottom: 30px;
}

.hero-actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

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

/* Books Grid */
.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.book-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #e9ecef;
}

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

.book-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 16px;
}

.book-category {
    display: inline-block;
    background-color: #e3f2fd;
    color: #1976d2;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.book-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.3;
}

.book-author {
    color: #6c757d;
    font-weight: 500;
    margin-bottom: 12px;
}

.book-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 16px;
}

.book-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.book-actions .btn {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* Categories */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin: 40px 0;
}

.category-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    border: 1px solid #e9ecef;
}

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

.category-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

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

.category-count {
    color: #6c757d;
    font-size: 0.9rem;
}

/* Sections */
.featured-books,
.categories-preview {
    padding: 80px 0;
}

.featured-books {
    background-color: #f8f9fa;
}

section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #2c5aa0;
    margin-bottom: 12px;
    font-weight: 700;
}

.section-subtitle {
    text-align: center;
    color: #6c757d;
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.section-footer {
    text-align: center;
    margin-top: 40px;
}

/* Search and Filter */
.search-filters {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin-bottom: 40px;
}

.search-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 20px;
    align-items: center;
}

.search-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

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

.filter-select {
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 1rem;
    background: white;
    min-width: 150px;
}

/* Book Detail */
.book-detail {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

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

.book-cover {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

.book-info h1 {
    font-size: 2.5rem;
    color: #2c5aa0;
    margin-bottom: 12px;
}

.book-meta {
    margin: 20px 0;
}

.book-meta p {
    margin: 8px 0;
    color: #666;
}

.book-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 20px 0;
}

.disclaimer-note {
    background: #f8f9fa;
    border-left: 4px solid #2c5aa0;
    padding: 16px;
    margin: 30px 0;
    border-radius: 0 6px 6px 0;
}

.book-content h3 {
    color: #2c5aa0;
    margin: 30px 0 16px 0;
    font-size: 1.5rem;
}

.takeaways-list {
    list-style: none;
    padding: 0;
}

.takeaways-list li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
}

.takeaways-list li:before {
    content: "✓";
    color: #28a745;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Footer */
.footer {
    background-color: #2c5aa0;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

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

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

.footer-contact p {
    margin: 8px 0;
}

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

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

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

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

.footer-bottom {
    border-top: 1px solid #1e3f73;
    margin-top: 40px;
    padding-top: 20px;
    text-align: center;
    color: #b3d1ff;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #2c5aa0;
    color: white;
    padding: 20px;
    z-index: 10000;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
}

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

.cookie-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

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

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

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: #2c5aa0;
}

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

/* Page Layouts */
.page-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 60px 0;
    text-align: center;
}

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

.page-header p {
    font-size: 1.1rem;
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto;
}

.page-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px;
}

.page-content h2 {
    color: #2c5aa0;
    margin: 40px 0 20px 0;
    font-size: 1.8rem;
}

.page-content h3 {
    color: #333;
    margin: 30px 0 15px 0;
    font-size: 1.3rem;
}

.page-content p {
    margin-bottom: 16px;
    line-height: 1.7;
}

.page-content ul {
    margin: 16px 0;
    padding-left: 24px;
}

.page-content li {
    margin: 8px 0;
    line-height: 1.6;
}

/* 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: flex-start;
        align-items: center;
        padding-top: 40px;
        transition: left 0.3s;
        box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    }

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

    .nav-toggle {
        display: flex;
    }

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

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

    .hero-actions {
        justify-content: center;
    }

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

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

    .search-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }

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

    .cookie-actions {
        justify-content: center;
    }

    section h2 {
        font-size: 2rem;
    }

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

@media (max-width: 480px) {
    .container,
    .nav-container {
        padding: 0 16px;
    }

    .hero {
        padding: 60px 0;
    }

    .hero-text h1 {
        font-size: 1.8rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .book-card {
        padding: 20px;
    }

    .category-card {
        padding: 24px;
    }

    .featured-books,
    .categories-preview {
        padding: 60px 0;
    }
}

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

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

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

.mt-20 {
    margin-top: 20px;
}

.mt-40 {
    margin-top: 40px;
}

.hidden {
    display: none;
}

.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}