/* ==========================================================================
   Blog Styles — Apple Design System
   Font: SF Pro Display / SF Pro Text / system-ui fallback
   Colors: #1d1d1f text, #0071e3 accent, #f5f5f7 alt bg, #fff cards
   ========================================================================== */

/* --- Shared shell -------------------------------------------------------- */
.ns-blog-main,
.ns-blog-single-main {
  padding-top: 20px;
}

.ns-blog-hub,
.ns-blog-single-shell {
  width: min(100%, 1260px);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 34px;
}

/* --- Breadcrumbs -------------------------------------------------------- */
.ns-breadcrumbs {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 13px;
  color: rgba(0, 0, 0, 0.48);
  line-height: 1.47;
  letter-spacing: -0.374px;
}

.ns-breadcrumbs a {
  color: rgba(0, 0, 0, 0.48);
  text-decoration: none;
  transition: color 0.2s ease;
}

.ns-breadcrumbs a:hover {
  color: #0071e3;
}

.ns-breadcrumbs span[aria-hidden="true"] {
  margin: 0 6px;
}

/* --- Archive page header ------------------------------------------------ */
.ns-blog-page-header {
  text-align: center;
  padding-top: 8px;
}

.ns-blog-page-title {
  margin: 0;
  color: #1d1d1f;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: clamp(34px, 4.2vw, 56px);
  font-weight: 600;
  line-height: 1.07;
  letter-spacing: -0.02em;
}

.ns-blog-page-desc {
  margin: 14px auto 0;
  max-width: 780px;
  color: rgba(0, 0, 0, 0.8);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.47;
  letter-spacing: -0.374px;
}

/* --- Category header bar (title + tabs unified) ------------------------- */
.ns-blog-header-bar {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 6px 8px;
  background: #fafafa;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.ns-blog-header-title {
  margin: 0;
  padding: 10px 22px;
  background: #377eff;
  color: #ffffff;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  white-space: nowrap;
  flex-shrink: 0;
  border-radius: 10px;
}

.ns-blog-header-bar .ns-blog-topic-tabs {
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 4px;
  padding: 0;
}

.ns-blog-header-bar .ns-blog-topic-tabs a {
  min-height: 34px;
  padding: 0 14px;
  font-size: 13px;
  border-radius: 10px;
  background: transparent;
}

.ns-blog-header-bar .ns-blog-topic-tabs a:hover {
  background: rgba(0, 0, 0, 0.05);
}

.ns-blog-header-bar .ns-blog-topic-tabs a.is-active {
  background: #377eff;
  color: #fff;
}

/* --- Category banner ---------------------------------------------------- */
.ns-blog-sidebar-col {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 100px;
  align-self: start;
}

.ns-blog-sidebar-col .ns-blog-cat-banner {
  border-radius: 12px;
  overflow: hidden;
}

.ns-blog-sidebar-col .ns-blog-cat-banner img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

/* --- Topic tabs --------------------------------------------------------- */
.ns-blog-topic-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.ns-blog-topic-tabs a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 18px;
  border-radius: 10px;
  border: none;
  background: #f5f5f7;
  color: #1d1d1f;
  text-decoration: none;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: all 0.2s ease;
}

.ns-blog-topic-tabs a:hover,
.ns-blog-topic-tabs a:focus {
  background: #e8e8ed;
  color: #1d1d1f;
}

.ns-blog-topic-tabs a.is-active {
  background: #377eff;
  color: #ffffff;
}

/* --- Main 70/30 layout -------------------------------------------------- */
.ns-blog-main-layout {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 3fr);
  gap: 32px;
  align-items: start;
}

.ns-blog-main-articles {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}

.ns-blog-main-sidebar {
  padding: 0;
  background: #fafafa;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.ns-blog-sidebar-heading {
  margin: 0;
  padding: 20px 22px 14px;
  color: #377eff;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ns-blog-cat-list {
  margin: 0;
  padding: 0 10px 10px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ns-blog-cat-list li {
  border-bottom: 0;
}

.ns-blog-cat-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: #1d1d1f;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  transition: background 0.15s ease;
  background: transparent;
}

.ns-blog-cat-list a:hover {
  background: rgba(0, 0, 0, 0.04);
  color: #1d1d1f;
}

