/* Blog knowledge-center layout */
.blog-hero {
    min-height: 300px;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
}

.blog-hero-overlay {
    min-height: 300px;
    display: flex;
    align-items: center;
    background: linear-gradient(90deg, rgba(4, 22, 31, .90), rgba(4, 22, 31, .62), rgba(4, 22, 31, .24));
}

.blog-hero-copy {
    max-width: 680px;
    color: #fff;
    padding: 24px 28px;
    border-left: 4px solid #008938;
    background: rgba(0, 0, 0, .18);
    box-shadow: 0 18px 45px rgba(0, 0, 0, .16);
    text-shadow: 0 2px 12px rgba(0, 0, 0, .45);
}

.blog-hero-copy p {
    margin: 0 0 10px;
    font-size: 13px;
    line-height: 1.5;
    font-weight: 800;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .84);
}

.blog-hero-copy h1 {
    margin: 0 0 14px;
    font-size: 46px;
    line-height: 1.12;
    font-weight: 800;
    color: #fff;
}

.blog-hero-copy span {
    display: block;
    max-width: 610px;
    font-size: 18px;
    line-height: 1.65;
    color: rgba(255, 255, 255, .92);
}

.blog-category-page {
    padding: 62px 0 78px !important;
    background: #fff !important;
}

.blog-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0 0 38px;
}

.blog-filter-row span,
.blog-filter-row a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 20px;
    border-radius: 999px;
    background: #f3f6f4;
    color: #123044;
    font-size: 15px;
    line-height: 1.4;
    font-weight: 600;
    text-decoration: none;
}

.blog-filter-row span.active {
    background: #008938;
    color: #fff;
}

.blog-filter-row a:hover {
    background: #008938;
    color: #fff;
    text-decoration: none;
}

.blog-card-grid {
    display: flex;
    flex-wrap: wrap;
}

.blog-card-grid > [class*="col-"] {
    margin-bottom: 42px;
}

.blog-grid-card {
    height: 100%;
    background: #fff;
}

.blog-grid-media {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 16 / 9;
    margin: 0 0 16px;
    border-radius: 8px;
    overflow: hidden;
    background: #f5faf7;
}

.blog-grid-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .28s ease;
}

.blog-grid-media span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 14px;
    font-weight: 800;
    color: #008938;
    background: linear-gradient(135deg, #f4fbf7, #e9f5ee);
}

.blog-grid-card:hover .blog-grid-media img {
    transform: scale(1.035);
}

.blog-grid-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 10px;
    color: #6b7f8b;
    font-size: 13px;
    line-height: 1.5;
}

.blog-grid-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 3px 10px;
    border-radius: 999px;
    background: #edf7f1;
    color: #008938;
    font-size: 12px;
    font-weight: 700;
}

.blog-grid-card h2 {
    margin: 0 0 10px;
    min-height: 62px;
    font-size: 22px;
    line-height: 1.36;
    font-weight: 800;
    color: #123044;
}

.blog-grid-card h2 a {
    color: #123044;
    text-decoration: none;
}

.blog-grid-card h2 a:hover {
    color: #008938;
}

.blog-grid-card p {
    margin: 0;
    min-height: 52px;
    font-size: 15px;
    line-height: 1.7;
    color: #5f7180;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-page-nav {
    margin-top: 6px !important;
    padding-top: 26px !important;
    border-top: 1px solid #e2ebe6 !important;
    text-align: center;
}

.blog-article-page {
    padding: 52px 0 88px !important;
    background: #fff !important;
}

.blog-article-shell {
    max-width: 960px;
    margin: 0 auto;
}

.blog-article-card {
    background: #fff;
    border: 1px solid #e3eee7;
    border-radius: 12px;
    box-shadow: 0 14px 34px rgba(18, 48, 68, .045);
}

.blog-article-body {
    padding: 0 36px 34px;
}

.blog-article-header h1 {
    margin: 0 0 18px;
    max-width: 820px;
    font-size: 40px;
    line-height: 1.18;
    font-weight: 800;
    color: #123044;
}

.blog-article-header {
    padding: 34px 0 28px;
    border-bottom: 1px solid #e3eee7;
}

.blog-article-summary {
    max-width: 780px;
    margin: 20px 0 0;
    font-size: 17px;
    line-height: 1.75;
    color: #526978;
}

.blog-article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
}

.blog-article-tags a {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 6px 14px;
    border-radius: 999px;
    background: #f1f7f3;
    color: #008938;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: .01em;
}

