/* Article page — layout, typography, sidebar TOC, recommendation block, float widget */

/* ─── Theme overrides scoped to blog-article pages ─── */
body.page-blog-article {
    --color-bg: #F4F5F7;
    --color-text-main: #0F0F14;
    --color-text-muted: #5C5C6B;
    --color-card-bg: rgba(255, 255, 255, 0.75);
    --shadow-card: 0 24px 48px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 1);
    background-color: var(--color-bg);
}

body.page-blog-article .navbar {
    background: rgba(244, 245, 247, 0.55);
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

body.page-blog-article .navbar.scrolled {
    background: rgba(255, 255, 255, 0.92);
    border-bottom-color: rgba(255, 255, 255, 0.8);
}

/* Hide language switcher — blog articles are single-language only */
body.page-blog-article .lang-switch {
    display: none;
}

body.page-blog-article .bg-orbs .orb {
    filter: blur(180px);
    opacity: 0.28;
}

/* ─── Page wrapper ─── */
.article-page-wrap {
    padding-top: 140px;
    padding-bottom: 80px;
    max-width: 1280px;
    margin: 0 auto;
    padding-left: 5%;
    padding-right: 5%;
    position: relative;
    z-index: 2;
}

/* ─── Breadcrumb ─── */
.article-breadcrumb {
    margin-bottom: 36px;
}

.article-breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.article-breadcrumb ol li {
    display: flex;
    align-items: center;
}

.article-breadcrumb ol li i {
    font-size: 0.65rem;
    opacity: 0.45;
    margin-left: 6px;
}

.article-breadcrumb a {
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.article-breadcrumb a:hover {
    color: var(--color-text-main);
}

.article-breadcrumb [aria-current="page"] {
    color: var(--color-text-main);
    font-weight: 500;
}

/* ─── Article header (hero) ─── */
.article-header {
    max-width: 880px;
    margin-bottom: 56px;
}

.article-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 500;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.12), rgba(255, 154, 68, 0.12));
    color: #E85D00;
    border: 1px solid rgba(255, 107, 107, 0.18);
    margin-bottom: 20px;
    letter-spacing: 0.01em;
}

.article-header h1 {
    font-size: clamp(1.85rem, 3.5vw, 2.8rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.025em;
    color: var(--color-text-main);
    margin-bottom: 20px;
}

.article-abstract {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--color-text-muted);
    max-width: 820px;
    margin-bottom: 24px;
}

.article-meta-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.article-meta-bar .meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.article-meta-bar .meta-item i {
    font-size: 0.8rem;
    opacity: 0.7;
}

.article-divider {
    border: none;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    margin: 0 0 48px;
}

/* ─── Content grid (article + sidebar) ─── */
.article-content-grid {
    display: grid;
    grid-template-columns: 1fr 264px;
    gap: 56px;
    align-items: start;
}

/* ─── Article body ─── */
.article-body {
    min-width: 0;
    font-size: 1.02rem;
    line-height: 1.85;
    color: var(--color-text-main);
}

.article-body section {
    margin-bottom: 52px;
}

.article-body h2 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--color-text-main);
    margin: 0 0 20px;
    padding-top: 12px;
    scroll-margin-top: calc(5.75rem + 1.5rem);
}

.article-body h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--color-text-main);
    margin: 28px 0 14px;
    scroll-margin-top: calc(5.75rem + 1.5rem);
}

.article-body p {
    margin-bottom: 18px;
    color: #2A2A38;
}

.article-body strong {
    font-weight: 600;
    color: var(--color-text-main);
}

.article-body em {
    font-style: italic;
    color: var(--color-text-muted);
}

.article-body a {
    color: #667EEA;
    text-decoration: underline;
    text-decoration-color: rgba(102, 126, 234, 0.35);
    text-underline-offset: 3px;
    transition: color 0.2s, text-decoration-color 0.2s;
}

.article-body a:hover {
    color: #8A65B8;
    text-decoration-color: rgba(138, 101, 184, 0.6);
}