.ns-blog-cat-list a.is-active {
  background: #377eff;
  color: #ffffff;
  font-weight: 500;
}

.ns-blog-cat-list a.is-active .ns-blog-cat-icon {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.ns-blog-cat-list a.is-active .ns-blog-cat-count {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.ns-blog-cat-list a:hover .ns-blog-cat-count {
  background: rgba(0, 0, 0, 0.08);
}

.ns-blog-cat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.05);
  color: #1d1d1f;
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.15s ease;
}

.ns-blog-cat-list a:hover .ns-blog-cat-icon {
  background: rgba(0, 0, 0, 0.08);
}

.ns-blog-cat-name {
  flex: 1;
}

.ns-blog-cat-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 22px;
  padding: 0 7px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.04);
  color: rgba(0, 0, 0, 0.4);
  font-size: 12px;
  font-weight: 500;
  transition: background 0.15s ease;
}

/* --- First featured post ----------------------------------------------- */
.ns-blog-first-post {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  margin-bottom: 0;
}

.ns-blog-first-thumb {
  display: block;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
}

.ns-blog-first-thumb img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.ns-blog-first-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ns-blog-first-cat {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 12px;
  border-radius: 980px;
  background: rgba(0, 113, 227, 0.1);
  color: #0071e3;
  text-decoration: none;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: background 0.2s ease;
}

.ns-blog-first-cat:hover {
  background: #0071e3;
  color: #ffffff;
}

.ns-blog-first-title {
  margin: 4px 0 0;
  color: #1d1d1f;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: clamp(26px, 2.4vw, 34px);
  font-weight: 600;
  line-height: 1.18;
}

.ns-blog-first-title a {
  color: inherit;
  text-decoration: none;
}

.ns-blog-first-title a:hover {
  color: #0071e3;
}

.ns-blog-first-excerpt {
  margin: 4px 0 0;
  color: rgba(0, 0, 0, 0.8);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.58;
}

/* --- List item category tag -------------------------------------------- */
.ns-blog-list-cat {
  display: inline-block;
  align-self: flex-start;
  margin-bottom: 4px;
  color: #0071e3;
  text-decoration: none;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: color 0.2s ease;
}

.ns-blog-list-cat:hover {
  color: #0066cc;
}

/* --- Resets ------------------------------------------------------------ */
.ns-blog-archive-feed,
.ns-blog-single,
.ns-blog-post-nav,
.ns-blog-related {
  border: 0;
  border-radius: 0;
  background: transparent;
}

/* --- Shared thumb / image resets ---------------------------------------- */
.ns-blog-featured-thumb,
.ns-blog-list-thumb,
.ns-blog-grid-thumb,
.ns-blog-related-thumb,
.ns-blog-side-thumb,
.ns-blog-popular-thumb {
  display: block;
  text-decoration: none;
}

.ns-blog-featured-thumb img,
.ns-blog-list-thumb img,
.ns-blog-grid-thumb img,
.ns-blog-related-thumb img,
.ns-blog-side-thumb img,
.ns-blog-popular-thumb img,
.ns-blog-single-thumb img {
  display: block;
  width: 100%;
  height: auto;
}

/* --- Featured post (archive hero) --------------------------------------- */
.ns-blog-featured {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  gap: 20px;
  align-items: stretch;
}

.ns-blog-featured-thumb {
  border-radius: 12px;
  overflow: hidden;
}

.ns-blog-featured-thumb img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.ns-blog-featured-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6px 0;
}

/* --- Shared meta lines -------------------------------------------------- */
.ns-blog-meta-line,
.ns-blog-side-meta,
.ns-blog-popular-meta,
.ns-blog-single-meta,
.ns-blog-related-meta {
  color: rgba(0, 0, 0, 0.48);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.47;
}

.ns-blog-meta-dot {
  margin: 0 8px;
  color: rgba(0, 0, 0, 0.48);
}

/* --- Shared title resets ------------------------------------------------ */
.ns-blog-featured-title,
.ns-blog-list-title,
.ns-blog-grid-title,
.ns-blog-side-title,
.ns-blog-popular-title,
.ns-blog-related-item-title {
  margin: 10px 0 0;
  color: #1d1d1f;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  line-height: 1.19;
}

