/* ═══════════════════════════════════════════════════════════
   Blog CSS — skrini.ru
   Design system: dark theme, Inter font, #6366F1 accent
   ═══════════════════════════════════════════════════════════ */

/* ───────────── Custom Properties (shared with landing) ───────────── */
:root {
    --bg-primary: #0F172A;
    --bg-secondary: #1E293B;
    --bg-card: #1E293B;
    --bg-card-hover: #263347;
    --bg-code: #151D2E;
    --text-primary: #F8FAFC;
    --text-secondary: #94A3B8;
    --text-muted: #64748B;
    --accent: #6366F1;
    --accent-hover: #818CF8;
    --accent-glow: rgba(99, 102, 241, 0.3);
    --accent-subtle: rgba(99, 102, 241, 0.1);
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    --info: #3B82F6;
    --border: rgba(148, 163, 184, 0.1);
    --border-strong: rgba(148, 163, 184, 0.2);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 20px;
    --max-width: 1200px;
    --article-width: 720px;
    --transition: 0.2s ease;
}

/* ───────────── Reset & Base ───────────── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: var(--accent-hover);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--text-primary);
}

img {
    max-width: 100%;
    height: auto;
}

/* ───────────── Utility ───────────── */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.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;
}

/* ───────────── Buttons ───────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--accent);
    color: white;
    box-shadow: 0 4px 24px var(--accent-glow);
}

.btn-primary:hover {
    background: var(--accent-hover);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 32px var(--accent-glow);
}

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.btn-large {
    padding: 18px 40px;
    font-size: 18px;
    border-radius: 14px;
}

/* ═══════════════════════════════════════
   Reading Progress Bar
   ═══════════════════════════════════════ */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-hover));
    z-index: 1000;
    transition: width 0.1s linear;
}

/* ═══════════════════════════════════════
   Header
   ═══════════════════════════════════════ */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 16px 0;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
}

.logo:hover {
    color: var(--text-primary);
}

.logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.header-nav a {
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 500;
}

.header-nav a:hover {
    color: var(--text-primary);
}

.header-nav .divider {
    color: var(--text-muted);
}

.header-nav .btn {
    padding: 8px 20px;
    font-size: 14px;
}

/* Mobile menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 4px;
}

.mobile-menu {
    display: none;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
}

.mobile-menu.active,
.mobile-menu.open {
    display: block;
}

.mobile-menu-inner {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0 24px;
}

.mobile-menu-link {
    color: var(--text-secondary);
    font-size: 16px;
    font-weight: 500;
    padding: 8px 0;
}

.mobile-menu-link:hover {
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .header-nav,
    .header-actions {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }
}

/* ═══════════════════════════════════════
   Breadcrumbs
   ═══════════════════════════════════════ */
.breadcrumbs {
    padding: 20px 0;
    font-size: 14px;
    color: var(--text-muted);
}

.breadcrumbs a {
    color: var(--text-muted);
}

.breadcrumbs a:hover {
    color: var(--accent-hover);
}

.breadcrumbs .sep {
    margin: 0 8px;
    opacity: 0.5;
}

.breadcrumbs .current {
    color: var(--text-secondary);
}

/* ═══════════════════════════════════════
   Article Layout (two-column with TOC sidebar)
   ═══════════════════════════════════════ */
.article-layout {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 60px;
    padding-bottom: 80px;
    align-items: start;
}

/* ═══════════════════════════════════════
   Article Hero
   ═══════════════════════════════════════ */
.article-hero {
    padding: 40px 0 0;
    max-width: var(--article-width);
}

