/* ============================================
   DNCLOUD Blog — Standalone Frontend Styles
   Design tokens from DNCLOUD design system
   ============================================ */

/* ── Variables ── */
:root {
  --primary: #0F62FE; --primary-hover: #0050D4; --primary-soft: #EBF1FF; --primary-rgb: 15,98,254;
  --navy: #080E1A; --navy-light: #0F1729; --navy-mid: #151F35;
  --bg-light: #F7F9FC; --bg-white: #FFFFFF; --bg-subtle: #F1F4F9;
  --accent-cyan: #06B6D4; --accent-cyan-soft: #E8FAFE;
  --accent-green: #10B981; --accent-green-soft: #E6FAF2;
  --accent-orange: #F59E0B; --accent-orange-soft: #FFF8E6;
  --accent-red: #EF4444; --accent-red-soft: #FEF2F2;
  --accent-purple: #8B5CF6; --accent-purple-soft: #F3EEFF;
  --heading: #0B1120; --body: #2E3A4F; --muted: #5C6B82;
  --border: #DDE3ED; --border-light: #EDF1F7;
  --font: 'Be Vietnam Pro', -apple-system, system-ui, sans-serif;
  --text-xs: .75rem; --text-sm: .8125rem; --text-base: .9375rem; --text-lg: 1.125rem;
  --text-xl: 1.25rem; --text-2xl: 1.5rem; --text-3xl: 1.875rem; --text-4xl: 2.25rem;
  --text-5xl: 3rem; --text-6xl: 3.5rem;
  --space-1: .25rem; --space-2: .5rem; --space-3: .75rem; --space-4: 1rem;
  --space-5: 1.25rem; --space-6: 1.5rem; --space-8: 2rem; --space-10: 2.5rem;
  --space-12: 3rem; --space-16: 4rem; --space-20: 5rem;
  --radius: 10px; --radius-sm: 6px; --radius-lg: 14px; --radius-xl: 16px;
  --shadow-card: 0 1px 3px rgba(11,17,32,.04), 0 6px 16px rgba(11,17,32,.06);
  --shadow-card-hover: 0 8px 32px rgba(11,17,32,.12), 0 2px 8px rgba(11,17,32,.06);
  --container-max: 1280px; --container-padding: var(--space-6);
  --gradient-hero: linear-gradient(155deg, #060B15 0%, #0B1628 30%, #0F1E3A 60%, #142850 100%);
  --gradient-footer: linear-gradient(180deg, #0A1120 0%, #060B15 100%);
}

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

body {
  font-family: var(--font); font-size: var(--text-base); color: var(--body);
  line-height: 1.6; background: var(--bg-white); -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; transition: color .2s; }
main a { color: var(--primary); }
main a:hover { color: var(--primary-hover); }
img { max-width: 100%; display: block; }

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

/* ── Header (minimal standalone) ── */
.blog-header {
  background: var(--navy); padding: 16px 0; position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.blog-header .container { display: flex; align-items: center; justify-content: space-between; }
.blog-header__logo { display: flex; align-items: center; gap: 10px; color: white; font-size: 18px; }
.blog-header__logo-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--accent-cyan));
  display: flex; align-items: center; justify-content: center; color: white; font-size: 18px;
}
.blog-header__logo strong { color: var(--primary); }
.blog-header__nav { display: flex; gap: 24px; }
.blog-header__nav a { color: rgba(255,255,255,.7); font-size: 14px; font-weight: 500; }
.blog-header__nav a:hover { color: white; }

