/* Lesson Typography Styles */
article h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: #1f2937;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.3;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #e5e7eb;
}

article h2:first-of-type {
    margin-top: 0;
}

article h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #374151;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

article p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #4b5563;
    margin-bottom: 1.5rem;
}

article ul, article ol {
    margin-left: 2rem;
    margin-bottom: 1.75rem;
    font-size: 1.125rem;
    line-height: 1.8;
    color: #4b5563;
}

article li {
    margin-bottom: 0.75rem;
}

article ul li {
    list-style-type: disc;
}

article ol li {
    list-style-type: decimal;
}

article strong {
    font-weight: 700;
    color: #1f2937;
}

article code {
    background: #f3f4f6;
    padding: 0.2rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.95em;
    color: #dc2626;
    font-family: 'Courier New', Consolas, monospace;
    font-weight: 500;
}

article pre {
    background: #1f2937;
    color: #10b981;
    padding: 1.5rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin: 2rem 0;
    font-size: 0.95rem;
    line-height: 1.6;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

article pre code {
    background: transparent;
    padding: 0;
    color: inherit;
    font-weight: normal;
}

article .bg-blue-50, article .bg-yellow-50, article .bg-green-50, article .bg-red-50 {
    margin: 2rem 0;
    padding: 1.25rem;
    line-height: 1.6;
}

article > *:first-child {
    margin-top: 0;
}

article > *:last-child {
    margin-bottom: 0;
}

/* Code block backgrounds */
.bg-gray-100 {
    background-color: #f3f4f6 !important;
    padding: 1rem !important;
    border-radius: 0.5rem !important;
    margin: 1rem 0 !important;
}
