.blog-section .main_content {
    padding: 40px 0 60px;
}

.blog-content-wrap {
    min-height: 400px;
}

.blog-landing-header {
    margin-bottom: 18px;
}

.blog-landing-header .services_title {
    margin: 0 0 10px;
    font-size: 54px;
    line-height: 1;
    color: #c51f3a;
    font-weight: 700;
}

.blog-archive-description {
    color: #404155;
    margin-bottom: 15px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    align-items: start;
}

.blog-card {
    background: #ffffff;
    border: 1px solid #dde4e8;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-card-image-link {
    display: block;
    text-decoration: none;
}

.blog-card-image {
    width: 100%;
    height: 255px;
    object-fit: cover;
    display: block;
}

.blog-card-image-placeholder {
    height: 255px;
    background: #d9e1e5;
}

.blog-card-content {
    padding: 18px 20px 22px;
}

.blog-card-meta {
    font-size: 12px;
    line-height: 1.5;
    color: #6b6f7b;
    margin-bottom: 12px;
}

.blog-card-meta a {
    color: #2c6fb2;
    text-decoration: none;
}

.blog-card-sep {
    margin: 0 4px;
    color: #8d93a1;
}

.blog-card-title {
    font-size: 26px;
    line-height: 1.15;
    margin: 0 0 14px;
    font-weight: 700;
}

.blog-card-title a {
    color: #31354a;
    text-decoration: none;
}

.blog-card-title a:hover {
    color: #c51f3a;
}

.blog-card-excerpt {
    color: #404155;
    font-size: 15px;
    line-height: 1.75;
    margin-bottom: 18px;
}

.blog-card-excerpt p:last-child {
    margin-bottom: 0;
}

.blog-card-button {
    display: inline-block;
    background: #0f67ad;
    color: #ffffff;
    padding: 12px 18px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    line-height: 1;
    min-width: 118px;
    text-align: center;
}

.blog-card-button:hover {
    background: #c51f3a;
    color: #ffffff;
    text-decoration: none;
}

.blog-pagination-wrap {
    margin-top: 28px;
    padding-bottom: 10px;
}

.blog-pagination-wrap .nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.blog-pagination-wrap .page-numbers {
    display: inline-block;
    min-width: 42px;
    padding: 12px 10px;
    text-align: center;
    background: #edf3f6;
    border: 1px solid #d6e0e5;
    color: #54718a;
    text-decoration: none;
    font-size: 14px;
    line-height: 1;
}

.blog-pagination-wrap .page-numbers.current,
.blog-pagination-wrap .page-numbers:hover {
    background: #5e96cc;
    border-color: #5e96cc;
    color: #ffffff;
}

.single-blog-post.other_background {
    padding: 28px 32px 34px;
}

.single-blog-category-label {
    font-size: 14px;
    line-height: 1;
    font-weight: 700;
    text-transform: uppercase;
    color: #0f67ad;
    margin-bottom: 14px;
    letter-spacing: 0.04em;
}

.single-blog-title {
    font-size: 62px;
    line-height: 1;
    color: #31354a;
    font-weight: 700;
    margin: 0 0 14px;
}

.single-blog-meta {
    font-size: 14px;
    color: #666c78;
    margin-bottom: 22px;
}

.single-blog-featured-image {
    margin-bottom: 26px;
}

.single-blog-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.single-blog-content {
    color: #404155;
    font-size: 15px;
    line-height: 2;
}

.single-blog-content p {
    margin-bottom: 24px;
}

.single-blog-content h2,
.single-blog-content h3,
.single-blog-content h4 {
    color: #31354a;
    margin-top: 28px;
    margin-bottom: 14px;
    line-height: 1.25;
}

.blog-section #sidebar {
    margin-top: 18px;
    margin-bottom: 18px;
}

.blog-section #sidebar .widget {
    background: #dfe6ec;
    padding: 18px 22px;
    margin-bottom: 22px;
}

.blog-section #sidebar .widget h2,
.blog-section #sidebar .widget h3,
.blog-section #sidebar .widget .widget-title {
    font-size: 14px;
    line-height: 1.2;
    color: #2c6fb2;
    font-weight: 700;
    margin: 0 0 18px;
    text-transform: none;
}

.blog-section #sidebar .widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.blog-section #sidebar .widget li {
    margin-bottom: 14px;
    line-height: 1.45;
}

.blog-section #sidebar .widget li:last-child {
    margin-bottom: 0;
}

.blog-section #sidebar .widget a {
    color: #2c6fb2;
    text-decoration: none;
    font-weight: 500;
}

