.blog-hero {
    background:
        radial-gradient(ellipse at top left, rgb(13 143 208 / 15%) 0%, transparent 40%),
        radial-gradient(ellipse at top right, rgb(217 111 13 / 18%) 0%, transparent 40%),
        radial-gradient(ellipse at bottom left, rgb(11 101 147 / 12%) 0%, transparent 40%),
        radial-gradient(ellipse at bottom right, rgb(131 67 6 / 15%) 0%, transparent 40%),
        linear-gradient(135deg, var(--dark-bg-primary) 0%, var(--dark-bg-secondary) 25%, #1a2030 50%, var(--dark-bg-secondary) 75%, var(--dark-bg-primary) 100%);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.blog-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(1px 1px at 15% 20%, rgba(13, 159, 232, .10), transparent),
        radial-gradient(1px 1px at 85% 30%, rgba(237, 131, 33, .08), transparent),
        radial-gradient(1px 1px at 25% 80%, rgba(13, 159, 232, .06), transparent),
        radial-gradient(1px 1px at 70% 70%, rgba(237, 131, 33, .10), transparent);
    background-size: 400px 300px;
    animation: blogFloat 20s ease-in-out infinite;
    pointer-events: none;
}

@keyframes blogFloat {

    0%,
    100% {
        transform: translateX(0) translateY(0);
    }

    25% {
        transform: translateX(-10px) translateY(-5px);
    }

    50% {
        transform: translateX(5px) translateY(-10px);
    }

    75% {
        transform: translateX(-5px) translateY(5px);
    }
}

.blog-hero .hero-content {
    position: relative;
    z-index: 2;
}

.blog-hero .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 50px;
    padding: 8px 20px;
    margin-bottom: 24px;
    font-size: 14px;
    font-weight: 500;
    color: var(--dark-text-secondary);
    letter-spacing: .5px;
    text-transform: uppercase;
}

.blog-hero .hero-title {
    font-size: 3.5rem;
    font-weight: 400;
    color: var(--dark-text-primary);
    line-height: 1.1;
    margin-bottom: 20px;
}

.blog-hero .hero-highlight {
    font-weight: 500;
    background: linear-gradient(135deg, #0d9fe8 0%, #ed8321 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.blog-hero .hero-description {
    font-size: 17px;
    color: var(--dark-text-secondary);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.65;
}

/* ── Breadcrumb ────────────────────────────────────────────── */
.tg-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.tg-breadcrumb a {
    font-size: 12.5px;
    font-weight: 500;
    color: rgba(255, 255, 255, .5);
    text-decoration: none;
    transition: color .2s;
}

.tg-breadcrumb a:hover {
    color: rgba(255, 255, 255, .85);
}

.tg-breadcrumb .tg-bc-sep {
    color: rgba(255, 255, 255, .25);
    user-select: none;
}

.tg-breadcrumb .tg-bc-current {
    font-size: 12.5px;
    font-weight: 600;
    color: rgba(255, 255, 255, .85);
}

/* ── Blog Section ──────────────────────────────────────────── */
.blog-section {
    padding: 52px 0 90px;
    background: #fff;
    min-height: 60vh;
}

/* ── Floating filter — top right ───────────────────────────── */
.nb-filter-wrap {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 32px;
}

.nb-type-group {
    display: inline-flex;
    align-items: center;
    background: #f4f6f8;
    border: 1px solid #e9ecef;
    border-radius: 100px;
    padding: 4px;
    gap: 2px;
}

.nb-type-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 18px;
    border-radius: 100px;
    border: none;
    background: transparent;
    font-family: 'Manrope', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #6c757d;
    cursor: pointer;
    transition: all .2s ease;
    white-space: nowrap;
}

.nb-type-btn i {
    font-size: 11px;
}

.nb-type-btn:hover {
    color: #212529;
}

