/* =========================
   Blog Page
   ========================= */

/* --- Google Ads Banner --- */
.google-ads-banner {
    padding-top: 48px;
}

.blog-ads-banner {
    position: relative;
    width: 100%;
    height: 280px;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 48px;
}

.blog-ads-banner__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-ads-banner__label {
    position: relative;
    z-index: 1;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--orange);
}

/* --- Hero Section --- */
.blog-hero-section {
    overflow: visible;
}

/* Mobile scroll track — hidden on desktop */
.blog-hero-mobile {
    display: none;
    overflow-x: hidden;
}

.blog-hero-mobile__track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 8px;
    padding: 8px var(--container-left-right-paddings) 12px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.blog-hero-mobile__track::-webkit-scrollbar {
    display: none;
}

.blog-hero-mobile__scrollbar {
    position: relative;
    height: 4px;
    margin: 0 16px;
}

.blog-hero-mobile__scrollbar::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    height: 2px;
    background: #F0F0F0;
    border-radius: 2px;
}

.blog-hero-mobile__scrollbar-thumb {
    position: absolute;
    top: 0;
    height: 4px;
    background: #F85628;
    border-radius: 2px;
    transition: left 0.1s linear;
}

.blog-hero-slide {
    flex: 0 0 calc(90vw - var(--container-left-right-paddings) * 2);
    height: 380px;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    text-decoration: none;
    color: #fff;
    scroll-snap-align: center;
}

.blog-hero-slide__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-hero-slide__overlay {
    position: relative;
    z-index: 1;
    padding: 16px;
    gap: 8px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.65) 0%, transparent 100%);
}

.blog-hero-slide__cats {
    gap: 6px;
    flex-wrap: wrap;
}

.blog-hero__badge--outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.8);
    color: #fff;
}

.blog-hero-slide__title {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
    color: #fff;
}

.blog-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 480px;
    gap: 6px;
    padding-top: 24px;
    padding-bottom: 24px;
}

/* Main big card — fade wrapper */
.blog-hero__main-container {
    position: relative;
    width: 100%;
    height: 100%;
}

@media (hover: hover) and (pointer: fine) {
    .blog-hero__main-wrapper:hover .blog-hero__main--front {
        opacity: 0;
    }

    .blog-hero__main-wrapper:hover .blog-hero__main--back {
        opacity: 1;
    }
}

.blog-hero__main {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: #fff;
    text-decoration: none;
    box-sizing: border-box;
}

/* Front */
.blog-hero__main--front {
    position: relative;
    opacity: 1;
    transition: opacity 0.45s ease;
    z-index: 1;
}

/* Back */
.blog-hero__main--back {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.45s ease;
    background: var(--orange);
    border-radius: 20px;
    padding: 32px;
    gap: 8px;
    align-items: stretch;
    justify-content: flex-end;
}

.blog-hero__main__back-title {
    font-size: 36px;
    font-weight: 600;
    line-height: 1.2;
    color: #fff;
}

.blog-hero__main--back .blog-hero__side-card__back-footer {
    margin-top: 6px;
}

.blog-hero__main__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-hero__main__overlay {
    position: relative;
    z-index: 1;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, transparent 100%);
    width: 100%;
}

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

.blog-hero__badge {
    display: inline-flex;
    padding: 4px 10px;
    border-radius: 999px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
}

.blog-hero__main__title {
    font-size: 36px;
    font-weight: 600;
    line-height: 1.2;
    color: #fff;
}

.blog-hero__main__excerpt {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.85);
}

/* Side cards grid (1 wide top + 2 bottom) */
.blog-hero__side {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 6px;
    height: 100%;
}

/* --- Side card: fade wrapper --- */

.blog-hero__side-card-wrapper--wide {
    grid-column: 1 / -1;
}

.last-publications.last-publications--grid,
.last-publications.last-publications--author {
    padding-top: 24px;
    padding-bottom: 96px;
}

.blog-hero__side-card-container {
    position: relative;
    width: 100%;
    height: 100%;
}

