/* Blog post (single-post) styles */

.post-wrapper {
    min-height: calc(100vh - 220px);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 48px;
}

.post-article {
    flex: 1 1 auto;
    width: 100%;
    max-width: 900px;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Single post page - banner + content redesign */
.post-banner {
    width: 100%;
    border-radius: 14px;
    margin-bottom: 28px;
    background: linear-gradient(135deg, #0a1320, #142236);
    min-height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(83, 195, 255, 0.18);
    padding: 36px 48px;
    box-sizing: border-box;
    text-align: center;
}

.post-banner-overlay {
    width: 100%;
    max-width: 720px;
}



.post-banner-tag {
    display: inline-block;
    background: rgba(77, 166, 255, 0.12);
    border: 1px solid rgba(77, 166, 255, 0.38);
    color: #4da6ff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 4px;
    margin-bottom: 12px;
    font-family: 'Blogger', sans-serif;
}

.post-banner-title {
    font-size: 2.6rem;
    color: #ffea63;
    font-family: 'WMCT_One', sans-serif;
    margin: 0 0 10px 0;
    line-height: 1.15;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.75);
}

.post-banner-meta {
    color: #93b5d0;
    font-size: 0.88rem;
    font-family: 'Blogger', sans-serif;
    display: flex;
    gap: 14px;
    align-items: center;
    justify-content: center;
}

.post-banner-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.post-divider {
    width: 56px;
    height: 3px;
    background: linear-gradient(90deg, #4da6ff, #ffea63);
    border-radius: 2px;
    margin: 0 auto 26px;
}

.post-content {
    color: #cfe0ed;
    line-height: 1.85;
    font-size: 1.25rem;
    font-family: 'Blogger', sans-serif;
}

.post-content p {
    margin: 0 0 14px 0;
}

.post-content h1,
.post-content h2,
.post-content h3 {
    color: #ffea63;
    font-family: 'WMCT_One', sans-serif;
    margin: 28px 0 10px 0;
    line-height: 1.2;
}

.post-content h2 {
    font-size: 1.4rem;
    border-bottom: 1px solid rgba(255, 234, 99, 0.15);
    padding-bottom: 6px;
}

.post-content h3 {
    font-size: 1.15rem;
    color: #b8d8f0;
}

.post-content a {
    color: #4da6ff;
    text-underline-offset: 3px;
}

.post-content blockquote {
    border-left: 3px solid #4da6ff;
    margin: 18px 0;
    padding: 12px 20px;
    background: rgba(77, 166, 255, 0.06);
    border-radius: 0 8px 8px 0;
    color: #a8c5da;
    font-style: italic;
}

.post-content ul,
.post-content ol {
    padding-left: 22px;
    margin: 0 0 14px 0;
}

.post-content li {
    margin-bottom: 6px;
}

.post-content code {
    background: rgba(77, 166, 255, 0.1);
    color: #7fd4ff;
    border-radius: 4px;
    padding: 1px 6px;
    font-size: 0.9em;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #4da6ff;
    font-size: 0.88rem;
    font-family: 'Blogger', sans-serif;
    margin-bottom: 20px;
    opacity: 0.8;
    transition: opacity .15s ease;
    text-decoration: none;
}

.back-link:hover {
    opacity: 1;
}

/* Blog content images --------------------------------------------------------------- */
/* Combined rule below; this block merged into responsive defaults */

.blog-img-figure {
    display: block;
    margin: 28px auto;
    text-align: center;
}

.blog-img-figure .blog-content-img {
    margin: 0 auto;
}

.blog-img-caption {
    margin-top: 8px;
    font-size: 0.85rem;
    color: #6db3d9;
    font-family: 'Blogger', sans-serif;
    letter-spacing: 0.3px;
    font-style: italic;
    opacity: 0.88;
}

.blog-img-zoomable {
    cursor: zoom-in;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.blog-img-zoomable:hover {
    opacity: 0.88;
    transform: scale(1.01);
}

/* Lightbox --------------------------------------------------------------------------- */
#blog-lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 9000;
    background: rgba(0, 0, 0, 0.88);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: lightbox-in 0.2s ease;
}

#blog-lightbox-overlay.blog-lightbox-closing {
    animation: lightbox-out 0.18s ease forwards;
}

@keyframes lightbox-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes lightbox-out {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

.blog-lightbox-img {
    max-width: 92vw;
    max-height: 88vh;
    width: auto;
    height: auto;
    border-radius: 10px;
    object-fit: contain;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8);
    animation: lightbox-img-in 0.22s ease;
}

@keyframes lightbox-img-in {
    from {
        transform: scale(0.92);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.blog-lightbox-close {
    position: fixed;
    top: 14px;
    right: 16px;
    color: #4da6ff;
    font-size: 28px;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(77, 166, 255, 0.18);
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9001;
    transition: background 150ms ease, transform 150ms ease, color 150ms ease;
    line-height: 1;
    flex-shrink: 0;
}

.blog-lightbox-close:hover {
    transform: scale(1.12);
    background: rgba(77, 166, 255, 0.15);
    color: #fff;
}

@media (max-width: 700px) {
    .post-banner {
        padding: 24px 20px;
    }

    .post-banner-title {
        font-size: 1.8rem;
    }

    .post-content {
        font-size: 1.05rem;
        line-height: 1.75;
    }
}

@media (max-width: 480px) {
    .post-banner {
        padding: 16px 12px;
        border-radius: 10px;
    }

    .post-banner-title {
        font-size: 1.35rem;
    }

    .post-banner-meta {
        font-size: 0.8rem;
        flex-wrap: wrap;
        gap: 6px;
    }

    .post-article {
        padding: 0 10px;
    }

    .post-content {
        font-size: 0.95rem;
    }

    .post-content h2 {
        font-size: 1.15rem;
    }

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

/* Fonts */
.post-banner-title {
    font-family: 'WMCT_One', sans-serif;
}

.post-content,
.post-banner-meta,
.back-link,
.blog-img-caption {
    font-family: 'Blogger', sans-serif;
}



/* Images: fully visible, never cropped, proper responsive scaling */
.post-content img,
.blog-content-img {
    max-width: 100%;
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
    margin: 24px auto;
}

/* Desktop: images bleed slightly beyond text column for visual impact */
@media (min-width: 860px) {

    .post-content .blog-content-img,
    .post-content .blog-img-figure,
    .post-content img {
        width: calc(100% + 40px);
        max-width: none;
        margin-left: -20px;
        margin-right: -20px;
        margin-top: 40px;
        box-shadow: 0 8px 26px rgba(0, 0, 0, 0.45);
    }

    .post-content .blog-img-figure .blog-content-img {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
    }
}