/* blog.css - Styles for blog page */

.blog-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

.blog-header {
    text-align: center;
    margin-bottom: 3rem;
}

.blog-header h1 {
    font-size: 2.5rem;
    color: #5a8dee;
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 1.2rem;
    color: #666;
}

.blog-posts {
    display: grid;
    gap: 3rem;
}

.blog-post {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.blog-post:hover {
    transform: translateY(-5px);
}

.post-image {
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-post:hover .post-image img {
    transform: scale(1.05);
}

.post-content {
    padding: 1.5rem 1.5rem 1.5rem 0;
}

.post-content h2 {
    margin: 0 0 1rem;
    font-size: 1.5rem;
}

.post-content h2 a {
    color: #333;
    text-decoration: none;
}

.post-content h2 a:hover {
    color: #5a8dee;
}

.post-meta {
    color: #777;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.post-excerpt {
    color: #555;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.read-more {
    color: #5a8dee;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.read-more:hover {
    text-decoration: underline;
}

.read-more::after {
    content: "→";
    margin-left: 0.5rem;
    transition: transform 0.2s ease;
}

.read-more:hover::after {
    transform: translateX(3px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-container {
        padding: 0 1rem;
    }
    
    .blog-header h1 {
        font-size: 2rem;
    }
    
    .blog-post {
        grid-template-columns: 1fr;
    }
    
    .post-content {
        padding: 1.5rem;
    }
    
    .post-image {
        max-height: 200px;
    }
}

@media (max-width: 480px) {
    .blog-header h1 {
        font-size: 1.8rem;
    }
    
    .subtitle {
        font-size: 1.1rem;
    }
}