/* ── Hero ── */
.hero { background: var(--gradient-hero); padding: 60px 0 48px; color: white; }
.hero--compact { padding: 48px 0 36px; }
.hero__content { text-align: center; max-width: 800px; margin: 0 auto; }
.hero__label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--accent-cyan);
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px;
}
.hero__label-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-cyan); animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }
.hero__title { font-size: var(--text-5xl); font-weight: 800; line-height: 1.15; margin-bottom: 16px; }
.hero__title span { background: linear-gradient(135deg, var(--primary) 0%, var(--accent-cyan) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero__subtitle { font-size: var(--text-lg); color: rgba(255,255,255,.6); line-height: 1.7; max-width: 640px; margin: 0 auto; }

/* ── Breadcrumb ── */
.breadcrumb { display: flex; align-items: center; gap: 8px; justify-content: center; margin-bottom: 16px; font-size: 13px; }
.breadcrumb a { color: rgba(255,255,255,.5); }
.breadcrumb a:hover { color: white; }
.breadcrumb__separator { color: rgba(255,255,255,.25); font-size: 16px; display: flex; align-items: center; }
.breadcrumb__current { color: rgba(255,255,255,.8); }

/* ── Sections ── */
.section { padding: 64px 0; }
.section--light { background: var(--bg-light); }
.section--accent { background: var(--bg-subtle); }
.section-header { text-align: center; margin-bottom: 40px; }
.section-label {
  display: inline-block; font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.5px; color: var(--primary); margin-bottom: 12px;
  padding: 4px 16px; background: var(--primary-soft); border-radius: 20px;
}
.section-header h2 { font-size: var(--text-3xl); font-weight: 800; color: var(--heading); }

/* ── Grid ── */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

/* ── Cards ── */
.card {
  background: var(--bg-white); border: 1px solid var(--border-light);
  border-radius: var(--radius-xl); overflow: hidden;
  box-shadow: var(--shadow-card); transition: all .3s ease;
}
.card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-4px); }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 20px; border-radius: var(--radius-sm); font-family: var(--font);
  font-size: 13.5px; font-weight: 600; cursor: pointer; border: none; transition: .2s ease;
}
.btn--primary { background: var(--primary); color: white; }
.btn--primary:hover { background: var(--primary-hover); color: white; box-shadow: 0 4px 12px rgba(15,98,254,.3); }
.btn--secondary { background: var(--bg-white); color: var(--body); border: 1px solid var(--border); }
.btn--secondary:hover { border-color: var(--primary); color: var(--primary); }
.btn--sm { padding: 7px 14px; font-size: 12.5px; }

/* ── Helpers ── */
.text-sm { font-size: var(--text-sm); }
.text-muted { color: var(--muted); }

/* ── Footer (minimal) ── */
.blog-footer {
  background: var(--gradient-footer); color: rgba(255,255,255,.4);
  padding: 32px 0; font-size: 13px; text-align: center;
}
.blog-footer a { color: rgba(255,255,255,.6); }

