/* ========================================
   Blog — Grid Layout (matching blog.az8.ru)
   ======================================== */

html.lenis {
    overflow: clip !important;
}

:root {
    --blog-accent: #6B4DE6;
    --blog-accent-light: rgba(107, 77, 230, 0.08);
    --blog-lighter: #F4F5F6;
    --blog-light: #E3E5E8;
    --blog-medium: #D5D7DB;
    --blog-dark: #6B6F7A;
    --blog-darker: #191A1F;
    --blog-radius: 6px;
    --blog-page-width: 710px;
    --blog-left-bar-width: 230px;
    --blog-right-bar-width: 290px;
    --blog-baseline: 0.2rem;
    --sticky-top: 2.4rem;
    --sticky-bottom: 2.4rem;
}

body:has(.funny-menu.scrolled) {
    --sticky-top: calc(66px + 0.8rem);
}
.load-more-btn {
    background: #6a37f6;
    color: white;
    padding: 13px 23px;
    font-size: 14px;
    border-radius: 50px;
    cursor: pointer
}
.load-more-btn:hover {
    background: #000;
}
.dropdown-content {
    display: none;
    position: fixed;
    background-color: #ffffff;
    min-width: 196px;
    box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2);
    z-index: 99999999;
    border-radius: 10px;
    overflow: hidden;
}
.dropdown-content a {
    color: #000;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 14px;
}
.dropdown-content a:hover {
    background-color: #ddd;
}
/* Blog grid container */
.blog-container {
    max-width: 100%;
}

@media (min-width: 900px) {
    .blog-container {
        display: grid;
        gap: 0 0.8rem;
        grid-template-columns: 1fr minmax(var(--blog-left-bar-width), max-content) minmax(auto, var(--blog-page-width));
        grid-template-areas: ". left-bar main" ". left-bar right-bar";
    }
}

@media (min-width: 1200px) {
    .blog-container {
        grid-template-columns: minmax(var(--blog-left-bar-width), max-content) minmax(auto, var(--blog-page-width)) var(--blog-right-bar-width) 1fr;
        grid-template-areas: "left-bar main right-bar .";
        gap: 0 2rem;
        margin-top: 3rem;
    }
}

.left-bar {
    grid-area: left-bar;
}

.right-bar {
    grid-area: right-bar;
}

.main {
    grid-area: main;
    min-width: 0;
}

.left-bar__inner {
    max-height: calc(100vh - var(--sticky-top) - var(--sticky-bottom));
    overflow-x: hidden;
    overflow-y: auto;
    position: sticky;
    top: var(--sticky-top);
    z-index: 2;
    scrollbar-width: none;
    scrollbar-color: transparent transparent;
    -ms-overflow-style: none;
}


@media (min-width: 1200px) {
    .right-bar__inner {
        max-height: calc(100vh - var(--sticky-top) - var(--sticky-bottom));
        overflow-x: hidden;
        overflow-y: auto;
        position: sticky;
        top: var(--sticky-top);
        scrollbar-width: none;
        scrollbar-color: transparent transparent;
        -ms-overflow-style: none;
    }
}

.left-bar__inner::-webkit-scrollbar,
.right-bar__inner::-webkit-scrollbar {
    width: 0;
}

.left-bar__inner::-webkit-scrollbar-track,
.right-bar__inner::-webkit-scrollbar-track {
    background: linear-gradient(180deg, rgba(244, 245, 246, 0.95) 0%, rgba(227, 229, 232, 0.88) 100%);
    border-radius: 999px;
}

.left-bar__inner::-webkit-scrollbar-thumb,
.right-bar__inner::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(107, 77, 230, 0.86) 0%, rgba(77, 55, 179, 0.9) 100%);
    border: 2px solid rgba(244, 245, 246, 0.92);
    border-radius: 999px;
    box-shadow: 0 8px 18px rgba(107, 77, 230, 0.18);
}

.left-bar__inner:hover,
.right-bar__inner:hover {
    scrollbar-color: rgba(107, 77, 230, 0.86) rgba(213, 215, 219, 0.5);
    scrollbar-width: thin;
}

.left-bar__inner:hover::-webkit-scrollbar,
.right-bar__inner:hover::-webkit-scrollbar {
    width: 10px;
}

.left-bar__inner:hover::-webkit-scrollbar-thumb,
.right-bar__inner:hover::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(107, 77, 230, 0.96) 0%, rgba(77, 55, 179, 1) 100%);
}

.main__inner {
    box-sizing: content-box;
    margin: 0 auto;
    max-width: var(--blog-entry-width, 780px);
}
.blog-layout-body .page__bottom {
    margin-top: 7rem;
}

/* ========================================
   Sidebar Navigation (left)
   ======================================== */

.blog__nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.blog__nav-link {
    display: block;
    text-decoration: none;
    font-size: 1.7rem;
    line-height: 1.3;
    font-weight: 400;
    color: var(--blog-darker);
    transition: color 0.2s;
    padding: 0.7rem 0;
}

.blog__nav-link:hover {
    color: var(--blog-accent);
}

.blog__nav-link.is-active {
    color: var(--blog-accent);
    font-weight: 700;
}

/* ========================================
   Sidebar (right) — Social
   ======================================== */

.box {
    font-size: 1.4rem;
}

.box__title {
    font-weight: 700;
    margin: 0 0 1.2rem;
    font-size: 1.4rem;
    color: var(--blog-darker);
}

