/* ===== BLOGPOST PAGE STYLES ===== */
/* Hide sidebar scrollbars */
.sidebar::-webkit-scrollbar{display:none}
.sidebar{scrollbar-width:none;-ms-overflow-style:none}
    /* ══ BLOGPOST ══ */
    .blogpost-wrap{max-width:780px;margin:0 auto;padding:32px 24px 40px}
    .blogpost-wrap .blog-body a{color:var(--red) !important;text-decoration:underline !important;text-decoration-color:rgba(239,68,68,.4);text-underline-offset:3px;transition:text-decoration-color .15s,color .15s}
    .blogpost-wrap .blog-body a:hover{color:var(--red-d) !important;text-decoration-color:var(--red-d)}

    /* Breadcrumb */
    .blog-breadcrumb{display:flex;align-items:center;gap:6px;font-size:11.5px;color:var(--text-dim);margin-bottom:20px;flex-wrap:wrap}
    .blog-breadcrumb a{color:var(--text-dim);text-decoration:none;transition:color .15s}
    .blog-breadcrumb a:hover{color:var(--red)}
    .blog-breadcrumb-sep{opacity:.5}
    .blog-breadcrumb-cur{color:var(--text)}

    /* Header */
    .blog-header{margin-bottom:24px}
    .blog-category{display:inline-block;font-size:10px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--red);margin-bottom:10px}
    .blog-title{font-size:28px;font-weight:700;color:var(--text);letter-spacing:-.02em;line-height:1.3;margin-bottom:14px}
    .blog-meta{display:flex;align-items:center;gap:14px;font-size:12px;color:var(--text-dim);flex-wrap:wrap}
    .blog-meta-item{display:flex;align-items:center;gap:5px}
    .blog-meta svg{flex-shrink:0;opacity:.6}
    .blog-meta-sep{width:3px;height:3px;border-radius:50%;background:var(--border)}

    /* Cover image */
    .blog-cover{width:100%;border-radius:8px;overflow:hidden;margin-bottom:28px;aspect-ratio:16/9}
    .blog-cover img{width:100%;height:100%;object-fit:cover;display:block}

    /* Body */
    .blog-body{font-size:15px;line-height:1.8;color:var(--text)}
    .blog-body p{margin-bottom:18px}
    .blog-body h2{font-size:20px;font-weight:700;color:var(--text);margin:32px 0 14px;letter-spacing:-.01em}
    .blog-body h3{font-size:16px;font-weight:700;color:var(--text);margin:24px 0 10px}
    .blog-body a{color:var(--red);text-decoration:none}
    .blog-body a:hover{text-decoration:underline}
    .blog-body blockquote{border-left:3px solid var(--red);padding:12px 20px;margin:24px 0;background:var(--bg2);border-radius:0 6px 6px 0;font-size:15px;font-style:italic;color:var(--text-dim)}
    .blog-body ul,.blog-body ol{margin:0 0 18px 24px}
    .blog-body li{margin-bottom:6px}
    .blog-body img{width:100%;border-radius:6px;margin:20px 0}
    .blog-body strong{color:var(--text);font-weight:700}

    /* Tags */
    .blog-tags{display:flex;flex-wrap:wrap;gap:6px;margin:28px 0 0;padding-top:20px;border-top:1px solid var(--border)}
    .blog-tag{font-size:12px;padding:4px 10px;background:var(--bg2);border:1px solid var(--border);border-radius:4px;color:var(--text-dim);text-decoration:none;transition:all .12s}
    .blog-tag:hover{border-color:var(--red);color:var(--red);background:transparent}

    /* Share */
    .blog-share{display:flex;align-items:center;gap:8px;margin:20px 0;padding:16px 0;border-top:1px solid var(--border);border-bottom:1px solid var(--border)}
    .blog-share-label{font-size:12px;font-weight:600;color:var(--text-dim);letter-spacing:.06em;text-transform:uppercase;margin-right:4px}
    .blog-share-btn{display:flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:6px;background:var(--bg2);border:1px solid var(--border);color:var(--text-dim);text-decoration:none;transition:all .12s}
    .blog-share-btn:hover{background:var(--red);border-color:var(--red);color:#fff}

    /* Related Articles */
    .related-section{border-top:1px solid var(--border);padding:28px 0 0}
    .related-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px;padding:0 24px}
    .related-title{font-size:13px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--text-dim)}
    .related-all{font-size:12px;color:var(--red);text-decoration:none;font-weight:600}
    .related-all:hover{text-decoration:underline}

    /* Related grid — CSS columns like index */
    .related-grid{display:block;overflow-anchor:none}
    @media(min-width:1100px){.related-grid{column-count:4;column-gap:3px}}
    @media(min-width:700px) and (max-width:1099px){.related-grid{column-count:3;column-gap:3px}}
    @media(max-width:699px){.related-grid{column-count:2;column-gap:2px}}
    .related-card{break-inside:avoid;display:block;position:relative;overflow:hidden;margin-bottom:3px;text-decoration:none}
    .related-card img{display:block;width:100%;height:auto;transition:transform .35s ease}
    .related-card:hover img{transform:scale(1.05)}
    .related-card-info{position:absolute;bottom:0;left:0;right:0;background:linear-gradient(to top,rgba(0,0,0,.9) 0%,transparent 75%);opacity:0;transition:opacity .2s;padding:24px 10px 10px;pointer-events:none}
    .related-card:hover .related-card-info{opacity:1}
    .related-card-cat{font-size:10px;font-weight:700;color:#fff;background:var(--red);display:inline-block;padding:1px 6px;border-radius:3px;margin-bottom:4px;letter-spacing:.04em}
    .related-card-title{font-size:12px;color:#fff;line-height:1.35}
    .related-card-date{font-size:10px;color:#bbb;margin-top:3px}

    /* Light theme */
    html:not(.dark-mode) .blog-title{color:#111}
    html:not(.dark-mode) .blog-body{color:#333}
    html:not(.dark-mode) .blog-body h2,html:not(.dark-mode) .blog-body h3{color:#111}
    html:not(.dark-mode) .blog-body blockquote{background:#f5f5f5;color:#666}
    html:not(.dark-mode) .blog-breadcrumb-cur{color:#111}
    html:not(.dark-mode) .blog-cover{box-shadow:0 4px 20px rgba(0,0,0,.1)}

    @media(max-width:900px){.blogpost-wrap{padding:20px 16px 32px}}


/* Hide sidebar scrollbars */
.sidebar::-webkit-scrollbar{display:none}
.sidebar{scrollbar-width:none;-ms-overflow-style:none}

  /* === PERFORMANCE & A11Y ADDITIONS === */
  /* Prevent layout shift on fonts */
  @font-face { font-display: swap; }
  /* Focus visible for keyboard nav */
  :focus-visible { outline: 2px solid #EF4444; outline-offset: 2px; }
  /* Reduce motion for users who prefer it */
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  }