/**
 * Theme Name:       NhatDong
 * Theme URI:        https://bizbudding.com/mai-theme/
 * Description:      Mai Reach theme for the Genesis Framework.
 * Author:           BizBudding
 * Author URI:       https://bizbudding.com/
 * Version:          2.1.1
 * Text Domain:      mai-reach
 * Template:         genesis
 * Template Version: 3.3.5
 * License:          GPL-2.0-or-later
 * License URI:      http://www.gnu.org/licenses/gpl-2.0.html
 */


 .has-transparent-header.mobile-menu-visible,.header-stuck,.single:not(.has-page-header){
	--site-header-background:var(--color-heading);
	--title-area-color:var(--color-white);
	--menu-item-link-color:var(--color-white)
}

 .hero {
	background-attachment: fixed; 
	background-repeat: no-repeat; 
	background-size: cover; 
	background-position: top center; 
	padding: 100px 0; 
	color: #fff; 
	text-align: center;
  }

.single .entry-content>:not(blockquote):not(figure):not([class^=wp-block-]) a, .wp-block-single-post .entry-footer a {
    color: #0B5CFF;
    text-decoration: underline;
    text-decoration-color: rgba(11, 92, 255, 0.35);
    text-underline-offset: 4px;
    font-weight: 600;
    background-image: none;
    transition: color 0.18s ease, text-decoration-color 0.18s ease;
}


.single .entry-content>:not(blockquote):not(figure):not([class^=wp-block-]) a:focus, .single .entry-content>:not(blockquote):not(figure):not([class^=wp-block-]) a:hover, .wp-block-single-post .entry-footer a:focus, .wp-block-single-post .entry-footer a:hover {
	color: #0D6BDE;
    text-decoration: underline;
    text-decoration-color: #0D6BDE;
    background-image: none;
    animation: none;
}

.page-header-inner {
    max-width: var(--page-header-inner-max-width,var(--breakpoint-xl));
}

.page-header h1 {
    font-size: var(--h1-font-size,var(--font-size-xxl));
}

.message-page .content .entry {
	background-position: left center;
	background-repeat: no-repeat;
	border: none !important;
	padding: 40px 0 40px 30%;
	padding: 4rem 0 4rem 30%;
}

/**
 * Genesis Pro admin page styling.
 */

 .btn {
	appearance: none;
	display: flex;
	color: var(--color-heading);
	box-shadow: var(--box-shadow-small);
	padding: 1.2rem 1.4rem;
	font-size: 1.5rem;
	line-height: 1;
	font-weight: 500;
	align-items: center;
	justify-content: center;
	border-radius: 0.25rem;
	background-color: #fff;
	border: 1px solid var(--color-white);
	text-decoration: none;
	transition-duration: 0.2s;
}

.btn:hover {
	cursor: pointer;
	background-color: var(--color-white);
	color: var(--color-brand);
	box-shadow: var(--box-shadow);
}

.btn-secondary {
	color: var(--color-brand);
	border-color: var(--color-brand);
}

.btn-secondary:hover {
	color: var(--color-white);
	background-color: var(--color-brand);
}

.gb-hero {
	display: flex;
	align-items: center;
	/* padding: 40px 4%; */
	color: var(--color-white);
	background-color: #06c;
	background-image: linear-gradient(90deg, #06c 0%, #4eb0d3 100%);
}

.gb-hero__actions {
	display: flex;
	align-items: center;
	margin-left: auto;
}

.gb-hero__actions a {
	text-decoration: none;
}

.gb-hero > div > .btn {
	margin-right: 0.5rem;
}

.gb-hero img {
	width: 300px;
}

.gb-hero__actions img {
	width: 40px;
	filter: invert(1);
	margin-right: 10px;
}

.gb-hero h3 {
	display: block;
	color: #fff;
	font-size: 1.17em;
	margin-bottom: 0;
}

.gb-content {
	flex: 5;
}

.gb-content-body {
	padding: 4%;
	display: flex;
	grid-gap: 6em;
}

ul {
	list-style: inside;
}

.gen-feature-table {
	margin-top: 50px;
	flex: 3;
}

.gen-feature-table--col {
	text-align: center;
	border-radius: 6px;
	padding: 40px;
	background-image: url(https://wpengine.com/wp-content/uploads/2020/07/gcb_gen_free_plan_bg.png);
	background-size: cover;
	color: var(--color-gray);
}

.gen-feature-table--col:last-of-type {
	background-color: #06c;
	background-image: linear-gradient(45deg, #06c 0%, #4eb0d3 100%);
	color: var(--color-white);
	margin-top: 0;
	margin-bottom: 0;
	margin-right: 0;
	box-shadow: var(--box-shadow);
	margin-left: auto;
}

.gen-feature-table--col:last-of-type a.btn {
	text-decoration: none;
	color: var(--color-heading);
}

.gen-feature-table--col:last-of-type a.btn:hover {
	color: var(--color-brand);
}

.gen-feature-table--col h3 {
	color: var(--color-brand);
	font-size: 2rem;
	font-weight: 600;
	margin-top: 0;
	line-height: 1.2;
}

.gen-feature-table--col:last-of-type h3 {
	color: var(--color-white);
}

.gen-feature-table--col ul {
	list-style-type: none;
	padding-left: 0;
}

.gen-feature-table--col li {
	position: relative;
	font-size: 1.2rem;
	font-weight: 500;
	margin-bottom: 15px;
	padding-bottom: 15px;
	border-bottom: dotted 1px rgba(255, 255, 255, 0.5);
}

.gen-feature-table--col li:last-of-type {
	border-bottom: none;
}

@media (max-width: 680px) {

	.gb-hero__actions {
		flex-direction: column;
		align-items: flex-start;
		margin-top: 25px;
	}

	.gb-hero__actions > .btn {
		margin-bottom: 0.5rem;
	}

	.gb-hero__actions input {
		margin-left: 0;
		width: auto;
	}

	.gen-feature-table--col {
		width: auto;
	}

	.gb-content-body,
	.gb-hero {
		display: block;
	}
}

 
@media (min-width:800px) {
	.single .content{
		padding:2em;
		background: #fff;
		border: 1px solid #cfd8dc;
		box-sizing: border-box;
		-moz-box-sizing: border-box;
		-webkit-box-sizing: border-box;
		border-radius: 2px;
		box-shadow: 0 7px 50px 0 rgba(207,216,220,.5);		
	}	

	.sidebar .widget {
		padding:1em;
		border: 1px solid #ddd;
		box-sizing: border-box;
		-moz-box-sizing: border-box;
		-webkit-box-sizing: border-box;
	}
	
}

.sidebar .search-form {
	width: 100%;
}

.sidebar .widget_search {
	padding: 0;
}


.sidebar .enews-widget {
	background-color: #002838;
}

.sidebar .enews-widget .widget-title {
	color: #fff;
}

.sidebar .enews-widget p {
	color: #fff;
	margin-bottom: 24px;
	margin-bottom: 2.4rem;
	text-align: center;
}

.sidebar .enews-widget input[type="email"] {
	color: #666;
	font-size: 15px;
	font-size: 1.5rem;
}

.sidebar .enews-widget input[type="submit"] {
	margin: 16px auto;
	margin: 1.6rem auto;
	text-align: center;
	width: 100%;
}

.site-footer a {
	color: #fff;
}

.site-footer a:hover {
    text-decoration: none;
    background-image: linear-gradient(45deg,#ffc08c,#aa278c 30%,#0ecad4);
    background-position: 0 100%;
    background-repeat: repeat-x;
    background-size: 100% 2px;
    transition: background-size .3s;
}


/* ==========================================================
   1. CHỐNG TRÀN TOÀN TRANG MÀ KHÔNG LÀM HỎNG POSITION: STICKY
   ========================================================== */
html, body {
  overflow-x: clip !important; /* Dùng clip thay cho hidden để giữ tính năng sticky */
  max-width: 100% !important;
}

body.home {
  overflow-x: hidden !important; /* Riêng trang chủ dùng hidden */
}

/* Đảm bảo trang bài viết đơn cho phép sticky hoạt động */
body.single-post,
body.single-post html {
  overflow: visible !important;
  overflow-x: clip !important;
}

/* ==========================================================
   2. KHUNG SIDEBAR CUỘN DÍNH: MỤC LỤC + NEWSLETTER (CỘT PHẢI)
   (Chỉ áp dụng trên màn hình máy tính >= 1000px)
   ========================================================== */
@media (min-width: 1000px) {
  body.single-post .content.has-wide-content,
  body.single-post .content-sidebar-wrap {
    max-width: 1440px !important;
    width: calc(100% - 64px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* Grid 2 cột: Cột 1 là Nội dung bài viết (Trái), Cột 2 là Sidebar/TOC (Phải) */
  body.single-post .entry-content-single {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 320px) !important;
    column-gap: 56px !important;
    align-items: start !important;
  }

  body.single-post .entry-content-single > * {
    grid-column: 1 !important;
  }

  /* Khung bọc cả TOC và Form ở cột PHẢI */
  body.single-post .entry-content-single > .single-post-sticky-sidebar,
  body.single-post .entry-content-single > .mai-toc {
    grid-column: 2 !important;
    grid-row: 1 / span 999 !important;
    position: sticky !important;
    top: 108px !important;
    align-self: start !important;
    max-height: calc(100vh - 124px) !important;
    overflow-y: auto !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    padding-left: 4px;
    scrollbar-width: thin;
  }

  /* Reset lại mai-toc khi nằm trong khung sidebar */
  body.single-post .single-post-sticky-sidebar .mai-toc {
    position: static !important;
    max-height: none !important;
    overflow: visible !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 999px) {
  body.single-post .entry-content-single {
    display: block !important;
  }
  body.single-post .entry-content-single > .mai-toc,
  body.single-post .entry-content-single > .single-post-sticky-sidebar {
    position: static !important;
    max-height: none !important;
    overflow: visible !important;
    margin-bottom: 28px !important;
  }
}

/* ==========================================================
   CTA ĐĂNG KÝ TÀI LIỆU TRÊN MỤC LỤC (.nd-toc-newsletter-cta)
   Thiết kế chuẩn Zoom Design System (Midnight Navy & Electric Blue)
   Click mượt chuyển thẳng xuống form đăng ký dưới footer (#vndd-footer-subscribe)
   ========================================================== */
.nd-toc-newsletter-cta {
  width: 100% !important;
  box-sizing: border-box !important;
}

.nd-toc-cta-card {
  display: block !important;
  background: #00053D !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 12px !important;
  padding: 16px 16px 14px !important;
  text-decoration: none !important;
  box-shadow: 0 6px 18px rgba(0, 5, 61, 0.14) !important;
  box-sizing: border-box !important;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s, border-color 0.2s !important;
  cursor: pointer !important;
}

.nd-toc-cta-card:hover {
  transform: translateY(-2px) !important;
  border-color: #0B5CFF !important;
  box-shadow: 0 10px 24px rgba(11, 92, 255, 0.22) !important;
}

.nd-toc-cta-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  padding: 3px 8px !important;
  background: rgba(11, 92, 255, 0.2) !important;
  color: #70A6FF !important;
  border-radius: 6px !important;
  font-family: 'Be Vietnam Pro', system-ui, sans-serif !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: 0.3px !important;
  margin-bottom: 8px !important;
}

.nd-toc-cta-badge svg {
  display: inline-block !important;
  stroke: #70A6FF !important;
}

.nd-toc-cta-title {
  font-family: 'Be Vietnam Pro', system-ui, sans-serif !important;
  font-size: 14.5px !important;
  font-weight: 700 !important;
  color: #FFFFFF !important;
  line-height: 1.35 !important;
  margin: 0 0 4px 0 !important;
}

.nd-toc-cta-desc {
  font-family: 'Be Vietnam Pro', system-ui, sans-serif !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  color: #CBD6F4 !important;
  line-height: 1.45 !important;
  margin: 0 0 12px 0 !important;
}

.nd-toc-cta-action {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  width: 100% !important;
  min-height: 34px !important;
  padding: 6px 12px !important;
  background: #0B5CFF !important;
  color: #FFFFFF !important;
  border-radius: 8px !important;
  font-family: 'Be Vietnam Pro', system-ui, sans-serif !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  box-sizing: border-box !important;
  transition: background 0.15s ease, transform 0.15s ease !important;
}

.nd-toc-cta-action svg {
  display: inline-block !important;
  transition: transform 0.2s ease !important;
}

.nd-toc-cta-card:hover .nd-toc-cta-action {
  background: #094CD6 !important;
}

.nd-toc-cta-card:hover .nd-toc-cta-action svg {
  transform: translateY(2px) !important;
}



/* Hide category/tag metadata on archive cards */
body.is-archive .entry-archive .entry-meta-after-content,
body.is-archive .entry-archive .entry-terms-category,
body.is-archive .entry-archive .entry-terms-post_tag{display:none!important}




/* NhatDong accessibility patch 2026-09-17 */
:root {
  --nd-a11y-navy: #062b36;
  --nd-a11y-orange-dark: #9a3d00;
  --nd-a11y-focus: #0d66c2;
}

.menu-item-button > .menu-item-link.button,
body .wp-block-button .wp-block-button__link.button:not(.button-outline) {
  color: var(--nd-a11y-navy) !important;
}

.menu-item-button > .menu-item-link.button span {
  color: inherit !important;
}

.wp-block-button__link.button.button-outline {
  color: var(--nd-a11y-orange-dark) !important;
  border-color: var(--nd-a11y-orange-dark) !important;
}

.wp-block-button__link.button.button-outline:hover,
.wp-block-button__link.button.button-outline:focus-visible {
  color: #ffffff !important;
  background-color: var(--nd-a11y-orange-dark) !important;
  border-color: var(--nd-a11y-orange-dark) !important;
}

.menu-item-link:focus-visible,
.wp-block-button__link:focus-visible,
#site-footer a:focus-visible {
  outline: 3px solid var(--nd-a11y-focus) !important;
  outline-offset: 3px;
}

#site-footer .wp-block-column ul:not(.wp-block-social-links) > li > a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-block: 8px;
  box-sizing: border-box;
}

#site-footer .wp-block-social-link-anchor {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  box-sizing: border-box;
}
/* End NhatDong accessibility patch 2026-09-17 */

/* NhatDong header navigation: contained desktop mega menu, working mobile drawer */
@media (min-width: 1000px) {
  #nav-header-right { position: static !important; }
  .site-header #nav-header-right > ul > li > .menu-item-link {
    font-size: 15px !important;
    line-height: 1.4;
  }
  .site-header #nav-header-right > ul > li.menu-item-button > .menu-item-link.button {
    padding: 11px 14px !important;
    background: #a84920 !important;
    color: #fff !important;
    border-color: #a84920 !important;
  }
  .site-header #nav-header-right .mega-menu-parent > .sub-menu:not(.nd-mega-menu-rich) {
    top: 100% !important;
    left: 50% !important;
    right: auto !important;
    width: min(1120px, calc(100vw - 48px)) !important;
    max-width: calc(100vw - 48px) !important;
    box-sizing: border-box;
    transform: translateX(-50%) !important;
  }
}

@media (max-width: 999px) {
  .site-header .menu-toggle {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    min-height: 48px !important;
    padding: 8px !important;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .site-header .menu-toggle .menu-toggle-icon { width: 24px !important; }

  body.mobile-menu-visible .site-header .header-right {
    display: block !important;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 1001 !important;
    background: #062b36 !important;
    box-shadow: 0 16px 28px rgba(0, 0, 0, .22);
  }
  body.mobile-menu-visible .site-header #nav-header-right {
    display: block !important;
    position: static !important;
    width: 100% !important;
    max-height: calc(100vh - 79px) !important;
    overflow-y: auto !important;
    margin: 0 !important;
    padding: 12px 24px 24px !important;
    box-sizing: border-box;
    background: #062b36 !important;
  }
  body.mobile-menu-visible #menu-header-right {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  body.mobile-menu-visible #menu-header-right > li {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, .14);
  }
  body.mobile-menu-visible #menu-header-right > li > .menu-item-link {
    display: flex !important;
    align-items: center !important;
    min-height: 48px !important;
    width: 100% !important;
    padding: 12px 4px !important;
    box-sizing: border-box;
    color: #fff !important;
    font-size: 15px !important;
    text-decoration: none;
  }
  body.mobile-menu-visible #menu-header-right > li.menu-item-button > .menu-item-link.button {
    display: inline-flex !important;
    width: max-content !important;
    min-height: 44px !important;
    padding: 10px 16px !important;
    margin: 4px 0 !important;
    background: #a84920 !important;
    color: #fff !important;
    border-color: #a84920 !important;
  }
  body.mobile-menu-visible #menu-header-right .sub-menu {
    display: block !important;
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    padding: 0 0 12px 16px !important;
    margin: 0 !important;
    box-sizing: border-box;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }
  body.mobile-menu-visible #menu-header-right .sub-menu .menu-item-link {
    display: flex !important;
    align-items: center !important;
    min-height: 44px !important;
    padding: 10px 4px !important;
    color: rgba(255, 255, 255, .78) !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
  }
  body.mobile-menu-visible #menu-header-right .search-icon-form {
    display: block !important;
    border-bottom: 0 !important;
  }
}

/* Zoom DesignMD full-site restyle */
/* Zoom DesignMD global theme adaptation for NhatDong.com; preserve theme layout/content */
:root {
  --nd-zoom-navy: #00053D;
  --nd-zoom-navy-secondary: #232333;
  --nd-zoom-blue: #0B5CFF;
  --nd-zoom-blue-hover: #0D6BDE;
  --nd-zoom-sky: #4B96F1;
  --nd-zoom-light: #E6F0FF;
  --nd-zoom-pale: #F2F8FF;
  --nd-zoom-white: #FFFFFF;
  --nd-zoom-border: #DFE3E8;
  --nd-zoom-steel: #686F79;
  --nd-zoom-font: "Almaden Sans", "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}
/* Single post content inherits the theme's white background; no forced site-inner color. */
body, input, select, textarea, button { font-family: var(--nd-zoom-font) !important; color: var(--nd-zoom-navy); }
body { color: var(--nd-zoom-navy); }
body.has-dark-header .site-header, body .site-header { color: var(--nd-zoom-white); }
body.has-dark-header .site-header a, body .site-header a { color: var(--nd-zoom-white); }
.site-header .site-title, .site-header .site-description,
.site-header .nav-header-right > ul > li > .menu-item-link:not(.button), .site-header .menu-toggle { color: var(--nd-zoom-white) !important; }
.site-header .nav-header-right > ul > li > .menu-item-link:not(.button):hover,
.site-header .nav-header-right > ul > li > .menu-item-link:not(.button):focus-visible { color: var(--nd-zoom-white) !important; background: rgba(11, 92, 255, .24) !important; border-radius: 12px; }
.site-header #nav-header-right > ul > li.menu-item-button > .menu-item-link.button,
.site-header #nav-header-right > ul > li.menu-item-button > .menu-item-link.button:visited {
  min-height: 40px; padding: 8px 16px !important; border: 1px solid var(--nd-zoom-blue) !important; border-radius: 12px !important;
  background: var(--nd-zoom-blue) !important; color: var(--nd-zoom-white) !important; font-family: var(--nd-zoom-font) !important;
  font-size: 14px !important; font-weight: 500 !important; line-height: 1.2 !important;
}
.site-header #nav-header-right > ul > li.menu-item-button > .menu-item-link.button:hover,
.site-header #nav-header-right > ul > li.menu-item-button > .menu-item-link.button:focus-visible { background: var(--nd-zoom-blue-hover) !important; border-color: var(--nd-zoom-blue-hover) !important; }
.site-header #nav-header-right .mega-menu-parent > .sub-menu:not(.nd-mega-menu-rich) { top: calc(50% + 20px) !important; }
.site-header #nav-header-right > ul > li:not(.mega-menu-parent).menu-item-has-children > .sub-menu {
  left: auto !important; right: 0 !important; min-width: 198px; max-width: calc(100vw - 32px); padding: 8px; box-sizing: border-box;
  background: var(--nd-zoom-white) !important; border: 1px solid var(--nd-zoom-border) !important; border-radius: 12px !important;
  box-shadow: 0 5px 15px rgba(0, 0, 0, .1) !important; z-index: 1000;
}
.site-header #nav-header-right > ul > li:not(.mega-menu-parent).menu-item-has-children > .sub-menu > li > .menu-item-link {
  display: flex; align-items: center; min-height: 44px; padding: 8px 16px; box-sizing: border-box; border-radius: 12px;
  color: var(--nd-zoom-navy) !important; font-family: var(--nd-zoom-font) !important; font-size: 16px; font-weight: 400; text-decoration: none;
}
.site-header #nav-header-right > ul > li:not(.mega-menu-parent).menu-item-has-children > .sub-menu > li > .menu-item-link:hover,
.site-header #nav-header-right > ul > li:not(.mega-menu-parent).menu-item-has-children > .sub-menu > li > .menu-item-link:focus-visible { color: var(--nd-zoom-blue-hover) !important; background: var(--nd-zoom-pale) !important; }
.site-header .sub-menu { background-color: var(--nd-zoom-white); }
.site-header .sub-menu a { color: var(--nd-zoom-navy) !important; font-family: var(--nd-zoom-font) !important; }
.site-header .sub-menu a:hover, .site-header .sub-menu a:focus-visible { color: var(--nd-zoom-blue-hover) !important; background-color: var(--nd-zoom-pale) !important; }
.site-header .menu-toggle { min-width: 48px; min-height: 48px; border-radius: 12px; }
.site-header .menu-toggle .menu-toggle-icon,
.site-header .menu-toggle .menu-toggle-icon:before,
.site-header .menu-toggle .menu-toggle-icon:after { background: var(--nd-zoom-white) !important; }