/* Lists */
.article-body ul,
.article-body ol {
    padding-left: 1.5em;
    margin-bottom: 18px;
}

.article-body ul {
    list-style: none;
    padding-left: 0;
}

.article-body ul > li {
    position: relative;
    padding-left: 1.4em;
    margin-bottom: 8px;
}

.article-body ul > li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.72em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FF6B6B, #FF9A44);
}

.article-body ol:not(.step-list) {
    list-style: decimal;
}

.article-body ol:not(.step-list) > li {
    margin-bottom: 10px;
    padding-left: 0.3em;
}

.article-body ol:not(.step-list) > li::marker {
    color: #FF6B6B;
    font-weight: 600;
}

/* Inline code */
.article-body code {
    font-family: 'SFMono-Regular', 'Consolas', 'Liberation Mono', 'Menlo', monospace;
    font-size: 0.875em;
    background: rgba(102, 126, 234, 0.1);
    color: #4A5FC1;
    padding: 2px 6px;
    border-radius: 5px;
    border: 1px solid rgba(102, 126, 234, 0.14);
    overflow-wrap: break-word;
    word-break: break-word;
}

/* Code blocks */
.article-body pre {
    background: #1A1B26;
    color: #A9B1D6;
    font-family: 'SFMono-Regular', 'Consolas', 'Liberation Mono', 'Menlo', monospace;
    font-size: 0.875rem;
    line-height: 1.7;
    border-radius: 12px;
    padding: 24px;
    margin: 24px 0;
    overflow-x: auto;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
    position: relative;
}

.article-body pre code {
    font-size: 0.875rem;
    background: none;
    color: #A9B1D6;
    border: none;
    padding: 0;
    word-break: normal;
    white-space: pre;
    line-height: 1.7;
}

