.blog-header {
    background: var(--header-bg-image, linear-gradient(135deg, #2d5016 0%, #3d6b1a 50%, #1a2e0a 100%));
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    padding: 60px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.blog-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 0;
}

.blog-header-content {
    position: relative;
    z-index: 1;
}

.blog-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: bold;
    margin-bottom: 15px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8), 1px 1px 4px rgba(0, 0, 0, 0.9);
    color: #ffffff;
}

.blog-meta {
    color: #b8e6b8;
    font-size: 1.1rem;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8), 2px 2px 6px rgba(0, 0, 0, 0.6);
}

.blog-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px;
}

.blog-image {
    width: 100%;
    margin: 30px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.blog-image img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Fallback styling for empty blog-image divs (placeholders) */
.blog-image:empty {
    height: 300px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.712) 0%, rgba(0, 0, 0, 0.705) 50%, rgba(26, 46, 10, 0.8) 100%);
    background-size: 20px 20px;
    border-radius: 8px;
}

.blog-image::after {
    font-size: 4rem;
    opacity: 0.7;
}

.blog-content h2 {
    color: #ffffff;
    font-size: 1.8rem;
    margin: 40px 0 20px 0;
    border-left: 4px solid #5cb85c;
    padding-left: 20px;
}

.blog-content h3 {
    color: #e0e0e0;
    font-size: 1.4rem;
    margin: 30px 0 15px 0;
}

.blog-content p {
    color: #c0c0c0;
    margin-bottom: 20px;
    line-height: 1.8;
    font-size: 1.1rem;
}

.blog-content ul, .blog-content ol {
    color: #c0c0c0;
    margin: 20px 0;
    padding-left: 30px;
}

.blog-content li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.blog-content blockquote {
    background: #2a2a2a;
    border-left: 4px solid #5cb85c;
    padding: 20px;
    margin: 30px 0;
    border-radius: 4px;
    color: #e0e0e0;
    font-style: italic;
}

.back-link {
    background: #5cb85c;
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: inline-block;
    margin-bottom: 40px;
}

.back-link:hover {
    background: #4cae4c;
    color: #ffffff;
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .blog-header {
        padding: 40px 0;
        background-attachment: scroll; /* Fixed attachment can cause issues on mobile */
    }
    
    .blog-content {
        padding: 40px 15px;
    }
    
    .blog-image {
        margin: 20px 0;
    }
    
    .blog-image img {
        border-radius: 6px;
    }
    
    /* Fallback for empty blog-image divs on mobile */
    .blog-image:empty {
        height: 200px;
    }
    
    .blog-content h2 {
        font-size: 1.5rem;
        padding-left: 15px;
    }
}