/* ── Animations ── */
.fade-in { animation: fadeInUp .6s ease both; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.stagger-children > *:nth-child(1) { animation-delay: 0s; }
.stagger-children > *:nth-child(2) { animation-delay: .1s; }
.stagger-children > *:nth-child(3) { animation-delay: .2s; }
.stagger-children > *:nth-child(4) { animation-delay: .3s; }
.stagger-children > *:nth-child(5) { animation-delay: .4s; }
.stagger-children > *:nth-child(6) { animation-delay: .5s; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .hero__title { font-size: var(--text-3xl); }
  .hero__subtitle { font-size: var(--text-base); }
  .grid--2, .grid--3 { grid-template-columns: 1fr; }
  .section { padding: 40px 0; }
  .blog-header__nav { display: none; }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}

/* ── Comments ── */
.comments-list{display:flex;flex-direction:column;gap:20px}
.comment{display:flex;gap:14px}
.comment__avatar{width:42px;height:42px;border-radius:50%;flex-shrink:0;background:linear-gradient(135deg,#0F62FE,#06B6D4);color:white;font-weight:700;font-size:16px;display:flex;align-items:center;justify-content:center}
.comment__avatar--sm{width:34px;height:34px;font-size:13px}
.comment__body{flex:1;min-width:0}
.comment__header{display:flex;align-items:center;gap:10px;margin-bottom:6px}
.comment__name{color:#0B1120;font-size:14px}
.comment__date{color:#5C6B82;font-size:12px}
.comment__text{color:#2E3A4F;line-height:1.7;font-size:14px}
.comment__reply-btn{background:none;border:none;color:#0F62FE;font-size:13px;font-weight:600;cursor:pointer;padding:4px 0;margin-top:6px;display:flex;align-items:center;gap:4px;font-family:inherit}
.comment__reply-btn:hover{text-decoration:underline}
.comment__replies{margin-top:16px;padding-left:20px;border-left:2px solid #EDF1F7;display:flex;flex-direction:column;gap:16px}
.comment-input{padding:11px 14px;border:1px solid #DDE3ED;border-radius:8px;font-family:'Be Vietnam Pro',sans-serif;font-size:14px;color:#0B1120;transition:border-color .2s;box-sizing:border-box}
.comment-input:focus{outline:none;border-color:#0F62FE;box-shadow:0 0 0 3px rgba(15,98,254,.1)}
.comment-form-box{padding:24px;background:#F4F6FA;border-radius:12px;border:1px solid #EDF1F7}
@media(max-width:640px){.comment-form-box div[style*="grid-template-columns"]{grid-template-columns:1fr!important}}

/* ── Blog Layout 2 cột ── */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start;
}

/* ── Sidebar ── */
.sidebar {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.sidebar-box {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.sidebar-box__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sidebar-box__title i {
  color: var(--primary);
  font-size: 16px;
}

/* Category list (sidebar) */
.cat-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.cat-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--body);
  font-size: 13px;
  font-weight: 500;
  transition: all .2s;
}
.cat-list a:hover {
  background: var(--primary-soft);
  color: var(--primary);
}
.cat-count {
  background: var(--bg-subtle);
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}

/* Tag cloud */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tag-cloud a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  background: var(--bg-subtle);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  color: var(--body);
  transition: all .2s;
  border: 1px solid transparent;
}
.tag-cloud a:hover {
  background: var(--primary-soft);
  color: var(--primary);
  border-color: rgba(15,98,254,.15);
}

/* Popular posts (sidebar) */
.popular-post {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
  text-decoration: none;
  color: inherit;
  transition: opacity .2s;
}
.popular-post:last-child { border-bottom: none; }
.popular-post:hover { opacity: .75; }
.popular-post__img {
  width: 72px;
  height: 52px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}
.popular-post__title {
  font-size: 13px;
  font-weight: 600;
  color: var(--heading);
  line-height: 1.4;
  margin-bottom: 4px;
}
.popular-post__date {
  font-size: 11px;
  color: var(--muted);
}
.popular-post__rank {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--bg-subtle);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.popular-post:first-child .popular-post__rank {
  background: var(--primary);
  color: white;
}
.popular-post:nth-child(2) .popular-post__rank {
  background: var(--accent-cyan);
  color: white;
}
.popular-post:nth-child(3) .popular-post__rank {
  background: var(--accent-green);
  color: white;
}

/* Tag count in cloud */
.tag-count {
  font-size: 10px;
  opacity: .6;
}

/* Popular Searches */
.bl-search-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.bl-search-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--body);
  text-decoration: none;
  transition: all .2s;
}
.bl-search-tag:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* Sidebar CTA Box */
.sidebar-box--cta {
  background: linear-gradient(135deg, #0F62FE, #06B6D4);
  border: none;
  color: white;
  text-align: center;
}

/* ── Post Grid Cards ── */
.post-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all .3s ease;
}
.post-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
}
.post-card__img {
  height: 160px;
  width: 100%;
  object-fit: cover;
}
.post-card__body { padding: 18px; }
.post-card__meta {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}
.post-card__cat {
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}
.post-card__date {
  color: var(--muted);
  font-size: 11px;
}
.post-card__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--heading);
  line-height: 1.4;
  margin-bottom: 6px;
}
.post-card__excerpt {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}
/* ── Quick Links Section ── */
.bl-quick-section {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-light);
  padding: 28px 0;
}
.bl-quick-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 16px;
}
.bl-quick-header i {
  color: var(--primary);
  font-size: 20px;
}
.bl-quick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.bl-quick-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: all .25s ease;
}
.bl-quick-card:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(15,98,254,.08);
}
.bl-quick-card__icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.bl-quick-card__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--heading);
  line-height: 1.3;
}
.bl-quick-card__desc {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}
.bl-quick-card__arrow {
  margin-left: auto;
  color: var(--muted);
  font-size: 18px;
  transition: transform .2s;
}
.bl-quick-card:hover .bl-quick-card__arrow {
  color: var(--primary);
  transform: translateX(3px);
}

