/* ═══════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════ */
.kcp-hero {
  position: relative;
  overflow: hidden;
  float: none !important;           /* override: template section { float:left } */
  width: 100% !important;           /* keep full-width */
  background:
    linear-gradient(160deg, rgba(2,8,30,0.90) 0%, rgba(5,18,60,0.78) 50%, rgba(10,32,90,0.62) 100%),
    var(--kc-hero-bg) center center / cover no-repeat;
  padding: clamp(72px, 9vw, 104px) 0 clamp(80px, 9vw, 120px) !important;
}
.kcp-hero__inner {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 40px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}
.kcp-hero__breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  padding: 7px 16px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 20px;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);
}
.kcp-hero__breadcrumb svg {
  color: rgba(255,255,255,0.5);
  flex-shrink: 0;
}
.kcp-hero__breadcrumb a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: color 0.2s;
}
.kcp-hero__breadcrumb a:hover { color: #38bdf8; }
.kcp-hero__breadcrumb span { color: rgba(255,255,255,0.7); }
.kcp-hero__breadcrumb span[aria-hidden] { color: rgba(255,255,255,0.4); }
.kcp-hero__breadcrumb span[aria-current] { color: #fff; }
.kcp-hero__category {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1e3a8a;
  background: rgba(255,255,255,0.92);
  padding: 5px 14px;
  border-radius: 20px;
}
.kcp-hero__title {
  font-size: clamp(28px, 4.5vw, 46px) !important;
  font-weight: 800 !important;
  color: #fff !important;
  line-height: 1.2 !important;
  letter-spacing: -0.02em !important;
  text-align: left !important;
  text-transform: none !important;
  margin: 0 !important;
  padding: 0 !important;
  max-width: 780px;
}
.kcp-hero__title::before,
.kcp-hero__title::after { display: none !important; }
.kcp-hero__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14px;
  color: rgba(255,255,255,0.65);
}
.kcp-hero__meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.kcp-hero__sep { color: rgba(255,255,255,0.30) !important; }
.kcp-hero__excerpt {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255,255,255,0.75);
  max-width: 680px;
  margin: 4px 0 0;
}

/* ═══════════════════════════════════════════════════════════
   ARTICLE SHELL — single unified container, one spine for all blocks
   ═══════════════════════════════════════════════════════════ */
.kcp-shell {
  background: #fff;
  padding-top: 0;
  padding-bottom: 80px;
  width: 100%;
  box-sizing: border-box;
}
/* THE spine: one max-width, centered. Every child is 100% of this. */
.kcp-rail {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 0; /* spacing controlled per-block below */
}

/* Cover image — overlaps hero boundary */
.kcp-cover {
  margin-top: -72px;
  margin-bottom: 36px;
  position: relative;
  z-index: 10;
}
.kcp-cover__img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.18);
}
.kcp-shell--no-cover {
  padding-top: clamp(48px, 6vw, 72px);
}

/* Intro paragraph below cover image */
.kcp-intro {
  font-size: 17px !important;
  line-height: 1.78 !important;
  color: #374151 !important;
  margin: 0 0 40px !important;
  padding: 0 !important;
}
.kcp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
}
.kcp-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 14px;
  font-size: 12px;
  font-weight: 500;
  color: #64748b;
  background: #e2e8f0;
  border-radius: 20px;
  white-space: nowrap;
}

/* ── blog-article-content: all rendered Markdown ───────── */
.blog-article-content {
  font-size: 16.5px;
  line-height: 1.82;
  color: #1e293b;
  text-align: left;
}
.blog-article-content p {
  /* Override template: p { font-size:1.1em; line-height:24px; padding-bottom:10px } */
  margin: 0 0 20px !important;
  padding: 0 !important;
  text-align: left !important;
  font-size: 16.5px !important;
  line-height: 1.82 !important;
  color: #1e293b !important;
}

/* H2 */
.blog-article-content ._hM2HJ90 {
  font-size: 22px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  text-align: left !important;
  text-transform: none !important;
  letter-spacing: -0.01em !important;
  margin: 52px 0 20px !important;
  padding-bottom: 0 !important;
  line-height: 1.3 !important;
}
.blog-article-content ._hM2HJ90::before,
.blog-article-content ._hM2HJ90::after { display: none !important; }

/* H3 */
.blog-article-content ._TewJJW6 {
  font-size: 18px !important;
  font-weight: 700 !important;
  color: #1e3a8a !important;
  text-align: left !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  margin: 32px 0 10px !important;
}
.blog-article-content ._TewJJW6::before,
.blog-article-content ._TewJJW6::after { display: none !important; }