/* Core type hierarchy: Almaden Sans workhorse; retain all existing copy and block order */
.entry-content, .entry-content p, .entry-content li, .entry-content td, .entry-content th,
.wp-block-post-content, .wp-block-post-content p, .wp-block-post-content li {
  font-family: var(--nd-zoom-font) !important; color: var(--nd-zoom-navy-secondary); font-weight: 400;
}
.entry-content h1, .wp-block-post-content h1 { color: var(--nd-zoom-navy) !important; font-family: var(--nd-zoom-font) !important; font-size: clamp(32px, 3.3vw, 42px) !important; font-weight: 600 !important; line-height: 1.16 !important; }
.entry-content h2, .wp-block-post-content h2 { color: var(--nd-zoom-navy) !important; font-family: var(--nd-zoom-font) !important; font-size: clamp(28px, 2.8vw, 36px) !important; font-weight: 500 !important; line-height: 1.2 !important; }
.entry-content h3, .wp-block-post-content h3 { color: var(--nd-zoom-navy) !important; font-family: var(--nd-zoom-font) !important; font-size: clamp(22px, 2vw, 26px) !important; font-weight: 500 !important; line-height: 1.25 !important; }
.entry-content h4, .wp-block-post-content h4, .entry-content h5, .wp-block-post-content h5,
.entry-content h6, .wp-block-post-content h6 { color: var(--nd-zoom-navy) !important; font-family: var(--nd-zoom-font) !important; font-weight: 600 !important; line-height: 1.25 !important; }
body:not(.home) .entry-content a:not(.wp-block-button__link):not(.gb-button):not(.button):not(.nd-button):not(.mai-toc__link),
body:not(.home) .wp-block-post-content a:not(.wp-block-button__link):not(.gb-button):not(.button):not(.nd-button):not(.mai-toc__link) { color: var(--nd-zoom-blue) !important; text-decoration-color: currentColor; text-underline-offset: 3px; }
body:not(.home) .entry-content a:not(.wp-block-button__link):not(.gb-button):not(.button):not(.nd-button):not(.mai-toc__link):hover,
body:not(.home) .wp-block-post-content a:not(.wp-block-button__link):not(.gb-button):not(.button):not(.nd-button):not(.mai-toc__link):hover { color: var(--nd-zoom-blue-hover) !important; }
.entry-content a:focus-visible, .wp-block-post-content a:focus-visible, .site-header a:focus-visible, .site-footer a:focus-visible,
.wp-block-button__link:focus-visible, .gb-button:focus-visible { outline: 2px solid var(--nd-zoom-sky) !important; outline-offset: 3px; }

/* Zoom primary/secondary actions */
.wp-block-button__link, .gb-button, .entry-content .button, .search-form-submit, input[type="submit"], button[type="submit"] {
  min-height: 40px; padding: 8px 16px !important; border: 1px solid var(--nd-zoom-blue) !important; border-radius: 12px !important;
  background: var(--nd-zoom-blue) !important; color: var(--nd-zoom-white) !important; font-family: var(--nd-zoom-font) !important;
  font-size: 14px !important; font-weight: 500 !important; line-height: 1.2 !important; box-shadow: none; text-decoration: none !important;
}
.wp-block-button__link:hover, .gb-button:hover, .entry-content .button:hover, .search-form-submit:hover, input[type="submit"]:hover, button[type="submit"]:hover {
  border-color: var(--nd-zoom-blue-hover) !important; background: var(--nd-zoom-blue-hover) !important; color: var(--nd-zoom-white) !important;
}
.wp-block-button.is-style-outline .wp-block-button__link, .wp-block-button.is-style-outline .wp-block-button__link:visited,
.entry-content .wp-block-button.is-style-outline .wp-block-button__link { border-color: var(--nd-zoom-border) !important; background: var(--nd-zoom-white) !important; color: var(--nd-zoom-navy) !important; }
.wp-block-button.is-style-outline .wp-block-button__link:hover { border-color: var(--nd-zoom-blue-hover) !important; background: var(--nd-zoom-pale) !important; color: var(--nd-zoom-navy) !important; }

/* Cards, tables, quotes, and form controls */
.entry-grid .entry, .entry-grid article, .wp-block-post, .mai-post-grid article { border-color: var(--nd-zoom-border) !important; border-radius: 12px !important; }
.entry-content blockquote, .wp-block-post-content blockquote { border-left-color: var(--nd-zoom-blue) !important; background: var(--nd-zoom-pale); color: var(--nd-zoom-navy-secondary); }
.entry-content table, .wp-block-post-content table { border-color: var(--nd-zoom-border) !important; }
.entry-content th, .wp-block-post-content th { background: var(--nd-zoom-pale); color: var(--nd-zoom-navy); }
.entry-content td, .entry-content th, .wp-block-post-content td, .wp-block-post-content th { border-color: var(--nd-zoom-border) !important; }
.entry-content input:not([type="submit"]), .entry-content select, .entry-content textarea, .wp-block-search__input,
.wpforms-container input, .wpforms-container textarea, .wpforms-container select {
  min-height: 40px; padding: 8px 12px !important; border: 1px solid var(--nd-zoom-sky) !important; border-radius: 12px !important;
  background: var(--nd-zoom-white) !important; color: var(--nd-zoom-navy) !important; font-family: var(--nd-zoom-font) !important; font-size: 15px !important; font-weight: 400 !important;
}
.entry-content input:focus, .entry-content select:focus, .entry-content textarea:focus, .wp-block-search__input:focus,
.wpforms-container input:focus, .wpforms-container textarea:focus, .wpforms-container select:focus {
  border-color: var(--nd-zoom-blue) !important; box-shadow: 0 0 0 3px rgba(11, 92, 255, .1) !important; outline: none !important;
}

/* Existing homepage styles inherit Zoom palette and font without changing sections */
.nd-homepage {
  --ink: #00053D !important; --ink-soft: #232333 !important; --paper: #FFFFFF !important; --paper-deep: #F2F8FF !important; --white: #FFFFFF !important;
  --accent: #0B5CFF !important; --accent-dark: #0D6BDE !important; --line: #DFE3E8 !important;
  --serif: "Almaden Sans", "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif !important;
  --sans: "Almaden Sans", "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif !important;
  color: var(--nd-zoom-navy) !important; background: var(--nd-zoom-white) !important; font-family: var(--nd-zoom-font) !important;
}
.nd-homepage .eyebrow, .nd-homepage .path-num, .nd-homepage .step-index, .nd-homepage .resource-number, .nd-homepage .resource-arrow { color: var(--nd-zoom-blue-hover) !important; }
.nd-homepage .band { color: var(--nd-zoom-white) !important; background: var(--nd-zoom-navy) !important; }
.nd-homepage .experience { background: var(--nd-zoom-pale) !important; }
.nd-homepage .closing { color: var(--nd-zoom-white) !important; background: var(--nd-zoom-navy) !important; }
.nd-homepage .btn-primary, .nd-homepage .closing .btn:hover { border-color: var(--nd-zoom-blue) !important; background: var(--nd-zoom-blue) !important; color: var(--nd-zoom-white) !important; }
.nd-homepage .btn-primary:hover { border-color: var(--nd-zoom-blue-hover) !important; background: var(--nd-zoom-blue-hover) !important; }
.nd-homepage .btn-light, .nd-homepage .closing .btn { border-color: var(--nd-zoom-border) !important; background: var(--nd-zoom-white) !important; color: var(--nd-zoom-navy) !important; }
.nd-homepage .btn { min-height: 40px; border-radius: 12px !important; font-family: var(--nd-zoom-font) !important; font-size: 14px !important; font-weight: 500 !important; }
.nd-homepage h1 { color: var(--nd-zoom-navy) !important; font-family: var(--nd-zoom-font) !important; font-weight: 600 !important; line-height: 1.12 !important; }
.nd-homepage .learning h2, .nd-homepage .experience-intro h2, .nd-homepage .resources-top h2 { color: var(--nd-zoom-navy) !important; }
.nd-homepage .band h2, .nd-homepage .band h3, .nd-homepage .closing h2 { color: var(--nd-zoom-white) !important; }
.nd-homepage .section-head h2, .nd-homepage .experience-intro h2, .nd-homepage .resources-top h2, .nd-homepage .closing h2 { font-family: var(--nd-zoom-font) !important; font-weight: 500 !important; line-height: 1.14 !important; }
.nd-homepage .path h3, .nd-homepage .step h3, .nd-homepage .resource-title, .nd-homepage .hero-note strong { font-family: var(--nd-zoom-font) !important; font-weight: 500 !important; }
.nd-homepage .hero-note { background: var(--nd-zoom-blue) !important; border-radius: 12px !important; }
.nd-homepage .hero-visual img { border-radius: 12px; }
.nd-homepage .hero-note span, .nd-homepage .closing p { color: rgba(255,255,255,.82) !important; }
.nd-homepage .path + .path, .nd-homepage .pathways, .nd-homepage .step, .nd-homepage .steps,
.nd-homepage .career-list, .nd-homepage .career-row, .nd-homepage .resource-list, .nd-homepage .resource { border-color: var(--nd-zoom-border) !important; }
.nd-homepage .band .path p { color: rgba(255,255,255,.82) !important; }
.nd-latest-posts { background: var(--nd-zoom-white) !important; color: var(--nd-zoom-navy) !important; }
.nd-latest-posts h2, .nd-latest-posts h3, .nd-latest-posts p { color: var(--nd-zoom-navy) !important; }
.nd-homepage .entry, .nd-homepage .entry-grid .entry { background: var(--nd-zoom-white) !important; border-color: var(--nd-zoom-border) !important; border-radius: 12px !important; }

/* Dark site footer retains contrast on every template */
.site-footer .wp-block-group.has-background, .site-footer .wp-block-group[style*="background-color"] { background-color: var(--nd-zoom-navy) !important; color: var(--nd-zoom-white) !important; }
.site-footer .wp-block-columns .wp-block-column ul.wp-block-list li > a {
  font-size: 15px !important; line-height: 1.5 !important;
}
.site-footer, .site-footer .wp-block-group.has-background, .site-footer .wp-block-group.has-background p,
.site-footer .wp-block-group.has-background h1, .site-footer .wp-block-group.has-background h2,
.site-footer .wp-block-group.has-background h3, .site-footer .wp-block-group.has-background a { font-family: var(--nd-zoom-font) !important; }
.site-footer .wp-block-group.has-background a:not(.wp-block-social-link-anchor) { color: var(--nd-zoom-white) !important; }
.site-footer .wp-block-group.has-background .wp-block-button__link { background: var(--nd-zoom-blue) !important; color: var(--nd-zoom-white) !important; }

