/* 
 * Green Pay - SaaS Blog Layout
 * Modern, Clean, and Professional
 */

:root {
    --blog-bg: #f8f9fa;
    --blog-card-bg: #ffffff;
    --blog-primary: #0a2540; /* Dark Blue */
    --blog-accent: #007bff;
    --blog-text: #334155;
    --blog-text-muted: #64748b;
    --blog-border: #e2e8f0;
    --blog-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Force Light Theme for Blog Section */
.blog-section-wrapper {
    background-color: var(--blog-bg) !important;
    color: var(--blog-text) !important;
    min-height: 100vh;
}

.blog-section-wrapper h1, 
.blog-section-wrapper h2, 
.blog-section-wrapper h3, 
.blog-section-wrapper h4, 
.blog-section-wrapper h5, 
.blog-section-wrapper h6 {
    color: var(--blog-primary) !important;
    font-family: 'Outfit', sans-serif;
}

/* Blog Card Layout */
.saas-blog-card {
    background: var(--blog-card-bg);
    border: 1px solid var(--blog-border);
    border-radius: 16px;
    padding: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
}

.saas-blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.saas-blog-img-box {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.saas-blog-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.saas-blog-content {
    padding: 25px;
}

.saas-badge {
    background: rgba(0, 123, 255, 0.1);
    color: var(--blog-accent);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 15px;
    display: inline-block;
}

.saas-blog-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
}

.saas-blog-excerpt {
    font-size: 15px;
    color: var(--blog-text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Single Post Layout Fixes */
.blog-single-container {
    background: #ffffff;
    max-width: 900px !important;
    margin: 40px auto;
    padding: 60px;
    border-radius: 24px;
    box-shadow: var(--blog-shadow);
}

.blog-hero {
    background: var(--blog-primary);
    padding: 120px 0 180px;
    text-align: center;
    color: #ffffff;
}

.blog-hero h1 {
    color: #ffffff !important;
    max-width: 800px;
    margin: 0 auto 20px;
}

.blog-featured-img-wrap {
    max-width: 1000px;
    margin: -120px auto 40px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Fix for Hiding Content Issue */
.saas-article-body {
    display: block !important;
    position: relative !important;
    height: auto !important;
    overflow: visible !important;
    clear: both;
}

.saas-article-body img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
    margin: 30px auto;
    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* CKEditor Content Flow */
.ck-content {
    font-size: 18px;
    line-height: 1.8;
}

.ck-content h2, .ck-content h3 {
    margin-top: 40px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .blog-single-container {
        padding: 30px 20px;
        margin: 20px;
    }
    .blog-hero {
        padding: 80px 0 120px;
    }
}
