/* ---------- MAIN LAYOUT ---------- */
.blog-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.blog-content {
    padding: 30px 0;
}

/* ---------- BLOG HERO (Inspired by Category Hero) ---------- */
.blog-hero {
    background: linear-gradient(135deg, #001070 0%, #0018a0 100%);
    border-radius: 16px;
    padding: 50px 30px;
    margin-bottom: 40px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0, 16, 112, 0.2);
    color: white;
}

.blog-hero h1 {
    margin: 0 0 12px;
    font-size: 42px;
    font-weight: 700;
}

.blog-hero p {
    margin: 0;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
}

/* ---------- FILTERS SECTION (Unified with Search/Category) ---------- */
.filters-section {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 40px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.filters-form {
    display: flex;
    align-items: flex-end; /* Aligns inputs and buttons to the bottom */
    gap: 16px;
    flex-wrap: wrap;
    width: 100%;
}

.filter-group {
    flex: 1 1 200px;
    display: flex;
    flex-direction: column;
}

.filter-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.filter-group label i {
    margin-right: 6px;
    color: #001070;
}

/* UNIFIED INPUT & BUTTON STYLES (STRICT 50PX) */
.filter-group select, 
.filter-group input[type="text"], 
.btn-apply, 
.btn-reset {
    height: 50px;
    width: 100%;
    padding: 0 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.filter-group select, 
.filter-group input[type="text"] {
    background-color: #fff;
}

.filter-group select:focus, 
.filter-group input[type="text"]:focus {
    outline: none;
    border-color: #001070;
    box-shadow: 0 0 0 3px rgba(0, 16, 112, 0.1);
}

/* BUTTONS */
.filter-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.btn-apply, .btn-reset {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    min-width: 110px;
}

.btn-apply {
    background: linear-gradient(135deg, #001070 0%, #0018a0 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 16, 112, 0.3);
}

.btn-apply:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 16, 112, 0.4);
}

.btn-reset {
    background: #f5f5f5;
    color: #666;
}

.btn-reset:hover {
    background: #e0e0e0;
    color: #333;
}

/* ---------- BLOG GRID & CARDS ---------- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.blog-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.blog-card a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.post-img {
    position: relative;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    overflow: hidden;
    background: #f0f0f0;
}

.post-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .post-img img {
    transform: scale(1.08);
}

.post-cat {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0, 16, 112, 0.9);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    backdrop-filter: blur(4px);
    letter-spacing: 0.5px;
}

.post-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-info h3 {
    margin: 0 0 12px;
    font-size: 19px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-info p {
    margin: 0 0 15px;
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
    margin-top: auto;
    font-size: 13px;
    color: #888;
    font-weight: 500;
}

.post-meta i {
    color: #001070;
    margin-right: 4px;
}

/* ---------- PAGINATION ---------- */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 40px 0;
}

.pagination a {
    min-width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 2px solid #e0e0e0;
    color: #001070;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.pagination a:hover {
    border-color: #001070;
    background: #f0f4ff;
}

.pagination a.active {
    background: #001070;
    border-color: #001070;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 16, 112, 0.2);
}

.pagination a.prev, 
.pagination a.next {
    padding: 0 20px;
    width: auto;
}

/* ---------- NO RESULTS ---------- */
.no-results {
    text-align: center;
    padding: 80px 20px;
}

.no-results i {
    font-size: 64px;
    color: #e0e0e0;
    margin-bottom: 20px;
}

.no-results h3 {
    font-size: 24px;
    color: #333;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
    .blog-hero {
        padding: 40px 20px;
    }
    
    .blog-hero h1 {
        font-size: 32px;
    }

    .filters-form {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-group, .filter-actions, .btn-apply, .btn-reset {
        width: 100%;
        flex: none;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}
