.blog-page-body {
    background: #f6f9fb;
    color: #243746;
}

.blog-page-body .navbar-brand {
    width: 250px;
}

.blog-page-body .nav-link.active {
    color: #C62828;
}

.blog-hero {
    background: #f6f9fb;
    border-bottom: 1px solid #dce5eb;
    padding: 64px 0 56px;
}

.blog-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, .86fr);
    gap: clamp(40px, 7vw, 96px);
    align-items: center;
}

.blog-hero-copy {
    max-width: 650px;
}

.blog-eyebrow {
    color: #C62828;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    margin: 0 0 14px;
    text-transform: uppercase;
}

.blog-eyebrow i {
    margin-right: 7px;
}

.blog-hero h1 {
    color: #0B2D4D;
    font-size: clamp(2.6rem, 5vw, 4.8rem);
    font-weight: 750;
    letter-spacing: 0;
    line-height: 1.03;
    margin: 0;
    max-width: 650px;
}

.blog-hero-text {
    color: #526575;
    font-size: 18px;
    line-height: 1.75;
    margin: 24px 0 26px;
    max-width: 590px;
}

.blog-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 24px;
}

.blog-hero-meta span {
    color: #0B2D4D;
    font-size: 14px;
    font-weight: 700;
}

.blog-hero-meta i {
    color: #C62828;
    margin-right: 6px;
}

.blog-hero-visual {
    aspect-ratio: 4 / 3;
    background: #0B2D4D;
    overflow: hidden;
    position: relative;
}

.blog-hero-visual::before {
    background: #C62828;
    content: "";
    height: 8px;
    left: 0;
    position: absolute;
    top: 0;
    width: 35%;
    z-index: 1;
}

