.blog-page {
    min-height: 100vh;
    background: #0f172a;
    color: var(--color-text-light);
}

.blog-page main {
    min-height: 100vh;
    background:
        radial-gradient(circle at 72% 6%, rgba(30, 64, 175, 0.26), transparent 30%),
        radial-gradient(circle at 18% 38%, rgba(180, 83, 9, 0.07), transparent 28%),
        linear-gradient(180deg, #0f172a 0%, #172554 24%, #111827 58%, #0f172a 100%);
}

.blog-page .header {
    position: sticky;
}

.blog-hero {
    position: relative;
    overflow: hidden;
    display: flex;
    min-height: clamp(620px, calc(100svh - 74px), 780px);
    align-items: center;
    padding: 92px 0 78px;
    isolation: isolate;
    color: #f8fafc;
    background: transparent;
}

.blog-hero::before,
.blog-hero::after {
    position: absolute;
    inset: 0 0 -1px;
    content: "";
    pointer-events: none;
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 72%, rgba(0, 0, 0, 0.9) 84%, rgba(0, 0, 0, 0.42) 94%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 0%, #000 72%, rgba(0, 0, 0, 0.9) 84%, rgba(0, 0, 0, 0.42) 94%, transparent 100%);
}

.blog-hero::before {
    z-index: 0;
    background: url("/assets/images/page-heroes/blog-workbench-1672.webp") center center / cover no-repeat;
    filter: brightness(1.12) saturate(1.03);
}

.blog-hero::after {
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(3, 10, 22, 0.94) 0%, rgba(3, 10, 22, 0.88) 22%, rgba(3, 10, 22, 0.68) 48%, rgba(3, 10, 22, 0.32) 72%, rgba(3, 10, 22, 0.08) 100%),
        linear-gradient(180deg, rgba(7, 17, 31, 0.12) 0%, transparent 58%, rgba(7, 17, 31, 0.32) 100%);
}

.blog-hero__inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.55fr);
    align-items: center;
    gap: 72px;
}

.blog-eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    color: #fbbf24;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.blog-hero h1 {
    max-width: 820px;
    margin: 0 0 24px;
    font-size: clamp(42px, 5.4vw, 72px);
    line-height: 0.98;
    letter-spacing: -0.055em;
}

.blog-hero__inner > div:first-child > p {
    max-width: 780px;
    margin: 0;
    color: #cbd5e1;
    font-size: clamp(18px, 2vw, 22px);
    line-height: 1.6;
}

.blog-hero__note {
    padding: 26px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 20px;
    background: rgba(7, 17, 31, 0.74);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(12px);
}

.blog-hero__note strong {
    display: block;
    margin-bottom: 8px;
    color: #f8fafc;
    font-size: 19px;
}

.blog-hero__note p {
    margin: 0;
    color: #a8b3c7;
}

.blog-index {
    min-height: 52vh;
    background: transparent;
}

.blog-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 36px;
}

.blog-section-heading h2 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(34px, 4vw, 52px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

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

.blog-card {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.74);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.18);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.blog-card:hover {
    transform: translateY(-4px);
    border-color: rgba(245, 158, 11, 0.3);
    box-shadow: 0 28px 76px rgba(0, 0, 0, 0.26);
}

.blog-card__image {
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #0f172a;
}

.blog-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 350ms ease;
}

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

.blog-card__body {
    display: flex;
    min-height: 340px;
    flex-direction: column;
    padding: 26px;
}

.blog-card__meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
    color: rgba(203, 213, 225, 0.76);
    font-size: 12px;
    font-weight: 700;
}

.blog-card__meta span {
    color: #fbbf24;
}

.blog-card h2 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: 25px;
    line-height: 1.18;
    letter-spacing: -0.025em;
}

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

.blog-card p {
    margin: 0 0 24px;
    color: rgba(203, 213, 225, 0.86);
    line-height: 1.65;
}

.blog-card__more {
    margin-top: auto;
    color: #fbbf24;
    font-weight: 800;
}

.blog-empty {
    padding: 56px;
    border: 1px dashed rgba(203, 213, 225, 0.46);
    border-radius: 24px;
    color: #cbd5e1;
    text-align: center;
}

.article-hero {
    padding: 58px 0 72px;
    color: #f8fafc;
    background: transparent;
}

.article-hero__content {
    max-width: 1180px;
}

.article-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 44px;
    color: #94a3b8;
    font-size: 14px;
}

.article-breadcrumbs a:hover {
    color: #fbbf24;
}

.article-hero h1 {
    max-width: 1040px;
    margin: 0 0 24px;
    font-size: clamp(40px, 6vw, 74px);
    line-height: 1;
    letter-spacing: -0.055em;
}

