/* 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 img {
  max-width: 90%;
  height: auto;
  display: block;
  margin: 20px auto;
}

.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;
    }
}
/* Table of Contents */
.lesson-toc {
    background: #f7fafc;
    border: 2px solid #cbd5e0;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin: 2rem 0;
    display: inline-block;
    max-width: fit-content;
}

.lesson-toc h2 {
    font-family: 'Merriweather', serif;
    font-size: 1rem;
    font-weight: 700;
    color: #1a202c;
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.lesson-toc ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.lesson-toc li {
    margin: 0;
    padding: 0;
}

.lesson-toc a {
    color: #37516f;
    text-decoration: none;
    font-size: 0.9rem;
    display: block;
    padding: 0.15rem 0;
    transition: color 0.2s;
}

.lesson-toc a:hover {
    color: #2d4359;
    text-decoration: underline;
}

.lesson-toc a::before {
    content: "→ ";
    margin-right: 0.5rem;
    color: #cbd5e0;
}

/* Breadcrumbs */
.breadcrumbs {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.breadcrumbs ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 0;
    margin: 0;
    font-size: 0.875rem;
}

.breadcrumbs li {
    display: flex;
    align-items: center;
    margin-bottom: 0;
}

.breadcrumbs li:not(:last-child)::after {
    content: "›";
    margin: 0 0.5rem;
    color: #a0aec0;
    font-size: 1.125rem;
}

.breadcrumbs a {
    color: #2563eb;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumbs a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.breadcrumbs li[aria-current="page"] {
    color: #4a5568;
    font-weight: 500;
}
