.single-post-page{
    background:#f5f7fb;
    color:#071237;
    padding-top:72px;
}

.single-post-container{
    width:min(1120px,calc(100% - 48px));
    margin:0 auto;
}

.single-post-container.narrow{
    width:min(1180px,calc(100% - 48px));
}

.single-post-hero{
    padding:96px 0 54px;
    background:linear-gradient(135deg,#071237,#10245d);
    color:#ffffff;
    text-align:center;
}

.back-link{
    display:inline-flex;
    margin-bottom:26px;
    color:#ffc928;
    font-weight:800;
    text-decoration:none;
}

.back-link:hover{
    text-decoration:underline;
}

.post-meta{
    display:flex;
    justify-content:center;
    gap:14px;
    flex-wrap:wrap;
    margin-bottom:20px;
    color:#c5cedf;
    font-size:14px;
    font-weight:700;
}

.post-meta a{
    color:#c5cedf;
    text-decoration:none;
}

.post-meta a:hover{
    color:#ffc928;
}

.single-post-hero h1{
    max-width:1160px;
    margin:0 auto;
    font-size:clamp(2.4rem,6vw,5rem);
    line-height:1.08;
}

.post-excerpt{
    max-width:720px;
    margin:24px auto 0;
    color:#d7deeb;
    font-size:1.18rem;
    line-height:1.7;
}

.featured-image{
    margin:-26px 0 0;
    overflow:hidden;
    border-radius:8px;
    box-shadow:0 22px 60px rgba(7,18,55,.18);
    background:#dfe6f0;
}

.featured-image img{
    display:block;
    width:100%;
    height:auto;
    object-fit:contain;
}

.post-layout{
    display:grid;
    grid-template-columns:minmax(0,1fr) 320px;
    gap:48px;
    align-items:start;
    padding:72px 0;
}

.post-content{
    padding:42px;
    border:1px solid #dde4ef;
    border-radius:8px;
    background:#ffffff;
    box-shadow:0 18px 45px rgba(7,18,55,.07);
}

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

.post-content > *:last-child{
    margin-bottom:0;
}

.post-content p,
.post-content li{
    color:#344158;
    font-size:1.08rem;
    line-height:1.85;
}

.post-content h2,
.post-content h3,
.post-content h4{
    margin:42px 0 16px;
    color:#071237;
    line-height:1.2;
}

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

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

.post-content a{
    color:#0d5bd7;
    font-weight:700;
}

.post-content blockquote{
    margin:34px 0;
    padding:24px 28px;
    border-left:5px solid #ffc928;
    background:#f5f7fb;
    border-radius:0 8px 8px 0;
}

.post-content img{
    border-radius:8px;
}

.post-content figure{
    margin:34px 0;
}

.post-content figcaption{
    margin-top:10px;
    color:#68758b;
    font-size:14px;
    text-align:center;
}

.post-sidebar{
    position:sticky;
    top:112px;
    display:grid;
    gap:20px;
}

.sidebar-panel{
    padding:26px;
    border:1px solid #dde4ef;
    border-radius:8px;
    background:#ffffff;
    box-shadow:0 14px 34px rgba(7,18,55,.06);
}

.sidebar-panel h2{
    margin:0 0 12px;
    color:#071237;
    font-size:1.25rem;
}

.sidebar-panel p{
    margin:0 0 18px;
    color:#46536a;
    line-height:1.7;
}

.sidebar-panel > a{
    display:inline-flex;
    align-items:center;
    min-height:46px;
    padding:0 18px;
    border-radius:8px;
    background:#071237;
    color:#ffffff;
    font-weight:800;
    text-decoration:none;
}

.recent-post-list{
    display:grid;
    gap:14px;
}

.recent-post-list a{
    display:grid;
    gap:5px;
    padding-bottom:14px;
    border-bottom:1px solid #e7ecf4;
    color:#071237;
    text-decoration:none;
}

.recent-post-list a:last-child{
    padding-bottom:0;
    border-bottom:0;
}

.recent-post-list span{
    color:#68758b;
    font-size:13px;
    font-weight:700;
}

.recent-post-list strong{
    line-height:1.35;
}

.page-links{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    margin-top:34px;
    font-weight:800;
}

.post-navigation{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:20px;
    padding-bottom:72px;
}

.post-navigation div:last-child{
    text-align:right;
}

.post-navigation a{
    display:block;
    min-height:100%;
    padding:24px;
    border:1px solid #dde4ef;
    border-radius:8px;
    background:#ffffff;
    color:#071237;
    text-decoration:none;
}

.post-navigation span{
    display:block;
    margin-bottom:8px;
    color:#68758b;
    font-size:13px;
    font-weight:800;
    text-transform:uppercase;
}

.post-navigation strong{
    line-height:1.35;
}

@media(max-width:900px){
    .post-layout{
        grid-template-columns:1fr;
        padding:52px 0;
    }

    .post-sidebar{
        position:static;
    }
}

@media(max-width:640px){
    .single-post-container,
    .single-post-container.narrow{
        width:min(100% - 32px,1120px);
    }

    .featured-image img{
        max-height:560px;
        object-fit:cover;
    }

    .single-post-hero{
        padding:72px 0 42px;
    }

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

    .post-content p,
    .post-content li{
        font-size:1rem;
    }

    .post-navigation{
        grid-template-columns:1fr;
    }

    .post-navigation div:last-child{
        text-align:left;
    }
}
