/* /assets/css/blog.css - Final complete styles for the blog theme */

/* --- General Layout --- */
.content-grid {
    display: grid;
    grid-template-columns: 1fr; /* Default to single column on mobile */
    gap: 3rem;
}
@media (min-width: 992px) {
    .content-grid {
        grid-template-columns: 2.5fr 1fr; /* Two columns on desktop */
    }
}

/* --- Page Header / Hero Section --- */
.page-header.redesigned {
    background-color: #f8f9fa;
    padding: 4rem 0;
    text-align: center;
    border-bottom: 1px solid #dee2e6;
}
.page-header.redesigned h1 {
    font-size: 2.8rem;
    font-weight: 700;
    color: #343a40;
}
.page-header.redesigned .page-subtitle {
    font-size: 1.2rem;
    color: #6c757d;
    margin-top: 10px;
}

/* --- Blog Index Card Styling --- */
.blog-post-grid {
    display: grid;
    gap: 1.5rem;
}
.blog-card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    border: 1px solid #e9ecef;
}
.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.15)!important;
}
.blog-card-img {
    height: 220px;
    object-fit: cover;
}
.blog-card .btn-link {
    text-decoration: none;
    font-weight: 600;
}

/* --- Sidebar Styling --- */
.sidebar .widget {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,.07);
    margin-bottom: 2rem;
}
.sidebar .widget h4 {
    font-size: 1.2rem;
    font-weight: 600;
    border-bottom: 2px solid #0d6efd; /* Blue accent line */
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}
.sidebar .widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
/* THIS FIXES THE SIDEBAR LINKS */
.sidebar .widget ul li a {
    text-decoration: none;
    color: #343a40;
    display: block;
    padding: 0.6rem 0;
    border-bottom: 1px solid #f0f0f0;
    transition: color 0.2s;
}
.sidebar .widget ul li a:hover {
    color: #0d6efd; /* Blue on hover */
}
.sidebar .widget ul li:last-child a {
    border-bottom: none;
}