/* ===========================
   Single Post Page
   =========================== */

.spost-section {
    background-color: var(--color-white);
    padding: 80px 0;
}

/* ── 2-col grid ──────────────────────────────────────────── */

.spost-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 60px;
    align-items: start;
}

/* ── Left: Post Content ──────────────────────────────────── */

.spost-img-wrap {
    margin-bottom: 32px;
    border-radius: 12px;
    overflow: hidden;
}

.spost-img {
    width: 100%;
    height: auto;
    display: block;
}

.spost-title {
    font-family: var(--font-heading);
    font-size: clamp(24px, 3.5vw, 38px);
    font-weight: 600;
    color: var(--color-black);
    line-height: 1.25;
    margin: 0 0 28px;
}

/* Post body typography */

.spost-body {
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--color-text);
    line-height: 1.8;
}

.spost-body p {
    margin: 0 0 20px;
}

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

.spost-body h2,
.spost-body h3,
.spost-body h4 {
    font-family: var(--font-heading);
    color: var(--color-black);
    margin: 36px 0 14px;
    line-height: 1.3;
}

.spost-body h2 { font-size: clamp(20px, 2.5vw, 26px); }
.spost-body h3 { font-size: clamp(18px, 2vw, 22px); }
.spost-body h4 { font-size: 18px; }

.spost-body ul,
.spost-body ol {
    padding-left: 24px;
    margin: 0 0 20px;
}

.spost-body li {
    margin-bottom: 8px;
}

.spost-body a {
    color: var(--color-primary);
    text-decoration: none;
}

.spost-body a:hover {
    text-decoration: underline;
}

.spost-body strong {
    font-weight: 700;
    color: var(--color-black);
}

.spost-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    margin: 24px 0;
}

.spost-body blockquote {
    border-left: 4px solid var(--color-primary);
    margin: 28px 0;
    padding: 12px 20px;
    font-style: italic;
    color: var(--color-text);
}

/* ── Right: Sidebar ──────────────────────────────────────── */

.spost-sidebar {
    position: sticky;
    top: 100px;
}

.spost-sidebar-list {
    display: flex;
    flex-direction: column;
}

.spost-sidebar-item {
    padding: 20px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.spost-sidebar-item:first-child {
    padding-top: 0;
}

.spost-sidebar-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.spost-sidebar-title-link {
    text-decoration: none;
}

.spost-sidebar-title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
    color: var(--color-black);
    line-height: 1.4;
    margin: 0 0 6px;
    transition: color 0.2s ease;
}

.spost-sidebar-title-link:hover .spost-sidebar-title {
    color: var(--color-primary);
}

.spost-sidebar-date {
    font-family: var(--font-body);
    font-size: 12px;
    color: var(--color-primary);
    margin: 0 0 8px;
}

.spost-sidebar-excerpt {
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--color-text);
    line-height: 1.65;
    margin: 0 0 10px;
}

.spost-sidebar-readmore {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
}

.spost-sidebar-readmore:hover {
    text-decoration: underline;
}

/* ── Responsive ───────────────────────────────────────────── */

@media (max-width: 1024px) {
    .spost-grid {
        grid-template-columns: 1fr 300px;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .spost-section {
        padding: 60px 0;
    }

    .spost-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .spost-sidebar {
        position: static;
    }
}

@media (max-width: 480px) {
    .spost-section {
        padding: 48px 0;
    }
}