.article-category {
    display: inline-block;
    padding: 4px 14px;
    background: var(--accent-subtle);
    color: var(--accent-hover);
    font-size: 13px;
    font-weight: 600;
    border-radius: 100px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.article-hero h1 {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    color: var(--text-muted);
    font-size: 14px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 40px;
    flex-wrap: wrap;
}

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

.article-meta .meta-dot {
    width: 3px;
    height: 3px;
    background: var(--text-muted);
    border-radius: 50%;
}

/* ═══════════════════════════════════════
   Table of Contents (sticky sidebar)
   ═══════════════════════════════════════ */
.toc-sidebar {
    position: sticky;
    top: 90px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    padding-top: 40px;
}

.toc-sidebar::-webkit-scrollbar {
    width: 3px;
}

.toc-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.toc-sidebar::-webkit-scrollbar-thumb {
    background: var(--border-strong);
    border-radius: 3px;
}

.toc-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.toc-list {
    list-style: none;
}

.toc-list li {
    margin-bottom: 2px;
}

.toc-list a {
    display: block;
    padding: 6px 12px;
    font-size: 13px;
    color: var(--text-muted);
    border-left: 2px solid transparent;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    transition: all var(--transition);
    line-height: 1.4;
}

.toc-list a:hover {
    color: var(--text-secondary);
    background: rgba(99, 102, 241, 0.05);
}

.toc-list a.active {
    color: var(--accent-hover);
    border-left-color: var(--accent);
    background: var(--accent-subtle);
}

.toc-list .toc-h3 {
    padding-left: 24px;
    font-size: 12px;
}

/* ═══════════════════════════════════════
   Article Body — Typography
   ═══════════════════════════════════════ */
.article-body {
    max-width: var(--article-width);
}

.article-body h2 {
    font-size: 28px;
    font-weight: 800;
    margin-top: 56px;
    margin-bottom: 20px;
    line-height: 1.3;
    scroll-margin-top: 80px;
}

.article-body h3 {
    font-size: 22px;
    font-weight: 700;
    margin-top: 40px;
    margin-bottom: 16px;
    line-height: 1.3;
    scroll-margin-top: 80px;
}

.article-body h4 {
    font-size: 18px;
    font-weight: 700;
    margin-top: 32px;
    margin-bottom: 12px;
}

.article-body p {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

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

.article-body ul,
.article-body ol {
    margin-bottom: 20px;
    padding-left: 24px;
}

.article-body li {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.article-body li strong {
    color: var(--text-primary);
}

/* Links in article */
.article-body a {
    color: var(--accent-hover);
    text-decoration: underline;
    text-decoration-color: rgba(129, 140, 248, 0.3);
    text-underline-offset: 3px;
    transition: all var(--transition);
}

.article-body a:hover {
    color: var(--text-primary);
    text-decoration-color: var(--text-primary);
}

/* ───────────── Blockquote ───────────── */
.article-body blockquote {
    margin: 32px 0;
    padding: 20px 24px;
    border-left: 3px solid var(--accent);
    background: var(--accent-subtle);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.article-body blockquote p {
    color: var(--text-primary);
    font-size: 16px;
    margin-bottom: 0;
}

/* ───────────── Code ───────────── */
.article-body code {
    font-family: 'SF Mono', 'Cascadia Code', 'Consolas', monospace;
    font-size: 0.9em;
    padding: 2px 8px;
    background: var(--bg-code);
    border: 1px solid var(--border);
    border-radius: 5px;
    color: var(--accent-hover);
}

.article-body pre {
    margin: 24px 0;
    padding: 20px 24px;
    background: var(--bg-code);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow-x: auto;
    position: relative;
}

.article-body pre code {
    padding: 0;
    background: none;
    border: none;
    border-radius: 0;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
}

.code-copy-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 12px;
    font-size: 12px;
    font-family: inherit;
    font-weight: 500;
    color: var(--text-muted);
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    transition: all var(--transition);
}

.code-copy-btn:hover {
    color: var(--text-primary);
    border-color: var(--text-muted);
}

.code-copy-btn.copied {
    color: var(--success);
    border-color: var(--success);
}

/* ───────────── Images with captions ───────────── */
.article-body figure {
    margin: 32px 0;
}

.article-body figure img {
    border-radius: var(--radius);
    border: 1px solid var(--border);
    width: 100%;
}

.article-body figcaption {
    margin-top: 10px;
    font-size: 14px;
    color: var(--text-muted);
    text-align: center;
    font-style: italic;
}

/* ───────────── Highlight boxes (tip, warning, info) ───────────── */
.callout {
    margin: 28px 0;
    padding: 20px 24px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.callout-icon {
    font-size: 20px;
    line-height: 1.4;
    flex-shrink: 0;
    color: var(--accent);
}

.callout-icon svg {
    width: 20px;
    height: 20px;
    display: block;
}

.callout-content {
    flex: 1;
}

.callout-content p {
    font-size: 15px;
    margin-bottom: 0;
    line-height: 1.6;
}

.callout-content p + p {
    margin-top: 8px;
}

.callout-tip {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.2);
}

.callout-tip .callout-content p {
    color: #6EE7B7;
}

.callout-warning {
    background: rgba(245, 158, 11, 0.08);
    border-color: rgba(245, 158, 11, 0.2);
}

.callout-warning .callout-content p {
    color: #FCD34D;
}

.callout-info {
    background: rgba(59, 130, 246, 0.08);
    border-color: rgba(59, 130, 246, 0.2);
}

.callout-info .callout-content p {
    color: #93C5FD;
}

.callout-danger {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.2);
}

.callout-danger .callout-content p {
    color: #FCA5A5;
}

/* ═══════════════════════════════════════
   Comparison Table
   ═══════════════════════════════════════ */
.comparison-table-wrapper {
    margin: 32px 0;
    overflow-x: auto;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.comparison-table thead {
    background: var(--bg-secondary);
}

.comparison-table th {
    padding: 16px;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.comparison-table th:first-child {
    text-align: left;
    padding-left: 24px;
}

.comparison-table th.highlight {
    background: var(--accent-subtle);
    color: var(--accent-hover);
}

.comparison-table td {
    padding: 14px 16px;
    font-size: 14px;
    text-align: center;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
}

.comparison-table td:first-child {
    text-align: left;
    padding-left: 24px;
    color: var(--text-primary);
    font-weight: 500;
}

.comparison-table td.highlight {
    background: rgba(99, 102, 241, 0.04);
}

.comparison-table tbody tr {
    transition: background var(--transition);
}

.comparison-table tbody tr:hover {
    background: rgba(99, 102, 241, 0.05);
}

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

.comparison-table .check {
    color: var(--success);
    font-weight: 700;
    font-size: 16px;
}

.comparison-table .cross {
    color: var(--text-muted);
    font-size: 16px;
}

.comparison-table .partial {
    color: var(--warning);
    font-size: 13px;
}

.comparison-table .category-row td {
    background: rgba(0, 0, 0, 0.15);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted) !important;
    padding: 10px 16px;
}

.comparison-table .category-row td:first-child {
    padding-left: 24px;
}

/* ═══════════════════════════════════════
   Author Card
   ═══════════════════════════════════════ */
.author-card {
    margin-top: 60px;
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    display: flex;
    gap: 20px;
    align-items: center;
}

.author-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--accent-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
    color: var(--accent-hover);
    font-weight: 700;
}

.author-info h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}

.author-info p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 0;
}