@media (hover: hover) and (pointer: fine) {
    .blog-hero__side-card-wrapper:hover .blog-hero__side-card--front {
        opacity: 0;
    }

    .blog-hero__side-card-wrapper:hover .blog-hero__side-card--back {
        opacity: 1;
    }
}

.blog-hero__side-card {
    width: 100%;
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
    color: #fff;
    text-decoration: none;
    box-sizing: border-box;
}

/* Front face — image bg with overlay */
.blog-hero__side-card--front {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    opacity: 1;
    transition: opacity 0.25s ease;
    z-index: 1;
}

.blog-hero__side-card__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-hero__side-card__overlay {
    position: relative;
    z-index: 1;
    padding: 16px;
    gap: 8px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.65) 0%, transparent 100%);
}

.blog-hero__side-card__meta {
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.blog-hero__side-card__overlay .blog-hero__badge {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.8);
    color: #fff;
}

/* Small cards (default) */
.blog-hero__side-card__title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.35;
    color: #fff;
}

/* Wide card — front title */
.blog-hero__side-card-wrapper--wide .blog-hero__side-card__title {
    font-size: 24px;
}

/* Back face */
.blog-hero__side-card--back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.45s ease;
    background: var(--orange);
    border: none;
    border-radius: 16px;
    color: #fff;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: stretch;
    padding: 16px;
    gap: 8px;
    box-sizing: border-box;
}

.blog-hero__side-card__back-cats {
    gap: 6px;
}

.blog-hero__side-card__back-badge {
    display: inline-flex;
    align-items: center;
    height: 26px;
    padding: 0 8px;
    border-radius: 999px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.8);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
}

/* Small cards (default) */
.blog-hero__side-card__back-title {
    font-size: 18px;
    font-weight: 600;
    line-height: 24px;
    color: #fff;
}

/* Wide card — back title */
.blog-hero__side-card-wrapper--wide .blog-hero__side-card__back-title {
    font-size: 24px;
    line-height: 1.2;
}

.blog-hero__side-card__back-footer {
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 6px;
}

.blog-hero__side-card__back-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    line-height: 1;
}

.blog-hero__side-card__back-arrow {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 50%;
    flex-shrink: 0;
}



/* --- Blog publications overrides (grid mode) --- */
.last-publications__text-col {
    gap: 8px;
    width: 100%;
}

.last-publications__text-col,
.last-publications__text-col .title-section {
    text-align: left;
}

/* Card hover outline */
[data-page="blog"] .blog__card,
[data-page="author"] .blog__card {
    transition: 0.3s outline;
    outline: 3px transparent solid;
}

[data-page="blog"] .blog__card:hover,
[data-page="author"] .blog__card:hover {
    outline: 3px var(--orange) solid;
}

/* Hide "Наш блог" mobile footer button on blog index and author page */
[data-page="blog"] .last-publications__content__mobile,
[data-page="author"] .last-publications__content__mobile {
    display: none !important;
}