/* H3 with blue circle number */
.blog-article-content .kc-blog-h3--num {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}
.blog-article-content ._IrIeI65 {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #2563eb;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
}

/* Bullet list */
.blog-article-content ._9R1Tizk {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 0 24px !important;
}
.blog-article-content ._9R1Tizk li {
  position: relative;
  padding-left: 22px !important;
  margin-bottom: 10px !important;
  color: #374151 !important;
  text-align: left !important;
}
.blog-article-content ._9R1Tizk li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2563eb;
}

/* Ordered list */
.blog-article-content ._sib4krW {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 0 24px !important;
  counter-reset: kc-ol;
}
.blog-article-content ._sib4krW li {
  position: relative;
  padding-left: 38px !important;
  margin-bottom: 10px !important;
  color: #374151 !important;
  counter-increment: kc-ol;
}
.blog-article-content ._sib4krW li::before {
  content: counter(kc-ol);
  position: absolute;
  left: 0;
  top: 2px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #2563eb;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Blockquote */
.blog-article-content ._NIIoD6l {
  margin: 32px 0;
  padding: 24px 28px 24px 64px;
  background: #eff6ff;
  border-left: none;
  border-radius: 12px;
  position: relative;
  float: none !important;            /* template blockquote { float:left } */
  clear: both !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
.blog-article-content ._NIIoD6l::before {
  content: '\201C';
  position: absolute;
  left: 18px;
  top: 10px;
  font-size: 56px;
  line-height: 1;
  color: #2563eb;
  font-family: Georgia, serif;
  font-weight: 700;
}
.blog-article-content ._NIIoD6l p {
  margin: 0 !important;
  font-style: italic;
  font-size: 16px;
  line-height: 1.75;
  color: #1e3a8a;
}

/* Checklist */
.blog-article-content ._xrOOIJh {
  background: #eff6ff;
  border-radius: 12px;
  padding: 24px 28px;
  margin: 28px 0;
}
.blog-article-content ._r6Wf8Hi {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 32px;
}
.blog-article-content ._IFgghki {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: #1e3a8a;
  font-weight: 500;
}
.blog-article-content ._Jw-BNRE {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Inline elements */
.blog-article-content strong { color: #0f172a; font-weight: 700; }
.blog-article-content em { font-style: italic; color: #475569; }
.blog-article-content ._IPGUAXk {
  color: #2563eb;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.blog-article-content ._IPGUAXk:hover { color: #1d4ed8; }
.blog-article-content ._qe4n7Pj {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 28px 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.10);
}
/* Video card: nền gradient dịu (navy, KHÔNG flat-black), video canh giữa nổi lên trên.
   Chỉ 1 video — bỏ video nền ambient để không tải mp4 2 lần (~11MB). */
.blog-article-content ._25Mw_w9 {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: min(78vh, 620px);
  margin: 28px 0;
  border-radius: 16px;
  overflow: hidden;
  /* Nền tức thời: SVG aurora (~1KB). Ambient video sẽ lazy-load fade đè lên (JS). */
  background:
    url("/images/kc/blog-video-bg.svg") center / cover no-repeat,
    #0e1420;
  box-shadow: 0 8px 30px rgba(0,0,0,0.18);
}
/* Ambient: <canvas> vẽ frame của chính video chính (KHÔNG tải video lần 2), blur làm nền */
.blog-article-content ._NwfJewX {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: scale(1.15);
  filter: blur(30px) saturate(1.35) brightness(0.82);
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
  z-index: 0;
}
.blog-article-content ._NwfJewX.is-on { opacity: 1; }
/* Lớp gradient alpha phủ lên nền (SVG hoặc ambient) → dịu, tối viền cho video nổi */
.blog-article-content ._25Mw_w9::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 90% at 50% 0%, rgba(20,28,45,0.32) 0%, rgba(9,13,22,0.62) 78%);
  z-index: 1;
  pointer-events: none;
}
/* Video chính nổi lên trên */
.blog-article-content ._Aoami9I {
  position: relative;
  z-index: 2;
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  border-radius: 6px;                 /* bo rất nhẹ */
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.blog-article-content ._gqwgFv9 {
  border: none;
  border-top: 1px solid #e2e8f0;
  margin: 40px 0;
}

/* Check-circle lines: |✓ or |→ → check icon + text (2-col grid, indented) */
.blog-article-content ._5qJyvqa {
  display: grid !important;
  grid-template-columns: 24px 1fr !important;
  column-gap: 10px !important;
  align-items: start !important;
  margin: 10px 0 10px 32px !important;
  color: #334155 !important;
  font-size: 16px !important;
  line-height: 1.75 !important;
}
.blog-article-content ._JIbarOU {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding-top: 3px !important;
  color: #2563eb !important;
  line-height: 1 !important;
}
.blog-article-content ._ikGHEM5 {
  min-width: 0 !important;
}
/* ── Markdown table ───────────────────────────────────── */
.blog-article-content ._uth6ngv {
  overflow-x: auto;
  margin: 28px 0;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}
.blog-article-content ._6ZMgpdn {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  line-height: 1.6;
}
.blog-article-content ._6ZMgpdn th {
  background: #f1f5f9;
  color: #1e293b;
  font-weight: 600;
  padding: 12px 16px;
  text-align: left;
  border-bottom: 2px solid #e2e8f0;
  white-space: nowrap;
}
.blog-article-content ._6ZMgpdn td {
  padding: 10px 16px;
  border-bottom: 1px solid #e2e8f0;
  color: #374151;
}
.blog-article-content ._6ZMgpdn tr:last-child td {
  border-bottom: none;
}
.blog-article-content ._6ZMgpdn tr:nth-child(even td) {
  background: #f8fafc;
}
.blog-article-content ._6ZMgpdn strong {
  color: #1e293b;
}

/* Back button */
.kcp-back {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid #e2e8f0;
  align-self: flex-start;
  width: 100%;
  text-align: left;
}
.kcp-back__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 600;
  color: #2563eb;
  border: 1.5px solid #2563eb;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.kcp-back__btn:hover { background: #2563eb; color: #fff; }

/* ═══════════════════════════════════════════════════════════
   RELATED POSTS — inside .kcp-rail, inherits the same spine
   ═══════════════════════════════════════════════════════════ */
.kcp-related {
  margin-top: 72px;
  padding-top: 52px;
  padding-bottom: 0 !important;      /* template section { padding:120px 0 } — kill bottom */
  border-top: 1px solid #e2e8f0;
  float: none !important;            /* template section { float:left } */
  overflow: visible !important;      /* template section { overflow:hidden } — don't clip grid */
}
.kcp-related__heading {
  font-size: 22px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  text-align: left !important;
  text-transform: none !important;
  margin: 0 0 32px !important;
  padding: 0 !important;
}
.kcp-related__heading::before,
.kcp-related__heading::after { display: none !important; }
.kcp-related__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.kcp-rcard {
  display: block;
  text-decoration: none;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: box-shadow 0.2s, transform 0.2s;
}
.kcp-rcard:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  transform: translateY(-2px);
}
.kcp-rcard__thumb {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  line-height: 0;
  background: #f8fafc;
}
.kcp-rcard__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.kcp-rcard__body { padding: 16px 18px 18px; }
.kcp-rcard__meta {
  font-size: 12px; color: #94a3b8; margin-bottom: 8px;
  display: flex; gap: 6px; align-items: center;
}
.kcp-rcard__title {
  font-size: 15px; font-weight: 700; color: #0f172a; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 3;
  -webkit-box-orient: vertical; overflow: hidden;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */
/* 3-tier: base = desktop (≥1025) · tablet 641–1024 · mobile ≤640
   (breakpoint 900/600 cũ đã remap vào tablet/mobile theo PAGE-BODY-LAYOUT-SSOT) */

/* Body spacing (padding-top) và navbar backdrop/height do kc.navbar.css lo
   (desktop 64px, tablet/mobile backdrop none, mobile 58px). Nền trắng của bài
   viết do .kcp-shell cung cấp — không cần selector `body` trần ở đây. */

/* Tablet 641–1024px */
@media (min-width: 641px) and (max-width: 1024px) {
  .kcp-rail {
    width: calc(100% - 48px);
    max-width: 560px;
    padding-inline: 0;
  }
  .kcp-related__grid { grid-template-columns: 1fr; }
}

/* Mobile ≤640px */
@media (max-width: 640px) {
  .kcp-shell { padding-top: clamp(32px, 5vw, 48px); padding-bottom: 56px; }   /* remap từ @max-width:600 */
  .kcp-rail {
    width: calc(100% - 40px);
    max-width: none;
    padding-inline: 0;
  }
  .kcp-cover__img { border-radius: 8px; }
  .kcp-related__grid { grid-template-columns: 1fr; }
  .blog-article-content ._r6Wf8Hi { grid-template-columns: 1fr; }
  .blog-article-content ._5qJyvqa {
    margin-left: 12px !important;
    grid-template-columns: 22px 1fr !important;
    column-gap: 8px !important;
  }
  .blog-article-content ._JIbarOU svg {
    width: 16px !important;
    height: 16px !important;
  }
}