/* ═══════════════════════════════════════
   Share Bar
   ═══════════════════════════════════════ */
.share-bar {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 12px;
}

.share-bar span {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
    font-family: inherit;
    text-decoration: none;
}

.share-btn:hover {
    color: var(--text-primary);
    background: var(--bg-card-hover);
    border-color: var(--text-muted);
}

.share-btn.copied {
    color: var(--success);
    border-color: var(--success);
}

.share-tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-card);
    color: var(--success);
    font-size: 12px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--success);
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s;
}

.share-tooltip.visible {
    opacity: 1;
}

/* ═══════════════════════════════════════
   Related Articles
   ═══════════════════════════════════════ */
.related-articles {
    padding: 80px 0;
    border-top: 1px solid var(--border);
}

.related-articles h2 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 40px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.related-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
}

.related-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.related-card-thumb {
    width: 100%;
    height: 180px;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    border-bottom: 1px solid var(--border);
}

.related-card-body {
    padding: 20px;
}

.related-card-category {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: var(--accent-hover);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.related-card-body h3 {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.related-card-body p {
    font-size: 14px;
    color: var(--text-muted);
}

/* ═══════════════════════════════════════
   CTA Section
   ═══════════════════════════════════════ */
.cta-section {
    padding: 80px 0;
    text-align: center;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
}

.cta-section h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 16px;
}

.cta-section p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ═══════════════════════════════════════
   Footer
   ═══════════════════════════════════════ */
.footer {
    padding: 60px 0 40px;
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 48px;
}

.footer-brand {
    max-width: 300px;
}

.footer-brand .logo {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-brand .logo .logo-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.7;
}

.footer-col h4 {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-col li {
    margin-bottom: 12px;
}

.footer-col a {
    color: var(--text-muted);
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-col a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 13px;
}

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a {
    color: var(--text-muted);
    font-size: 13px;
}

.footer-legal a:hover {
    color: var(--text-secondary);
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 13px;
}

.footer-links a:hover {
    color: var(--text-secondary);
}

/* ═══════════════════════════════════════
   Blog Index — Grid
   ═══════════════════════════════════════ */
.blog-hero {
    padding: 80px 0 40px;
    text-align: center;
}

.blog-hero h1 {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 800;
    margin-bottom: 16px;
}

.blog-hero p {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto;
}

/* Category filters */
.blog-filters {
    display: flex;
    gap: 8px;
    justify-content: center;
    padding: 0 0 48px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 100px;
    cursor: pointer;
    transition: all var(--transition);
    font-family: inherit;
}

.filter-btn:hover {
    color: var(--text-primary);
    border-color: var(--text-muted);
}

.filter-btn.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

/* Article cards grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding-bottom: 80px;
}

.article-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.article-card-thumb {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-card-hover));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 56px;
    border-bottom: 1px solid var(--border);
    position: relative;
}

.article-card-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 600;
    color: var(--accent-hover);
    background: rgba(99, 102, 241, 0.15);
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    backdrop-filter: blur(8px);
}

.article-card-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-card-body h3 {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.article-card-body p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
    flex: 1;
}

.article-card-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: var(--text-muted);
}

.article-card-meta .meta-dot {
    width: 3px;
    height: 3px;
    background: var(--text-muted);
    border-radius: 50%;
}

/* ═══════════════════════════════════════
   Responsive
   ═══════════════════════════════════════ */
@media (max-width: 1024px) {
    .article-layout {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .toc-sidebar {
        display: none;
    }

    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

    .related-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .article-hero h1 {
        font-size: 28px;
    }

    .article-body h2 {
        font-size: 24px;
    }

    .article-body h3 {
        font-size: 20px;
    }

    .article-meta {
        gap: 12px;
    }

    .article-meta .meta-dot {
        display: none;
    }

    .author-card {
        flex-direction: column;
        text-align: center;
    }

    .share-bar {
        flex-wrap: wrap;
    }

    .header-nav .hide-mobile {
        display: none;
    }

    .footer .container {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .cta-section h2 {
        font-size: 24px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .article-body p,
    .article-body li {
        font-size: 16px;
    }
}
