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

.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;
    text-decoration: none;
    color: #2c5aa0;
    font-weight: bold;
    font-size: 1.2rem;
}

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

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

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

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

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

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

/* Hero Section */
.hero {
    position: relative;
    padding: 100px 20px;
    text-align: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    z-index: 1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

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

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

.cta-button {
    display: inline-block;
    background: #2c5aa0;
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.cta-button:hover {
    background: #1e3d6f;
}

/* Featured Section */
.featured {
    padding: 80px 0;
}

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

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

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

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

.book-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.book-content {
    padding: 20px;
}

.book-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #2c5aa0;
}

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

.book-category {
    display: inline-block;
    background: #e9ecef;
    color: #495057;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-bottom: 10px;
}

.book-description {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

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

.view-all-link {
    color: #2c5aa0;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    border: 2px solid #2c5aa0;
    padding: 10px 20px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.view-all-link:hover {
    background: #2c5aa0;
    color: white;
}

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

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

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

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

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

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

.category-card p {
    color: #666;
    font-size: 0.9rem;
}

/* Search and Filter */
.search-filter {
    background: #f8f9fa;
    padding: 30px 0;
}

.search-container {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.search-input {
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    min-width: 200px;
}

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

.search-button {
    background: #2c5aa0;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s ease;
}

.search-button:hover {
    background: #1e3d6f;
}

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

.book-detail-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    align-items: start;
}

.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-content h1 {
    font-size: 2.5rem;
    color: #2c5aa0;
    margin-bottom: 10px;
}

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

.book-detail-meta {
    margin-bottom: 30px;
}

.book-detail-meta span {
    display: inline-block;
    margin-right: 20px;
    margin-bottom: 10px;
}

.book-detail-description {
    margin-bottom: 30px;
    font-size: 1.1rem;
    line-height: 1.8;
}

.book-takeaways {
    margin-bottom: 30px;
}

.book-takeaways h3 {
    color: #2c5aa0;
    margin-bottom: 15px;
}

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

.book-takeaways li {
    padding: 5px 0;
    padding-left: 20px;
    position: relative;
}

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

.book-links {
    margin-top: 30px;
}

.book-links h3 {
    color: #2c5aa0;
    margin-bottom: 15px;
}

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

.external-link {
    display: inline-block;
    background: #2c5aa0;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.external-link:hover {
    background: #1e3d6f;
}

.disclaimer-note {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 5px;
    margin-top: 30px;
    border-left: 4px solid #2c5aa0;
}

/* Forms */
.form-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 50px 20px;
}

.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;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
}

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

.submit-button {
    background: #2c5aa0;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s ease;
}

.submit-button:hover {
    background: #1e3d6f;
}

/* Content Pages */
.content-page {
    padding: 50px 0;
}

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

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

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

.content-page p {
    margin-bottom: 15px;
    line-height: 1.8;
}

.content-page ul,
.content-page ol {
    margin-bottom: 15px;
    padding-left: 30px;
}

.content-page li {
    margin-bottom: 8px;
}

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

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

.footer-section h4 {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.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 ease;
}

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

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

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

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

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

.cookie-content button {
    background: white;
    color: #2c5aa0;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    white-space: nowrap;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.05);
        padding: 20px 0;
    }

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

    .nav-menu li {
        margin: 15px 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

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

    .hero p {
        font-size: 1rem;
    }

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

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

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

    .search-input,
    .filter-select {
        min-width: auto;
    }

    .external-links {
        flex-direction: column;
    }

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

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

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

    .hero {
        padding: 60px 15px;
    }

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

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

    .book-content {
        padding: 15px;
    }

    .book-detail-image img {
        width: 200px;
        height: 280px;
    }
}

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

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

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

[dir="rtl"] .logo img {
    margin-right: 0;
    margin-left: 10px;
}

[dir="rtl"] .book-takeaways li {
    padding-left: 0;
    padding-right: 20px;
}

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

[dir="rtl"] .disclaimer-note {
    border-left: none;
    border-right: 4px solid #2c5aa0;
}