.article-lead {
    max-width: 840px;
    margin: 0 0 28px;
    color: #cbd5e1;
    font-size: clamp(19px, 2.2vw, 24px);
    line-height: 1.55;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 26px;
    padding-bottom: 42px;
    color: #94a3b8;
    font-size: 14px;
}

.article-meta span:not(:last-child)::after {
    margin-left: 26px;
    color: #475569;
    content: "•";
}

.article-cover {
    overflow: hidden;
    max-width: 1180px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 28px;
    aspect-ratio: 16 / 7.4;
    background: #0f172a;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.3);
}

.article-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 780px) minmax(260px, 1fr);
    align-items: start;
    gap: 80px;
    padding-top: 0;
    padding-bottom: 96px;
}

.article-content {
    min-width: 0;
    color: #d7e0ed;
    font-size: 19px;
    line-height: 1.78;
}

.article-block {
    margin: 0 0 26px;
}

.article-content h2.article-block {
    margin-top: 58px;
    margin-bottom: 20px;
    color: #ffffff;
    font-size: clamp(30px, 4vw, 43px);
    line-height: 1.1;
    letter-spacing: -0.035em;
}

.article-content h3.article-block {
    margin-top: 38px;
    margin-bottom: 14px;
    color: #f8fafc;
    font-size: 27px;
    line-height: 1.2;
}

.article-content ul.article-block {
    padding-left: 27px;
}

.article-content li {
    margin-bottom: 10px;
}

.article-content blockquote.article-block {
    padding: 8px 0 8px 26px;
    border-left: 4px solid #d97706;
    color: #dbe4f0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 24px;
    line-height: 1.55;
}

.article-block--callout {
    padding: 24px 26px;
    border: 1px solid rgba(147, 197, 253, 0.26);
    border-radius: 18px;
    background: rgba(30, 64, 175, 0.18);
    color: #dbeafe;
}

.article-content figure.article-block {
    margin: 44px 0;
}

.article-content figure img {
    width: 100%;
    border-radius: 20px;
    background: #101827;
}

.article-content figcaption {
    margin-top: 10px;
    color: #94a3b8;
    font-size: 14px;
    text-align: center;
}

.article-font--serif { font-family: Georgia, "Times New Roman", serif; }
.article-font--mono { font-family: "SFMono-Regular", Consolas, monospace; }
.article-color--accent { color: #fbbf24 !important; }
.article-color--muted { color: #a8b3c7 !important; }
.article-color--warm { color: #fdba74 !important; }
.article-align--center { text-align: center; }
.article-align--right { text-align: right; }

.article-aside {
    position: sticky;
    top: 102px;
}

.article-aside__card {
    padding: 28px;
    border-radius: 22px;
    color: #f8fafc;
    background: linear-gradient(145deg, #0f1d39, #1e3a78);
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.18);
}

.article-aside__card h2 {
    margin: 0 0 12px;
    font-size: 28px;
    line-height: 1.1;
}

.article-aside__card p {
    margin: 0 0 22px;
    color: #cbd5e1;
}

.article-back {
    display: inline-block;
    margin-top: 22px;
    color: #cbd5e1;
    font-weight: 700;
}

.article-back:hover {
    color: #fbbf24;
}

@media (max-width: 980px) {
    .blog-hero__inner,
    .article-layout {
        grid-template-columns: 1fr;
        gap: 38px;
    }

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

    .article-aside {
        position: static;
    }
}

@media (max-width: 680px) {
    .blog-hero {
        padding: 62px 0 54px;
    }

    .blog-hero::before {
        background-image: url("/assets/images/page-heroes/blog-workbench-960.webp");
        background-position: 72% center;
    }

    .blog-hero::after {
        background:
            linear-gradient(180deg, rgba(3, 10, 22, 0.98) 0%, rgba(3, 10, 22, 0.86) 48%, rgba(3, 10, 22, 0.34) 76%, rgba(3, 10, 22, 0.08) 100%),
            linear-gradient(90deg, rgba(3, 10, 22, 0.68), rgba(3, 10, 22, 0.08));
    }

    .blog-hero h1,
    .article-hero h1 {
        font-size: 40px;
    }

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

    .blog-card__body {
        min-height: 0;
    }

    .article-hero {
        padding-top: 34px;
    }

    .article-breadcrumbs {
        margin-bottom: 30px;
    }

    .article-cover {
        border-radius: 18px;
        aspect-ratio: 4 / 3;
    }

    .article-layout {
        padding-bottom: 68px;
    }

    .article-content {
        font-size: 17px;
    }

    .article-content h2.article-block {
        margin-top: 46px;
        font-size: 31px;
    }

    .article-meta span::after {
        display: none;
    }
}

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