/* Modern Blog Listing Styles */

.blog-listing {
    padding: 90px 0;
    background: #f8f9fa;
}

.blog-grid {
    margin-top: 50px;
}

.blog-card {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.blog-card-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.1);
}

.blog-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(30, 60, 114, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.blog-card:hover .blog-card-overlay {
    opacity: 1;
}

.read-more-btn {
    color: white;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 12px 30px;
    border: 2px solid white;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.read-more-btn:hover {
    background: white;
    color: #1e3c72;
}

.blog-category-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #1e3c72;
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.blog-card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 13px;
    color: #666;
}

.blog-card-meta i {
    margin-right: 5px;
    color: #1e3c72;
}

.blog-date,
.blog-author {
    display: flex;
    align-items: center;
}

.blog-card-title {
    margin: 0 0 15px 0;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.4;
    color: #030f27;
}

.blog-card-title a {
    color: #030f27;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-card-title a:hover {
    color: #1e3c72;
}

.blog-card-excerpt {
    color: #666;
    font-size: 15px;
    line-height: 1.7;
    margin: 0 0 20px 0;
    flex-grow: 1;
}

.blog-card-footer {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.blog-read-more {
    color: #1e3c72;
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.blog-read-more:hover {
    color: #2a5298;
    gap: 12px;
}

.blog-read-more i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.blog-read-more:hover i {
    transform: translateX(4px);
}

.pagination-wrapper {
    display: flex;
    justify-content: center;
}

.pagination-wrapper .pagination {
    margin: 0;
}

.pagination-wrapper .page-link {
    color: #1e3c72;
    border-color: #e0e0e0;
    padding: 10px 15px;
    margin: 0 2px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.pagination-wrapper .page-link:hover {
    background: #1e3c72;
    color: white;
    border-color: #1e3c72;
}

.pagination-wrapper .page-item.active .page-link {
    background: #1e3c72;
    border-color: #1e3c72;
    color: white;
}

.pagination-wrapper .page-item.disabled .page-link {
    color: #999;
    background: #f5f5f5;
    border-color: #e0e0e0;
}

/* Responsive Design */
@media (max-width: 991px) {
    .blog-card-image {
        height: 220px;
    }
    
    .blog-card-title {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .blog-listing {
        padding: 60px 0;
    }
    
    .blog-card-image {
        height: 200px;
    }
    
    .blog-card-content {
        padding: 20px;
    }
    
    .blog-card-title {
        font-size: 18px;
    }
    
    .blog-card-excerpt {
        font-size: 14px;
    }
    
    .blog-card-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

@media (max-width: 576px) {
    .blog-card-image {
        height: 180px;
    }
}
