:root {
    --bg-dark: #0b0f19;
    --bg-card: #161e2e;
    --bg-card-hover: #1f293d;
    --border-color: rgba(255, 255, 255, 0.12);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent-blue: #38bdf8;
    --accent-purple: #8b5cf6;
    --accent-green: #10b981;
    --font-heading: 'Bricolage Grotesque', 'Inter', sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    min-height: 100vh;
}

a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #7dd3fc;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navbar */
header.blog-header {
    background: rgba(11, 15, 25, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.4rem;
    color: #ffffff;
}

.brand-logo span.highlight {
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.95rem;
}

.nav-links a:hover, .nav-links a.active {
    color: #ffffff;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.lang-selector select {
    background: #1e293b;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

/* Hero Section */
.blog-hero {
    padding: 4rem 0 2.5rem 0;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    background: radial-gradient(circle at top, rgba(139, 92, 246, 0.12), transparent 70%);
}

.blog-hero h1 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
    color: #ffffff;
}

.blog-hero p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 680px;
    margin: 0 auto 2rem auto;
}

/* Navigation Search Form */
.nav-search-form {
    display: flex;
    align-items: center;
    background: #1e293b;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    height: 36px;
}

.nav-search-form input {
    background: transparent;
    border: none;
    padding: 0 12px;
    color: #ffffff;
    font-size: 0.88rem;
    width: 200px;
}

.nav-search-form input:focus {
    outline: none;
}

.nav-search-form button {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 0 10px;
    cursor: pointer;
    font-size: 0.85rem;
}

.nav-search-form button:hover {
    color: var(--accent-purple);
}

/* Horizontal Panel Article List */
.article-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 2rem 0;
}

.article-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 240px 1fr;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.article-panel:hover {
    transform: translateY(-2px);
    border-color: rgba(139, 92, 246, 0.45);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.article-panel-img {
    width: 100%;
    height: 100%;

    object-fit: cover;
    background: #1e293b;
    border-right: 1px solid var(--border-color);
}

.article-panel-body {
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.article-panel h2, .article-panel h3 {
    font-size: 1.15rem;
    font-weight: 800;
    color: #ffffff;
    margin: 4px 0 6px 0;
    line-height: 1.35;
}

.article-panel p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.5;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-panel-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-secondary);
    border-top: 1px solid var(--border-color);
    padding-top: 14px;
    margin-top: 12px;
}

.btn-read-article {
    background: rgba(139, 92, 246, 0.2);
    color: #a78bfa;
    border: 1px solid rgba(139, 92, 246, 0.4);
    padding: 8px 18px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.88rem;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-read-article:hover {
    background: var(--accent-purple);
    color: #ffffff;
}

/* Pagination Controls */
.pagination-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 3.5rem 0 2rem 0;
}

.btn-pagination {
    background: #1e293b;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    padding: 10px 18px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-pagination:hover, .btn-pagination.active {
    background: var(--accent-purple);
    color: #ffffff;
    border-color: var(--accent-purple);
}

@media (max-width: 768px) {
    .article-panel {
        grid-template-columns: 1fr;
    }
    .article-panel-img {
        height: 200px;
        min-height: 200px;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
}
    flex-direction: column;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.article-card:hover {
    transform: translateY(-4px);
    border-color: rgba(139, 92, 246, 0.4);
}

.article-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: #1e293b;
}

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

.article-badge {
    align-self: flex-start;
    background: rgba(139, 92, 246, 0.15);
    color: #a78bfa;
    border: 1px solid rgba(139, 92, 246, 0.3);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.article-card h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 10px;
    line-height: 1.4;
}

.article-card p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    margin-bottom: 18px;
    flex: 1;
}

.article-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.82rem;
    color: var(--text-secondary);
    border-top: 1px solid var(--border-color);
    padding-top: 14px;
    margin-top: auto;
}

/* Article Detail Page */
.article-detail-container {
    max-width: 980px;
    margin: 3rem auto;
    padding: 0 20px;
}

.article-header-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin: 12px 0 24px 0;
}

.article-content {
    color: #e2e8f0;
    font-size: 1.05rem;
    line-height: 1.8;
}

.article-content h2 {
    font-size: 1.7rem;
    font-weight: 800;
    color: #ffffff;
    margin: 2.2rem 0 1rem 0;
}

.article-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #38bdf8;
    margin: 1.8rem 0 0.8rem 0;
}

