/* Blogs Section Styles */
.bfc-blogs-section {
    padding: 100px 0;
    background: #fff;
    position: relative;
    overflow: hidden;
}

.bfc-blogs-section .animated-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.bfc-blogs-section .animated-bg::before,
.bfc-blogs-section .animated-bg::after {
    content: '';
    position: absolute;
    width: 150vmax;
    height: 150vmax;
    top: -50vmax;
    left: -50vmax;
    z-index: -1;
    background: rgba(255, 0, 0, 0.03);
    animation: rotate 30s linear infinite;
    transform-origin: center;
}

.bfc-blogs-section .animated-bg::after {
    background: rgba(0, 0, 0, 0.03);
    animation-delay: -15s;
}

.blog-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
}

.blog-image {
    position: relative;
    overflow: hidden;
    padding-top: 66.67%; /* 2:3 aspect ratio */
}

.blog-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.blog-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.7));
    opacity: 0;
    transition: 0.3s ease;
}

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

.blog-category {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--brand-red);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    z-index: 1;
    transition: all 0.3s ease;
}

.blog-card:hover .blog-category {
    background: linear-gradient(45deg, var(--brand-red), #ff4444);
    box-shadow: 0 5px 10px rgba(255, 0, 0, 0.3);
}

.blog-content {
    padding: 1.5rem;
    position: relative;
}

.blog-meta {
    display: flex;
    gap: 1rem;
    color: #666;
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

.blog-meta span {
    display: flex;
    align-items: center;
}

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

.blog-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--brand-black);
    transition: color 0.3s ease;
    line-height: 1.4;
}

.blog-card:hover .blog-title {
    color: var(--brand-red);
}

.blog-excerpt {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.blog-read-more {
    color: var(--brand-red);
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.blog-read-more i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.blog-read-more:hover {
    color: #ff4444;
}

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

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

.pagination .page-item.active .page-link {
    background: linear-gradient(45deg, var(--brand-red), #ff4444);
    border-color: var(--brand-red);
}

.pagination .page-link {
    color: var(--brand-black);
    border-radius: 5px;
    margin: 0 3px;
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    background-color: #f8f9fa;
    color: var(--brand-red);
    border-color: #dee2e6;
}

.blog-newsletter {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    margin-top: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-left: 4px solid var(--brand-red);
    transition: all 0.3s ease;
}

.blog-newsletter:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.blog-newsletter h4 {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--brand-black);
}

.blog-newsletter p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0;
}

.blog-newsletter .form-control {
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 0.75rem 1rem;
    border-radius: 25px;
}

.blog-newsletter .form-control:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 0, 0, 0.1);
    border-color: rgba(255, 0, 0, 0.3);
}

/* Media Queries */
@media (max-width: 768px) {
    .bfc-blogs-section {
        padding: 60px 0;
    }
    
    .blog-card {
        margin-bottom: 1.5rem;
    }
    
    .blog-newsletter {
        text-align: center;
        padding: 1.5rem;
    }
    
    .blog-newsletter .row {
        flex-direction: column;
    }
    
    .blog-newsletter .col-md-5,
    .blog-newsletter .col-md-7 {
        width: 100%;
    }
    
    .blog-newsletter .col-md-5 {
        margin-bottom: 1rem;
    }
    
    .blog-newsletter form {
        flex-direction: column;
    }
    
    .blog-newsletter .form-control {
        margin-bottom: 1rem;
        margin-right: 0 !important;
    }
    
    .category-nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 1rem;
        justify-content: flex-start;
    }
    
    .category-btn {
        white-space: nowrap;
    }
}