﻿.article-content ul,
.article-content ol {
    margin-top: 0.5rem;
    margin-bottom: 1.25rem;
    padding-left: 2rem;
    font-size: 1.15rem;
}

.article-content li {
    margin-bottom: 0.35rem;
    line-height: 1.45;
    font-size: 1.15rem;
}
.article-hero-image {
    width: 50%;
    height: auto;
    display: block;
    margin: -1rem auto 4rem auto;
    border-radius: 16px;
    border: 3px solid var(--color-accent);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
    overflow: hidden;
}
.article-content p {
    font-size: 1.15rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}
.article-content h1 {
    font-size: 2rem;
}
.article-content h2 {
    font-size: 1.7rem;
}
.article-content h3 {
    font-size: 1.5rem;
}
.article-content h1,
.article-content h2,
.article-content h3 {
    line-height: 1.2;
    margin-top: 2.2rem;
    margin-bottom: 1rem;
}

.article-container {
    max-width: 760px;
}
.article-content pre {
    display: block;
    width: 100%;
    box-sizing: border-box;
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 20px;
    margin: 24px 0;
    border-radius: 10px;
    border: 1px solid #333;
    overflow-x: auto;
}

    .article-content pre code {
        display: block;
        font-family: Consolas, "Courier New", monospace;
        white-space: pre;
        background: transparent;
        color: inherit;
        padding: 0;
    }

.article-content p code,
.article-content li code {
    background: #eee7da;
    border: 1px solid #d6cab8;
    border-radius: 5px;
    padding: 0.1rem 0.35rem;
    font-family: Consolas, "Courier New", monospace;
    font-size: 0.9em;
}

.article-content blockquote {
    margin: 24px 0;
    padding: 16px 20px;
    background: #f3eee4;
    border-left: 5px solid var(--color-accent);
    border-radius: 8px;
    color: #3a4650;
    font-style: italic;
}

    .article-content blockquote p:last-child {
        margin-bottom: 0;
    }

.article-content img {
    display: block;
    width: 90%;
    max-width: 100%;
    height: auto;
    margin: 2rem auto;
    border: 1px solid #2f8f5b;
    border-radius: 8px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.14);
}

.article-image-container {
    text-align: center;
    margin: 2rem 0;
}

    .article-image-container img {
        display: block;
        width: 90%;
        max-width: 100%;
        height: auto;
        margin: 0 auto;
        border: 1px solid #2f8f5b;
        border-radius: 8px;
        box-shadow: 0 8px 22px rgba(0, 0, 0, 0.14);
        cursor: zoom-in;
        transition: transform 0.2s ease;
    }

        .article-image-container img:hover {
            transform: scale(1.01);
        }

.image-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.82);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

    .image-overlay.visible {
        opacity: 1;
        visibility: visible;
    }

    .image-overlay img {
        max-width: 95vw;
        max-height: 95vh;
        width: auto;
        height: auto;
        object-fit: contain;
    }