/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* Blog container */
.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Blog posts grid */
.blog-posts {
    display: grid;
    gap: 30px;
    margin-bottom: 40px;
}

/* Individual blog post card */
.blog-post {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Post image */
.post-image {
    width: 100%;
    height: auto;
    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 */
.post-content {
    padding: 25px;
}

.post-title {
    margin-bottom: 15px;
}

.post-title a {
    color: #2c3e50;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.post-title a:hover {
    color: #3498db;
}

/* Post meta */
.post-meta {
    margin-bottom: 15px;
    color: #7f8c8d;
    font-size: 0.9rem;
}

.post-date {
    display: inline-flex;
    align-items: center;
}

/* Post excerpt */
.post-excerpt {
    color: #555;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* Read more button */
.read-more {
    display: inline-block;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(52, 152, 219, 0.3);
}

.read-more:hover {
    background: linear-gradient(135deg, #2980b9, #1f5f8b);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
}

/* No posts message */
.no-posts {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.no-posts p {
    font-size: 1.2rem;
    color: #7f8c8d;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
}

.pagination-link {
    display: inline-block;
    padding: 10px 15px;
    background: #fff;
    color: #3498db;
    text-decoration: none;
    border-radius: 8px;
    border: 2px solid #3498db;
    transition: all 0.3s ease;
    font-weight: 500;
}

.pagination-link:hover {
    background: #3498db;
    color: white;
    transform: translateY(-2px);
}

.pagination-link.current {
    background: #3498db;
    color: white;
    cursor: default;
}

.pagination-link.current:hover {
    transform: none;
}

/* Single post styles */
.single-post {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.post-article {
    padding: 0;
}

.post-featured-image {
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.post-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-header {
    padding: 40px 40px 20px;
    border-bottom: 1px solid #eee;
}

.single-post .post-title {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 15px;
    line-height: 1.2;
}

.single-post .post-meta {
    font-size: 1rem;
    color: #7f8c8d;
}

.single-post .post-content {
    padding: 40px;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
}

/* Post navigation */
.post-navigation {
    padding: 30px 40px;
    border-top: 1px solid #eee;
    background: #f8f9fa;
}

.back-to-blog {
    display: inline-flex;
    align-items: center;
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.back-to-blog:hover {
    color: #2980b9;
}

/* Responsive design */
@media (max-width: 768px) {
    .blog-container {
        padding: 15px;
    }
    
    .post-content {
        padding: 20px;
    }
    
    .post-title a {
        font-size: 1.3rem;
    }
    
    .single-post .post-title {
        font-size: 2rem;
    }
    
    .post-header,
    .single-post .post-content,
    .post-navigation {
        padding: 25px;
    }
    
    .post-featured-image {
        height: auto;
    }
    
    .pagination {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .pagination-link {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .blog-container {
        padding: 10px;
    }
    
    .post-content {
        padding: 15px;
    }
    
    .post-title a {
        font-size: 1.2rem;
    }
    
    .single-post .post-title {
        font-size: 1.8rem;
    }
    
    .post-header,
    .single-post .post-content,
    .post-navigation {
        padding: 20px;
    }
    
    .post-featured-image {
        height: 200px;
    }
    
    .read-more {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}

/* Large screens */
@media (min-width: 1024px) {
    .blog-posts {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .blog-container {
        padding: 40px;
    }
}