.blog-section #sidebar .widget a:hover {
    color: #c51f3a;
}

.blog-section .contact {
    margin-top: 0;
}

@media (max-width: 1199px) {
    .blog-landing-header .services_title {
        font-size: 46px;
    }

    .single-blog-title {
        font-size: 50px;
    }
}

@media (max-width: 991px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-card-image,
    .blog-card-image-placeholder {
        height: 320px;
    }

    .single-blog-post.other_background {
        margin-top: 20px;
    }

    .single-blog-title {
        font-size: 42px;
    }
}

@media (max-width: 767px) {
    .blog-section .main_content {
        padding: 25px 0 40px;
    }

    .blog-landing-header .services_title {
        font-size: 38px;
    }

    .single-blog-post.other_background {
        padding: 20px;
    }

    .single-blog-title {
        font-size: 34px;
    }

    .blog-card-title {
        font-size: 22px;
    }

    .blog-card-image,
    .blog-card-image-placeholder {
        height: 220px;
    }
}

/* Blog card enhancement */

.blog-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 22px rgba(0,0,0,0.12);
}

/* Smooth image zoom on hover */

.blog-card-image-link {
    overflow: hidden;
}

.blog-card-image {
    transition: transform 0.35s ease;
}

.blog-card:hover .blog-card-image {
    transform: scale(1.05);
}

/* Ensure equal height blog cards */

.blog-grid {
    align-items: stretch;
}

.blog-card {
    display: flex;
    flex-direction: column;
}

.blog-card-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-card-excerpt {
    flex: 1;
}

.blog-card-button {
    margin-top: auto;
}

/* Breadcrumbs */

.breadcrumbs {
    font-size: 13px;
    margin-bottom: 20px;
    color: #7a8090;
}

