/**
 * Blog Page Styling - APEX Medical Laboratories
 * Modern UI styling for the blog page
 */

/* Blog Hero Section */
.blog-hero {
    padding: 160px 0 100px;
    position: relative;
    background-attachment: fixed !important;
    margin-bottom: 0;
}

.blog-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.blog-hero h3 {
    font-size: 1.2rem;
    letter-spacing: 2px;
    margin-bottom: 15px;
    font-weight: 400;
    text-transform: uppercase;
    color: #03a9f4;
}

/* Blog Cards */
.blog-card {
    overflow: hidden;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

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

.blog-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 15px;
}

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

.blog-title a:hover {
    color: #03a9f4;
}

.blog-meta {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.blog-meta span {
    display: inline-block;
}

.blog-meta i {
    margin-right: 5px;
    color: #03a9f4;
}

/* Blog Sidebar */
aside .card {
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

aside .card-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 15px;
}

aside .card-title:after {
    content: '';
    position: absolute;
    width: 40px;
    height: 2px;
    background: #03a9f4;
    bottom: 0;
    left: 0;
}

.recent-post-img {
    object-fit: cover;
}

.recent-post-title {
    font-weight: 500;
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    line-height: 1.4;
}

.recent-post-title:hover {
    color: #03a9f4;
    text-decoration: none;
}

/* Pagination */
.pagination {
    margin-top: 40px;
}

.pagination .page-link {
    color: #333;
    border-radius: 0;
    margin: 0 5px;
    border: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.pagination .page-item.active .page-link {
    background-color: #03a9f4;
    border-color: #03a9f4;
}

.pagination .page-item:first-child .page-link,
.pagination .page-item:last-child .page-link {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive Styles */
@media (max-width: 991px) {
    .blog-hero {
        padding: 120px 0 80px;
    }
    
    .blog-hero h1 {
        font-size: 2rem;
    }
    
    .blog-card {
        margin-bottom: 25px;
    }
    
    .blog-title {
        font-size: 1.2rem;
    }
}

@media (max-width: 767px) {
    .blog-hero {
        padding: 100px 0 60px;
    }
    
    .blog-hero h1 {
        font-size: 1.8rem;
    }
    
    .blog-img {
        height: 200px;
    }
}