/* --- "Показати ще" button --- */
.blog-more-wrapper {
    padding-top: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.blog-more-wrapper.blog-more-wrapper--mobile {
    display: none;
}

.blog-more-btn.primary-btn {
    --btn-height: 48px;
    --btn-gap: 8px;
    width: 100%;
    max-width: 330px;
    background: var(--bg);
    color: var(--orange);
    border: 1px solid #EBEDEF;
}

.blog-more-btn svg {
    width: 24px;
    height: 24px;
}

/* --- Pagination wrapper --- */
.blog-pagination-wrapper {
    padding-top: 16px;
}

.blog-pagination-wrapper.blog-pagination-wrapper--mobile {
    display: none;
}

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

@media (max-width: 1000px) {
    .blog-hero {
        gap: 6px;
    }

    .blog-hero__side-card__title {
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .google-ads-banner {
        padding: 0px;
    }

    .last-publications.last-publications--grid,
    .last-publications.last-publications--author {
        padding-bottom: 32px;
        gap: 20px;
    }

    .last-publications__text-col .text {
        font-size: 16px;
    }

    /* Banner: taller on mobile */
    .blog-ads-banner {
        border-radius: 0px;
        margin-top: 16px;
        width: 100vw;
        margin-left: -16px;
    }

    /* Hero: hide desktop grid, show mobile scroll */
    .blog-hero {
        display: none;
    }

    .blog-hero-mobile {
        display: block;
    }

    .blog-hero__main {
        min-height: 280px;
    }

    /* Pagination */
    .blog-more-wrapper {
        padding-top: 20px;
        display: none;
    }

    .blog-more-wrapper.blog-more-wrapper--mobile {
        display: flex;
    }

    .blog-pagination-wrapper {
        padding-top: 16px;
        display: none;
    }

    .blog-pagination-wrapper.blog-pagination-wrapper--mobile {
        display: block;
    }
}


/* =========================
   Blog — Author Page
   ========================= */

/* --- Hero section --- */
.author-hero-section {
    overflow: visible;
}

.author-hero {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 80px;
    align-items: flex-start;
    padding-top: 54px;
    padding-bottom: 16px;
    overflow: hidden;
}

/* Photo */
.author-hero__photo {
    position: relative;
    align-self: flex-start;
    padding: 12px 0px;
}

.author-hero__photo img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: bottom;
    border-radius: 14px;
}

/* Info */
.author-hero__info {
    gap: 16px;
    padding: 12px 0;
}

.author-hero__label {
    padding: 4px 6px;
    display: inline-flex;
    border-radius: 999px;
    background: #FFE5D0;
    font-size: 14px;
    font-weight: 500;
    line-height: 18px;
    color: var(--orange);
    width: fit-content;
}

.author-hero__name {
    font-size: 40px;
    font-weight: 700;
    line-height: 1.15;
    color: var(--black);
}

.author-hero__bio {
    font-size: 16px;
    color: var(--muted);
    max-width: 600px;
}

.author-hero__bio p {
    margin: 0;
}

.author-information-section {
    padding-top: 16px;
    padding-bottom: 24px;
}

.author-information {
    max-width: 960px;
}

.author-information h2,
.author-information h3 {
    color: var(--black);
    font-weight: 700;
    line-height: 1.2;
}

.author-information h2 {
    font-size: 28px;
    margin: 16px 0;
}

.author-information h3 {
    font-size: 22px;
    margin-top: 24px;
    margin-bottom: 12px;
}

.author-information p,
.author-information li {
    font-size: 16px;
    line-height: 1.55;
    color: var(--muted);
}

.author-information p + p,
.author-information ul + p,
.author-information ol + p {
    margin-top: 12px;
}

.author-information ul,
.author-information ol {
    margin-top: 12px;
    padding-left: 24px;
}

.author-hero__socials-label {
    font-size: 16px;
    color: var(--muted);
    margin-top: 4px;
}

.author-hero .socials--author .social-item-link .info {
    margin-right: auto;
    align-items: flex-start;
    text-align: left;
}

/* --- Publications section --- */
.author-publications-section {
    padding-top: 0;
}

.author-publications__title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--black);
}

.author-publications__count {
    margin-top: 4px;
    margin-bottom: 0;
}

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

@media (max-width: 900px) {
    .author-hero {
        grid-template-columns: 260px 1fr;
        gap: 24px;
    }

    .author-hero__name {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .author-hero {
        grid-template-columns: 1fr;
        padding-top: 48px;
    }

    .author-hero__photo {
        margin: 0 auto;
    }

    .author-hero__info {
        gap: 8px;
        padding: 24px 0 0;
    }

    .author-hero__name {
        font-size: 28px;
    }

    .author-hero__bio,
    .author-hero__socials-label {
        font-size: 14px;
        line-height: 18px;
        margin-bottom: 16px;
        margin-top: 0px;
    }

    .author-information-section {
        padding-top: 8px;
        padding-bottom: 16px;
    }

    .author-information h2 {
        font-size: 24px;
    }

    .author-information h3 {
        font-size: 20px;
    }

    .author-information p,
    .author-information li {
        font-size: 14px;
        line-height: 20px;
    }

    .socials--author {
        --soc-gtc: repeat(1, minmax(0, 1fr));
        max-width: 100%;
    }
}


/* =========================
   Blog — Article Page
   ========================= */

/* --- Article Header --- */
.article-header-section {
    padding-top: 24px;
    padding-bottom: 24px;
}

.article-header {
    gap: 16px;
    border-radius: 38px;
    padding: 24px 32px;
}

.article-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 6px;
    border-radius: 999px;
    background: #FFE5D0;
    color: var(--orange);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
}

