/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1976d2;
    --primary-dark: #1565c0;
    --primary-light: #42a5f5;
    --text-primary: #212121;
    --text-secondary: #757575;
    --background: #ffffff;
    --surface: #f5f5f5;
    --border: #e0e0e0;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-medium: rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    background-color: var(--background);
    box-shadow: 0 2px 4px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo img {
    height: 40px;
    width: 40px;
}

.logo span {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 24px;
}

nav a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 16px;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 20px;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto;
}

/* Hero Image Section */
.hero-image {
    padding: 40px 0;
    text-align: center;
    background-color: var(--background);
}

.main-illustration {
    max-width: 400px;
    width: 100%;
    height: auto;
    margin: 0 auto;
    display: block;
}

/* Page Header */
.page-header {
    background-color: var(--surface);
    padding: 60px 0;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.page-header h1 {
    font-size: 40px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.page-header p {
    font-size: 18px;
    color: var(--text-secondary);
}

.page-header-image {
    max-width: 300px;
    width: 100%;
    height: auto;
    margin: 0 auto 24px;
    display: block;
}

/* Content Sections */
.content-section {
    padding: 60px 0;
}

.content-section h2 {
    font-size: 32px;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.content-section p {
    margin-bottom: 16px;
    color: var(--text-secondary);
    font-size: 16px;
}

.intro-content {
    margin-top: 24px;
}

/* Card Styles */
.category-grid,
.list-grid,
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.category-card,
.list-item,
.feature {
    background-color: var(--background);
    padding: 24px;
    border-radius: 4px;
    box-shadow: 0 2px 8px var(--shadow);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.category-card:hover,
.list-item:hover,
.feature:hover {
    box-shadow: 0 4px 16px var(--shadow-medium);
    transform: translateY(-4px);
}

.category-card h3,
.list-item h3,
.feature h3 {
    font-size: 22px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.category-card p,
.list-item p,
.feature p {
    color: var(--text-secondary);
    font-size: 15px;
}

/* Book Categories Section */
.book-categories {
    background-color: var(--surface);
    padding: 60px 0;
}

.section-image-header {
    text-align: center;
    margin-bottom: 32px;
}

.section-image {
    max-width: 300px;
    width: 100%;
    height: auto;
    margin: 0 auto;
    display: block;
}

/* Featured Lists Section */
.featured-lists {
    padding: 60px 0;
}

/* Why Choose Section */
.why-choose {
    background-color: var(--surface);
    padding: 60px 0;
}

/* About Reading Section */
.about-reading {
    padding: 60px 0;
}

/* CTA Section */
.cta-section {
    background-color: var(--surface);
    padding: 60px 0;
    text-align: center;
}

.cta-section h2 {
    font-size: 32px;
    margin-bottom: 16px;
}

.cta-section p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 12px 32px;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 4px var(--shadow);
}

.btn:hover {
    background-color: var(--primary-dark);
    box-shadow: 0 4px 8px var(--shadow-medium);
}

/* Contact Page Styles */
.contact-intro {
    margin-bottom: 40px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.contact-info,
.contact-form-info {
    background-color: var(--surface);
    padding: 32px;
    border-radius: 4px;
}

.contact-info h3,
.contact-form-info h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.info-item {
    margin-bottom: 24px;
}

.info-item h4 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.info-item p {
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.info-item .note {
    font-size: 14px;
    font-style: italic;
    color: var(--text-secondary);
}

.additional-info {
    margin-top: 60px;
}

/* Legal Content */
.legal-content ul {
    margin-left: 32px;
    margin-bottom: 16px;
}

.legal-content li {
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.legal-content h3 {
    font-size: 24px;
    margin-top: 32px;
    margin-bottom: 16px;
    color: var(--text-primary);
}

/* FAQ Styles */
.faq-intro {
    margin-bottom: 40px;
}

.faq-intro p {
    font-size: 16px;
}

.faq-intro a {
    color: var(--primary-color);
    text-decoration: none;
}

.faq-intro a:hover {
    text-decoration: underline;
}

.faq-section {
    margin-bottom: 60px;
}

.faq-section h2 {
    font-size: 28px;
    margin-bottom: 24px;
    color: var(--text-primary);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 8px;
}

.faq-item {
    background-color: var(--surface);
    padding: 24px;
    border-radius: 4px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px var(--shadow);
}

.faq-item h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.faq-item p {
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.faq-item ul {
    margin-left: 32px;
    margin-top: 12px;
}

.faq-item li {
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.faq-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.faq-item a:hover {
    text-decoration: underline;
}

.faq-footer {
    background-color: var(--surface);
    padding: 40px;
    border-radius: 4px;
    text-align: center;
    margin-top: 60px;
}

.faq-footer h2 {
    font-size: 28px;
    margin-bottom: 16px;
}

.faq-footer p {
    margin-bottom: 24px;
}

/* Footer Styles */
footer {
    background-color: var(--text-primary);
    color: white;
    padding: 60px 0 20px;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 20px;
    margin-bottom: 16px;
    color: white;
}

.footer-section p {
    color: #bdbdbd;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 8px;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 8px;
}

.footer-section a {
    color: #bdbdbd;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #424242;
}

.footer-bottom p {
    color: #bdbdbd;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 16px;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .page-header h1 {
        font-size: 32px;
    }

    .main-illustration,
    .page-header-image,
    .section-image {
        max-width: 250px;
    }

    .category-grid,
    .list-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 60px 0;
    }

    .hero h1 {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .main-illustration,
    .page-header-image,
    .section-image {
        max-width: 200px;
    }

    .content-section {
        padding: 40px 0;
    }

    .content-section h2 {
        font-size: 26px;
    }
}

/* Accessibility */
a:focus,
button:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Book List Styles */
.intro-text {
    margin-bottom: 40px;
    padding: 24px;
    background-color: var(--surface);
    border-radius: 4px;
    border-left: 4px solid var(--primary-color);
}

.book-list {
    margin-top: 40px;
}

.book-item {
    display: flex;
    gap: 24px;
    margin-bottom: 32px;
    padding: 24px;
    background-color: var(--background);
    border-radius: 4px;
    box-shadow: 0 2px 8px var(--shadow);
    transition: box-shadow 0.3s ease;
}

.book-item:hover {
    box-shadow: 0 4px 16px var(--shadow-medium);
}

.book-number {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    font-size: 24px;
    font-weight: 700;
    border-radius: 50%;
}

.book-content h3 {
    font-size: 22px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.book-meta {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    font-style: italic;
}

.book-description {
    margin-bottom: 12px;
    line-height: 1.7;
    color: var(--text-primary);
}

.book-why {
    padding: 16px;
    background-color: var(--surface);
    border-radius: 4px;
    border-left: 3px solid var(--primary-light);
    line-height: 1.7;
    color: var(--text-primary);
}

/* Reading Tips Section */
.reading-tips {
    margin-top: 60px;
    padding: 40px;
    background-color: var(--surface);
    border-radius: 4px;
}

.reading-tips h2 {
    font-size: 28px;
    margin-bottom: 32px;
    text-align: center;
    color: var(--text-primary);
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.tip-card {
    background-color: var(--background);
    padding: 24px;
    border-radius: 4px;
    box-shadow: 0 2px 4px var(--shadow);
}

.tip-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--primary-color);
}

.tip-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Card Link Styles */
.card-link {
    display: inline-block;
    margin-top: 12px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.card-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Responsive for Book Lists */
@media (max-width: 768px) {
    .book-item {
        flex-direction: column;
        gap: 16px;
    }

    .book-number {
        align-self: flex-start;
    }

    .tips-grid {
        grid-template-columns: 1fr;
    }
}

/* Print Styles */
@media print {
    header,
    footer,
    nav {
        display: none;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
    }

    .hero {
        background: none;
        color: black;
    }
}