.box-wrapper {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.box-icon svg {
    display: block;
    width: 35px;
    height: 35px;
    fill: var(--blog-dark);
    transition: fill 0.2s;
}

.box-icon:hover svg {
    fill: var(--blog-accent);
}

/* ========================================
   Hero
   ======================================== */

.hero {
    margin-bottom: 25px;
    background: #ffffff;
    padding: 15px;
    border-radius: 15px;
}
.blog__nav {
    margin-bottom: 28px;
    background: #FFF;
    padding: 15px;
    border-radius: 15px;
}
.hero h1 {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--blog-darker);
    margin: 0 0 0.8rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.hero p {
    font-size: 1.6rem;
    color: var(--blog-dark);
    margin: 0;
    line-height: 1.6;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.blog-hero__eyebrow {
    font-size: 1.4rem;
    color: var(--blog-dark);
    margin: 0 0 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ========================================
   Card (c-card) — matching blog.az8.ru
   ======================================== */

.c-card {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem 2rem;
    background: #FFF;
    padding: 25px;
    border-radius: 15px;
    position: relative;
    z-index: 1;
}

.c-card + .c-card {
    border-top: 1px solid var(--blog-lighter);
    margin-top: 2rem;
    padding-top: 2rem;
}

@media (min-width: 900px) {
    .c-card + .c-card {
        margin-top: 2.4rem;
        padding-top: 2.4rem;
    }
}

/* Meta wrapper (above card) */
.meta-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-basis: 100%;
    margin-bottom: 25px;
}

.c-card__meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.4rem;
    color: var(--blog-dark);
}

.c-card__author img {
    border-radius: 50%;
    display: block;
    height: 48px;
    width: 48px;
    object-fit: cover;
}

.meta-top-post {
    display: flex;

}
.c-card__meta {
    margin-right: 15px;
    align-items: center;
}
.c-card__meta {
    color: var(--color-dark);
    display: flex;
    flex-basis: 100%;
    flex-wrap: wrap;
    font-size: .8789062495rem;
    gap: 10px;
}
.content__author {
    align-items: center;
    display: flex;
    font-size: .8789062495rem;
    gap: 16px;
}
.content__author__avatar {
    border-radius: 100px;
    display: block;
    height: 48px;
    -o-object-fit: cover;
    object-fit: cover;
    -o-object-position: center;
    object-position: center;
    width: 48px;
}
.meta-top-post span {
    font-weight: 600;
    color: var(--blog-darker);
    font-size: 13px;
}

.meta-top-post time {
    color: var(--blog-dark);
    font-size: 12px;
}

.meta-blocs-index {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.c-card-tag {
    display: inline-block;
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 500;
    color: white;
    background: #4f39f6;
    padding: 0.3rem 0.8rem;
    border-radius: 90px;
    transition: background 0.2s;
}
.popular-comment-emoji {
    font-size: 18px;
}
.c-card-tag:hover {
    background: #000;
}

/* Card wrapper */
.card-wrapper {
    background: #fff;
    border-radius: var(--blog-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: border-color 0.2s;
}

.card-wrapper:hover {
    border-color: var(--blog-light);
}

.c-card__header {
    order: 2;
}

.c-card__title {
    margin: 0 0 0.6rem;
    font-size: 1.6rem;
    line-height: 1.35;
    font-weight: 600;
}

.c-card__title a {
    color: var(--blog-darker);
    text-decoration: none;
    transition: color 0.2s;
    font-size: 26px;
    line-height: 1.1;
}

.c-card__title a:hover {
    color: var(--blog-accent);
}

.c-card__header p {
    font-size: 16px;
    line-height: 1.5;
    color: var(--blog-dark);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 15px 0;
}
.reaction-container {
    margin: 15px 0;
}
.c-card__image {
    display: block;
    overflow: hidden;
    order: 2;
    flex-basis: 355px;
    border-radius: 15px;
    background: none;
}
.line-numbers code {
    font-size: 15px !important;
}
.line-numbers .tag {
    border: 0;
    margin: 0;
    border-radius: 0;
    padding: 0;

}
code[class*=language-], pre[class*=language-] {
    font-size: 15px;
}
.code-toolbar pre {
    max-height: 500px;
}
pre {
    border-radius: 20px;
    white-space: pre !important;
    max-height: 500px;
}
.language-markup .tag {
    border: 0;
    margin-right: 0;
    padding: 0;
}
.c-card__image img {
    display: block;
    width: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.meta-top-post {
    display: flex;
    flex-direction: column;
}
.card-wrapper:hover .c-card__image img {
    transform: scale(1.02);
}

/* ========================================
   Reactions
   ======================================== */

.reaction-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 11px;
    order: 3;
}

.reaction {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    cursor: pointer;
    padding: 0.3rem 0.6rem;
    border: 1px solid transparent;
    border-radius: 50px;
    transition: background 0.15s, border-color 0.15s, color 0.15s, opacity 0.15s;
    user-select: none;
    font-size: 14px;
    color: #000;
    line-height: 1;
    background: #f7f4f4;
}

.reaction:hover {
    background: var(--blog-lighter);
}

.reaction.is-active {
    background: rgba(106, 55, 246, 0.12);
    color: #4d2fd8;
}

.reaction.is-disabled {
    opacity: 1;
}

.reaction img {
    display: block;
    width: 20px;
    height: 20px;
}

.reaction span {
    min-width: 1.4rem;
    text-align: center;
    font-size: 16px;
    line-height: 1;
}
.reaction-feedback {
    flex: 0 0 100%;
    width: 100%;
    box-sizing: border-box;
    order: 999;
    max-height: 0;
    margin-top: 0;
    overflow: hidden;
    color: #8a5563;
    font-size: 1.2rem;
    line-height: 1.4;
    opacity: 0;
    transition: max-height 0.18s ease, margin-top 0.18s ease, opacity 0.18s ease;
}

.reaction-feedback.is-visible {
    max-height: 3.4rem;
    margin-top: 0.8rem;
    opacity: 1;
}

.post-floating-menu {
    position: fixed;
    left: 50%;
    bottom: 24px;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem;
    border: 1px solid rgba(25, 26, 31, 0.08);
    border-radius: 999px;
    background: rgba(246, 246, 247, 0.94);
    box-shadow: 0 20px 45px rgba(25, 26, 31, 0.16);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    opacity: 0;
    pointer-events: none;
    transform: translate3d(-50%, 24px, 0);
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.28s ease;
    z-index: 9999;
    max-width: calc(100vw - 24px);
}

.post-floating-menu.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translate3d(-50%, 0, 0);
}

.post-floating-menu__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    min-height: 3.4rem;
    padding: 0 1.5rem;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #1d2026;
    font-size: 1.4rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, opacity 0.18s ease;
}

.post-floating-menu__button:hover {
    background: rgba(255, 255, 255, 0.78);
}

.post-floating-menu__button.is-active {
    background: rgba(106, 55, 246, 0.12);
    color: #4d2fd8;
}

.post-floating-menu__button.is-disabled {
    opacity: 0.72;
}

.post-floating-menu__button--up {
    min-width: 4.4rem;
    padding: 0;
}

.post-floating-menu__icon {
    display: block;
    flex-shrink: 0;
}

.post-floating-menu__count {
    min-width: 1.2rem;
    line-height: 1;
}

.post-floating-menu__hint {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 10px);
    max-width: min(280px, calc(100vw - 48px));
    padding: 0.9rem 1.2rem;
    border-radius: 1.2rem;
    background: rgba(25, 26, 31, 0.92);
    color: #fff;
    font-size: 1.2rem;
    line-height: 1.4;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 8px);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.post-floating-menu__hint.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* ========================================
   Meta Block Bottom
   ======================================== */

.meta-block-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    order: 4;

}

