/* Blog Styles */
.blog-main {
    padding: 2rem 0;
    min-height: calc(100vh - 200px);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.blog-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.blog-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color, #2563eb);
    margin-bottom: 1rem;
}

.blog-header p {
    font-size: 1.1rem;
    color: var(--text-secondary, #64748b);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

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

.blog-post {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.blog-post:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1);
}

.blog-post.featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    min-height: 300px;
}

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

.blog-post.featured .post-image {
    height: auto;
}

.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-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--primary-color, #2563eb);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post-content {
    padding: 1.5rem;
}

.blog-post.featured .post-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.post-content h2,
.post-content h3 {
    margin-bottom: 1rem;
    line-height: 1.3;
}

.post-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
}

.post-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
}

.post-content h2 a,
.post-content h3 a {
    color: var(--text-primary, #1e293b);
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-content h2 a:hover,
.post-content h3 a:hover {
    color: var(--primary-color, #2563eb);
}

.post-excerpt {
    color: var(--text-secondary, #64748b);
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-post.featured .post-excerpt {
    -webkit-line-clamp: 4;
    font-size: 1.05rem;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--text-secondary, #64748b);
    border-top: 1px solid #e2e8f0;
    padding-top: 1rem;
    margin-top: 1rem;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.post-meta span:before {
    content: "•";
    color: var(--primary-color, #2563eb);
    font-weight: bold;
}

.post-meta span:first-child:before {
    content: "📅";
}

.post-meta span:nth-child(2):before {
    content: "👤";
}

.post-meta span:last-child:before {
    content: "⏱️";
}

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

.page-link {
    padding: 0.75rem 1rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    color: var(--text-primary, #1e293b);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

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

/* Navigation Updates */
.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-primary, #1e293b);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    background: var(--primary-color, #2563eb);
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-header h1 {
        font-size: 2rem;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .blog-post.featured {
        grid-template-columns: 1fr;
    }
    
    .blog-post.featured .post-image {
        height: 200px;
    }
    
    .post-content {
        padding: 1rem;
    }
    
    .blog-post.featured .post-content {
        padding: 1.5rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .post-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.5rem;
    }
    
    .blog-header {
        padding: 1rem 0;
        margin-bottom: 2rem;
    }
    
    .blog-header h1 {
        font-size: 1.75rem;
    }
    
    .blog-grid {
        gap: 1rem;
    }
}