/* ── Featured Post ── */
.bl-featured {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all .3s ease;
  text-decoration: none;
  color: inherit;
}
.bl-featured:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
}
.bl-featured__img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
}
.bl-featured__body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.bl-featured__title {
  font-size: 22px;
  font-weight: 800;
  color: var(--heading);
  line-height: 1.35;
  margin-bottom: 12px;
}
.bl-featured__excerpt {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 16px;
}
.bl-featured__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-weight: 600;
  font-size: 14px;
  transition: gap .2s;
}
.bl-featured:hover .bl-featured__cta { gap: 10px; }

/* ── Stats Bar ── */
.stats-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  margin-top: 20px;
}
.stats-bar__item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.6);
  font-size: 13px;
}
.stats-bar__value {
  font-weight: 700;
  color: white;
  font-size: 18px;
}

/* ── Pagination ── */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
}

@media (max-width: 1024px) {
  .blog-layout { grid-template-columns: 1fr; }
  .sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .bl-quick-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .sidebar { grid-template-columns: 1fr; }
  .stats-bar { gap: 16px; flex-wrap: wrap; }
  .bl-quick-grid { grid-template-columns: 1fr; }
  .bl-featured { grid-template-columns: 1fr; }
  .bl-featured__img { min-height: 200px; }
  .bl-featured__body { padding: 20px; }
  .bl-featured__title { font-size: 18px; }
}

/* ══════════════════════════════════════════
   SINGLE POST PAGE
   ══════════════════════════════════════════ */

/* 3-Column Layout */
.sp-layout {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr) 300px;
  gap: 40px;
  align-items: start;
}
.sp-content-wrap {
  min-width: 0;
  overflow: hidden;
}

/* Breadcrumb Section */
.sp-breadcrumb-section {
  padding: 18px 0;
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.sp-breadcrumb-section .breadcrumb a {
  color: rgba(255,255,255,0.65);
}
.sp-breadcrumb-section .breadcrumb a:hover {
  color: #fff;
}
.sp-breadcrumb-section .breadcrumb__separator {
  color: rgba(255,255,255,0.3);
}
.sp-breadcrumb-section .breadcrumb__current {
  color: rgba(255,255,255,0.9);
}

/* Header */
.sp-meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.sp-cat-badge {
  display: inline-flex;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity .2s;
}
.sp-cat-badge:hover { opacity: .8; }
.sp-meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: var(--muted);
}
.sp-meta-item i { font-size: 14px; }
.sp-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--heading);
  line-height: 1.3;
  letter-spacing: -.02em;
}

/* TOC (left sidebar) */
.sp-toc {
  position: sticky;
  top: 90px;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  scrollbar-width: none;
}
.sp-toc::-webkit-scrollbar { display: none; }
.sp-toc__title {
  font-size: 12px;
  font-weight: 700;
  color: var(--heading);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.sp-toc__title i { color: var(--primary); font-size: 15px; }
.sp-toc__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-left: 2px solid var(--border-light);
  padding-left: 0;
}
.sp-toc__list li { padding-left: 14px; }
.sp-toc__list li.sp-toc__sub { padding-left: 26px; }
.sp-toc__list a {
  display: block;
  padding: 5px 0;
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.4;
  transition: all .2s;
  text-decoration: none;
  border-left: 2px solid transparent;
  margin-left: -16px;
  padding-left: 14px;
}
.sp-toc__list a:hover { color: var(--primary); }
.sp-toc__list a.active {
  color: var(--primary);
  font-weight: 600;
  border-left-color: var(--primary);
}

/* Featured Image */
.sp-featured-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 28px;
}
.sp-featured-img img {
  width: 100%;
  height: auto;
  display: block;
}

