﻿/* Blog main page styles */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.blog-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #333;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.blog-card {
    border: 1px solid #eaeaea;
    border-radius: 8px;
    padding: 1.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
    background-color: #fff;
}

    .blog-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }

.post-title {
    font-size: 1.5rem;
    margin: 0.5rem 0;
}

    .post-title a {
        color: #333;
        text-decoration: none;
    }

        .post-title a:hover {
            color: #0070f3;
        }

.date {
    color: #666;
    font-size: 0.9rem;
}

.excerpt {
    color: #444;
    margin: 1rem 0;
    line-height: 1.6;
}

.read-more {
    display: inline-block;
    color: #0070f3;
    text-decoration: none;
    font-weight: 500;
}

/* Blog post page styles */
.back-button {
    display: inline-block;
    margin-bottom: 2rem;
    color: #666;
    text-decoration: none;
}

    .back-button:hover {
        color: #0070f3;
    }

.blog-post .title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.blog-post .meta {
    display: flex;
    margin-bottom: 2rem;
    color: #666;
    font-size: 0.9rem;
}

.blog-post .author {
    margin-left: 1rem;
}

.blog-post .content {
    line-height: 1.8;
    color: #333;
}

    .blog-post .content h2 {
        font-size: 1.8rem;
        margin: 2rem 0 1rem;
        color: #333;
    }

    .blog-post .content p {
        margin-bottom: 1.5rem;
    }

.error-message {
    padding: 2rem;
    text-align: center;
    background-color: #f8f9fa;
    border-radius: 8px;
}
