        /* blogpost.css — modern redesign */

        /* ===== READING PROGRESS BAR ===== */
        .read-progress-bar {
            position: fixed;
            top: 0;
            left: 0;
            height: 3px;
            width: 0%;
            background: linear-gradient(90deg, #2d4791, #4a6abf, #6b8fd4);
            z-index: 9999;
            transition: width 0.08s linear;
            border-radius: 0 2px 2px 0;
        }

        /* ===== POST HEADER ===== */
        .post-header {
            background: linear-gradient(135deg, #0f172a 0%, #1e3370 55%, #2d4791 100%);
            padding: 120px 5% 80px;
            position: relative;
            overflow: hidden;
        }

        .post-header::before {
            content: '';
            position: absolute;
            top: -120px;
            right: -80px;
            width: 500px;
            height: 500px;
            border-radius: 50%;
            background: radial-gradient(circle, rgba(74,106,191,0.25) 0%, transparent 70%);
            pointer-events: none;
        }

        .post-header::after {
            content: '';
            position: absolute;
            bottom: -80px;
            left: 10%;
            width: 350px;
            height: 350px;
            border-radius: 50%;
            background: radial-gradient(circle, rgba(45,71,145,0.2) 0%, transparent 70%);
            pointer-events: none;
        }

        .post-header-inner {
            max-width: 820px;
            margin: 0 auto;
            position: relative;
            z-index: 1;
        }

        .post-header-top-row {
            display: flex;
            align-items: center;
            gap: 16px;
            margin-bottom: 24px;
        }

        .back-to-blog {
            display: inline-flex;
            align-items: center;
            gap: 7px;
            padding: 8px 18px 8px 12px;
            background: rgba(255,255,255,0.1);
            border: 1px solid rgba(255,255,255,0.18);
            border-radius: 50px;
            color: rgba(255,255,255,0.85);
            text-decoration: none;
            font-size: 13px;
            font-weight: 500;
            margin-bottom: 0;
            transition: background 0.2s, transform 0.2s, color 0.2s;
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
        }

        .back-to-blog:hover {
            background: rgba(255,255,255,0.18);
            color: #fff;
            transform: translateX(-3px);
        }

        .post-header .post-category {
            display: inline-flex;
            align-items: center;
            padding: 8px 18px 8px 12px;
            background: rgba(255,255,255,0.14);
            border: 1px solid rgba(255,255,255,0.22);
            border-radius: 50px;
            font-size: 11px;
            font-weight: 700;
            color: #fff;
            margin-bottom: 0;
            letter-spacing: 1px;
            text-transform: uppercase;
            backdrop-filter: blur(8px);
        }

        .post-header .post-category:empty {
            display: none;
        }

        .post-header h1 {
            font-size: 40px;
            font-weight: 800;
            color: #fff;
            line-height: 1.25;
            margin-bottom: 32px;
            letter-spacing: -0.5px;
            max-width: 780px;
        }

        .post-meta {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 16px;
            flex-wrap: wrap;
        }

        .post-meta-left {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .post-meta-avatar {
            width: 44px;
            height: 44px;
            border-radius: 50%;
            background: rgba(255,255,255,0.18);
            border: 2px solid rgba(255,255,255,0.25);
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            color: rgba(255,255,255,0.9);
        }

        .post-meta-info {
            display: flex;
            flex-direction: column;
            gap: 3px;
        }

        .post-author-name {
            font-size: 14px;
            font-weight: 600;
            color: #fff;
        }

        .post-date-text {
            font-size: 12px;
            color: rgba(255,255,255,0.6);
        }

        .post-share-btns {
            display: flex;
            gap: 8px;
        }

        .share-btn {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 8px 16px;
            background: rgba(255,255,255,0.1);
            border: 1px solid rgba(255,255,255,0.2);
            border-radius: 50px;
            color: rgba(255,255,255,0.85);
            font-size: 12px;
            font-weight: 500;
            cursor: pointer;
            transition: background 0.2s, color 0.2s;
            font-family: 'Poppins', sans-serif;
        }

        .share-btn:hover {
            background: rgba(255,255,255,0.2);
            color: #fff;
        }

        /* ===== FEATURED IMAGE ===== */
        .post-featured-image {
            max-width: 920px;
            margin: -48px auto 0;
            padding: 0 5%;
            position: relative;
            z-index: 2;
        }

        .post-featured-image img {
            width: 100%;
            height: 420px;
            object-fit: cover;
            border-radius: 20px;
            box-shadow: 0 24px 64px rgba(15,23,42,0.30);
            display: block;
        }

        .post-featured-image::after {
            content: '';
            position: absolute;
            inset: 0;
            border-radius: 20px;
            background-image: radial-gradient(circle, rgba(255,255,255,0.13) 1.5px, transparent 1.5px);
            background-size: 30px 30px;
            pointer-events: none;
            z-index: 3;
        }

        /* ===== POST LAYOUT ===== */
        .post-layout {
            max-width: 1160px;
            margin: 0 auto;
            padding: 36px 3% 56px;
            display: grid;
            grid-template-columns: 1fr 300px;
            gap: 40px;
            align-items: start;
        }

        /* ===== POST BODY ===== */
        .post-container {
            min-width: 0;
        }

        .post-body {
            font-size: 16px;
            line-height: 1.9;
            color: #374151;
        }

        .post-body h1 {
            font-size: 32px;
            font-weight: 800;
            margin-top: 0;
            margin-bottom: 20px;
            color: #1a1a2e;
            letter-spacing: -0.5px;
            line-height: 1.25;
        }

        .post-body h2 {
            font-size: 26px;
            font-weight: 800;
            margin-top: 36px;
            margin-bottom: 16px;
            color: #1a1a2e;
            letter-spacing: -0.3px;
            position: relative;
            padding-left: 20px;
        }

        .post-body h2::before {
            content: '';
            position: absolute;
            left: 0;
            top: 5px;
            bottom: 5px;
            width: 4px;
            background: linear-gradient(180deg, #2d4791, #4a6abf);
            border-radius: 4px;
        }

        .post-body h3 {
            font-size: 20px;
            font-weight: 700;
            margin-top: 36px;
            margin-bottom: 14px;
            color: #1a1a2e;
        }

        .post-body h4 {
            font-size: 17px;
            font-weight: 700;
            margin-top: 28px;
            margin-bottom: 12px;
            color: #374151;
        }

        .post-body p {
            font-size: 16px;
            line-height: 1.9;
            color: #4b5563;
            margin-bottom: 5px;
        }

        /* Collapse empty paragraphs/breaks from Quill editor */
        .post-body p:empty,
        .post-body p:has(br:only-child),
        .post-body p br:only-child {
            display: none;
            margin: 0;
            padding: 0;
            height: 0;
        }

        .post-body ul,
        .post-body ol {
            margin: 2px 0 2px 8px;
            padding-left: 20px;
        }

        /* Quill creates one <ul> per item — collapse gap between them */
        .post-body ul + ul,
        .post-body ol + ol,
        .post-body ul + ol,
        .post-body ol + ul {
            margin-top: 0;
        }

        /* Also collapse when an empty <p> sits between two lists */
        .post-body ul + p:empty + ul,
        .post-body ul + p:has(br:only-child) + ul {
            margin-top: 0;
        }

        .post-body ul { list-style: disc; }
        .post-body ol { list-style: decimal; }

        .post-body ul li,
        .post-body ol li {
            font-size: 15.5px;
            line-height: 1.7;
            color: #4b5563;
            margin: 0;
            padding-left: 4px;
        }

        /* Quill wraps li content in <p> — remove its margin */
        .post-body li p,
        .post-body li p:last-child,
        .post-body li > p {
            margin: 0 !important;
            padding: 0;
            line-height: 1.7;
        }

        /* Collapse empty li from Quill */
        .post-body li:empty,
        .post-body li p:empty,
        .post-body li p:has(br:only-child) {
            display: none;
        }

        .post-body strong {
            color: #1a1a2e;
            font-weight: 700;
        }

        .post-body em { font-style: italic; }

        .post-body a {
            color: #2d4791;
            text-decoration: underline;
            text-underline-offset: 3px;
            transition: color 0.2s;
        }

        .post-body a:hover { color: #1e3370; }

        .post-body blockquote {
            margin: 36px 0;
            padding: 24px 28px 24px 32px;
            background: linear-gradient(135deg, #f0f4fd, #e8edf8);
            border-left: 4px solid #2d4791;
            border-radius: 0 14px 14px 0;
            position: relative;
        }

        .post-body blockquote::before {
            content: '\201C';
            position: absolute;
            top: -10px;
            left: 20px;
            font-size: 72px;
            color: #2d4791;
            opacity: 0.15;
            font-family: Georgia, serif;
            line-height: 1;
        }

        .post-body blockquote p {
            font-size: 17px;
            font-style: italic;
            color: #2d4791;
            margin: 0;
            line-height: 1.7;
            font-weight: 500;
        }

        .post-body pre {
            background: #1a1a2e;
            color: #e2e8f0;
            padding: 24px 28px;
            border-radius: 14px;
            overflow-x: auto;
            font-size: 14px;
            line-height: 1.65;
            margin: 28px 0;
        }

        .post-body code {
            background: #e8edf8;
            color: #2d4791;
            padding: 2px 7px;
            border-radius: 5px;
            font-size: 14px;
        }

        .post-body pre code {
            background: none;
            color: inherit;
            padding: 0;
            border-radius: 0;
        }

        .post-body img {
            width: 100%;
            height: auto;
            border-radius: 14px;
            margin: 28px 0;
            box-shadow: 0 8px 30px rgba(0,0,0,0.1);
        }

        .post-body table {
            width: 100%;
            border-collapse: collapse;
            margin: 28px 0;
            font-size: 14px;
        }

        .post-body th {
            background: #2d4791;
            color: #fff;
            padding: 12px 16px;
            text-align: left;
            font-weight: 600;
        }

        .post-body td {
            padding: 11px 16px;
            border-bottom: 1px solid #e5e9f0;
            color: #4b5563;
        }

        .post-body tr:nth-child(even) td { background: #f8fafc; }

        /* ===== POST FOOTER ACTIONS ===== */
        .post-footer-actions {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 32px 0 0;
            margin-top: 48px;
            border-top: 1px solid #e5e9f0;
            flex-wrap: wrap;
            gap: 14px;
        }

        .back-to-blog-btn {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 11px 24px 11px 18px;
            background: #e8edf8;
            border: 1px solid #c7d2ee;
            border-radius: 50px;
            color: #2d4791;
            text-decoration: none;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: background 0.2s, transform 0.2s;
            font-family: 'Poppins', sans-serif;
        }

        .back-to-blog-btn:hover {
            background: #d6dff5;
            transform: translateX(-3px);
        }

        .share-btn-dark {
            display: inline-flex;
            align-items: center;
            gap: 7px;
            padding: 11px 24px;
            background: #2d4791;
            border: none;
            border-radius: 50px;
            color: #fff;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: background 0.2s, transform 0.2s;
            font-family: 'Poppins', sans-serif;
        }

        .share-btn-dark:hover {
            background: #1e3370;
            transform: translateY(-2px);
        }

        /* ===== SIDEBAR ===== */
        .post-sidebar {
            position: sticky;
            top: 88px;
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .sidebar-card {
            background: #fff;
            border: 1px solid #e5e9f0;
            border-radius: 18px;
            padding: 24px;
            box-shadow: 0 4px 20px rgba(0,0,0,0.05);
        }

        .sidebar-card-title {
            font-size: 11px;
            font-weight: 700;
            color: #9ca3af;
            text-transform: uppercase;
            letter-spacing: 1px;
            margin-bottom: 16px;
        }

        /* CTA sidebar card */
        .sidebar-cta {
            background: linear-gradient(140deg, #1e3370 0%, #2d4791 60%, #3d5aa8 100%);
            border: none;
            position: relative;
            overflow: hidden;
        }

        .sidebar-cta::before {
            content: '';
            position: absolute;
            top: -40px;
            right: -40px;
            width: 180px;
            height: 180px;
            border-radius: 50%;
            background: rgba(255,255,255,0.07);
            pointer-events: none;
        }

        .sidebar-cta::after {
            content: '';
            position: absolute;
            bottom: -30px;
            left: -30px;
            width: 130px;
            height: 130px;
            border-radius: 50%;
            background: rgba(255,255,255,0.05);
            pointer-events: none;
        }

        .sidebar-cta .sidebar-card-title {
            color: rgba(255,255,255,0.55);
            position: relative;
            z-index: 1;
        }

        .sidebar-cta h4 {
            font-size: 17px;
            font-weight: 700;
            color: #fff;
            margin-bottom: 10px;
            line-height: 1.4;
            position: relative;
            z-index: 1;
        }

        .sidebar-cta p {
            font-size: 13px;
            color: rgba(255,255,255,0.72);
            line-height: 1.65;
            margin-bottom: 20px;
            position: relative;
            z-index: 1;
        }

        .sidebar-cta-btn {
            display: block;
            width: 100%;
            padding: 12px 18px;
            background: #fff;
            border: none;
            border-radius: 10px;
            color: #2d4791;
            font-size: 13px;
            font-weight: 700;
            cursor: pointer;
            transition: transform 0.2s, box-shadow 0.2s;
            text-align: center;
            font-family: 'Poppins', sans-serif;
            position: relative;
            z-index: 1;
            text-decoration: none;
        }

        .sidebar-cta-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 24px rgba(0,0,0,0.18);
            color: #2d4791;
        }

        /* Share sidebar */
        .sidebar-share-btns {
            display: flex;
            flex-direction: column;
            gap: 9px;
        }

        .sidebar-share-btn {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 10px 14px;
            border: 1px solid #e5e9f0;
            border-radius: 10px;
            background: #f8fafc;
            color: #374151;
            font-size: 13px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s;
            text-decoration: none;
            font-family: 'Poppins', sans-serif;
            width: 100%;
            text-align: left;
        }

        .sidebar-share-btn:hover {
            background: #e8edf8;
            border-color: #2d4791;
            color: #2d4791;
            transform: translateX(3px);
        }

        .sidebar-share-btn svg {
            flex-shrink: 0;
            width: 17px;
            height: 17px;
        }

        /* ===== RESPONSIVE ===== */
        @media (max-width: 575.98px) {
            .post-header { padding: 90px 4% 52px; }
            .post-header h1 { font-size: 24px; letter-spacing: -0.2px; }
            .post-header .post-category { font-size: 10px; }
            .post-featured-image { margin-top: -28px; }
            .post-featured-image img { height: 200px; border-radius: 12px; }
            .post-layout { grid-template-columns: 1fr; gap: 0; padding: 24px 4% 48px; }
            .post-sidebar { display: none; }
            .post-share-btns { display: none; }
            .post-body p { font-size: 15px; }
            .post-body h2 { font-size: 20px; margin-top: 36px; }
            .post-body h3 { font-size: 18px; }
            .post-footer-actions { flex-direction: column; align-items: stretch; }
            .back-to-blog-btn, .share-btn-dark { justify-content: center; }
        }

        @media (min-width: 576px) and (max-width: 767.98px) {
            .post-header { padding: 100px 4% 58px; }
            .post-header h1 { font-size: 28px; }
            .post-featured-image img { height: 260px; border-radius: 14px; }
            .post-layout { grid-template-columns: 1fr; gap: 0; padding: 28px 4% 56px; }
            .post-sidebar { display: none; }
        }

        @media (min-width: 768px) and (max-width: 991.98px) {
            .post-header h1 { font-size: 32px; }
            .post-featured-image img { height: 320px; }
            .post-layout { grid-template-columns: 1fr; gap: 0; padding: 32px 4% 60px; }
            .post-sidebar { display: none; }
        }

        @media (min-width: 992px) and (max-width: 1199.98px) {
            .post-layout { grid-template-columns: 1fr 260px; gap: 44px; }
            .post-header h1 { font-size: 36px; }
        }

        @media (min-width: 1400px) {
            .post-header { padding: 130px 8% 90px; }
            .post-header h1 { font-size: 48px; }
            .post-layout { max-width: 1280px; padding: 40px 5% 70px; }
        }

        /* =========================================================
           RESPONSIVE TYPOGRAPHY — Bootstrap breakpoints (mobile-first)
           XS <576 · SM ≥576 · MD ≥768 · LG ≥992 · XL ≥1200 · XXL ≥1400
           ========================================================= */
        .post-header h1 { font-size: 26px; font-weight: 800; }
        @media (min-width: 576px)  { .post-header h1 { font-size: 30px; } }
        @media (min-width: 768px)  { .post-header h1 { font-size: 36px; } }
        @media (min-width: 992px)  { .post-header h1 { font-size: 40px; } }
        @media (min-width: 1200px) { .post-header h1 { font-size: 44px; } }
        @media (min-width: 1400px) { .post-header h1 { font-size: 48px; } }

@media (max-width: 991.98px) { .footer-sep { display: none; } .footer-divider-line { display: none; } }

@media (max-width: 991.98px) { .footer-bottom { flex-direction: column; gap: 8px; align-items: center; } }
/* Scroll to Top Button */
#scrollTopBtn {
    display: none;
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 9999;
    width: 46px;
    height: 46px;
    background: #fff;
    color: #2d4791;
    border: 2px solid #2d4791;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
    transition: background 0.3s, color 0.3s, transform 0.3s;
}
#scrollTopBtn:hover { background: #2d4791; color: #fff; transform: translateY(-4px); }