.meta-block-bottom__left {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.meta-block-bottom__right {
    display: flex;
    align-items: center;
}

.comment-counter {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 1.3rem;
    color: black;
    cursor: pointer;
}

.comment-counter svg {
    display: block;
    stroke: black;
}

.share-block {
    position: relative;
}

.share-block .dropbtn {
    display: block;
    cursor: pointer;
    stroke: black;
    transition: stroke 0.2s;
}

.share-block .dropbtn:hover {
    stroke: var(--blog-darker);
}
.spoiler {
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.spoiler img {
    position: relative;
    z-index: 1;
    display: block;
}

.spoiler .blur-block {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: rgb(0 0 0 / 53%);
    backdrop-filter: blur(35px) brightness(1.1);
    transition: opacity .3s ease;
    border-radius: 20px;
    overflow: hidden;
}
.spoiler .spoiler-canvas {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    display: block;
}
.popular-title {
    padding: 10px 12px;
    font-size: 14px;
    color: #7b7b7b;
    text-transform: uppercase;
    font-weight: 600;
}
.share-block .dropdown-content {
    display: none;
    position: fixed;
    background: #fff;
    min-width: 22rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    border-radius: 8px;
    padding: 0.4rem 0;
    z-index: 99999999;
}

.share-block .dropdown-content.show,
.dropdown-content.show {
    display: block;
}

.share-block .dropdown-content a {
    display: block;
    padding: 0.8rem 1.6rem;
    font-size: 1.4rem;
    color: var(--blog-darker);
    text-decoration: none;
    transition: background 0.15s;
}

.share-block .dropdown-content a:hover {
    background: var(--blog-lighter);
}
body {
   background:  #ededed
}
.view-counter {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 1.3rem;
    color: black;
}

.view-counter svg {
    display: block;
    stroke: black;
}

/* ========================================
   Filters
   ======================================== */

.simplefilter--blog {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 2.4rem;
}

.simplefilter--blog li a {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 90px;
    text-decoration: none;
    color: var(--blog-darker);
    background: var(--blog-lighter);
    font-size: 1.3rem;
    line-height: 1.3;
    transition: background 0.2s, color 0.2s;
}

.simplefilter--blog li a:hover {
    background: var(--blog-light);
}

.simplefilter--blog li.active a {
    background: var(--blog-accent);
    color: #fff;
}

.simplefilter--blog .filter-counter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.2rem;
    height: 2.2rem;
    padding: 0 0.6rem;
    border-radius: 90px;
    background: rgba(0,0,0,0.06);
    color: inherit;
    font-size: 1.2rem;
    line-height: 1;
}

.simplefilter--blog li.active .filter-counter {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}
.blog-left__title {
    font-size: 15px;
    color: #a2a2a2;
}
/* ========================================
   Pagination
   ======================================== */

.blog-pagination {
    border-top: 1px solid var(--blog-lighter);
    display: flex;
    justify-content: space-between;
    letter-spacing: -0.02em;
    margin-top: 2rem;
    padding: 1.6rem 0 0;
}

@media (min-width: 900px) {
    .blog-pagination {
        grid-column: span 2;
        margin-top: 2.4rem;
    }
}

.blog-pagination__item {
    display: inline-flex;
    align-items: center;
    padding: 0.8rem 1.6rem;
    border: none;
    border-radius: 90px;
    font-size: 1.4rem;
    color: var(--blog-darker);
    background: var(--blog-lighter);
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.blog-pagination__item:hover {
    background: var(--blog-light);
}

.blog-pagination__item.is-current {
    background: var(--blog-accent);
    color: #fff;
}

.blog-pagination__item.is-disabled {
    opacity: 0.4;
    pointer-events: none;
}

body.blog-infinite-feed-enabled .blog-pagination--fallback {
    display: none;
}

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

.blog-feed__loading {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2.4rem;
    padding: 1.6rem 1.8rem;
    border: 1px solid rgba(107, 77, 230, 0.12);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(244, 245, 246, 0.96) 100%);
    color: var(--blog-dark);
    box-shadow: 0 18px 40px rgba(25, 26, 31, 0.05);
}

.blog-feed__loading.is-visible {
    display: inline-flex;
}

.blog-feed__loading-text {
    font-size: 1.4rem;
    line-height: 1.4;
}

.blog-feed__spinner {
    width: 1.8rem;
    height: 1.8rem;
    border: 2px solid rgba(107, 77, 230, 0.16);
    border-top-color: var(--blog-accent);
    border-radius: 50%;
    animation: blog-feed-spin 0.8s linear infinite;
}

.blog-feed__sentinel {
    width: 100%;
    height: 1px;
}

.blog-feed .c-card.is-pending-reveal {
    opacity: 0;
    transform: translateY(22px);
}

.blog-feed .c-card.is-pending-reveal.is-revealed {
    animation: blog-feed-card-reveal 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: var(--blog-card-reveal-delay, 0ms);
}

@keyframes blog-feed-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes blog-feed-card-reveal {
    from {
        opacity: 0;
        transform: translateY(22px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   Author Block (article page)
   ======================================== */

.about__author {
    margin: 4rem 0;
    padding: 2.4rem;
    background: var(--blog-lighter);
    border-radius: 15px;
}

.about__authors-wrapper {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.about__authors-block:first-child {
    flex-shrink: 0;
}

.about__authors-block .author-img {
    width: 10rem;
    height: 10rem;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.about__authors-title {
    margin: 0 0 0.6rem;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--blog-darker);
    line-height: 1.3;
}

.about__authors-block span {
    font-size: 1.4rem;
    line-height: 1.7;
    color: var(--blog-dark);
    display: block;
    margin-bottom: 1.2rem;
}

.about__authors-block iframe {
    max-width: 100%;
}

/* ========================================
   Article Page
   ======================================== */

.blog-article {
    background: #FFF;
    padding: 25px;
    margin: calc(var(--baseline) * 12) 0;
    border-radius: 20px;
}

.blog-article__cover {
    display: block;
    width: 100%;
    max-height: 40rem;
    object-fit: cover;
    border-radius: var(--blog-radius);
    margin-bottom: 2.4rem;
}

.blog-card__category {
    display: inline-block;
    padding: 0.4rem 1rem;
    margin-bottom: 1.2rem;
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--blog-accent);
    background: var(--blog-accent-light);
    border-radius: 90px;
    text-decoration: none;
    transition: background 0.2s;
}

.blog-card__category:hover {
    background: rgba(107, 77, 230, 0.14);
}

.blog-article__title {
    margin: 0 0 1rem;
    font-size: 28px;
    line-height: 1.1;
    font-weight: 700;
    color: var(--blog-darker);
    letter-spacing: -0.02em;
    text-transform: none;
}
.cdx-marker {
    background: #fdf490;
}
.blog-article .reaction-container {
    margin-bottom: 15px;
}
.blog-article__meta {
    margin-bottom: 2rem;
    font-size: 1.4rem;
    line-height: 1.4;
    color: var(--blog-dark);
}

.blog-article__lead {
    margin: 0 0 2.4rem;
    font-size: 1.7rem;
    line-height: 1.7;
    color: var(--blog-dark);
}

.blog-article__body {
    font-size: 1.6rem;
    line-height: 1.8;
    color: var(--blog-darker);
    word-wrap: break-word;
    overflow-wrap: break-word;
    margin-bottom: 35px;
}

.blog-article__body > *:first-child {
    margin-top: 0;
}

.blog-article__body > *:last-child {
    margin-bottom: 0;
}

.blog-article__body h2 {
    margin: 3.2rem 0 1.2rem;
    font-size: 2.4rem;
    line-height: 1.3;
    font-weight: 700;
    color: var(--blog-darker);
}

.blog-article__body h3 {
    margin: 2.4rem 0 1rem;
    font-size: 2rem;
    line-height: 1.35;
    font-weight: 600;
    color: var(--blog-darker);
}

.blog-article__body h4 {
    margin: 2rem 0 0.8rem;
    font-size: 1.8rem;
    line-height: 1.4;
    font-weight: 600;
    color: var(--blog-darker);
}

.blog-article__body p {
    margin: 0 0 1.6rem;
}

.blog-article__body ul,
.blog-article__body ol {
    margin: 0 0 1.6rem;
    padding-left: 0;
}

.blog-article__body li {
    margin-bottom: 0.4rem;
}

.blog-article__body blockquote {
    margin: 2rem 0;
    background: #ddd;
    padding: 34px !important;
    border-radius: 20px;
}

.blog-article__body blockquote p:last-child {
    margin-bottom: 0;
}

.blog-article__body pre {
    margin: 2rem 0;
    padding: 1.6rem;
    background: var(--blog-darker);
    color: #e2e8f0;
    border-radius: 15px;
    overflow-x: auto;
    overflow-y: auto;
    font-size: 1.4rem;
    line-height: 1.6;
    scrollbar-width: thin;
    scrollbar-color: rgba(107, 77, 230, 0.72) rgba(255, 255, 255, 0.08);
    overscroll-behavior: contain;
    position: relative;
    transition: box-shadow 0.2s ease, outline-color 0.2s ease;
}

.blog-article__body pre::-webkit-scrollbar {
    height: 10px;
    width: 10px;
}

.blog-article__body pre::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
}

.blog-article__body pre::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(107, 77, 230, 0.92) 0%, rgba(77, 55, 179, 0.96) 100%);
    border: 2px solid rgba(25, 26, 31, 0.75);
    border-radius: 999px;
}

.blog-article__body pre:hover {
    scrollbar-color: rgba(107, 77, 230, 0.92) rgba(255, 255, 255, 0.12);
}

.blog-article__body pre .code-copy-btn {
    position: absolute;
    top: 12px;
    right: 14px;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    background: rgba(12, 14, 20, 0.88);
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.2rem;
    line-height: 1;
    letter-spacing: 0.01em;
    border: none;
    cursor: pointer;
    opacity: 0;
    transform: translateY(-4px);
    pointer-events: auto;
    transition: opacity 0.18s ease, transform 0.18s ease;
    z-index: 2;
}

.blog-article__body pre:hover .code-copy-btn,
.blog-article__body pre:focus-within .code-copy-btn {
    opacity: 1;
    transform: translateY(0);
}

.blog-article__body pre .code-copy-btn.is-copied {
    background: rgba(34, 197, 94, 0.88);
}

.blog-article__body code {
    font-family: 'SF Mono', 'Fira Code', 'Fira Mono', Menlo, Consolas, monospace;
    font-size: 0.9em;
}

.blog-article__body :not(pre) > code {
    padding: 0.15em 0.4em;
    background: var(--blog-lighter);
    border-radius: 4px;
    color: #dc2626;
    font-size: 0.88em;
}

.blog-article__body img {
    display: block;
    max-width: 100%;
    height: auto;
    width: 100%;
    border-radius: 15px;
    margin: 1.6rem 0;
}

.blog-article__body .editor-js-content {
    color: #191a1f;
}

.blog-article__body .editor-js-content,
.blog-article__body .editor-js-content .editor-js-block,
.blog-article__body .editor-js-content p,
.blog-article__body .editor-js-content li,
.blog-article__body .editor-js-content ul,
.blog-article__body .editor-js-content ol,
.blog-article__body .editor-js-content a,
.blog-article__body .editor-js-content strong,
.blog-article__body .editor-js-content em,
.blog-article__body .editor-js-content small,
.blog-article__body .editor-js-content td,
.blog-article__body .editor-js-content th,
.blog-article__body .editor-js-content .editor-js-quote__text,
.blog-article__body .editor-js-content .editor-js-quote__caption,
.blog-article__body .editor-js-content .editor-js-warning,
.blog-article__body .editor-js-content .editor-js-warning__title,
.blog-article__body .editor-js-content .editor-js-warning__message,
.blog-article__body .editor-js-content .cdx-alert,
.blog-article__body .editor-js-content .cdx-alert__message,
.blog-article__body .editor-js-content .cdx-toc__link {
    color: #191a1f;
}

.blog-article__body .editor-js-content p,
.blog-article__body .editor-js-content li,
.blog-article__body .editor-js-content .editor-js-quote__text,
.blog-article__body .editor-js-content .editor-js-quote__caption,
.blog-article__body .editor-js-content .editor-js-warning,
.blog-article__body .editor-js-content .editor-js-warning__title,
.blog-article__body .editor-js-content .editor-js-warning__message,
.blog-article__body .editor-js-content .cdx-alert,
.blog-article__body .editor-js-content .cdx-alert__message,
.blog-article__body .editor-js-content .cdx-toc__link {
    font-size: 16px;
    line-height: 1.6;
}

.blog-article__body .editor-js-content h1,
.blog-article__body .editor-js-content h2,
.blog-article__body .editor-js-content h3,
.blog-article__body .editor-js-content h4,
.blog-article__body .editor-js-content h5 {
    margin: 0 0 0.85rem;
    padding: 0;
    color: #191a1f;
    font-size: 25px;
    font-weight: 700;
    line-height: 1.3;
}

.blog-article__body .editor-js-content ul,
.blog-article__body .editor-js-content ol {
    padding-left: 0;
}

.blog-article__body .editor-js-content .editor-js-code {
    color: #191a1f;
}

.blog-article__body .editor-js-content .editor-js-quote,
.blog-article__body .editor-js-content .editor-js-warning,
.blog-article__body .editor-js-content .cdx-alert,
.blog-article__body .editor-js-content .cdx-toc {
    border-radius: 12px;
}

.blog-article__body .editor-js-content .cdx-alert {
    padding: 1rem 1.25rem;
    border: 1px solid #d1d5db;
    background: #f3f4f6;
}

.blog-article__body .editor-js-content .cdx-alert-info {
    background: #eff6ff;
    border-color: #bfdbfe;
}

.blog-article__body .editor-js-content .cdx-alert-success {
    background: #ecfdf5;
    border-color: #a7f3d0;
}

.blog-article__body .editor-js-content .cdx-alert-warning {
    background: #fffbeb;
    border-color: #fcd34d;
}

.blog-article__body .editor-js-content .cdx-alert-danger {
    background: #fef2f2;
    border-color: #fca5a5;
}

.blog-article__body .editor-js-content .cdx-toc {
    margin: 1.5rem 0;
    padding: 1rem 1.25rem;
    border: 1px solid #d1d5db;
    background: #f3f4f6;
}

.blog-article__body .editor-js-content .cdx-toc__title {
    margin-bottom: 0.75rem;
    color: #111827;
    font-size: 18px;
    font-weight: 700;
}

.blog-article__body .editor-js-content .cdx-toc__list {
    margin: 0;
    padding-left: 0;
    list-style: none;
    counter-reset: toc-item;
}

.blog-article__body .editor-js-content .cdx-toc__list .cdx-toc__list {
    margin-top: 0.5rem;
    padding-left: 1.75rem;
}

.blog-article__body .editor-js-content .cdx-toc__item {
    margin: 0.4rem 0;
    list-style: none;
    counter-increment: toc-item;
}

.blog-article__body .editor-js-content .cdx-toc__item::before {
    content: counters(toc-item, ".") ". ";
    color: #111827;
    font-size: 16px;
    font-weight: 700;
}

.blog-article__body .editor-js-content .cdx-toc__link {
    text-decoration: none;
}

.blog-article__body .editor-js-content .cdx-toc__link:hover {
    text-decoration: underline;
}

.blog-article__body .editor-js-content .editor-js-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    margin: 1.6rem 0;
    color: #5e5e5e;
}