.nb-type-btn.active {
    background: #fff;
    color: #212529;
    box-shadow: 0 1px 6px rgba(0, 0, 0, .09);
}

.nb-type-btn[data-type="blog"].active {
    color: #0d9fe8;
}

.nb-type-btn[data-type="news"].active {
    color: #ed8321;
}

/* ── Main Card ─────────────────────────────────────────────── */
.blog-card.main-card {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    text-decoration: none;
    margin-bottom: 56px;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .4s ease, transform .4s ease;
}

.blog-card.main-card.revealed {
    opacity: 1;
    transform: translateY(0);
}

.blog-card.main-card.nb-hidden {
    display: none !important;
}

/* Image — left 52% */
.blog-card.main-card .bc-thumb {
    width: 52%;
    flex-shrink: 0;
    aspect-ratio: 6 / 3;
    overflow: hidden;
    border-radius: 14px;
    background: #eee;
    position: relative;
}

.blog-card.main-card .bc-thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0;
    transition: opacity .45s ease;
}

.blog-card.main-card .bc-thumb img.loaded {
    opacity: 1;
}

.blog-card.main-card:hover .bc-thumb img {
    opacity: .88;
}

/* Content — right side */
.blog-card.main-card .bc-body {
    flex: 1;
    padding: 8px 0 8px 44px;
    display: flex;
    flex-direction: column;
    /* justify-content: center; */
    gap: 10px;
}

.blog-card.main-card .bc-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: #0f1419;
    line-height: 1.25;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card.main-card .bc-excerpt {
    font-size: 15px;
    color: #6c757d;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

.blog-card.main-card .bc-author {
    font-size: 13.5px;
    margin-top: 4px;
}

/* ── Small cards grid ──────────────────────────────────────── */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 32px;
}

/* ── Small card — no box, open layout ──────────────────────── */
.blog-card {
    display: block;
    text-decoration: none;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .35s ease, transform .35s ease;
}

.blog-card:hover {
    text-decoration: unset;
}

.blog-card.revealed {
    opacity: 1;
    transform: translateY(0);
}

.blog-card.nb-hidden {
    display: none !important;
}

/* Thumb */
.bc-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 10px;
    background: #eee;
    margin-bottom: 14px;
    position: relative;
}

/* Shimmer */
.bc-thumb::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, #e8eaed 30%, #f0f2f5 50%, #e8eaed 70%);
    background-size: 300% 100%;
    animation: bcShimmer 1.5s linear infinite;
    transition: opacity .3s ease;
}

.bc-thumb.img-loaded::before {
    opacity: 0;
}

@keyframes bcShimmer {
    0% {
        background-position: 100% 50%;
    }

    100% {
        background-position: -100% 50%;
    }
}

.bc-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0;
    position: relative;
    z-index: 1;
    transition: opacity .4s ease, transform .4s ease;
}

.bc-thumb img.loaded {
    opacity: 1;
}

.blog-card:hover .bc-thumb img {
    opacity: .88;
}

/* Meta row — type left, date right */
.bc-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.bc-type {
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
}

.bc-type-blog {
    color: #0d9fe8;
}

.bc-type-news {
    color: #ed8321;
}

.bc-date {
    font-size: 12px;
    color: #adb5bd;
    font-weight: 500;
}

/* Title */
.bc-title {
    font-size: 1rem;
    font-weight: 600;
    color: #0f1419;
    line-height: 1.4;
    margin: 0 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color .2s ease;
}

.blog-card:hover .bc-title {
    color: #0d9fe8;
}

/* Author */
.bc-author {
    display: block;
    font-size: 12.5px;
    color: #adb5bd;
    font-weight: 500;
}

/* ── Empty state ───────────────────────────────────────────── */
.blog-empty {
    display: none;
    text-align: center;
    padding: 80px 20px;
}

.blog-empty.visible {
    display: block;
}

.blog-empty i {
    font-size: 48px;
    color: #dee2e6;
    margin-bottom: 16px;
    display: block;
}