.article-header__meta {
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.article-header__cats {
    gap: 8px;
    flex-wrap: wrap;
}

.article-header__cats .category {
    padding: 7px 6px;
    display: inline-flex;
    border-radius: 999px;
    background: #FFE5D0;
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    color: var(--orange);
}

.article-header__cats .category--level {
    background: #D5F5E3;
    color: var(--black);
}

.article-header__cats .category--provider {
    background: #D6E4FF;
    color: var(--black);
}

.article-header__date {
    font-size: 16px;
    font-weight: 500;
    color: var(--second-gray);
    white-space: nowrap;
}

.article-title {
    font-size: 44px;
    font-weight: 600;
    line-height: 56px;
    color: var(--main-black);
    max-width: 992px;
    margin-bottom: 8px;
}

.article-header__info {
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.article-author {
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
}

.article-author__name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.article-stats {
    gap: 12px;
    align-items: center;
}

.article-stat {
    align-items: center;
    gap: 4px;
}

.article-stat img {
    width: 16px;
    height: 16px;
}

.article-stat span {
    font-size: 12px;
    font-weight: 500;
    color: var(--second-gray);
    font-family: var(--font-serif);
}

/* --- Article Layout --- */
.article-body-section {
    padding-top: 40px;
    padding-bottom: 24px;
}

.article-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 16px;
    align-items: start;
}

/* --- Sidebar --- */
.article-sidebar {
    position: sticky;
    top: 112px;
    gap: 16px;
    margin-bottom: 96px;
}

.article-main-col {
    gap: 24px;
    min-width: 0;
}

.article-sidebar__label {
    font-size: 18px;
    font-weight: 600;
    line-height: 1;
    color: var(--main-black);
}

.article-toc {
    gap: 16px;
}

.article-toc,
.article-ai-summary,
.article-share {
    border-radius: 24px;
    padding: 16px;
}

.article-ai-summary {
    gap: 16px;
}

.article-ai-summary__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.article-ai-summary__item {
    min-width: 0;
    min-height: 52px;
    padding: 8px 6px;
    border: 2px solid #F2F2F2;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    color: var(--main-black);
    font-size: 12px;
    font-weight: 600;
    line-height: 16px;
    text-decoration: none;
    transition: border-color .25s, transform .25s;
}

.article-ai-summary__item:hover {
    border-color: #DDDDDD;
    transform: translateY(-1px);
}

.article-ai-summary__icon {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
}

.article-language-switcher {
    position: relative;
    overflow: hidden;
    gap: 24px;
    padding: 14px;
    border-style: solid;
    border-color: #F2F2F2;
    border-top-width: 3px;
    border-right-width: 3px;
    border-left-width: 3px;
    border-bottom-width: 6px;
    border-radius: 24px;
    background: #fff;
}

.article-language-switcher::before {
    content: "";
    position: absolute;
    background: url('/assets/img/svg/flowers/flower-green-1.svg');
    width: 50px;
    height: 39px;
    top: 0;
    right: 0;
    background-repeat: no-repeat;
    background-size: 100%;
    pointer-events: none;
}

.article-language-switcher__title,
.article-language-switcher__list {
    position: relative;
    z-index: 1;
}

.article-language-switcher__title {
    max-width: 190px;
    font-size: 18px;
    font-weight: 600;
    line-height: 24px;
    color: var(--main-black);
}

.article-language-switcher__list {
    display: grid;
    grid-template-columns: repeat(3, max-content);
    gap: 16px;
}

.article-language-switcher__item {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 48px;
    min-height: 38px;
    padding: 7px 10px;
    border: 1px solid #DDDDDD;
    border-radius: 12px;
    background: #fff;
    color: var(--sub-black);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.04em;
    transition: border-color 0.25s, color 0.25s, background-color 0.25s;
}

.article-language-switcher__item:hover,
.article-language-switcher__item:focus-visible {
    border-color: var(--orange);
    color: var(--orange);
}

.article-language-switcher__item[aria-current="page"] {
    border-color: var(--orange);
    background: var(--orange);
    color: #fff;
}

.article-toc__list {
    gap: 4px;
}

.article-toc__item {
    padding: 10px 16px;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--second-gray);
    text-decoration: none;
    transition: color 0.25s, border-color 0.25s;
    border-radius: 999px;
}

