:root {
    --blog-bg: #151514;
    --blog-surface: #201f1d;
    --blog-surface-2: #272522;
    --blog-line: rgba(255, 255, 255, 0.11);
    --blog-text: #f7f3ed;
    --blog-muted: #b6afa7;
    --blog-accent: #f79421;
}

.antera-blog-page { 
    width: 100%; 
    min-width: 0; 
    overflow-x: clip; 
    color: var(--blog-text); 
    background: var(--blog-bg); 
    font-family: var(--antera-font-body); 
    font-size: 17px; 
    font-weight: 300; 
}
.antera-blog-page *, .antera-blog-page *::before, .antera-blog-page *::after { 
    box-sizing: border-box; 
}
.antera-blog-page h1, .antera-blog-page h2, .antera-blog-page h3, .antera-blog-page h4 { 
    font-family: var(--antera-font-heading) !important; 
    font-weight: 600 !important; 
    text-shadow: none; 
    box-shadow: none; 
}
.antera-blog-page p, .antera-blog-page button, .antera-blog-page input { 
    font-family: var(--antera-font-body); 
}
.antera-blog-page .title-underline::after { 
    display: none !important; 
    content: none !important; 
}
.blog-hero { 
    position: relative; 
    display: grid; 
    min-height: 280px; 
    padding: 48px 0; 
    place-items: center; 
    overflow: hidden; 
    background: #171615 url('../img/figma-home/hero-poster.webp') center/cover no-repeat; 
    text-align: center; 
}
.blog-hero::before { 
    position: absolute; 
    inset: 0; 
    background: linear-gradient(90deg, rgba(8,8,8,.8), rgba(8,8,8,.45), rgba(8,8,8,.78)); 
    content: ''; 
}
.blog-hero-content { 
    position: relative; 
    z-index: 1; 
    width: calc(100% - 32px); 
    max-width: 1400px; 
    margin-inline: auto; 
}
.blog-eyebrow { 
    display: inline-flex; 
    align-items: center; 
    gap: 10px; 
    color: var(--blog-accent); 
    font-size: 12px; 
    font-weight: 700; 
    letter-spacing: .2em; 
    text-transform: uppercase; 
}
.blog-eyebrow::before, .blog-eyebrow::after { 
    width: 28px; 
    height: 1px; 
    background: currentColor; 
    content: ''; 
}
.antera-blog-page .blog-hero h1 { 
    margin: 12px 0 10px; 
    color: #fff; 
    font-family: var(--antera-font-heading) !important; 
    font-size: 80px !important; 
    line-height: 1.15 !important; 
}
.blog-hero p { 
    max-width: 670px; 
    margin: 0 auto; 
    color: #e0dbd4; 
    font-size: 17px; 
    line-height: 1.7; 
}
.blog-content { 
    width: calc(100% - 32px); 
    max-width: 1400px; 
    margin: auto; 
    padding: 72px 0 96px; 
}
.blog-layout { 
    display: grid; 
    grid-template-columns: minmax(0, 1fr) 320px; 
    gap: 48px; 
    align-items: start; 
}
.blog-grid { 
    display: grid; 
    grid-template-columns: repeat(3, minmax(0, 1fr)); 
    gap: 34px 22px; 
}
.blog-card { 
    min-width: 0; 
}
.blog-card-media {
    position: relative; 
    display: block; 
    overflow: hidden; 
    aspect-ratio: 1.18; 
    border-radius: 3px; 
    background: var(--blog-surface); 
}
.blog-card-media img, .blog-card-placeholder { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transition: transform .55s ease; 
}
.blog-card:hover .blog-card-media img { 
    transform: scale(1.045); 
}
.blog-card-placeholder { 
    display: grid; 
    place-items: center; 
    color: var(--blog-accent); 
    background: linear-gradient(135deg, #332a22, #1c1a18); 
    font-family: var(--antera-font-heading); 
    font-size: 28px; 
}
.blog-card-meta, .story-meta { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 8px; 
    align-items: center; 
    margin-top: 17px; 
    color: #9e9890; 
    font-size: 11px; 
    font-weight: 600; 
    letter-spacing: .08em; 
    text-transform: uppercase; 
}
.blog-card-category, .story-category { 
    color: var(--blog-accent); 
}
.antera-blog-page .blog-card h2 { 
    margin: 9px 0 8px; 
    font-family: var(--antera-font-heading) !important; 
    font-size: 28px !important; 
    line-height: 1.3 !important; 
}
.antera-blog-page .blog-card h2 a { 
    color: #fff; 
    font-family: inherit !important; 
    font-size: inherit !important; 
    font-weight: inherit; 
    line-height: inherit; 
    text-decoration: none; 
    text-shadow: none; 
    box-shadow: none;
    transform: none; 
}
.blog-card h2 a:hover, .blog-card h2 a:focus { 
    color: var(--blog-accent); 
    text-shadow: none; 
    box-shadow: none; 
    transform: none; 
}
.blog-card p { 
    margin: 0 !important; 
    padding: 0 !important; 
    color: var(--blog-muted); 
    line-height: 1.2; 
}
.blog-read-link { 
    display: inline-flex; 
    gap: 8px; 
    margin-top: 16px; 
    color: var(--blog-accent); 
    font-size: 13px; 
    font-weight: 700; 
    text-decoration: none; 
}
.blog-sidebar { 
    position: sticky; 
    top: 105px; 
    display: grid; 
    gap: 34px; 
    padding-left: 30px; 
    border-left: 1px solid var(--blog-line); 
}
.antera-blog-page .sidebar-block h2 { 
    margin: 0 0 14px; 
    color: var(--blog-accent); 
    font-family: var(--antera-font-heading) !important; 
    font-size: 19px !important; 
    line-height: 1.15; 
}
.sidebar-about-image { 
    width: 100%; 
    aspect-ratio: 1.6; 
    object-fit: cover; 
}
.sidebar-block p { 
    color: var(--blog-muted); 
    font-size: 14px; 
    line-height: 1.7; 
}
.category-list, .recent-list {
    display: grid; 
    margin: 0; 
    padding: 0; 
    list-style: none; 
}
.category-list li { 
    border-bottom: 1px solid var(--blog-line); 
}
.category-list a { 
    display: flex; 
    justify-content: space-between; 
    padding: 13px 0; 
    color: #e6e1da; 
    font-size: 13px; 
    text-decoration: none; 
}
.category-list a:hover, .recent-title:hover { 
    color: var(--blog-accent); 
}
.recent-list { 
    gap: 16px; 
}
.recent-item { 
    display: grid; 
    grid-template-columns: 72px minmax(0, 1fr); 
    gap: 12px; 
}
.recent-thumb { 
    width: 72px; 
    height: 62px; 
    object-fit: cover; 
    background: var(--blog-surface); 
}
.recent-title { 
    display: -webkit-box; 
    overflow: hidden; 
    color: #fff; 
    font-family: var(--antera-font-heading); 
    font-size: 15px; 
    line-height: 1.3; 
    text-decoration: none; 
    -webkit-box-orient: vertical; 
}
.recent-date { 
    display: block; 
    margin-top: 5px; 
    color: var(--blog-accent); 
    font-size: 10px; 
    text-transform: uppercase; 
}
.blog-empty, .blog-error { 
    grid-column: 1 / -1; 
    padding: 46px; 
    border: 1px solid var(--blog-line); 
    background: var(--blog-surface); 
    color: var(--blog-muted); 
    text-align: center; 
}
.blog-empty strong { 
    display: block; 
    margin-bottom: 8px; 
    color: #fff; 
    font-family: var(--antera-font-heading); 
    font-size: 28px; 
}
.blog-pagination { 
    display: flex; 
    gap: 9px; 
    justify-content: center; 
    margin-top: 52px; 
}
.blog-pagination a, .blog-pagination span { 
    display: grid; 
    width: 42px; 
    height: 42px; 
    place-items: center; 
    border: 1px solid #5d625f; 
    border-radius: 50%; 
    color: #fff; 
    text-decoration: none; 
}
.blog-pagination .active, .blog-pagination a:hover { 
    border-color: var(--blog-accent); 
    color: #171615; 
    background: var(--blog-accent); 
}

.story-layout { 
    display: grid; 
    grid-template-columns: minmax(0, 1fr) 320px; 
    gap: 48px; 
    align-items: start; 
}
.story-article { 
    min-width: 0; 
}
.story-header { 
    margin-bottom: 28px;
}
.antera-blog-page .story-header h1 { 
    margin: 10px 0 13px; 
    color: #fff; 
    font-family: var(--antera-font-heading) !important; 
    font-size: clamp(24px, 2.8vw, 35px) !important; 
    line-height: 1.3 !important; 
}
.story-cover { 
    display: block; 
    width: 100%; 
    height: auto; 
    max-height: 560px; 
    margin-bottom: 36px; 
    object-fit: cover; 
    background: var(--blog-surface); 
}
.story-content { 
    color: #d0cac3; 
    font-size: 17px; 
    line-height: 1.2; 
    overflow-wrap: anywhere; 
}
.story-content p { 
    margin: 0 0 20px !important; 
    padding: 0 !important; 
    line-height: 1.2; 
}
.story-content p:last-child { 
    margin-bottom: 0 !important; 
}
.story-share { 
    display: flex; 
    flex-wrap: wrap; 
    align-items: center; 
    justify-content: space-between; 
    gap: 15px; 
    margin-top: 38px; 
    padding-block: 20px; 
    border-block: 1px solid var(--blog-line); 
}
.story-share a { 
    color: var(--blog-accent);
    text-decoration: none; 
}
.related-section { 
    margin-top: 58px; 
}
.related-section > .blog-eyebrow { 
    display: flex; 
    width: fit-content; 
    margin: 0 0 14px; 
    line-height: 1.4; 
}
.antera-blog-page .related-section > h2 { 
    clear: both; 
    margin: 0 0 24px; 
    color: #fff; 
    font-family: var(--antera-font-heading) !important; 
    font-size: clamp(21px, 1.8vw, 26px) !important; 
    line-height: 1.1; 
}
.related-grid { 
    display: grid; 
    grid-template-columns: repeat(3, minmax(0, 1fr)); 
    gap: 22px; 
}
.antera-blog-page .related-grid .blog-card h2 { 
    font-size: clamp(16px, 1.25vw, 18px) !important; 
    line-height: 1.3 !important; 
}
.story-not-found { 
    padding: 48px; 
    border: 1px solid var(--blog-line); 
    background: var(--blog-surface); 
}

@media (min-width: 992px) and (max-width: 1399px) {
    .blog-hero-content, .blog-content { max-width: 1175px; }
    .blog-layout, .story-layout { grid-template-columns: minmax(0, 1fr) 280px; gap: 34px; }
    .blog-sidebar { padding-left: 24px; }
}

@media (max-width: 980px) {
    .blog-content { 
        width: calc(100% - 40px); 
        padding: 60px 0 78px; 
    }
    .blog-layout, .story-layout { 
        grid-template-columns: 1fr; 
    }
    .blog-grid, .related-grid { 
        grid-template-columns: repeat(2, minmax(0, 1fr)); 
    }
    .blog-sidebar { 
        position: static; 
        grid-template-columns: repeat(2, minmax(0, 1fr)); 
        gap: 28px; padding: 40px 0 0; 
        border-top: 1px solid var(--blog-line); 
        border-left: 0; 
    }
    .antera-blog-page .blog-hero h1 { 
        font-size: clamp(36px, 10vw, 64px) !important; 
    }
    .antera-blog-page .blog-card h2 { 
        font-size: 26px !important; 
    }
    .story-cover { 
        margin-bottom: 30px; 
    }
}

@media (max-width: 700px) {
    .blog-sidebar { 
        grid-template-columns: 1fr; 
    }
}

@media (max-width: 640px) {
    .blog-hero { 
        min-height: 220px; 
        padding: 36px 0; 
    }
    .blog-hero-content { 
        width: calc(100% - 32px); 
    }
    .antera-blog-page .blog-hero h1 { 
        margin: 8px 0; 
        font-size: clamp(34px, 11vw, 48px) !important; 
        line-height: 1.1 !important; 
    }
    .blog-hero p { 
        font-size: 15px; 
    }
    .blog-content { 
        width: calc(100% - 32px); 
        padding: 46px 0 64px; 
    }
    .blog-grid, .related-grid, .blog-sidebar { 
        grid-template-columns: 1fr; 
    }
    .blog-grid { 
        gap: 38px; 
    }
    .blog-layout, .story-layout { 
        gap: 42px; 
    }
    .blog-card-media { 
        aspect-ratio: 1.35; 
    }
    .antera-blog-page .blog-card h2 { 
        margin-top: 7px; 
        font-size: 24px !important; 
        line-height: 1.25 !important; 
    }
    .blog-card-meta, .story-meta { 
        margin-top: 14px; 
    }
    .blog-card p { 
        font-size: 16px; 
        line-height: 1.2; 
    }
    .blog-read-link { 
        margin-top: 13px; 
    }
    .story-header { 
        margin-bottom: 22px; 
    }
    .antera-blog-page .story-header h1 { 
        margin-top: 8px; 
        font-size: clamp(26px, 8vw, 34px) !important; 
        line-height: 1.22 !important; 
    }
    .story-cover { 
        max-height: none; 
        margin-bottom: 25px;
    }
    .story-content { 
        font-size: 16px; 
        line-height: 1.2;
    }
    .related-section { 
        margin-top: 44px; 
    }
    .antera-blog-page .related-section > h2 { 
        margin-bottom: 20px; 
        font-size: 23px !important; 
    }
    .related-grid { 
        gap: 30px; 
    }
    .blog-sidebar { 
        gap: 30px; 
        padding-top: 34px; 
    }
    .blog-empty, .blog-error, .story-not-found { 
        padding: 30px 20px; 
    }
    .blog-pagination { 
        flex-wrap: wrap; 
        margin-top: 42px; 
    }
}

@media (max-width: 380px) {
    .blog-hero-content, .blog-content {
         width: calc(100% - 24px); 
        }
    .antera-blog-page .blog-hero h1 { 
        font-size: 34px !important; 
    }
    .antera-blog-page .blog-card h2 { 
        font-size: 22px !important;
     }
    .recent-item { 
        grid-template-columns: 64px minmax(0, 1fr); 
        gap: 10px; 
    }
    .recent-thumb { 
        width: 64px; 
        height: 56px; 
    }
}

@media (hover: none) {
    .blog-card:hover .blog-card-media img { 
        transform: none; 
    }
}
