/* Blog Pages Styles */

/* ===== Blog Listing Page ===== */
.blog-page {
    padding: 2rem 0;
}

.blog-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3.5rem 2rem;
    margin-bottom: 3rem;
    border-radius: 15px;
    text-align: center;
}

.blog-hero h1 {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.blog-hero p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Blog Cards Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.8rem;
    margin-bottom: 3rem;
}

.blog-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.8rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.blog-card-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.82rem;
    color: #888;
    margin-bottom: 0.8rem;
}

.blog-card-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.blog-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2d2d2d;
    margin-bottom: 0.7rem;
    line-height: 1.4;
}

.blog-card-title a {
    color: #2d2d2d;
    text-decoration: none;
    transition: color 0.2s;
}

.blog-card-title a:hover {
    color: #667eea;
}

.blog-card-excerpt {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.2rem;
    flex-grow: 1;
}

.blog-card-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.blog-card-link:hover {
    color: #764ba2;
}

.blog-card-link i {
    margin-left: 0.3rem;
    transition: transform 0.2s;
}

.blog-card-link:hover i {
    transform: translateX(4px);
}

/* ===== Individual Blog Post ===== */
.blog-post {
    padding: 2rem 0;
}

.blog-post-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #f0f0f0;
}

.blog-post-header h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #2d2d2d;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.blog-post-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.88rem;
    color: #888;
    flex-wrap: wrap;
}

.blog-post-meta span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* Blog Content Typography */
.blog-post-content {
    font-size: 1.05rem;
    line-height: 1.85;
    color: #333;
    max-width: 780px;
}

.blog-post-content h2 {
    font-size: 1.5rem;
    font-weight: 650;
    color: #2d2d2d;
    margin-top: 2.2rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.blog-post-content p {
    margin-bottom: 1.4rem;
}

.blog-post-content strong {
    color: #2d2d2d;
    font-weight: 600;
}

.blog-post-content ul,
.blog-post-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.blog-post-content li {
    margin-bottom: 0.6rem;
    line-height: 1.7;
}

.blog-post-content blockquote {
    border-left: 4px solid #667eea;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: #f8f9ff;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #444;
}

.blog-post-content a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.blog-post-content a:hover {
    border-bottom-color: #667eea;
}

/* Soft CTA Section */
.blog-post-cta {
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f1ff 100%);
    padding: 1.5rem 2rem;
    border-radius: 12px;
    margin-top: 2.5rem;
    border: 1px solid #e8e9ff;
}

.blog-post-cta p {
    margin: 0;
    color: #444;
    line-height: 1.7;
}

/* Related Posts */
.blog-related-posts {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 2px solid #f0f0f0;
}

.blog-related-posts h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #2d2d2d;
}

.blog-related-posts ul {
    list-style: none;
    padding: 0;
}

.blog-related-posts li {
    margin-bottom: 0.7rem;
}

.blog-related-posts a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
}

.blog-related-posts a:hover {
    text-decoration: underline;
}

/* Back Link */
.blog-back-link {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #f0f0f0;
}

.blog-back-link a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.blog-back-link a:hover {
    color: #764ba2;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .blog-hero h1 {
        font-size: 1.7rem;
    }

    .blog-hero {
        padding: 2.5rem 1.5rem;
    }

    .blog-post-header h1 {
        font-size: 1.6rem;
    }

    .blog-post-content {
        font-size: 1rem;
    }

    .blog-card {
        padding: 1.4rem;
    }

    .blog-card-title {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .blog-hero h1 {
        font-size: 1.4rem;
    }

    .blog-post-header h1 {
        font-size: 1.35rem;
    }

    .blog-card-meta {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .blog-post-meta {
        flex-direction: column;
        gap: 0.4rem;
    }

    .blog-post-cta {
        padding: 1.2rem 1.4rem;
    }
}