/* Article Content */
.sp-article {
  font-size: 16px;
  line-height: 1.85;
  color: #2E3A4F;
  overflow-wrap: break-word;
  word-break: break-word;
}
/* WP inline width override */
.sp-article figure,
.sp-article .wp-caption {
  max-width: 100% !important;
  width: auto !important;
}
.sp-article figure img,
.sp-article .wp-caption img {
  max-width: 100%;
  height: auto !important;
}
.sp-article h2 {
  font-size: 1.5rem;
  margin: 2.5rem 0 1rem;
  color: var(--heading);
  font-weight: 700;
  line-height: 1.35;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-light);
}
.sp-article h3 {
  font-size: 1.2rem;
  margin: 2rem 0 .75rem;
  color: var(--heading);
  font-weight: 600;
}
.sp-article h4 {
  font-size: 1.05rem;
  margin: 1.5rem 0 .5rem;
  color: var(--heading);
  font-weight: 600;
}
.sp-article p { margin-bottom: 1.25rem; }
.sp-article ul, .sp-article ol {
  margin: 0 0 1.25rem 1.5rem;
  line-height: 1.85;
}
.sp-article li { margin-bottom: .4rem; }
.sp-article pre {
  background: #0B1120;
  color: #e2e8f0;
  padding: 20px 24px;
  border-radius: var(--radius-lg);
  overflow-x: auto;
  margin: 1.5rem 0;
  font-size: 13.5px;
  line-height: 1.6;
}
.sp-article code {
  background: rgba(15,98,254,.08);
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 13.5px;
  color: #0F62FE;
}
.sp-article pre code {
  background: none;
  padding: 0;
  color: inherit;
}
.sp-article a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.sp-article a:hover { text-decoration: none; }

/* Table — responsive + zebra */
.sp-article table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 14px;
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.sp-article th, .sp-article td {
  padding: 12px 16px;
  border: 1px solid var(--border-light);
  text-align: left;
  white-space: nowrap;
}
.sp-article th {
  background: var(--bg-subtle);
  font-weight: 600;
  color: var(--heading);
  position: sticky;
  top: 0;
}
.sp-article tr:nth-child(even) td { background: #FAFBFD; }
.sp-article tr:hover td { background: #F0F4FF; }

/* Figure / Caption */
.sp-article figcaption {
  text-align: center;
  font-size: 13px;
  color: #8896AB;
  margin-top: 8px;
  font-style: italic;
}
.sp-article figure { margin: 1.5rem 0; }

/* Image hover zoom */
.sp-article img {
  max-width: 100%;
  border-radius: var(--radius-lg);
  margin: 1.5rem 0;
  cursor: zoom-in;
  transition: transform .2s ease;
}
.sp-article img:hover { transform: scale(1.01); }

/* Code block wrapper */
.sp-code-wrap {
  position: relative;
  margin: 1.5rem 0;
}
.sp-code-wrap pre {
  margin: 0;
}
.sp-code-lang {
  position: absolute;
  top: 0;
  left: 0;
  padding: 3px 12px;
  background: rgba(255,255,255,0.1);
  color: #94a3b8;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  border-radius: var(--radius-lg) 0 6px 0;
  letter-spacing: .5px;
}
.sp-code-copy {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(255,255,255,0.1);
  color: #94a3b8;
  border: none;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  transition: all .2s;
  display: flex;
  align-items: center;
  gap: 4px;
}
.sp-code-copy:hover { background: rgba(255,255,255,0.2); color: #fff; }
.sp-code-copy.copied { color: #22c55e; }

/* Blockquote callout variations */
.sp-article .wp-block-quote,
.sp-article blockquote {
  border-left: 4px solid var(--primary);
  padding: 16px 24px;
  background: var(--primary-soft, #EBF1FF);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.5rem 0;
  font-style: italic;
  color: #2E3A4F;
}
.sp-article .callout-info,
.sp-article .wp-block-genesis-blocks-gb-notice {
  border-left: 4px solid #3b82f6;
  padding: 16px 20px;
  background: #eff6ff;
  border-radius: 0 8px 8px 0;
  margin: 1.5rem 0;
  font-style: normal;
}
.sp-article .callout-warning {
  border-left: 4px solid #f59e0b;
  padding: 16px 20px;
  background: #fffbeb;
  border-radius: 0 8px 8px 0;
  margin: 1.5rem 0;
}
.sp-article .callout-success {
  border-left: 4px solid #22c55e;
  padding: 16px 20px;
  background: #f0fdf4;
  border-radius: 0 8px 8px 0;
  margin: 1.5rem 0;
}

/* Heading anchor link */
.sp-article h2 .heading-anchor,
.sp-article h3 .heading-anchor {
  opacity: 0;
  margin-left: 8px;
  color: var(--primary);
  font-size: 0.8em;
  transition: opacity .2s;
  text-decoration: none;
}
.sp-article h2:hover .heading-anchor,
.sp-article h3:hover .heading-anchor { opacity: 1; }

/* List markers */
.sp-article ul { list-style: disc; }
.sp-article ol { list-style: decimal; }
.sp-article ul li::marker { color: var(--primary); }
.sp-article ol li::marker { color: var(--primary); font-weight: 600; }

/* Kbd / inline elements */
.sp-article kbd {
  background: #f1f5f9;
  border: 1px solid #d1d5db;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
  box-shadow: 0 1px 0 #d1d5db;
}

/* Reading Progress Bar */
.sp-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), #06B6D4);
  z-index: 9999;
  transition: width .1s linear;
  width: 0%;
}

/* Back to Top */
.sp-back-top {
  position: fixed;
  bottom: 32px;
  right: 90px;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(15,98,254,0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: all .3s ease;
  z-index: 999;
}
.sp-back-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.sp-back-top:hover {
  background: #0d54d9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(15,98,254,0.4);
}

/* Image Lightbox */
.sp-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all .3s ease;
  cursor: zoom-out;
}
.sp-lightbox.active { opacity: 1; visibility: visible; }
.sp-lightbox img {
  max-width: 92%;
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
}
.sp-lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  background: none;
  border: none;
  opacity: 0.7;
  transition: opacity .2s;
}
.sp-lightbox-close:hover { opacity: 1; }

/* Tags */
.sp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
}
.sp-tag {
  padding: 5px 14px;
  background: var(--bg-subtle);
  border-radius: 20px;
  font-size: 12px;
  color: var(--body);
  font-weight: 500;
  text-decoration: none;
  transition: all .2s;
  border: 1px solid transparent;
}
.sp-tag:hover {
  background: var(--primary-soft);
  color: var(--primary);
  border-color: rgba(15,98,254,.15);
}

/* Social Share */
.sp-share {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
}
.sp-share__label {
  font-size: 14px;
  font-weight: 600;
  color: var(--heading);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-right: 4px;
}
.sp-share__btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: white;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform .2s, opacity .2s;
}
.sp-share__btn:hover { transform: translateY(-2px); opacity: .85; }

