/* Blog archive and single post — shared brand styling. */
.blog-page {
    background: #fbfbf8;
    color: #101827;
}

.blog-page a {
    text-decoration: none;
}

.blog-page a:focus-visible {
    outline: 3px solid #cf2635;
    outline-offset: 4px;
}

.blog-hero,
.blog-article__hero {
    position: relative;
    overflow: hidden;
    padding: 160px 24px 76px;
    background:
        radial-gradient(circle at 85% 15%, rgba(255, 214, 0, 0.12), transparent 35%),
        radial-gradient(circle at 5% 90%, rgba(207, 38, 53, 0.2), transparent 35%),
        #101827;
    color: #fff;
}

.blog-hero::after,
.blog-article__hero::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 7px;
    background: linear-gradient(90deg, #ffd600 0 58%, #cf2635 58% 100%);
    content: "";
}

.blog-hero__inner,
.blog-archive__inner,
.blog-article__hero-inner {
    width: min(100%, 1320px);
    margin-inline: auto;
}

.blog-hero__eyebrow,
.blog-archive__eyebrow,
.blog-article__category,
.blog-card__category,
.blog-article__nav-label {
    font-family: Inter, system-ui, sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.blog-hero__eyebrow {
    margin: 0 0 18px;
    color: #ffd600;
}

.blog-hero__title,
.blog-article__title {
    margin: 0;
    font-family: "Space Grotesk", system-ui, sans-serif;
    font-weight: 700;
    line-height: 0.98;
    letter-spacing: -0.035em;
    text-transform: uppercase;
    color: #fff;
    overflow-wrap: anywhere;
}

.blog-hero__title {
    font-size: clamp(3.5rem, 8vw, 7rem);
}

.blog-hero__description {
    max-width: 630px;
    margin: 26px 0 0;
    font-family: Raleway, Inter, system-ui, sans-serif;
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.76);
}

.blog-archive__content {
    padding: 76px 24px 100px;
}

.blog-archive__intro {
    margin-bottom: 36px;
}

.blog-archive__eyebrow {
    margin: 0 0 9px;
    color: #cf2635;
}

.blog-archive__intro h2,
.blog-archive__empty h3 {
    margin: 0;
    font-family: "Space Grotesk", system-ui, sans-serif;
    font-size: clamp(1.9rem, 3.5vw, 3rem);
    line-height: 1.1;
    text-transform: uppercase;
    color: #101827;
}

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

.blog-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(16, 24, 39, 0.1);
    box-shadow: 0 14px 35px rgba(16, 24, 39, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 42px rgba(16, 24, 39, 0.12);
}

.blog-card__media {
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #101827;
}

.blog-card__image,
.blog-card__placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.blog-card:hover .blog-card__image {
    transform: scale(1.04);
}

.blog-card__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 80% 20%, rgba(207, 38, 53, 0.42), transparent 35%),
        linear-gradient(135deg, #101827, #26354c);
    color: #ffd600;
    font-family: "Space Grotesk", system-ui, sans-serif;
    font-size: clamp(4rem, 10vw, 6rem);
    font-weight: 700;
    letter-spacing: -0.08em;
}

.blog-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 28px;
}

.blog-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
    margin-bottom: 15px;
}

.blog-card__category {
    color: #cf2635;
}

.blog-card__category:hover,
.blog-card__title a:hover {
    color: #b91524;
}