.blog-article__body .editor-js-content .editor-js-image img {
    margin: 0;
}

.blog-article__body .editor-js-content .editor-js-image__caption {
    display: block;
    color: #5e5e5e;
    font-size: 1.4rem;
    line-height: 1.5;
    text-align: center;
}

.blog-article__body .editor-js-content .editor-js-block mark {
    background: #fefea2;
}

.blog-article__body a {
    color: var(--blog-accent);
    text-decoration: underline;
    text-underline-offset: 0.15em;
    transition: color 0.2s;
}

.blog-article__body a:hover {
    color: #4a2db3;
}

.blog-article__body table {
    width: 100%;
    margin: 2rem 0;
    border-collapse: collapse;
    font-size: 1.4rem;
}

.blog-article__body th,
.blog-article__body td {
    padding: 0.8rem 1.2rem;
    border: 1px solid var(--blog-light);
    text-align: left;
}

.blog-article__body th {
    background: var(--blog-lighter);
    font-weight: 600;
    color: var(--blog-darker);
}

.blog-article__body hr {
    margin: 2.4rem 0;
    border: none;
    border-top: 1px solid var(--blog-light);
}

.blog-article__body .editor-js-quote {
    margin: 2rem 0;
    padding: 1.6rem 1.8rem;
    border-left: 4px solid var(--blog-accent);
    background: var(--blog-lighter);
    border-radius: 0 var(--blog-radius) var(--blog-radius) 0;
}

.blog-article__body .editor-js-quote__text {
    margin: 0;
    font-size: 1.8rem;
    line-height: 1.7;
}

.blog-article__body .editor-js-quote__caption {
    display: block;
    margin-top: 1rem;
    color: var(--blog-dark);
    font-size: 1.4rem;
    font-style: normal;
}