.ns-blog-featured-title {
  font-size: clamp(28px, 2.4vw, 38px);
  font-weight: 600;
}

.ns-blog-list-title,
.ns-blog-grid-title {
  font-size: clamp(22px, 1.9vw, 30px);
  font-weight: 600;
}

.ns-blog-side-title,
.ns-blog-popular-title,
.ns-blog-related-item-title {
  font-size: 19px;
  font-weight: 600;
}

.ns-blog-featured-title a,
.ns-blog-list-title a,
.ns-blog-grid-title a,
.ns-blog-side-title a,
.ns-blog-popular-title a,
.ns-blog-related-item-title a {
  color: inherit;
  text-decoration: none;
}

.ns-blog-featured-title a:hover,
.ns-blog-list-title a:hover,
.ns-blog-grid-title a:hover,
.ns-blog-side-title a:hover,
.ns-blog-popular-title a:hover,
.ns-blog-related-item-title a:hover,
.ns-blog-featured-title a:focus,
.ns-blog-list-title a:focus,
.ns-blog-grid-title a:focus,
.ns-blog-side-title a:focus,
.ns-blog-popular-title a:focus,
.ns-blog-related-item-title a:focus {
  color: #0071e3;
}

/* --- Shared excerpts ---------------------------------------------------- */
.ns-blog-featured-excerpt,
.ns-blog-list-excerpt,
.ns-blog-grid-excerpt {
  margin: 12px 0 0;
  color: rgba(0, 0, 0, 0.8);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.47;
}

.ns-blog-section-title {
  margin: 0 0 18px;
  color: #1d1d1f;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: clamp(24px, 1.8vw, 32px);
  font-weight: 600;
  line-height: 1.11;
}

/* --- Sidebar / column resets -------------------------------------------- */
.ns-blog-side,
.ns-blog-column-main,
.ns-blog-column-side,
.ns-blog-archive-feed {
  padding: 0;
}

