/* Modern Blog Cards Styling */
.blog-section {
    padding: 5rem 0;
    background-color: #f8f9fa;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 0 1rem;
}

.blog-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.blog-card .img-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    overflow: hidden;
}

.blog-card .img-container img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .img-container img {
    transform: scale(1.05);
}

.blog-card .card-body {
    padding: 1.5rem;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.blog-meta .date {
    color: #0d1128;
    font-weight: 600;
}

.blog-meta .author {
    color: #6c757d;
    display: flex;
    align-items: center;
}

.blog-meta .author img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin-right: 0.5rem;
}

.blog-card .card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.4;
    color: #0d1128;
}

.blog-card .card-text {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.blog-card .read-more {
    display: inline-flex;
    align-items: center;
    color: #0d1128;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-card .read-more:hover {
    color: #007bff;
}

.blog-card .read-more i {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.blog-card .read-more:hover i {
    transform: translateX(5px);
}

.blog-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(13, 17, 40, 0.9);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    z-index: 1;
}

/* Responsive Pagination */
.blog-pagination {
    margin-top: 3rem;
}

.blog-pagination ul {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
}

.blog-pagination li a,
.blog-pagination li span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 20px;
    background: white;
    color: #0d1128;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #dee2e6;
}

.blog-pagination li.active span,
.blog-pagination li a:hover {
    background: #0d1128;
    color: white;
    border-color: #0d1128;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    .blog-card .card-body {
        padding: 1.25rem;
    }
    
    .blog-card .card-title {
        font-size: 1.1rem;
    }
}

/* Animation for cards */
.blog-card {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger effect for cards */
.blog-grid > div:nth-child(1) { animation-delay: 0.1s; }
.blog-grid > div:nth-child(2) { animation-delay: 0.2s; }
.blog-grid > div:nth-child(3) { animation-delay: 0.3s; }
.blog-grid > div:nth-child(4) { animation-delay: 0.4s; }
.blog-grid > div:nth-child(5) { animation-delay: 0.5s; }
.blog-grid > div:nth-child(6) { animation-delay: 0.6s; }