.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.blog-filters {
    text-align: center;
    margin-bottom: 40px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.filter-btn {
    padding: 8px 20px;
    border-radius: 30px;
    border: 1px solid #ddd;
    background: #f8f9fa;
    color: #333;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.25s ease;
}

.filter-btn.active,
.filter-btn:hover {
    background: #0A123D;
    color: white;
    border-color: #0A123D;
    transform: translateY(-1px);
}

/* ──────────────────────────────────────────────── */

.custom-blog-container {
    padding: 10px !important;
}
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: stretch;           /* important for equal height cards */
}

.blog-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;                   /* ← key for bottom alignment */
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.14);
}

.blog-thumb img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

/* Content wrapper – grows to push button down */
.blog-inner {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;        /* grow, shrink, and base size */
}
.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 12px;
    font-family: 'Syne', sans-serif !important;
}

.blog-cat {
    background: #0A123D;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    font-family: 'Syne', sans-serif !important;
}

.blog-title {
    font-size: 1.25rem;
    margin: 0 0 12px 0;
    line-height: 1.35;
    font-weight: 600;
    font-family: 'Syne', sans-serif !important;
}

.blog-title a {
    color: #111;
    text-decoration: none;
    font-family: 'Syne', sans-serif !important;
}

.blog-title a:hover {
    color: #0A123D;
}

.blog-excerpt {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.55;
    margin-bottom: 16px;
    flex-grow: 1;  
    font-family: 'Syne', sans-serif;                 /* helps fill space if excerpt is short */
}

.read-more {
    margin-top: auto;               /* ← pushes to bottom */
    color: #0A123D;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    padding-top: 8px;
    border-top: 1px solid #eee;     /* optional subtle separator */
    transition: color 0.2s;
    font-family: 'Poppins', sans-serif;
}

.read-more:hover {
    color: #0A123D;
    text-decoration: underline;
}

/* ──────────────────────────────────────────────── */

.load-more-wrap {
    text-align: center;
    margin: 50px 0 30px;
}

.load-more-btn {
    padding: 12px 36px;
    background: #0A123D;
    color: white;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.load-more-btn:hover {
    background: #1a2a6e;            /* slightly lighter navy on hover */
    transform: translateY(-2px);
}

.load-more-btn.loading {
    opacity: 0.7;
    cursor: wait;
}

/* ──────────────────────────────────────────────── */
/* Responsive
/* ──────────────────────────────────────────────── */

@media (max-width: 992px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-btn {
        padding: 7px 16px;
        font-size: 0.9rem;
    }
    
    .blog-thumb img {
        height: 180px;              /* slightly smaller on mobile */
    }
}