.article-toc__item:hover {
    color: var(--text);
}

.article-toc__item.active {
    color: var(--bg);
    background: var(--orange);
}

.article-share {
    gap: 24px;
    position: relative;
    overflow: hidden;
}

.article-share::before {
    content: "";
    background: url('/assets/img/svg/flowers/flower-purple.svg');
    position: absolute;
    width: 40px;
    height: 40px;
    top: 0;
    right: 0;
}

.article-share__icons {
    gap: 16px;
    flex-wrap: wrap;
}

.article-share__icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #F3F3F3;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.article-share__icon:hover {
    background: #E5E5E5;
}

.article-share__icon img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

/* --- Article Content --- */
.article-content {
    gap: 24px;
    min-width: 0;
    padding: 32px;
    border-radius: 38px;
}

.article-content__img {
    width: 100%;
    height: 100%;
    max-height: 642px;
    object-fit: cover;
    border-radius: 24px;
    display: block;
}

.article-text {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 100%;
    margin: auto;
}

.article-text p {
    font-size: 16px;
    font-weight: 400;
    line-height: 20px;
    color: var(--sub-black);
}

.article-text h2 {
    font-size: 24px;
    font-weight: 600;
    line-height: 32px;
    color: var(--main-black);
    margin-top: 8px;
    margin-bottom: 4px;
}

.article-text__img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 16px;
    display: block;
    margin: 8px 0;
}

.article-blockquote {
    margin: 0;
    border-left: 2px solid var(--orange);
    background: var(--bg);
    font-size: 16px;
    font-weight: 500;
    line-height: 20px;
    color: var(--main-black);
    padding-left: 13px;
    margin-top: 8px;
}

/* --- Feedback --- */
.article-feedback {
    border-width: 3px;
    border-bottom-width: 6px;
    border-style: solid;
    border-color: var(--border);
    align-items: center;
    gap: 16px;
    padding: 24px;
    border-radius: 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.article-feedback::before {
    content: "";
    position: absolute;
    background: url('/assets/img/svg/flowers/flower-author-2.svg');
    top: 0;
    left: 0;
    height: 63px;
    width: 56px;
    background-repeat: no-repeat;
}

.article-feedback::after {
    content: "";
    position: absolute;
    background: url('/assets/img/svg/flowers/flower-author-1.svg');
    top: 0;
    right: 0;
    height: 47px;
    width: 84px;
    background-repeat: no-repeat;
}

.article-feedback__title {
    font-size: 18px;
    font-weight: 600;
    color: var(--main-black);
}

.article-feedback__actions {
    align-items: center;
    max-width: 488px;
    width: 100%;
}

.article-feedback__btn {
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 999px;
    border: 1px solid #EBEDEF;
    background: #fff;
    font-size: 16px;
    font-weight: 600;
    color: var(--main-black);
    font-family: var(--font-onest);
    cursor: pointer;
    transition: color 0.3s, border-color 0.3s;
    flex: 1;
    justify-content: center;
}

.article-feedback__actions .article-feedback__btn:first-child {
    border-radius: 100px 0 0 100px;
}

.article-feedback__actions .article-feedback__btn:last-child {
    border-radius: 0 100px 100px 0;
}

.article-feedback__btn.is-loading,
.article-feedback__btn:disabled {
    opacity: 0.7;
    cursor: wait;
}

.article-feedback__btn.is-active svg {
    color: var(--orange);
}

.article-feedback__message,
.article-new-comment__message {
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.4;
}

.article-feedback__message.is-error,
.article-new-comment__message.is-error {
    color: #c62828;
}

.article-feedback__message.is-success,
.article-new-comment__message.is-success {
    color: #2e7d32;
}

.article-comments__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
}

