﻿.brooks-blog {
    --blog-blue: #003789;
    --blog-blue-dark: #002b69;
    --blog-aqua: #d5f0f3;
    --blog-ink: #111820;
    --blog-muted: #5c6670;
    color: var(--blog-ink);
    overflow: hidden;
}

.brooks-blog a {
    color: inherit;
}

.blog-intro {
    padding: clamp(4rem, 9vw, 8rem) 1rem clamp(2.75rem, 6vw, 5.5rem);
    background: #fff;
}

.blog-intro h1,
.blog-detail-hero h1 {
    margin: 0;
    font-family: "Roboto Condensed", sans-serif;
    font-size: clamp(3.2rem, 7vw, 6.5rem);
    font-weight: 700;
    line-height: .95;
    letter-spacing: -.045em;
}

.blog-intro p {
    margin: 2rem 0 0;
    font-size: clamp(1.15rem, 2vw, 1.6rem);
}

.blog-category-nav {
    margin-bottom: clamp(2.5rem, 6vw, 5rem);
    border-bottom: 1px solid #d9dde1;
}

.blog-category-list {
    display: flex;
    justify-content: center;
    gap: clamp(1.25rem, 3vw, 3.5rem);
    overflow-x: auto;
    padding: 0 0 1.2rem;
    scrollbar-width: thin;
}

.blog-category-list a {
    position: relative;
    flex: 0 0 auto;
    padding: .25rem 0;
    font-family: "Roboto Condensed", sans-serif;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
}

.blog-category-list a::after {
    position: absolute;
    right: 0;
    bottom: -.45rem;
    left: 0;
    height: 3px;
    background: var(--blog-blue);
    content: "";
    opacity: 0;
    transform: scaleX(.4);
    transition: opacity .2s ease, transform .2s ease;
}

.blog-category-list a:hover::after,
.blog-category-list a.active::after {
    opacity: 1;
    transform: scaleX(1);
}

.blog-featured {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, .9fr);
    max-width: 1650px;
    margin: 0 auto clamp(5rem, 10vw, 9rem);
    background: var(--blog-blue);
    color: #fff;
}

.blog-featured-image,
.blog-card-image {
    display: block;
    overflow: hidden;
    background: var(--blog-aqua);
}

.blog-featured-image {
    min-height: clamp(340px, 43vw, 650px);
}

.blog-featured-image img,
.blog-card-image img,
.blog-detail-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.blog-featured-image img,
.blog-card-image img {
    transition: transform .45s ease;
}

.blog-featured-image:hover img,
.blog-card:hover .blog-card-image img {
    transform: scale(1.025);
}

.blog-featured-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(2.25rem, 5vw, 5.5rem);
}

