.blog-page__header {
    text-align: center;
    padding: 32px 0 8px;
}

.blog-page__header h1 {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
}

.blog-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0 20px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    margin-bottom: 24px;
}

.blog-toolbar__count {
    font-size: 13px;
    color: rgba(255,255,255, 1);
}

.blog-toolbar__views {
    display: flex;
    gap: 4px;
    background: rgba(255,255,255,0.04);
    border-radius: 8px;
    padding: 3px;
}

.blog-view-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 6px;
    border: none;
    background: transparent;
    color: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: all 0.15s;
}
.blog-view-btn:hover {
    color: rgba(255,255,255,0.6);
}
.blog-view-btn.active {
    background: rgba(255,255,255,0.08);
    color: #fff;
}




.blog-feed--grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.blog-feed--grid .post-card {
    display: flex;
    flex-direction: column;
}

.blog-feed--grid .post-card__figure {
    aspect-ratio: 5 / 3;
}


.blog-feed--list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 48px;
}

.blog-feed--list .post-card {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 20px;
    align-items: center;
}

.blog-feed--list .post-card__figure {
    aspect-ratio: 4 / 3;
    height: 100%;
    max-height: 180px;
}

.blog-feed--list .post-card__excerpt {
    -webkit-line-clamp: 2;
}

.blog-feed--list .post-card__title {
    font-size: 18px;
}



.post-card {
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.post-card:hover {
    border-color: rgba(255,255,255,0.12);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.25);
}


.post-card--featured {
    border-color: rgba(229,57,53,0.2);
}
.post-card--featured:hover {
    border-color: rgba(229,57,53,0.35);
}



.post-card__figure {
    position: relative;
    overflow: hidden;
    margin: 0;
    background: rgba(255,255,255,0.03);
}

.post-card__figure a {
    display: block;
    width: 100%;
    height: 100%;
}

.post-card__figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.post-card:hover .post-card__figure img {
    transform: scale(1.04);
}

.post-card__placeholder {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.1);
    background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%);
}
.post-card__placeholder svg{
    fill: red;
}


.post-card__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fff;
    background: #e538357e;
    border-radius: 4px;
    z-index: 2;
}



.post-card__body {
    display: flex;
    flex-direction: column;
    padding: 20px;
    flex: 1;
}

.post-card__meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: rgba(255,255,255,0.3);
    margin-bottom: 10px;
}

.post-card__sep {
    color: rgba(255,255,255,0.15);
}

.post-card__title {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.35;
    margin: 0 0 10px;
}
.post-card__title a {
    color: #fff;
    text-decoration: none;
    transition: color 0.15s;
}
.post-card__title a:hover {
    color: #e53935;
}

.post-card__excerpt {
    font-size: 14px;
    line-height: 1.65;
    color: rgba(255,255,255,0.4);
    margin: 0 0 auto;
    padding-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}



.post-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,0.04);
}

.post-card__readmore {
    font-size: 13px;
    font-weight: 600;
    color: #e53935;
    text-decoration: none;
    transition: color 0.15s;
}
.post-card__readmore:hover {
    color: #ef5350;
}

.post-card__views {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: rgba(255,255,255, 1);
}
.post-card__views svg {
    opacity: 0.6;
}



.blog-pagination {
    display: flex;
    gap: 6px;
    justify-content: center;
    padding: 0 0 48px;
}

.blog-pagination__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    transition: all 0.15s;
}
.blog-pagination__link:hover {
    background: rgba(255,255,255,0.07);
    color: #fff;
    border-color: rgba(255,255,255,0.12);
}
.blog-pagination__link.active {
    background: #e53935;
    color: #fff;
    border-color: #e53935;
    pointer-events: none;
}
.blog-pagination__link--prev,
.blog-pagination__link--next {
    font-weight: 600;
}



.blog-empty {
    text-align: center;
    padding: 80px 20px;
    color: rgba(255,255,255, 1);
    font-size: 15px;
}



.blog-seo {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 0;
    border-top: 1px solid rgba(255,255,255,0.06);
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.945);
}
.blog-seo h2,
.blog-seo h3 {
    color: rgba(255,255,255,0.6);
    font-size: 18px;
    margin: 24px 0 10px;
}
.blog-seo p {
    margin: 0 0 14px;
}
.blog-seo a {
    color: #e53935;
}


.post-card__author {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: rgba(255,255,255,0.5);
    font-size: 13px;
    font-weight: 500;
    transition: color 0.15s;
}
.post-card__author:hover {
    color: #e53935;
}

.post-card__author-img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255,255,255,0.08);
}

.post-card__author-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}


.blog-loadmore {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 32px 0 48px;
}