.article-new-comment__honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
}

.article-new-comment__submit.is-loading,
.article-new-comment__submit:disabled {
    opacity: 0.7;
    cursor: wait;
}

@media (hover: hover) and (pointer: fine) {
    .article-feedback__btn:hover {
        color: var(--orange-hover);
    }
}

/* --- Comments Section --- */
.article-comments-wrapper {
    padding: 22px;
    border-radius: 38px;
    background: var(--border);
}

.article-comments-wrapper__content {
    padding: 60px;
    border-radius: 38px;
    background: var(--bg);
}

.article-comments-section {
    padding-top: 0px;
    padding-bottom: 0;
}

.article-comments-header {
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.article-comments__title {
    font-size: 24px;
    font-weight: 600;
    color: var(--main-black);
}

.article-comments__add-btn {
    --btn-height: 44px;
    --btn-gap: 8px;
    --btn-font-size: 14px;
    padding: 0 20px;
}

.article-comments-list {
    gap: 16px;
}

.comment-item {
    position: relative;
    gap: 16px;
    padding: 20px;
    border: 3px solid var(--border);
    border-radius: 20px;
    transition: opacity .25s ease, transform .25s ease, filter .25s ease;
}

.comment-item.is-processing {
    pointer-events: none;
}

.comment-item__author {
    align-items: center;
    gap: 12px;
}

.comment-item__avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.comment-item__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.comment-item__name {
    font-size: 16px;
    font-weight: 500;
    color: var(--main-black);
}

.comment-item__edit {
    position: relative;
    display: flex;
    margin-left: auto;
}

.comment-item__edit-icon__btn {
    width: 24px;
    height: 24px;
    border: 0;
    padding: 0;
    background: transparent;
}

.comment-item__edit-icon__btn svg,
.comment-item__edit-icon__btn img {
    width: 100%;
    height: 100%;
}

.comment-item__edit-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 5px;
    padding: 16px;
    border-top: 1px solid #F2F2F2;
    border-radius: 8px;
    box-shadow: 0px 2.99px 10.47px 0px #14142B1A;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    gap: 8px;
    transform-origin: top;
    transform: scaleY(0);
    transition: transform .3s ease;
    z-index: 1;
}

.comment-item__edit-menu.show {
    transform: scaleY(1);
}

.comment-item__edit-menu .edit-menu__item {
    border: 0;
    padding: 0;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    color: #666667;
}

.comment-item__edit-menu .edit-menu__item svg,
.comment-item__edit-menu .edit-menu__item img {
    width: 20px;
    height: 20px;
}

.comment-item__meta {
    gap: 12px;
}

.comment-item__date {
    font-size: 14px;
    font-weight: 400;
    color: var(--second-gray);
}

