/* Blog-specific Styles */
.blog-hero {
    background: linear-gradient(135deg, #E8F5E9 0%, #C8E6C9 100%);
    padding: 100px 0 50px;
    margin-top: 70px;
    text-align: center;
}

.blog-hero h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.blog-hero p {
    font-size: 1.2rem;
    color: var(--text-dark);
}

/* Blog Layout */
.blog-content {
    padding: 60px 0;
    background: var(--bg-light);
}

.blog-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 3rem;
}

/* Blog Posts */
.blog-posts {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.blog-post {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.blog-post:hover {
    transform: translateY(-3px);
}

.blog-post.featured {
    background: linear-gradient(135deg, #ffffff 0%, #f0f9f0 100%);
    border-left: 4px solid var(--primary-color);
}

.post-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.post-date {
    color: var(--text-light);
}

.post-category {
    background: var(--secondary-color);
    color: white;
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    font-weight: 500;
}

.blog-post h2 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-align: left;
}

.blog-post p {
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.read-more {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    margin-top: 0.5rem;
    transition: color 0.3s;
}

.read-more:hover {
    color: var(--primary-color);
}

/* Sidebar */
.blog-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-widget {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.sidebar-widget h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.sidebar-widget p {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

/* Newsletter in Sidebar */
.sidebar-newsletter {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar-newsletter input {
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
}

.sidebar-newsletter button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.8rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}

.sidebar-newsletter button:hover {
    background: var(--accent-color);
}

/* Category List */
.category-list {
    list-style: none;
}

.category-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.category-list a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s;
}

.category-list a:hover {
    color: var(--primary-color);
}

/* Recent Posts */
.recent-posts {
    list-style: none;
}

.recent-posts li {
    padding: 0.8rem 0;
    border-bottom: 1px solid #eee;
}

.recent-posts li:last-child {
    border: none;
}

.recent-posts a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    display: block;
    margin-bottom: 0.3rem;
    transition: color 0.3s;
}

.recent-posts a:hover {
    color: var(--primary-color);
}

.recent-posts .post-date {
    font-size: 0.85rem;
}

/* Quick Links */
.quick-links {
    list-style: none;
}

.quick-links li {
    padding: 0.5rem 0;
}

.quick-links a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s;
}

.quick-links a:hover {
    color: var(--primary-color);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.page-link {
    padding: 0.8rem 1.2rem;
    background: var(--bg-white);
    color: var(--text-dark);
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: all 0.3s;
    font-weight: 500;
}

.page-link:hover,
.page-link.active {
    background: var(--primary-color);
    color: white;
}

/* Active nav item */
.nav-menu a.active {
    color: var(--primary-color);
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 992px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .blog-hero h1 {
        font-size: 2rem;
    }

    .blog-post h2 {
        font-size: 1.5rem;
    }

    .post-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .blog-sidebar {
        grid-template-columns: 1fr;
    }

    .pagination {
        flex-wrap: wrap;
    }
}