/* Custom-designed inner pages use their established wrappers and keep their content */
.nd-about, .nd-resources, .nd-roadmap { color: var(--nd-zoom-navy-secondary) !important; font-family: var(--nd-zoom-font) !important; }
.nd-about, .nd-resources, .nd-roadmap { --navy: #00053D !important; --ink: #232333 !important; --orange: #0B5CFF !important; --cream: #F2F8FF !important; --line: #DFE3E8 !important; }
.nd-about .nd-about-hero, .nd-resources .nd-hero, .nd-roadmap .hero,
.nd-about .nd-cta, .nd-resources .nd-signup, .nd-roadmap .cta { background: var(--nd-zoom-navy) !important; color: var(--nd-zoom-white) !important; }
.nd-about .nd-about-hero h1, .nd-resources .nd-hero h1, .nd-roadmap .hero h1,
.nd-about .nd-cta h2, .nd-resources .nd-signup h2, .nd-roadmap .cta h2 { color: var(--nd-zoom-white) !important; font-family: var(--nd-zoom-font) !important; font-weight: 600 !important; }
.nd-about h2, .nd-about h3, .nd-resources h2, .nd-resources h3, .nd-roadmap h2, .nd-roadmap h3 { color: var(--nd-zoom-navy) !important; font-family: var(--nd-zoom-font) !important; }
.nd-about .nd-about-hero p, .nd-resources .nd-hero p, .nd-roadmap .hero p,
.nd-about .nd-cta p, .nd-resources .nd-signup p, .nd-roadmap .cta p { color: rgba(255,255,255,.82) !important; }
.nd-about .nd-pillar, .nd-resources .nd-resource-card, .nd-resources .nd-hero-card,
.nd-roadmap .how-card, .nd-roadmap .phase { border-color: var(--nd-zoom-border) !important; border-radius: 12px !important; background: var(--nd-zoom-white) !important; }
.nd-about .nd-roadmap, .nd-resources .nd-promise, .nd-roadmap .roadmap-shell { border-radius: 12px !important; background: var(--nd-zoom-pale) !important; }
.nd-about .nd-button, .nd-resources .nd-signup button, .nd-resources .nd-signup input[type=submit], .nd-roadmap .button {
  min-height: 40px; border: 1px solid var(--nd-zoom-blue) !important; border-radius: 12px !important; background: var(--nd-zoom-blue) !important;
  color: var(--nd-zoom-white) !important; font-family: var(--nd-zoom-font) !important; font-size: 14px !important; font-weight: 500 !important;
}
.nd-about .nd-button:hover, .nd-resources .nd-signup button:hover, .nd-resources .nd-signup input[type=submit]:hover, .nd-roadmap .button:hover {
  border-color: var(--nd-zoom-blue-hover) !important; background: var(--nd-zoom-blue-hover) !important;
}
.nd-about .nd-number, .nd-resources .nd-icon { background: var(--nd-zoom-pale) !important; color: var(--nd-zoom-blue) !important; }
.nd-about .nd-pillar, .nd-resources .nd-resource-card, .nd-roadmap .how-card { box-shadow: 0 5px 15px rgba(0,0,0,.1); }

/* Higher-specificity rules override legacy page-scoped inline styles */
html body.home.home.has-dark-header .site-header.is-scrolled,
html body.home.home.has-dark-header.header-stuck .site-header { background: #00053D !important; background-color: #00053D !important; }
html body.home.home.has-dark-header.is-scrolled .site-header .site-header-wrap,
html body.home.home.has-dark-header.header-stuck .site-header .site-header-wrap { background: transparent !important; background-color: transparent !important; }
html body.home.home.has-dark-header .site-header #nav-header-right > ul > li.menu-item-button > .menu-item-link.button,
html body.home.home.has-dark-header .site-header #nav-header-right > ul > li.menu-item-button > .menu-item-link.button:visited {
  min-height: 40px; padding: 8px 16px !important; border: 1px solid var(--nd-zoom-blue) !important;
  border-radius: 12px !important; background: var(--nd-zoom-blue) !important; color: var(--nd-zoom-white) !important;
  font-family: var(--nd-zoom-font) !important; font-size: 14px !important; font-weight: 500 !important; line-height: 1.2 !important;
}
html body.home.home.has-dark-header .site-header #nav-header-right > ul > li.menu-item-button > .menu-item-link.button:hover { background: #0D6BDE !important; background-color: #0D6BDE !important; border-color: #0D6BDE !important; }
html body.home .nd-homepage { --ink: #00053D !important; --ink-soft: #232333 !important; --paper: #FFFFFF !important; --paper-deep: #F2F8FF !important; --white: #FFFFFF !important; --accent: #0B5CFF !important; --accent-dark: #0D6BDE !important; --line: #DFE3E8 !important; }
html body.home .nd-homepage .btn-primary { background: var(--nd-zoom-blue) !important; border-color: var(--nd-zoom-blue) !important; color: var(--nd-zoom-white) !important; }
html body.home .nd-homepage .btn-light, html body.home .nd-homepage .closing .btn { background: var(--nd-zoom-white) !important; border-color: var(--nd-zoom-border) !important; color: var(--nd-zoom-navy) !important; }
html body.home .nd-latest-posts { background: var(--nd-zoom-white) !important; color: var(--nd-zoom-navy) !important; }
html body.home .nd-latest-posts h2 { color: var(--nd-zoom-navy) !important; font-family: var(--nd-zoom-font) !important; font-size: 32px !important; font-weight: 600 !important; line-height: 1.2 !important; letter-spacing: normal !important; }
html body.home .nd-latest-posts article { background: #FFFFFF !important; border: none !important; border-radius: 15px !important; box-shadow: 0 4.28px 17.1px rgba(10, 20, 30, 0.1) !important; }
html body.home .nd-latest-posts article h3, html body.home .nd-latest-posts article p { color: var(--nd-zoom-navy) !important; }
html body.home .entry-content a:not(.wp-block-button__link):not(.btn):not(.button):not(.gb-button):not(.entry-title-link):not(.entry-image-link) { color: var(--nd-zoom-blue) !important; }

html body .site-header.is-scrolled, html body .site-header.header-stuck { background: var(--nd-zoom-navy) !important; background-color: var(--nd-zoom-navy) !important; }
html body.has-dark-header.has-dark-header .site-header.is-scrolled, html body.has-dark-header.has-dark-header .site-header.header-stuck { background: #00053D !important; background-color: #00053D !important; }
html body .site-header #nav-header-right > ul > li.menu-item-button > .menu-item-link.button,
html body .site-header #nav-header-right > ul > li.menu-item-button > .menu-item-link.button:visited { background: var(--nd-zoom-blue) !important; border-color: var(--nd-zoom-blue) !important; color: var(--nd-zoom-white) !important; }
html body .site-header #nav-header-right > ul > li.menu-item-button > .menu-item-link.button:hover { background: var(--nd-zoom-blue-hover) !important; border-color: var(--nd-zoom-blue-hover) !important; }
html body .site-header #nav-header-right .mega-menu-parent > .sub-menu:not(.nd-mega-menu-rich) { top: calc(50% + 20px) !important; }
html body .nd-about.nd-about, html body .nd-resources.nd-resources, html body .nd-roadmap.nd-roadmap { --navy: #00053D !important; --ink: #232333 !important; --orange: #0B5CFF !important; --cream: #F2F8FF !important; --line: #DFE3E8 !important; }
html body .nd-about .nd-about-hero, html body .nd-resources .nd-hero, html body .nd-roadmap .hero,
html body .nd-about .nd-cta, html body .nd-resources .nd-signup, html body .nd-roadmap .cta { background: var(--nd-zoom-navy) !important; }
html body .nd-about .nd-pillar, html body .nd-resources .nd-resource-card, html body .nd-roadmap .how-card,
html body .nd-roadmap .phase, html body .nd-resources .nd-hero-card { border-radius: 12px !important; border-color: var(--nd-zoom-border) !important; }
html body .nd-about .nd-roadmap, html body .nd-resources .nd-promise, html body .nd-roadmap .roadmap-shell { border-radius: 12px !important; background: var(--nd-zoom-pale) !important; }
html body .nd-about .nd-about-hero .eyebrow, html body .nd-resources .nd-hero .eyebrow,
html body .nd-roadmap .hero .eyebrow, html body .nd-roadmap .hero .kicker { color: var(--nd-zoom-sky) !important; }
html body .nd-about .nd-about-section p, html body .nd-resources .nd-section p,
html body .nd-resources .nd-promise p, html body .nd-resources .nd-resource-card p,
html body .nd-roadmap .intro p, html body .nd-roadmap .how-card p, html body .nd-roadmap .phase p { color: var(--nd-zoom-navy-secondary) !important; }
html body.page-id-40 .entry-content .nd-about.nd-about .nd-button, html body .nd-roadmap.nd-roadmap .button { min-height: 40px; padding: 8px 16px; border: 1px solid #0B5CFF !important; border-radius: 12px !important; background: #0B5CFF !important; background-color: #0B5CFF !important; color: #FFFFFF !important; font-size: 14px !important; font-weight: 500 !important; }
html body .nd-about.nd-about .nd-button:hover, html body .nd-roadmap.nd-roadmap .button:hover { background: #0D6BDE !important; background-color: #0D6BDE !important; }
html body .site-footer > .wp-block-group { background: var(--nd-zoom-navy) !important; color: var(--nd-zoom-white) !important; }

html body.home .nd-homepage h1 { font-size: clamp(38px, 4vw, 50px) !important; line-height: 1.1 !important; }
html body.home .nd-homepage .section-head h2, html body.home .nd-homepage .experience-intro h2,
html body.home .nd-homepage .resources-top h2, html body.home .nd-homepage .closing h2 { font-size: clamp(30px, 3.4vw, 42px) !important; line-height: 1.15 !important; }
html body.home .nd-homepage .path h3, html body.home .nd-homepage .step h3,
html body.home .nd-homepage .resource-title { font-size: clamp(22px, 2.4vw, 25px) !important; line-height: 1.3 !important; }
html body.home .nd-latest-posts .entry-title-link { font-size: 20px !important; line-height: 1.3 !important; }
@media (max-width: 639px) {
  html body.home .nd-homepage h1 { font-size: 36px !important; line-height: 1.14 !important; }
  html body.home .nd-homepage .section-head h2, html body.home .nd-homepage .experience-intro h2,
  html body.home .nd-homepage .resources-top h2, html body.home .nd-homepage .closing h2 { font-size: 30px !important; line-height: 1.18 !important; }
  html body.home .nd-homepage .path h3, html body.home .nd-homepage .step h3,
  html body.home .nd-homepage .resource-title { font-size: 22px !important; line-height: 1.3 !important; }
}

/* Zoom palette for Mai TOC in single articles. */
html body.single-post .mai-toc.mai-toc-default {
  background: #F2F8FF !important;
  border: 1px solid #DCE8F8 !important;
  border-radius: 12px !important;
  box-shadow: 0 5px 18px rgba(0, 5, 61, .06) !important;
  scrollbar-color: #B8CDEE transparent;
  scrollbar-width: thin;
  --mai-toc-background-color: #F2F8FF;
}
html body.single-post .mai-toc.mai-toc-default .mai-toc__showhide > .mai-toc__summary {
  margin: 0 0 10px !important;
  padding: 10px 12px !important;
  background: #E6F0FF !important;
  border: 0 !important;
  border-radius: 8px !important;
  color: #00053D !important;
  font-family: var(--nd-zoom-font) !important;
  font-size: 16px !important;
  font-weight: 650 !important;
  line-height: 1.4 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}
html body.single-post .mai-toc.mai-toc-default .mai-toc__toggle {
  color: #0B5CFF;
  font-size: 13px;
  font-weight: 600;
  text-transform: none !important;
}
html body.single-post .mai-toc.mai-toc-default .mai-toc__list {
  margin: 0;
  padding: 0;
  list-style: none;
}
html body.single-post .mai-toc.mai-toc-default .mai-toc--parent > .mai-toc__listitem {
  background: transparent !important;
  border-bottom: 1px solid rgba(0, 5, 61, .10) !important;
}
html body.single-post .mai-toc.mai-toc-default .mai-toc--parent > .mai-toc__listitem:last-child {
  border-bottom: 0 !important;
}
html body.single-post .mai-toc.mai-toc-default .mai-toc__list .mai-toc__listitem .mai-toc__link {
  display: block;
  padding: 10px 5px;
  color: #232333 !important;
  background: transparent !important;
  background-image: none !important;
  border-radius: 8px;
  font-family: var(--nd-zoom-font) !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  line-height: 1.45 !important;
  text-decoration: none !important;
}
html body.single-post .mai-toc.mai-toc-default .mai-toc__list .mai-toc__listitem .mai-toc__link:hover,
html body.single-post .mai-toc.mai-toc-default .mai-toc__list .mai-toc__listitem .mai-toc__link:focus-visible {
  color: #0B5CFF !important;
  background: #E6F0FF !important;
  background-image: none !important;
}
html body.single-post .mai-toc.mai-toc-default .mai-toc__link:focus-visible,
html body.single-post .mai-toc.mai-toc-default .mai-toc__showhide > .mai-toc__summary:focus-visible {
  outline: 2px solid #0B5CFF;
  outline-offset: 2px;
}
html body.single-post .mai-toc.mai-toc-default .mai-toc__details > .mai-toc__summary {
  background: transparent !important;
  text-transform: none !important;
}
html body.single-post .mai-toc.mai-toc-default .mai-toc--child {
  padding-left: 12px;
  border-left: 2px solid #DCE8F8;
}

@media (max-width: 999px) {
  .site-header .header-right, .site-header #nav-header-right { background: var(--nd-zoom-navy) !important; }
  body.mobile-menu-visible #menu-header-right > li.menu-item-button > .menu-item-link.button { min-height: 44px !important; border-radius: 12px !important; background: var(--nd-zoom-blue) !important; color: var(--nd-zoom-white) !important; }
  .site-header #nav-header-right > ul > li:not(.mega-menu-parent).menu-item-has-children > .sub-menu { width: 100%; }
  .site-header #nav-header-right > ul > li:not(.mega-menu-parent).menu-item-has-children > .sub-menu > li > .menu-item-link { color: var(--nd-zoom-navy) !important; }
}
@media (max-width: 639px) {
  .entry-content p, .entry-content li, .wp-block-post-content p, .wp-block-post-content li { font-size: 16px; line-height: 1.5; }
  .nd-homepage .wrap { width: calc(100% - 32px); }
}

/* === Site-wide: hide theme Page Header block on all Page post types (2026-10-28) === */
body.page #page-header{display:none!important}

/* === Site-wide: force center-aligned text inside any .hero block on Pages (2026-10-28) === */
body.page:not(.home) .hero{text-align:center!important}

/* === Fix: white gap above full-width Custom HTML hero blocks (2026-10-28) ===
   Root cause: theme's alignfull-first-margin negation rule only fires when the
   entry-content's literal first child is .alignfull; our pages start with an
   inline <style> tag first, so the negation never applies and the wrapper's
   default top margin (--content-sidebar-wrap-margin-top) shows as a gap. */
body.page .entry-content > style:first-child + div{margin-top:calc(var(--content-sidebar-wrap-margin-top,54px)*-1)!important}

/* === Fix: hero h1/.lead/.stats boxes weren't horizontally centered (2026-10-28) ===
   Each has its own max-width but margin-left/right were 0, not auto, so the box
   itself sat flush-left inside the wider .hero-inner even though text-align:center
   only centers the text inside that box, not the box itself. */
body.page:not(.home) .hero h1,
body.page:not(.home) .hero .lead,
body.page:not(.home) .hero .stats{margin-left:auto!important;margin-right:auto!important}

/* === Fix: homepage's own 2-col hero was never patched against the theme's
   generic bare `.hero{text-align:center}` collision rule (pre-existing bug,
   unrelated to the other pages' centered-hero fixes above) (2026-10-28) === */
body.home .hero{text-align:left!important}


/* Zoom-style single-post hero: categories + title + excerpt + meta (left), featured image (right) */
.nd-post-hero {
  padding: 124px 0 48px !important;
  background: linear-gradient(180deg, #F2F8FF 0%, #FFFFFF 100%) !important;
  border-bottom: 1px solid #DFE3E8;
}
.nd-post-hero-wrap {
  width: min(1160px, calc(100% - 48px));
  max-width: 1160px;
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 48px;
  align-items: center;
  box-sizing: border-box;
}
.nd-post-hero-wrap:has(> .nd-post-hero-text:only-child),
.nd-post-hero-wrap.nd-post-hero-wrap--no-media {
  grid-template-columns: 1fr;
  max-width: 820px;
}
.nd-post-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}
.nd-post-cat {
  display: inline-block;
  padding: 4px 12px;
  border: 1px solid #CBD6F4;
  border-radius: 8px;
  font-family: 'Be Vietnam Pro', system-ui, sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  color: #0B5CFF !important;
  text-decoration: none !important;
  background: #E6F0FF;
  transition: background 0.18s, border-color 0.18s, color 0.18s;
}
.nd-post-cat:hover {
  background: #0B5CFF;
  border-color: #0B5CFF;
  color: #FFFFFF !important;
}
.nd-post-title {
  color: #00053D !important;
  font-family: 'Be Vietnam Pro', system-ui, sans-serif !important;
  font-size: clamp(30px, 3.8vw, 46px) !important;
  font-weight: 700 !important;
  line-height: 1.18 !important;
  letter-spacing: -0.02em;
  margin: 0 0 18px !important;
}
.nd-post-excerpt {
  color: #232333;
  font-family: 'Be Vietnam Pro', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  margin: 0 0 22px;
  max-width: 68ch;
}
.nd-post-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-family: 'Be Vietnam Pro', system-ui, sans-serif;
  font-size: 13.5px;
  color: #686F79;
  font-weight: 500;
}
.nd-post-meta .nd-post-readtime,
.nd-post-meta .nd-post-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nd-post-meta svg {
  color: #686F79;
  flex-shrink: 0;
}
.nd-post-meta .nd-post-dot {
  color: #CBD6F4;
}
.nd-post-hero .nd-post-hero-media {
  display: block;
  aspect-ratio: 16 / 10;
  max-height: none;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 5, 61, 0.12);
  border: 1px solid #DFE3E8;
  background: #E6F0FF;
}
.nd-post-hero .nd-post-hero-media picture,
.nd-post-hero .nd-post-hero-media .nd-webp-picture {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}
.nd-post-hero .nd-post-hero-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 16 / 10;
  border-radius: 0;
}
@media (max-width: 999px) {
  .nd-post-hero {
    padding: 92px 0 32px !important;
  }
}
@media (max-width: 860px) {
  .nd-post-hero {
    padding: 88px 0 32px !important;
  }
  .nd-post-hero-wrap {
    grid-template-columns: 1fr;
    gap: 24px;
    width: calc(100% - 32px);
  }
  .nd-post-hero .nd-post-hero-media {
    order: -1;
    aspect-ratio: 16 / 10;
    max-height: none;
    border-radius: 16px;
  }
  .nd-post-title {
    font-size: clamp(26px, 6vw, 32px) !important;
    margin-bottom: 14px !important;
  }
  .nd-post-excerpt {
    font-size: 15.5px;
    margin-bottom: 18px;
  }
}

/* ==========================================================================
   Bitwarden Rich Mega Menu — 3-Column Architecture (Precision Signal)
   ========================================================================== */

/* Universal Component Styles (Desktop + Mobile) */
html body .site-header #nav-header-right .sub-menu.nd-mega-menu-rich,
html body .site-header #nav-header-right .sub-menu.nd-mega-menu-rich ul,
html body .site-header #nav-header-right .sub-menu.nd-mega-menu-rich li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  min-width: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

html body .site-header #nav-header-right .sub-menu.nd-mega-menu-rich > li.nd-mega-col {
  display: block !important;
  margin: 0 !important;
}

.nd-mega-item-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
}

/* Column Headers (Eyebrow uppercase) */
.nd-mega-heading {
  font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  color: #686F79 !important;
  padding: 0 8px 10px 8px !important;
  margin: 0 !important;
  line-height: 1.2 !important;
}

/* Link Items */
html body .site-header #nav-header-right .sub-menu.nd-mega-menu-rich .nd-mega-link {
  display: flex !important;
  align-items: flex-start !important;
  gap: 12px !important;
  padding: 8px 10px !important;
  border-radius: 12px !important;
  text-decoration: none !important;
  box-sizing: border-box !important;
  transition: background-color 0.18s ease !important;
}

html body .site-header #nav-header-right .sub-menu.nd-mega-menu-rich .nd-mega-link:hover,
html body .site-header #nav-header-right .sub-menu.nd-mega-menu-rich .nd-mega-link:focus-visible {
  background-color: #F2F8FF !important;
}

/* Icon Badges (Column 1) */
.nd-mega-icon {
  width: 36px !important;
  height: 36px !important;
  border-radius: 8px !important;
  background-color: #E6F0FF !important;
  color: #0B5CFF !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  transition: background-color 0.18s ease, color 0.18s ease !important;
}

html body .site-header #nav-header-right .sub-menu.nd-mega-menu-rich .nd-mega-link:hover .nd-mega-icon {
  background-color: #0B5CFF !important;
  color: #FFFFFF !important;
}

/* Text Stack */
.nd-mega-info {
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
  min-width: 0 !important;
  flex: 1 !important;
}

.nd-mega-title {
  font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  color: #00053D !important;
  line-height: 1.3 !important;
  display: block !important;
  transition: color 0.18s ease !important;
}

html body .site-header #nav-header-right .sub-menu.nd-mega-menu-rich .nd-mega-link:hover .nd-mega-title {
  color: #0B5CFF !important;
}

.nd-mega-desc {
  font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  font-size: 11.5px !important;
  color: #686F79 !important;
  line-height: 1.35 !important;
  display: block !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* Column 2: Number Pill Badges */
.nd-mega-badge {
  width: 26px !important;
  height: 26px !important;
  min-width: 26px !important;
  border-radius: 6px !important;
  background-color: #E6F0FF !important;
  color: #0B5CFF !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  white-space: nowrap !important;
  line-height: 26px !important;
  margin-top: 2px !important;
  transition: background-color 0.18s ease, color 0.18s ease !important;
}

html body .site-header #nav-header-right .sub-menu.nd-mega-menu-rich .nd-mega-link:hover .nd-mega-badge {
  background-color: #0B5CFF !important;
  color: #FFFFFF !important;
}

/* Column 3: Featured Action Box */
.nd-mega-card {
  height: 100% !important;
  background: linear-gradient(135deg, #00053D 0%, #080D48 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 14px !important;
  padding: 20px !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1) !important;
}

.nd-mega-pill {
  display: inline-block !important;
  font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  background-color: #0B5CFF !important;
  color: #FFFFFF !important;
  padding: 4px 9px !important;
  border-radius: 4px !important;
  margin-bottom: 12px !important;
  line-height: 1.2 !important;
}

.nd-mega-card-title {
  font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
  color: #FFFFFF !important;
  margin-bottom: 8px !important;
}

.nd-mega-card-desc {
  font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  font-size: 12px !important;
  line-height: 1.55 !important;
  color: #CBD6F4 !important;
  margin: 0 !important;
}

html body .site-header #nav-header-right .sub-menu.nd-mega-menu-rich .nd-mega-card a.nd-mega-cta-btn,
html body .site-header #nav-header-right .sub-menu.nd-mega-menu-rich .nd-mega-card a.nd-mega-cta-btn span,
html body .site-header #nav-header-right .sub-menu.nd-mega-menu-rich .nd-mega-card a.nd-mega-cta-btn svg {
  color: #FFFFFF !important;
  stroke: #FFFFFF !important;
}

html body .site-header #nav-header-right .sub-menu.nd-mega-menu-rich .nd-mega-card a.nd-mega-cta-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  background: rgba(255, 255, 255, 0.12) !important;
  font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  padding: 11px 14px !important;
  border-radius: 8px !important;
  margin-top: 20px !important;
  text-decoration: none !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  transition: background-color 0.18s ease, border-color 0.18s ease !important;
}

html body .site-header #nav-header-right .sub-menu.nd-mega-menu-rich .nd-mega-card a.nd-mega-cta-btn:hover,
html body .site-header #nav-header-right .sub-menu.nd-mega-menu-rich .nd-mega-card a.nd-mega-cta-btn:focus-visible {
  background-color: #0B5CFF !important;
  border-color: #0B5CFF !important;
  color: #FFFFFF !important;
}

.nd-mega-cta-btn svg {
  transition: transform 0.18s ease !important;
  stroke: currentColor !important;
  fill: none !important;
}

.nd-mega-cta-btn:hover svg {
  transform: translateX(3px) !important;
}

/* DESKTOP (min-width: 1000px) */
@media (min-width: 1000px) {
  #nav-header-right .mega-menu-parent {
    position: static !important;
  }

  /* Rich 3-Column Mega Menu Container */
  html body .site-header #nav-header-right .mega-menu-parent > .sub-menu.nd-mega-menu-rich {
    position: absolute !important;
    left: 50% !important;
    transform: translateX(-50%) translateY(4px) !important;
    top: calc(100% + 4px) !important;
    width: min(920px, calc(100vw - 48px)) !important;
    max-width: calc(100vw - 48px) !important;
    display: grid !important;
    grid-template-columns: 4.8fr 4.4fr 3.4fr !important;
    gap: 20px !important;
    padding: 24px !important;
    border-radius: 18px !important;
    background: #FFFFFF !important;
    border: 1px solid #DFE3E8 !important;
    box-shadow: 0 20px 50px -10px rgba(0, 5, 61, 0.25), 0 0 0 1px rgba(223, 227, 232, 0.7) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1) 0.16s,
                transform 0.22s cubic-bezier(0.16, 1, 0.3, 1) 0.16s,
                visibility 0.22s ease 0.16s !important;
    z-index: 1000 !important;
    box-sizing: border-box !important;
  }

  /* Seamless hover bridge: connects trigger button to flyout with zero dead zone */
  html body .site-header #nav-header-right .mega-menu-parent > .sub-menu.nd-mega-menu-rich::before {
    content: '' !important;
    position: absolute !important;
    top: -55px !important;
    left: -24px !important;
    right: -24px !important;
    height: 55px !important;
    display: block !important;
    pointer-events: auto !important;
  }

  /* Reveal on hover, .is-open (JS buffered), and focus-within */
  html body .site-header #nav-header-right .mega-menu-parent:hover > .sub-menu.nd-mega-menu-rich,
  html body .site-header #nav-header-right .mega-menu-parent.is-open > .sub-menu.nd-mega-menu-rich,
  html body .site-header #nav-header-right .mega-menu-parent:focus-within > .sub-menu.nd-mega-menu-rich {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateX(-50%) translateY(0) !important;
    transition-delay: 0s !important;
  }

  .nd-mega-col-2 {
    border-left: 1px solid #F1F5F9 !important;
    padding-left: 16px !important;
  }
}

/* Mobile Drawer Styling (< 1000px) */
@media (max-width: 999px) {
  body.mobile-menu-visible .site-header .header-right,
  body.mobile-menu-visible .site-header #nav-header-right {
    background: #00053D !important;
  }

  body.mobile-menu-visible #menu-header-right .mega-menu-parent > .sub-menu.nd-mega-menu-rich {
    display: block !important;
    position: static !important;
    width: 100% !important;
    max-width: none !important;
    padding: 8px 0 16px 12px !important;
    margin: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    transform: none !important;
  }

  body.mobile-menu-visible #menu-header-right .sub-menu.nd-mega-menu-rich .nd-mega-col-2 {
    border-left: 0 !important;
    padding-left: 0 !important;
    margin-top: 14px !important;
  }

  body.mobile-menu-visible #menu-header-right .sub-menu.nd-mega-menu-rich .nd-mega-heading {
    color: #CBD6F4 !important;
    font-size: 11px !important;
    padding: 8px 4px !important;
  }

  body.mobile-menu-visible #menu-header-right .sub-menu.nd-mega-menu-rich .nd-mega-title {
    color: #FFFFFF !important;
    font-size: 13.5px !important;
  }

  body.mobile-menu-visible #menu-header-right .sub-menu.nd-mega-menu-rich .nd-mega-desc {
    color: #CBD6F4 !important;
    font-size: 11px !important;
  }

  body.mobile-menu-visible #menu-header-right .sub-menu.nd-mega-menu-rich .nd-mega-link:hover,
  body.mobile-menu-visible #menu-header-right .sub-menu.nd-mega-menu-rich .nd-mega-link:focus-visible {
    background: rgba(11, 92, 255, 0.25) !important;
  }

  body.mobile-menu-visible #menu-header-right .sub-menu.nd-mega-menu-rich .nd-mega-col-3 {
    margin-top: 16px !important;
    padding-right: 12px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-header #nav-header-right .sub-menu.nd-mega-menu-rich,
  .site-header #nav-header-right .sub-menu.nd-mega-menu-rich * {
    transition: none !important;
  }
}

/**
 * Zoom Design System Theme for Yoast FAQ Block
 * Target: .schema-faq.wp-block-yoast-faq-block
 * Source: https://designmd.me/discover/zoom
 */

