/* Blog Styles */

/* Blog Header */
.blog-header {
    padding: 8rem 0 4rem;
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-color) 100%);
    text-align: center;
}

.blog-header h1 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.blog-header p {
    font-size: 1.25rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Blog Listing */
.blog-listing {
    padding: 4rem 0;
}

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

.blog-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

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

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

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

.blog-card-content {
    padding: 1.5rem;
}

.blog-category {
    display: inline-block;
    background: var(--bg-light);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.blog-card h2 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.blog-card h2 a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-card h2 a:hover {
    color: var(--primary-color);
}

.blog-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.blog-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Blog CTA */
.blog-cta {
    padding: 5rem 0;
    background: var(--bg-dark);
    text-align: center;
    color: white;
}

.blog-cta h2 {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.blog-cta p {
    font-size: 1.125rem;
    color: #94a3b8;
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Blog Post Article */
.blog-post {
    padding: 8rem 0 4rem;
}

.post-header {
    max-width: 800px;
    margin: 0 auto 3rem;
}

.back-link {
    display: inline-block;
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: var(--primary-color);
}

.post-header .blog-category {
    margin-bottom: 1rem;
}

.post-header h1 {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--secondary-color);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.post-meta {
    display: flex;
    gap: 1.5rem;
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Post Content */
.post-content {
    max-width: 800px;
    margin: 0 auto;
}

.post-content .lead {
    font-size: 1.25rem;
    color: var(--text-color);
    line-height: 1.7;
    margin-bottom: 2rem;
    font-weight: 500;
}

.post-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.post-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-top: 3rem;
    margin-bottom: 1rem;
}

.post-content ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.post-content li {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    list-style-type: disc;
}

.post-content strong {
    color: var(--secondary-color);
}

/* Post CTA */
.post-cta {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    margin-top: 3rem;
    text-align: center;
    border: 1px solid #bfdbfe;
}

.post-cta h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 0.75rem;
}

.post-cta p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

/* Related Posts */
.related-posts {
    padding: 4rem 0;
    background: var(--bg-light);
    text-align: center;
}

.related-posts h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.related-posts p {
    color: var(--text-light);
}

.related-posts a {
    color: var(--primary-color);
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .blog-header {
        padding: 6rem 0 3rem;
    }

    .blog-header h1 {
        font-size: 2.25rem;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .post-header h1 {
        font-size: 2rem;
    }

    .post-content .lead {
        font-size: 1.1rem;
    }

    .post-content p,
    .post-content li {
        font-size: 1rem;
    }

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

    .post-cta {
        padding: 1.5rem;
    }
}
