#blog-content h1 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.blog-post-page .content {
    color: #333;
    font-size: 1.1rem;
    line-height: 1.75;
    letter-spacing: normal;
    word-spacing: normal;
    text-align: left;
}

.blog-post-page .content p,
.blog-post-page .content li {
    line-height: 1.75;
    letter-spacing: normal;
    word-spacing: normal;
}

.blog-post-page .content p {
    margin: 0 0 1.2rem;
}

.blog-post-page .content img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 1.5rem auto 2rem;
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.14);
    background: #f3ede6;
}

.blog-post-page .content h2 {
    margin: 2.5rem 0 1.25rem;
}

.blog-post-page .content h3 {
    margin: 2rem 0 1rem;
}

.blog-post-page .content ul,
.blog-post-page .content ol {
    margin: 1.25rem 0;
    padding-left: 2rem;
}

.blog-post-page .content li {
    margin-bottom: 0.75rem;
}

body[data-post-slug="what-an-uber-driver-taught-me-about-leadership"] .blog-post-page .content,
body[data-post-slug="what-an-uber-driver-taught-me-about-leadership"] .blog-post-page .content p {
    word-spacing: -0.04em;
}

/* Override Prism token styles to avoid gray boxes around operators. */
.token.operator,
.token.entity,
.token.url,
.language-css .token.string,
.style .token.string,
.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
    background: transparent !important;
    color: inherit !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

pre[class*="language-"] {
    background: #2d2d2d;
}

code[class*="language-"] {
    background: transparent;
}

:not(pre) > code[class*="language-"] {
    background: #f5f5f5;
    color: #e83e8c;
}

/* Chapter navigation styling */
.blog-post-page .content a[href*="/blog/rediscovering-i-chapter"] {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white !important;
    border-radius: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
    font-weight: 500;
}

.blog-post-page .content a[href*="/blog/rediscovering-i-chapter"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* Mobile responsiveness for chapter navigation */
@media (max-width: 768px) {
    .blog-post-page .content a[href*="/blog/rediscovering-i-chapter"] {
        font-size: 1rem;
        padding: 0.6rem 1.2rem;
        display: block;
        text-align: center;
        margin: 1rem 0;
    }

    .blog-post-page .content {
        font-size: 1rem;
    }

    .blog-post-page .content img {
        margin: 1rem auto 1.5rem;
        border-radius: 8px;
    }

    .blog-post-page .content ul,
    .blog-post-page .content ol {
        padding-left: 1.5rem;
    }
}

/* Related posts section */
.related-posts {
    margin: 2.5rem 0;
    padding: 1.5rem 2rem;
    background: #f9f7f4;
    border-radius: 12px;
    border-left: 4px solid #667eea;
}

.related-posts h3 {
    margin: 0 0 1rem;
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: #333;
}

.related-posts ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.related-posts li {
    margin-bottom: 0.6rem;
}

.related-posts a {
    color: #667eea;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.2s;
}

.related-posts a:hover {
    color: #764ba2;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .related-posts {
        padding: 1rem 1.25rem;
        margin: 1.5rem 0;
    }
}

/* Series navigation (prev/next) */
.series-navigation {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin: 2rem 0;
    padding: 1rem 0;
    border-top: 1px solid #e0ddd8;
    border-bottom: 1px solid #e0ddd8;
}

.series-navigation a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.series-navigation a:hover {
    color: #764ba2;
}

.series-navigation .series-next {
    margin-left: auto;
}

@media (max-width: 768px) {
    .series-navigation {
        flex-direction: column;
        gap: 0.75rem;
    }
}
