/* nhatdx-earth-blocks */

.nxe-wrap { max-width: var(--nxe-w, 1240px); margin: 0 auto; padding: 0 30px; box-sizing: border-box; font-family: var(--nxe-sans, "Be Vietnam Pro", sans-serif); color: #2E2118; }
.nxe-wrap *, .nxe-wrap *::before, .nxe-wrap *::after { box-sizing: border-box; }
.nxe-kicker { display: flex; align-items: center; gap: 12px; color: #C97B32; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.nxe-kicker::before { content: ""; width: 36px; height: 1px; background: #C97B32; }
.nxe-h { margin: 0; font-family: var(--nxe-serif, "Playfair Display", Georgia, serif) !important; font-weight: 600; line-height: 1.15; color: #2E2118; }
.nxe-h em { font-style: italic; color: #C97B32; }
.nxe-btn { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 28px; border-radius: 999px; font-weight: 600; font-size: 15px; text-decoration: none !important; transition: background .2s, color .2s, transform .2s; }
.nxe-btn:hover { transform: translateY(-1px); }
.nxe-btn--solid { background: #C97B32; color: #FBF8F3 !important; }
.nxe-btn--solid:hover { background: #A86222; color: #FBF8F3 !important; }
.nxe-btn--line { border: 1.5px solid #2E2118; color: #2E2118 !important; }
.nxe-btn--line:hover { background: #2E2118; color: #FBF8F3 !important; }
.nxe-btn--chat { gap: 10px; padding: 0 24px 0 8px; background: transparent; border: 1.5px solid #2E2118; color: #2E2118 !important; }
.nxe-btn--chat:hover { background: #2E2118; color: #FBF8F3 !important; }
.nxe-chat-ic { width: 36px; height: 36px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
               background: #E9DAC4; color: #C97B32; transition: background .2s, color .2s; }
.nxe-btn--chat:hover .nxe-chat-ic { background: rgba(251,248,243,.14); color: #F3D9B8; }
.nxe-chat-ic--zalo { font: 700 10.5px/1 var(--nx-font, Arial, sans-serif); letter-spacing: -.2px; }
/* Tuỳ chọn "Màu thương hiệu Zalo / Messenger" */
.nxe-hero-btns.is-brand .nxe-chat-ic--zalo { background: #0068FF; color: #fff; }
.nxe-hero-btns.is-brand .nxe-chat-ic--mess { background: linear-gradient(135deg, #0084FF, #AD6B58 70%, #B75F34); color: #fff; }

/* Hero */
.nxe-hero { padding-top: 36px; padding-bottom: 28px; }
.nxe-hero-in { display: flex; flex-wrap: wrap; gap: 32px; align-items: stretch; background: #F8F1E7; border-radius: 28px; overflow: hidden; }
.nxe-hero-tx { flex: 1 1 440px; padding: 64px 56px; display: flex; flex-direction: column; justify-content: center; gap: 22px; }
.nxe-hero .nxe-h { font-size: clamp(36px, 4.4vw, 58px); line-height: 1.08; }
.nxe-hero .nxe-h em { display: block; }
.nxe-hero-p { margin: 0; font-size: 17px; line-height: 1.65; color: #5A4636; max-width: 470px; }
.nxe-hero-btns { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 4px; }
.nxe-ticks { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 12px; padding-top: 22px; border-top: 1px solid #DCC9B0; font-size: 13.5px; color: #5A4636; }
.nxe-ticks span { display: inline-flex; align-items: center; gap: 8px; }
.nxe-hero-media { flex: 1 1 420px; position: relative; min-height: 460px; padding: 36px 36px 0 0; display: flex; align-items: flex-end; justify-content: center; }
.nxe-hero-media > img, .nxe-hero-media > picture > img { width: 100%; max-width: 520px; height: 500px; object-fit: cover; border-radius: 260px 260px 0 0; display: block; }
.nxe-hero-media > picture { display: contents; }
/* Không khung: ảnh tự do (ảnh ghép tổ ông nền trong), căn giữa theo chiều dọc, không cắt */
.nxe-hero-media.is-free { align-items: center; padding: 28px 32px 28px 0; }
.nxe-hero-media.is-free > img, .nxe-hero-media.is-free > picture > img {
  height: auto; max-height: 560px; max-width: 560px; object-fit: contain; border-radius: 0; filter: drop-shadow(0 18px 30px rgba(110,66,30,.10)); }
.nxe-hero-media.is-free .nxe-flash { bottom: 20px; }
/* Khung hình khối (tròn / lục giác / vuông): nền vẽ bằng SVG, ảnh nền trong đặt nổi ở giữa */
.nxe-hero-media.has-frame { align-items: center; padding: 30px 40px 30px 0; }
.nxe-frame { position: relative; width: 100%; max-width: 520px; aspect-ratio: 1 / 1; }
.nxe-frame-bg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 16px 26px rgba(110,66,30,.12)); }
.nxe-frame > img, .nxe-frame > picture > img {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: var(--nxe-fit, 80%); height: var(--nxe-fit, 80%); max-width: none; object-fit: contain; border-radius: 0; display: block; }
.nxe-frame--circle { --nxe-fit: 76%; }
.nxe-frame--hex    { --nxe-fit: 72%; }
.nxe-frame--square { --nxe-fit: 86%; }
.nxe-hero-media.has-frame .nxe-flash { bottom: 18px; }
.nxe-hero-ph { width: 100%; max-width: 520px; height: 500px; border-radius: 260px 260px 0 0; background: #E4D5C0; display: flex; align-items: center; justify-content: center; color: #7A6858; font-size: 14px; }
.nxe-flash { position: absolute; left: 0; bottom: 40px; display: flex; gap: 14px; align-items: center; max-width: 310px; padding: 14px 16px; background: #FFFDF9; border-radius: 18px; box-shadow: 0 18px 40px rgba(46,33,24,.14); color: #2E2118 !important; text-decoration: none !important; }
.nxe-flash img { width: 64px; height: 64px; object-fit: cover; border-radius: 12px; flex: 0 0 auto; }
.nxe-flash-b { font-size: 11px; font-weight: 700; letter-spacing: .1em; color: #C97B32; }
.nxe-flash-n { font-size: 13px; font-weight: 600; line-height: 1.35; }
.nxe-flash-p { font-size: 14px; line-height: 1.3; }
.nxe-flash-p ins { text-decoration: none; font-weight: 700; color: #C97B32; }
.nxe-flash-p del { color: #9A8878; font-size: 12px; margin-right: 4px; }
.nxe-flash-p .amount { color: inherit; }
@media (max-width: 849px) {
  .nxe-wrap { padding: 0 15px; }
  .nxe-hero { padding-top: 14px; }
  .nxe-hero-in { border-radius: 24px; gap: 0; }
  .nxe-hero-tx { padding: 28px 22px 18px; gap: 14px; }
  .nxe-hero-p { font-size: 15px; }
  .nxe-ticks { display: none; }
  .nxe-hero-media { min-height: 0; padding: 0 22px; }
  .nxe-hero-media > img, .nxe-hero-media > picture > img, .nxe-hero-ph { height: 240px; border-radius: 170px 170px 0 0; }
  .nxe-hero-media.is-free { padding: 4px 12px 18px; }
  .nxe-hero-media.has-frame { padding: 6px 16px 22px; }
  .nxe-frame { max-width: 330px; margin: 0 auto; }
  .nxe-hero-media.is-free > img, .nxe-hero-media.is-free > picture > img { height: auto; max-height: none; max-width: 100%; border-radius: 0; }
  .nxe-flash { left: 30px; right: 30px; bottom: 16px; max-width: none; padding: 10px 12px; }
  .nxe-flash img { width: 52px; height: 52px; }
  .nxe-btn { height: 48px; padding: 0 22px; }
  .nxe-hero-btns .nxe-btn--solid { width: 100%; justify-content: center; }
  .nxe-hero-btns .nxe-btn--chat { flex: 1 1 0; justify-content: center; padding: 0 12px 0 6px; font-size: 14px; }
  .nxe-chat-ic { width: 32px; height: 32px; }
}

/* Dải cam kết */
.nxe-trust { padding-top: 8px; padding-bottom: 48px; }
.nxe-block { display: block; width: 100%; }
.nxe-trust-in { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); border: 1px solid #E4D5C0; border-radius: 20px; background: #FFFDF9; }
.nxe-trust-i { display: flex; gap: 14px; align-items: center; padding: 22px 26px; }
.nxe-trust-i + .nxe-trust-i { border-left: 1px solid #F8F1E7; }
.nxe-trust-i svg { flex: 0 0 auto; color: #C97B32; }
.nxe-trust-t { font-weight: 600; line-height: 1.35; }
.nxe-trust-s { font-size: 13px; color: #7A6858; line-height: 1.4; }
@media (max-width: 849px) {
  .nxe-trust { padding-bottom: 28px; }
  .nxe-trust-in { grid-template-columns: repeat(2, minmax(0, 1fr)); border-radius: 18px; }
  .nxe-trust-i { padding: 12px; gap: 8px; }
  .nxe-trust-i + .nxe-trust-i { border-left: 0; }
  .nxe-trust-i:nth-child(odd) { border-right: 1px solid #F8F1E7; }
  .nxe-trust-i:nth-child(-n+2) { border-bottom: 1px solid #F8F1E7; }
  .nxe-trust-i svg { width: 24px; height: 24px; }
  .nxe-trust-t { font-size: 12.5px; }
  .nxe-trust-s { display: none; }
}

/* Câu chuyện */
.nxe-story { padding-top: 40px; padding-bottom: 40px; }
.nxe-story-in { display: flex; flex-wrap: wrap; gap: 44px; align-items: center; justify-content: center; }
.nxe-story-media { flex: 1 1 420px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.nxe-story-media img, .nxe-story-media .nxe-ph { width: 100%; height: 300px; object-fit: cover; display: block; }
.nxe-story-media > :first-child { border-radius: 160px 160px 18px 18px; }
.nxe-story-media > :last-child { border-radius: 18px 18px 160px 160px; margin-top: 48px; }
.nxe-ph { background: #E4D5C0; display: flex; align-items: center; justify-content: center; color: #7A6858; font-size: 13px; }
.nxe-story-tx { flex: 1 1 420px; max-width: 600px; display: flex; flex-direction: column; gap: 14px; text-align: left; }
.nxe-story-tx .nxe-h, .nxe-story-tx .nxe-story-p, .nxe-feat { text-align: left; }
/* Tổ ong 3 ô lục giác (đỉnh nhọn trái/phải, cùng hướng với ảnh banner) */
.nxe-story-media.is-hex { display: flex; justify-content: center; flex: 0 1 420px; }
/* Liên kết "Đọc câu chuyện" thành nút viền bo tròn như các nút khác của web */
.nxe-story .nxe-more { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; padding: 10px 20px;
  border: 1.5px solid #2E2118; border-radius: 999px; color: #2E2118 !important; font-weight: 600; font-size: 14px; text-decoration: none !important;
  transition: background .2s, color .2s; }
.nxe-story .nxe-more:hover { background: #2E2118; color: #FBF8F3 !important; }
.nxe-hc { position: relative; width: 100%; max-width: 420px; aspect-ratio: 1.75 / 1.732; filter: drop-shadow(0 14px 24px rgba(110,66,30,.13)); }
.nxe-hc-cell { position: absolute; width: 57.14%; height: 50%; padding: 1.1%; box-sizing: border-box; }
.nxe-hc-cell.c1 { left: 0; top: 0; }
.nxe-hc-cell.c2 { left: 42.86%; top: 25%; }
.nxe-hc-cell.c3 { left: 0; top: 50%; }
.nxe-hc-in { position: relative; width: 100%; height: 100%; background: #FAF5EE;
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%); }
.nxe-story-media.is-hex > * { border-radius: 0; margin-top: 0; }
.nxe-hc-pic { position: absolute; inset: 2.6%; overflow: hidden;
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%); }
.nxe-story-media.is-hex .nxe-hc-pic img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover;
  display: block; border-radius: 0; margin: 0; transition: transform .2s, object-position .2s; }
.nxe-hc-cell.is-deco .nxe-hc-in { background: #C67B3A; }
.nxe-hc-cell.is-deco .nxe-hc-in::before { content: ""; position: absolute; inset: 1.6%; background: #FAF5EE;
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%); }
.nxe-hc-cell.is-deco svg { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); color: #C97B32; width: 26%; height: auto; }
.nxe-hc-ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #7A6858; font-size: 13px; background: #E4D5C0;
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%); }
.nxe-story .nxe-h { font-size: clamp(26px, 2.6vw, 34px); margin: 2px 0 0; }
.nxe-story .nxe-h em { display: block; }
.nxe-story-p { margin: 0; font-size: 15.5px; line-height: 1.65; color: #5A4636; max-width: 560px; }
.nxe-feats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.nxe-feat { background: #F8F1E7; border-radius: 14px; padding: 13px 16px; border-left: 3px solid #C97B32; }
.nxe-feat b { display: block; font-weight: 700; }
.nxe-feat span { font-size: 13px; color: #5A4636; }
.nxe-more { align-self: flex-start; font-weight: 600; text-decoration: none !important; }
@media (max-width: 849px) {
  .nxe-story { padding-top: 24px; padding-bottom: 24px; }
  .nxe-story-in { gap: 28px; }
  .nxe-story-media img, .nxe-story-media .nxe-ph { height: 200px; }
  .nxe-story-media > :last-child { margin-top: 32px; }
  .nxe-story-media.is-hex > :last-child { margin-top: 0; }
  .nxe-hc { max-width: 360px; }
}

/* Blog */
.nxe-blog { background: #F8F1E7; }
.nxe-block--blog.is-slider { padding: 28px 0 10px; }
/* Khối blog thường đứng cuối trang, ngay trên chân trang: bỏ đệm dưới của cột / vùng nội dung bao quanh nó
   (trước đây cộng dồn ~170px trống) — còn khoảng 1/3 */
body.nx-earth .col:has(> .col-inner > .nxe-block--blog.is-slider),
body.nx-earth .col:has(> .nxe-block--blog.is-slider),
body.nx-earth .page-wrapper:has(.nxe-block--blog.is-slider),
body.nx-earth .page-wrapper:has(.nxe-block--blog.is-slider) .row-main > .col { padding-bottom: 0 !important; }
.nxe-block--blog.is-slider .section-title-container { margin-bottom: 14px; }
@media (max-width: 849px) { .nxe-block--blog.is-slider { padding: 18px 0 24px; } }
.nxe-blog .nxe-wrap { padding-top: 64px; padding-bottom: 72px; }
.nxe-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 26px; }
.nxe-head .nxe-h { font-size: clamp(28px, 3vw, 38px); margin-top: 4px; }
.nxe-head .nxe-kicker::before { display: none; }
.nxe-head a { font-weight: 600; font-size: 14px; text-decoration: none !important; }
.nxe-posts { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.nxe-post { background: #FFFDF9; border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; color: #2E2118 !important; text-decoration: none !important; transition: transform .2s, box-shadow .2s; }
.nxe-post:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(46,33,24,.10); }
.nxe-post-img { height: 210px; background: #E4D5C0; }
.nxe-post-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nxe-post-b { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; }
.nxe-post-c { font-size: 12px; color: #2E9E57; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.nxe-post-t { margin: 0; font-family: var(--nxe-serif, "Playfair Display", Georgia, serif) !important; font-size: 21px; font-weight: 600; line-height: 1.35; color: #2E2118; }
.nxe-post-m { font-size: 14px; color: #C97B32; font-weight: 600; }
@media (max-width: 849px) {
  .nxe-blog .nxe-wrap { padding-top: 40px; padding-bottom: 44px; }
  .nxe-posts { grid-auto-flow: column; grid-auto-columns: 78%; grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
  .nxe-post { scroll-snap-align: start; }
  .nxe-post-img { height: 170px; }
  .nxe-post-t { font-size: 18px; }
}