.article-body pre .code-comment { color: #565F89; }
.article-body pre .code-key { color: #7AA2F7; }
.article-body pre .code-string { color: #9ECE6A; }
.article-body pre .code-value { color: #FF9E64; }

/* Pre label */
.code-label {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 0.72rem;
    font-weight: 500;
    color: rgba(169, 177, 214, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-family: 'SFMono-Regular', monospace;
}

/* Tables */
.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 0.92rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.article-body table thead {
    background: linear-gradient(135deg, #667EEA, #8A65B8);
    color: white;
}

.article-body table th {
    padding: 12px 16px;
    font-weight: 600;
    text-align: left;
    letter-spacing: 0.01em;
}

.article-body table td {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    color: #2A2A38;
}

.article-body table tbody tr:last-child td {
    border-bottom: none;
}

.article-body table tbody tr {
    background: rgba(255, 255, 255, 0.8);
    transition: background 0.15s;
}

.article-body table tbody tr:nth-child(even) {
    background: rgba(248, 249, 251, 0.9);
}

.article-body table tbody tr:hover {
    background: rgba(102, 126, 234, 0.06);
}

/* Callout / tip boxes */
.callout {
    display: flex;
    gap: 14px;
    padding: 18px 20px;
    border-radius: 12px;
    margin: 24px 0;
    font-size: 0.95rem;
    line-height: 1.7;
}

.callout-icon {
    flex-shrink: 0;
    font-size: 1rem;
    margin-top: 1px;
}

.callout-body strong {
    display: block;
    margin-bottom: 4px;
    font-size: 0.9rem;
}

.callout-tip {
    background: linear-gradient(135deg, rgba(74, 232, 142, 0.1), rgba(17, 153, 142, 0.08));
    border: 1px solid rgba(17, 153, 142, 0.2);
    color: #0D6E5F;
}

.callout-tip .callout-icon { color: #11998E; }

.callout-warning {
    background: linear-gradient(135deg, rgba(255, 208, 87, 0.15), rgba(255, 154, 68, 0.1));
    border: 1px solid rgba(255, 154, 68, 0.3);
    color: #7A4800;
}

.callout-warning .callout-icon { color: #FF9A44; }

.callout-info {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(138, 101, 184, 0.08));
    border: 1px solid rgba(102, 126, 234, 0.2);
    color: #3D4BA0;
}

.callout-info .callout-icon { color: #667EEA; }

/* Step list */
.step-list {
    counter-reset: step-counter;
    list-style: none;
    padding: 0;
    margin-bottom: 18px;
}

.step-list > li {
    counter-increment: step-counter;
    position: relative;
    padding-left: 48px;
    margin-bottom: 20px;
    min-height: 36px;
    line-height: 1.75;
}

.step-list > li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--grad-primary);
    color: white;
    font-size: 0.85rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* Download CTA inside article */
.article-cta {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 24px;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.08), rgba(255, 208, 87, 0.08));
    border: 1px solid rgba(255, 107, 107, 0.2);
    border-radius: 14px;
    margin: 32px 0;
}

.article-cta i {
    font-size: 1.4rem;
    background: var(--grad-primary);
    -webkit-background-clip: text;
    color: transparent;
    background-clip: text;
    flex-shrink: 0;
}

.article-cta-text {
    flex: 1;
    font-size: 0.97rem;
    line-height: 1.6;
    color: var(--color-text-main);
}

.article-cta-text a {
    font-weight: 600;
    color: #E85D00;
    text-decoration: underline;
    text-decoration-color: rgba(232, 93, 0, 0.35);
    text-underline-offset: 2px;
}

.article-cta-text a:hover {
    color: #FF6B6B;
}

/* ─── Sticky TOC sidebar ─── */
.article-toc {
    position: sticky;
    top: calc(5.75rem + 1.5rem);
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(255, 255, 255, 0.8);
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.article-toc::-webkit-scrollbar { width: 4px; }
.article-toc::-webkit-scrollbar-track { background: transparent; }
.article-toc::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.1); border-radius: 4px; }

.toc-heading {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 7px;
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-list > li {
    padding-left: 0;
    margin-bottom: 2px;
}

.toc-list > li::before { display: none; }

.toc-list a {
    display: block;
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 0.86rem;
    color: var(--color-text-muted);
    text-decoration: none;
    line-height: 1.45;
    transition: color 0.2s, background 0.2s;
    border-left: 2px solid transparent;
}

.toc-list a:hover {
    color: var(--color-text-main);
    background: rgba(102, 126, 234, 0.07);
}

.toc-list a.toc-active {
    color: #667EEA;
    font-weight: 600;
    background: rgba(102, 126, 234, 0.09);
    border-left-color: #667EEA;
}

.toc-list .toc-sub {
    padding-left: 14px;
    font-size: 0.82rem;
}

/* TOC toggle for mobile */
.toc-toggle {
    display: none;
    width: 100%;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-family: var(--font-body);
    text-align: left;
}

/* ─── Product recommendation block (injected by article-recommend.js) ─── */
.product-recommend {
    margin-top: 72px;
    padding: 56px 5%;
    background: linear-gradient(135deg, #0B0C10 0%, #1A1A24 100%);
    border-radius: 24px;
    color: white;
    position: relative;
    overflow: hidden;
}

.product-recommend::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(255, 107, 107, 0.25) 0%, transparent 70%);
    pointer-events: none;
}

.product-recommend::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: -60px;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

.recommend-inner {
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.recommend-kicker {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 107, 107, 0.85);
    margin-bottom: 12px;
}

.recommend-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.25;
    margin-bottom: 14px;
    color: #fff;
}

.recommend-subtitle {
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.6);
    max-width: 640px;
    margin-bottom: 36px;
}

.recommend-features {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 36px;
}

.recommend-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 11px 18px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
    transition: background 0.2s;
}

.recommend-feature:hover {
    background: rgba(255, 255, 255, 0.11);
}

.recommend-feature i {
    font-size: 0.95rem;
    background: var(--grad-primary);
    -webkit-background-clip: text;
    color: transparent;
    background-clip: text;
    flex-shrink: 0;
}

.recommend-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    border-radius: 100px;
    background: var(--grad-primary);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 12px 32px rgba(255, 107, 107, 0.3);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s;
}

