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

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #333;
    color: white;
    padding: 15px;
    z-index: 1000;
}

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

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

/* 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;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-brand a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #333;
}

.logo {
    width: 40px;
    height: 40px;
}

.brand-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2c5aa0;
}

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

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

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

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

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

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

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

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

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

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

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

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

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: bold;
    color: #1a202c;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.25rem;
    color: #4a5568;
    margin-bottom: 30px;
}

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

/* Sections */
section {
    padding: 80px 0;
}

.section-subtitle {
    font-size: 1.125rem;
    color: #6b7280;
    text-align: center;
    margin-bottom: 50px;
}

h2 {
    font-size: 2.5rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    color: #1a202c;
}

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

.book-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.book-cover {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: #f8fafc;
}

.book-info {
    padding: 25px;
}

.book-title {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 8px;
    color: #1a202c;
}

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

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

.book-description {
    color: #4a5568;
    margin-bottom: 20px;
    line-height: 1.6;
}

.book-link {
    color: #2c5aa0;
    text-decoration: none;
    font-weight: 600;
}

.book-link:hover {
    text-decoration: underline;
}

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

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

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

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

.category-card p {
    color: #6b7280;
    margin-bottom: 25px;
}

/* Search and Filter */
.search-filter {
    background: #f8fafc;
    padding: 40px;
    border-radius: 12px;
    margin-bottom: 50px;
}

.search-filter-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    align-items: end;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: #374151;
}

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

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

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

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

.book-detail-cover {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

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

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

.book-detail-meta p {
    margin: 8px 0;
    color: #6b7280;
}

.external-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.external-links .btn {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.book-detail-content h3 {
    font-size: 1.5rem;
    margin: 30px 0 15px 0;
    color: #1a202c;
}

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

.takeaways li {
    padding: 8px 0;
    border-bottom: 1px solid #e5e7eb;
    position: relative;
    padding-left: 20px;
}

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

.disclaimer-note {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 6px;
    padding: 15px;
    margin: 30px 0;
    font-size: 0.9rem;
    color: #92400e;
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: #f8fafc;
    padding: 40px;
    border-radius: 12px;
}

.contact-form .form-group {
    margin-bottom: 25px;
}

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

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.contact-info-item h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
    color: #1a202c;
}

.contact-info-item p {
    color: #6b7280;
    margin: 5px 0;
}

.contact-info-item a {
    color: #2c5aa0;
    text-decoration: none;
}

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

/* Footer */
.footer {
    background: #1f2937;
    color: white;
    padding: 60px 0 20px;
}

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

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

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

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

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

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

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 20px;
    text-align: center;
    color: #9ca3af;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .books-grid {
        grid-template-columns: 1fr;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .search-filter-content {
        grid-template-columns: 1fr;
    }
    
    .book-detail-header {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .external-links {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .nav {
        padding: 1rem;
    }
    
    .hero {
        padding: 60px 20px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .book-info {
        padding: 20px;
    }
    
    .category-card {
        padding: 30px 20px;
    }
}