/* --- Side item lists (popular, sidebar) --------------------------------- */
.ns-blog-side-list,
.ns-blog-popular-list,
.ns-blog-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.ns-blog-side-item,
.ns-blog-popular-item,
.ns-blog-list-item {
  display: grid;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.ns-blog-side-item:last-child,
.ns-blog-popular-item:last-child,
.ns-blog-list-item:last-child {
  border-bottom: 0;
}

.ns-blog-side-item,
.ns-blog-popular-item {
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 14px;
  padding: 14px 0;
  align-items: center;
}

.ns-blog-side-thumb,
.ns-blog-popular-thumb {
  border-radius: 12px;
  overflow: hidden;
}

.ns-blog-side-thumb img,
.ns-blog-popular-thumb img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.ns-blog-list-item {
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  padding: 20px 0;
}

.ns-blog-list-thumb,
.ns-blog-grid-thumb,
.ns-blog-related-thumb {
  border-radius: 12px;
  overflow: hidden;
}

.ns-blog-list-thumb img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

/* --- Archive grid ------------------------------------------------------- */
.ns-blog-archive-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* --- Related posts grid ------------------------------------------------- */
.ns-blog-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.ns-blog-grid-item {
  display: grid;
  grid-template-columns: clamp(220px, 25vw, 320px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  padding: 20px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.ns-blog-grid-item:last-child {
  border-bottom: 0;
}

.ns-blog-related-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.ns-blog-related-item:nth-last-child(-n + 3) {
  border-bottom: 0;
}

.ns-blog-grid-thumb img,
.ns-blog-related-thumb img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.ns-blog-grid-body {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-top: 2px;
}

.ns-blog-grid-cat {
  margin: 0;
  color: #0071e3;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ns-blog-grid-title {
  margin-top: 8px;
  font-size: clamp(24px, 2.2vw, 32px);
  font-weight: 600;
  line-height: 1.14;
}

.ns-blog-grid-excerpt {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
}

.ns-blog-related-body {
  padding: 0;
}

.ns-blog-thumb-placeholder {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  background: linear-gradient(135deg, #f5f5f7, #e8e8ed);
}

/* --- Pagination --------------------------------------------------------- */
.ns-blog-pagination {
  margin-top: 6px;
}

.ns-blog-pagination ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ns-blog-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 980px;
  border: none;
  background: rgba(0, 0, 0, 0.05);
  color: rgba(0, 0, 0, 0.8);
  text-decoration: none;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.ns-blog-pagination .page-numbers.current,
.ns-blog-pagination .page-numbers:hover,
.ns-blog-pagination .page-numbers:focus {
  background: #0071e3;
  color: #ffffff;
}

/* ==========================================================================
   Single Post — Cloned from webtop.vn layout
   ========================================================================== */

/* --- Reading progress bar ---------------------------------------------- */
.ns-blog-reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(0, 0, 0, 0.06);
  z-index: 9999;
  pointer-events: none;
}

.ns-blog-reading-progress-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #0071e3, #34a4ff);
  border-radius: 0 2px 2px 0;
  transition: width 0.1s linear;
}

.ns-blog-single {
  max-width: 940px;
  margin: 0 auto;
  padding: 0;
}

/* --- Header ------------------------------------------------------------- */
.ns-blog-single-header {
  margin-bottom: 24px;
}

.ns-blog-single-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.ns-blog-single-cats a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 14px;
  border-radius: 980px;
  border: none;
  background: #0071e3;
  color: #ffffff;
  text-decoration: none;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: background 0.2s ease;
}

.ns-blog-single-cats a:hover {
  background: #0077ed;
}

.ns-blog-single-title {
  margin: 0;
  color: #1d1d1f;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: clamp(34px, 4.1vw, 56px);
  font-weight: 600;
  line-height: 1.07;
  letter-spacing: -0.02em;
}

.ns-blog-single-lead {
  margin: 14px 0 0;
  color: rgba(0, 0, 0, 0.8);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.47;
  letter-spacing: -0.374px;
}

.ns-blog-single-meta {
  margin-top: 18px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  color: #1e2022;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
}

.ns-blog-meta-author {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ns-blog-meta-author img,
.ns-blog-meta-author-avatar img {
  border-radius: 50%;
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  object-fit: cover;
}

.ns-blog-meta-author-name {
  font-weight: 600;
  color: #1d1d1f;
}

/* --- Featured image ----------------------------------------------------- */
.ns-blog-single-thumb {
  margin: 0 0 32px;
  border-radius: 12px;
  overflow: hidden;
}

.ns-blog-single-thumb img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 12px;
}

/* --- Two-column layout: content + sidebar ------------------------------ */
.ns-blog-single-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 40px;
  align-items: start;
}

/* --- Article content ---------------------------------------------------- */
.ns-blog-single-content {
  color: #1d1d1f;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.47;
  letter-spacing: -0.374px;
}

.ns-blog-single-content h2,
.ns-blog-single-content h3,
.ns-blog-single-content h4 {
  margin-top: 1.6em;
  margin-bottom: 0.55em;
  color: #1d1d1f;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 600;
  line-height: 1.14;
}

.ns-blog-single-content h2 {
  font-size: 28px;
}

.ns-blog-single-content h3 {
  font-size: 21px;
}

.ns-blog-single-content h4 {
  font-size: 17px;
}

.ns-blog-single-content p,
.ns-blog-single-content ul,
.ns-blog-single-content ol,
.ns-blog-single-content blockquote {
  margin-top: 0;
  margin-bottom: 1.15em;
}

.ns-blog-single-content ul,
.ns-blog-single-content ol {
  padding-left: 1.2em;
}

.ns-blog-single-content li {
  margin-bottom: 0.4em;
}

.ns-blog-single-content ul li::marker {
  color: #0071e3;
}

.ns-blog-single-content ol li::marker {
  color: #0071e3;
  font-weight: 600;
}

.ns-blog-single-content blockquote {
  margin-left: 0;
  padding: 16px 20px;
  border-left: 3px solid #0071e3;
  color: rgba(0, 0, 0, 0.8);
  background: #f5f5f7;
  border-radius: 0 12px 12px 0;
  font-style: italic;
}

.ns-blog-single-content img {
  margin: 24px 0;
  border-radius: 12px;
}

.ns-blog-single-content a {
  color: #0066cc;
  text-decoration: none;
  transition: color 0.2s ease;
}