.blog-category {
    margin-bottom: .9rem;
    font-family: "Roboto Condensed", sans-serif;
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.blog-featured h2,
.blog-card h3,
.blog-section-heading h2 {
    font-family: "Roboto Condensed", sans-serif;
    font-weight: 700;
}

.blog-featured h2 {
    margin: 0 0 1.5rem;
    font-size: clamp(2rem, 3.5vw, 3.65rem);
    line-height: 1.02;
    letter-spacing: -.025em;
}

.blog-featured h2 a,
.blog-featured h2 a:hover {
    color: #fff;
}

.blog-teaser {
    line-height: 1.65;
}

.blog-teaser > :last-child {
    margin-bottom: 0;
}

.blog-teaser img,
.blog-teaser figure,
.blog-teaser iframe {
    display: none;
}

.blog-featured time,
.blog-card time {
    display: block;
    margin-top: 1.5rem;
    font-size: .9rem;
    opacity: .78;
}

.blog-articles {
    max-width: 1650px;
    margin: 0 auto;
    padding-bottom: clamp(5rem, 9vw, 8rem);
}

.blog-section-heading {
    margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.blog-section-heading > span {
    display: block;
    margin-bottom: .65rem;
    font-family: "Roboto Condensed", sans-serif;
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: .12em;
}

.blog-section-heading h2 {
    margin: 0;
    font-size: clamp(2.35rem, 4.5vw, 4.5rem);
    line-height: 1;
    letter-spacing: -.035em;
    text-decoration: none;
    text-transform: none;
}

.blog-card {
    display: flex;
    flex-direction: column;
    background: #fff;
}

.blog-card-image {
    aspect-ratio: 16 / 10;
}

.blog-image-placeholder {
    display: flex;
    width: 100%;
    height: 100%;
    min-height: 240px;
    align-items: center;
    justify-content: center;
    color: var(--blog-blue);
    font-family: "Roboto Condensed", sans-serif;
    font-size: clamp(1.6rem, 3vw, 3.25rem);
    font-weight: 700;
    font-style: italic;
}

.blog-card-content {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 1.5rem 0 .5rem;
}

.blog-card h3 {
    margin: 0 0 1rem;
    font-size: clamp(1.55rem, 2.2vw, 2.15rem);
    line-height: 1.08;
}

.blog-card h3 a:hover {
    color: var(--blog-blue);
}

.blog-card .blog-teaser {
    color: var(--blog-muted);
}

.blog-card time {
    margin-top: auto;
    padding-top: 1.25rem;
    color: var(--blog-muted);
}

.blog-empty {
    padding: 4rem 1.5rem;
    background: #f2f5f7;
    text-align: center;
}

.blog-pagination {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid #d9dde1;
}

.blog-pagination a {
    justify-self: start;
    padding: .8rem 1.3rem;
    border: 2px solid var(--blog-blue);
    color: var(--blog-blue);
    font-family: "Roboto Condensed", sans-serif;
    font-weight: 700;
    text-transform: uppercase;
}

.blog-pagination a:last-child {
    justify-self: end;
}

.blog-pagination a:hover,
.blog-button:hover {
    background: var(--blog-blue-dark);
    color: #fff;
}

.blog-detail-hero {
    padding: clamp(3.5rem, 8vw, 7rem) 1rem clamp(3rem, 6vw, 5.5rem);
    background: var(--blog-aqua);
    color: var(--blog-ink);
    text-align: center;
}

.blog-detail-hero .container-xl {
    max-width: 1050px;
}

.blog-back-link {
    display: inline-block;
    margin-bottom: 2.5rem;
    font-family: "Roboto Condensed", sans-serif;
    font-weight: 700;
    text-transform: uppercase;
}

.blog-detail-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.blog-detail-meta .blog-category {
    margin: 0;
}

.blog-detail-meta time {
    color: var(--blog-muted);
    font-size: .9rem;
}

.blog-detail-teaser {
    max-width: 820px;
    margin: 2rem auto 0;
    font-size: clamp(1.05rem, 1.8vw, 1.35rem);
    line-height: 1.6;
}

.blog-detail-teaser > :last-child {
    margin-bottom: 0;
}

.blog-detail-image {
    max-width: 1500px;
    margin-top: clamp(2.5rem, 6vw, 5rem);
}

.blog-detail-image img {
    max-height: 820px;
}

.blog-article-content {
    max-width: 900px;
    margin: 0 auto;
    padding: clamp(3rem, 7vw, 6rem) 0;
    font-size: 1.08rem;
    line-height: 1.8;
}

.blog-article-content h2,
.blog-article-content h3,
.blog-article-content h4 {
    margin-top: 2.4em;
    margin-bottom: .75em;
    font-family: "Roboto Condensed", sans-serif;
    font-weight: 700;
    line-height: 1.1;
}

.blog-article-content h2 {
    font-size: clamp(2rem, 3.5vw, 3.25rem);
    text-decoration: none;
    text-transform: none;
}

.blog-article-content h3 {
    font-size: clamp(1.6rem, 2.5vw, 2.25rem);
}

.blog-article-content img,
.blog-article-content iframe,
.blog-article-content video {
    max-width: 100%;
    height: auto;
}

.blog-article-content a {
    color: var(--blog-blue);
    text-decoration: underline;
    text-underline-offset: .2em;
}

.blog-detail-cta {
    margin-top: 3rem;
}

.blog-button {
    display: inline-block;
    padding: .9rem 1.4rem;
    background: var(--blog-blue);
    color: #fff !important;
    font-family: "Roboto Condensed", sans-serif;
    font-weight: 700;
    text-decoration: none !important;
    text-transform: uppercase;
}

.blog-related {
    padding: clamp(4rem, 8vw, 7rem) 0;
    background: #f1f5f6;
}

.blog-related .container-xxl {
    max-width: 1650px;
}

.blog-related .blog-card-content {
    background: #f1f5f6;
}

@media (max-width: 991.98px) {
    .blog-featured {
        grid-template-columns: 1fr;
    }

    .blog-featured-image {
        min-height: 0;
        aspect-ratio: 16 / 10;
    }
}

@media (max-width: 767.98px) {
    .blog-intro {
        padding-top: 3.5rem;
    }

    .blog-category-list {
        justify-content: flex-start;
    }

    .blog-featured {
        margin-right: -.75rem;
        margin-left: -.75rem;
    }

    .blog-featured-content {
        padding: 2rem 1.5rem 2.5rem;
    }

    .blog-card-content {
        padding-top: 1.25rem;
    }

    .blog-pagination {
        grid-template-columns: 1fr 1fr;
    }

    .blog-pagination strong {
        grid-column: 1 / -1;
        grid-row: 1;
        text-align: center;
    }

    .blog-pagination a {
        grid-row: 2;
        font-size: .85rem;
    }

    .blog-detail-meta {
        flex-direction: column;
        gap: .25rem;
    }

    .blog-article-content {
        font-size: 1rem;
    }
}
