/* Blog-specific font settings for better readability */
#blog .resume-section-content,
#blog-post .resume-section-content,
#office-hours .resume-section-content,
#office-hour-post .resume-section-content {
    font-family: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 1.1rem;
    line-height: 1.7;
    color: #2f2f33;
}

/* Blog post preview styling */
.blog-post-preview {
    margin-bottom: 2.5rem;
    padding-left: 0.75rem;
    border-left: 3px solid rgba(189, 93, 56, 0.15);
}

.blog-post-preview h3.blog-title {
    font-family: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.blog-post-preview h3.blog-title a {
    color: #343a40;
}

.blog-post-preview h3.blog-title a:hover {
    color: #bd5d38;
    text-decoration: none;
}

.blog-post-preview p {
    font-family: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    margin-top: 0.75rem;
    color: #495057;
}

/* Blog post content styling */
#post-content {
    font-family: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

#post-content h1,
#post-content h2,
#post-content h3,
#post-content h4,
#post-content h5,
#post-content h6 {
    font-family: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-weight: 600;
    text-transform: none !important;
    color: #212529;
}

#post-content h1 {
    font-size: 2.2rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

#post-content h2 {
    font-size: 1.7rem;
    margin-top: 1.75rem;
    margin-bottom: 1rem;
}

#post-content h3 {
    font-size: 1.3rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

#post-content h4,
#post-content h5,
#post-content h6 {
    font-size: 1.2rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

#post-content p {
    margin-bottom: 1.25rem;
}

#post-content a {
    color: #bd5d38;
    text-decoration: none;
    border-bottom: 1px solid rgba(189, 93, 56, 0.3);
    transition: border-color 0.2s ease-in-out;
}

#post-content a:hover {
    border-bottom-color: rgba(189, 93, 56, 0.7);
}

#post-content img {
    max-width: 100%;
    height: auto;
    margin: 1.5rem 0;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#post-content pre {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 4px;
    overflow-x: auto;
    margin-bottom: 1.5rem;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 0.9rem;
}

#post-content code {
    background-color: #f8f9fa;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 0.9rem;
}

#post-content blockquote {
    border-left: 4px solid #bd5d38;
    padding: 0.5rem 0 0.5rem 1.25rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #6c757d;
    background-color: rgba(189, 93, 56, 0.05);
    border-radius: 0 4px 4px 0;
}

#post-content ul,
#post-content ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

#post-content li {
    margin-bottom: 0.5rem;
}

/* Post date styling */
#post-date {
    font-family: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #6c757d;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

/* Reduce heading sizes and preserve capitalization */
#post-content h1,
#post-content h2,
#post-content h3,
#post-content h4,
#post-content h5,
#post-content h6 {
    text-transform: none;
}

#post-content h1 {
    font-size: 2.2rem;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

#post-content h2 {
    font-size: 1.7rem;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

#post-content h3 {
    font-size: 1.3rem;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

#post-content h4,
#post-content h5,
#post-content h6 {
    font-size: 1.2rem;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

#post-content img {
    max-width: 100%;
    height: auto;
    margin: 1.5rem 0;
}

#post-content pre {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 0.25rem;
    overflow-x: auto;
}

#post-content code {
    background-color: #f8f9fa;
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
}

#post-content blockquote {
    border-left: 4px solid #bd5d38;
    padding-left: 1rem;
    font-style: italic;
    color: #6c757d;
}

/* Blog post preview styling with higher specificity */
.resume-section-content .blog-post-preview h3 {
    text-transform: none !important;
}

.resume-section-content .blog-post-preview h3 a {
    text-transform: none !important;
    color: #343a40;
    text-decoration: none;
}

.resume-section-content .blog-post-preview h3 a:hover {
    color: #bd5d38;
    text-decoration: none;
}

/* Override all text-transform in blog pages */
.blog-post-preview h3,
.blog-post-preview h3 a,
#blog h1, #blog h2, #blog h3, #blog h4, #blog h5, #blog h6,
#blog-post h1, #blog-post h2, #blog-post h3, #blog-post h4, #blog-post h5, #blog-post h6,
#blog .resume-section-content h1, 
#blog .resume-section-content h2, 
#blog .resume-section-content h3, 
#blog .resume-section-content h4, 
#blog .resume-section-content h5, 
#blog .resume-section-content h6,
#blog .resume-section-content .blog-post-preview h3,
#blog .resume-section-content .blog-post-preview h3 a,
#office-hours .resume-section-content h1,
#office-hours .resume-section-content h2,
#office-hours .resume-section-content h3,
#office-hours .resume-section-content h4,
#office-hours .resume-section-content h5,
#office-hours .resume-section-content h6,
#office-hours .resume-section-content .blog-post-preview h3,
#office-hours .resume-section-content .blog-post-preview h3 a {
    text-transform: none !important;
}

/* Add !important to all existing heading styles */
#post-content h1,
#post-content h2,
#post-content h3,
#post-content h4,
#post-content h5,
#post-content h6 {
    text-transform: none !important;
}

/* Direct targeting of blog titles */
h3.blog-title,
h3.blog-title a.blog-title-link {
    text-transform: none !important;
    font-family: inherit !important;
    font-weight: normal !important;
}

/* Fix code formatting in headings */
#post-content h1 code,
#post-content h2 code,
#post-content h3 code,
#post-content h4 code,
#post-content h5 code,
#post-content h6 code {
    font-size: inherit;
    background-color: rgba(0, 0, 0, 0.05);
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
}

/* Also fix code formatting in blog post preview titles */
.blog-post-preview h3 code {
    font-size: inherit;
    background-color: rgba(0, 0, 0, 0.05);
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
}

/* Syntax highlighting improvements */
#post-content pre[class*="language-"] {
    margin: 1.5rem 0;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#post-content code[class*="language-"] {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 0.9rem;
}

/* Make sure inline code doesn't get affected by Prism styling */
#post-content :not(pre) > code {
    background-color: rgba(0, 0, 0, 0.05);
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 0.9rem;
    color: #333;
} 

/* Talks page narrower container */
.talks-container {
    max-width: 920px;
}