/* Blog Header Section */
.blog-header-section {
    background: url('../images/blog.webp') no-repeat center center;
    background-size: cover;
    color: #ffffff;
    padding: 100px 0;
    text-align: center;
    margin-top: 90px;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.blog-header-section .container {
    position: relative;
    z-index: 1;
    max-width: 800px;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 40px 20px;
    border-radius: 8px;
}

.blog-header-section h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    color: #ffffff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: fadeInDown 0.8s ease-out;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.blog-header-section .subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
    color: #ffffff;
    font-weight: 300;
    line-height: 1.6;
    animation: fadeInUp 0.8s ease-out 0.2s both;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Animation Keyframes */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Blog Grid Section */
.blog-grid-section {
    padding: 60px 0;
    background-color: var(--light-color);
}

.blog-card {
    background-color: var(--white);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--box-shadow-sm);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    margin-bottom: 25px;
    border: 1px solid rgba(0,0,0,0.05);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-md);
    border-color: rgba(0,0,0,0.1);
}

.blog-image {
    height: 180px;
    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.05);
}

.blog-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-content h2, 
.blog-content h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--dark-color);
    line-height: 1.4;
}

.blog-content p {
    font-size: 0.95rem;
    color: var(--text-color);
    margin-bottom: 15px;
    line-height: 1.6;
    flex: 1;
}

.read-more {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
    margin-top: auto;
    padding-top: 10px;
    width: fit-content;
}

.read-more i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.read-more:hover {
    color: var(--dark-color);
    text-decoration: none;
}

.read-more:hover i {
    transform: translateX(3px);
}

/* Pagination */
#blogPagination {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin: 20px 0;
}

#blogPagination a, 
#blogPagination span {
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

#blogPagination .active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

#blogPagination .disabled {
    color: #ccc;
    cursor: not-allowed;
}

#blogPagination .ellipsis {
    border: none;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .blog-header-section {
        padding: 80px 0;
    }
    
    .blog-header-section h1 {
        font-size: 2.2rem;
    }
    
    .blog-header-section .subtitle {
        font-size: 1.1rem;
    }
    
    .blog-content h2,
    .blog-content h3 {
        font-size: 1.2rem;
    }
    
    .blog-image {
        height: 160px;
    }
}

@media (max-width: 768px) {
    .blog-header-section {
        padding: 60px 20px;
        margin-top: 70px;
    }
    
    .blog-header-section h1 {
        font-size: 1.9rem;
    }
    
    .blog-header-section .container {
        padding: 30px 15px;
    }
    
    .blog-content {
        padding: 15px;
    }
    
    .blog-content h2,
    .blog-content h3 {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .blog-header-section {
        padding: 70px 0;
    }
    
    .blog-header-section h1 {
        font-size: 1.6rem;
    }
    
    .blog-grid-section {
        padding: 40px 0;
    }
    
    .blog-image {
        height: 140px;
    }
}