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

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

.brand-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
}

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

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

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

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.nav-link:hover,
.nav-link.active {
    background-color: #f7fafc;
    color: #2c5282;
}

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

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

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

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

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

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

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

.btn-primary:hover {
    background: #2a4a7a;
}

.btn-secondary {
    background: #e2e8f0;
    color: #2d3748;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    display: inline-block;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
}

.btn-secondary:hover {
    background: #cbd5e0;
}

/* Sections */
.featured-section,
.categories-preview {
    padding: 4rem 0;
    background: #f7fafc;
}

.featured-section:nth-child(even) {
    background: #fff;
}

.featured-section h2,
.categories-preview h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #1a202c;
}

/* Book Grid */
.book-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.book-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    color: inherit;
    display: block;
}

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

.book-image {
    width: 80px;
    height: 100px;
    margin-bottom: 1rem;
    border-radius: 4px;
}

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

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

.book-category {
    background: #e2e8f0;
    color: #2d3748;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    display: inline-block;
    margin-bottom: 1rem;
}

.book-description {
    color: #4a5568;
    line-height: 1.5;
    margin-bottom: 1rem;
}

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

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

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

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

.category-card p {
    color: #4a5568;
}

/* Search and Filter */
.search-filter-section {
    background: #f7fafc;
    padding: 2rem 0;
}

.search-filter-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.search-input {
    flex: 1;
    min-width: 250px;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    font-size: 1rem;
}

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

.filter-select {
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    font-size: 1rem;
    background: white;
}

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

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

.book-cover {
    width: 200px;
    height: 250px;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

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

.book-meta {
    margin: 1rem 0;
}

.book-meta p {
    margin: 0.5rem 0;
    color: #4a5568;
}

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

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

.book-content h3 {
    font-size: 1.4rem;
    margin: 1.5rem 0 1rem 0;
    color: #2c5282;
}

.takeaways-list {
    list-style: none;
    margin: 1rem 0;
}

.takeaways-list li {
    padding: 0.5rem 0;
    padding-left: 2rem;
    position: relative;
}

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

.disclaimer-note {
    background: #f7fafc;
    border-left: 4px solid #2c5282;
    padding: 1rem;
    margin: 2rem 0;
    border-radius: 0 4px 4px 0;
}

/* Footer */
.footer {
    background: #1a202c;
    color: white;
    padding: 3rem 0 1rem 0;
}

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

.footer-section h4 {
    margin-bottom: 1rem;
    color: #e2e8f0;
}

.footer-section a {
    color: #a0aec0;
    text-decoration: none;
    display: block;
    margin: 0.5rem 0;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #e2e8f0;
}

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

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1a202c;
    color: white;
    padding: 1rem;
    z-index: 1001;
}

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

.cookie-content p {
    margin: 0;
}

/* Form Styles */
.contact-form {
    max-width: 600px;
    margin: 2rem auto;
}

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

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

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

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

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

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

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

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

.content-page h3 {
    font-size: 1.4rem;
    margin: 1.5rem 0 1rem 0;
    color: #1a202c;
}

.content-page p {
    margin-bottom: 1rem;
    color: #4a5568;
}

.content-page ul,
.content-page ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

.content-page li {
    margin: 0.5rem 0;
    color: #4a5568;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .book-grid {
        grid-template-columns: 1fr;
    }
    
    .book-header {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .book-cover {
        margin: 0 auto;
    }
    
    .search-filter-controls {
        flex-direction: column;
    }
    
    .search-input {
        min-width: 100%;
    }
    
    .external-links {
        justify-content: center;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .nav {
        padding: 1rem;
    }
    
    .container {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .book-card {
        padding: 1rem;
    }
    
    .category-card {
        padding: 1.5rem;
    }
}

/* RTL Support */
[dir="rtl"] {
    text-align: right;
}

[dir="rtl"] .nav {
    flex-direction: row-reverse;
}

[dir="rtl"] .hero {
    direction: rtl;
}

[dir="rtl"] .book-header {
    direction: rtl;
}

[dir="rtl"] .takeaways-list li {
    padding-left: 0;
    padding-right: 2rem;
}

[dir="rtl"] .takeaways-list li:before {
    left: auto;
    right: 0;
}