/* Lesson Page Styles */

.lesson-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem 4rem;
}

/* Article Content */
.lesson-article {
    background: white;
    border-radius: 8px;
    padding: 3rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.lesson-title {
    font-family: 'Merriweather', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.lesson-content {
    line-height: 1.7;
}

.lesson-content h1 {
    font-family: 'Merriweather', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a202c;
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.lesson-content h1:first-child {
    margin-top: 0;
}

.lesson-content h2 {
    font-family: 'Merriweather', serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a202c;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.lesson-content h3 {
    font-family: 'Merriweather', serif;
    font-size: 1.375rem;
    font-weight: 700;
    color: #1a202c;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.lesson-content p {
    margin-bottom: 1.25rem;
    color: #2d3748;
}

.lesson-content ul,
.lesson-content ol {
    margin-left: 1.5rem;
    margin-bottom: 1.25rem;
}

.lesson-content li {
    margin-bottom: 0.5rem;
}

.lesson-content a {
    color: #37516f;
    text-decoration: underline;
}

.lesson-content a:hover {
    color: #2d4359;
}

.lesson-content strong {
    font-weight: 600;
    color: #1a202c;
}

.lesson-content code {
    font-family: 'Courier New', monospace;
    background: #f7fafc;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    font-size: 0.95rem;
}

.lesson-content pre {
    background: #f7fafc;
    padding: 1rem;
    border-radius: 6px;
    overflow-x: auto;
    margin-bottom: 1.25rem;
}

.lesson-content pre code {
    background: none;
    padding: 0;
}

/* Special Boxes (for markdown with classes) */
.lesson-content .definition-box {
    background: #f7fafc;
    border-left: 4px solid #37516f;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 4px;
}

.lesson-content .example-box {
    background: #ebf4ff;
    border: 2px solid #37516f;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 6px;
}

.lesson-content .important-note {
    background: #fef5e7;
    border-left: 4px solid #d97706;
    padding: 1.25rem;
    margin: 1.5rem 0;
    border-radius: 4px;
}

/* Related Topics */
.related-section {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    margin-top: 2rem;
}

.related-title {
    font-family: 'Merriweather', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 1rem;
}

.related-links {
    list-style: none;
    margin: 0;
}

.related-links li {
    margin-bottom: 0.75rem;
}

.related-links a {
    color: #37516f;
    text-decoration: none;
    font-size: 1rem;
}

.related-links a:hover {
    text-decoration: underline;
}

/* Mobile */
@media (max-width: 768px) {
    .lesson-container {
        padding: 2rem 1.5rem 3rem;
    }
    
    .lesson-article {
        padding: 2rem 1.5rem;
    }
    
    .lesson-title {
        font-size: 2rem;
    }
    
    .lesson-content h2 {
        font-size: 1.5rem;
    }
}