.post-hero {
    padding: 120px 0 48px;
    border-bottom: 1px solid var(--border);
}
.post-cover {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: 20px;
    display: block;
}
.post-cover-custom-crop {
    max-height: none;
    object-fit: contain;
}
.post-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.post-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent);
    background: rgba(108, 92, 231, 0.12);
    padding: 4px 10px;
    border-radius: 20px;
}
.post-tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
    margin-bottom: 20px;
}
.post-tags-row a {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    padding: 3px 10px;
    border-radius: 14px;
    text-decoration: none;
    transition: color 0.2s, border-color 0.2s;
}
.post-tags-row a:hover {
    color: var(--accent);
    border-color: var(--accent);
}
.post-date {
    font-size: 0.85rem;
    color: var(--text-muted);
}
.post-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-primary);
}
.post-excerpt {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 720px;
}
.post-body-section {
    padding: 30px 0 80px;
}
.post-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 60px;
    align-items: start;
}
.post-content {
    font-size: 1.08rem;
    line-height: 1.68;
    color: #CBD5E1;
    max-width: 760px;
}
.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4 {
    color: var(--text-primary);
    font-weight: 700;
    margin: 2.35rem 0 0.85rem;
    line-height: 1.3;
}
.post-content h1 { font-size: 1.8rem; }
.post-content h2 { font-size: 1.55rem; line-height: 1.25; border-bottom: 1px solid var(--border); padding-bottom: 0.45rem; }
.post-content h3 { font-size: 1.25rem; margin-top: 2rem; }
.post-content p  { margin: 0 0 1.15rem; }
.post-content ul,
.post-content ol { margin: 0 0 1.25rem 1.35rem; }
.post-content li { margin-bottom: 0.55rem; }
.post-content code {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.88em;
    background: rgba(108, 92, 231, 0.12);
    color: #E2DFFF;
    padding: 2px 7px;
    border-radius: 4px;
    border: 1px solid rgba(108, 92, 231, 0.28);
}
.post-content pre {
    background: linear-gradient(180deg, #18243A 0%, #131D31 100%);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 12px;
    padding: 20px 22px;
    overflow-x: auto;
    margin: 1.5rem 0 1.8rem;
    line-height: 1.6;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 14px 32px rgba(0, 0, 0, 0.18);
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 163, 184, 0.55) rgba(15, 23, 42, 0.28);
}
.post-content pre::-webkit-scrollbar {
    height: 7px;
}
.post-content pre::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.28);
    border-radius: 999px;
}
.post-content pre::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.55);
    border-radius: 999px;
}
.post-content pre::-webkit-scrollbar-thumb:hover {
    background: rgba(203, 213, 225, 0.7);
}
.post-content pre code {
    background: none;
    color: #E5EDF7;
    padding: 0;
    font-size: 0.9rem;
    text-shadow: none;
    white-space: pre;
    overflow-wrap: normal;
    border: none;
    border-radius: 0;
}
.post-content .highlight {
    margin: 1.5rem 0 1.8rem;
}
.post-content .highlight pre {
    margin: 0;
}
.post-content .highlight .c,
.post-content .highlight .c1,
.post-content .highlight .cm,
.post-content .highlight .cp,
.post-content .highlight .cs {
    color: #8EA0B8;
    font-style: italic;
}
.post-content .highlight .k,
.post-content .highlight .kc,
.post-content .highlight .kd,
.post-content .highlight .kn,
.post-content .highlight .kp,
.post-content .highlight .kr,
.post-content .highlight .kt,
.post-content .highlight .sql-k {
    color: #A7C7FF;
    font-weight: 700;
}
.post-content .highlight .nb,
.post-content .highlight .nf,
.post-content .highlight .nt,
.post-content .highlight .nc,
.post-content .highlight .cmd {
    color: #F8FAFC;
    font-weight: 700;
}
.post-content .highlight .opt {
    color: #FBBF24;
}
.post-content .highlight .s,
.post-content .highlight .s1,
.post-content .highlight .s2,
.post-content .highlight .se,
.post-content .highlight .sh,
.post-content .highlight .si,
.post-content .highlight .sx {
    color: #8BE9A6;
}
.post-content .highlight .m,
.post-content .highlight .mi,
.post-content .highlight .mf,
.post-content .highlight .mh,
.post-content .highlight .mo {
    color: #67E8F9;
}
.post-content .highlight .nv,
.post-content .highlight .vc,
.post-content .highlight .vg,
.post-content .highlight .vi,
.post-content .highlight .sql-name {
    color: #E2DFFF;
}
.post-content .highlight .o,
.post-content .highlight .ow,
.post-content .highlight .p {
    color: #CBD5E1;
}
.post-content .highlight .err {
    color: #FDA4AF;
}
.post-content blockquote {
    border-left: 3px solid var(--accent);
    margin: 1.5rem 0;
    padding: 6px 0 6px 20px;
    color: #AAB7C7;
    font-style: italic;
}
.post-content a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.post-content hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 2rem 0;
}
.post-content strong { color: var(--text-primary); font-weight: 600; }
.post-related-reading {
    background: rgba(108, 92, 231, 0.08);
    border: 1px solid rgba(108, 92, 231, 0.22);
    border-radius: 14px;
    padding: 18px 20px;
    margin: 2rem 0;
}
.post-related-reading strong {
    display: block;
    margin-bottom: 0.55rem;
}
.post-related-reading ul {
    margin-bottom: 0;
}
.post-cta-card {
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.18), rgba(59, 130, 246, 0.12));
    border: 1px solid rgba(108, 92, 231, 0.32);
    border-radius: 18px;
    padding: 28px;
    margin: 2.4rem 0 0;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}