.blog-empty h3 {
    font-size: 18px;
    color: #6c757d;
    font-weight: 600;
    margin: 0 0 8px;
}

.blog-empty p {
    font-size: 14px;
    color: #adb5bd;
    margin: 0;
}

/* ── Pagination ────────────────────────────────────────────── */
.blog-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 64px;
    flex-wrap: wrap;
}

.bp-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 20px;
    border-radius: 100px;
    border: 1.5px solid #dee2e6;
    background: #fff;
    color: #495057;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all .2s ease;
    font-family: 'Manrope', sans-serif;
}

.bp-btn:hover {
    border-color: #0d9fe8;
    color: #0d9fe8;
    box-shadow: 0 2px 10px rgba(13, 159, 232, .12);
    text-decoration: unset;
}

.bp-btn.disabled {
    opacity: .35;
    pointer-events: none;
}

.bp-pages {
    display: flex;
    align-items: center;
    gap: 5px;
}

.bp-page {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid #dee2e6;
    background: #fff;
    color: #495057;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    transition: all .2s ease;
    font-family: 'Manrope', sans-serif;
}

.bp-page:hover {
    border-color: #0d9fe8;
    color: #0d9fe8;
    text-decoration: unset;
}

.bp-page.active {
    background: #0d9fe8;
    border-color: #0d9fe8;
    color: #fff;
    box-shadow: 0 3px 10px rgba(13, 159, 232, .25);
}

.bp-ellipsis {
    color: #adb5bd;
    font-size: 14px;
    padding: 0 4px;
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .blog-card.main-card .bc-body {
        padding-left: 32px;
    }

    .blog-card.main-card .bc-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 900px) {
    .blog-card.main-card {
        flex-direction: column;
    }

    .blog-card.main-card .bc-thumb {
        width: 100%;
        min-height: 260px;
    }

    .blog-card.main-card .bc-body {
        padding: 20px 0 0;
    }

    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px 24px;
    }

    .blog-hero .hero-title {
        font-size: 2.6rem;
    }
}

@media (max-width: 580px) {
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .blog-hero .hero-title {
        font-size: 2rem;
    }

    .blog-hero {
        padding: 60px 0;
    }

    .blog-card.main-card .bc-title {
        font-size: 1.3rem;
    }

    .nb-type-btn {
        padding: 7px 13px;
        font-size: 12px;
    }
}
/* ── WordPress Pagination ──────────────────────────────────── */
.blog-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 64px;
    flex-wrap: wrap;
}

.blog-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1.5px solid #dee2e6;
    background: #fff;
    color: #495057;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    transition: all .2s ease;
    font-family: 'Manrope', sans-serif;
}

.blog-pagination .page-numbers:hover {
    border-color: #0d9fe8;
    color: #0d9fe8;
}

.blog-pagination .page-numbers.current {
    background: #0d9fe8;
    border-color: #0d9fe8;
    color: #fff;
    box-shadow: 0 3px 10px rgba(13,159,232,.25);
    pointer-events: none;
}

.blog-pagination .page-numbers.dots {
    border: none;
    background: transparent;
    color: #adb5bd;
    font-size: 14px;
    width: auto;
    padding: 0 4px;
}

.blog-pagination .page-numbers.prev,
.blog-pagination .page-numbers.next {
    width: auto;
    padding: 0 18px;
    gap: 7px;
    border-radius: 100px;
    font-size: 13px;
}

.blog-pagination .page-numbers.prev::before {
    content: '\f053';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 10px;
}

.blog-pagination .page-numbers.next::after {
    content: '\f054';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 10px;
}

.blog-pagination .page-numbers.prev:hover,
.blog-pagination .page-numbers.next:hover {
    border-color: #0d9fe8;
    color: #0d9fe8;
    box-shadow: 0 2px 10px rgba(13,159,232,.12);
}