.post-archive-main,
.post-detail-main {
    background: #fff;
    padding-bottom: 96px;
}

.post-archive-hero,
.post-detail-header {
    padding: 150px 0 70px;
    background: linear-gradient(135deg, #f8fbff 0%, #eef6ff 100%);
}

.post-archive-hero .container,
.post-detail-header-inner {
    max-width: 1080px;
}

.post-archive-eyebrow {
    margin: 0 0 10px;
    color: #3b82f6;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.post-archive-hero h1,
.post-detail-header h1 {
    margin: 0;
    color: #1f2937;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.25;
}

.post-archive-hero p:not(.post-archive-eyebrow) {
    max-width: 560px;
    margin: 16px 0 0;
    color: #64748b;
    line-height: 1.7;
}

.post-archive-section {
    padding: 56px 0;
}

.post-archive-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.post-archive-card {
    overflow: hidden;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
    transition: transform .25s ease, box-shadow .25s ease;
}

.post-archive-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.12);
}

.post-archive-card-link {
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.post-archive-thumbnail {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f1f5f9;
}

.post-archive-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}

.post-archive-card:hover .post-archive-thumbnail img {
    transform: scale(1.04);
}

.post-archive-content {
    padding: 22px;
}

.post-archive-content time,
.post-detail-header time {
    display: block;
    color: #94a3b8;
    font-size: .82rem;
}

.post-archive-content h2 {
    margin: 8px 0 10px;
    color: #1f2937;
    font-size: 1.15rem;
    line-height: 1.45;
}

.post-archive-content p {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: #64748b;
    font-size: .9rem;
    line-height: 1.65;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.post-archive-empty {
    padding: 56px 0;
    color: #64748b;
    text-align: center;
}

.post-archive-main .navigation.pagination {
    display: flex;
    justify-content: center;
    margin-top: 42px;
}

.post-archive-main .nav-links {
    display: flex;
    gap: 8px;
    align-items: center;
}

.post-archive-main .page-numbers {
    min-width: 36px;
    padding: 8px 10px;
    border-radius: 8px;
    color: #475569;
    text-align: center;
    text-decoration: none;
}

.post-archive-main .page-numbers.current,
.post-archive-main .page-numbers:hover {
    background: #2563eb;
    color: #fff;
}

.post-detail-back {
    display: inline-block;
    margin-bottom: 26px;
    color: #2563eb;
    font-size: .92rem;
    font-weight: 600;
    text-decoration: none;
}

.post-detail-header h1 {
    max-width: 820px;
    margin-top: 10px;
}

.post-detail-content {
    max-width: 860px;
    padding-top: 56px;
}

.post-detail-thumbnail {
    margin: 0 0 44px;
    overflow: hidden;
    border-radius: 18px;
    background: #f1f5f9;
}

.post-detail-thumbnail img {
    display: block;
    width: 100%;
    max-height: 600px;
    object-fit: cover;
}

.post-detail-body {
    color: #334155;
    font-size: 1rem;
    line-height: 1.9;
}

.post-detail-body > *:first-child {
    margin-top: 0;
}

.post-detail-body img {
    max-width: 100%;
    height: auto;
}

.post-image-zoomable {
    cursor: zoom-in;
}

.post-image-zoomable:focus-visible {
    outline: 3px solid #2563eb;
    outline-offset: 4px;
}

.post-image-lightbox {
    position: fixed;
    z-index: 1100;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    background: rgba(15, 23, 42, .92);
    cursor: zoom-out;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
}

.post-image-lightbox.is-open {
    opacity: 1;
    pointer-events: auto;
}

.post-image-lightbox-image {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    cursor: default;
    transform: scale(.97);
    transition: transform .2s ease;
}

.post-image-lightbox.is-open .post-image-lightbox-image {
    transform: scale(1);
}

.post-image-lightbox-close {
    position: fixed;
    top: 18px;
    right: 24px;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .16);
    color: #fff;
    cursor: pointer;
    font-size: 2rem;
    line-height: 1;
}

.post-image-lightbox-close:hover,
.post-image-lightbox-close:focus-visible {
    background: rgba(255, 255, 255, .3);
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.post-image-lightbox-open {
    overflow: hidden;
}

@media (max-width: 768px) {
    .post-archive-hero,
    .post-detail-header {
        padding: 118px 0 48px;
    }

    .post-archive-section,
    .post-detail-content {
        padding-top: 36px;
    }

    .post-archive-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .post-image-lightbox {
        padding: 20px;
    }

    .post-image-lightbox-close {
        top: 12px;
        right: 14px;
    }
}