.blog-article__body .editor-js-quote--center {
    text-align: center;
}

.blog-article__body .editor-js-warning {
    margin: 2rem 0;
    padding: 1.6rem 1.8rem;
    border: 1px solid #f6ad55;
    border-radius: var(--blog-radius);
    background: #fff7ed;
}
.editor-js-block ul {
    margin: 20px 0;
    padding: 0;
    list-style: none;
}

.editor-js-block ul li {
    min-height: 22px;
    margin-bottom: 12px;
    padding-left: 30px;

    background-image: url('/assets/images/check-blog-icon.svg');
    background-repeat: no-repeat;
    background-position: left 3px;
    background-size: 18px 18px;
}

.editor-js-block ul li:last-child {
    margin-bottom: 0;
}
.blog-article__body .editor-js-warning__title {
    margin: 0 0 0.8rem;
    font-size: 1.8rem;
    line-height: 1.4;
}

.blog-article__body .editor-js-warning__message {
    margin: 0;
}
.token.block-comment, .token.cdata, .token.comment, .token.doctype, .token.prolog {
    opacity: 1;
}
.blog-article__body .editor-js-attachment__link {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.4rem 1.6rem;
    border: 1px solid var(--blog-light);
    border-radius: var(--blog-radius);
    background: #fff;
    text-decoration: none;
    margin: 2rem 0;
    position: relative;
}

.blog-article__body .editor-js-attachment__link::after {
    content: "";
    position: absolute;
    right: 20px;
    top: 50%;
    width: 24px;
    height: 24px;
    transform: translateY(-50%);

    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;

    background-image: url("/assets/images/download.svg");
}

.blog-article__body .editor-js-attachment__name {
    font-weight: 600;
    color: var(--blog-darker);
}

.blog-article__body .editor-js-attachment__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    color: var(--blog-dark);
    font-size: 1.3rem;
}

.blog-article__body .editor-js-nested-list ul,
.blog-article__body .editor-js-nested-list ol {
    margin-top: 0.8rem;
}

.blog-article__body .editor-js-button {
    margin: 2rem 0;
}

.blog-article__body .editor-js-button__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.8rem;
    padding: 0.9rem 1.8rem;
    border-radius: 999px;
    text-decoration: none;
}

.blog-article__body .editor-js-button__link:hover {
    color: #fff;
}

.blog-article__body .editor-js-button__link--secondary {
    background: var(--blog-lighter);
    color: var(--blog-darker);
}

.blog-article__body .editor-js-button__link--secondary:hover {
    color: var(--blog-darker);
}

.blog-article__body .editor-js-carousel {
    margin: 2rem 0;
}

.blog-article__body .editor-js-carousel__track {
    display: grid;
    gap: 1.2rem;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.blog-article__body .editor-js-carousel__item {
    margin: 0;
}

.blog-article__body .editor-js-carousel__item img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--blog-radius);
    margin: 0;
}

.blog-article__body .editor-js-carousel__caption {
    margin-top: 0.8rem;
    color: var(--blog-dark);
    font-size: 1.3rem;
    line-height: 1.5;
}

.blog-article__body .cdx-alert {
    position: relative;
    padding: 10px;
    border-radius: 5px;
    margin: 2rem 0;
}

.blog-article__body .cdx-alert-primary {
    background-color: #ebf8ff;
    border: 1px solid #4299e1;
    color: #2b6cb0;
}

.blog-article__body .cdx-alert-secondary {
    background-color: #f7fafc;
    border: 1px solid #cbd5e0;
    color: #222731;
}

.blog-article__body .cdx-alert-info {
    background-color: #e6fdff;
    border: 1px solid #4cd4ce;
    color: #00727c;
}

.blog-article__body .cdx-alert-success {
    background-color: #f0fff4;
    border: 1px solid #68d391;
    color: #2f855a;
}

.blog-article__body .cdx-alert-warning {
    background-color: #fffaf0;
    border: 1px solid #ed8936;
    color: #c05621;
}

.blog-article__body .cdx-alert-danger {
    background-color: #fff5f5;
    border: 1px solid #fc8181;
    color: #c53030;
}

.blog-article__body .cdx-alert-light {
    background-color: #fff;
    border: 1px solid #edf2f7;
    color: #1a202c;
}

.blog-article__body .cdx-alert-dark {
    background-color: #2d3748;
    border: 1px solid #1a202c;
    color: #d3d3d3;
}

.blog-article__body .cdx-alert-align-left {
    text-align: left;
}

.blog-article__body .cdx-alert-align-center {
    text-align: center;
}

.blog-article__body .cdx-alert-align-right {
    text-align: right;
}

html {
    scroll-behavior: smooth;
}

.blog-article__body .cdx-toc {
    background: var(--blog-lighter);
    border-radius: var(--blog-radius);
    padding: 1.6rem 2rem;
    margin-bottom: 2.4rem;
}

.blog-article__body .cdx-toc__nav {
    font-size: 1.4rem;
}

.blog-article__body .cdx-toc__title {
    font-weight: 700;
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--blog-dark);
    margin-bottom: 0.6rem;
}

ol:not(.cdx-toc__list) > li {
    position: relative;
    margin: 0 0 0 0;
    padding: 0 0 10px 0;
    line-height: 1.4;
}

ol:not(.cdx-toc__list) {
    list-style-type: none;
    counter-reset: num;
    margin: 0 0 0 45px;
    padding: 15px 0 5px 0;
    margin-left: 37px !important;
}

ol:not(.cdx-toc__list) > li:before {
    content: counter(num);
    counter-increment: num;
    display: flex;
    position: absolute;
    top: 0;
    left: -38px;
    justify-content: center;
    align-items: center;
}

.blog-article__body .cdx-toc__list {
    list-style: none;
    counter-reset: toc-item;
    margin: 0;
    padding: 0;
    padding-left: 0;
}

.blog-article__body .cdx-toc__list .cdx-toc__list {
    margin: 0.4rem 0 0 0;
}

.blog-article__body .cdx-toc__item {
    counter-increment: toc-item;
    padding: 0;
    color: #6a37f6;
    margin-bottom: 0;
    position: relative;
}

.blog-article__body .cdx-toc__item:before {
    content: counters(toc-item, ".") ". ";
    font-weight: 600;
    color: #6a37f6;
    display: inline;
    position: static;
    width: auto;
    font-size: inherit;
}

.blog-article__body .cdx-toc__link {
    color: #6a37f6;
    text-decoration: none;
    border-bottom: 1px dotted transparent;
    transition: border-color 0.2s, color 0.2s;
    font-size: 16px;
}

.blog-article__body .cdx-toc__link:hover {
    color: var(--blog-accent);
    border-bottom-color: var(--blog-accent);
}

.blog-article__body .cdx-toc__item--level-2 {
    padding-left: 0;
}

.blog-article__body .cdx-toc__item--level-3 {
    padding-left: 15px;
}

.blog-article__body .cdx-toc__item--level-4 {
    padding-left: 20px;
}

.blog-article__body .cdx-toc__item--level-5 {
    padding-left: 25px;
}

.blog-article__body .cdx-toc__item--level-6 {
    padding-left: 30px;
}

.blog-article__body a {
    color: var(--blog-accent);
    text-decoration: underline;
    text-underline-offset: 0.15em;
    transition: color 0.2s;
}

.blog-article__body a:hover {
    color: #4a2db3;
}

.blog-article__body table {
    width: 100%;
    margin: 2rem 0;
    border-collapse: collapse;
    font-size: 1.4rem;
}

.blog-article__body th,
.blog-article__body td {
    padding: 0.8rem 1.2rem;
    border: 1px solid var(--blog-light);
    text-align: left;
}

