/* General Styles for the Blog Post */
.blog-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f9f9f9;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.blog-container h1, 
.blog-container h2, 
.blog-container h3 {
    color: #333;
    font-family: 'Merriweather', serif;  /* Elegant serif font for headers */
}

.blog-container h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-align: center;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

.blog-container h2, 
.blog-container h3 {
    font-size: 1.75rem;
    margin-top: 40px;
    margin-bottom: 15px;
}

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

.blog-container blockquote {
    margin: 20px 0;
    padding: 20px;
    background-color: #f0f0f0;
    border-left: 5px solid #007bff;
    font-style: italic;
    color: #666;
}

.blog-container img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: 20px;
}

.blog-container ul, 
.blog-container ol {
    margin-left: 20px;
    margin-bottom: 20px;
    color: #555;
}

.blog-container ul li, 
.blog-container ol li {
    margin-bottom: 10px;
}

/* Add spacing and hover effect for links */
.blog-container a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-container a:hover {
    color: #0056b3;
}

/* Style for ads section (if needed) */
.adsense-block {
    margin-top: 40px;
    text-align: center;
}

@media screen and (max-width: 768px) {
    .blog-container {
        padding: 15px;
    }

    .blog-container h1 {
        font-size: 2rem;
    }

    .blog-container h2 {
        font-size: 1.5rem;
    }

    .blog-container h3 {
        font-size: 1.25rem;
    }
}

.knowledge-hub,
.knowledge-article,
.estimator-page {
    color: #223128;
    margin: 0 auto;
    max-width: 1180px;
    padding: 120px 20px 56px;
}

.hub-hero,
.article-hero,
.estimator-intro {
    border-bottom: 1px solid #d9e3dc;
    padding-bottom: 32px;
}

.hub-kicker,
.article-kicker {
    color: #156f0b;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0;
    margin: 0 0 10px;
    text-transform: uppercase;
}

.hub-hero h1,
.article-hero h1,
.estimator-intro h1 {
    font-size: clamp(2rem, 4vw, 4rem);
    line-height: 1.08;
    margin: 0 0 18px;
    max-width: 900px;
}

.hub-hero p,
.article-hero p,
.estimator-intro p {
    color: #4d5f55;
    font-size: 1.12rem;
    max-width: 760px;
}

.hub-actions,
.article-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.primary-action,
.secondary-action,
.article-card a,
.tool-callouts a,
.article-sidebar a {
    align-items: center;
    border-radius: 8px;
    display: inline-flex;
    font-weight: 700;
    min-height: 42px;
    padding: 0 16px;
    text-decoration: none;
}

.primary-action,
.article-card a,
.tool-callouts a {
    background: #156f0b;
    color: #fff;
}

.secondary-action {
    border: 1px solid #b8c9be;
    color: #156f0b;
}

.topic-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 28px 0;
}

.topic-strip a {
    background: #edf6ef;
    border: 1px solid #cfe0d3;
    border-radius: 999px;
    color: #1d4f22;
    padding: 8px 14px;
    text-decoration: none;
}

.tool-callouts,
.article-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    margin: 30px 0;
}

.tool-callouts article,
.article-card,
.estimate-result {
    background: #fff;
    border: 1px solid #d9e3dc;
    border-radius: 8px;
    padding: 22px;
}

.tool-callouts h2,
.article-card h2 {
    font-size: 1.25rem;
    line-height: 1.3;
    margin: 0 0 10px;
}

.article-card span,
.article-card small {
    color: #5c7164;
    display: block;
    font-size: 0.88rem;
    margin-bottom: 8px;
}

.article-card p,
.tool-callouts p {
    color: #4d5f55;
}

.article-shell,
.estimator-layout {
    display: grid;
    gap: 30px;
    grid-template-columns: minmax(0, 1fr) 300px;
    margin-top: 34px;
}

.article-body {
    font-size: 1.05rem;
    line-height: 1.75;
}

.article-body h2 {
    color: #223128;
    font-size: 1.65rem;
    margin: 34px 0 12px;
}

.article-body p,
.article-body li {
    color: #425349;
}

.article-sidebar {
    align-self: start;
    background: #f4f8f5;
    border: 1px solid #d9e3dc;
    border-radius: 8px;
    padding: 20px;
    position: sticky;
    top: 110px;
}

.article-sidebar h2 {
    font-size: 1.1rem;
    margin: 0 0 14px;
}

.article-sidebar a {
    border-bottom: 1px solid #d9e3dc;
    border-radius: 0;
    color: #156f0b;
    display: flex;
    padding: 10px 0;
}

.article-faq details {
    border-top: 1px solid #d9e3dc;
    padding: 14px 0;
}

.article-faq summary {
    color: #223128;
    cursor: pointer;
    font-weight: 700;
}

.estimator-panel {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.estimator-panel label {
    color: #223128;
    display: grid;
    font-weight: 700;
    gap: 6px;
}

.estimator-panel input,
.estimator-panel select {
    border: 1px solid #b8c9be;
    border-radius: 8px;
    font: inherit;
    min-height: 44px;
    padding: 8px 10px;
}

.estimate-result output {
    color: #156f0b;
    display: block;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 18px;
}

.estimate-result dl div {
    border-top: 1px solid #d9e3dc;
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
}

.estimator-guide {
    border-top: 1px solid #d9e3dc;
    margin-top: 36px;
    max-width: 820px;
    padding-top: 18px;
}

@media screen and (max-width: 820px) {
    .article-shell,
    .estimator-layout {
        grid-template-columns: 1fr;
    }

    .article-sidebar {
        position: static;
    }

    .estimator-panel {
        grid-template-columns: 1fr;
    }
}