.breadcrumbs a {
    color: #2c6fb2;
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumb-sep {
    margin: 0 6px;
    color: #a0a6b3;
}

.breadcrumb-current {
    color: #555;
}

/* Related posts */

.related-posts {
    margin-top: 50px;
    padding-top: 35px;
    border-top: 1px solid #dde4e8;
}

.related-posts-title {
    font-size: 30px;
    line-height: 1.15;
    color: #31354a;
    font-weight: 700;
    margin: 0 0 24px;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.related-post-card {
    background: #ffffff;
    border: 1px solid #dde4e8;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.related-post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 22px rgba(0,0,0,0.12);
}

.related-post-image-link {
    display: block;
    overflow: hidden;
    text-decoration: none;
}

.related-post-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.related-post-card:hover .related-post-image {
    transform: scale(1.05);
}

.related-post-image-placeholder {
    height: 180px;
    background: #d9e1e5;
}

.related-post-content {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.related-post-title {
    font-size: 20px;
    line-height: 1.25;
    margin: 0 0 12px;
    font-weight: 700;
}

.related-post-title a {
    color: #31354a;
    text-decoration: none;
}

.related-post-title a:hover {
    color: #c51f3a;
}

.related-post-excerpt {
    color: #404155;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 18px;
    flex: 1;
}

.related-post-button {
    display: inline-block;
    background: #0f67ad;
    color: #ffffff;
    padding: 11px 16px;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    line-height: 1;
    min-width: 110px;
    text-align: center;
    margin-top: auto;
}

.related-post-button:hover {
    background: #c51f3a;
    color: #ffffff;
    text-decoration: none;
}

@media (max-width: 991px) {
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
}

.single-blog-featured-image {
    margin-bottom: 24px;
}

.single-blog-category-label {
    font-size: 14px;
    line-height: 1;
    font-weight: 700;
    text-transform: uppercase;
    color: #0f67ad;
    margin-bottom: 14px;
    letter-spacing: 0.04em;
}

.single-blog-title {
    margin: 0 0 14px;
}

.single-blog-meta {
    font-size: 14px;
    color: #666c78;
    margin-bottom: 24px;
    line-height: 1.6;
}

.single-blog-meta-sep {
    margin: 0 8px;
    color: #9aa1ac;
}

.single-blog-meta-categories a {
    color: #2c6fb2;
    text-decoration: none;
}

.single-blog-meta-categories a:hover {
    color: #c51f3a;
}

/* Author bio box */

.author-box {
    display: flex;
    gap: 24px;
    margin-top: 40px;
    padding: 26px;
    background: #ffffff;
    border: 1px solid #dde4e8;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}

.author-avatar img {
    border-radius: 50%;
}

.author-info {
    flex: 1;
}

.author-name {
    font-size: 22px;
    margin: 0 0 10px;
    color: #31354a;
    font-weight: 700;
}

.author-bio {
    font-size: 14px;
    line-height: 1.8;
    color: #505665;
}

/* Author label */

.author-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #0f67ad;
    margin-bottom: 6px;
}

/* 404 page */

.error404-content {
    min-height: 420px;
}

.error404-subtitle {
    font-size: 30px;
    line-height: 1.2;
    color: #31354a;
    font-weight: 700;
    margin: 0 0 20px;
}

.error404-text p {
    font-size: 16px;
    line-height: 1.9;
    color: #404155;
    max-width: 760px;
}

@media (max-width: 767px) {
    .error404-subtitle {
        font-size: 24px;
    }
}

/* ===============================
   404 PAGE
================================ */

.error404-title,
.error404-subtitle {
    text-align: center;
}

.error404-subtitle {
    font-size: 30px;
    line-height: 1.2;
    color: #31354a;
    font-weight: 700;
    margin: 10px 0 20px;
}

/* Mole container */

.error404-mascot {
    text-align: center;
    margin: 25px 0 30px;
    position: relative;
}

/* mole image */

.error404-mascot img {
    max-width: 220px;
    height: auto;
    position: relative;
    z-index: 2;
}

/* drilling animation */

.error404-mascot img:hover {
    animation: mole-burrow 0.25s linear infinite;
}

/* rotation + vibration */

@keyframes mole-burrow {

    0%   { transform: rotate(0deg) translate(0px,0px); }

    25%  { transform: rotate(90deg) translate(-2px,1px); }

    50%  { transform: rotate(180deg) translate(1px,-1px); }

    75%  { transform: rotate(270deg) translate(-1px,2px); }

    100% { transform: rotate(360deg) translate(0px,0px); }

}

/* Dust effect */

.error404-mascot::after {

    content: "";
    position: absolute;

    width: 120px;
    height: 30px;

    left: 50%;
    bottom: -5px;

    transform: translateX(-50%);

    background:
        radial-gradient(circle, rgba(180,180,180,0.35) 3px, transparent 4px),
        radial-gradient(circle, rgba(180,180,180,0.35) 3px, transparent 4px),
        radial-gradient(circle, rgba(180,180,180,0.35) 3px, transparent 4px);

    background-position:
        20px 10px,
        50px 5px,
        80px 12px;

    background-repeat: no-repeat;

    opacity: 0;
}

/* activate dust when drilling */

.error404-mascot:hover::after {

    animation: mole-dust 0.35s linear infinite;
}

@keyframes mole-dust {

    0%   { opacity: 0; transform: translateX(-50%) translateY(0px); }

    50%  { opacity: 0.7; transform: translateX(-50%) translateY(-2px); }

    100% { opacity: 0; transform: translateX(-50%) translateY(-4px); }

}

.error404-text {
    text-align: center;
}

.error404-text p {
    font-size: 16px;
    line-height: 1.9;
    color: #404155;
    max-width: 720px;
    margin: 0 auto 30px;
}

.error404-buttons {
    text-align: center;
    margin-top: 10px;
    margin-bottom: 35px;
}

.error404-btn {
    display: inline-block;
    padding: 12px 26px;
    margin: 5px;
    background: #2f80ed;
    color: #fff;
    font-weight: 600;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.25s ease;
}

.error404-btn:hover {
    background: #1f65c5;
    color: #fff;
    text-decoration: none;
}

.error404-btn.secondary {
    background: #4f556b;
}

.error404-btn.secondary:hover {
    background: #3d4254;
}

.error404-suggestions {
    max-width: 720px;
    margin: 0 auto;
    padding-top: 25px;
    border-top: 1px solid #dde4e8;
}

.error404-suggestions-title {
    font-size: 28px;
    line-height: 1.2;
    color: #31354a;
    font-weight: 700;
    margin: 0 0 20px;
    text-align: center;
}

.error404-suggestions-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.error404-suggestions-list li {
    margin: 0 0 12px;
}

.error404-suggestions-list a {
    color: #2c6fb2;
    text-decoration: none;
    font-weight: 600;
    font-size: 17px;
}

.error404-suggestions-list a:hover {
    color: #c51f3a;
    text-decoration: none;
}

@media (max-width: 767px) {
    .error404-subtitle {
        font-size: 24px;
    }

    .error404-suggestions-title {
        font-size: 24px;
    }

    .error404-btn {
        display: block;
        max-width: 260px;
        margin: 10px auto;
    }
}