/* Book-specific styles */

.book-hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 6rem 2rem 4rem;
    text-align: center;
    margin-top: 70px;
}

.book-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease;
}

.book-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
    animation: fadeInUp 1s ease;
}

.book-subtitle {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    opacity: 0.95;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1.2s ease;
}

.book-author {
    font-size: 1.1rem;
    opacity: 0.9;
    font-style: italic;
    animation: fadeInUp 1.4s ease;
}

/* Table of Contents */
.book-container {
    max-width: 900px;
}

.toc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.toc-section {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.toc-section h3 {
    color: var(--secondary-color);
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.toc-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    font-style: italic;
}

.toc-list {
    list-style: none;
    padding: 0;
}

.toc-list li {
    margin-bottom: 0.75rem;
}

.toc-list a {
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
    display: block;
    padding: 0.5rem;
    border-radius: 5px;
}

.toc-list a:hover {
    background: var(--light-bg);
    color: var(--primary-color);
    padding-left: 1rem;
}

/* Book Chapters */
.book-chapter {
    background: var(--white);
    padding: 3rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 3rem;
}

.chapter-title {
    color: var(--secondary-color);
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 1rem;
}

.subsection-title {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1.25rem;
    margin-top: 2rem;
}

.chapter-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
}

.chapter-content p {
    margin-bottom: 1.25rem;
}

.chapter-content h3 {
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.chapter-content h4 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.chapter-content ul {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.chapter-content li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

.key-points {
    background: var(--light-bg);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    margin: 1.5rem 0;
}

.key-points li {
    margin-bottom: 1rem;
}

.important-note {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 1.25rem;
    border-radius: 5px;
    margin: 1.5rem 0;
    font-size: 1.05rem;
}

.note {
    background: var(--light-bg);
    padding: 1.5rem;
    border-radius: 8px;
    font-style: italic;
    border-left: 4px solid var(--primary-color);
    margin: 2rem 0;
}

/* Stage Cards */
.stages-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.stage-card {
    background: var(--light-bg);
    padding: 1.5rem;
    border-radius: 10px;
    border-top: 4px solid var(--primary-color);
    transition: var(--transition);
}

.stage-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.stage-card h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

.stage-card p {
    color: var(--text-color);
    line-height: 1.6;
}

/* Book CTA */
.book-cta {
    text-align: center;
    padding: 3rem;
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.book-cta h2 {
    color: var(--secondary-color);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.book-cta p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.book-cta .btn-primary {
    background: #FFCB05;
    color: #00274C;
    font-weight: 700;
}

.book-cta .btn-primary:hover {
    background: #FFD93D;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 203, 5, 0.4);
}

/* Responsive Design for Books */
@media (max-width: 768px) {
    .book-hero {
        padding: 5rem 1rem 3rem;
    }

    .book-title {
        font-size: 2.2rem;
    }

    .book-subtitle {
        font-size: 1.1rem;
    }

    .book-chapter {
        padding: 2rem 1.5rem;
    }

    .chapter-title {
        font-size: 1.8rem;
    }

    .chapter-content {
        font-size: 1rem;
    }

    .toc-grid,
    .stages-overview {
        grid-template-columns: 1fr;
    }
    
    /* Keep navigation visible on mobile for book pages */
    .navbar .nav-menu {
        position: static !important;
        flex-direction: row !important;
        width: auto !important;
        background: transparent !important;
        padding: 0 !important;
        box-shadow: none !important;
        max-height: none !important;
        overflow: visible !important;
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: 0.5rem;
    }
    
    .navbar .nav-menu li {
        width: auto !important;
    }
    
    .navbar .nav-menu .nav-link {
        font-size: 0.85rem;
        padding: 0.5rem;
    }
    
    .navbar .nav-menu .btn {
        font-size: 0.85rem;
        padding: 0.5rem 1rem !important;
    }
}

@media (max-width: 480px) {
    .navbar .container {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .navbar .nav-menu {
        width: 100%;
        justify-content: flex-start;
    }
}