.post-cta-card h3 {
    margin-top: 0;
    font-size: 1.35rem;
}
.post-cta-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 1.2rem;
}
.post-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    background: var(--accent-gradient);
    text-decoration: none !important;
    font-weight: 700;
    padding: 12px 18px;
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(108, 92, 231, 0.30);
}
.post-cta-link {
    font-weight: 600;
    text-decoration: none !important;
}
.post-content .table-wrap {
    overflow-x: auto;
    margin: 1.5rem 0 2.5rem;
}
.post-content table {
    border-collapse: collapse;
    width: 100%;
    font-size: 0.9rem;
    margin-bottom: 2rem;
}
.post-content th,
.post-content td {
    border: 1px solid var(--border, #2d2d4e);
    padding: 0.55rem 0.9rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    vertical-align: top;
    min-width: 80px;
}
.post-content th {
    background: var(--bg-secondary, #1a1a2e);
    font-weight: 600;
    white-space: nowrap;
}
.post-content tr:nth-child(even) td {
    background: rgba(255,255,255,0.03);
}
.post-sidebar {
    position: sticky;
    top: 100px;
}
.post-sidebar-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 20px;
}
.post-sidebar-card h4 {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #E2E8F0;
    margin-bottom: 16px;
}
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.88rem;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 32px;
    transition: color 0.2s;
}
.back-link:hover { color: var(--accent); }
.post-state {
    text-align: center;
    padding: 80px 0;
    color: var(--text-muted);
}
.post-state a { color: var(--accent); }
.post-sidebar-desc { font-size: 0.88rem; color: #CBD5E1; line-height: 1.6; margin: 0 0 16px; }
.post-related-loading { font-size: 0.88rem; color: var(--text-muted); }
.post-btn-full { width: 100%; text-align: center; display: block; }
.post-cta-heading { margin-top: 0; }
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }
@media (max-width: 900px) {
    .post-layout { grid-template-columns: 1fr; gap: 32px; }
    .post-sidebar { position: static; }
}
@media (max-width: 768px) {
    .post-hero { padding: 100px 0 18px; }
    .post-body-section { padding: 20px 0 60px; }
    .post-cover { max-height: 280px; margin-bottom: 15px; }
    .post-title { font-size: clamp(1.5rem, 5vw, 2.2rem); }
}
@media (max-width: 480px) {
    .post-hero { padding: 90px 0 15px; }
    .post-body-section { padding: 12px 0 48px; }
    .post-content { font-size: 1rem; line-height: 1.68; }
    .post-content pre { padding: 14px; }
}
