.blog-page {
    min-height: 100vh;
    color: #edf3f9;
    background: #040c16;
}

.blog-hero,
.blog-detail-hero {
    border-bottom: 1px solid #202a34;
    background:
        radial-gradient(circle at 82% 12%, rgba(17, 57, 93, 0.26), transparent 42%),
        radial-gradient(circle at 14% 20%, rgba(255, 122, 26, 0.12), transparent 34%),
        linear-gradient(180deg, #060e18 0%, #071221 100%);
}

.blog-hero {
    padding: 62px 0 38px;
}

.blog-hero__inner {
    display: grid;
    gap: 14px;
}

.blog-kicker {
    margin: 0;
    color: #ff7a1a;
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.blog-hero h1,
.blog-detail-hero h1 {
    max-width: 920px;
    margin: 0;
    font-size: clamp(1.85rem, 2.8vw, 3.15rem);
    line-height: 1.1;
    letter-spacing: 0;
}

.blog-hero__lead,
.blog-detail-hero__lead {
    max-width: 820px;
    margin: 0;
    color: #b8c5d3;
    font-size: 1.08rem;
    line-height: 1.5;
}

.blog-section {
    padding: 42px 0 62px;
}

.blog-section--related {
    border-top: 1px solid #202a34;
    background: #06111f;
}

.blog-section__head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.blog-section__head h2 {
    margin: 8px 0 0;
    font-size: clamp(1.6rem, 2.35vw, 2.35rem);
    line-height: 1.12;
}

.blog-section__head span {
    color: #9fb0c1;
    white-space: nowrap;
}

.blog-category-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.blog-category-nav a,
.blog-tags span {
    border: 1px solid rgba(109, 132, 157, 0.38);
    border-radius: 8px;
    color: #dce6ef;
    background: rgba(7, 17, 30, 0.72);
    text-decoration: none;
}

.blog-category-nav a {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    padding: 0 14px;
    font-weight: 700;
}

.blog-category-nav a:hover,
.blog-category-nav a.is-active {
    border-color: rgba(255, 122, 26, 0.58);
    color: #ff9a4f;
    background: rgba(255, 122, 26, 0.08);
}

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

.blog-card {
    border: 1px solid #26384a;
    border-radius: 8px;
    overflow: hidden;
    background: linear-gradient(180deg, #0a1728 0%, #0a1422 100%);
}

.blog-card__image-link {
    display: block;
}

.blog-card__image {
    width: 100%;
    height: 218px;
    object-fit: cover;
    display: block;
    border-bottom: 1px solid rgba(147, 166, 186, 0.24);
}

.blog-card__image--placeholder,
.blog-detail-hero__placeholder {
    background-image:
        linear-gradient(180deg, rgba(3, 10, 18, 0.05), rgba(3, 10, 18, 0.35)),
        url("/hero-background.png");
    background-size: cover;
    background-position: center;
}

.blog-card__body {
    display: grid;
    gap: 12px;
    padding: 18px;
}

.blog-card__meta,
.blog-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    color: #9fb0c1;
    font-size: 0.9rem;
}

.blog-card__meta span,
.blog-detail-meta span {
    color: #ff9a4f;
    font-weight: 700;
}

.blog-card h3 {
    margin: 0;
    font-size: 1.18rem;
    line-height: 1.3;
}

.blog-card h3 a {
    color: #edf3f9;
    text-decoration: none;
}

.blog-card h3 a:hover {
    color: #ff9a4f;
}

.blog-card p,
.blog-panel p,
.blog-side-card p {
    margin: 0;
    color: #b9c8d7;
    line-height: 1.48;
}

.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.blog-tags span {
    padding: 5px 9px;
    color: #b9c8d7;
    font-size: 0.82rem;
}

.blog-link,
.blog-back-link,
.blog-link-list a {
    width: fit-content;
    color: #ff9a4f;
    font-weight: 700;
    text-decoration: none;
}

.blog-link:hover,
.blog-back-link:hover,
.blog-link-list a:hover {
    color: #ffc08d;
}

.blog-empty-state {
    border: 1px solid #26384a;
    border-radius: 8px;
    background: rgba(7, 17, 30, 0.72);
    padding: 24px;
}

.blog-empty-state strong {
    display: block;
    color: #edf3f9;
    font-size: 1.1rem;
}

.blog-empty-state p {
    margin: 8px 0 0;
    color: #9fb0c1;
}

.blog-detail-hero {
    padding: 52px 0 42px;
}

.blog-detail-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: 28px;
    align-items: center;
}

.blog-detail-hero__copy {
    display: grid;
    gap: 14px;
}

.blog-detail-hero__media {
    min-height: 320px;
    border: 1px solid #26384a;
    border-radius: 8px;
    overflow: hidden;
    background: #0a1728;
}

.blog-detail-hero__media img,
.blog-detail-hero__placeholder {
    width: 100%;
    height: 100%;
    min-height: 320px;
    object-fit: cover;
    display: block;
}

.blog-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 24px;
    align-items: start;
}

.blog-detail-layout--full {
    grid-template-columns: minmax(0, 1fr);
}

.blog-detail-content {
    display: grid;
    gap: 18px;
}

.blog-panel,
.blog-side-card {
    border: 1px solid #26384a;
    border-radius: 8px;
    background: rgba(7, 17, 30, 0.72);
    padding: 22px;
}

.blog-panel {
    display: grid;
    gap: 16px;
}

.blog-rich-text {
    color: #c7d4e0;
    line-height: 1.66;
}

.blog-rich-text h2,
.blog-rich-text h3 {
    color: #edf3f9;
    line-height: 1.2;
}

.blog-rich-text a {
    color: #ff9a4f;
}

.blog-rich-text img {
    max-width: 100%;
    border-radius: 8px;
}

.blog-rich-text :first-child {
    margin-top: 0;
}

.blog-rich-text :last-child {
    margin-bottom: 0;
}

.blog-side {
    position: sticky;
    top: 110px;
    display: grid;
    gap: 14px;
}

.blog-side-card {
    display: grid;
    gap: 10px;
}

.blog-toc {
    margin: 0;
    padding-left: 20px;
    color: #b9c8d7;
}

.blog-toc li {
    margin-bottom: 8px;
}

.blog-link-list {
    display: grid;
    gap: 8px;
}

.blog-faq {
    display: grid;
    gap: 10px;
}

.blog-faq details {
    border: 1px solid rgba(109, 132, 157, 0.28);
    border-radius: 8px;
    padding: 14px;
}

.blog-faq summary {
    color: #edf3f9;
    cursor: pointer;
    font-weight: 700;
}

.blog-faq details div {
    margin-top: 10px;
    color: #b9c8d7;
    line-height: 1.5;
}

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

@media (max-width: 980px) {
    .blog-detail-hero__grid,
    .blog-detail-layout {
        grid-template-columns: 1fr;
    }

    .blog-side {
        position: static;
    }
}

@media (max-width: 760px) {
    .blog-hero,
    .blog-detail-hero {
        padding: 42px 0 28px;
    }

    .blog-section__head {
        display: grid;
        align-items: start;
    }

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

    .blog-card__image {
        height: 190px;
    }

    .blog-detail-hero__media,
    .blog-detail-hero__media img,
    .blog-detail-hero__placeholder {
        min-height: 230px;
    }
}