.blog-article-tags a:hover {
    background: #008938;
    color: #fff;
    text-decoration: none;
}

.blog-article-content {
    color: #284051;
    font-size: 17px;
    line-height: 1.9;
    padding: 34px 0 0;
}

.blog-article-content h1,
.blog-article-content h2,
.blog-article-content h3,
.blog-article-content h4 {
    color: #123044;
    font-weight: 800;
    line-height: 1.3;
    margin: 1.8em 0 .7em;
}

.blog-article-content h2 {
    font-size: 32px;
}

.blog-article-content h3 {
    font-size: 24px;
}

.blog-article-content p,
.blog-article-content li {
    color: #344d5d;
    font-size: 17px;
    line-height: 1.9;
}

.blog-article-content p + p {
    margin-top: 18px;
}

.blog-article-content img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    margin: 6px auto 32px;
    box-shadow: none;
}

.blog-article-content ul,
.blog-article-content ol {
    padding-left: 22px;
    margin: 20px 0;
}

.blog-article-content blockquote {
    margin: 24px 0;
    padding: 18px 22px;
    border-left: 4px solid #008938;
    border-radius: 0 10px 10px 0;
    background: #f3faf6;
    color: #3b5362;
}

.blog-article-content table {
    width: 100%;
    margin: 22px 0;
    border-collapse: collapse;
}

.blog-article-content table td,
.blog-article-content table th {
    padding: 12px 14px;
    border: 1px solid #dde8e2;
}

.blog-related-wrap {
    max-width: 960px;
    margin: 34px auto 0;
    padding: 30px 30px 34px;
}

.blog-related-card {
    height: 100%;
    padding: 0;
    border: 1px solid #e5eee8;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 14px 32px rgba(18, 48, 68, .06);
}

.blog-related-card h2 {
    min-height: 84px;
    padding: 0 22px;
    font-size: 24px;
}

.blog-related-card p {
    min-height: 76px;
    padding: 0 22px 24px;
}

.blog-related-head {
    margin-bottom: 26px;
    padding-bottom: 18px;
    border-bottom: 1px solid #e4eee8;
}

.blog-related-head h2 {
    margin: 0 0 8px;
    font-size: 30px;
    line-height: 1.2;
    font-weight: 800;
    color: #123044;
}

.blog-related-head p {
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
    color: #6b7f8b;
}

@media (max-width: 991px) {
    .blog-hero,
    .blog-hero-overlay {
        min-height: 260px;
    }

    .blog-hero-copy h1 {
        font-size: 38px;
    }

    .blog-article-shell {
        border-radius: 18px;
    }

    .blog-article-header h1 {
        font-size: 36px;
    }

    .blog-article-body {
        padding-left: 28px;
        padding-right: 28px;
    }

    .blog-article-header {
        padding-top: 30px;
    }
}

@media (max-width: 767px) {
    .blog-hero,
    .blog-hero-overlay {
        min-height: 230px;
    }

    .blog-hero-copy h1 {
        font-size: 32px;
    }

    .blog-hero-copy span {
        font-size: 15px;
    }

    .blog-category-page {
        padding: 38px 0 58px !important;
    }

    .blog-filter-row {
        gap: 8px;
        margin-bottom: 28px;
    }

    .blog-filter-row span,
    .blog-filter-row a {
        min-height: 34px;
        padding: 7px 14px;
        font-size: 13px;
    }

    .blog-grid-card h2,
    .blog-grid-card p {
        min-height: 0;
    }

    .blog-article-page {
        padding: 34px 0 56px !important;
    }

    .blog-article-shell {
        border-radius: 14px;
    }

    .blog-article-header h1 {
        font-size: 30px;
    }

    .blog-article-summary,
    .blog-article-content,
    .blog-article-content p,
    .blog-article-content li {
        font-size: 15px;
    }

    .blog-article-tags {
        gap: 8px;
        padding-bottom: 22px;
    }

    .blog-article-content {
        padding: 26px 0 0;
    }

    .blog-article-content h2 {
        font-size: 25px;
    }

    .blog-related-wrap {
        margin-top: 28px;
        padding: 24px 18px 24px;
    }

    .blog-article-header {
        padding: 24px 0 22px;
    }

    .blog-article-body {
        padding: 0 18px 26px;
    }

    .blog-related-card h2 {
        min-height: 0;
        padding: 0 16px;
        font-size: 21px;
    }

    .blog-related-card p {
        min-height: 0;
        padding: 0 16px 18px;
    }
}