.comment-item__excerpt {
    font-size: 14px;
    font-weight: 500;
    line-height: 18px;
    color: var(--dark-gray);
    text-decoration: underline;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.comment-item__text-wrap {
    overflow: hidden;
    height: auto;
    transition: height 0.35s ease;
}

.comment-item.is-collapsed .comment-item__text-wrap {
    height: 0;
}

.comment-item__excerpt {
    transition: opacity 0.2s ease;
}

.comment-item__excerpt.is-hidden {
    opacity: 0;
}

.comment-item__text {
    font-size: 14px;
    font-weight: 400;
    line-height: 18px;
    color: var(--gray);
    font-family: var(--font-sf-pro-display);
    overflow: hidden;
    transition: height 0.35s ease;
}

.comment-item__read-more {
    width: max-content;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 16px;
    font-weight: 500;
    line-height: 20px;
    font-family: var(--font-onest);
    color: var(--orange);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    margin-top: 4px;
}

.comment-item__read-more svg {
    flex-shrink: 0;
    color: currentColor;
    transition: transform 0.25s;
}

.comment-item__read-more[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

.comment-item__read-more:hover .read-more-label {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .comment-item__excerpt {
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }
}

.comment-item.is-processing .comment-item__author,
.comment-item.is-processing .comment-item__meta,
.comment-item.is-processing .comment-item__text-wrap,
.comment-item.is-processing .comment-item__excerpt,
.comment-item.is-processing .comment-item__edit-form,
.comment-item.is-processing .comment-item__read-more {
    opacity: .55;
}

.comment-item.is-processing::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 20px;
    width: 18px;
    height: 18px;
    margin-top: -9px;
    border: 2px solid rgba(0, 0, 0, .15);
    border-top-color: rgba(0, 0, 0, .65);
    border-radius: 50%;
    animation: comment-spin .7s linear infinite;
    z-index: 2;
}

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

.comment-item .is-loading {
    cursor: wait;
}

/* --- New Comment Form --- */
.article-new-comment-section {
    padding-top: 24px;
    padding-bottom: 0;
}

.article-new-comment {
    background: var(--bg);
    border-radius: 20px;
    padding: 32px;
    gap: 24px;
    display: flex;
    flex-direction: column;
    box-shadow: 0px 3px 10.5px 0px #14142B1A;
}

.article-new-comment__title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text);
}

.article-new-comment--guest {
    gap: 60px;
}

.article-new-comment__title--guest {
    max-width: 600px;
}

.article-new-comment__signup {
    width: max-content;
    align-self: flex-start;
}

.article-new-comment__form {
    gap: 16px;
}

.article-new-comment__row {
    gap: 8px;
}

.article-new-comment__input,
.article-new-comment__textarea,
.comment-item__edit-textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #EBEDEF;
    border-radius: 12px;
    background: #fff;
    font-size: 16px;
    font-weight: 400;
    color: var(--text);
    font-family: var(--font-onest);
    outline: none;
    transition: border-color 0.25s;
    box-sizing: border-box;
}

.article-new-comment__input {
    border-radius: 999px;
}

.article-new-comment__input::placeholder,
.article-new-comment__textarea::placeholder,
.comment-item__edit-textarea::placeholder {
    color: #B0B0B0;
}

.article-new-comment__input:focus,
.article-new-comment__textarea:focus,
.comment-item__edit-textarea:focus {
    border-color: var(--orange);
}

.article-new-comment__textarea,
.comment-item__edit-textarea {
    resize: none;
    min-height: 128px;
}

.article-new-comment__submit {
    width: 100%;
    --btn-height: 52px;
    margin-top: 8px;
}

.comment-item__edit-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.comment-item__edit-form[hidden] {
    display: none;
}

.comment-item__edit-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.comment-item__edit-save,
.comment-item__edit-cancel {
    --btn-height: 48px;
    transition: all .4s;
}

.comment-item__edit-cancel {
    background: var(--bg);
    border: 1px solid #EBEDEF;
    color: var(--orange);
}

/* --- Similar Articles --- */
.article-similar-section {
    padding-top: 24px;
    padding-bottom: 96px;
}

.article-similar__title {
    font-size: 28px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 20px;
}

.article-similar__swiper .cards-swiper__wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    right: -1px;
    width: 226px;
    height: 100%;
    transition: all 0.4s;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(-90deg, #FFFFFF 26.45%, rgba(255, 255, 255, 0) 100%);
}

