/* Blog Styles */

.blog-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.blog-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="rgba(255,255,255,0.1)" points="0,1000 1000,0 1000,1000"/></svg>');
    background-size: cover;
}

.blog-header .container {
    position: relative;
    z-index: 2;
}

.blog-header-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.blog-header-content p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.blog-content {
    padding: 80px 0;
    background: #f8f9fa;
    min-height: 60vh;
}

.blog-intro {
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

.blog-intro h2,
.blog-intro h3 {
    color: #333;
    margin: 2rem 0 1rem;
}

.blog-intro p {
    margin-bottom: 1.5rem;
}

.blog-posts {
    padding: 80px 0;
    background: #f8fafc;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.post-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.post-image {
    height: 200px;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-card:hover .post-image img {
    transform: scale(1.05);
}

.post-content {
    padding: 1.5rem;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #666;
}

.post-views {
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
}

.post-title {
    margin-bottom: 1rem;
}

.post-title a {
    color: #333;
    font-size: 1.25rem;
    font-weight: 600;
    transition: color 0.3s ease;
    text-decoration: none;
}

.post-title a:hover {
    color: #667eea;
}

.post-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.read-more {
    color: #667eea;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #5a67d8;
}

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

.pagination-btn {
    padding: 8px 16px;
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.pagination-btn:hover {
    background: #667eea;
    color: white;
}

.pagination-numbers {
    display: flex;
    gap: 0.5rem;
}

.pagination-number {
    padding: 8px 12px;
    background: white;
    color: #666;
    border: 1px solid #e1e5e9;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.pagination-number:hover {
    background: #f8f9fa;
    color: #333;
}

.pagination-number.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

/* No Posts */
.no-posts {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.no-posts h2 {
    color: #333;
    margin-bottom: 1rem;
}

.no-posts p {
    color: #666;
    font-size: 1.1rem;
}

/* Single Post Styles */
.single-post {
    padding: 120px 0 80px;
    background: white;
}

.post-featured-image {
    margin: 2rem 0;
    text-align: center;
}

.post-featured-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.post-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e1e5e9;
}

.post-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.post-meta-single {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    color: #666;
    font-size: 0.9rem;
}

.post-content-single {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.post-content-single h2,
.post-content-single h3,
.post-content-single h4 {
    color: #333;
    margin: 2rem 0 1rem;
}

.post-content-single p {
    margin-bottom: 1.5rem;
}

.post-content-single img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.post-content-single blockquote {
    border-left: 4px solid #667eea;
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #666;
}

.post-content-single ul,
.post-content-single ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.post-content-single li {
    margin-bottom: 0.5rem;
}

/* Back to Blog */
.back-to-blog {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 2rem;
    transition: color 0.3s ease;
}

.back-to-blog:hover {
    color: #5a67d8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-header-content h1 {
        font-size: 2rem;
    }
    
    .blog-header-content p {
        font-size: 1rem;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .pagination {
        flex-direction: column;
        gap: 1rem;
    }
    
    .pagination-numbers {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .post-header h1 {
        font-size: 2rem;
    }
    
    .post-meta-single {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .blog-header {
        padding: 100px 0 60px;
    }
    
    .blog-posts {
        padding: 60px 0;
    }
    
    .post-content {
        padding: 1rem;
    }
    
    .post-title a {
        font-size: 1.1rem;
    }
}