.recommend-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(255, 107, 107, 0.4);
    color: white;
}

/* ─── Product recommendation — desktop 2-column layout ─── */
@media (min-width: 1025px) {
    .product-recommend {
        grid-column: 1 / -1;
        padding: 56px 64px;
    }

    .recommend-inner {
        display: grid;
        grid-template-columns: 3fr 2fr;
        grid-template-areas:
            "kicker   features"
            "title    features"
            "subtitle features"
            "cta      features";
        column-gap: 64px;
        max-width: none;
        align-items: start;
    }

    .recommend-kicker  { grid-area: kicker; }
    .recommend-title   { grid-area: title; }

    .recommend-subtitle {
        grid-area: subtitle;
        max-width: none;
    }

    .recommend-features {
        grid-area: features;
        flex-direction: column;
        align-self: center;
        margin-bottom: 0;
        gap: 12px;
    }

    .recommend-cta {
        grid-area: cta;
        align-self: start;
        justify-self: start;
        margin-top: 8px;
    }
}

/* ─── Floating download widget ─── */
.float-widget {
    position: fixed;
    bottom: 32px;
    right: 28px;
    z-index: 500;
    width: 300px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.14), 0 0 0 1px rgba(255, 255, 255, 0.8);
    padding: 22px;
    transform: translateY(20px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.float-widget.visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.float-widget-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    border: none;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: var(--color-text-muted);
    transition: background 0.2s;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.float-widget-close:hover {
    background: rgba(0, 0, 0, 0.1);
}

.float-widget-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.float-widget-logo img {
    width: 28px;
    height: 28px;
    border-radius: 6px;
}

.float-widget-logo span {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-main);
}

.float-widget p {
    font-size: 0.875rem;
    line-height: 1.55;
    color: var(--color-text-muted);
    margin-bottom: 16px;
}

.float-widget-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    background: var(--grad-primary);
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.25);
    transition: transform 0.25s, box-shadow 0.25s;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.float-widget-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(255, 107, 107, 0.35);
    color: white;
}

/* ─── Responsive — tablet ─── */
@media (max-width: 1024px) {
    .article-content-grid {
        grid-template-columns: 1fr;
    }

    /* Move TOC before article body on medium screens */
    .article-toc {
        position: static;
        order: -1;
        max-height: none;
    }

    .toc-toggle {
        display: flex;
        align-items: center;
        gap: 8px;
        color: var(--color-text-main);
        font-size: 0.9rem;
        font-weight: 600;
    }

    .toc-toggle i.toc-toggle-caret {
        margin-left: auto;
        transition: transform 0.25s;
        font-size: 0.75rem;
    }

    .article-toc.toc-open .toc-toggle i.toc-toggle-caret {
        transform: rotate(180deg);
    }

    .toc-list {
        display: none;
    }

    .article-toc.toc-open .toc-list {
        display: block;
        margin-top: 12px;
    }
}

/* ─── Responsive — mobile ─── */
@media (max-width: 768px) {
    .article-page-wrap {
        padding-top: 112px;
        padding-bottom: 60px;
    }

    .article-header h1 {
        font-size: 1.55rem;
        letter-spacing: -0.02em;
    }

    .article-abstract {
        font-size: 0.97rem;
    }

    .article-body {
        font-size: 0.97rem;
    }

    .article-body h2 {
        font-size: 1.25rem;
    }

    .article-body h3 {
        font-size: 1.05rem;
    }

    .article-body pre {
        padding: 16px;
        border-radius: 10px;
        margin: 18px -5%;
        border-radius: 0;
    }

    .article-body table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .recommend-features {
        gap: 10px;
    }

    .recommend-feature {
        padding: 9px 14px;
        font-size: 0.85rem;
    }

    .recommend-cta {
        padding: 14px 28px;
        font-size: 0.95rem;
    }

    /* Float widget — bottom banner on mobile */
    .float-widget {
        width: calc(100% - 32px);
        left: 16px;
        right: 16px;
        bottom: 16px;
        border-radius: 14px;
    }
}