.article-similar__swiper .cards-swiper__wrapper::before {
    content: "";
    position: absolute;
    top: 0;
    left: -1px;
    width: 226px;
    height: 100%;
    transition: all 0.4s;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(90deg, #FFFFFF 26.45%, rgba(255, 255, 255, 0) 100%);
}

.article-similar__swiper.is-end .cards-swiper__wrapper::after,
.article-similar__swiper.is-beginning .cards-swiper__wrapper::before {
    opacity: 0;
    visibility: hidden;
}

.article-similar__scrollbar {
    height: 4px;
    position: relative;
    margin-top: 16px;
}

.article-similar__scrollbar::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    height: 2px;
    background: #F0F0F0;
    border-radius: 2px;
}

.article-similar__scrollbar-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 4px;
    width: 0%;
    background: var(--orange);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.article-similar-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
}

.author-hero__photo::before {
    content: "";
    position: absolute;
    background: url('/assets/img/svg/starburst.svg');
    top: -18px;
    left: 13px;
    height: 78px;
    width: 78px;
    background-repeat: no-repeat;
    background-size: 100%;
    z-index: -1;
}

.author-hero__photo::after {
    content: "";
    position: absolute;
    background: url('/assets/img/effect-2.webp');
    bottom: -10px;
    right: -15px;
    height: 156px;
    width: 156px;
    background-repeat: no-repeat;
    background-size: 100%;
    z-index: -1;
    rotate: 15deg;
}

@media (max-width: 600px) {

    .article-similar__swiper .cards-swiper__wrapper::after,
    .article-similar__swiper .cards-swiper__wrapper::before {
        content: none;
    }
}

/* =========================
   Responsive — Article Page
   ========================= */


@media (max-width: 768px) {
    .article-header-section {
        padding-top: 16px;
        padding-bottom: 12px;
    }

    .article-header {
        padding: 16px;
        border-radius: 24px;
    }

    .article-main-col {
        gap: 12px;
    }

    .article-comments-wrapper {
        margin-top: 20px;
        margin-left: -16px;
        width: 100vw;
        padding: 16px 8px;
        border-radius: 24px;
    }

    .article-comments-header {
        align-items: stretch;
        gap: 12px;
        margin-bottom: 20px;
        flex-direction: column;
    }

    .article-comments-wrapper__content {
        padding: 24px 16px;
        border-radius: 24px;
    }

    .article-content {
        padding: 32px 16px;
        border-radius: 24px;
    }

    .article-share {
        align-items: center;
    }

    .article-title {
        font-size: 24px;
        line-height: 32px;
    }

    .article-layout {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .article-sidebar {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 24px;
        margin-bottom: 0;
    }

    .article-toc,
    .article-language-switcher,
    .article-ai-summary,
    .article-share {
        flex: 1;
        min-width: 220px;
    }

    .article-language-switcher {
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
        gap: 12px 16px;
    }

    .article-language-switcher__title {
        max-width: none;
        flex: 1 1 180px;
    }

    .article-language-switcher__list {
        display: flex;
        flex: 1 1 auto;
        align-items: center;
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 12px;
    }

    .article-content__img {
        height: 220px;
        border-radius: 12px;
    }

    .article-text__img {
        height: 200px;
    }

    .article-feedback {
        padding: 0;
        border: 0;
        margin-top: 8px;
    }

    .article-feedback::before,
    .article-feedback::after {
        content: none;
    }

    .article-new-comment {
        padding: 24px 20px;
    }

    .article-new-comment__row {
        flex-direction: column;
    }

    .article-similar-grid {
        grid-template-columns: 1fr;
    }

    .article-similar-section {
        padding-top: 32px;
        padding-bottom: 32px;
    }

    .article-new-comment__title {
        font-size: 18px;
        text-align: center;
    }

    .article-new-comment--guest {
        gap: 40px;
    }

    .article-new-comment__title--guest {
        text-align: left;
    }

    .article-new-comment__row {
        gap: 16px;
    }
}
