    @import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800;900&display=swap');

    :root {
        --blue: #1078af;
        --green: #2bb35a;
        --blue-dark: #0c5f8a;
        --green-dark: #229147;
        --bg: #0f1923;
        --bg2: #16232f;
        --bg3: #1c2e3d;
        --card: #18262f;
        --border: rgba(16, 120, 175, 0.18);
        --text: #e8f0f5;
        --text2: #9ab5c5;
        --text3: #6a8fa3;
    }

    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
        font-family: 'Montserrat', sans-serif !important;
    }

    body {
        background: var(--bg);
        color: var(--text);
        /* font-family: 'Barlow', sans-serif; */
        font-family: 'Montserrat', sans-serif !important;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
    }

    /* ── TOP BAR ── */
    .top-bar {
        background: var(--bg2);
        border-bottom: 2px solid var(--blue);
        padding: 0 32px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        height: 70px;
        position: sticky;
        top: 0;
        z-index: 100;
        box-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
    }

    .back-btn {
        display: flex;
        align-items: center;
        gap: 8px;
        color: var(--text2);
        text-decoration: none;
        font-size: 14px;
        font-weight: 500;
        padding: 8px 16px;
        border: 1px solid var(--border);
        border-radius: 8px;
        transition: all 0.2s;
        background: rgba(16, 120, 175, 0.06);
        font-family: 'Montserrat', sans-serif !important;
    }

    .back-btn:hover {
        color: white;
        border-color: var(--blue);
        background: rgba(16, 120, 175, 0.18);
    }

    .back-btn i {
        font-size: 18px;
    }

    .logo-wrap {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    .logo-wrap img {
        height: 48px;
        width: auto;
        display: block;
    }

    .top-bar-right {
        width: 130px;
    }

    /* ── HERO ── */
    .hero {
        background: linear-gradient(135deg, var(--bg2) 0%, var(--bg3) 100%);
        padding: 60px 32px 48px;
        text-align: center;
        position: relative;
        overflow: hidden;
        border-bottom: 1px solid var(--border);
    }

    .hero::before {
        content: '';
        position: absolute;
        inset: 0;
        background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(16, 120, 175, 0.12) 0%, transparent 70%);
    }

    .hero-label {
        /* font-family: 'Barlow Condensed', sans-serif; */
        /* font-family: 'Poppins', sans-serif !important; */
        font-size: 12px;
        font-weight: 700;
        letter-spacing: 3px;
        text-transform: uppercase;
        color: var(--green);
        margin-bottom: 12px;
    }

    .hero h1 {
        /* font-family: 'Barlow Condensed', sans-serif; */
        /* font-family: 'Poppins', sans-serif !important; */
        font-size: clamp(36px, 6vw, 60px);
        font-weight: 800;
        line-height: 1;
        color: white;
        text-transform: uppercase;
        letter-spacing: -1px;
    }

    .hero h1 span {
        color: var(--blue);
    }

    .hero p {
        color: var(--text2);
        font-size: 16px;
        margin-top: 14px;
        max-width: 520px;
        margin-left: auto;
        margin-right: auto;
    }

    /* ── MAIN CONTENT ── */
    main {
        flex: 1;
        max-width: 1200px;
        width: 100%;
        margin: 0 auto;
        padding: 48px 24px;
    }

    .posts-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 32px;
    }

    .section-title {
        /* font-family: 'Poppins', sans-serif !important; */
        /* font-family: 'Barlow Condensed', sans-serif; */
        font-size: 22px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 1px;
        color: white;
    }

    .section-title span {
        color: var(--blue);
    }

    .post-count {
        font-size: 13px;
        color: var(--text3);
    }

    /* ── POST GRID ── */
    .posts-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
        gap: 24px;
    }

    .post-card {
        background: var(--card);
        border: 1px solid var(--border);
        border-radius: 14px;
        overflow: hidden;
        transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
        cursor: pointer;
    }

    .post-card:hover {
        transform: translateY(-4px);
        border-color: var(--blue);
        box-shadow: 0 8px 32px rgba(16, 120, 175, 0.18);
    }

    .post-card-img {
        width: 100%;
        height: 200px;
        object-fit: cover;
        display: block;
        transition: opacity 0.2s;
    }

    .post-card:hover .post-card-img {
        opacity: 0.9;
    }

    .post-card-img-placeholder {
        width: 100%;
        height: 200px;
        background: linear-gradient(135deg, var(--bg3), var(--bg2));
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--text3);
        font-size: 40px;
    }

    .post-card-body {
        padding: 20px;
    }

    .post-meta {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 12px;
    }

    .cat-badge {
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 0.5px;
        text-transform: uppercase;
        padding: 3px 10px;
        border-radius: 20px;
        background: rgba(16, 120, 175, 0.15);
        color: var(--blue);
        border: 1px solid rgba(16, 120, 175, 0.3);
    }

    .post-date {
        font-size: 12px;
        color: var(--text3);
    }

    .post-card-title {
        /* font-family: 'Poppins', sans-serif !important; */
        /* font-family: 'Barlow Condensed', sans-serif; */
        font-size: 20px;
        font-weight: 700;
        line-height: 1.25;
        color: white;
        margin-bottom: 10px;
        text-decoration: none;
        display: block;
    }

    .post-card-title:hover {
        color: var(--blue);
    }

    .post-card-desc {
        font-size: 14px;
        color: var(--text2);
        line-height: 1.6;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        margin-bottom: 18px;
    }

    .read-more-btn {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        color: var(--green);
        font-size: 13px;
        font-weight: 600;
        text-decoration: none;
        padding: 7px 16px;
        border: 1px solid rgba(43, 179, 90, 0.3);
        border-radius: 8px;
        background: rgba(43, 179, 90, 0.07);
        transition: all 0.2s;
    }

    .read-more-btn:hover {
        background: rgba(43, 179, 90, 0.18);
        border-color: var(--green);
        color: white;
    }

    .read-more-btn i {
        font-size: 14px;
    }

    /* ── PAGINATION ── */
    .pagination-wrap {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
        margin-top: 56px;
        padding-top: 32px;
        border-top: 1px solid var(--border);
    }

    .page-info-txt {
        font-size: 13px;
        color: var(--text3);
        margin-right: 12px;
    }

    .pag-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        border-radius: 8px;
        border: 1px solid var(--border);
        background: var(--bg2);
        color: var(--text2);
        font-size: 14px;
        font-weight: 600;
        text-decoration: none;
        transition: all 0.2s;
        cursor: pointer;
    }

    .pag-btn:hover:not(.pag-disabled):not(.pag-active) {
        border-color: var(--blue);
        color: white;
        background: rgba(16, 120, 175, 0.15);
    }

    .pag-btn.pag-active {
        background: var(--blue);
        border-color: var(--blue);
        color: white;
        cursor: default;
    }

    .pag-btn.pag-disabled {
        opacity: 0.3;
        cursor: not-allowed;
    }

    .pag-dots {
        color: var(--text3);
        font-size: 14px;
        padding: 0 4px;
    }

    /* ── EMPTY STATE ── */
    .empty-state {
        text-align: center;
        padding: 80px 20px;
        color: var(--text3);
    }

    .empty-state i {
        font-size: 60px;
        margin-bottom: 16px;
        display: block;
        color: var(--border);
    }

    .empty-state p {
        font-size: 16px;
    }

    /* ── FOOTER ── */
    footer {
        background: var(--bg2);
        border-top: 2px solid var(--blue);
        padding: 24px 32px;
        text-align: center;
    }

    footer p {
        font-size: 13px;
        color: var(--text3);
    }

    footer p a {
        color: var(--blue);
        text-decoration: none;
    }

    footer p a:hover {
        color: var(--green);
    }


    /* HERO IMAGE */
    .post-hero {
        width: 100%;
        height: clamp(260px, 40vw, 500px);
        object-fit: cover;
        display: block;
    }

    .post-hero-placeholder {
        width: 100%;
        height: 280px;
        background: linear-gradient(135deg, var(--bg2), var(--bg3));
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--border);
        font-size: 80px;
    }

    /* WRAPPER */
    .content-wrap {
        max-width: 992px;
        margin: 0 auto;
        padding: 48px 24px 64px;
    }

    /* POST META */
    .post-meta {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 12px;
        margin-bottom: 20px;
    }

    .cat-badge {
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 0.5px;
        text-transform: uppercase;
        padding: 4px 12px;
        border-radius: 20px;
        background: rgba(16, 120, 175, 0.15);
        color: var(--blue);
        border: 1px solid rgba(16, 120, 175, 0.3);
    }

    .post-date {
        font-size: 13px;
        color: var(--text3);
    }

    .post-date i {
        margin-right: 4px;
    }

    /* TITLE */
    .post-title {
        /* font-family: 'Poppins', sans-serif !important; */
        /* font-family: 'Barlow Condensed', sans-serif; */
        font-size: clamp(28px, 5vw, 48px);
        font-weight: 800;
        line-height: 1.1;
        color: white;
        text-transform: uppercase;
        letter-spacing: -0.5px;
        margin-bottom: 24px;
    }

    /* DIVIDER */
    .divider {
        height: 3px;
        background: linear-gradient(to right, var(--blue), var(--green), transparent);
        border-radius: 2px;
        margin-bottom: 36px;
    }

    /* BODY CONTENT */
    .post-body {
        /* font-family: 'Poppins', sans-serif !important; */
        /* font-family: 'Merriweather', serif; */
        font-size: 16px;
        line-height: 1.85;
        color: var(--text2);
    }

    .post-body h1,
    .post-body h2,
    .post-body h3,
    .post-body h4 {
        /* font-family: 'Poppins', sans-serif !important; */
        /* font-family: 'Barlow Condensed', sans-serif; */
        font-weight: 700;
        text-transform: uppercase;
        color: white;
        margin: 36px 0 16px;
        letter-spacing: 0.5px;
    }

    .post-body h2 {
        font-size: 26px;
        border-left: 4px solid var(--blue);
        padding-left: 14px;
    }

    .post-body h3 {
        font-size: 20px;
        color: var(--blue);
    }

    .post-body h4 {
        font-size: 17px;
        color: var(--green);
    }

    .post-body p {
        margin-bottom: 18px;
    }

    .post-body strong {
        color: white;
        font-weight: 700;
    }

    .post-body em {
        color: var(--text);
        font-style: italic;
    }

    .post-body a {
        color: var(--blue);
        text-decoration: underline;
    }

    .post-body a:hover {
        color: var(--green);
    }

    .post-body ul,
    .post-body ol {
        margin: 0 0 20px 24px;
    }

    .post-body ul li,
    .post-body ol li {
        margin-bottom: 8px;
        padding-left: 6px;
    }

    .post-body ul li::marker {
        color: var(--green);
    }

    .post-body ol li::marker {
        color: var(--blue);
        font-weight: 700;
    }

    .post-body blockquote {
        border-left: 4px solid var(--blue);
        background: rgba(16, 120, 175, 0.08);
        padding: 16px 20px;
        margin: 24px 0;
        border-radius: 0 8px 8px 0;
        color: var(--text);
        font-style: italic;
    }

    .post-body table {
        width: 100%;
        border-collapse: collapse;
        margin: 24px 0;
        /* font-family: 'Poppins', sans-serif !important; */
        /* font-family: 'Barlow', sans-serif; */
        font-size: 14px;
    }

    .post-body table thead tr {
        background: var(--blue);
        color: white;
    }

    .post-body table th {
        padding: 10px 14px;
        text-align: left;
        font-weight: 700;
        text-transform: uppercase;
        font-size: 12px;
        letter-spacing: 0.5px;
    }

    .post-body table td {
        padding: 10px 14px;
        border-bottom: 1px solid var(--border);
        color: var(--text2);
    }

    .post-body table tbody tr:hover {
        background: rgba(16, 120, 175, 0.06);
    }

    .post-body img {
        max-width: 100%;
        border-radius: 10px;
        margin: 20px 0;
        display: block;
    }

    .post-body hr {
        border: none;
        border-top: 1px solid var(--border);
        margin: 32px 0;
    }

    .post-body pre {
        background: var(--bg2);
        border: 1px solid var(--border);
        border-radius: 8px;
        padding: 16px 20px;
        overflow-x: auto;
        font-size: 13px;
        margin: 20px 0;
    }

    .post-body code {
        background: var(--bg2);
        padding: 2px 6px;
        border-radius: 4px;
        font-size: 13px;
        color: var(--green);
    }

    /* PREV / NEXT NAV */
    .post-nav {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
        margin-top: 56px;
        padding-top: 32px;
        border-top: 1px solid var(--border);
    }

    .nav-card {
        background: var(--card);
        border: 1px solid var(--border);
        border-radius: 12px;
        padding: 16px 20px;
        text-decoration: none;
        transition: all 0.2s;
        display: block;
    }

    .nav-card:hover {
        border-color: var(--blue);
        background: var(--bg3);
    }

    .nav-card.nav-next {
        text-align: right;
    }

    .nav-label {
        font-size: 11px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 1px;
        color: var(--text3);
        display: flex;
        align-items: center;
        gap: 6px;
        margin-bottom: 8px;
    }

    .nav-card.nav-next .nav-label {
        justify-content: flex-end;
    }

    .nav-card-title {
        /* font-family: 'Poppins', sans-serif !important; */
        /* font-family: 'Barlow Condensed', sans-serif; */
        font-size: 16px;
        font-weight: 700;
        color: white;
        line-height: 1.3;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .nav-empty {
        background: transparent;
        border-color: transparent;
        cursor: default;
    }

    .nav-empty:hover {
        background: transparent;
        border-color: transparent;
    }

    /* RELATED POSTS */
    .related-section {
        margin-top: 64px;
    }

    .related-title {
        /* font-family: 'Poppins', sans-serif !important; */
        /* font-family: 'Barlow Condensed', sans-serif; */
        font-size: 22px;
        font-weight: 800;
        text-transform: uppercase;
        color: white;
        margin-bottom: 24px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .related-title span {
        color: var(--blue);
    }

    .related-title::after {
        content: '';
        flex: 1;
        height: 1px;
        background: var(--border);
    }

    .related-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 18px;
    }

    .related-card {
        background: var(--card);
        border: 1px solid var(--border);
        border-radius: 12px;
        overflow: hidden;
        text-decoration: none;
        display: block;
        transition: all 0.22s;
    }

    .related-card:hover {
        border-color: var(--blue);
        transform: translateY(-3px);
        box-shadow: 0 6px 24px rgba(16, 120, 175, 0.15);
    }

    .related-img {
        width: 100%;
        height: 140px;
        object-fit: cover;
        display: block;
    }

    .related-img-ph {
        width: 100%;
        height: 140px;
        background: var(--bg2);
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--text3);
        font-size: 32px;
    }

    .related-body {
        padding: 14px 16px;
    }

    .related-date {
        font-size: 11px;
        color: var(--text3);
        margin-bottom: 6px;
    }

    .related-card-title {
        /* font-family: 'Poppins', sans-serif !important; */
        /* font-family: 'Barlow Condensed', sans-serif; */
        font-size: 16px;
        font-weight: 700;
        color: white;
        line-height: 1.3;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .related-card:hover .related-card-title {
        color: var(--blue);
    }

    .post-tags {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin: 14px 0 20px;
    }

    .tag-chip {
        background: #0d2a40;
        border: 1px solid #1078af;
        color: #7dd3f0;
        border-radius: 4px;
        padding: 3px 12px;
        font-size: 12px;
        font-weight: 500;
       text-decoration: none;
    }


/* ── TAG HERO ── */
.tag-hero {
    background: linear-gradient(135deg, var(--bg2) 0%, var(--bg3) 100%);
    border-bottom: 1px solid var(--border);
    padding: 52px 24px 44px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.tag-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 80% at 50% 0%, rgba(16, 120, 175, 0.13) 0%, transparent 70%);
}

.tag-hero-inner {
    position: relative;
    z-index: 1;
}

.tag-hero-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--green);
    margin-bottom: 10px;
}

.tag-hero-title {
    font-size: clamp(28px, 5vw, 52px);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    color: white;
    line-height: 1.1;
}

.tag-hero-title::before {
    content: '#';
    color: var(--blue);
    margin-right: 4px;
}

.tag-hero-count {
    margin-top: 12px;
    font-size: 14px;
    color: var(--text3);
}

    /* ── RESPONSIVE ── */
    @media (max-width: 640px) {
        .top-bar {
            padding: 0 16px;
        }

        .hero {
            padding: 40px 16px 32px;
        }

        main {
            padding: 32px 16px;
        }

        .posts-grid {
            grid-template-columns: 1fr;
            gap: 16px;
        }

        .logo-wrap img {
            height: 38px;
        }

        .content-wrap {
            padding: 32px 16px 48px;
        }

        .post-nav {
            grid-template-columns: 1fr;
        }

        .related-grid {
            grid-template-columns: 1fr;
        }

    }