.blog-loadmore__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 32px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    cursor: pointer;
    transition: all 0.2s;
}
.blog-loadmore__btn:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.15);
}
.blog-loadmore__btn.loading {
    opacity: 0.5;
    pointer-events: none;
}

.blog-loadmore__count {
    font-size: 12px;
    color: rgba(255,255,255, 1);
}

.article {
    width: 100%;
    margin: 0 auto;
    padding: 0 0 32px;
    display: grid;
    grid-template-areas:
    "header header"
    "figure figure"
    "nav content"
    "share share";
    gap: 20px;
}


.article__header {
    grid-area: header;
    text-align: center;
    padding: 32px 0 24px;
}

.article__title {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.25;
    color: #fff;
    margin: 0 0 20px;
}

.article__meta {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
    color: rgba(255,255,255, 1);
}

.article__meta-sep {
    color: rgba(255,255,255,0.15);
}

.article__author {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.15s;
}
.article__author:hover {
    color: #e53935;
}

.article__author-img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.08);
}

.article__author-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.article__author-name {
    color: inherit;
}

.article__date,
.article__read-time {
    color: rgba(255,255,255, 1);
}

.article__views {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: rgba(255,255,255, 1);
}

.article__hero {
    margin: 0 0 32px;
    border-radius: 12px;
    max-width: 1200px;
    width: auto;
    margin: 0 auto;
    grid-area: figure;
    overflow: hidden;
}
.article__hero img {
    width: 100%;
    height: auto;
    display: block;
}


.prose {
    font-size: 16px;
    grid-area: content;
    line-height: 1.8;
    color: rgba(255,255,255,0.7);
}

.prose h2 {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin: 40px 0 16px;
}
.prose h3 {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin: 32px 0 12px;
}
.prose h4 {
    font-size: 17px;
    font-weight: 600;
    color: rgba(255,255,255, 1);
    margin: 24px 0 10px;
}

.prose p {
    margin: 0 0 20px;
}

.prose a {
    color: #e53935;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.prose a:hover {
    color: #ef5350;
}

.prose img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 24px 0;
}

.prose blockquote {
    margin: 24px 0;
    padding: 16px 24px;
    border-left: 3px solid #e53935;
    background: rgba(255,255,255,0.02);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: rgba(255,255,255,0.5);
}

.prose ul,
.prose ol {
    margin: 0 0 20px;
    padding-left: 24px;
}
.prose li {
    margin-bottom: 8px;
}

.prose pre {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 8px;
    padding: 16px 20px;
    overflow-x: auto;
    font-size: 14px;
    margin: 24px 0;
}
.prose code {
    background: rgba(255,255,255,0.06);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
}
.prose pre code {
    background: none;
    padding: 0;
}

.prose hr {
    border: none;
    border-top: 1px solid rgba(255,255,255,0.06);
    margin: 32px 0;
}

.prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 14px;
}
.prose th,
.prose td {
    padding: 10px 14px;
    border: 1px solid rgba(255,255,255,0.06);
    text-align: left;
}
.prose th {
    background: rgba(255,255,255,0.04);
    font-weight: 600;
    color: rgba(255,255,255,0.8);
}


.article__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 24px 0;
    border-top: 1px solid rgba(255,255,255,0.06);
    margin-top: 32px;
}

.article__tag {
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255,255,255,0.4);
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 20px;
}


.article__share {
    display: flex;
    align-items: center;
    gap: 12px;
    grid-area: share;
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.article__share-label {
    font-size: 13px;
    color: rgba(255,255,255,0.3);
    font-weight: 600;
}

.article__share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.06);
    background: rgba(255,255,255,0.03);
    color: rgba(255,255,255,0.4);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s;
    font-size: 12px;
}
.article__share-btn:hover {
    background: rgba(255,255,255,0.08);
    color: #fff;
    border-color: rgba(255,255,255,0.12);
}


.author-box {
    display: flex;
    gap: 20px;
    max-width: 800px;
    margin: 32px auto;
    padding: 24px;
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
}

.author-box__avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.08);
}

.author-box__avatar-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
    display: flex;
    align-items: center;
    justify-content: center;
}

.author-box__label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255, 1);
}

.author-box__name {
    font-size: 18px;
    font-weight: 700;
    margin: 4px 0 8px;
}
.author-box__name a {
    color: #fff;
    text-decoration: none;
}
.author-box__name a:hover {
    color: #e53935;
}

.author-box__bio {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255,255,255,0.4);
    margin: 0 0 12px;
}

.author-box__links {
    display: flex;
    gap: 10px;
}
.author-box__links a {
    color: rgba(255,255,255,0.3);
    transition: color 0.15s;
}
.author-box__links a:hover {
    color: #e53935;
}

