/* ============================================================
   Blog page — all classes scoped to .blog- to avoid conflicts
   with .card, .card-body, .card-title in tblu-main.css
   ============================================================ */

.blog-section {
    background: #fff;
    padding-bottom: 80px;
}

.resource-banner {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 0px !important;
    color: #fff;
    width: 90%;
    text-align: center;
}
.blog-inner {
    max-width: 1270px;
    margin: 0 auto;
    padding: 40px 5% 0;
    margin-top: -80px;
    position: relative;
    z-index: 2;
}

/* -- Category pills -- */
.blog-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 36px;
}

.blog-pill {
    font-family: var(--primary-semibold);
    font-size: 13px;
    padding: 7px 18px;
    border-radius: 22px;
    border: 1px solid #ccc;
    background: #fff;
    color: #555;
    text-decoration: none;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.blog-pill:hover {
    border-color: #003e81;
    color: #003e81;
}

.blog-pill--active {
    background: #003e81;
    color: #fff !important;
    border-color: #003e81;
}

/* -- 3-column grid -- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-bottom: 48px;
}

@media (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-inner {
        margin-top: -50px;
    }
}

/* -- Post card (fully scoped, no .card conflict) -- */
.blog-post-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e8e8e8;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.10);
}

.blog-thumb-link {
    display: block;
    overflow: hidden;
}

.blog-thumb {
    width: 100%;
    /* aspect-ratio: 16 / 9; */
    object-fit: cover;
    display: block;
    background: #f0f4f8;
    transition: transform 0.3s ease;
}

.blog-post-card:hover .blog-thumb {
    transform: scale(1.04);
}

/* -- Card body -- */
.blog-post-body {
    padding: 20px 22px 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 10px;
}

.blog-post-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

/* -- Tags -- */
.blog-tag {
    font-family: var(--primary-semibold);
    font-size: 11px;
    padding: 3px 11px;
    border-radius: 22px;
    white-space: nowrap;
}

.blog-tag--tips   { background: #E1F5EE; color: #085041; }
.blog-tag--update { background: #E6F1FB; color: #0C447C; }
.blog-tag--guide  { background: #EEEDFE; color: #3C3489; }

.blog-post-date {
    font-family: var(--primary-semibold);
    font-size: 11px;
    color: #aaa;
    white-space: nowrap;
}

/* -- Title -- */
.blog-post-title {
    font: 16px/1.45 var(--primary-bold);
    margin: 0;
    color: #111;
}

.blog-post-title a {
    color: #111;
    text-decoration: none;
}

.blog-post-title a:hover {
    color: #003e81;
}

/* -- Excerpt -- */
.blog-post-excerpt {
    font: 13px/1.65 var(--primary-regular, 'VIC Medium');
    color: #666 !important;
    margin: 0 !important;
    flex: 1;
}

/* -- Card footer -- */
.blog-post-footer {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.blog-author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.blog-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #003e81;
    color: #fff;
    font: 10px/28px var(--primary-bold);
    text-align: center;
    flex-shrink: 0;
}

.blog-author-name {
    font: 12px/1 var(--primary-semibold);
    color: #777;
}

.blog-read-time {
    font: 11px/1 var(--primary-semibold);
    color: #bbb;
    white-space: nowrap;
}

/* -- Load more -- */
.blog-load-more {
    text-align: center;
}

.blog-load-btn {
    display: inline-block;
    font: 14px/1 var(--primary-semibold);
    padding: 14px 40px;
    border: 1px solid #003e81;
    border-radius: 22px;
    color: #003e81;
    background: #fff;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.blog-load-btn:hover {
    background: #003e81;
    color: #fff;
}