.blog-article__body th {
    background: var(--blog-lighter);
    font-weight: 600;
    color: var(--blog-darker);
}

.blog-article__body hr {
    margin: 2.4rem 0;
    border: none;
    border-top: 1px solid var(--blog-light);
}

.blog-article__body .editor-js-quote {
    margin: 2rem 0;
    padding: 1.6rem 1.8rem;
    border-left: 4px solid var(--blog-accent);
    background: var(--blog-lighter);
    border-radius: 0 var(--blog-radius) var(--blog-radius) 0;
}

.blog-article__body .editor-js-quote__text {
    margin: 0;
    font-size: 1.8rem;
    line-height: 1.7;
}

.blog-article__body .editor-js-quote__caption {
    display: block;
    margin-top: 1rem;
    color: var(--blog-dark);
    font-size: 1.4rem;
    font-style: normal;
}

.blog-article__body .editor-js-quote--center {
    text-align: center;
}

.blog-article__body .editor-js-warning {
    margin: 2rem 0;
    padding: 1.6rem 1.8rem;
    border: 1px solid #f6ad55;
    border-radius: var(--blog-radius);
    background: #fff7ed;
}

.blog-article__body .editor-js-warning__title {
    margin: 0 0 0.8rem;
    font-size: 1.8rem;
    line-height: 1.4;
}

.blog-article__body .editor-js-warning__message {
    margin: 0;
}

.blog-article__body .editor-js-attachment__link {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.4rem 1.6rem;
    border: 1px solid var(--blog-light);
    border-radius: var(--blog-radius);
    background: #fff;
    text-decoration: none;
    margin: 2rem 0;
    position: relative;
}

.blog-article__body .editor-js-attachment__name {
    font-weight: 600;
    color: var(--blog-darker);
}

.blog-article__body .editor-js-attachment__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    color: var(--blog-dark);
    font-size: 1.3rem;
}

.blog-article__body .editor-js-nested-list ul,
.blog-article__body .editor-js-nested-list ol {
    margin-top: 0.8rem;
}

.blog-article__body .editor-js-button {
    margin: 2rem 0;
}

.blog-article__body .editor-js-button__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.8rem;
    padding: 0.9rem 1.8rem;
    border-radius: 999px;
    background: var(--blog-darker);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
}

.blog-article__body .editor-js-button__link:hover {
    color: #fff;
}

.blog-article__body .editor-js-button__link--secondary {
    background: var(--blog-lighter);
    color: var(--blog-darker);
}

.blog-article__body .editor-js-button__link--secondary:hover {
    color: var(--blog-darker);
}

.blog-article__body .editor-js-carousel {
    margin: 2rem 0;
}

.blog-article__body .editor-js-carousel__track {
    display: grid;
    gap: 1.2rem;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.blog-article__body .editor-js-carousel__item {
    margin: 0;
}

.blog-article__body .editor-js-carousel__item img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--blog-radius);
    margin: 0;
}

.blog-article__body .editor-js-carousel__caption {
    margin-top: 0.8rem;
    color: var(--blog-dark);
    font-size: 1.3rem;
    line-height: 1.5;
}

/* ========================================
   EditorJS Alert
   ======================================== */

.blog-article__body .cdx-alert {
    position: relative;
    padding: 10px;
    border-radius: 5px;
    margin: 2rem 0;
}

.blog-article__body .cdx-alert-primary {
    background-color: #ebf8ff;
    border: 1px solid #4299e1;
    color: #2b6cb0;
}

.blog-article__body .cdx-alert-secondary {
    background-color: #f7fafc;
    border: 1px solid #cbd5e0;
    color: #222731;
}

.blog-article__body .cdx-alert-info {
    background-color: #e6fdff;
    border: 1px solid #4cd4ce;
    color: #00727c;
}

.blog-article__body .cdx-alert-success {
    background-color: #f0fff4;
    border: 1px solid #68d391;
    color: #2f855a;
}

.blog-article__body .cdx-alert-warning {
    background-color: #fffaf0;
    border: 1px solid #ed8936;
    color: #c05621;
}

.blog-article__body .cdx-alert-danger {
    background-color: #fff5f5;
    border: 1px solid #fc8181;
    color: #c53030;
}

.blog-article__body .cdx-alert-light {
    background-color: #fff;
    border: 1px solid #edf2f7;
    color: #1a202c;
}

.blog-article__body .cdx-alert-dark {
    background-color: #2d3748;
    border: 1px solid #1a202c;
    color: #d3d3d3;
}

.blog-article__body .cdx-alert-align-left {
    text-align: left;
}

.blog-article__body .cdx-alert-align-center {
    text-align: center;
}

.blog-article__body .cdx-alert-align-right {
    text-align: right;
}

html {
    scroll-behavior: smooth;
}

/* ========================================
   Table of Contents (editorjs-toc)
   ======================================== */

.blog-article__body .cdx-toc {
    background: var(--blog-lighter);
    border-radius: var(--blog-radius);
    padding: 1.6rem 2rem;
    margin-bottom: 2.4rem;
}

.blog-article__body .cdx-toc__nav {
    font-size: 1.4rem;
}

.blog-article__body .cdx-toc__title {
    font-weight: 700;
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--blog-dark);
    margin-bottom: 0.6rem;
}
ol:not(.cdx-toc__list) > li {
    position: relative;
    margin: 0 0 0 0;
    padding: 0 0 10px 0;
    line-height: 1.4;
}
ol:not(.cdx-toc__list) {
    list-style-type: none;
    counter-reset: num;
    margin: 0 0 0 45px;
    padding: 15px 0 5px 0;
    margin-left: 37px !important;
}
ol:not(.cdx-toc__list) > li:before {
    content: counter(num);
    counter-increment: num;
    display: flex;
    position: absolute;
    top: 0;
    left: -38px;
    width: 25px;
    height: 25px;
    background: #6a37f6;
    color: #fff;
    text-align: center;
    line-height: 1;
    font-size: 16px;
    border-radius: 50%;
    justify-content: center;
    align-items: center;
}
.blog-article__body .cdx-toc__list {
    list-style: none;
    counter-reset: toc-item;
    margin: 0;
    padding: 0;
    padding-left: 0;
}

.blog-article__body .cdx-toc__list .cdx-toc__list {
    margin: 0.4rem 0 0 0;
}

.blog-article__body .cdx-toc__item {
    counter-increment: toc-item;
    padding: 0;
    color: #6a37f6;
    margin-bottom: 0;
    position: relative;
}

.blog-article__body .cdx-toc__item:before {
    content: counters(toc-item, ".") ". ";
    font-weight: 600;
    color: #6a37f6;
    display: inline;
    position: static;
    width: auto;
    height: auto;
    background: none;
    border-radius: 0;
    line-height: inherit;
    font-size: inherit;
}

.blog-article__body .cdx-toc__link {
    color: #6a37f6;
    text-decoration: none;
    border-bottom: 1px dotted transparent;
    transition: border-color 0.2s, color 0.2s;
    font-size: 16px;
}

.blog-article__body .cdx-toc__link:hover {
    color: var(--blog-accent);
    border-bottom-color: var(--blog-accent);
}

.blog-article__body .cdx-toc__item--level-2 {
    padding-left: 0;
}

.blog-article__body .cdx-toc__item--level-3 {
    padding-left: 15px;
}

.blog-article__body .cdx-toc__item--level-4 {
    padding-left: 20px;
}

.blog-article__body .cdx-toc__item--level-5 {
    padding-left: 25px;
}

.blog-article__body .cdx-toc__item--level-6 {
    padding-left: 30px;
}

