/* Blog Grid Container */
.blog-grid {
    display: grid;
    /* Increased min-width to 350px to prevent 4 cards in one row */
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

/* Individual Card Styling - Compact Height */
.blog-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    height: 260px; /* Kept the compact height you liked */
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    box-sizing: border-box;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    border-color: #0056b3;
}

/* Category Badge */
.card-category {
    position: absolute;
    top: 10px;
    right: 15px;
    background: #0056b3;
    color: white;
    padding: 3px 10px;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 15px;
    letter-spacing: 0.5px;
    z-index: 5;
}

/* Content Area */
.card-content {
    padding: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between; 
}

.card-content h3 {
    font-size: 19px; 
    color: #111827;
    margin-bottom: 8px;
    margin-top: 5px;
    font-weight: 700;
    line-height: 1.2;
    display: -webkit-box;
    /* stylelint-disable-next-line property-no-vendor-prefix */
    -webkit-line-clamp: 2; 
    -webkit-box-orient: vertical; 
    overflow: hidden;
}

.card-content p {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
    display: -webkit-box;
    /* stylelint-disable-next-line property-no-vendor-prefix */
    -webkit-line-clamp: 2; 
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    color: #0056b3;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    transition: 0.2s;
}

.read-more:hover {
    text-decoration: underline;
}

/* 6th Card: More Posts Styling */
.more-posts-card {
    background: #0056b3 !important; 
    color: white;
    text-align: center;
    border: none;
}

.more-posts-card .card-content {
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.more-posts-card .icon-circle {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 20px;
}

.more-posts-card h3 { color: white !important; font-size: 20px; margin: 0;}

/* Pagination Bar Styling */
/* Ensure this is in your blog.css */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 50px; flex-wrap: wrap; }
.page-link { 
    padding: 8px 14px; 
    border: 1px solid #e5e7eb; 
    border-radius: 6px; 
    text-decoration: none; 
    color: #374151; 
    font-weight: 600; 
    background: white; 
    transition: all 0.2s; 
}
.page-link:hover { border-color: #0056b3; color: #0056b3; }
.page-link.active { background: #0056b3; color: white; border-color: #0056b3; }
.dots { padding: 8px 10px; color: #9ca3af; }
.prev, .next { background: #f9fafb; }