/* blog/blog.css */

/* --- Blog Hero/Header --- */
.blog-hero {
    background-color: var(--color-primary-dark);
    color: var(--color-white);
    padding: 80px 0;
    text-align: center;
    background-image: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('../assets/images/blog-bg-placeholder.jpg');
    background-size: cover;
    background-position: center;
}

.blog-hero h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    font-weight: 700;
}

/* --- Main Blog Layout --- */
.blog-layout-grid {
    display: grid;
    grid-template-columns: 3fr 1fr; /* Posts (3/4) and Sidebar (1/4) */
    gap: 50px;
    padding-top: 50px;
}

/* --- Featured Post --- */
.featured-post {
    display: flex;
    gap: 30px;
    margin-bottom: 50px;
    padding: 30px;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.featured-image-container {
    flex: 1.5;
    min-width: 40%;
}

.featured-post img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
}

.featured-content {
    flex: 2;
}

.featured-content h2 {
    font-size: 2rem;
    margin-top: 0;
    color: var(--color-primary-dark);
}

.post-meta {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 15px;
}

/* --- Post Grid (Regular Posts) --- */
.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.post-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    background-color: var(--color-white);
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.post-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-card-content {
    padding: 20px;
}

.post-card-content h3 {
    font-size: 1.3rem;
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--color-text);
}

/* --- Sidebar --- */
.blog-sidebar {
    padding: 20px;
    background-color: var(--color-light-background);
    border-radius: 8px;
}

.blog-sidebar h3 {
    color: var(--color-primary);
    border-bottom: 2px solid var(--color-border);
    padding-bottom: 10px;
    margin-top: 0;
    margin-bottom: 20px;
}

.category-list a, .recent-post-link {
    display: block;
    padding: 8px 0;
    color: var(--color-text);
    transition: color 0.2s;
}

.category-list a:hover, .recent-post-link:hover {
    color: var(--color-secondary);
}

/* --- Responsive Adjustments --- */
@media (max-width: 1024px) {
    .blog-layout-grid {
        grid-template-columns: 1fr;
    }
    .featured-post {
        flex-direction: column;
    }
    .featured-image-container {
        min-width: 100%;
    }
}
@media (max-width: 768px) {
    .post-grid {
        grid-template-columns: 1fr;
    }
}