/* Blog Section Styles */

.blog {
    background: linear-gradient(to bottom, #474D57, #5A5F69);
    padding: 100px 0;
    color: #ffffff;
}

.blog .section-title,
.blog .section-subtitle {
    color: #ffffff;
}

.blog-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    padding: 10px 20px;
    margin: 0 5px 10px;
    font-size: 16px;
    font-weight: 500;
    color: #ffffff;
    cursor: pointer;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.filter-btn:hover, .filter-btn.active {
    background-color: #5D8AA8;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.blog-card {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #333;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.blog-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.1);
}

.blog-category {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background-color: #5D8AA8;
    color: #ffffff;
    padding: 5px 15px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.blog-content {
    padding: 25px;
    background-color: #ffffff;
}

.blog-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.4;
    color: #474D57;
}

.blog-meta {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 15px;
    font-size: 14px;
    color: #777;
}

.blog-date, .blog-author {
    margin-right: 20px;
}

.blog-date i, .blog-author i {
    margin-right: 5px;
    color: #5D8AA8;
}

.blog-excerpt {
    font-size: 15px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 20px;
}

.blog-read-more {
    font-size: 15px;
    font-weight: 600;
    color: #5D8AA8;
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.blog-read-more i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.blog-read-more:hover {
    color: #474D57;
}

.blog-read-more:hover i {
    transform: translateX(5px);
}

/* Blog Pagination */
.blog-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
}

.pagination-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0 5px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.pagination-item:hover, .pagination-item.active {
    background-color: #5D8AA8;
    color: #ffffff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.pagination-item.next {
    background-color: #5D8AA8;
    color: #ffffff;
}

.pagination-item.next:hover {
    background-color: #4A7994;
    transform: scale(1.05);
}

/* Adding subtle metallic accent as suggested in the design */
.blog-card {
    border: 1px solid rgba(138, 143, 153, 0.2); /* Light steel blue (#8A8F99) with low opacity */
}

.blog-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: linear-gradient(to right, #5D8AA8, #8A8F99);
    margin-top: 10px;
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .blog-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .blog {
        padding: 70px 0;
    }
    
    .blog-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }
    
    .blog-title {
        font-size: 18px;
    }
}

@media (max-width: 576px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-btn {
        padding: 8px 15px;
        font-size: 14px;
        margin: 0 3px 8px;
    }
}