.blog-article-layout {
    max-width: 1100px;
    margin: 4rem auto;
    padding: 0 1.5rem;
    overflow-x: hidden;
}

.blog-header {
    text-align: center;
    margin-bottom: 6rem;
}

.blog-hero-title {
    font-family: 'CrimsonPro', serif;
    font-size: 3.5rem;
    font-weight: 400;
    font-style: italic;
    margin-bottom: 1.5rem;
    word-wrap: break-word;
}

.blog-meta-wrapper {
    font-family: 'CrimsonPro', serif;
    font-size: 0.95rem;
    color: var(--meta-color);
    letter-spacing: 1px;
}

.meta-divider {
    margin: 0 10px;
    opacity: 0.4;
}

.blog-grid-container {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 5rem;
    align-items: start;
}

.blog-sidebar {
    border-right: 1px solid var(--border-color);
    padding-right: 2rem;
}

.sticky-toc {
    position: sticky;
    top: 6rem;
    text-align: right;
}

.toc-label {
    font-family: 'CrimsonPro', serif;
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

#TableOfContents ul {
    list-style: none;
    padding: 0;
}

#TableOfContents li {
    margin-bottom: 0.8rem;
}

#TableOfContents a {
    text-decoration: none;
    color: var(--meta-color);
    font-size: 0.85rem;
    transition: color 0.2s ease;
}

#TableOfContents a:hover {
    color: var(--text-color);
}

.blog-body-content {
    font-size: 1.15rem;
    max-width: 750px;
}

.content-inner-wrapper {
    width: 100%;
    overflow-x: hidden;
}

.blog-body-content > p:first-of-type::first-letter {
    float: left;
    font-family: 'CrimsonPro', serif;
    font-size: 5rem;
    line-height: 0.85;
    padding-right: 15px;
    font-weight: 400;
    color: var(--text-color);
}

.definition {
    font-style: italic;
    border-bottom: none;
    text-decoration: none;
    cursor: help;
    position: relative;
    display: inline;
    color: var(--text-color);
}

.definition::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 150%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #1a1a1a;
    color: #ffffff;
    padding: 10px 15px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-style: normal;
    line-height: 1.4;
    width: 240px;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    z-index: 9999;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    pointer-events: none;
}

.definition::before {
    content: "";
    position: absolute;
    bottom: 135%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #1a1a1a;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    z-index: 9999;
    pointer-events: none;
}

.definition:hover::after,
.definition:hover::before {
    opacity: 1;
    visibility: visible;
    bottom: 120%;
}

@media (max-width: 768px) {
    .blog-grid-container {
        display: block;
        width: 100%;
    }
    .blog-article-layout {
        margin: 2rem auto;
        padding: 0.1rem; 
    }
    .blog-sidebar {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 0 0 2rem 0;
        margin-bottom: 3rem;
        text-align: left;
    }
    .sticky-toc {
        text-align: left;
        position: static;
    }
    .blog-body-content {
        width: 100%;
        max-width: 100%;
        font-size: 1.1rem;
        overflow-wrap: break-word;
    }
    .blog-body-content > p:first-of-type::first-letter {
        font-size: 4rem;
        line-height: 0.9;
        padding-right: 10px;
    }
    .blog-hero-title {
        font-size: 2.2rem;
    }
}