.author-profile {
    display: flex;
    align-items: center;
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 0 32px;
    text-align: left;
}

.author-profile__avatar img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255,255,255,0.08);
}

.author-profile__avatar-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
    display: flex;
    align-items: center;
    justify-content: center;
}

.author-profile__name {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 8px;
}

.author-profile__bio {
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255,255,255,0.45);
    margin: 0 0 12px;
    max-width: 520px;
}

.author-profile__stats {
    font-size: 13px;
    color: rgba(255,255,255, 1);
    margin-bottom: 12px;
}
.author-profile__stat strong {
    color: #fff;
    font-weight: 700;
}

.author-profile__socials {
    display: flex;
    gap: 10px;
}
.author-profile__social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    color: rgba(255,255,255, 1);
    text-decoration: none;
    transition: all 0.15s;
}
.author-profile__social:hover {
    background: rgba(255,255,255,0.08);
    color: #e53935;
    border-color: rgba(255,255,255,0.12);
}

.author-bio {
    max-width: 800px;
    margin: 0 auto 32px;
    padding: 24px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
}

.author-posts__title {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}


.related-posts {
    max-width: 1200px;
    margin: 0px auto 48px;
    padding-top: 32px;
    width: 100%;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.related-posts__title {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 20px;
}

.related-posts__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}
.article__toc {
    padding: 1.5rem 1.75rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 3px solid var(--color-accent, #c9a96e);
    border-radius: 8px;
    grid-area: nav;
    backdrop-filter: blur(4px);
    max-width: 250px;

    position: sticky;
    top: 90px;                        
    align-self: start;                
    max-height: calc(100vh - 110px);  
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.1) transparent;
}
.article__toc-title {
    margin: 0 0 1rem 0;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-accent, #c9a96e);
    border: none;
    padding: 0;
    line-height: 1.2;
}

.article__toc-list {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: toc-counter;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.article__toc-item {
    counter-increment: toc-counter;
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
}

.article__toc-item::before {
    content: counter(toc-counter) ".";
    flex-shrink: 0;
    min-width: 1.4em;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-accent, #c9a96e);
    opacity: 0.7;
    line-height: 1.5;
}

.article__toc-link {
    font-size: 0.9rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: color 0.2s ease;

    border-bottom: 1px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.article__toc-link:hover,
.article__toc-link:focus-visible {
    color: #fff;
    border-bottom-color: rgba(255, 255, 255, 0.3);
    outline: none;
}

.article__toc-link.is-active,
.article__toc-link[aria-current="true"] {
    color: var(--color-accent, #c9a96e);
    border-bottom-color: transparent;
    font-weight: 500;
}

.article__toc-link.is-active::before {
    content: "▸ ";
    font-size: 0.7em;
    vertical-align: middle;
}

.article__toc-link:focus-visible {
    outline: 2px solid var(--color-accent, #c9a96e);
    outline-offset: 2px;
    border-radius: 2px;
}

@media (max-width: 640px) {
    .article__toc {
        padding: 1.25rem;
    }

    .article__toc-title {
        font-size: 0.85rem;
    }

    .article__toc-link {
        font-size: 0.85rem;
    }
}

.article__content h2[id] {
    scroll-margin-top: 80px;
}


@media (max-width: 768px) {
    .article {
        grid-template-areas:
            "header"
            "figure"
            "nav"     
            "content"
            "share";
        grid-template-columns: 1fr;
    }

    .article__toc {
        position: static;  
        max-width: 100%;
        max-height: none;
    }
    .article__title {
        font-size: 26px;
    }
    
    .article__meta {
        gap: 6px;
        font-size: 12px;
    }

    .author-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .author-box__links {
        justify-content: center;
    }

    .author-profile {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    .author-profile__bio {
        max-width: none;
    }
    .author-profile__socials {
        justify-content: center;
    }
    .author-profile__name {
        font-size: 24px;
    }

    .related-posts__grid {
        grid-template-columns: 1fr;
    }
    
    .prose {
        font-size: 15px;
    }
}
@media (max-width: 768px) {
    .blog-page__header h1 {
        font-size: 24px;
    }

    .blog-feed--grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .blog-feed--list .post-card {
        grid-template-columns: 1fr;
    }

    .blog-feed--list .post-card__figure {
        max-height: 200px;
    }

    .post-card__title {
        font-size: 17px;
    }

    .post-card__body {
        padding: 16px;
    }

    .blog-toolbar {
        flex-wrap: wrap;
        gap: 10px;
    }
}

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

    .post-card__excerpt {
        -webkit-line-clamp: 2;
    }
}