/* Author Box */
.sp-author-box {
  margin-top: 2rem;
  padding: 20px 24px;
  background: var(--bg-subtle);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
}
.sp-author-box__header {
  display: flex;
  align-items: center;
  gap: 14px;
}
.sp-author-box__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10B981, #06B6D4);
  color: white;
  font-weight: 700;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}
.sp-author-box__avatar::after {
  content: '\f00c';
  font-family: 'remixicon';
  content: '✓';
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 16px;
  height: 16px;
  background: #10B981;
  border-radius: 50%;
  border: 2px solid white;
  font-size: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}
.sp-author-box__verified {
  font-size: 14px;
  color: var(--heading);
}
.sp-author-box__date {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Author Detail */
.sp-author-detail { margin-top: 2rem; }
.sp-author-detail__heading {
  font-size: 18px;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 12px;
}
.sp-author-detail__card {
  display: flex;
  gap: 16px;
  padding: 24px;
  background: var(--bg-subtle);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
}
.sp-author-detail__avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0F62FE, #06B6D4);
  color: white;
  font-weight: 700;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sp-author-detail__name {
  font-size: 16px;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 6px;
}
.sp-author-detail__bio {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  font-style: italic;
}

/* Sidebar Info Rows */
.sp-info-row {
  padding: 14px 0;
  border-bottom: 1px solid var(--border-light);
}
.sp-info-row:first-child { padding-top: 0; }
.sp-info-row:last-child { border-bottom: none; }
.sp-info-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .04em;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 4px;
}
.sp-info-label i { font-size: 14px; color: var(--primary); }
.sp-info-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--heading);
}

/* Right sidebar */
.sp-sidebar {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ── Responsive (single post) ── */
@media (max-width: 1100px) {
  .sp-layout {
    grid-template-columns: 1fr 280px;
  }
  .sp-toc { display: none; }
}
@media (max-width: 768px) {
  .sp-layout { grid-template-columns: 1fr; }
  .sp-sidebar { position: static; }
  .sp-title { font-size: 1.75rem; }
  .sp-author-detail__card { flex-direction: column; align-items: center; text-align: center; }
}

/* ── Ẩn sections inject tự động (không cần trên blog) ── */
#testimonials, #partners { display: none !important; }