.blog-hero-visual img {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.blog-hero-caption {
    align-items: center;
    background: rgba(11, 45, 77, .92);
    bottom: 0;
    color: #fff;
    display: flex;
    font-size: 14px;
    font-weight: 700;
    justify-content: space-between;
    left: 0;
    padding: 16px 20px;
    position: absolute;
    right: 0;
}

.blog-hero-caption i {
    color: #efb2b2;
}

.section-space {
    padding: 78px 0;
}

.blog-featured.section-space {
    padding: 38px 0 46px;
}

.section-heading-row,
.library-header {
    align-items: end;
    display: flex;
    gap: 30px;
    justify-content: space-between;
    margin-bottom: 26px;
}

.blog-featured .section-heading-row {
    margin-bottom: 16px;
}

.section-heading-row h2,
.library-header h2,
.blog-appointment-content h2 {
    color: #0B2D4D;
    font-size: clamp(1.9rem, 3vw, 2.65rem);
    font-weight: 750;
    letter-spacing: 0;
    line-height: 1.14;
    margin: 0;
}

.text-link,
.read-link {
    align-items: center;
    color: #C62828;
    display: inline-flex;
    font-size: 14px;
    font-weight: 800;
    gap: 9px;
    text-decoration: none;
}

.text-link:hover,
.text-link:focus-visible,
.read-link:hover,
.read-link:focus-visible {
    color: #0B2D4D;
}

.featured-article {
    background: #fff;
    border: 1px solid #dce5eb;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    height: 260px;
}

.featured-article-image {
    display: block;
    min-height: 0;
    overflow: hidden;
}

.featured-article-image img {
    display: block;
    height: 100%;
    object-fit: cover;
    transition: transform .25s ease;
    width: 100%;
}

.featured-article:hover .featured-article-image img {
    transform: scale(1.03);
}

.featured-article-copy {
    align-self: center;
    padding: 24px 32px;
}

.article-meta {
    align-items: center;
    color: #778896;
    display: flex;
    flex-wrap: wrap;
    font-size: 12px;
    font-weight: 700;
    gap: 13px 20px;
    text-transform: uppercase;
}

.article-meta span:first-child {
    color: #C62828;
}

.article-meta i {
    margin-right: 5px;
}

.featured-article-copy h3 {
    color: #0B2D4D;
    font-size: clamp(1.35rem, 2.2vw, 1.85rem);
    font-weight: 750;
    line-height: 1.16;
    margin: 14px 0 12px;
}

.featured-article-copy p,
.library-header > div > p:last-child {
    color: #5e7180;
    font-size: 14px;
    line-height: 1.55;
    margin: 0 0 14px;
}

.blog-library {
    background: #fff;
    border-top: 1px solid #e2e9ee;
}

.library-header {
    align-items: end;
}

.library-header > div:first-child > p:last-child {
    margin: 12px 0 0;
    max-width: 550px;
}

.blog-search {
    align-items: center;
    background: #fff;
    border: 1px solid #cbd8e1;
    display: flex;
    min-width: min(100%, 290px);
    padding: 0 14px;
}

.blog-search:focus-within {
    border-color: #C62828;
    box-shadow: 0 0 0 3px rgba(198, 40, 40, .1);
}

.blog-search i {
    color: #C62828;
    font-size: 14px;
}

.blog-search input {
    background: transparent;
    border: 0;
    color: #0B2D4D;
    font-size: 14px;
    min-height: 46px;
    outline: 0;
    padding: 0 0 0 10px;
    width: 100%;
}

.category-filters {
    border-bottom: 1px solid #dce5eb;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    padding-bottom: 16px;
}

.category-filter {
    background: #f6f9fb;
    border: 1px solid #cbd8e1;
    color: #0B2D4D;
    cursor: pointer;
    font-size: 13px;
    font-weight: 800;
    padding: 9px 14px;
}

.category-filter:hover,
.category-filter:focus-visible,
.category-filter.is-active {
    background: #0B2D4D;
    border-color: #0B2D4D;
    color: #fff;
}

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

.article-card {
    background: #fff;
    border: 1px solid #dce5eb;
    display: flex;
    flex-direction: column;
    min-width: 0;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.article-card:hover {
    border-color: #b6c8d5;
    box-shadow: 0 12px 28px rgba(11, 45, 77, .1);
    transform: translateY(-3px);
}

.article-card-media {
    aspect-ratio: 16 / 9;
    display: block;
    overflow: hidden;
    position: relative;
}

.article-card-media img {
    display: block;
    height: 100%;
    object-fit: cover;
    transition: transform .25s ease;
    width: 100%;
}

.article-card:hover .article-card-media img {
    transform: scale(1.04);
}

.article-card-category {
    background: #C62828;
    bottom: 0;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    left: 0;
    padding: 7px 11px;
    position: absolute;
    text-transform: uppercase;
}

.article-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 22px;
}

.article-card-body h3 {
    margin: 14px 0 10px;
}

.article-card-body h3 a {
    color: #0B2D4D;
    font-size: 21px;
    font-weight: 750;
    line-height: 1.25;
    text-decoration: none;
}

.article-card-body h3 a:hover,
.article-card-body h3 a:focus-visible {
    color: #C62828;
}

.article-card-body p {
    color: #657784;
    font-size: 14px;
    line-height: 1.65;
    margin: 0 0 18px;
}

.article-card-body .read-link {
    margin-top: auto;
}

.blog-no-results {
    color: #5e7180;
    margin: 24px 0 0;
}

.blog-appointment-band {
    background: #eef3f6;
    border-top: 1px solid #dce5eb;
    padding: 42px 0;
}

.blog-appointment-content {
    align-items: center;
    display: flex;
    gap: 30px;
    justify-content: space-between;
}

.blog-appointment-content .blog-eyebrow {
    margin-bottom: 9px;
}

.blog-appointment-content h2 {
    font-size: clamp(1.6rem, 3vw, 2.35rem);
}

.blog-appointment-content p:last-child {
    color: #5e7180;
    margin: 10px 0 0;
}

.primary-action {
    align-items: center;
    background: #C62828;
    color: #fff;
    display: inline-flex;
    flex-shrink: 0;
    font-size: 14px;
    font-weight: 800;
    gap: 9px;
    padding: 13px 18px;
    text-decoration: none;
}

.primary-action:hover,
.primary-action:focus-visible {
    background: #0B2D4D;
    color: #fff;
}

.blog-page-body .footer-social-icons {
    gap: 8px;
}

.blog-page-body .footer-social-icons a {
    align-items: center;
    background: #fff;
    border: 2px solid #fff;
    border-radius: 10px;
    color: #0B2D4D;
    display: flex;
    height: 40px;
    justify-content: center;
    text-decoration: none;
    width: 40px;
}

.blog-page-body .footer-social-icons a:hover,
.blog-page-body .footer-social-icons a:focus-visible {
    border-color: #C62828;
    color: #C62828;
}

@media (max-width: 991.98px) {
    .blog-hero-grid {
        grid-template-columns: minmax(0, 1fr) minmax(280px, .8fr);
        gap: 34px;
    }

    .article-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .blog-hero {
        padding: 48px 0 40px;
    }

    .blog-hero-grid,
    .featured-article {
        grid-template-columns: 1fr;
    }

    .blog-hero-visual {
        order: -1;
    }

    .section-space {
        padding: 54px 0;
    }

    .section-heading-row,
    .library-header,
    .blog-appointment-content {
        align-items: flex-start;
        flex-direction: column;
    }

    .featured-article-image {
        min-height: 220px;
    }

    .featured-article {
        height: auto;
    }

    .featured-article-copy {
        padding: 28px 22px 32px;
    }

    .blog-search {
        min-width: 100%;
        width: 100%;
    }

    .article-grid {
        grid-template-columns: 1fr;
    }

    .primary-action {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 530px) {
    .blog-page-body .navbar-brand {
        width: 220px;
    }

    .blog-hero-meta {
        flex-direction: column;
        gap: 10px;
    }
}