.article-content ul, .article-content ol {
    margin: 1rem 0 1.5rem 1.5rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

.article-img-block {
    margin: 2.5rem auto;
    width: 100%;
    max-width: 100%;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
    background: #0f172a;
    text-align: center;
}

.article-img-block img {
    width: 100%;
    max-height: 480px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    background: #0f172a;
    padding: 10px;
}

.img-caption {
    background: #1e293b;
    padding: 8px 14px;
    font-size: 0.82rem;
    color: var(--text-secondary);
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.article-side-block {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    margin: 1.5rem 0;
}

.article-side-block .side-text {
    flex: 1;
    min-width: 260px;
}

.article-side-block .side-img {
    width: 220px;
    flex-shrink: 0;
    background: #0f172a;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    padding: 8px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

.article-side-block .side-img img {
    width: 100%;
    max-height: 280px;
    object-fit: contain;
    border-radius: 6px;
    display: block;
}

.article-side-block .side-img .img-caption {
    background: transparent;
    border-top: none;
    padding: 6px 0 0;
    font-size: 0.78rem;
    color: var(--text-secondary);
}

@media (max-width: 640px) {
    .article-side-block {
        flex-direction: column;
    }
    .article-side-block .side-img {
        width: 100%;
        max-width: 240px;
        margin: 0 auto;
    }
}

.cta-box {
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(139, 92, 246, 0.35);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    margin: 2.5rem 0;
}

.cta-box h4 {
    font-size: 1.3rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.6rem;
}

.cta-box p {
    color: #cbd5e1;
    margin-bottom: 1.2rem;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
}

.btn-primary {
    background: var(--accent-purple);
    color: #ffffff;
    border: none;
}

.btn-primary:hover {
    background: #7c3aed;
    color: #ffffff;
}

/* Comments Section */
.comments-section {
    margin-top: 4rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--border-color);
}

.comments-section h3 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.comment-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 16px;
}

.comment-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.comment-author {
    font-weight: 700;
    color: #ffffff;
}

.comment-date {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.comment-body {
    color: #cbd5e1;
    font-size: 0.95rem;
}

.btn-delete-comment {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 8px;
}

.btn-delete-comment:hover {
    background: rgba(239, 68, 68, 0.3);
}

.comment-form-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    margin-top: 2rem;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.88rem;
    color: #cbd5e1;
    margin-bottom: 6px;
}

.form-group input, .form-group textarea {
    width: 100%;
    background: #1e293b;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 12px 16px;
    color: #ffffff;
    font-size: 0.95rem;
    font-family: inherit;
}

/* Footer */
footer.blog-footer {
    background: #090d16;
    border-top: 1px solid var(--border-color);
    padding: 2.5rem 0;
    margin-top: 5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}


/* Evidence-led editorial UI */
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .76rem; font-weight: 800; color: var(--accent-blue); margin: 0 0 .5rem; }
.article-topline { display:flex; align-items:center; justify-content:space-between; gap:1rem; margin-bottom:.55rem; }
.author { font-size:.82rem; color:var(--text-secondary); }
.article-detail-container h1 { line-height:1.14; margin:.65rem 0 1rem; }
.back-link { display:inline-flex; gap:.5rem; align-items:center; color:var(--accent-blue); font-weight:700; margin-bottom:1.5rem; }
.article-methodology,.editorial-note { border:1px solid var(--border-color); background:rgba(59,130,246,.07); border-radius:14px; padding:1.15rem 1.3rem; margin:1.25rem 0 2rem; }
.article-methodology h2,.editorial-note h2 { margin-top:0; }
.article-content table { width:100%; border-collapse:collapse; margin:1.2rem 0 1.8rem; }
.article-content th,.article-content td { border:1px solid var(--border-color); padding:.75rem; text-align:left; vertical-align:top; }
.article-content th { background:rgba(255,255,255,.05); }
.evidence-gallery { display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); gap:1rem; margin:1rem 0 1.5rem; }
.evidence-figure { margin:1.2rem 0 1.8rem; }
.evidence-figure img { display:block; width:100%; max-height:520px; object-fit:contain; border-radius:12px; border:1px solid var(--border-color); background:#0b1020; }
.evidence-figure figcaption { color:var(--text-secondary); font-size:.86rem; margin-top:.5rem; }
.notice { padding:.85rem 1rem; border-radius:10px; margin-bottom:1rem; }
.notice.success { background:rgba(16,185,129,.12); border:1px solid rgba(16,185,129,.35); color:#6ee7b7; }
.notice.error { background:rgba(239,68,68,.12); border:1px solid rgba(239,68,68,.35); color:#fca5a5; }
.empty-comments,.empty-state { color:var(--text-secondary); }
.empty-state { text-align:center; padding:4rem 1rem; }
.empty-state i { font-size:3rem; margin-bottom:1rem; }
.search-result-heading { color:var(--text-secondary); margin:0 0 1rem; }
@media (max-width:700px) {
  .article-topline { align-items:flex-start; flex-direction:column; gap:.35rem; }
  .article-content table { display:block; overflow-x:auto; }
}

.editorial-disclosure {
    margin: 1rem 0 1.5rem;
    padding: .8rem 1rem;
    border: 1px solid rgba(148,163,184,.22);
    border-radius: 10px;
    color: var(--text-secondary);
    background: rgba(148,163,184,.045);
    font-size: .84rem;
}

.evidence-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin: 1.25rem 0 1.75rem;
}
.evidence-figure {
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: #0b1020;
    box-shadow: 0 10px 28px rgba(0,0,0,.25);
}
.evidence-figure img {
    display: block;
    width: 100%;
    height: 260px;
    max-height: none;
    object-fit: contain;
    background: #080d19;
    padding: 8px;
}
.evidence-caption {
    padding: .65rem .8rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: .78rem;
    line-height: 1.45;
}
.evidence-caption a { white-space: nowrap; }

@media (max-width:700px) {
    .evidence-gallery { grid-template-columns: 1fr; }
    .evidence-figure img { height: 220px; }
}

.image-fallback {
    min-height: 260px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    text-align: center;
    color: #cbd5e1;
    background:
        linear-gradient(135deg, rgba(56,189,248,.07), rgba(139,92,246,.07)),
        #080d19;
}
.image-fallback strong { color: #f8fafc; }
.image-fallback span { max-width: 28rem; font-size: .82rem; color: #94a3b8; }