/* ========================================
   Related Posts
   ======================================== */

.blog-related {
    margin-top: 0;
    padding-top: 0;
}

.blog-related__title {
    margin: 0 0 2.8rem;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--blog-darker);
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.blog-related__list {
    display: flex;
    flex-direction: column;
    gap: 2.4rem;
}

.blog-related-card {
    padding: 2.6rem;
    border: 1px solid #eceef2;
    border-radius: 3rem;
    background: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.blog-related-card:hover {
    transform: translateY(-2px);
    border-color: #dfe3ea;
    box-shadow: 0 18px 40px rgba(25, 26, 31, 0.06);
}

.blog-related-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.9rem 1.4rem;
    margin-bottom: 2rem;
    font-size: 1.4rem;
    color: var(--blog-dark);
}

.blog-related-card__author {
    display: inline-flex;
    align-items: center;
    gap: 1.2rem;
}

.blog-related-card__author-avatar {
    display: block;
    width: 3.2rem;
    height: 3.2rem;
    border-radius: 50%;
    object-fit: cover;
}

.blog-related-card__author-name {
    font-size: 1.5rem;
    font-weight: 500;
    color: #48679f;
}

.blog-related-card__date {
    color: #556273;
    text-decoration: none;
    white-space: nowrap;
}

.blog-related-card__category {
    display: inline-flex;
    align-items: center;
    min-height: 1.6rem;
    padding: 0.4rem 1rem;
    border-radius: 1rem;
    background: #6a37f6;
    color: #fff;
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    transition: background 0.2s ease;
}

.blog-related-card__category:hover {
    background: #572ad7;
}

.blog-related-card__stat {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    color: #4f5e70;
    line-height: 1;
    white-space: nowrap;
}

.blog-related-card__stat svg {
    display: block;
    stroke: currentColor;
    flex-shrink: 0;
}

.blog-related-card__body {
    display: grid;
    grid-template-columns: minmax(21rem, 23.4rem) minmax(0, 1fr);
    align-items: center;
    gap: 3rem;
}

.blog-related-card--no-image .blog-related-card__body {
    grid-template-columns: minmax(0, 1fr);
}

.blog-related-card__image-link {
    display: block;
    overflow: hidden;
    border-radius: 2rem;
    background: #f3f4f7;
}

.blog-related-card__image {
    display: block;
    width: 100%;
    aspect-ratio: 234 / 175;
    object-fit: cover;
}

.blog-related-card__content {
    min-width: 0;
}

.blog-related-card__title {
    margin: 0 0 1.4rem;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: var(--blog-darker);
}
.blog-related-card__title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-related-card__title a:hover {
    color: var(--blog-accent);
}

.blog-related-card__excerpt {
    margin: 0;
    color: #6f7887;
    font-size: 1.4rem;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;
}

/* ========================================
   Blog Search
   ======================================== */

.blog-search {
    margin: 0 0 2.8rem;
}

.blog-search__inner {
    position: relative;
    padding: 2.2rem;
    border: 1px solid rgba(25, 26, 31, 0.08);
    border-radius: 2rem;
    background:
        radial-gradient(circle at top left, rgba(255, 209, 102, 0.2), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 246, 248, 0.96) 100%);
    box-shadow: 0 20px 50px rgba(25, 26, 31, 0.06);
}

.blog-search__copy {
    margin-bottom: 1.6rem;
}

.blog-search__eyebrow {
    margin: 0 0 0.6rem;
    color: #7b8190;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.blog-search__title {
    margin: 0 0 0.8rem;
    color: #181b21;
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1.1;
}

.blog-search__text {
    margin: 0;
    color: #606879;
    font-size: 1.45rem;
    line-height: 1.6;
}

.blog-search__form {
    position: relative;
}

.blog-search__field {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
}