/* ─── Related Articles section ─── */
.related-articles {
    margin-top: 56px;
    padding-top: 36px;
    border-top: 1.5px solid rgba(0, 0, 0, 0.07);
}

.related-articles__heading {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #FF6B6B;
    margin: 0 0 20px;
}

.related-articles__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.related-articles__list li {
    margin: 0;
}

.related-articles__list a {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    padding: 18px 16px;
    background: #fff;
    border: 1.5px solid rgba(0, 0, 0, 0.07);
    border-radius: 14px;
    color: var(--color-text-main, #0F0F14);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.5;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease, color 0.15s ease;
    height: 100%;
    box-sizing: border-box;
}

.related-articles__list a::after {
    content: '→';
    flex-shrink: 0;
    margin-top: 1px;
    font-size: 0.95rem;
    color: rgba(0, 0, 0, 0.2);
    transition: color 0.15s ease, transform 0.15s ease;
}

.related-articles__list a:hover {
    border-color: #FF6B6B;
    box-shadow: 0 6px 24px rgba(255, 107, 107, 0.1);
    transform: translateY(-2px);
    color: #FF6B6B;
}

.related-articles__list a:hover::after {
    color: #FF6B6B;
    transform: translateX(3px);
}

@media (max-width: 900px) {
    .related-articles__list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .related-articles {
        margin-top: 40px;
        padding-top: 28px;
    }

    .related-articles__list {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .related-articles__list a {
        font-size: 0.9rem;
        padding: 16px 14px;
    }
}


/* ─── Prev / Next article navigation ─── */
.article-prev-next {
    margin-top: 56px;
    padding-top: 36px;
    border-top: 1.5px solid rgba(0, 0, 0, 0.07);
}

.article-prev-next__heading {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #FF6B6B;
    margin: 0 0 20px;
}

.article-prev-next__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.article-prev-next__card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px 22px;
    background: #fff;
    border: 1.5px solid rgba(0, 0, 0, 0.07);
    border-radius: 14px;
    color: var(--color-text-main, #0F0F14);
    text-decoration: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
    box-sizing: border-box;
    height: 100%;
}

.article-prev-next__card:hover {
    border-color: #FF6B6B;
    box-shadow: 0 6px 24px rgba(255, 107, 107, 0.1);
    transform: translateY(-2px);
}

.article-prev-next__card--next {
    text-align: right;
}

.article-prev-next__label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #FF6B6B;
}

.article-prev-next__card--next .article-prev-next__label {
    align-self: flex-end;
}

.article-prev-next__label i {
    font-size: 0.7rem;
}

.article-prev-next__title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.45;
    color: var(--color-text-main, #0F0F14);
    margin: 0;
    transition: color 0.15s ease;
}

.article-prev-next__card:hover .article-prev-next__title {
    color: #FF6B6B;
}

.article-prev-next__keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}

.article-prev-next__card--next .article-prev-next__keywords {
    justify-content: flex-end;
}

.article-prev-next__keyword {
    display: inline-block;
    padding: 3px 10px;
    background: rgba(255, 107, 107, 0.08);
    color: #5C5C6B;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 500;
    line-height: 1.6;
    white-space: nowrap;
}

@media (max-width: 700px) {
    .article-prev-next__grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .article-prev-next__card,
    .article-prev-next__card--next {
        text-align: left;
    }

    .article-prev-next__card--next .article-prev-next__label,
    .article-prev-next__card--next .article-prev-next__keywords {
        align-self: flex-start;
        justify-content: flex-start;
    }
}

@media (max-width: 600px) {
    .article-prev-next {
        margin-top: 40px;
        padding-top: 28px;
    }

    .article-prev-next__card {
        padding: 16px 16px;
    }

    .article-prev-next__title {
        font-size: 0.95rem;
    }
}