.ns-blog-single-content a:hover {
  color: #0071e3;
  text-decoration: underline;
}

.ns-blog-single-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.15em 0;
}

.ns-blog-single-content th,
.ns-blog-single-content td {
  padding: 10px 14px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  text-align: left;
}

.ns-blog-single-content th {
  background: #f5f5f7;
  font-weight: 600;
}

/* --- TOC fade out at 75% scroll ---------------------------------------- */
.ns-blog-toc {
  opacity: 1;
  max-height: 600px;
  overflow: hidden;
  transition: opacity 0.5s ease, max-height 0.5s ease, margin 0.5s ease, padding 0.5s ease;
}

.ns-blog-toc.is-hidden {
  opacity: 0;
  max-height: 0;
  margin: 0;
  pointer-events: none;
}

/* --- Sidebar extras (CTA + banner) — swaps in when TOC hides ------------ */
.ns-blog-sidebar-extras {
  display: flex;
  flex-direction: column;
  gap: 20px;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  pointer-events: none;
  transition: opacity 0.5s ease 0.15s, max-height 0.5s ease 0.15s;
}

.ns-blog-sidebar-extras.is-visible {
  opacity: 1;
  max-height: 800px;
  pointer-events: auto;
}

/* --- Sidebar ------------------------------------------------------------ */
.ns-blog-single-sidebar {
  position: sticky;
  top: 100px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.08) transparent;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 24px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: rgba(0, 0, 0, 0.22) 3px 5px 30px 0px;
}

.ns-blog-single-sidebar::-webkit-scrollbar {
  width: 4px;
}

.ns-blog-single-sidebar::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.08);
  border-radius: 2px;
}

/* --- Sidebar author mini card ------------------------------------------- */
.ns-blog-sidebar-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ns-blog-sidebar-author-avatar img {
  border-radius: 50%;
  width: 48px;
  height: 48px;
  object-fit: cover;
}

.ns-blog-sidebar-author-name {
  color: #1d1d1f;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.26;
}

.ns-blog-sidebar-author-bio {
  margin: 4px 0 0;
  color: rgba(0, 0, 0, 0.48);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.38;
}

/* --- Sidebar divider ---------------------------------------------------- */
.ns-blog-sidebar-divider {
  width: 100%;
  height: 1px;
  background: rgba(0, 0, 0, 0.08);
  margin: 18px 0;
}

/* --- Sidebar post facts ------------------------------------------------- */
.ns-blog-sidebar-facts {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ns-blog-sidebar-fact {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ns-blog-fact-label {
  color: rgba(0, 0, 0, 0.48);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.33;
}

.ns-blog-sidebar-fact strong {
  color: #1d1d1f;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
}

/* --- Table of Contents (collapsible) ----------------------------------- */
.ns-blog-toc {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.ns-blog-toc-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  text-align: left;
}

.ns-blog-toc-toggle-text {
  color: #1d1d1f;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.28;
}

.ns-blog-toc-toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.05);
  color: rgba(0, 0, 0, 0.48);
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.ns-blog-toc-toggle.is-open .ns-blog-toc-toggle-icon {
  transform: rotate(180deg);
  background: rgba(0, 113, 227, 0.1);
  color: #0071e3;
}

.ns-blog-toc-nav {
  display: none;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease;
  opacity: 0;
}

.ns-blog-toc-nav.is-visible {
  display: block;
  max-height: 320px;
  opacity: 1;
  margin-top: 12px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.12) transparent;
}

.ns-blog-toc-nav.is-visible::-webkit-scrollbar {
  width: 4px;
}

.ns-blog-toc-nav.is-visible::-webkit-scrollbar-track {
  background: transparent;
}

.ns-blog-toc-nav.is-visible::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.12);
  border-radius: 2px;
}

.ns-blog-toc-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.ns-blog-toc-nav li {
  margin: 0;
}

.ns-blog-toc-nav a {
  display: block;
  padding: 6px 0;
  color: rgba(0, 0, 0, 0.8);
  text-decoration: none;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.38;
  border-left: 2px solid transparent;
  padding-left: 12px;
  transition: all 0.2s ease;
}

