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

/* Blog Content */
.blog-content {
    max-width: 750px;
}

.blog-post {
    margin-bottom: 1rem;
    padding-top: 5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.blog-post:last-child {
    border-bottom: none;
}

.post-date {
    display: block;
    font-size: 1.75rem;
    font-weight: 300;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.post-topic {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.post-body p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Markdown Content Styles */
.post-body h1,
.post-body h2,
.post-body h3,
.post-body h4,
.post-body h5,
.post-body h6 {
    color: var(--text-primary);
    margin-top: 2rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.post-body h1 { font-size: 1.75rem; font-weight: 600; }
.post-body h2 { font-size: 1.5rem; font-weight: 600; }
.post-body h3 { font-size: 1.25rem; font-weight: 500; }
.post-body h4 { font-size: 1.1rem; font-weight: 500; }

.post-body ul,
.post-body ol {
    margin-bottom: 1.5rem;
    padding-left: 1.75rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.post-body ul { list-style-type: disc; }
.post-body ol { list-style-type: decimal; }

.post-body li {
    margin-bottom: 0.4rem;
    font-size: 1.05rem;
}

.post-body li > ul,
.post-body li > ol {
    margin-top: 0.4rem;
    margin-bottom: 0;
}

.post-body blockquote {
    border-left: 3px solid var(--accent);
    margin: 1.5rem 0;
    padding: 0.75rem 1.25rem;
    background-color: var(--bg-secondary);
    border-radius: 0 6px 6px 0;
    color: var(--text-secondary);
    font-style: italic;
}

.post-body blockquote p {
    margin-bottom: 0.5rem;
}

.post-body blockquote p:last-child {
    margin-bottom: 0;
}

.post-body code {
    font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
    font-size: 0.9em;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    color: var(--text-primary);
}

.post-body pre {
    margin: 1.5rem 0;
    padding: 1.25rem;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow-x: auto;
}

.post-body pre code {
    background: none;
    border: none;
    padding: 0;
    font-size: 0.9rem;
    line-height: 1.6;
}

.post-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 1rem;
}

.post-body th,
.post-body td {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    text-align: left;
    color: var(--text-secondary);
}

.post-body th {
    background-color: var(--bg-secondary);
    font-weight: 500;
    color: var(--text-primary);
}

.post-body hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 2rem 0;
}

.post-body a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.post-body a:hover {
    border-bottom-color: var(--accent);
}

.post-body strong {
    color: var(--text-primary);
    font-weight: 600;
}

.post-body em {
    font-style: italic;
}

/* Blog Images */
.blog-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
    display: block;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-image:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.post-body img.blog-image {
    margin: 2rem 0;
    
}

/* Comments Section */
.comments-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.comments-section h3 {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.comments-list {
    margin-bottom: 2rem;
}

.comment {
    background-color: var(--bg-secondary);
    padding: 1.25rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.comment-author {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.comment-date {
    font-size: 0.85rem;
    color: var(--text-tertiary);
    margin-left: 0.5rem;
}

.comment-content {
    color: var(--text-secondary);
    line-height: 1.6;
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.comment-name {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
}

.comment-text {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    resize: vertical;
    min-height: 100px;
}

.comment-name:focus,
.comment-text:focus {
    outline: none;
    border-color: var(--accent);
}

.comment-form button {
    align-self: flex-start;
    padding: 0.75rem 1.5rem;
    background-color: var(--accent);
    color: var(--bg-primary);
    border: none;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.95rem;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.comment-form button:hover {
    opacity: 0.9;
}

/* Timeline Sidebar */
.blog-timeline {
    position: sticky;
    top: 100px;
    background-color: var(--bg-secondary);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.blog-timeline h3 {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.timeline-nav {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.timeline-item {
    display: block;
    text-decoration: none;
    padding: 1rem;
    background-color: var(--bg-primary);
    border-radius: 6px;
    border: 1px solid var(--border-color);
    transition: border-color 0.2s ease;
}

.timeline-item:hover {
    border-color: var(--accent);
}

.timeline-item time {
    display: block;
    font-size: 0.85rem;
    color: var(--text-tertiary);
    margin-bottom: 0.5rem;
}

.timeline-title {
    display: block;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.timeline-summary {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .blog-container {
        grid-template-columns: 1fr;
    }
    
    .blog-timeline {
        position: static;
        order: -1;
    }
    
    .timeline-nav {
        flex-direction: row;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        gap: 1rem;
        scroll-snap-type: x mandatory;
        padding-bottom: 0.5rem;
    }
    
    .timeline-item {
        min-width: 250px;
        scroll-snap-align: start;
    }
}

@media (max-width: 640px) {
    .blog-timeline {
        padding: 1.5rem;
    }
    
    .timeline-nav {
        flex-direction: column;
    }
    
    .timeline-item {
        min-width: 0;
    }
}
