/* Blogs Section Styles */
:root {
    --primary-red: #8B1538;
}

/* Blog Grid Section */
.blog-section {
    background-color: #f8f9fa;
}

/* Filter Buttons Container */
.blog-filter-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 50px;
}

/* Filter Buttons */
.filter-btn {
    padding: 10px 25px;
    border: 2px solid #e0e0e0;
    background: #fff;
    color: #333;
    font-size: 15px;
    font-weight: 500;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.filter-btn:hover {
    border-color: var(--primary-red);
    color: var(--primary-red);
}

.filter-btn.active {
    background: var(--primary-red);
    border-color: var(--primary-red);
    color: #fff;
}

/* Blog Item - Instant filtering */
.blog-item {
    /* Remove all transitions for instant filtering */
    transition: none;
    opacity: 1;
}

/* Blog Card Styles */
.blog-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

/* Blog Image Container */
.blog-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

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

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

/* Blog Category Badge */
.blog-category {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--primary-red);
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Blog Content */
.blog-content {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Blog Meta Information */
.blog-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #6c757d;
}

.blog-meta i {
    margin-right: 5px;
    color: var(--primary-red);
}

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

/* Blog Title */
.blog-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.4;
}

.blog-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-title a:hover {
    color: var(--primary-red);
}

/* Blog Excerpt */
.blog-excerpt {
    color: #6c757d;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

/* Read More Link */
.read-more {
    color: var(--primary-red);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s ease;
}

.read-more:hover {
    gap: 12px;
}

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

/* Pagination Styles */
.pagination {
    gap: 8px;
}

.page-link {
    border: none;
    border-radius: 8px;
    padding: 10px 16px;
    color: #6c757d;
    font-weight: 500;
    transition: all 0.3s ease;
}

.page-link:hover {
    background-color: #f0f0f0;
    color: #2c3e50;
}

.page-item.active .page-link {
    background-color: var(--primary-red);
    color: #fff;
}

.page-item.disabled .page-link {
    background-color: transparent;
    color: #ccc;
}

/* Blog Details Page Styles */
.blog-details-section {
    padding: 80px 0;
}

.blog-details-container {
    max-width: 800px;
    margin: 0 auto;
}

/* Featured Image */
.blog-featured-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 40px;
}

/* Article Header */
.article-header {
    text-align: center;
    margin-bottom: 40px;
}

.article-category {
    display: inline-block;
    background: var(--primary-red);
    color: #fff;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

.article-title {
    font-size: 42px;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.2;
    margin-bottom: 20px;
}

.article-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    color: #6c757d;
    font-size: 15px;
}

.article-meta i {
    margin-right: 8px;
    color: var(--primary-red);
}

/* Article Content */
.article-content {
    font-size: 18px;
    line-height: 1.8;
    color: #4a5568;
}

.article-content p {
    margin-bottom: 25px;
}

.article-content h2 {
    font-size: 32px;
    font-weight: 600;
    color: #2c3e50;
    margin: 40px 0 20px;
}

.article-content h3 {
    font-size: 26px;
    font-weight: 600;
    color: #2c3e50;
    margin: 30px 0 15px;
}

.article-content ul,
.article-content ol {
    margin-bottom: 25px;
    padding-left: 30px;
}

.article-content li {
    margin-bottom: 10px;
}

.article-content blockquote {
    border-left: 4px solid var(--primary-red);
    padding-left: 25px;
    margin: 30px 0;
    font-style: italic;
    color: #6c757d;
}

/* Article Tags */
.article-tags {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #e9ecef;
}

.article-tags h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #2c3e50;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-list a {
    display: inline-block;
    padding: 8px 18px;
    background: #f0f0f0;
    color: #6c757d;
    border-radius: 25px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.tag-list a:hover {
    background: var(--primary-red);
    color: #fff;
}

/* Author Box */
.author-box {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 30px;
    margin-top: 50px;
    display: flex;
    gap: 25px;
}

.author-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info {
    flex: 1;
}

.author-name {
    font-size: 22px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
}

.author-bio {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 15px;
}

.author-social {
    display: flex;
    gap: 15px;
}

.author-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #fff;
    border-radius: 50%;
    color: #6c757d;
    text-decoration: none;
    transition: all 0.3s ease;
}

.author-social a:hover {
    background: var(--primary-red);
    color: #fff;
}

/* Related Posts */
.related-posts {
    margin-top: 80px;
    padding-top: 50px;
    border-top: 1px solid #e9ecef;
}

.related-posts h3 {
    font-size: 32px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 40px;
    text-align: center;
}

/* Responsive Design */
/* Specific fix for around 1104px */
@media (max-width: 1120px) and (min-width: 1080px) {
    .blog-card {
        height: 100%;
    }
    
    .blog-meta {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .blog-date,
    .blog-author {
        white-space: nowrap;
    }
}

@media (max-width: 1200px) and (min-width: 992px) {
    .blog-meta {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .blog-content {
        padding: 25px;
    }
    
    .blog-title {
        font-size: 19px;
        margin-bottom: 12px;
    }
    
    .blog-excerpt {
        font-size: 14px;
        line-height: 1.5;
    }
    
    .blog-date,
    .blog-author {
        font-size: 13px;
    }
}

@media (max-width: 991px) {
    .blog-filter-container {
        margin-bottom: 40px;
    }
    
    .filter-btn {
        padding: 8px 20px;
        font-size: 14px;
    }
    .blog-image {
        height: 220px;
    }
    
    .article-title {
        font-size: 36px;
    }
    
    .blog-featured-image {
        height: 400px;
    }
}

@media (max-width: 767px) {
    .blog-content {
        padding: 25px;
    }
    
    .blog-title {
        font-size: 18px;
    }
    
    .blog-excerpt {
        font-size: 14px;
    }
    
    .article-title {
        font-size: 28px;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .article-content {
        font-size: 16px;
    }
    
    .blog-featured-image {
        height: 300px;
    }
    
    .author-box {
        flex-direction: column;
        text-align: center;
    }
    
    .author-avatar {
        margin: 0 auto;
    }
    
    .author-social {
        justify-content: center;
    }
}

@media (max-width: 575px) {
    .blog-section {
        padding: 60px 0;
    }
    
    .blog-filter-container {
        gap: 8px;
        margin-bottom: 30px;
    }
    
    .filter-btn {
        padding: 7px 15px;
        font-size: 13px;
    }
    
    .blog-card {
        margin-bottom: 20px;
    }
    
    .blog-meta {
        flex-direction: column;
        gap: 8px;
        font-size: 13px;
    }
    
    .article-title {
        font-size: 24px;
    }
}