.blog {
    padding: 0;
}

.blog-entry {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 1.5rem;
    padding: 1.25rem;
    margin-bottom: 1rem;

    border: 1px solid #d0d0d0;
    border-radius: 8px;
    background: #f8f8f8;

    box-sizing: border-box;

    transition:
        background-color 0.4s ease,
        border-color 0.4s ease,
        color 0.4s ease;
}

.blog-entry:last-child {
    margin-bottom: 0;
}

.blog-date {
    font-size: 0.9rem;
    color: #666;
    padding-top: 0.25rem;

    transition: color 0.4s ease;
}

.blog-content h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.15rem;
    font-weight: bold;
}

.blog-content h3 a {
    color: #2f5f8f;
    text-decoration: none;

    transition: color 0.4s ease;
}

.blog-content h3 a:hover {
    text-decoration: underline;
}

.blog-content p {
    margin: 0 0 0.7rem 0;
    line-height: 1.5;
}

.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.blog-tags span {
    font-size: 0.75rem;
    color: #666;
    background: #eaeaea;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;

    transition:
        background-color 0.4s ease,
        color 0.4s ease;
}

@media (max-width: 650px) {
    .blog-entry {
        display: block;
    }

    .blog-date {
        margin-bottom: 0.4rem;
    }
}

.blog-post {
    max-width: 850px;
    margin: 0 auto;
}

.blog-post-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #d0d0d0;

    transition: border-color 0.4s ease;
}

.blog-post-header h1 {
    margin: 0 0 0.5rem 0;
    color: #2f5f8f;
    font-size: 2rem;
    font-weight: bold;

    transition: color 0.4s ease;
}

.blog-post-meta {
    color: #666;
    font-size: 0.9rem;

    transition: color 0.4s ease;
}

.blog-post-content {
    line-height: 1.5;
}

.blog-post-content p {
    margin: 0 0 1rem 0;
}

.blog-post-content h2 {
    margin: 2rem 0 0.75rem 0;
    color: #2f5f8f;
    font-size: 1.35rem;

    transition: color 0.4s ease;
}

.blog-post-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1.5rem auto;
    border-radius: 8px;
}

.blog-post-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-top: 4rem;
    padding: 1.25rem 1.5rem;

    background: #f5f5f5;
    border: 1px solid #d8d8d8;
    border-radius: 8px;

    box-sizing: border-box;

    transition:
        background-color 0.4s ease,
        border-color 0.4s ease;
}

.blog-post-footer-left {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.footer-label {
    color: #2f5f8f;
    font-weight: bold;
    font-size: 0.95rem;

    transition: color 0.4s ease;
}

.footer-meta {
    color: #888;
    font-size: 0.8rem;

    transition: color 0.4s ease;
}

.back-to-blog {
    color: #333;
    text-decoration: none;
    font-size: 0.85rem;

    transition: color 0.4s ease;
}

.back-to-blog:hover {
    color: #c00;
    text-decoration: underline;
}


/* =========================
   DARK MODE
   ========================= */

html[data-theme="dark"] .blog-entry {
    background: #303030;
    border-color: #444;
    color: #e0e0e0;
}

html[data-theme="dark"] .blog-date {
    color: #aaa;
}

html[data-theme="dark"] .blog-content h3 a {
    color: #8fb9df;
}

html[data-theme="dark"] .blog-tags span {
    background: #444;
    color: #aaa;
}

html[data-theme="dark"] .blog-post-header {
    border-color: #444;
}

html[data-theme="dark"] .blog-post-header h1,
html[data-theme="dark"] .blog-post-content h2 {
    color: #8fb9df;
}

html[data-theme="dark"] .blog-post-meta {
    color: #aaa;
}

html[data-theme="dark"] .blog-post-footer {
    background: #303030;
    border-color: #444;
}

html[data-theme="dark"] .footer-label {
    color: #8fb9df;
}

html[data-theme="dark"] .footer-meta {
    color: #999;
}

html[data-theme="dark"] .back-to-blog {
    color: #e0e0e0;
}