html {
    scroll-behavior: smooth;
}

/* Smooth gradient transitions between sections */
main > section {
    position: relative;
}
main > section + section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6rem;
    background: linear-gradient(to bottom, rgba(0,0,0,0.12), transparent);
    pointer-events: none;
    z-index: 1;
}
/* Stronger blend into emerald CTA sections */
main > section + .bg-primary-600::before {
    height: 8rem;
    background: linear-gradient(to bottom, rgba(3,7,18,0.35), transparent);
}
/* Soft emerald glow after CTA sections */
.bg-primary-600 + section::before {
    background: linear-gradient(to bottom, rgba(5,150,105,0.12), transparent);
}

/* Blog post rich text content styling */
.blog-content h1, .blog-content h2, .blog-content h3, .blog-content h4 {
    color: #f3f4f6;
    font-weight: 700;
    margin-top: 2em;
    margin-bottom: 0.75em;
}
.blog-content h1 { font-size: 2rem; }
.blog-content h2 { font-size: 1.5rem; }
.blog-content h3 { font-size: 1.25rem; }
.blog-content h4 { font-size: 1.125rem; }
.blog-content p {
    color: #d1d5db;
    line-height: 1.75;
    margin-bottom: 1.25em;
}
.blog-content a { color: #34d399; text-decoration: underline; }
.blog-content a:hover { color: #6ee7b7; }
.blog-content img {
    border-radius: 0.75rem;
    border: 1px solid #374151;
    margin: 1.5em 0;
    max-width: 100%;
}
.blog-content ul, .blog-content ol {
    color: #d1d5db;
    margin-bottom: 1.25em;
    padding-left: 1.5em;
}
.blog-content ul { list-style-type: disc; }
.blog-content ol { list-style-type: decimal; }
.blog-content li { margin-bottom: 0.5em; }
.blog-content blockquote {
    border-left: 3px solid #059669;
    padding-left: 1em;
    color: #9ca3af;
    font-style: italic;
    margin: 1.5em 0;
}
.blog-content pre {
    background: #1f2937;
    border: 1px solid #374151;
    border-radius: 0.5rem;
    padding: 1em;
    overflow-x: auto;
    margin: 1.5em 0;
}
.blog-content code {
    color: #34d399;
    font-size: 0.875em;
}
.blog-content strong { color: #e5e7eb; }
.blog-content hr {
    border-color: #374151;
    margin: 2em 0;
}