.blog-search__input {
    width: 100%;
    min-height: 5.8rem;
    padding: 0 1.8rem;
    border: 1px solid rgba(25, 26, 31, 0.1);
    border-radius: 1.6rem;
    background: rgba(255, 255, 255, 0.94);
    color: #171a20;
    font-size: 1.55rem;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.blog-search__input:focus {
    outline: none;
    border-color: rgba(79, 57, 246, 0.46);
    box-shadow: 0 0 0 4px rgba(79, 57, 246, 0.1);
    background: #fff;
}

.blog-search__submit {
    min-width: 12.8rem;
    min-height: 5.8rem;
    padding: 0 2rem;
    border-radius: 1.6rem;
    background: #111318;
    color: #fff;
    font-size: 1.45rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.18s ease, background 0.18s ease, opacity 0.18s ease;
}

.blog-search__submit:hover {
    background: #4f39f6;
    transform: translateY(-1px);
}

.blog-search__submit:disabled {
    opacity: 0.7;
    cursor: default;
    transform: none;
}

.blog-search__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.blog-search__hint {
    color: #7d8592;
    font-size: 1.2rem;
    line-height: 1.4;
}

.blog-search__badge {
    display: inline-flex;
    align-items: center;
    min-height: 3rem;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    background: rgba(79, 57, 246, 0.08);
    color: #4f39f6;
    font-size: 1.2rem;
    font-weight: 600;
}

.blog-search__panel {
    position: absolute;
    top: calc(100% + 1.2rem);
    left: 0;
    right: 0;
    z-index: 8;
    padding: 1.2rem;
    border: 1px solid rgba(25, 26, 31, 0.08);
    border-radius: 1.8rem;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 45px rgba(25, 26, 31, 0.12);
    max-height: min(42rem, calc(100vh - 16rem));
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.blog-search-results {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.blog-search-results__all {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 1.2rem;
    min-height: 4.6rem;
    padding: 0 1.4rem;
    border-radius: 1.4rem;
    background: #f3f6fb;
    color: #1b2430;
    font-size: 1.35rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.blog-search-results__all:hover {
    background: #e7eefb;
    color: #4f39f6;
    transform: translateY(-1px);
}

.blog-search-result {
    display: grid;
    grid-template-columns: 8.4rem minmax(0, 1fr);
    gap: 1.2rem;
    align-items: center;
    padding: 0.9rem;
    border-radius: 1.4rem;
    text-decoration: none;
    transition: background 0.18s ease, transform 0.18s ease;
}

.blog-search-result:hover {
    background: #f5f7fb;
    transform: translateY(-1px);
}

.blog-search-result__thumb {
    display: flex;
    width: 8.4rem;
    height: 6.2rem;
    overflow: hidden;
    border-radius: 1.2rem;
    background: #eceff4;
}

.blog-search-result__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-search-result__thumb.is-empty {
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #4f39f6 0%, #f6b73c 100%);
}

.blog-search-result__fallback {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.blog-search-result__body {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.blog-search-result__title {
    color: #191c22;
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 0.35rem;
}

.blog-search-result__excerpt {
    color: #707888;
    font-size: 1.25rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-search-summary {
    margin-bottom: 1.8rem;
    color: #616977;
    font-size: 1.45rem;
}

.blog-search-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 1.2rem;
    padding: 4.4rem 2rem;
    border: 1px solid rgba(25, 26, 31, 0.06);
    border-radius: 2rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 246, 248, 0.96) 100%);
}

.blog-search-empty--inline {
    padding: 1.8rem 1.4rem;
    border-radius: 1.4rem;
    flex-direction: row;
    align-items: center;
    text-align: left;
}

.blog-search-empty__icon {
    width: 7.2rem;
    height: 7.2rem;
    flex-shrink: 0;
}

.blog-search-empty--inline .blog-search-empty__icon {
    width: 5rem;
    height: 5rem;
}

.blog-search-empty__title {
    margin: 0;
    color: #181b21;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.15;
}

.blog-search-empty--inline .blog-search-empty__title {
    font-size: 1.6rem;
}

.blog-search-empty__text {
    margin: 0.4rem 0 0;
    color: #707888;
    font-size: 1.35rem;
    line-height: 1.6;
}

/* ========================================
   Empty State
   ======================================== */

.blog-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6rem 2rem;
    background: var(--blog-lighter);
    border-radius: var(--blog-radius);
    margin-bottom: 7rem;
}

.blog-empty__icon {
    width: 100px;
    height: 100px;
    margin-bottom: 2.4rem;
}

.blog-empty__icon svg {
    width: 100%;
    height: 100%;
}

.blog-empty__title {
    margin: 0 0 0.8rem;
    font-size: 2rem;
    font-weight: 700;
    color: var(--blog-darker);
}

.blog-empty__text {
    margin: 0;
    font-size: 1.6rem;
    color: var(--blog-dark);
}

/* ========================================
   Comments Container
   ======================================== */

#comments {
    margin-top: 4rem;
}

/* ========================================
   Responsive
   ======================================== */

@media screen and (max-width: 899px) {
    .left-bar,
    .right-bar {
        display: none;
    }

}

@media screen and (max-width: 767px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .blog-article__title {
        font-size: 2.2rem;
    }

    .blog-article__cover {
        border-radius: var(--blog-radius);
        max-height: 20rem;
    }

    .blog-related {
        margin-top: 4.8rem;
        padding-top: 3.2rem;
    }

    .blog-related__title {
        margin-bottom: 2rem;
        font-size: 2.6rem;
    }

    .blog-related__list {
        gap: 1.8rem;
    }

    .blog-related-card {
        padding: 2rem;
        border-radius: 2.4rem;
    }

    .blog-related-card__meta {
        gap: 0.8rem 1.2rem;
        margin-bottom: 1.8rem;
    }

    .blog-related-card__body {
        grid-template-columns: 1fr;
        gap: 1.8rem;
    }

    .blog-related-card__title {
        font-size: 1.8rem;
    }

    .blog-related-card__excerpt {
        font-size: 1.5rem;
    }

    .blog-article__lead {
        font-size: 1.5rem;
    }

    .blog-article__body {
        font-size: 1.5rem;
        line-height: 1.75;
    }

    .blog-article__body h2 {
        font-size: 2rem;
    }

    .blog-article__body h3 {
        font-size: 1.8rem;
    }

    .meta-block-bottom {

        gap: 0.6rem;
    }

    .meta-block-bottom__left {
        flex-wrap: wrap;
    }

    .about__author {
        padding: 1.6rem;
    }

    .about__authors-block .author-img {
        width: 10rem;
        height: 10rem;
    }

    .about__authors-title {
        font-size: 1.5rem;
    }
    .c-card__image {
        flex-basis: 100%;
        aspect-ratio: 1.77778 / 1;
    }
    .c-card__title a {
        font-size: 21px;
    }
    .reaction-container {
        flex-wrap: wrap;
        justify-content: center;
    }

    .post-floating-menu {
        bottom: 16px;
        gap: 0.4rem;
        padding: 0.5rem;
        max-width: calc(100vw - 16px);
    }

    .post-floating-menu__button {
        min-height: 4rem;
        gap: 0.6rem;
        padding: 0 1.2rem;
        font-size: 1.3rem;
    }

    .post-floating-menu__button--up {
        min-width: 4rem;
        padding: 0;
    }

    .simplefilter--blog {
        gap: 6px;
    }

    .simplefilter--blog li a {
        padding: 0.5rem 1rem;
        font-size: 1.3rem;
    }

    .blog-empty {
        padding: 4rem 1.6rem;
    }
    .about__authors-wrapper {
        flex-direction: column;
    }
    .blog-empty__icon {
        width: 80px;
        height: 80px;
    }

    .blog-empty__title {
        font-size: 1.8rem;
    }

    .blog-empty__text {
        font-size: 1.4rem;
    }
}

/* ========================================
   Popular Posts
   ======================================== */

.popular-posts {
    background: #dddddd;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 24px;
}

.popular-posts__list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.popular-posts__item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    padding: 10px 12px;
    text-decoration: none;
    border-radius: 10px;
    transition: background 0.2s;
}

.popular-posts__item:hover {
    background: rgba(255, 255, 255, 0.06);
}

.popular-posts__item.is-hidden {
    display: none;
}

.popular-posts__item.is-visible {
    display: block;
}

.popular-posts__title {
    font-size: 1.6rem;
    line-height: 1.4;
    color: #000000;
    transition: color 0.2s;
    min-width: 0;
}
.popular-posts__item:hover {
    color: #4f39f6
}
.popular-posts__title:hover {
    color: #4f39f6
}

.popular-posts__comments {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    color: #000000;
    font-size: 1.3rem;
}

.popular-posts__comments-icon {
    display: flex;
    align-items: center;
    color: #000000;
    line-height: 0;
}

.popular-posts__comments-icon svg {
    display: block;
    width: 16px;
    height: 16px;
}

.popular-posts__comments-count {
    color: #000000;
    font-size: 1.3rem;
}

.popular-posts__item {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    text-decoration: none;
    border-radius: 10px;
    transition: background 0.2s;
    line-height: 1.35;
}

.popular-posts__title {
    display: inline;
}

.popular-posts__comments {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 6px;
    white-space: nowrap;
    vertical-align: baseline;
    font-size: 13px;
    color: #8f9aa7;
}

.popular-posts__comments-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    top: 2px;
}

.popular-posts__comments-icon svg {
    display: block;
    width: 14px;
    height: 14px;
}

.popular-posts__comments-count {
    line-height: 1;
}
.popular-posts__more {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    width: 100%;
    margin-top: 8px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: none;
    border-radius: 10px;
    color: #000;
    font-size: 1.4rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.popular-posts__more:hover {
    color: #4f39f6;
}

.popular-posts__more.is-hidden {
    display: none;
}

@media screen and (max-width: 767px) {
    .popular-posts {
        padding: 14px;
        border-radius: 12px;
        margin-bottom: 16px;
    }

    .popular-posts__item {
        padding: 8px 10px;
        gap: 8px;
    }

    .popular-posts__title {
        font-size: 1.3rem;
    }

    .popular-posts__more {
        padding: 12px 10px;
        font-size: 1.3rem;
    }
}

@media screen and (max-width: 767px) {
    .blog-search {
        margin-bottom: 2rem;
    }

    .blog-search__inner {
        padding: 1.6rem;
        border-radius: 1.6rem;
    }

    .blog-search__title {
        font-size: 2rem;
    }

    .blog-search__text {
        font-size: 1.35rem;
    }

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

    .blog-search__input,
    .blog-search__submit {
        min-height: 5.2rem;
        border-radius: 1.4rem;
    }

    .blog-search__submit {
        width: 100%;
    }

    .blog-search__panel {
        top: calc(100% + 0.8rem);
        padding: 1rem;
        border-radius: 1.4rem;
    }

    .blog-search-result {
        grid-template-columns: 6.8rem minmax(0, 1fr);
        gap: 1rem;
    }

    .blog-search-result__thumb {
        width: 6.8rem;
        height: 5.4rem;
    }

    .blog-search-empty {
        padding: 3.2rem 1.6rem;
    }

    .blog-search-empty--inline {
        padding: 1.4rem 1.2rem;
        gap: 1rem;
    }

    .blog-search-empty__icon {
        width: 6rem;
        height: 6rem;
    }

    .blog-search-empty__title {
        font-size: 1.8rem;
    }
}