:root {
  --zoom-navy-base: #00053D;
  --zoom-navy-secondary: #232333;
  --zoom-blue-electric: #0B5CFF;
  --zoom-blue-hover: #0D6BDE;
  --zoom-blue-sky: #4B96F1;
  --zoom-blue-light: #E6F0FF;
  --zoom-border-subtle: #DFE3E8;
  --zoom-surface-white: #FFFFFF;
  --zoom-radius-card: 12px;
  --zoom-radius-badge: 8px;
  --zoom-shadow-card: 0 4px 16px rgba(0, 5, 61, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --zoom-shadow-hover: 0 12px 30px rgba(11, 92, 255, 0.12), 0 4px 12px rgba(0, 5, 61, 0.06);
  --zoom-transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Container */
.schema-faq.wp-block-yoast-faq-block {
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
  margin: 28px 0 36px 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

/* Card từng câu hỏi */
.schema-faq.wp-block-yoast-faq-block .schema-faq-section {
  position: relative !important;
  background-color: var(--zoom-surface-white) !important;
  border: 1px solid var(--zoom-border-subtle) !important;
  border-radius: var(--zoom-radius-card) !important;
  padding: 22px 24px !important;
  box-shadow: var(--zoom-shadow-card) !important;
  transition: var(--zoom-transition) !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

/* Vạch viền accent bên trái khi hover */
.schema-faq.wp-block-yoast-faq-block .schema-faq-section::before {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  bottom: 0 !important;
  width: 4px !important;
  background: transparent !important;
  transition: var(--zoom-transition) !important;
  border-top-left-radius: var(--zoom-radius-card) !important;
  border-bottom-left-radius: var(--zoom-radius-card) !important;
}

.schema-faq.wp-block-yoast-faq-block .schema-faq-section:hover {
  border-color: var(--zoom-blue-sky) !important;
  box-shadow: var(--zoom-shadow-hover) !important;
  transform: translateY(-2px) !important;
}

.schema-faq.wp-block-yoast-faq-block .schema-faq-section:hover::before {
  background: var(--zoom-blue-electric) !important;
}

/* Tiêu đề câu hỏi & Badge Q */
.schema-faq.wp-block-yoast-faq-block .schema-faq-question {
  display: flex !important;
  align-items: flex-start !important;
  gap: 12px !important;
  font-size: 17px !important;
  font-weight: 600 !important;
  line-height: 1.48 !important;
  color: var(--zoom-navy-base) !important;
  margin: 0 0 12px 0 !important;
  letter-spacing: -0.01em !important;
}

.schema-faq.wp-block-yoast-faq-block .schema-faq-question::before {
  content: "Q" !important;
  flex-shrink: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 26px !important;
  height: 26px !important;
  background-color: var(--zoom-blue-light) !important;
  color: var(--zoom-blue-electric) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  border-radius: var(--zoom-radius-badge) !important;
  margin-top: 1px !important;
  transition: var(--zoom-transition) !important;
}

.schema-faq.wp-block-yoast-faq-block .schema-faq-section:hover .schema-faq-question::before {
  background-color: var(--zoom-blue-electric) !important;
  color: var(--zoom-surface-white) !important;
}

/* Nội dung câu trả lời */
.schema-faq.wp-block-yoast-faq-block .schema-faq-answer {
  font-size: 15.5px !important;
  font-weight: 400 !important;
  line-height: 1.7 !important;
  color: var(--zoom-navy-secondary) !important;
  margin: 0 !important;
  padding: 12px 0 0 38px !important;
  border-top: 1px dashed var(--zoom-border-subtle) !important;
}

.schema-faq.wp-block-yoast-faq-block .schema-faq-answer a {
  color: var(--zoom-blue-electric) !important;
  text-decoration: underline !important;
  text-underline-offset: 3px !important;
}

/* Responsive mobile */
@media (max-width: 767px) {
  .schema-faq.wp-block-yoast-faq-block {
    gap: 12px !important;
  }
  .schema-faq.wp-block-yoast-faq-block .schema-faq-section {
    padding: 16px 16px !important;
    border-radius: 10px !important;
  }
  .schema-faq.wp-block-yoast-faq-block .schema-faq-question {
    font-size: 16px !important;
    gap: 10px !important;
  }
  .schema-faq.wp-block-yoast-faq-block .schema-faq-answer {
    font-size: 14.5px !important;
    padding-left: 0 !important;
    margin-top: 10px !important;
  }
}


/* ==========================================================
   TỐI ƯU GIAO DIỆN & FIX LỖI RESPONSIVE (NHATDONG.COM)
   ========================================================== */

/* 1. Triệt tiêu cuộn ngang toàn trang (Dùng clip để không làm hỏng sticky của mai-toc) */
html, body {
  overflow-x: clip !important;
  max-width: 100% !important;
}

body.home {
  overflow-x: hidden !important;
}

body.single-post,
body.single-post html {
  overflow: visible !important;
  overflow-x: clip !important;
}

/* 2. MỞ FULL WIDTH CHO TRANG CHỦ (TRÀN VIỀN SÁT 2 MÉP MÀN HÌNH) */
body.home .site-inner,
body.home .content-sidebar-wrap,
body.home .content,
body.home .entry,
body.home .entry-wrap,
body.home .entry-content {
  max-width: 100% !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

body.home .nd-homepage {
  width: 100% !important;
  max-width: 100% !important;
  position: relative !important;
  left: 0 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

/* Đảm bảo các dải nền màu luôn phủ tràn 100% toàn màn hình */
body.home .nd-homepage .band,
body.home .nd-homepage .experience,
body.home .nd-homepage .closing {
  width: 100% !important;
  box-sizing: border-box !important;
}

/* Giữ nội dung bên trong luôn căn giữa đẹp mắt ở kích thước chuẩn */
body.home .nd-homepage .wrap {
  width: min(1160px, calc(100% - 48px)) !important;
  margin-inline: auto !important;
}

/* 3. KHÔI PHỤC BỐ CỤC ẢNH HERO BÊN PHẢI (ẢNH + THẺ XANH ĐÈ GÓC) */
body.home .nd-homepage .hero-visual {
  position: relative !important;
  min-height: 480px !important;
  height: 100% !important;
}

body.home .nd-homepage .hero-photo {
  position: absolute !important;
  inset: 0 34px 36px 0 !important;
  top: 0 !important;
  left: 0 !important;
  width: calc(100% - 34px) !important;
  height: calc(100% - 36px) !important;
  max-width: none !important;
  margin: 0 !important;
  object-fit: cover !important;
  object-position: 50% 50% !important;
  border-radius: 16px !important;
  display: block !important;
}

body.home .nd-homepage .hero-note {
  position: absolute !important;
  right: 0 !important;
  bottom: 0 !important;
  width: min(270px, 76%) !important;
  padding: 22px 24px !important;
  color: var(--white) !important;
  background: var(--accent) !important;
  border-radius: 14px !important;
  box-shadow: 0 16px 32px rgba(0, 5, 61, .18) !important;
  z-index: 2 !important;
}

@media (max-width: 600px) {
  body.home .nd-homepage .hero-visual {
    min-height: 320px !important;
  }
  body.home .nd-homepage .hero-photo {
    inset: 0 20px 24px 0 !important;
    width: calc(100% - 20px) !important;
    height: calc(100% - 24px) !important;
  }
  body.home .nd-homepage .hero-note {
    width: min(220px, 68%) !important;
    padding: 14px 16px !important;
  }
  body.home .nd-homepage .hero-note strong {
    font-size: 17px !important;
  }
  body.home .nd-homepage .hero-note span {
    font-size: 11px !important;
  }
}

/* 4. Đảm bảo ngắt từ chữ dài như "Management" */
body.home .nd-homepage h1 {
  overflow-wrap: break-word !important;
  word-break: break-word !important;
  hyphens: auto;
}

/* 4. Hạ cỡ chữ H1 và căn lề trên màn hình điện thoại (< 640px) */
@media (max-width: 640px) {
  html body.home .nd-homepage h1 {
    font-size: clamp(28px, 6vw, 40px) !important;
    line-height: 1.16 !important;
    letter-spacing: -0.02em !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
  }
  
  body.home .nd-homepage .wrap {
    width: calc(100% - 32px) !important;
    margin-inline: auto !important;
  }
}

/* 5. FIX HEADER MOBILE: Ẩn menu Desktop & đưa Hamburger về bên phải logo */
@media (max-width: 999px) {
  body:not(.mobile-menu-visible) .site-header .header-section.header-right,
  body:not(.mobile-menu-visible) .site-header #nav-header-right {
    display: none !important;
  }

  .site-header .site-header-wrap {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    padding-left: 18px !important;
    padding-right: 18px !important;
    box-sizing: border-box !important;
  }

  .site-header .title-area {
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 8px 0 !important;
    max-width: 170px !important;
    flex-shrink: 0 !important;
    order: 1 !important;
  }

  .site-header .title-area img.custom-logo {
    max-height: 42px !important;
    width: auto !important;
    display: block !important;
  }

  .site-header .header-section-mobile {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    margin-left: auto !important;
    flex-shrink: 0 !important;
    order: 2 !important;
  }

  .site-header .menu-toggle {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    padding: 8px !important;
    background: transparent !important;
    border: none !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    color: #ffffff !important;
    box-sizing: border-box !important;
  }

  .site-header .menu-toggle .menu-toggle-icon,
  .site-header .menu-toggle .menu-toggle-icon:before,
  .site-header .menu-toggle .menu-toggle-icon:after {
    background: #ffffff !important;
  }
}


/* 7. BÀI VIẾT ĐỌC TIẾP TRÊN HOMEPAGE: CĂN CHUẨN KÍCH THƯỚC & ĐỒNG BỘ STYLE ARCHIVE CATEGORY */
html body.home .nd-latest-posts {
  width: 100% !important;
  max-width: 100% !important;
  padding: 80px 0 !important;
  background: #FAFAFA !important;
  box-sizing: border-box !important;
}

html body.home .nd-latest-posts > .wp-block-group__inner-container {
  width: min(1160px, calc(100% - 48px)) !important;
  max-width: 1160px !important;
  margin-inline: auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  box-sizing: border-box !important;
}

@media (max-width: 640px) {
  html body.home .nd-latest-posts {
    padding: 48px 0 !important;
  }
  html body.home .nd-latest-posts > .wp-block-group__inner-container {
    width: calc(100% - 32px) !important;
  }
}

html body.home .nd-latest-posts h2.wp-block-heading {
  font: 500 clamp(30px, 4.5vw, 48px)/1.1 var(--serif, 'Be Vietnam Pro', Arial, sans-serif) !important;
  letter-spacing: -0.04em !important;
  color: #00053D !important;
  margin: 0 0 36px 0 !important;
  text-align: left !important;
}

/* Lưới hiển thị bài viết */
html body.home .nd-latest-posts .entries-wrap {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 28px !important;
  align-items: stretch !important;
}

@media (max-width: 999px) {
  html body.home .nd-latest-posts .entries-wrap {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 640px) {
  html body.home .nd-latest-posts .entries-wrap {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
}

/* Card bài viết: Nền trắng, bo góc 15px, bóng đổ mềm, không viền cứng */
html body.home .nd-latest-posts article.entry {
  display: flex !important;
  flex-direction: column !important;
  background: #FFFFFF !important;
  border-radius: 15px !important;
  overflow: hidden !important;
  border: none !important;
  box-shadow: 0 4.28px 17.1px rgba(10, 20, 30, 0.1) !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease !important;
  margin: 0 !important;
  padding: 0 !important;
  height: 100% !important;
}

html body.home .nd-latest-posts article.entry:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 12px 28px rgba(0, 5, 61, 0.14) !important;
}

/* Ảnh đại diện: Tỉ lệ 4:3 đồng đều, phủ toàn bộ chiều ngang */
html body.home .nd-latest-posts article .entry-image-link {
  display: block !important;
  width: 100% !important;
  aspect-ratio: 4 / 3 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
}

html body.home .nd-latest-posts article .entry-image {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
  margin: 0 !important;
  border-radius: 0 !important;
}

/* Tiêu đề bài viết: Căn giữa, màu Navy #00053D, font-weight 700 */
html body.home .nd-latest-posts article .entry-wrap {
  padding: 24px 20px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  text-align: center !important;
  flex-grow: 1 !important;
  margin: 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

html body.home .nd-latest-posts article .entry-title {
  margin: 0 !important;
  font-family: var(--sans, 'Be Vietnam Pro', Arial, sans-serif) !important;
  font-size: 17.1px !important;
  font-weight: 700 !important;
  line-height: 1.32 !important;
  text-align: center !important;
}

html body.home .nd-latest-posts article .entry-title a,
html body.home .nd-latest-posts article a.entry-title-link,
html body.home .entry-content .nd-latest-posts article .entry-title a,
html body.home .entry-content .nd-latest-posts article a.entry-title-link,
html body.home .entry-content .nd-latest-posts a.entry-title-link:not(.wp-block-button__link):not(.btn):not(.button):not(.gb-button),
html body.home .entry-content a.entry-title-link:not(.wp-block-button__link):not(.btn):not(.button):not(.gb-button) {
  color: #00053D !important;
  text-decoration: none !important;
  transition: color 0.18s ease !important;
}

html body.home .nd-latest-posts article .entry-title a:hover,
html body.home .nd-latest-posts article a.entry-title-link:hover,
html body.home .entry-content .nd-latest-posts article .entry-title a:hover,
html body.home .entry-content .nd-latest-posts article a.entry-title-link:hover,
html body.home .entry-content .nd-latest-posts a.entry-title-link:not(.wp-block-button__link):not(.btn):not(.button):not(.gb-button):hover,
html body.home .entry-content a.entry-title-link:not(.wp-block-button__link):not(.btn):not(.button):not(.gb-button):hover {
  color: #0B5CFF !important;
}

/* Ẩn đoạn trích excerpt giống hoàn toàn trong Category Archive */
html body.home .nd-latest-posts article .entry-excerpt {
  display: none !important;
}

/* ==========================================================
   THE PRECISION SIGNAL: ARCHIVE & CATEGORY STYLING (NHATDONG.COM)
   ========================================================== */

/* 1. The Precision Archive Hero (Category, Tag, Author, Search) */
.nd-archive-hero {
  background: linear-gradient(180deg, #F2F8FF 0%, #FFFFFF 100%) !important;
  border-bottom: 1px solid #DFE3E8 !important;
  padding: 124px 0 40px !important;
  margin: 0 !important;
  text-align: left !important;
  box-sizing: border-box !important;
}

.nd-archive-hero-inner {
  width: min(1160px, calc(100% - 48px)) !important;
  max-width: 1160px !important;
  margin-inline: auto !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

.nd-archive-hero-top {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
  margin-bottom: 18px !important;
}

.nd-archive-breadcrumb {
  display: inline-flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  font-family: 'Be Vietnam Pro', system-ui, sans-serif !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #686F79 !important;
}

.nd-archive-breadcrumb a {
  color: #686F79 !important;
  text-decoration: none !important;
  transition: color 0.18s ease !important;
}

.nd-archive-breadcrumb a:hover {
  color: #0B5CFF !important;
}

.nd-archive-crumb-sep {
  color: #CBD6F4 !important;
}

.nd-archive-crumb-current {
  color: #00053D !important;
  font-weight: 600 !important;
}

.nd-archive-badges {
  display: inline-flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
}

.nd-archive-header-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 5px 12px !important;
  background: #E6F0FF !important;
  color: #0B5CFF !important;
  border: 1px solid #CBD6F4 !important;
  border-radius: 8px !important;
  font-family: 'Be Vietnam Pro', system-ui, sans-serif !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em !important;
  margin: 0 !important;
}

.nd-archive-count-pill {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  padding: 5px 12px !important;
  background: #FFFFFF !important;
  color: #00053D !important;
  border: 1px solid #DFE3E8 !important;
  border-radius: 8px !important;
  font-family: 'Be Vietnam Pro', system-ui, sans-serif !important;
  font-size: 12px !important;
  font-weight: 600 !important;
}

.nd-archive-count-pill svg {
  color: #0B5CFF !important;
  flex-shrink: 0 !important;
}

.nd-archive-hero-title {
  font-family: 'Be Vietnam Pro', system-ui, sans-serif !important;
  font-size: clamp(28px, 4vw, 44px) !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  letter-spacing: -0.02em !important;
  color: #00053D !important;
  margin: 0 0 12px 0 !important;
}

.nd-archive-hero-desc {
  font-family: 'Be Vietnam Pro', system-ui, sans-serif !important;
  font-size: 16.5px !important;
  line-height: 1.68 !important;
  color: #232333 !important;
  max-width: 760px !important;
  margin: 0 !important;
}

/* Search Bar inside Search Archive Hero */
.nd-archive-search-form {
  margin-top: 24px !important;
  max-width: 600px !important;
}

.nd-archive-search-wrap {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  background: #FFFFFF !important;
  border: 1.5px solid #DFE3E8 !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 16px rgba(0, 5, 61, 0.05) !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.nd-archive-search-wrap:focus-within {
  border-color: #0B5CFF !important;
  box-shadow: 0 0 0 3px rgba(11, 92, 255, 0.12), 0 8px 24px rgba(0, 5, 61, 0.08) !important;
}

.nd-archive-search-icon {
  position: absolute !important;
  left: 16px !important;
  color: #686F79 !important;
  pointer-events: none !important;
}

.nd-archive-search-input {
  width: 100% !important;
  height: 48px !important;
  padding: 0 128px 0 46px !important;
  border: none !important;
  background: transparent !important;
  font-family: 'Be Vietnam Pro', system-ui, sans-serif !important;
  font-size: 15px !important;
  color: #00053D !important;
  outline: none !important;
  box-shadow: none !important;
}

.nd-archive-search-submit {
  position: absolute !important;
  right: 5px !important;
  top: 5px !important;
  bottom: 5px !important;
  padding: 0 18px !important;
  background: #0B5CFF !important;
  color: #FFFFFF !important;
  border: none !important;
  border-radius: 9px !important;
  font-family: 'Be Vietnam Pro', system-ui, sans-serif !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: background 0.18s ease !important;
}

.nd-archive-search-submit:hover {
  background: #0D6BDE !important;
}

/* Roadmap Stage Quick-Switcher inside Archive Hero */
.nd-archive-stage-nav {
  margin-top: 28px !important;
  padding-top: 20px !important;
  border-top: 1px solid #E6F0FF !important;
}

.nd-archive-stage-list {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  align-items: center !important;
}

.nd-archive-stage-pill {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  min-height: 38px !important;
  padding: 6px 13px !important;
  background: #FFFFFF !important;
  color: #232333 !important;
  border: 1px solid #DFE3E8 !important;
  border-radius: 10px !important;
  font-family: 'Be Vietnam Pro', system-ui, sans-serif !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
  text-decoration: none !important;
  box-shadow: 0 2px 6px rgba(0, 5, 61, 0.03) !important;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease !important;
  box-sizing: border-box !important;
}

.nd-stage-pill-num {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 2px 6px !important;
  border-radius: 6px !important;
  background: #E6F0FF !important;
  color: #0B5CFF !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
}

.nd-archive-stage-pill:hover {
  background: #F2F8FF !important;
  color: #0B5CFF !important;
  border-color: #0B5CFF !important;
  transform: translateY(-1px) !important;
}

.nd-archive-stage-pill.is-active {
  background: #0B5CFF !important;
  color: #FFFFFF !important;
  border-color: #0B5CFF !important;
  box-shadow: 0 4px 14px rgba(11, 92, 255, 0.25) !important;
}

.nd-archive-stage-pill.is-active .nd-stage-pill-num {
  background: rgba(255, 255, 255, 0.22) !important;
  color: #FFFFFF !important;
}

/* 1B. Đồng bộ trang /blog/ (Posts Page) theo DESIGN.md */
body.blog .archive-description.posts-page-description,
body.blog .nd-blog-latest {
  display: none !important;
}

body.blog .archives-description.blog-description {
  margin: 0 !important;
  padding: 0 !important;
}

body.blog .nd-blog-page {
  max-width: 1160px !important;
  margin: 0 auto !important;
  padding: 12px 0 24px !important;
  font-family: 'Be Vietnam Pro', system-ui, sans-serif !important;
  color: #232333 !important;
}

body.blog .nd-blog-hero {
  display: grid !important;
  grid-template-columns: 1.18fr 0.82fr !important;
  gap: 24px !important;
  align-items: stretch !important;
  margin-bottom: 52px !important;
}

body.blog .nd-blog-hero-main {
  background: #00053D !important;
  color: #FFFFFF !important;
  border-radius: 16px !important;
  padding: 48px 44px !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 12px 32px rgba(0, 5, 61, 0.12) !important;
}

body.blog .nd-blog-eyebrow {
  display: inline-block !important;
  padding: 4px 12px !important;
  background: rgba(255, 255, 255, 0.1) !important;
  color: #4B96F1 !important;
  border-radius: 8px !important;
  font-family: 'Be Vietnam Pro', system-ui, sans-serif !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  letter-spacing: 0.01em !important;
  text-transform: none !important;
  margin: 0 0 16px 0 !important;
}

body.blog .nd-blog-hero h1 {
  font-family: 'Be Vietnam Pro', system-ui, sans-serif !important;
  font-size: clamp(32px, 4.2vw, 48px) !important;
  font-weight: 700 !important;
  line-height: 1.16 !important;
  letter-spacing: -0.02em !important;
  margin: 0 0 16px 0 !important;
  color: #FFFFFF !important;
}

body.blog .nd-blog-hero p {
  font-family: 'Be Vietnam Pro', system-ui, sans-serif !important;
  font-size: 16.5px !important;
  line-height: 1.68 !important;
  color: #CBD6F4 !important;
  margin: 0 !important;
}

body.blog .nd-blog-note {
  background: linear-gradient(145deg, #0B5CFF 0%, #0847C9 100%) !important;
  border-radius: 16px !important;
  padding: 36px 34px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-end !important;
  box-shadow: 0 12px 32px rgba(11, 92, 255, 0.2) !important;
}

body.blog .nd-blog-note strong {
  font-family: 'Be Vietnam Pro', system-ui, sans-serif !important;
  font-size: 24px !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  color: #FFFFFF !important;
  display: block !important;
  margin-bottom: 12px !important;
}

body.blog .nd-blog-note span {
  font-family: 'Be Vietnam Pro', system-ui, sans-serif !important;
  font-size: 15px !important;
  line-height: 1.65 !important;
  color: rgba(255, 255, 255, 0.92) !important;
}

body.blog .nd-blog-section-head {
  display: flex !important;
  justify-content: space-between !important;
  align-items: flex-end !important;
  gap: 20px !important;
  margin: 0 0 24px 0 !important;
}

body.blog .nd-blog-section-head h2 {
  font-family: 'Be Vietnam Pro', system-ui, sans-serif !important;
  font-size: clamp(24px, 3vw, 32px) !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  letter-spacing: -0.015em !important;
  color: #00053D !important;
  margin: 0 !important;
}

body.blog .nd-blog-section-head p {
  font-family: 'Be Vietnam Pro', system-ui, sans-serif !important;
  font-size: 15px !important;
  line-height: 1.65 !important;
  color: #686F79 !important;
  max-width: 520px !important;
  margin: 0 !important;
}

body.blog .nd-blog-categories {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 20px !important;
  margin-bottom: 56px !important;
}

body.blog .nd-blog-category {
  display: flex !important;
  flex-direction: column !important;
  min-height: 184px !important;
  padding: 24px !important;
  border: 1px solid #DFE3E8 !important;
  border-radius: 12px !important;
  background: #FFFFFF !important;
  text-decoration: none !important;
  box-shadow: 0 4px 16px rgba(0, 5, 61, 0.05) !important;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease !important;
}

body.blog .nd-blog-category:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 12px 30px rgba(11, 92, 255, 0.12), 0 4px 12px rgba(0, 5, 61, 0.06) !important;
  border-color: #CBD6F4 !important;
}

body.blog .nd-blog-category small {
  display: inline-block !important;
  align-self: flex-start !important;
  padding: 3px 9px !important;
  background: #E6F0FF !important;
  color: #0B5CFF !important;
  border-radius: 8px !important;
  font-family: 'Be Vietnam Pro', system-ui, sans-serif !important;
  font-weight: 700 !important;
  font-size: 11.5px !important;
  letter-spacing: 0.02em !important;
}

body.blog .nd-blog-category h3 {
  font-family: 'Be Vietnam Pro', system-ui, sans-serif !important;
  font-size: 18.5px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  margin: 14px 0 8px 0 !important;
  color: #00053D !important;
}

body.blog .nd-blog-category p {
  font-family: 'Be Vietnam Pro', system-ui, sans-serif !important;
  font-size: 14px !important;
  line-height: 1.65 !important;
  color: #232333 !important;
  margin: 0 0 16px 0 !important;
}

body.blog .nd-blog-category span {
  margin-top: auto !important;
  color: #0B5CFF !important;
  font-family: 'Be Vietnam Pro', system-ui, sans-serif !important;
  font-weight: 600 !important;
  font-size: 13.5px !important;
}

/* 2. Container lưới bài viết trên Archive */
body.is-archive .site-inner,
body.archive .site-inner,
body.search .site-inner {
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 0 72px 0 !important;
  margin: 0 !important;
  background: #FAFCFF !important;
  box-sizing: border-box !important;
}

body.blog.is-archive .site-inner {
  padding: 32px 0 72px 0 !important;
}

body.is-archive .content-sidebar-wrap,
body.archive .content-sidebar-wrap,
body.search .content-sidebar-wrap {
  width: min(1160px, calc(100% - 48px)) !important;
  max-width: 1160px !important;
  margin-inline: auto !important;
  padding: 48px 0 0 0 !important;
}

body.blog.is-archive .content-sidebar-wrap {
  padding: 0 !important;
}

body.is-archive .content,
body.archive .content,
body.search .content {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Lưới hiển thị 3 cột chuẩn */
body.is-archive .entries-wrap,
body.archive .entries-wrap,
body.search .entries-wrap {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 28px !important;
  align-items: stretch !important;
  margin: 0 0 40px 0 !important;
}

@media (max-width: 999px) {
  body.is-archive .entries-wrap,
  body.archive .entries-wrap,
  body.search .entries-wrap,
  body.blog .nd-blog-categories {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 24px !important;
  }

  body.blog .nd-blog-hero {
    grid-template-columns: 1fr !important;
  }

  body.blog .nd-blog-section-head {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
  }
}

@media (max-width: 640px) {
  body.is-archive .entries-wrap,
  body.archive .entries-wrap,
  body.search .entries-wrap,
  body.blog .nd-blog-categories {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  body.is-archive .content-sidebar-wrap,
  body.archive .content-sidebar-wrap,
  body.search .content-sidebar-wrap {
    width: calc(100% - 32px) !important;
    padding: 32px 0 0 0 !important;
  }

  body.blog.is-archive .content-sidebar-wrap,
  .nd-archive-hero-inner {
    width: calc(100% - 32px) !important;
    padding: 0 !important;
  }

  .nd-archive-hero {
    padding: 92px 0 28px !important;
  }

  .nd-archive-stage-list {
    flex-wrap: wrap !important;
    gap: 6px !important;
  }

  .nd-archive-stage-pill {
    min-height: 36px !important;
    padding: 5px 10px !important;
    font-size: 12px !important;
  }

  body.blog .nd-blog-hero-main,
  body.blog .nd-blog-note {
    padding: 28px 22px !important;
  }
}

/* 3. Thẻ bài viết High-Signal Editorial Card */
body.is-archive article.entry.entry-archive,
body.archive article.entry.entry-archive,
body.search article.entry.entry-archive {
  display: flex !important;
  flex-direction: column !important;
  background: #FFFFFF !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  border: 1px solid #DFE3E8 !important;
  box-shadow: 0 4px 16px rgba(0, 5, 61, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03) !important;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease !important;
  margin: 0 !important;
  padding: 0 !important;
  height: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

/* Hiệu ứng Lifted on hover */
body.is-archive article.entry.entry-archive:hover,
body.archive article.entry.entry-archive:hover,
body.search article.entry.entry-archive:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 12px 30px rgba(11, 92, 255, 0.12), 0 4px 12px rgba(0, 5, 61, 0.06) !important;
  border-color: #CBD6F4 !important;
}

/* Khung ảnh đại diện bài viết (16:10) */
body.is-archive article.entry-archive .entry-image-link,
body.archive article.entry-archive .entry-image-link,
body.search article.entry-archive .entry-image-link {
  display: block !important;
  width: 100% !important;
  aspect-ratio: 16 / 10 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #E6F0FF !important;
  text-decoration: none !important;
}

body.is-archive article.entry-archive .entry-image,
body.archive article.entry-archive .entry-image,
body.search article.entry-archive .entry-image {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
  margin: 0 !important;
  border-radius: 0 !important;
  transition: transform 0.35s ease !important;
}

body.is-archive article.entry-archive:hover .entry-image,
body.archive article.entry-archive:hover .entry-image,
body.search article.entry-archive:hover .entry-image {
  transform: scale(1.035) !important;
}

/* Fallback thumbnail khi bài viết/trang không có ảnh đại diện */
.nd-archive-image-fallback {
  display: grid !important;
  place-items: center !important;
  width: 100% !important;
  height: 100% !important;
  background: linear-gradient(135deg, #00053D 0%, #091E5A 100%) !important;
  color: #FFFFFF !important;
  font-family: 'Be Vietnam Pro', system-ui, sans-serif !important;
  font-size: 22px !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em !important;
  padding: 20px !important;
  box-sizing: border-box !important;
}

/* Khối nội dung thẻ bài viết */
body.is-archive article.entry-archive .entry-wrap,
body.archive article.entry-archive .entry-wrap,
body.search article.entry-archive .entry-wrap {
  padding: 22px 24px !important;
  display: flex !important;
  flex-direction: column !important;
  flex-grow: 1 !important;
  margin: 0 !important;
  width: 100% !important;
  text-align: left !important;
  box-sizing: border-box !important;
}

/* Dải meta trên tiêu đề (Badge danh mục + Thời gian đọc) */
.nd-archive-card-meta-top {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  margin-bottom: 12px !important;
  width: 100% !important;
}

.nd-archive-badge {
  display: inline-block !important;
  padding: 3px 9px !important;
  background: #E6F0FF !important;
  color: #0B5CFF !important;
  font-family: 'Be Vietnam Pro', system-ui, sans-serif !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  border-radius: 8px !important;
  text-decoration: none !important;
  max-width: 68% !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.nd-archive-readtime {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  color: #686F79 !important;
  font-family: 'Be Vietnam Pro', system-ui, sans-serif !important;
  font-size: 12.5px !important;
  font-weight: 500 !important;
  flex-shrink: 0 !important;
  white-space: nowrap !important;
}

.nd-archive-readtime svg {
  display: inline-block !important;
  vertical-align: middle !important;
  color: #686F79 !important;
}

/* Tiêu đề bài viết */
body.is-archive article.entry-archive .entry-title,
body.archive article.entry-archive .entry-title,
body.search article.entry-archive .entry-title {
  margin: 0 0 10px 0 !important;
  font-family: 'Be Vietnam Pro', system-ui, sans-serif !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  line-height: 1.38 !important;
  text-align: left !important;
}

body.is-archive article.entry-archive .entry-title a,
body.archive article.entry-archive .entry-title a,
body.search article.entry-archive .entry-title a,
body.is-archive article.entry-archive a.entry-title-link,
body.archive article.entry-archive a.entry-title-link,
body.search article.entry-archive a.entry-title-link {
  color: #00053D !important;
  text-decoration: none !important;
  transition: color 0.18s ease !important;
}

body.is-archive article.entry-archive .entry-title a:hover,
body.archive article.entry-archive .entry-title a:hover,
body.search article.entry-archive .entry-title a:hover,
body.is-archive article.entry-archive a.entry-title-link:hover,
body.archive article.entry-archive a.entry-title-link:hover,
body.search article.entry-archive a.entry-title-link:hover {
  color: #0B5CFF !important;
}

/* Đoạn trích ngắn 2 dòng (Excerpt) */
.nd-archive-card-excerpt,
body.is-archive article.entry-archive .entry-content,
body.archive article.entry-archive .entry-content,
body.is-archive article.entry-archive .entry-excerpt,
body.archive article.entry-archive .entry-excerpt {
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  font-family: 'Be Vietnam Pro', system-ui, sans-serif !important;
  font-size: 14.5px !important;
  line-height: 1.65 !important;
  color: #232333 !important;
  margin: 0 0 18px 0 !important;
  text-align: left !important;
}

/* Chân thẻ bài viết (Ngày đăng + Đọc bài →) */
.nd-archive-card-footer {
  margin-top: auto !important;
  padding-top: 14px !important;
  border-top: 1px solid #F0F2F5 !important;
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  font-family: 'Be Vietnam Pro', system-ui, sans-serif !important;
  font-size: 13px !important;
  color: #686F79 !important;
}

.nd-archive-card-date {
  color: #686F79 !important;
  font-weight: 500 !important;
}

.nd-archive-card-more {
  color: #0B5CFF !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  transition: color 0.18s ease, transform 0.18s ease !important;
}

article.entry-archive:hover .nd-archive-card-more {
  color: #0D6BDE !important;
  transform: translateX(2px) !important;
}

/* 4. Tinh chỉnh nút Ajax Load More */
.mai-load-more-container {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
  margin: 48px 0 12px 0 !important;
}

.mai-load-more-container .button.button-secondary,
.mai-load-more-container .ds-load-more-btn,
.entries-archive .ds-load-more-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 46px !important;
  padding: 12px 32px !important;
  background: #FFFFFF !important;
  color: #00053D !important;
  border: 1.5px solid #DFE3E8 !important;
  border-radius: 12px !important;
  font-family: 'Be Vietnam Pro', system-ui, sans-serif !important;
  font-size: 14.5px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(0, 5, 61, 0.05) !important;
  transition: background 0.2s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s !important;
}

.mai-load-more-container .button.button-secondary:hover,
.mai-load-more-container .ds-load-more-btn:hover,
.entries-archive .ds-load-more-btn:hover {
  background: #0B5CFF !important;
  color: #FFFFFF !important;
  border-color: #0B5CFF !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(11, 92, 255, 0.25) !important;
}

.mai-load-more-container .button.button-secondary:focus-visible,
.mai-load-more-container .ds-load-more-btn:focus-visible,
.entries-archive .ds-load-more-btn:focus-visible {
  outline: 2px solid #0B5CFF !important;
  outline-offset: 3px !important;
}

/* 5. Khối Archive Closure Callout dưới chân trang lưu trữ */
.nd-archive-closure {
  background: #FFFFFF !important;
  border-top: 1px solid #DFE3E8 !important;
  padding: 64px 0 72px !important;
  box-sizing: border-box !important;
}

.nd-archive-closure-inner {
  width: min(1160px, calc(100% - 48px)) !important;
  max-width: 1160px !important;
  margin-inline: auto !important;
}

.nd-archive-callout {
  background: #00053D !important;
  color: #FFFFFF !important;
  border-radius: 16px !important;
  padding: 40px 44px !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 16px 36px rgba(0, 5, 61, 0.16) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 36px !important;
  box-sizing: border-box !important;
}

.nd-archive-callout-copy {
  flex-grow: 1 !important;
}

.nd-archive-callout-tag {
  display: inline-block !important;
  padding: 4px 10px !important;
  background: rgba(255, 255, 255, 0.12) !important;
  color: #4B96F1 !important;
  font-family: 'Be Vietnam Pro', system-ui, sans-serif !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.03em !important;
  border-radius: 8px !important;
  margin-bottom: 12px !important;
}

.nd-archive-callout-title {
  font-family: 'Be Vietnam Pro', system-ui, sans-serif !important;
  font-size: clamp(20px, 2.6vw, 26px) !important;
  font-weight: 700 !important;
  color: #FFFFFF !important;
  line-height: 1.3 !important;
  margin: 0 0 10px 0 !important;
}

.nd-archive-callout-desc {
  font-family: 'Be Vietnam Pro', system-ui, sans-serif !important;
  font-size: 15px !important;
  line-height: 1.65 !important;
  color: #CBD6F4 !important;
  margin: 0 !important;
  max-width: 640px !important;
}

.nd-archive-callout-actions {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  flex-shrink: 0 !important;
}

.nd-archive-btn-primary {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 44px !important;
  padding: 10px 22px !important;
  background: #0B5CFF !important;
  color: #FFFFFF !important;
  border-radius: 12px !important;
  font-family: 'Be Vietnam Pro', system-ui, sans-serif !important;
  font-size: 14.5px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  box-shadow: 0 4px 16px rgba(11, 92, 255, 0.25) !important;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease !important;
}

.nd-archive-btn-primary:hover {
  background: #0D6BDE !important;
  color: #FFFFFF !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(11, 92, 255, 0.35) !important;
}

.nd-archive-btn-secondary {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 44px !important;
  padding: 10px 20px !important;
  background: rgba(255, 255, 255, 0.08) !important;
  color: #FFFFFF !important;
  border: 1px solid rgba(255, 255, 255, 0.24) !important;
  border-radius: 12px !important;
  font-family: 'Be Vietnam Pro', system-ui, sans-serif !important;
  font-size: 14.5px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease !important;
}

.nd-archive-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.16) !important;
  color: #FFFFFF !important;
  border-color: #4B96F1 !important;
  transform: translateY(-2px) !important;
}

@media (max-width: 999px) {
  .nd-archive-callout {
    flex-direction: column !important;
    align-items: flex-start !important;
    padding: 32px 28px !important;
    gap: 24px !important;
  }

  .nd-archive-callout-actions {
    width: 100% !important;
  }

  .nd-archive-btn-primary,
  .nd-archive-btn-secondary {
    flex: 1 !important;
    text-align: center !important;
  }
}

@media (max-width: 640px) {
  .nd-archive-closure {
    padding: 44px 0 52px !important;
  }

  .nd-archive-closure-inner {
    width: calc(100% - 32px) !important;
  }

  .nd-archive-callout {
    padding: 24px 20px !important;
  }

  .nd-archive-callout-actions {
    flex-direction: column !important;
    gap: 10px !important;
  }

  .nd-archive-btn-primary,
  .nd-archive-btn-secondary {
    width: 100% !important;
  }
}

/* ==========================================================
   THE PRECISION SIGNAL: HOMEPAGE BLOCKS STYLING (NHATDONG.COM)
   Phong cách thiết kế: PRODUCT.md & DESIGN.md
   ========================================================== */

/* Đảm bảo nd-homepage luôn xếp dọc theo block, không bị Gutenberg ép sang flex row */
body.home .nd-homepage,
html body.home .nd-homepage {
  display: block !important;
  flex-direction: column !important;
  width: 100% !important;
  max-width: 100% !important;
}

/* Đảm bảo text trên nút xanh và nút tối luôn là màu trắng */
html body.home .nd-homepage a.btn-primary,
html body.home .nd-homepage a.nd-btn-primary,
html body.home .nd-homepage .btn-primary,
html body.home .nd-homepage .nd-btn-primary,
html body.home .nd-homepage a.nd-btn-ghost-dark,
html body.home .nd-homepage .nd-btn-ghost-dark {
  color: #FFFFFF !important;
}

/* Đảm bảo khung ảnh Hero visual chuẩn và thẻ note nổi góc */
html body.home .nd-homepage .hero-visual,
html body.home .nd-homepage .nd-hero-visual {
  position: relative !important;
  min-height: 480px !important;
  height: 100% !important;
}

html body.home .nd-homepage .hero-photo,
html body.home .nd-homepage .nd-hero-photo {
  position: absolute !important;
  inset: 0 34px 36px 0 !important;
  top: 0 !important;
  left: 0 !important;
  width: calc(100% - 34px) !important;
  height: calc(100% - 36px) !important;
  max-width: none !important;
  margin: 0 !important;
  object-fit: cover !important;
  object-position: 50% 50% !important;
  border-radius: 16px !important;
  display: block !important;
}

html body.home .nd-homepage .hero-note,
html body.home .nd-homepage .nd-hero-note {
  position: absolute !important;
  right: 0 !important;
  bottom: 0 !important;
  width: min(280px, 78%) !important;
  padding: 22px 24px !important;
  color: #FFFFFF !important;
  background: #0B5CFF !important;
  border-radius: 14px !important;
  box-shadow: 0 16px 32px rgba(0, 5, 61, 0.2) !important;
  z-index: 2 !important;
}

html body.home .nd-homepage .hero-note strong,
html body.home .nd-homepage .nd-hero-note strong {
  display: block !important;
  margin-bottom: 6px !important;
  font-family: 'Be Vietnam Pro', system-ui, sans-serif !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  color: #FFFFFF !important;
}

html body.home .nd-homepage .hero-note span,
html body.home .nd-homepage .nd-hero-note span {
  display: block !important;
  font-family: 'Be Vietnam Pro', system-ui, sans-serif !important;
  font-size: 12.5px !important;
  line-height: 1.55 !important;
  color: rgba(255, 255, 255, 0.92) !important;
}

/* Eyebrow Label */
html body.home .nd-homepage .nd-eyebrow {
  display: inline-block !important;
  color: #0B5CFF !important;
  font-family: 'Be Vietnam Pro', system-ui, sans-serif !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  margin-bottom: 18px !important;
}

/* Action Buttons */
html body.home .nd-homepage .nd-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 14px !important;
  align-items: center !important;
}

html body.home .nd-homepage .nd-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  min-height: 48px !important;
  padding: 12px 24px !important;
  border-radius: 12px !important;
  font-family: 'Be Vietnam Pro', system-ui, sans-serif !important;
  font-size: 14.5px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease !important;
  cursor: pointer !important;
  box-sizing: border-box !important;
}

html body.home .nd-homepage .nd-btn:hover {
  transform: translateY(-2px) !important;
}

html body.home .nd-homepage .nd-btn-primary {
  background: #0B5CFF !important;
  color: #FFFFFF !important;
  border: 1px solid #0B5CFF !important;
  box-shadow: 0 4px 14px rgba(11, 92, 255, 0.2) !important;
}

html body.home .nd-homepage .nd-btn-primary:hover {
  background: #0D6BDE !important;
  border-color: #0D6BDE !important;
  box-shadow: 0 8px 24px rgba(11, 92, 255, 0.3) !important;
}

html body.home .nd-homepage .nd-btn-secondary {
  background: #E6F0FF !important;
  color: #0B5CFF !important;
  border: 1px solid #CBD6F4 !important;
}

html body.home .nd-homepage .nd-btn-secondary:hover {
  background: #DCEBFF !important;
  border-color: #0B5CFF !important;
}

html body.home .nd-homepage .nd-btn-ghost-dark {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #FFFFFF !important;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
}

html body.home .nd-homepage .nd-btn-ghost-dark:hover {
  background: rgba(255, 255, 255, 0.22) !important;
  border-color: rgba(255, 255, 255, 0.45) !important;
}

/* Badges */
html body.home .nd-homepage .nd-badge {
  display: inline-flex !important;
  align-items: center !important;
  background: #E6F0FF !important;
  color: #0B5CFF !important;
  padding: 5px 12px !important;
  border-radius: 8px !important;
  font-family: 'Be Vietnam Pro', system-ui, sans-serif !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
}

/* 1. Hero Section */
html body.home .nd-homepage .nd-hero {
  padding: clamp(68px, 8vw, 108px) 0 80px !important;
  background: #FFFFFF !important;
  border-bottom: 1px solid #DFE3E8 !important;
}

html body.home .nd-homepage .nd-hero-grid {
  display: grid !important;
  grid-template-columns: 1.05fr 0.95fr !important;
  gap: clamp(36px, 6vw, 76px) !important;
  align-items: center !important;
}

html body.home .nd-homepage .nd-hero h1 {
  font-family: 'Be Vietnam Pro', system-ui, sans-serif !important;
  font-size: clamp(38px, 4.8vw, 60px) !important;
  font-weight: 700 !important;
  line-height: 1.12 !important;
  letter-spacing: -0.03em !important;
  color: #00053D !important;
  margin-bottom: 22px !important;
}

html body.home .nd-homepage .nd-hero-copy {
  font-family: 'Be Vietnam Pro', system-ui, sans-serif !important;
  font-size: clamp(17px, 1.8vw, 19px) !important;
  line-height: 1.7 !important;
  color: #686F79 !important;
  margin-bottom: 32px !important;
  max-width: 580px !important;
}

html body.home .nd-homepage .nd-hero-copy strong {
  color: #00053D !important;
  font-weight: 600 !important;
}

html body.home .nd-homepage .nd-hero-byline {
  margin-top: 28px !important;
  color: #686F79 !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
}

/* 2. Intro & Profile Section */
html body.home .nd-homepage .nd-intro {
  padding: clamp(72px, 8vw, 100px) 0 !important;
  background: #FFFFFF !important;
}

html body.home .nd-homepage .nd-intro-grid {
  display: grid !important;
  grid-template-columns: 1.15fr 0.85fr !important;
  gap: clamp(36px, 6vw, 72px) !important;
  align-items: start !important;
}

html body.home .nd-homepage .nd-intro h2 {
  font-family: 'Be Vietnam Pro', system-ui, sans-serif !important;
  font-size: clamp(30px, 4vw, 42px) !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  letter-spacing: -0.025em !important;
  color: #00053D !important;
  margin-bottom: 24px !important;
}

html body.home .nd-homepage .nd-intro-prose p {
  font-family: 'Be Vietnam Pro', system-ui, sans-serif !important;
  font-size: 16.5px !important;
  line-height: 1.75 !important;
  color: #232333 !important;
  margin-bottom: 20px !important;
}

html body.home .nd-homepage .nd-intro-prose p strong {
  color: #00053D !important;
  font-weight: 600 !important;
}

html body.home .nd-homepage .nd-profile-card {
  background: #FFFFFF !important;
  border: 1px solid #DFE3E8 !important;
  border-radius: 16px !important;
  padding: 34px 30px !important;
  box-shadow: 0 6px 20px rgba(0, 5, 61, 0.05) !important;
  position: relative !important;
  overflow: hidden !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease !important;
  box-sizing: border-box !important;
}

html body.home .nd-homepage .nd-profile-card:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 16px 36px rgba(11, 92, 255, 0.1) !important;
  border-color: #CBD6F4 !important;
}

html body.home .nd-homepage .nd-profile-card::before {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  bottom: 0 !important;
  width: 5px !important;
  background: #0B5CFF !important;
}

html body.home .nd-homepage .nd-profile-card h3 {
  font-family: 'Be Vietnam Pro', system-ui, sans-serif !important;
  font-size: 24px !important;
  font-weight: 700 !important;
  margin: 14px 0 6px !important;
  color: #00053D !important;
}

html body.home .nd-homepage .nd-profile-role {
  font-family: 'Be Vietnam Pro', system-ui, sans-serif !important;
  font-size: 14.5px !important;
  font-weight: 600 !important;
  color: #00053D !important;
  line-height: 1.5 !important;
  margin-bottom: 18px !important;
}

html body.home .nd-homepage .nd-profile-desc {
  font-family: 'Be Vietnam Pro', system-ui, sans-serif !important;
  font-size: 14.5px !important;
  line-height: 1.65 !important;
  color: #686F79 !important;
  margin-bottom: 22px !important;
}

html body.home .nd-homepage .nd-profile-link {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  font-family: 'Be Vietnam Pro', system-ui, sans-serif !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #0B5CFF !important;
  text-decoration: none !important;
  transition: color 0.18s ease !important;
}

html body.home .nd-homepage .nd-profile-link:hover {
  color: #0D6BDE !important;
}

/* 3. The Midnight Navy Band */
html body.home .nd-homepage .nd-band {
  background: #00053D !important;
  color: #FFFFFF !important;
  padding: clamp(80px, 9vw, 112px) 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

html body.home .nd-homepage .nd-band .nd-eyebrow {
  color: #4B96F1 !important;
}

html body.home .nd-homepage .nd-band-head {
  max-width: 720px !important;
  margin-bottom: 48px !important;
}

html body.home .nd-homepage .nd-band-head h2 {
  color: #FFFFFF !important;
  font-family: 'Be Vietnam Pro', system-ui, sans-serif !important;
  font-size: clamp(32px, 4.5vw, 48px) !important;
  font-weight: 700 !important;
  line-height: 1.16 !important;
  letter-spacing: -0.03em !important;
  margin-bottom: 14px !important;
}

html body.home .nd-homepage .nd-band-head p {
  color: rgba(255, 255, 255, 0.78) !important;
  font-family: 'Be Vietnam Pro', system-ui, sans-serif !important;
  font-size: 17px !important;
  line-height: 1.65 !important;
  margin: 0 !important;
}

html body.home .nd-homepage .nd-pillars {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 28px !important;
}

html body.home .nd-homepage .nd-pillar {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 14px !important;
  padding: 34px 28px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease !important;
  box-sizing: border-box !important;
}

html body.home .nd-homepage .nd-pillar:hover {
  transform: translateY(-4px) !important;
  background: rgba(255, 255, 255, 0.07) !important;
  border-color: #4B96F1 !important;
}

html body.home .nd-homepage .nd-pillar-num {
  color: #4B96F1 !important;
  font-family: 'Be Vietnam Pro', system-ui, sans-serif !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  margin-bottom: 18px !important;
  display: block !important;
}

html body.home .nd-homepage .nd-pillar h3 {
  color: #FFFFFF !important;
  font-family: 'Be Vietnam Pro', system-ui, sans-serif !important;
  font-size: 22px !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
  margin-bottom: 12px !important;
}

html body.home .nd-homepage .nd-pillar p {
  color: rgba(255, 255, 255, 0.82) !important;
  font-family: 'Be Vietnam Pro', system-ui, sans-serif !important;
  font-size: 15px !important;
  line-height: 1.7 !important;
  margin-bottom: 24px !important;
  flex-grow: 1 !important;
}

html body.home .nd-homepage .nd-pillar-link {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  color: #4B96F1 !important;
  font-family: 'Be Vietnam Pro', system-ui, sans-serif !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  transition: color 0.18s ease, transform 0.18s ease !important;
}

html body.home .nd-homepage .nd-pillar-link:hover {
  color: #FFFFFF !important;
  transform: translateX(3px) !important;
}

/* 4. Audience Section */
html body.home .nd-homepage .nd-audience {
  background: #F2F8FF !important;
  padding: clamp(80px, 9vw, 108px) 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

html body.home .nd-homepage .nd-audience-head {
  max-width: 680px !important;
  margin-bottom: 44px !important;
}

html body.home .nd-homepage .nd-audience-head h2 {
  font-family: 'Be Vietnam Pro', system-ui, sans-serif !important;
  font-size: clamp(30px, 4vw, 44px) !important;
  font-weight: 700 !important;
  line-height: 1.18 !important;
  letter-spacing: -0.025em !important;
  color: #00053D !important;
  margin-bottom: 12px !important;
}

html body.home .nd-homepage .nd-audience-head p {
  color: #686F79 !important;
  font-family: 'Be Vietnam Pro', system-ui, sans-serif !important;
  font-size: 16.5px !important;
  margin: 0 !important;
}

html body.home .nd-homepage .nd-audience-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 24px !important;
}

html body.home .nd-homepage .nd-audience-card {
  background: #FFFFFF !important;
  border: 1px solid #DFE3E8 !important;
  border-radius: 14px !important;
  padding: 30px !important;
  display: flex !important;
  gap: 20px !important;
  align-items: flex-start !important;
  box-shadow: 0 4px 16px rgba(0, 5, 61, 0.04) !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease !important;
  box-sizing: border-box !important;
}

html body.home .nd-homepage .nd-audience-card:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 14px 32px rgba(11, 92, 255, 0.09) !important;
  border-color: #CBD6F4 !important;
}

html body.home .nd-homepage .nd-audience-icon {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  background: #E6F0FF !important;
  color: #0B5CFF !important;
  border-radius: 10px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-family: 'Be Vietnam Pro', system-ui, sans-serif !important;
  font-size: 15px !important;
  font-weight: 800 !important;
}

html body.home .nd-homepage .nd-audience-content h3 {
  font-family: 'Be Vietnam Pro', system-ui, sans-serif !important;
  font-size: 19px !important;
  font-weight: 700 !important;
  margin-bottom: 8px !important;
  color: #00053D !important;
}

html body.home .nd-homepage .nd-audience-content p {
  color: #686F79 !important;
  font-family: 'Be Vietnam Pro', system-ui, sans-serif !important;
  font-size: 15px !important;
  line-height: 1.65 !important;
  margin: 0 !important;
}

/* 5. Pathways Section */
html body.home .nd-homepage .nd-pathways {
  padding: clamp(80px, 9vw, 108px) 0 !important;
  background: #FFFFFF !important;
}

html body.home .nd-homepage .nd-pathways-head {
  max-width: 700px !important;
  margin-bottom: 48px !important;
}

html body.home .nd-homepage .nd-pathways-head h2 {
  font-family: 'Be Vietnam Pro', system-ui, sans-serif !important;
  font-size: clamp(30px, 4vw, 44px) !important;
  font-weight: 700 !important;
  line-height: 1.18 !important;
  letter-spacing: -0.025em !important;
  color: #00053D !important;
  margin-bottom: 12px !important;
}

html body.home .nd-homepage .nd-pathways-head p {
  color: #686F79 !important;
  font-family: 'Be Vietnam Pro', system-ui, sans-serif !important;
  font-size: 16.5px !important;
  margin: 0 !important;
}

html body.home .nd-homepage .nd-pathways-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 28px !important;
}

html body.home .nd-homepage .nd-path-card {
  background: #FFFFFF !important;
  border: 1px solid #DFE3E8 !important;
  border-radius: 14px !important;
  padding: 34px 28px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  box-shadow: 0 4px 18px rgba(0, 5, 61, 0.05) !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease !important;
  position: relative !important;
  box-sizing: border-box !important;
}

html body.home .nd-homepage .nd-path-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 16px 36px rgba(11, 92, 255, 0.12) !important;
  border-color: #0B5CFF !important;
}

html body.home .nd-homepage .nd-path-card.featured {
  border: 1.5px solid #0B5CFF !important;
  background: linear-gradient(180deg, #FFFFFF 0%, #FAFCFF 100%) !important;
}

html body.home .nd-homepage .nd-path-tag {
  font-family: 'Be Vietnam Pro', system-ui, sans-serif !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #0B5CFF !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  margin-bottom: 14px !important;
}

html body.home .nd-homepage .nd-path-card h3 {
  font-family: 'Be Vietnam Pro', system-ui, sans-serif !important;
  font-size: 21px !important;
  font-weight: 700 !important;
  line-height: 1.32 !important;
  margin-bottom: 12px !important;
  color: #00053D !important;
}

html body.home .nd-homepage .nd-path-card p {
  color: #686F79 !important;
  font-family: 'Be Vietnam Pro', system-ui, sans-serif !important;
  font-size: 15px !important;
  line-height: 1.65 !important;
  margin-bottom: 26px !important;
  flex-grow: 1 !important;
}

/* 6. Closing Callout Section */
html body.home .nd-homepage .nd-closing {
  background: #00053D !important;
  color: #FFFFFF !important;
  padding: clamp(76px, 8vw, 104px) 0 !important;
  width: 100% !important;
  text-align: center !important;
  box-sizing: border-box !important;
}

html body.home .nd-homepage .nd-closing-inner {
  max-width: 740px !important;
  margin-inline: auto !important;
}

html body.home .nd-homepage .nd-closing .nd-eyebrow {
  color: #4B96F1 !important;
}

html body.home .nd-homepage .nd-closing h2 {
  color: #FFFFFF !important;
  font-family: 'Be Vietnam Pro', system-ui, sans-serif !important;
  font-size: clamp(30px, 4.2vw, 44px) !important;
  font-weight: 700 !important;
  line-height: 1.18 !important;
  letter-spacing: -0.03em !important;
  margin-bottom: 16px !important;
}

html body.home .nd-homepage .nd-closing p {
  color: rgba(255, 255, 255, 0.82) !important;
  font-family: 'Be Vietnam Pro', system-ui, sans-serif !important;
  font-size: 17px !important;
  line-height: 1.7 !important;
  margin: 0 auto 34px !important;
}

html body.home .nd-homepage .nd-closing .nd-actions {
  justify-content: center !important;
}

/* Responsive Rules for Homepage */
@media (max-width: 999px) {
  html body.home .nd-homepage .nd-hero-grid,
  html body.home .nd-homepage .nd-intro-grid {
    grid-template-columns: 1fr !important;
    gap: 44px !important;
  }
  html body.home .nd-homepage .nd-pillars,
  html body.home .nd-homepage .nd-pathways-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 640px) {
  html body.home .nd-homepage .nd-pillars,
  html body.home .nd-homepage .nd-audience-grid,
  html body.home .nd-homepage .nd-pathways-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  html body.home .nd-homepage .nd-hero-visual {
    min-height: 320px !important;
  }
  html body.home .nd-homepage .nd-hero-photo {
    inset: 0 20px 24px 0 !important;
    width: calc(100% - 20px) !important;
    height: calc(100% - 24px) !important;
  }
  html body.home .nd-homepage .nd-hero-note {
    width: min(230px, 72%) !important;
    padding: 16px 18px !important;
  }
  html body.home .nd-homepage .nd-hero-note strong { font-size: 16px !important; }
  html body.home .nd-homepage .nd-hero-note span { font-size: 11.5px !important; }
  html body.home .nd-homepage .nd-actions .nd-btn { width: 100% !important; }
}



/* ==========================================================================
   THE SIGNAL RECOVERY: 404 ERROR PAGE STYLING
   ========================================================================== */

body.error404 .site-inner,
body.error404 .content-sidebar-wrap,
body.error404 .content {
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

body.error404 .entry {
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

.nd-404-container {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  font-family: 'Be Vietnam Pro', system-ui, sans-serif !important;
  color: #232333;
}

/* 1. The Recovery Hero Section */
.nd-404-hero {
  background: linear-gradient(180deg, #F0F6FF 0%, #FFFFFF 100%);
  border-bottom: 1px solid #DFE3E8;
  padding: 84px 24px 76px;
  text-align: center;
}

.nd-404-hero-inner {
  max-width: 760px;
  margin: 0 auto;
  width: 100%;
}

.nd-404-signal-visual {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 24px;
}

.nd-404-numeral {
  font-family: 'Be Vietnam Pro', system-ui, sans-serif;
  font-size: 72px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: #00053D;
}

.nd-404-radar-icon {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
}

.nd-404-title {
  font-family: 'Be Vietnam Pro', system-ui, sans-serif !important;
  font-size: 32px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  color: #00053D !important;
  letter-spacing: -0.02em !important;
  margin: 0 0 16px 0 !important;
}

.nd-404-desc {
  font-family: 'Be Vietnam Pro', system-ui, sans-serif !important;
  font-size: 16.5px !important;
  line-height: 1.68 !important;
  color: #686F79 !important;
  max-width: 620px;
  margin: 0 auto 36px !important;
}

/* Search Box */
.nd-404-search-box {
  width: 100%;
  max-width: 580px;
  margin: 0 auto 32px;
}

.nd-404-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  background: #FFFFFF;
  border: 1.5px solid #DFE3E8;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 5, 61, 0.05);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nd-404-search-wrap:focus-within {
  border-color: #0B5CFF;
  box-shadow: 0 0 0 3px rgba(11, 92, 255, 0.15), 0 8px 24px rgba(0, 5, 61, 0.08);
}

.nd-404-search-icon {
  position: absolute;
  left: 18px;
  color: #686F79;
  pointer-events: none;
}

.nd-404-search-input {
  width: 100%;
  height: 52px;
  padding: 0 136px 0 50px !important;
  border: none !important;
  background: transparent !important;
  font-family: 'Be Vietnam Pro', system-ui, sans-serif !important;
  font-size: 15px !important;
  color: #232333 !important;
  outline: none !important;
  box-shadow: none !important;
}

.nd-404-search-input::placeholder {
  color: #686F79 !important;
  opacity: 1 !important;
}

.nd-404-search-submit {
  position: absolute;
  right: 6px;
  top: 6px;
  bottom: 6px;
  padding: 0 18px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  background: #0B5CFF !important;
  color: #FFFFFF !important;
  border: none !important;
  border-radius: 8px !important;
  font-family: 'Be Vietnam Pro', system-ui, sans-serif !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: background-color 0.2s ease, transform 0.2s ease !important;
}

.nd-404-search-submit:hover {
  background: #094cd6 !important;
  transform: translateY(-1px);
}

/* Action CTAs */
.nd-404-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.nd-404-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  height: 46px !important;
  padding: 0 24px !important;
  border-radius: 12px !important;
  font-family: 'Be Vietnam Pro', system-ui, sans-serif !important;
  font-size: 14.5px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
  box-sizing: border-box !important;
}

.nd-404-btn-primary {
  background: #0B5CFF !important;
  color: #FFFFFF !important;
  border: 1.5px solid #0B5CFF !important;
  box-shadow: 0 4px 14px rgba(11, 92, 255, 0.25) !important;
}

.nd-404-btn-primary:hover {
  background: #094cd6 !important;
  border-color: #094cd6 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(11, 92, 255, 0.35) !important;
  text-decoration: none !important;
}

.nd-404-btn-secondary {
  background: #FFFFFF !important;
  color: #00053D !important;
  border: 1.5px solid #DFE3E8 !important;
  box-shadow: 0 2px 8px rgba(0, 5, 61, 0.04) !important;
}

.nd-404-btn-secondary:hover {
  border-color: #0B5CFF !important;
  color: #0B5CFF !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 5, 61, 0.08) !important;
  text-decoration: none !important;
}

/* 2. Discovery Section */
.nd-404-discovery {
  background: #FAFCFF;
  padding: 72px 24px 96px;
  border-top: 1px solid #DFE3E8;
}

.nd-404-discovery-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.nd-404-discovery-title {
  font-family: 'Be Vietnam Pro', system-ui, sans-serif !important;
  font-size: 24px !important;
  font-weight: 700 !important;
  color: #00053D !important;
  letter-spacing: -0.02em !important;
  margin: 0 0 32px 0 !important;
  text-align: center !important;
}

.nd-404-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.nd-404-card {
  background: #FFFFFF;
  border: 1px solid #DFE3E8;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  box-shadow: 0 2px 8px rgba(0, 5, 61, 0.03);
}

.nd-404-card:hover {
  transform: translateY(-3px);
  border-color: rgba(11, 92, 255, 0.35);
  box-shadow: 0 14px 34px rgba(0, 5, 61, 0.08);
}

.nd-404-card-thumb-link {
  display: block;
  overflow: hidden;
  text-decoration: none !important;
}

.nd-404-card-thumb {
  aspect-ratio: 16 / 10;
  width: 100%;
  background: #F0F4F8;
  overflow: hidden;
  position: relative;
}

.nd-404-card-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  transition: transform 0.35s ease !important;
}

.nd-404-card:hover .nd-404-card-img {
  transform: scale(1.03);
}

.nd-404-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #F0F6FF 0%, #E6F0FF 100%);
}

.nd-404-card-body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.nd-404-card-meta-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.nd-404-card-cat {
  font-family: 'Be Vietnam Pro', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: #0B5CFF;
  background: #EBF3FF;
  padding: 3px 10px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.nd-404-card-readtime {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: 'Be Vietnam Pro', system-ui, sans-serif;
  font-size: 12px;
  color: #686F79;
}

.nd-404-card-title {
  font-family: 'Be Vietnam Pro', system-ui, sans-serif !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  line-height: 1.42 !important;
  margin: 0 0 10px 0 !important;
  color: #00053D !important;
  letter-spacing: -0.015em !important;
}

.nd-404-card-title a {
  color: #00053D !important;
  text-decoration: none !important;
  transition: color 0.2s ease !important;
}

.nd-404-card-title a:hover {
  color: #0B5CFF !important;
  text-decoration: none !important;
}

.nd-404-card-excerpt {
  font-family: 'Be Vietnam Pro', system-ui, sans-serif !important;
  font-size: 14px !important;
  line-height: 1.65 !important;
  color: #686F79 !important;
  margin: 0 0 16px 0 !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.nd-404-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid #F0F4F8;
  font-size: 12.5px;
  color: #686F79;
}

.nd-404-card-footer time {
  font-family: 'Be Vietnam Pro', system-ui, sans-serif;
}

.nd-404-card-more {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: 'Be Vietnam Pro', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #0B5CFF !important;
  text-decoration: none !important;
  transition: gap 0.2s ease;
}

.nd-404-card-more:hover {
  gap: 8px;
  text-decoration: none !important;
}

/* Responsive Rules for 404 */
@media (max-width: 991px) {
  .nd-404-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
  }
}

@media (max-width: 640px) {
  .nd-404-hero {
    padding: 52px 18px 48px;
  }
  .nd-404-signal-visual {
    gap: 14px;
    margin-bottom: 20px;
  }
  .nd-404-numeral {
    font-size: 54px;
  }
  .nd-404-radar-icon {
    width: 50px;
    height: 50px;
  }
  .nd-404-title {
    font-size: 23px !important;
  }
  .nd-404-desc {
    font-size: 15px !important;
    margin-bottom: 28px !important;
  }
  .nd-404-search-input {
    padding: 0 100px 0 44px !important;
    font-size: 14px !important;
  }
  .nd-404-search-submit {
    padding: 0 14px !important;
  }
  .nd-404-search-submit span {
    display: none;
  }
  .nd-404-actions {
    flex-direction: column;
    width: 100%;
  }
  .nd-404-btn {
    width: 100%;
  }
  .nd-404-discovery {
    padding: 48px 18px 64px;
  }
  .nd-404-discovery-title {
    font-size: 20px !important;
    margin-bottom: 24px !important;
  }
  .nd-404-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}


/* ==========================================================================
   DOWNLOAD BUY BOX: TABS CÙNG HÀNG & CÂN ĐỐI CHUẨN DESIGN THE PRECISION SIGNAL
   ========================================================================== */
.vndd-download-box .vndd-download-tabs,
.vndd-download-tabs {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 10px !important;
  align-items: stretch !important;
}

.vndd-download-tabs .vndd-tab-btn {
  width: 100% !important;
  height: 100% !important;
  min-height: 58px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  box-sizing: border-box !important;
  padding: 10px 8px !important;
  border-radius: 12px !important;
  font-family: 'Be Vietnam Pro', system-ui, sans-serif !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* 1. Nút Standard / VietQR mặc định */
.vndd-download-tabs .vndd-tab-btn:not(.vndd-tab-vip) {
  background: #ffffff !important;
  color: #00053D !important;
  border: 1.5px solid #DFE3E8 !important;
}

.vndd-download-tabs .vndd-tab-btn:not(.vndd-tab-vip):hover {
  border-color: #0B5CFF !important;
  background: #E6F0FF !important;
  color: #0B5CFF !important;
}

/* 1b. Nút Standard / VietQR khi ACTIVE */
.vndd-download-tabs .vndd-tab-btn:not(.vndd-tab-vip).vndd-tab-active {
  background: #0B5CFF !important;
  color: #ffffff !important;
  border: 1.5px solid #0B5CFF !important;
  box-shadow: 0 4px 14px rgba(11, 92, 255, 0.28) !important;
}

.vndd-download-tabs .vndd-tab-btn:not(.vndd-tab-vip).vndd-tab-active .vndd-tab-title {
  color: #ffffff !important;
}

.vndd-download-tabs .vndd-tab-btn:not(.vndd-tab-vip).vndd-tab-active .vndd-tab-sub {
  color: rgba(255, 255, 255, 0.9) !important;
}

/* 2. Nút VIP DOWNLOAD – Màu Midnight Signal Navy chuẩn design (#00053D) */
.vndd-download-tabs .vndd-tab-btn.vndd-tab-vip {
  background: #00053D !important;
  color: #ffffff !important;
  border: 1.5px solid #00053D !important;
  box-shadow: 0 4px 14px rgba(0, 5, 61, 0.18) !important;
}

.vndd-download-tabs .vndd-tab-btn.vndd-tab-vip:hover {
  background: #061338 !important;
  border-color: #4B96F1 !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 18px rgba(0, 5, 61, 0.25) !important;
}

/* 2b. Nút VIP DOWNLOAD khi ACTIVE */
.vndd-download-tabs .vndd-tab-btn.vndd-tab-vip.vndd-tab-active {
  background: #00053D !important;
  color: #ffffff !important;
  border: 2px solid #0B5CFF !important;
  box-shadow: 0 0 0 2px rgba(11, 92, 255, 0.3), 0 6px 18px rgba(0, 5, 61, 0.3) !important;
}

.vndd-download-tabs .vndd-tab-title {
  font-size: 13.5px !important;
  font-weight: 700 !important;
  display: block !important;
  line-height: 1.25 !important;
}

.vndd-download-tabs .vndd-tab-sub {
  font-size: 11px !important;
  font-weight: 500 !important;
  opacity: 0.85 !important;
  margin-top: 2px !important;
  display: block !important;
  line-height: 1.2 !important;
}

.vndd-download-tabs .vndd-tab-vip-title {
  font-size: 13.5px !important;
  font-weight: 700 !important;
  display: block !important;
  line-height: 1.25 !important;
  color: #ffffff !important;
}

.vndd-download-tabs .vndd-tab-vip-sub {
  font-size: 11px !important;
  font-weight: 500 !important;
  margin-top: 2px !important;
  display: block !important;
  line-height: 1.2 !important;
  color: #CBD6F4 !important;
  opacity: 0.95 !important;
}


/* ==========================================================================
   UI-UX-PRO-MAX & THE PRECISION SIGNAL: HOMEPAGE OVERHAUL (GÓI 1 + GÓI 2)
   Chuẩn hóa Bảng màu, Typography tiếng Việt, Bento/Card Grid, Tools Showcase & Latest Posts
   ========================================================================== */

/* 0. Bảo vệ position:sticky toàn trang bằng overflow-x: clip */
html,
body {
  overflow-x: clip !important;
}

/* 1. Khung nền & Typography chuẩn cho .nd-homepage hiện tại trên Trang chủ */
html body.home .nd-homepage {
  --ink: #00053D !important;
  --ink-soft: #232333 !important;
  --paper: #FFFFFF !important;
  --paper-deep: #F2F8FF !important;
  --white: #FFFFFF !important;
  --accent: #0B5CFF !important;
  --accent-dark: #0D6BDE !important;
  --line: #DFE3E8 !important;
  font-family: 'Be Vietnam Pro', system-ui, -apple-system, sans-serif !important;
  color: #00053D !important;
  background: #FFFFFF !important;
}

/* Eyebrow Pill chuẩn Precision Signal */
html body.home .nd-homepage .eyebrow {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 5px 12px !important;
  background: #E6F0FF !important;
  color: #0B5CFF !important;
  border-radius: 8px !important;
  font-family: 'Be Vietnam Pro', system-ui, sans-serif !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em !important;
  line-height: 1.35 !important;
  margin: 0 0 18px 0 !important;
  max-width: none !important;
}

/* 2. Hero Section: Gradient Wash + Calibrated Vietnamese H1 + 12px Buttons + Navy Note */
html body.home .entry-content > style:first-child + div.nd-homepage,
html body.home .entry-content > div.nd-homepage,
html body.home .nd-homepage {
  margin-top: 0 !important;
}

html body.home .nd-homepage .hero.wrap {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 124px 0 clamp(64px, 7.5vw, 96px) !important;
  background: linear-gradient(180deg, #F2F8FF 0%, #FFFFFF 100%) !important;
  border-bottom: 1px solid #DFE3E8 !important;
}

html body.home .nd-homepage .hero > .hero-grid {
  width: min(1160px, calc(100% - 48px)) !important;
  margin-inline: auto !important;
  display: grid !important;
  grid-template-columns: 1.08fr 0.92fr !important;
  gap: clamp(32px, 5vw, 64px) !important;
  align-items: center !important;
}

html body.home .nd-homepage .hero h1 {
  font-family: 'Be Vietnam Pro', system-ui, sans-serif !important;
  font-size: clamp(32px, 4.2vw, 48px) !important;
  font-weight: 700 !important;
  line-height: 1.18 !important;
  letter-spacing: -0.02em !important;
  color: #00053D !important;
  margin: 0 0 20px 0 !important;
  max-width: 18ch !important;
}

html body.home .nd-homepage .hero-copy {
  font-family: 'Be Vietnam Pro', system-ui, sans-serif !important;
  font-size: 16.5px !important;
  line-height: 1.7 !important;
  color: #232333 !important;
  max-width: 54ch !important;
  margin: 0 !important;
}

html body.home .nd-homepage .actions {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 14px !important;
  margin-top: 28px !important;
}

html body.home .nd-homepage .btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  min-height: 46px !important;
  padding: 12px 24px !important;
  border-radius: 12px !important;
  font-family: 'Be Vietnam Pro', system-ui, sans-serif !important;
  font-size: 14.5px !important;
  font-weight: 600 !important;
  line-height: 1.25 !important;
  text-decoration: none !important;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease !important;
}

html body.home .nd-homepage .btn-primary {
  background: #0B5CFF !important;
  color: #FFFFFF !important;
  border: 1.5px solid #0B5CFF !important;
  box-shadow: 0 4px 16px rgba(11, 92, 255, 0.25) !important;
}

html body.home .nd-homepage .btn-primary:hover {
  background: #0D6BDE !important;
  border-color: #0D6BDE !important;
  color: #FFFFFF !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(11, 92, 255, 0.35) !important;
}

html body.home .nd-homepage .btn-light {
  background: #FFFFFF !important;
  color: #00053D !important;
  border: 1.5px solid #DFE3E8 !important;
  box-shadow: 0 2px 8px rgba(0, 5, 61, 0.04) !important;
}

html body.home .nd-homepage .btn-light:hover {
  background: #F2F8FF !important;
  border-color: #0B5CFF !important;
  color: #0B5CFF !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 16px rgba(11, 92, 255, 0.1) !important;
}

html body.home .nd-homepage .byline {
  margin-top: 26px !important;
  padding-top: 16px !important;
  border-top: 1px solid #DFE3E8 !important;
  color: #686F79 !important;
  font-family: 'Be Vietnam Pro', system-ui, sans-serif !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
}

html body.home .nd-homepage .hero-visual {
  min-height: 480px !important;
}

html body.home .nd-homepage .hero-photo {
  border-radius: 16px !important;
  border: 1px solid #DFE3E8 !important;
  box-shadow: 0 16px 36px rgba(0, 5, 61, 0.12) !important;
}

html body.home .nd-homepage .hero-note {
  background: #00053D !important;
  color: #FFFFFF !important;
  border: 1px solid rgba(75, 150, 241, 0.35) !important;
  border-left: 4px solid #0B5CFF !important;
  border-radius: 14px !important;
  padding: 20px 22px !important;
  box-shadow: 0 16px 36px rgba(0, 5, 61, 0.24) !important;
}

html body.home .nd-homepage .hero-note strong {
  color: #FFFFFF !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  margin-bottom: 6px !important;
}

html body.home .nd-homepage .hero-note span {
  color: #CBD6F4 !important;
  font-size: 13px !important;
  line-height: 1.55 !important;
}

/* 3. Section Heads (H2 & Subtitles) toàn Trang chủ — Chuẩn dấu tiếng Việt */
html body.home .nd-homepage .section-head {
  display: grid !important;
  grid-template-columns: 1.05fr 0.95fr !important;
  gap: clamp(24px, 4vw, 48px) !important;
  align-items: end !important;
  margin-bottom: 40px !important;
}

html body.home .nd-homepage .section-head h2,
html body.home .nd-homepage .experience-intro h2,
html body.home .nd-homepage .resources-top h2 {
  font-family: 'Be Vietnam Pro', system-ui, sans-serif !important;
  font-size: clamp(26px, 3.4vw, 38px) !important;
  font-weight: 700 !important;
  line-height: 1.22 !important;
  letter-spacing: -0.015em !important;
  color: #00053D !important;
  max-width: 22ch !important;
}

html body.home .nd-homepage .section-head > p {
  font-family: 'Be Vietnam Pro', system-ui, sans-serif !important;
  font-size: 15.5px !important;
  line-height: 1.68 !important;
  color: #232333 !important;
  opacity: 1 !important;
  max-width: 52ch !important;
}

/* 4. Midnight Navy Band (.band & .pathways) — 3 Elevated Dark Glass Cards */
html body.home .nd-homepage .band {
  background: #00053D !important;
  color: #FFFFFF !important;
  padding: clamp(64px, 7.5vw, 92px) 0 !important;
}

html body.home .nd-homepage .band .eyebrow {
  background: rgba(11, 92, 255, 0.24) !important;
  color: #7DB0FF !important;
  border: 1px solid rgba(75, 150, 241, 0.3) !important;
}

html body.home .nd-homepage .band .section-head h2 {
  color: #FFFFFF !important;
}

html body.home .nd-homepage .band .section-head > p {
  color: #CBD6F4 !important;
}

html body.home .nd-homepage .pathways {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 24px !important;
  border-top: none !important;
}

html body.home .nd-homepage .path,
html body.home .nd-homepage .path + .path {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 14px !important;
  padding: 28px 26px !important;
  display: flex !important;
  flex-direction: column !important;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), background 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease !important;
}

html body.home .nd-homepage .path:hover {
  transform: translateY(-4px) !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: #4B96F1 !important;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.24) !important;
}

html body.home .nd-homepage .path-num {
  display: inline-block !important;
  align-self: flex-start !important;
  padding: 4px 10px !important;
  border-radius: 8px !important;
  background: rgba(11, 92, 255, 0.25) !important;
  color: #7DB0FF !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.03em !important;
}

html body.home .nd-homepage .path h3 {
  font-family: 'Be Vietnam Pro', system-ui, sans-serif !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  line-height: 1.32 !important;
  color: #FFFFFF !important;
  margin: 16px 0 10px 0 !important;
}

html body.home .nd-homepage .path p {
  font-family: 'Be Vietnam Pro', system-ui, sans-serif !important;
  font-size: 15px !important;
  line-height: 1.65 !important;
  color: #CBD6F4 !important;
  max-width: none !important;
  margin: 0 0 22px 0 !important;
  flex-grow: 1 !important;
}

html body.home .nd-homepage .path .text-link {
  margin-top: auto !important;
  color: #7DB0FF !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  transition: color 0.18s ease, transform 0.18s ease !important;
}

html body.home .nd-homepage .path:hover .text-link {
  color: #FFFFFF !important;
  transform: translateX(3px) !important;
}

/* 5. Learning Section (.learning & .steps) — 2x2 Bento Card Grid */
html body.home .nd-homepage .learning {
  padding: clamp(64px, 7.5vw, 92px) 0 !important;
}

html body.home .nd-homepage .steps {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 24px !important;
  border-top: none !important;
}

html body.home .nd-homepage .step,
html body.home .nd-homepage .step:nth-child(odd),
html body.home .nd-homepage .step:nth-child(even) {
  background: #FFFFFF !important;
  border: 1px solid #DFE3E8 !important;
  border-radius: 14px !important;
  padding: 28px !important;
  min-height: 0 !important;
  display: grid !important;
  grid-template-columns: 48px 1fr !important;
  gap: 18px !important;
  align-items: start !important;
  box-shadow: 0 4px 16px rgba(0, 5, 61, 0.05) !important;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s ease, border-color 0.22s ease !important;
}

html body.home .nd-homepage .step:hover {
  transform: translateY(-3px) !important;
  border-color: #CBD6F4 !important;
  box-shadow: 0 12px 30px rgba(11, 92, 255, 0.1) !important;
}

html body.home .nd-homepage .step-index {
  width: 44px !important;
  height: 44px !important;
  border-radius: 10px !important;
  background: #E6F0FF !important;
  color: #0B5CFF !important;
  display: grid !important;
  place-items: center !important;
  font-family: 'Be Vietnam Pro', system-ui, sans-serif !important;
  font-size: 15px !important;
  font-weight: 800 !important;
}

html body.home .nd-homepage .step h3 {
  font-family: 'Be Vietnam Pro', system-ui, sans-serif !important;
  font-size: 19.5px !important;
  font-weight: 700 !important;
  line-height: 1.32 !important;
  color: #00053D !important;
  margin: 0 0 8px 0 !important;
}

html body.home .nd-homepage .step p {
  font-family: 'Be Vietnam Pro', system-ui, sans-serif !important;
  font-size: 15px !important;
  line-height: 1.65 !important;
  color: #232333 !important;
  max-width: none !important;
}

/* 6. Experience & Author Section (.experience & .career-list) — Elevated Timeline Card */
html body.home .nd-homepage .experience {
  background: #F2F8FF !important;
  border-top: 1px solid #E6F0FF !important;
  border-bottom: 1px solid #E6F0FF !important;
  padding: clamp(64px, 7.5vw, 92px) 0 !important;
}

html body.home .nd-homepage .experience-grid {
  align-items: start !important;
  gap: clamp(32px, 5vw, 64px) !important;
}

html body.home .nd-homepage .experience-intro p {
  color: #232333 !important;
  font-size: 15.5px !important;
  line-height: 1.68 !important;
  max-width: 46ch !important;
}

html body.home .nd-homepage .profile-link {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin-top: 24px !important;
  padding: 10px 18px !important;
  background: #FFFFFF !important;
  color: #0B5CFF !important;
  border: 1.5px solid #CBD6F4 !important;
  border-radius: 12px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  box-shadow: 0 2px 8px rgba(0, 5, 61, 0.04) !important;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease !important;
}

html body.home .nd-homepage .profile-link:hover {
  background: #0B5CFF !important;
  color: #FFFFFF !important;
  border-color: #0B5CFF !important;
  transform: translateY(-2px) !important;
}

html body.home .nd-homepage .career-list {
  background: #FFFFFF !important;
  border: 1px solid #DFE3E8 !important;
  border-radius: 16px !important;
  padding: 8px 28px !important;
  box-shadow: 0 8px 24px rgba(0, 5, 61, 0.05) !important;
}

html body.home .nd-homepage .career-row {
  display: grid !important;
  grid-template-columns: 124px 1fr !important;
  gap: 20px !important;
  padding: 18px 0 !important;
  border-bottom: 1px solid #F0F4F8 !important;
  align-items: baseline !important;
}

html body.home .nd-homepage .career-row:last-child {
  border-bottom: none !important;
}

html body.home .nd-homepage .career-date {
  color: #0B5CFF !important;
  font-family: 'Be Vietnam Pro', system-ui, sans-serif !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1.45 !important;
}

html body.home .nd-homepage .career-place {
  color: #00053D !important;
  font-family: 'Be Vietnam Pro', system-ui, sans-serif !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
}

html body.home .nd-homepage .career-affiliation {
  color: #686F79 !important;
  font-family: 'Be Vietnam Pro', system-ui, sans-serif !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  margin-top: 4px !important;
}

/* 7. NEW: Interactive Tools & Calculators Showcase (.nd-tools-showcase) */
html body.home .nd-homepage .nd-tools-showcase {
  padding: clamp(64px, 7.5vw, 92px) 0 16px !important;
  background: #FFFFFF !important;
}

html body.home .nd-homepage .nd-tools-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 24px !important;
}

html body.home .nd-homepage .nd-tool-card {
  display: flex !important;
  flex-direction: column !important;
  background: #FFFFFF !important;
  border: 1px solid #DFE3E8 !important;
  border-radius: 14px !important;
  padding: 28px 26px !important;
  text-decoration: none !important;
  box-shadow: 0 4px 16px rgba(0, 5, 61, 0.05) !important;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s ease, border-color 0.22s ease !important;
}

html body.home .nd-homepage .nd-tool-card.is-featured {
  border: 1.5px solid #0B5CFF !important;
  background: linear-gradient(180deg, #FAFCFF 0%, #FFFFFF 100%) !important;
}

html body.home .nd-homepage .nd-tool-card:hover {
  transform: translateY(-4px) !important;
  border-color: #0B5CFF !important;
  box-shadow: 0 14px 34px rgba(11, 92, 255, 0.12) !important;
}

html body.home .nd-homepage .nd-tool-card-top {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  margin-bottom: 18px !important;
}

html body.home .nd-homepage .nd-tool-icon {
  width: 44px !important;
  height: 44px !important;
  border-radius: 10px !important;
  background: #E6F0FF !important;
  color: #0B5CFF !important;
  display: grid !important;
  place-items: center !important;
  flex-shrink: 0 !important;
}

html body.home .nd-homepage .nd-tool-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  padding: 4px 10px !important;
  border-radius: 8px !important;
  background: #E6F0FF !important;
  color: #0B5CFF !important;
  font-family: 'Be Vietnam Pro', system-ui, sans-serif !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
}

html body.home .nd-homepage .nd-tool-badge.is-gold {
  background: #FEF3C7 !important;
  color: #92400E !important;
  border: 1px solid #FCD34D !important;
}

html body.home .nd-homepage .nd-tool-badge.is-gold svg {
  color: #D97706 !important;
  flex-shrink: 0 !important;
}

html body.home .nd-homepage .nd-tool-card h3 {
  font-family: 'Be Vietnam Pro', system-ui, sans-serif !important;
  font-size: 19px !important;
  font-weight: 700 !important;
  line-height: 1.34 !important;
  color: #00053D !important;
  margin: 0 0 10px 0 !important;
}

html body.home .nd-homepage .nd-tool-card p {
  font-family: 'Be Vietnam Pro', system-ui, sans-serif !important;
  font-size: 14.5px !important;
  line-height: 1.65 !important;
  color: #232333 !important;
  margin: 0 0 22px 0 !important;
  flex-grow: 1 !important;
}

html body.home .nd-homepage .nd-tool-link {
  margin-top: auto !important;
  color: #0B5CFF !important;
  font-family: 'Be Vietnam Pro', system-ui, sans-serif !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  transition: gap 0.18s ease, color 0.18s ease !important;
}

html body.home .nd-homepage .nd-tool-card:hover .nd-tool-link {
  color: #0D6BDE !important;
  gap: 9px !important;
}

/* 8. Resources Section (.resources) — Elevated Action Cards */
html body.home .nd-homepage .resources {
  padding: clamp(56px, 6.5vw, 84px) 0 !important;
}

html body.home .nd-homepage .resources-top .text-link {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 10px 18px !important;
  background: #F2F8FF !important;
  color: #0B5CFF !important;
  border: 1px solid #CBD6F4 !important;
  border-radius: 12px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease !important;
}

html body.home .nd-homepage .resources-top .text-link:hover {
  background: #0B5CFF !important;
  color: #FFFFFF !important;
  border-color: #0B5CFF !important;
}

html body.home .nd-homepage .resource-list {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 24px !important;
  border-top: none !important;
}

html body.home .nd-homepage .resource {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 14px !important;
  padding: 26px !important;
  background: #FFFFFF !important;
  border: 1px solid #DFE3E8 !important;
  border-radius: 14px !important;
  box-shadow: 0 4px 16px rgba(0, 5, 61, 0.05) !important;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease !important;
}

html body.home .nd-homepage .resource:hover {
  background: #FFFFFF !important;
  border-color: #0B5CFF !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 12px 30px rgba(11, 92, 255, 0.1) !important;
}

html body.home .nd-homepage .resource-number {
  width: 38px !important;
  height: 38px !important;
  border-radius: 10px !important;
  background: #E6F0FF !important;
  color: #0B5CFF !important;
  display: grid !important;
  place-items: center !important;
  font-family: 'Be Vietnam Pro', system-ui, sans-serif !important;
  font-size: 14px !important;
  font-weight: 800 !important;
}

html body.home .nd-homepage .resource-title {
  font-family: 'Be Vietnam Pro', system-ui, sans-serif !important;
  font-size: 19px !important;
  font-weight: 700 !important;
  line-height: 1.34 !important;
  color: #00053D !important;
  margin: 0 0 8px 0 !important;
}

html body.home .nd-homepage .resource-desc {
  font-family: 'Be Vietnam Pro', system-ui, sans-serif !important;
  font-size: 14.5px !important;
  line-height: 1.65 !important;
  color: #232333 !important;
  max-width: none !important;
  margin: 0 !important;
}

html body.home .nd-homepage .resource-arrow {
  align-self: flex-end !important;
  width: 34px !important;
  height: 34px !important;
  border-radius: 8px !important;
  background: #F2F8FF !important;
  color: #0B5CFF !important;
  display: grid !important;
  place-items: center !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  transition: background 0.18s ease, color 0.18s ease !important;
}

html body.home .nd-homepage .resource:hover .resource-arrow {
  background: #0B5CFF !important;
  color: #FFFFFF !important;
}

/* 9. Latest Articles Grid (.nd-latest-posts) — High-Signal Editorial Cards đồng bộ Archive */
html body.home .entry-content .nd-latest-posts {
  background: #F2F8FF !important;
  border-top: 1px solid #E6F0FF !important;
  border-bottom: 1px solid #E6F0FF !important;
  padding: clamp(64px, 7.5vw, 92px) 0 !important;
}

html body.home .nd-latest-posts .nd-latest-head {
  display: flex !important;
  align-items: flex-end !important;
  justify-content: space-between !important;
  gap: 24px !important;
  margin-bottom: 36px !important;
  flex-wrap: wrap !important;
}

html body.home .nd-latest-posts .nd-latest-eyebrow {
  display: inline-flex !important;
  padding: 5px 12px !important;
  background: #E6F0FF !important;
  color: #0B5CFF !important;
  border-radius: 8px !important;
  font-family: 'Be Vietnam Pro', system-ui, sans-serif !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  margin: 0 0 14px 0 !important;
}

html body.home .nd-latest-posts h2 {
  font-family: 'Be Vietnam Pro', system-ui, sans-serif !important;
  font-size: clamp(26px, 3.4vw, 38px) !important;
  font-weight: 700 !important;
  line-height: 1.22 !important;
  letter-spacing: -0.015em !important;
  color: #00053D !important;
  margin: 0 0 8px 0 !important;
}

html body.home .nd-latest-posts .nd-latest-sub {
  font-family: 'Be Vietnam Pro', system-ui, sans-serif !important;
  font-size: 15.5px !important;
  line-height: 1.65 !important;
  color: #686F79 !important;
  margin: 0 !important;
  max-width: 58ch !important;
}

html body.home .nd-latest-posts .nd-latest-all-link {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  min-height: 44px !important;
  padding: 10px 20px !important;
  background: #FFFFFF !important;
  color: #00053D !important;
  border: 1.5px solid #DFE3E8 !important;
  border-radius: 12px !important;
  font-family: 'Be Vietnam Pro', system-ui, sans-serif !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  box-shadow: 0 2px 8px rgba(0, 5, 61, 0.04) !important;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease !important;
}

html body.home .nd-latest-posts .nd-latest-all-link:hover {
  background: #0B5CFF !important;
  color: #FFFFFF !important;
  border-color: #0B5CFF !important;
  transform: translateY(-2px) !important;
}

html body.home .nd-latest-posts .entries-wrap {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 28px !important;
  align-items: stretch !important;
}

html body.home .nd-latest-posts article.entry {
  display: flex !important;
  flex-direction: column !important;
  background: #FFFFFF !important;
  border: 1px solid #DFE3E8 !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  box-shadow: 0 4px 16px rgba(0, 5, 61, 0.05) !important;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease !important;
  height: 100% !important;
}

html body.home .nd-latest-posts article.entry:hover {
  transform: translateY(-4px) !important;
  border-color: #CBD6F4 !important;
  box-shadow: 0 14px 32px rgba(11, 92, 255, 0.12) !important;
}

html body.home .nd-latest-posts article.entry .entry-image-link {
  display: block !important;
  width: 100% !important;
  aspect-ratio: 16 / 10 !important;
  overflow: hidden !important;
  background: #E6F0FF !important;
  margin: 0 !important;
}

html body.home .nd-latest-posts article.entry .entry-image {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transition: transform 0.35s ease !important;
}

html body.home .nd-latest-posts article.entry:hover .entry-image {
  transform: scale(1.035) !important;
}

html body.home .nd-latest-posts article.entry .entry-wrap {
  padding: 22px 24px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  text-align: left !important;
  flex-grow: 1 !important;
}

html body.home .nd-latest-posts article.entry h3.entry-title {
  font-family: 'Be Vietnam Pro', system-ui, sans-serif !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  line-height: 1.38 !important;
  letter-spacing: -0.01em !important;
  margin: 0 0 10px 0 !important;
  text-align: left !important;
  width: 100% !important;
}

html body.home .nd-latest-posts article.entry h3.entry-title a {
  color: #00053D !important;
  text-decoration: none !important;
  text-align: left !important;
  display: block !important;
  transition: color 0.18s ease !important;
}

html body.home .nd-latest-posts article.entry h3.entry-title a:hover {
  color: #0B5CFF !important;
}

/* Ẩn .entry-excerpt mặc định của Mai Block để dùng .nd-archive-card-excerpt chuẩn 2 dòng */
html body.home .nd-latest-posts article.entry .entry-excerpt {
  display: none !important;
}

/* 10. Reordered Closing Callout Stage (.nd-homepage-closing-stage) */
html body.home .nd-homepage-closing-stage {
  background: #FFFFFF !important;
  padding: clamp(56px, 7vw, 80px) 0 !important;
}

html body.home .nd-homepage-closing-stage .closing {
  background: transparent !important;
  padding: 0 !important;
}

html body.home .nd-homepage-closing-stage .closing-inner {
  background: #00053D !important;
  color: #FFFFFF !important;
  border-radius: 16px !important;
  padding: clamp(32px, 4.5vw, 48px) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 16px 36px rgba(0, 5, 61, 0.16) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 36px !important;
}

html body.home .nd-homepage-closing-stage .closing-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 4px 10px !important;
  background: rgba(255, 255, 255, 0.12) !important;
  color: #4B96F1 !important;
  border-radius: 8px !important;
  font-family: 'Be Vietnam Pro', system-ui, sans-serif !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.03em !important;
  margin-bottom: 12px !important;
}

html body.home .nd-homepage-closing-stage .closing-badge svg {
  color: #FBBF24 !important;
  flex-shrink: 0 !important;
}

html body.home .nd-homepage-closing-stage .closing h2 {
  font-family: 'Be Vietnam Pro', system-ui, sans-serif !important;
  font-size: clamp(22px, 2.8vw, 30px) !important;
  font-weight: 700 !important;
  line-height: 1.28 !important;
  letter-spacing: -0.015em !important;
  color: #FFFFFF !important;
  margin: 0 0 10px 0 !important;
  max-width: 28ch !important;
}

html body.home .nd-homepage-closing-stage .closing p {
  font-family: 'Be Vietnam Pro', system-ui, sans-serif !important;
  font-size: 15px !important;
  line-height: 1.65 !important;
  color: #CBD6F4 !important;
  margin: 0 !important;
  max-width: 58ch !important;
}

html body.home .nd-homepage-closing-stage .closing-actions {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  flex-shrink: 0 !important;
}

html body.home .nd-homepage-closing-stage .closing .btn-primary {
  background: #0B5CFF !important;
  color: #FFFFFF !important;
  border-color: #0B5CFF !important;
}

html body.home .nd-homepage-closing-stage .closing .btn-primary:hover {
  background: #0D6BDE !important;
  border-color: #0D6BDE !important;
}

html body.home .nd-homepage-closing-stage .closing .btn-ghost-dark {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #FFFFFF !important;
  border: 1px solid rgba(255, 255, 255, 0.24) !important;
}

html body.home .nd-homepage-closing-stage .closing .btn-ghost-dark:hover {
  background: rgba(255, 255, 255, 0.16) !important;
  border-color: #4B96F1 !important;
  color: #FFFFFF !important;
}

/* Responsive Breakpoints cho Trang chủ mới */
@media (max-width: 999px) {
  html body.home .nd-homepage .hero.wrap {
    padding: 92px 0 clamp(48px, 6vw, 64px) !important;
  }

  html body.home .nd-homepage .hero > .hero-grid,
  html body.home .nd-homepage .section-head {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }

  html body.home .nd-homepage .pathways,
  html body.home .nd-homepage .nd-tools-grid,
  html body.home .nd-homepage .resource-list,
  html body.home .nd-latest-posts .entries-wrap {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 20px !important;
  }

  html body.home .nd-homepage-closing-stage .closing-inner {
    flex-direction: column !important;
    align-items: flex-start !important;
  }

  html body.home .nd-homepage-closing-stage .closing-actions {
    width: 100% !important;
    flex-wrap: wrap !important;
  }
}

@media (max-width: 640px) {
  html body.home .nd-homepage .hero > .hero-grid {
    width: calc(100% - 32px) !important;
  }

  html body.home .nd-homepage .pathways,
  html body.home .nd-homepage .steps,
  html body.home .nd-homepage .nd-tools-grid,
  html body.home .nd-homepage .resource-list,
  html body.home .nd-latest-posts .entries-wrap {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }

  html body.home .nd-homepage .career-list {
    padding: 6px 20px !important;
  }

  html body.home .nd-homepage .career-row {
    grid-template-columns: 96px 1fr !important;
    gap: 12px !important;
  }

  html body.home .nd-homepage-closing-stage .closing-inner {
    padding: 28px 22px !important;
  }

  html body.home .nd-homepage-closing-stage .closing-actions,
  html body.home .nd-homepage-closing-stage .closing-actions .btn {
    width: 100% !important;
  }
}

/* ==========================================================================
   Bitwarden-Inspired Floating-to-Fullwidth Dynamic Header
   - Floating at Top: Floating Island on desktop (max-width 1240px, rounded-2xl, soft shadow)
   - Scrolled State: Full-width sticky bar (100% width, sharp corners, bottom border)
   - Brand Alignment: The Precision Signal (Navy #00053D base, Electric Blue #0B5CFF)
   ========================================================================== */

/* 0. Page Background Gradient & Canvas Normalization */
html,
body,
body.home,
.site-container {
  background: linear-gradient(180deg, #F2F8FF 0%, #FFFFFF 100%) !important;
  background-color: #FFFFFF !important;
  min-height: 100vh;
}

html body .site-container,
html body .site-inner {
  background: transparent !important;
  background-color: transparent !important;
}

/* 1. Global Header Base Styles (Desktop) */
@media (min-width: 1000px) {
  html body .site-header,
  html body.home .site-header,
  html body.has-dark-header .site-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding-top: 14px !important;
    padding-bottom: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    border: none !important;
    border-bottom: 1px solid transparent !important;
    box-shadow: none !important;
    z-index: 1000 !important;
    box-sizing: border-box !important;
    transition: padding-top 240ms cubic-bezier(0.16, 1, 0.3, 1),
                background-color 240ms cubic-bezier(0.16, 1, 0.3, 1),
                border-color 240ms cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 240ms cubic-bezier(0.16, 1, 0.3, 1) !important;
  }

  /* When NOT Scrolled: Outer Header is 100% transparent (High Specificity to beat legacy inline rules) */
  html body:not(.is-scrolled):not(.header-stuck) .site-header,
  html body.home:not(.is-scrolled):not(.header-stuck) .site-header,
  html body.home.home:not(.is-scrolled):not(.header-stuck) .site-header,
  html body.has-dark-header:not(.is-scrolled):not(.header-stuck) .site-header,
  html body .site-header:not(.is-scrolled):not(.header-stuck) {
    background: transparent !important;
    background-color: transparent !important;
    border-bottom-color: transparent !important;
    box-shadow: none !important;
  }

  /* When Scrolled (Full-Width Sticky Dock) */
  html body.is-scrolled .site-header,
  html body.header-stuck .site-header,
  html body.home.is-scrolled .site-header,
  html body.home.header-stuck .site-header,
  html body .site-header.is-scrolled,
  html body .site-header.header-stuck {
    padding-top: 0 !important;
    background: rgba(0, 5, 61, 0.98) !important;
    background-color: #00053D !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 8px 24px -4px rgba(0, 5, 61, 0.40) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
  }

  /* 2. Inner Wrap: Floating Island at Top */
  html body .site-header .site-header-wrap,
  html body.home .site-header .site-header-wrap,
  html body.has-dark-header .site-header .site-header-wrap {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    box-sizing: border-box !important;
    width: min(100% - 48px, 1220px) !important;
    max-width: 1220px !important;
    margin: 0 auto !important;
    height: 68px !important;
    min-height: 68px !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    transition: border-radius 240ms cubic-bezier(0.16, 1, 0.3, 1),
                border-color 240ms cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 240ms cubic-bezier(0.16, 1, 0.3, 1),
                background-color 240ms cubic-bezier(0.16, 1, 0.3, 1),
                height 240ms cubic-bezier(0.16, 1, 0.3, 1),
                padding 240ms cubic-bezier(0.16, 1, 0.3, 1) !important;
  }

  /* Inner Wrap at Top: The floating pill with Deep Navy */
  html body:not(.is-scrolled):not(.header-stuck) .site-header .site-header-wrap,
  html body.home:not(.is-scrolled):not(.header-stuck) .site-header .site-header-wrap,
  html body.home.home:not(.is-scrolled):not(.header-stuck) .site-header .site-header-wrap,
  html body.has-dark-header:not(.is-scrolled):not(.header-stuck) .site-header .site-header-wrap,
  html body .site-header:not(.is-scrolled):not(.header-stuck) .site-header-wrap {
    background-color: #00053D !important;
    background: rgba(0, 5, 61, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    border-radius: 18px !important;
    box-shadow: 0 10px 30px -4px rgba(0, 5, 61, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
  }

  /* When Scrolled: Inner Wrap seamlessly melts into the outer dock */
  html body.is-scrolled .site-header .site-header-wrap,
  html body.header-stuck .site-header .site-header-wrap,
  html body.home.is-scrolled .site-header .site-header-wrap,
  html body.home.header-stuck .site-header .site-header-wrap,
  html body .site-header.is-scrolled .site-header-wrap,
  html body .site-header.header-stuck .site-header-wrap {
    height: 64px !important;
    min-height: 64px !important;
    border-radius: 0 !important;
    border-color: transparent !important;
    box-shadow: none !important;
    background: transparent !important;
    background-color: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    padding-left: 24px !important;
    padding-right: 24px !important;
  }
}

/* 4. Desktop Navigation Styling */
@media (min-width: 1000px) {
  .site-header #nav-header-right > ul {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .site-header #nav-header-right > ul > li {
    display: inline-flex !important;
    align-items: center !important;
    margin: 0 !important;
  }

  .site-header #nav-header-right > ul > li > .menu-item-link:not(.button) {
    display: inline-flex !important;
    align-items: center !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    color: #FFFFFF !important;
    padding: 8px 14px !important;
    border-radius: 10px !important;
    transition: background-color 0.2s ease, color 0.2s ease !important;
    text-decoration: none !important;
  }

  .site-header #nav-header-right > ul > li > .menu-item-link:not(.button):hover,
  .site-header #nav-header-right > ul > li > .menu-item-link:not(.button):focus-visible {
    background: rgba(255, 255, 255, 0.12) !important;
    color: #FFFFFF !important;
  }

  /* Primary Button (Lộ trình Revenue Manager / CTA) */
  .site-header #nav-header-right > ul > li.menu-item-button > .menu-item-link.button,
  .site-header #nav-header-right > ul > li.menu-item-button > .menu-item-link.button:visited {
    display: inline-flex !important;
    align-items: center !important;
    background: #0B5CFF !important;
    color: #FFFFFF !important;
    border: 1px solid rgba(255, 255, 255, 0.20) !important;
    border-radius: 12px !important;
    padding: 9px 18px !important;
    font-size: 14.5px !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 14px rgba(11, 92, 255, 0.35) !important;
    transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease !important;
    text-decoration: none !important;
  }

  .site-header #nav-header-right > ul > li.menu-item-button > .menu-item-link.button:hover,
  .site-header #nav-header-right > ul > li.menu-item-button > .menu-item-link.button:focus-visible {
    background: #0D6BDE !important;
    box-shadow: 0 6px 18px rgba(11, 92, 255, 0.45) !important;
    transform: translateY(-1px) !important;
  }

  /* Search Toggle & Search Icon */
  .site-header .search-toggle {
    color: #FFFFFF !important;
    background: transparent !important;
    border: none !important;
    width: 38px !important;
    height: 38px !important;
    border-radius: 10px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: background-color 0.2s ease !important;
  }

  .site-header .search-toggle:hover,
  .site-header .search-toggle:focus-visible {
    background: rgba(255, 255, 255, 0.12) !important;
    color: #FFFFFF !important;
  }

  .site-header .search-toggle svg {
    fill: currentColor !important;
    width: 17px !important;
    height: 17px !important;
  }

  /* Mega Menu sub-menu placement (fallback) */
  .site-header #nav-header-right .mega-menu-parent > .sub-menu:not(.nd-mega-menu-rich) {
    top: calc(100% + 10px) !important;
    border-radius: 18px !important;
    border: 1px solid #DFE3E8 !important;
    box-shadow: 0 20px 50px -10px rgba(0, 5, 61, 0.25), 0 0 0 1px rgba(223, 227, 232, 0.7) !important;
  }
}

/* 5. Mobile Header (< 1000px) */
@media (max-width: 999px) {
  html body .site-header {
    top: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
    background-color: #00053D !important;
    box-shadow: 0 4px 16px rgba(0, 5, 61, 0.35) !important;
  }

  html body .site-header .site-header-wrap {
    padding-left: 16px !important;
    padding-right: 16px !important;
    min-height: 64px !important;
  }

  body.mobile-menu-visible .site-header .header-right,
  body.mobile-menu-visible .site-header #nav-header-right {
    background: #00053D !important;
    border-top: 1px solid rgba(255, 255, 255, 0.10) !important;
  }
}