.ns-blog-toc-nav a:hover,
.ns-blog-toc-nav a.is-active {
  color: #0071e3;
  border-left-color: #0071e3;
  font-weight: 600;
}

.ns-blog-toc-nav .ns-toc-h3 a {
  padding-left: 28px;
  font-size: 12px;
}

/* --- Sidebar featured posts -------------------------------------------- */
.ns-blog-sidebar-featured {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ns-blog-sidebar-featured-title {
  color: #1d1d1f;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.28;
}

.ns-blog-sidebar-featured-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ns-blog-sidebar-featured-item {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  padding: 6px 0;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.ns-blog-sidebar-featured-item:hover {
  background: rgba(0, 113, 227, 0.06);
}

.ns-blog-sidebar-feat-img {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.ns-blog-sidebar-feat-img--placeholder {
  display: block;
  background: linear-gradient(135deg, #f5f5f7, #e8e8ed);
}

.ns-blog-sidebar-feat-title {
  color: #1d1d1f;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.38;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}

.ns-blog-sidebar-featured-item:hover .ns-blog-sidebar-feat-title {
  color: #0071e3;
}

/* --- CTA section (inside sidebar extras) --------------------------------- */

.ns-blog-cta-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  padding: 28px 22px 24px;
  background: #ffffff;
  border: 1px solid rgba(55, 125, 255, 0.18);
  border-radius: 1rem;
  text-align: left;
  box-shadow: 0 1rem 2.25rem rgba(55, 125, 255, 0.1);
  overflow: hidden;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.ns-blog-cta-inner::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, #377dff 0%, #1f66e6 100%);
}

.ns-blog-cta-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 0.625rem;
  background: linear-gradient(135deg, #377dff 0%, #1f66e6 100%);
  color: #ffffff;
  box-shadow: 0 0.4rem 1rem rgba(55, 125, 255, 0.3);
}

.ns-blog-cta-title {
  color: #0f172a;
  font-family: inherit;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.005em;
  text-transform: none;
}

.ns-blog-cta-desc {
  margin: 0;
  color: #4a5568;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.55;
}

.ns-blog-cta-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

.ns-blog-cta-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  background: #f8faff;
  color: #0f172a;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  box-sizing: border-box;
}

.ns-blog-cta-input::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

.ns-blog-cta-input:hover {
  background: #ffffff;
  border-color: #cbd5e1;
}

.ns-blog-cta-input:focus {
  background: #ffffff;
  border-color: #377dff;
  box-shadow: 0 0 0 3px rgba(55, 125, 255, 0.15);
}

.ns-blog-cta-phone-wrap {
  display: flex;
  align-items: stretch;
  background: #f8faff;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.ns-blog-cta-phone-wrap:hover { background: #ffffff; border-color: #cbd5e1; }
.ns-blog-cta-phone-wrap:focus-within {
  background: #ffffff;
  border-color: #377dff;
  box-shadow: 0 0 0 3px rgba(55, 125, 255, 0.15);
}

.ns-blog-cta-phone-code {
  display: flex;
  align-items: center;
  padding: 0 12px;
  color: #377dff;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 700;
  border-right: 1px solid #e2e8f0;
  flex-shrink: 0;
  user-select: none;
}

.ns-blog-cta-input--phone {
  border-radius: 0;
  border: none;
  background: transparent;
}

.ns-blog-cta-input--phone:focus { box-shadow: none; border: none; background: transparent; }

.ns-blog-cta-submit {
  width: 100%;
  padding: 13px 20px;
  border: 0;
  border-radius: 0.5rem;
  background: linear-gradient(135deg, #377dff 0%, #1f66e6 100%);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.005em;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  box-shadow: 0 0.5rem 1.25rem rgba(55, 125, 255, 0.28);
}

.ns-blog-cta-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 0.75rem 1.75rem rgba(55, 125, 255, 0.38);
  filter: brightness(1.03);
}

.ns-blog-cta-submit:active { transform: scale(0.98); }

/* --- Sidebar banner slot (inside sidebar extras) ------------------------- */

.ns-blog-sidebar-banner-link {
  display: block;
  text-decoration: none;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ns-blog-sidebar-banner-link:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.ns-blog-sidebar-banner-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.ns-blog-sidebar-banner-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 36px 16px;
  background: linear-gradient(135deg, #f5f5f7, #e8e8ed);
  border-radius: 12px;
  color: rgba(0, 0, 0, 0.32);
  text-align: center;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;
}

/* --- Share buttons ------------------------------------------------------ */
.ns-blog-share {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ns-blog-share-title {
  color: #1d1d1f;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.28;
}

.ns-blog-share-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ns-blog-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.05);
  color: rgba(0, 0, 0, 0.64);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.ns-blog-share-btn:hover {
  background: #0071e3;
  color: #ffffff;
}

.ns-blog-share-btn--copy {
  position: relative;
}

.ns-blog-share-btn--copy.is-copied {
  background: #0071e3;
  color: #ffffff;
}

.ns-blog-share-btn--copy.is-copied::after {
  content: attr(data-copied-text);
  position: absolute;
  top: -32px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 10px;
  border-radius: 6px;
  background: #377eff;
  color: #ffffff;
  font-size: 11px;
  white-space: nowrap;
  pointer-events: none;
}

/* --- Tags --------------------------------------------------------------- */
.ns-blog-single-footer {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ns-blog-single-footer a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 14px;
  border-radius: 980px;
  border: none;
  background: #f5f5f7;
  color: rgba(0, 0, 0, 0.8);
  text-decoration: none;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.ns-blog-single-footer a:hover {
  background: #0071e3;
  color: #ffffff;
}

/* --- Author bio card (full-width, below article) ----------------------- */
.ns-blog-author-bio {
  position: relative;
  max-width: 940px;
  margin: 56px auto 0;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 10px 30px;
  background:
    linear-gradient(135deg, rgba(55, 126, 255, 0.06) 0%, rgba(55, 126, 255, 0) 45%),
    #ffffff;
  border-radius: 20px;
  border: 1px solid rgba(55, 126, 255, 0.15);
  box-shadow:
    0 1.25rem 3rem rgba(30, 32, 34, 0.08),
    0 0 0 1px rgba(55, 126, 255, 0.04);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow: hidden;
}

.ns-blog-author-bio::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(180deg, #377eff 0%, #1f66e6 100%);
}

.ns-blog-author-bio::after {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(55, 126, 255, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.ns-blog-author-bio-avatar {
  flex-shrink: 0;
  position: relative;
}

.ns-blog-author-bio-avatar img {
  border-radius: 50%;
  width: 88px;
  height: 88px;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow:
    0 0 0 3px rgba(55, 126, 255, 0.18),
    0 0.5rem 1.25rem rgba(30, 32, 34, 0.1);
  background: #f6f7f9;
}

/* Verified check badge on the avatar */
.ns-blog-author-bio-avatar::after {
  content: '';
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #377eff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/14px no-repeat;
  border: 3px solid #fff;
  box-shadow: 0 2px 6px rgba(55, 126, 255, 0.35);
}

.ns-blog-author-bio-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

.ns-blog-author-bio-name {
  color: #1e2022;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* Trust pill next to name */
.ns-blog-author-bio-name::after {
  content: 'Chuyên gia Nextstage';
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #1f66e6;
  background: rgba(55, 126, 255, 0.12);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  text-transform: uppercase;
  line-height: 1;
}

.ns-blog-author-bio-text {
  margin: 0;
  color: #4a5568;
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.6;
  max-width: 52ch;
}

.ns-blog-author-bio-cta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
  margin-top: 0.75rem;
}

.ns-blog-author-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.35rem;
  border-radius: 0.5rem;
  border: none;
  background: #377eff;
  color: #fff !important;
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.ns-blog-author-cta-btn svg {
  width: 16px;
  height: 16px;
}

.ns-blog-author-cta-btn:hover {
  background: #1f66e6;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 0.625rem 1.25rem rgba(55, 126, 255, 0.3);
}

.ns-blog-author-cta-link {
  color: #377eff;
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 600;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

.ns-blog-author-cta-link:hover {
  color: #1f66e6;
  transform: translateX(2px);
}

/* --- Post navigation ---------------------------------------------------- */
.ns-blog-post-nav {
  max-width: 940px;
  margin: 2px auto 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.ns-blog-post-nav-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 20px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  text-decoration: none;
  color: #1d1d1f;
  transition: all 0.2s ease;
}

.ns-blog-post-nav-item span {
  color: rgba(0, 0, 0, 0.48);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ns-blog-post-nav-item strong {
  color: #1d1d1f;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.29;
}

.ns-blog-post-nav-item--next {
  text-align: right;
}

.ns-blog-post-nav-item:hover,
.ns-blog-post-nav-item:focus {
  border-color: #0071e3;
  box-shadow: rgba(0, 113, 227, 0.12) 0 4px 20px 0px;
}

/* --- Related posts section ---------------------------------------------- */
.ns-blog-related {
  max-width: 1100px;
  margin: 6px auto 0;
  padding: 0;
}

.ns-blog-related-title {
  margin: 0 0 18px;
  color: #1d1d1f;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: clamp(24px, 2vw, 28px);
  font-weight: 600;
  line-height: 1.14;
}

.ns-blog-related-thumb {
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.ns-blog-related-thumb:hover {
  transform: scale(1.02);
}

@keyframes nsFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1200px) {
  .ns-blog-main-layout {
    grid-template-columns: 1fr;
  }

  .ns-blog-main-sidebar {
    position: static;
  }

  .ns-blog-list-item {
    grid-template-columns: 240px minmax(0, 1fr);
  }

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

  .ns-blog-grid-item {
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 16px;
  }

  .ns-blog-related-item:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .ns-blog-single-layout {
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 28px;
  }
}

@media (max-width: 1024px) {
  .ns-blog-single-layout {
    grid-template-columns: 1fr;
  }

  .ns-blog-single-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0 24px;
  }

  .ns-blog-sidebar-divider {
    display: none;
  }
}

@media (max-width: 768px) {
  .ns-blog-main,
  .ns-blog-single-main {
    padding-top: 10px;
  }

  .ns-blog-hub,
  .ns-blog-single-shell {
    gap: 22px;
  }

  .ns-blog-page-header {
    text-align: left;
  }

  .ns-blog-page-title {
    font-size: 36px;
  }

  .ns-blog-topic-tabs {
    justify-content: flex-start;
  }

  .ns-blog-section-title {
    margin-bottom: 12px;
    font-size: 24px;
  }

  .ns-blog-list-item {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px 0;
  }

  .ns-blog-side-item,
  .ns-blog-popular-item {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 10px;
    padding: 10px 0;
  }

  .ns-blog-list-title,
  .ns-blog-grid-title,
  .ns-blog-featured-title {
    font-size: 23px;
  }

  .ns-blog-related-grid,
  .ns-blog-post-nav {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .ns-blog-grid-item,
  .ns-blog-related-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  }

  .ns-blog-grid-item {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px 0;
  }

  .ns-blog-grid-item:last-child,
  .ns-blog-related-item:last-child {
    border-bottom: 0;
  }

  /* Single post mobile */
  .ns-blog-single-title {
    font-size: 34px;
  }

  .ns-blog-single-lead {
    font-size: 17px;
  }

  .ns-blog-single-content {
    font-size: 17px;
    line-height: 1.6;
  }

  .ns-blog-single-layout {
    grid-template-columns: 1fr;
  }

  .ns-blog-single-sidebar {
    position: static;
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .ns-blog-single-meta {
    gap: 4px;
  }

  .ns-blog-author-bio {
    flex-direction: column;
    text-align: center;
    padding: 28px 20px 28px 24px;
  }

  .ns-blog-author-bio-avatar img {
    width: 72px;
    height: 72px;
  }

  .ns-blog-author-bio-name {
    justify-content: center;
    flex-wrap: wrap;
  }

  .ns-blog-author-bio-text {
    max-width: 100%;
  }

  .ns-blog-author-bio-cta {
    justify-content: center;
    flex-wrap: wrap;
  }

  .ns-blog-cta-inner {
    padding: 28px 20px;
  }

  .ns-blog-cta-form {
    max-width: 100%;
  }

  .ns-blog-post-nav-item {
    padding: 14px;
  }

  .ns-blog-post-nav-item--next {
    text-align: left;
  }
}
