/* Nội dung dự án: mọi quy tắc đều nằm trong lớp bọc bài. */
.ml-article { font: 19px/1.75 Arsenal, Georgia, serif; color: #2b1c1e; min-width: 0; overflow-wrap: anywhere; }
.ml-article .ml-blk { margin: 0 0 44px; min-width: 0; }
.ml-article .ml-blk:last-child { margin-bottom: 0; }
.ml-article .ml-blk h2 { margin: 0 0 16px; font: 700 30px/1.2 Arsenal, Georgia, serif; color: #2b1c1e; }
.ml-article .ml-blk h3 { margin: 28px 0 14px; font: 700 20px/1.3 Arsenal, Georgia, serif; color: #2b1c1e; }
.ml-article .ml-blk p { margin: 0 0 20px; }
.ml-article .ml-blk strong { font-weight: 700; }
.ml-article .ml-blk a { color: var(--tn-2, #a51d2d); text-decoration: underline; text-underline-offset: 3px; }
.ml-article .ml-blk a:hover { color: var(--tn-1, #6f1020); }
.ml-article .ml-blk a:focus-visible, .ml-article .ml-faq summary:focus-visible { outline: 3px solid var(--tn-gold, #cfae6e); outline-offset: 3px; }
.ml-article .ml-blk .ml-answer { padding: 4px 0 4px 20px; border-left: 4px solid var(--tn-2, #a51d2d); font-size: 22px; line-height: 1.5; }
.ml-article .ml-blk .ml-updated { color: #7a6c68; font-size: 16px; }
.ml-article .ml-blk .ml-highlights { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 0; margin: 0; list-style: none; counter-reset: ml-highlight; }
.ml-article .ml-highlights li { position: relative; min-width: 0; margin: 0; padding: 16px 16px 16px 60px; list-style: none; border: 1px solid #efe7da; border-radius: 16px; background: #fbf8f3; counter-increment: ml-highlight; }
.ml-article .ml-highlights li::before { content: counter(ml-highlight, decimal-leading-zero); position: absolute; left: 16px; top: 16px; color: var(--tn-2, #a51d2d); font-weight: 700; }
.ml-article .ml-highlights strong { color: var(--tn-1, #6f1020); }
.ml-article .ml-highlights li:last-child:nth-child(odd) { grid-column: 1 / -1; background: linear-gradient(135deg, var(--tn-3, #a82234), var(--tn-1, #6f1020)); color: #fff; }
.ml-article .ml-highlights li:last-child:nth-child(odd)::before, .ml-article .ml-highlights li:last-child:nth-child(odd) strong { color: #fff; }
.ml-article .ml-blk .ml-table { display: table; width: 100%; min-width: 0; max-width: 100%; table-layout: fixed; overflow: hidden; border: 1px solid #efe7da; border-radius: 12px; border-collapse: separate; border-spacing: 0; background: #fbf8f3; font-size: 17px; line-height: 1.55; }
.ml-article .ml-table :is(th, td) { min-width: 130px; padding: 14px 16px; border: 0; border-bottom: 1px solid #efe7da; text-align: left; vertical-align: top; }
.ml-article .ml-table thead th { background: var(--tn-1, #6f1020); color: #fbf8f3; }
.ml-article .ml-table tbody tr:nth-child(even) { background: #f4ecdf; }
.ml-article .ml-table tbody tr:last-child :is(th, td) { border-bottom: 0; }
.ml-article .ml-table--specs :is(thead, tbody) :is(th, td):first-child { width: 34%; }
.ml-article .ml-table--specs tbody :is(th, td):first-child { background: #f4ecdf; font-weight: 700; }
.ml-article .ml-table--price tbody :is(th, td):last-child { color: var(--tn-2, #a51d2d); font-weight: 700; }
.ml-article .ml-blk .ml-list { margin: 0 0 20px; padding-left: 22px; }
.ml-article .ml-list li { margin: 0 0 8px; }
.ml-article .ml-blk .ml-list--check { padding: 0; list-style: none; }
.ml-article .ml-list--check li { position: relative; padding-left: 28px; list-style: none; }
.ml-article .ml-list--check li::before { content: '✓'; position: absolute; left: 0; color: var(--tn-2, #a51d2d); font-weight: 700; }
.ml-article .ml-blk .ml-timeline { margin: 0 0 20px 8px; padding: 0; border-left: 2px solid #efe7da; list-style: none; }
.ml-article .ml-timeline li { position: relative; margin: 0; padding: 0 0 22px 24px; list-style: none; }
.ml-article .ml-timeline li:last-child { padding-bottom: 0; }
.ml-article .ml-timeline li::before { content: ''; position: absolute; left: -9px; top: 8px; width: 16px; height: 16px; border-radius: 50%; background: var(--tn-2, #a51d2d); }
.ml-article .ml-timeline strong { display: block; }
.ml-article .ml-blk .ml-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ml-article .ml-blk figure { margin: 0 0 20px; min-width: 0; }
.ml-article .ml-gallery figure { margin: 0; }
/* Ảnh trong bài giữ nguyên tỉ lệ gốc, KHÔNG cắt. pages.css cũ ép mỗi ô .ml-gallery thành 4:3 (ô đầu 16:9) + overflow:hidden nên poster dọc bị cắt đáy; ô đầu còn bị span 2 cột nên trên mobile sinh cột 0px (chú thích bị bóp dọc, ảnh thụt vào). */
.ml-article .ml-blk .ml-gallery { align-items: start; }
.ml-article .ml-blk .ml-gallery > *, .ml-article .ml-blk .ml-gallery > *:first-child { aspect-ratio: auto; overflow: visible; grid-row: auto; }
.ml-article .ml-blk .ml-gallery figure img { width: 100%; }
.ml-article .ml-blk figure img { display: block; max-width: 100%; height: auto; border-radius: 16px; }
.ml-article .ml-blk figcaption { margin-top: 8px; color: #7a6c68; font-size: 16px; line-height: 1.5; text-align: center; }
.ml-article .ml-blk .ml-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 24px; border-radius: 22px; background: linear-gradient(135deg, var(--tn-3, #a82234), var(--tn-1, #6f1020)); color: #fbf8f3; }
.ml-article .ml-cta .ml-cta__t { margin: 0; font-size: 24px; line-height: 1.3; font-weight: 700; }
.ml-article .ml-blk .ml-btn { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; min-height: 48px; max-width: 100%; padding: 12px 22px; border: 1px solid var(--tn-2, #a51d2d); border-radius: 999px; background: var(--tn-2, #a51d2d); color: #fbf8f3; font: 700 17px/1.4 Arsenal, Georgia, serif; text-align: center; text-decoration: none; }
.ml-article .ml-blk .ml-btn:hover { background: var(--tn-1, #6f1020); color: #fbf8f3; }
.ml-article .ml-blk .ml-btn--ghost, .ml-article .ml-cta .ml-btn { border-color: var(--tn-gold, #cfae6e); background: #fbf8f3; color: var(--tn-1, #6f1020); }
.ml-article .ml-blk .ml-btn--zalo { background: transparent; color: var(--tn-2, #a51d2d); }
.ml-article .ml-cta .ml-btn--zalo { border-color: #fbf8f3; color: #fbf8f3; }
.ml-article .ml-blk .ml-faq { margin: 0 0 12px; padding: 16px 18px; border: 1px solid #efe7da; border-radius: 10px; background: #fbf8f3; }
.ml-article .ml-faq summary { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; cursor: pointer; font-weight: 700; list-style: none; }
.ml-article .ml-faq summary::-webkit-details-marker { display: none; }
.ml-article .ml-faq summary::after { content: '+'; flex: none; color: var(--tn-2, #a51d2d); font-size: 24px; line-height: 1; }
.ml-article .ml-faq[open] summary::after { content: '−'; }
.ml-article .ml-faq > div { margin-top: 10px; color: #5a4d4b; }
.ml-article .ml-faq > div > :last-child { margin-bottom: 0; }
.ml-article .ml-blk--form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 26px; align-content: start; padding: 26px; border: 1px solid #efe7da; border-top: 5px solid var(--tn-2, #a51d2d); border-radius: 22px; background: #fff; }
.ml-article .ml-blk--form > :not(.wpcf7) { grid-column: 1; }
.ml-article .ml-blk--form > .wpcf7 { grid-column: 2; grid-row: 1 / span 3; min-width: 0; }
.ml-article .wpcf7 :is(input[type="text"], input[type="tel"], input[type="email"], textarea, select) { box-sizing: border-box; width: 100%; max-width: 100%; height: auto; padding: 13px 14px; border: 1px solid #e6dccb; border-radius: 12px; background: #fff; color: #2b1c1e; font: inherit; }
.ml-article .wpcf7 :is(input[type="submit"], button) { box-sizing: border-box; width: 100%; height: auto; padding: 13px 14px; border: 0; border-radius: 999px; background: var(--tn-2, #a51d2d); color: #fff; font: 700 17px/1.4 Arsenal, Georgia, serif; cursor: pointer; }
.ml-article .wpcf7 .wpcf7-not-valid-tip { color: var(--tn-2, #a51d2d); }
@media (max-width: 767px) {
  .ml-article .ml-blk { margin-bottom: 32px; }
  .ml-article .ml-blk .ml-table { display: block; min-width: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; } /* lớp .ml-table cũ ở pages.css đặt min-width:520px, phải gỡ để bảng cuộn được trong khung */
  /* Bảng vừa khung điện thoại, không phải vuốt ngang (61/66 bảng chỉ 1-3 cột). Bảng từ 5 cột trở lên mới giữ bề rộng tối thiểu và cuộn ngang trong khung. */
  .ml-article .ml-table :is(thead, tbody, tfoot) { display: table; width: 100%; min-width: 0; table-layout: auto; }
  .ml-article .ml-table :is(th, td) { min-width: 0; padding: 10px; font-size: 15px; line-height: 1.45; overflow-wrap: anywhere; }
  .ml-article .ml-table:has(tr > :nth-child(5)) :is(thead, tbody, tfoot) { min-width: 560px; }
  .ml-article .ml-blk--form { grid-template-columns: minmax(0, 1fr); }
  .ml-article .ml-blk--form > .wpcf7 { grid-column: 1; grid-row: auto; }
  .ml-article .ml-blk h2 { font-size: 24px; }
  .ml-article .ml-blk .ml-answer { font-size: 20px; }
  .ml-article .ml-blk .ml-highlights, .ml-article .ml-blk .ml-gallery { grid-template-columns: minmax(0, 1fr); }
  .ml-article .ml-blk .ml-gallery > *, .ml-article .ml-blk .ml-gallery > *:first-child { grid-column: auto; }
  .ml-article .ml-blk .ml-cta { padding: 18px; align-items: stretch; flex-direction: column; }
  .ml-article .ml-cta .ml-cta__t { font-size: 22px; }
}
/* Dải kêu gọi trong bài: nút mở form là nút chính (vàng, to); gọi/Zalo là nút phụ viền sáng.
   Phải ghi đè rule chung "#wrapper .ml-btn--ghost" (chữ tối trên nền tối, không đọc được). */
body.ml-ui #wrapper .ml-article .ml-blk .ml-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 12px; }
body.ml-ui #wrapper .ml-article .ml-blk .ml-cta br { display: none; }
body.ml-ui #wrapper .ml-article .ml-blk .ml-cta .ml-btn { min-height: 48px; padding: 12px 22px; border-radius: 999px; border: 1px solid rgba(255,248,236,.7); background: transparent; color: #fff8ec; box-shadow: none; font: 700 16px/1.35 Arsenal, Georgia, serif; text-decoration: none; }
body.ml-ui #wrapper .ml-article .ml-blk .ml-cta .ml-btn:hover { background: rgba(255,255,255,.12); color: #fff; }
body.ml-ui #wrapper .ml-article .ml-blk .ml-cta .ml-btn[href^="#"] { order: -1; min-height: 54px; padding: 14px 30px; border: 0; background: linear-gradient(180deg, #f1dcab 0%, #cfae6e 100%); color: #2b1c1e; font-size: 18px; box-shadow: 0 8px 22px rgba(0,0,0,.25); }
body.ml-ui #wrapper .ml-article .ml-blk .ml-cta .ml-btn[href^="#"]::after { content: "→"; margin-left: 10px; }
body.ml-ui #wrapper .ml-article .ml-blk .ml-cta .ml-btn[href^="#"]:hover { background: linear-gradient(180deg, #f6e6c2 0%, #d8b97c 100%); color: #2b1c1e; transform: translateY(-1px); }
/* Trong khối form: không lồng hộp màu, chỉ một hàng nút gọi/Zalo gọn dưới form; nút "nhận giá" cuộn về chính form này thì ẩn. */
body.ml-ui #wrapper .ml-article .ml-blk--form .ml-cta { margin: 16px 0 0; padding: 0; border-radius: 0; background: none; color: inherit; }
body.ml-ui #wrapper .ml-article .ml-blk--form .ml-cta:has(a[href^="#dang-ky"]) { display: none; }
body.ml-ui #wrapper .ml-article .ml-blk--form .ml-cta .ml-btn { flex: 1 1 180px; min-height: 46px; padding: 10px 16px; border: 1px solid var(--tn-2, #a51d2d); background: #fff; color: var(--tn-2, #a51d2d); font-size: 16px; }
body.ml-ui #wrapper .ml-article .ml-blk--form .ml-cta .ml-btn:hover { background: var(--tn-2, #a51d2d); color: #fff; }
body.ml-ui #wrapper .ml-article .ml-blk--form .ml-cta .ml-btn--zalo { border-color: #0068ff; color: #0068ff; }
body.ml-ui #wrapper .ml-article .ml-blk--form .ml-cta .ml-btn--zalo:hover { background: #0068ff; color: #fff; }
body.ml-ui #wrapper .ml-article .ml-blk--form > p:empty { display: none; }
/* Khối form 2 cột chỉ khi cột nội dung đủ rộng; còn lại xếp 1 cột để ô nhập không bị bóp. */
@media (max-width: 1180px) {
  body.ml-ui #wrapper .ml-article .ml-blk--form { grid-template-columns: minmax(0, 1fr); }
  body.ml-ui #wrapper .ml-article .ml-blk--form > * { grid-column: 1; grid-row: auto; }
}
@media (max-width: 767px) {
  body.ml-ui #wrapper .ml-article .ml-blk .ml-cta { flex-direction: column; align-items: stretch; }
  body.ml-ui #wrapper .ml-article .ml-blk .ml-cta .ml-btn { width: 100%; }
}
/* Dải kêu gọi: chữ dài/nút dài không đẩy tràn khung ở mobile */
.ml-article .ml-cta > * { min-width: 0; max-width: 100%; }
.ml-article .ml-btn { white-space: normal; text-align: center; max-width: 100%; box-sizing: border-box; }
/* Form CF7 cũ của dự án dùng "form-inline-bar" (một hàng, cho thanh dính đáy): trong bài luôn xếp dọc, không tràn khỏi thẻ */
.ml-article .wpcf7 { max-width: 100%; }
.ml-article .wpcf7 .form-inline-bar { display: flex; flex-direction: column; align-items: stretch; flex-wrap: nowrap; gap: 10px; width: 100%; max-width: 100%; position: static; margin: 0; padding: 0; }
.ml-article .wpcf7 .form-inline-bar > p, .ml-article .wpcf7 .form-inline-bar .wpcf7-form-control-wrap { display: block; width: 100%; max-width: 100%; margin: 0; }
.ml-article .wpcf7 .form-inline-bar > p > br { display: none; }
.ml-article .wpcf7 .form-inline-bar :is(input[type="text"], input[type="tel"], input[type="email"], input[type="submit"], button) { width: 100%; max-width: 100%; margin: 0; }
.ml-article .wpcf7 .wpcf7-form > p, .ml-article .wpcf7 .wpcf7-form .wpcf7-form-control-wrap { display: block; max-width: 100%; }
/* Kiểu form cũ thứ hai (form-dk-bang-gia > form-inline > form-group): cũng xếp dọc, không tràn thẻ */
.ml-article .wpcf7 :is(.form-dk-bang-gia, .form-inline, .form-group, .form-dk-heading) { display: flex; flex-direction: column; align-items: stretch; flex-wrap: nowrap; gap: 10px; width: 100%; max-width: 100%; margin: 0; padding: 0; float: none; position: static; box-sizing: border-box; }
.ml-article .wpcf7 .form-dk-heading { display: block; margin: 0 0 6px; text-align: center; }
.ml-article .wpcf7 .form-dk-heading p { margin: 0; }
.ml-article .wpcf7 :is(.form-inline, .form-group) > p { display: block; width: 100%; max-width: 100%; margin: 0; }
.ml-article .wpcf7 :is(.form-dk-bang-gia, .form-inline, .form-group) :is(input[type="text"], input[type="tel"], input[type="email"], input[type="submit"], button) { width: 100%; max-width: 100%; margin: 0; left: auto; right: auto; }
/* Form cũ NẰM TRONG BÀI: thành thẻ giống form mới, bỏ kiểu thanh dính đáy (nền teal, chữ 9px, ẩn/hiện bằng opacity). Nhãn "ĐĂNG KÍ NHẬN" + "BẢNG GIÁ" của thanh dính được ghép lại thành tiêu đề. Thanh dính thật (trang nội dung cũ, không có .ml-article) không bị đụng. */
.ml-article .wpcf7 :is(.form-dk-bang-gia, form > .form-inline) { padding: 22px 20px; border: 1px solid #efe7da; border-top: 5px solid var(--tn-2, #a51d2d); border-radius: 22px; background: #fff; box-shadow: none; opacity: 1; transform: none; }
.ml-article .wpcf7 .form-dk-bang-gia .form-inline { padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; opacity: 1; transform: none; }
.ml-article .wpcf7 .form-dk-heading { color: var(--tn-1, #6f1020); font-size: 20px !important; letter-spacing: 0 !important; text-align: left !important; margin: 0 0 10px !important; }
.ml-article .wpcf7 .form-inline .form-group:first-child label { display: block; margin: 0 0 6px; color: var(--tn-1, #6f1020); font-size: 18px; font-weight: 700; line-height: 1.3; letter-spacing: .2px; white-space: normal; text-align: left; }
.ml-article .wpcf7 .form-inline .form-group:first-child label::after { content: " BẢNG GIÁ"; }
.ml-article .wpcf7 .form-inline .form-group:nth-child(2) label { display: none; }
.ml-article .wpcf7 .ml-bar-hint { display: none; }
.ml-article .wpcf7 .form-inline input[type="submit"] { background: var(--tn-2, #a51d2d) !important; height: auto; line-height: 1.4; padding: 13px 14px; font-size: 17px; text-transform: none; border-radius: 999px; }
/* Nút đứng riêng trong đoạn văn (Hotline / Zalo / Cuộn lên đăng ký): rộng bằng nhau, không lệch trái từng cỡ */
.ml-article .ml-blk p > a.ml-btn:only-child { display: flex; width: 100%; justify-content: center; text-align: center; box-sizing: border-box; }

/* Mobile: .ml-cta xếp CỘT DỌC nên flex-basis 180px/160px của nút (viết cho hàng ngang) thành CHIỀU CAO 160-180px → nút phình to. Trong cột dọc nút chỉ cao theo nội dung. */
@media (max-width: 767px) {
  body.ml-ui #wrapper .ml-article .ml-blk .ml-cta .ml-btn,
  body.ml-ui #wrapper .ml-article .ml-blk .ml-cta .ml-btn[href^="#"] { flex: 0 0 auto; }
  /* Hotfix ads cũ trong Flatsome theme mods ép #sticky-cta-mobile a { flex: 1 1 160px !important } (viết cho bố cục hàng ngang cũ) → trong cột dọc thành cao 160px. */
  body.ml-ui #wrapper .ml-article .ml-cta a.ml-btn { flex: 0 0 auto !important; }
}

/* 2 nút cuối trang ads (#sticky-cta-mobile: NHẬN GIÁ CUỐI CÙNG / CHAT ZALO) nằm trên nền sáng; hotfix ads cũ trong Flatsome theme mods ép `color:#fff !important` nên chữ trắng trên nền kem/trắng, nút CHAT ZALO nhìn như nút trống. */
body.ml-ui #wrapper .ml-article #sticky-cta-mobile a.ml-btn--zalo { color: #0068ff !important; }
body.ml-ui #wrapper .ml-article #sticky-cta-mobile a.ml-btn[href^="#"] { color: #2b1c1e !important; }