.blog-card__meta time {
    color: #68717f;
    font-family: Inter, system-ui, sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.blog-card__title {
    margin: 0 0 15px;
    font-family: "Space Grotesk", system-ui, sans-serif;
    font-size: clamp(1.35rem, 2vw, 1.75rem);
    font-weight: 700;
    line-height: 1.14;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}

.blog-card__title a {
    color: #101827;
    transition: color 0.2s ease;
}

.blog-card__excerpt {
    flex: 1;
    margin: 0 0 24px;
    color: #444c5a;
    font-family: Inter, system-ui, sans-serif;
    font-size: 0.94rem;
    line-height: 1.65;
}

.blog-card__read-more {
    align-self: flex-start;
    color: #cf2635;
    font-family: Inter, system-ui, sans-serif;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.blog-card__read-more:hover {
    color: #101827;
}

.blog-card__read-more span {
    display: inline-block;
    margin-left: 6px;
    transition: transform 0.2s ease;
}

.blog-card__read-more:hover span {
    transform: translateX(4px);
}

.blog-archive .navigation.pagination {
    margin-top: 54px;
}

.blog-archive .nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.blog-archive .page-numbers {
    display: inline-flex;
    min-width: 42px;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border: 1px solid rgba(16, 24, 39, 0.18);
    color: #101827;
    font-family: Inter, system-ui, sans-serif;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.blog-archive a.page-numbers:hover,
.blog-archive .page-numbers.current {
    background: #101827;
    border-color: #101827;
    color: #fff;
}

.blog-archive__empty {
    max-width: 700px;
    padding: 42px;
    background: #fff;
    border-left: 7px solid #ffd600;
}

.blog-archive__empty h3 {
    font-size: 1.75rem;
}

.blog-archive__empty p {
    margin: 12px 0 0;
    color: #444c5a;
}

/* Single article */
.blog-article__hero {
    padding-bottom: 86px;
}

.blog-article__hero-inner {
    max-width: 960px;
}

.blog-article__back {
    display: inline-flex;
    gap: 8px;
    margin-bottom: 42px;
    color: rgba(255, 255, 255, 0.76);
    font-family: Inter, system-ui, sans-serif;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.blog-article__back:hover {
    color: #ffd600;
}

.blog-article__category {
    display: table;
    margin-bottom: 17px;
    color: #ffd600;
}

.blog-article__category:hover {
    color: #fff;
}

.blog-article__title {
    max-width: 920px;
    font-size: clamp(2.6rem, 6vw, 5.8rem);
}

.blog-article__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 11px;
    margin-top: 28px;
    color: rgba(255, 255, 255, 0.7);
    font-family: Inter, system-ui, sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.blog-article__featured {
    width: min(calc(100% - 48px), 1200px);
    margin: 52px auto 0;
}

.blog-article__featured-image {
    width: 100%;
    max-height: 650px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.blog-article__body {
    width: min(calc(100% - 48px), 780px);
    margin-inline: auto;
    padding: 70px 0 100px;
}

.blog-article__content {
    color: #303948;
    font-family: Inter, system-ui, sans-serif;
    font-size: clamp(1rem, 1.4vw, 1.1rem);
    line-height: 1.8;
    overflow-wrap: break-word;
}

.blog-article__content > * + * {
    margin-top: 1.5rem;
}

.blog-article__content h2,
.blog-article__content h3,
.blog-article__content h4 {
    margin-top: 2.7rem;
    margin-bottom: 0.8rem;
    color: #101827;
    font-family: "Space Grotesk", system-ui, sans-serif;
    font-weight: 700;
    line-height: 1.18;
    text-transform: uppercase;
}

.blog-article__content h2 {
    font-size: clamp(1.65rem, 3vw, 2.3rem);
}

.blog-article__content h3 {
    font-size: clamp(1.3rem, 2.5vw, 1.75rem);
}

.blog-article__content a {
    color: #b91524;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.blog-article__content a:hover {
    color: #101827;
}

.blog-article__content ul,
.blog-article__content ol {
    padding-left: 1.6em;
}

.blog-article__content ul {
    list-style: disc;
}

.blog-article__content ol {
    list-style: decimal;
}

.blog-article__content li + li {
    margin-top: 0.45em;
}

.blog-article__content blockquote {
    margin: 2.5rem 0;
    padding: 16px 0 16px 26px;
    border-left: 6px solid #ffd600;
    color: #101827;
    font-family: Raleway, Inter, system-ui, sans-serif;
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    font-weight: 800;
    line-height: 1.45;
}

.blog-article__content blockquote cite {
    display: block;
    margin-top: 12px;
    color: #68717f;
    font-family: Inter, system-ui, sans-serif;
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
    text-transform: uppercase;
}

.blog-article__content figure,
.blog-article__content img,
.blog-article__content iframe {
    max-width: 100%;
}

.blog-article__content img {
    height: auto;
}

.blog-article__content figcaption {
    margin-top: 8px;
    color: #68717f;
    font-size: 0.8rem;
    text-align: center;
}

.blog-article__content pre {
    overflow-x: auto;
    padding: 20px;
    background: #101827;
    color: #fff;
}

.blog-article__content code {
    overflow-wrap: anywhere;
}

.blog-article__content table {
    width: 100%;
    border-collapse: collapse;
}

.blog-article__content th,
.blog-article__content td {
    padding: 10px 12px;
    border: 1px solid rgba(16, 24, 39, 0.18);
    text-align: left;
}

.blog-article__page-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
    font-weight: 800;
}

.blog-article__tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 46px;
    padding-top: 24px;
    border-top: 1px solid rgba(16, 24, 39, 0.15);
    font-family: Inter, system-ui, sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.blog-article__tags span {
    margin-right: 6px;
    color: #68717f;
}

.blog-article__tags a {
    padding: 8px 11px;
    background: #fff;
    border: 1px solid rgba(16, 24, 39, 0.15);
    color: #101827;
}

.blog-article__tags a:hover {
    background: #ffd600;
    border-color: #ffd600;
}

.blog-article__post-navigation {
    margin-top: 50px;
}

.blog-article__post-navigation .nav-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.blog-article__post-navigation .nav-previous,
.blog-article__post-navigation .nav-next {
    min-width: 0;
}

.blog-article__post-navigation a {
    display: flex;
    height: 100%;
    flex-direction: column;
    gap: 8px;
    padding: 22px;
    background: #101827;
    color: #fff;
}

.blog-article__post-navigation a:hover {
    background: #cf2635;
    color: #fff;
}

.blog-article__nav-label {
    color: #ffd600;
}

.blog-article__nav-title {
    font-family: "Space Grotesk", system-ui, sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.25;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}

@media (max-width: 1024px) {
    .blog-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .blog-hero,
    .blog-article__hero {
        padding: 142px 20px 60px;
    }

    .blog-archive__content {
        padding: 54px 20px 70px;
    }

    .blog-card-grid,
    .blog-article__post-navigation .nav-links {
        grid-template-columns: 1fr;
    }

    .blog-card__body {
        padding: 24px;
    }

    .blog-article__back {
        margin-bottom: 30px;
    }

    .blog-article__featured {
        width: 100%;
        margin-top: 0;
    }

    .blog-article__featured-image {
        aspect-ratio: 4 / 3;
    }

    .blog-article__body {
        width: min(calc(100% - 40px), 780px);
        padding: 52px 0 74px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .blog-card,
    .blog-card__image,
    .blog-card__read-more span {
        transition: none;
    }
}
