/* ===== Bài viết trình bày sinh động (tiêu đề "## [icon|box:kieu] ...") – phong cách Bauhaus =====
   Tròn · vuông · tam giác; đỏ gạch · vàng · kem trên nền đen. Nạp SAU bauhaus.css. */
.rx { --rx-red: #b8432f; --rx-yel: #d9a83b; --rx-bone: #f4f0ea; --rx-ink: #0f0e0d; }
.rx ul, .rx ol { white-space: normal; }

/* Tiêu đề mục: icon hình học + chữ in hoa */
.lb-article .lb-body .rx-h { display: flex; align-items: center; gap: 16px; text-transform: uppercase; letter-spacing: .04em;
  font-size: clamp(17px, 1.6vw, 21px); line-height: 1.35; color: var(--rx-bone); margin: 2.4em 0 .9em; padding-bottom: 14px;
  border-bottom: 3px solid var(--rx-bone); white-space: normal; }
.rx-ic { flex: 0 0 48px; width: 48px; height: 48px; display: block; }
.rx-ic svg { display: block; overflow: visible; }
.rx-ht { flex: 1; }
.rx-num { display: inline-block; min-width: 2.1em; margin-right: .55em; padding: 2px 6px; background: var(--rx-red); color: var(--rx-bone);
  font-weight: 700; text-align: center; letter-spacing: 0; }

/* Danh sách: ký hiệu tròn / vuông / tam giác thay cho dấu chấm */
.rx-list { list-style: none; margin: 0 0 1.2em; padding: 0; }
.rx-list li { position: relative; padding: 0 0 .55em 30px; }
.rx-list li::before, .rx-step .rx-mark { content: ""; position: absolute; left: 4px; top: .62em; width: 11px; height: 11px; }
.rx-circle::before, .rx-circle .rx-mark { background: var(--rx-yel); border-radius: 50%; }
.rx-square::before, .rx-square .rx-mark { background: var(--rx-bone); }
.rx-triangle::before, .rx-triangle .rx-mark { background: var(--rx-red); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.rx-lead { font-weight: 500; color: var(--rx-bone); margin-bottom: .5em !important; }

/* Khung nổi bật */
.rx-box { position: relative; margin: 2.6em 0; padding: 8px clamp(20px, 4vw, 44px) 30px; border: 3px solid var(--rx-bone); overflow: hidden; isolation: isolate; }
.rx-box .rx-h { margin-top: 1.4em; }
.rx-deco { position: absolute; z-index: -1; pointer-events: none; }
.rx-d1 { width: 120px; height: 120px; border-radius: 50%; background: var(--rx-yel); right: -42px; top: -42px; opacity: .9; }
.rx-d2 { width: 54px; height: 54px; background: var(--rx-red); right: 64px; top: 22px; }
.rx-d3 { width: 0; height: 0; border-left: 36px solid transparent; border-right: 36px solid transparent; border-bottom: 62px solid var(--rx-red); left: -14px; bottom: -14px; opacity: .85; }

/* Khung LỘ TRÌNH: dòng thời gian */
.rx-box-timeline { background: linear-gradient(90deg, rgba(217,168,59,.1), rgba(217,168,59,0) 60%); }
.rx-box-timeline .rx-h { padding-right: 150px; }
.rx-timeline { list-style: none; margin: 6px 0 1.4em; padding: 0 0 0 4px; position: relative; }
.rx-timeline::before { content: ""; position: absolute; left: 13px; top: 14px; bottom: 14px; width: 3px; background: rgba(244,240,234,.35); }
.rx-step { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; padding: 12px 0 12px 42px; border-bottom: 1px solid rgba(244,240,234,.14); }
.rx-step:last-child { border-bottom: 0; }
.rx-step .rx-mark { left: 2px; top: 16px; width: 22px; height: 22px; box-shadow: 0 0 0 5px var(--rx-ink); }
.rx-name { font-weight: 600; color: var(--rx-bone); line-height: 1.35; }
.rx-when { grid-row: span 2; align-self: center; text-align: right; font-weight: 700; font-size: 1.15em; color: var(--rx-yel); white-space: nowrap; line-height: 1.1; }
.rx-when small { display: block; font-size: 10px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: rgba(244,240,234,.55); margin-bottom: 4px; }
.rx-dates { font-size: 14px; letter-spacing: .02em; color: rgba(244,240,234,.6); }
.rx-step:nth-last-child(-n+2) .rx-when { white-space: normal; font-size: .9em; max-width: 13em; }

/* Khung ƯU ĐÃI: nền kem, chữ đen, thẻ giảm giá */
.rx-box-promo { background: var(--rx-bone); color: var(--rx-ink); border-color: var(--rx-bone); }
.lb-article .lb-body .rx-box-promo .rx-h { color: var(--rx-ink); border-bottom-color: var(--rx-ink); padding-right: 150px; }
.rx-box-promo .rx-lead, .rx-box-promo p { color: var(--rx-ink); }
.rx-box-promo .rx-square::before { background: var(--rx-ink); }
.rx-box-promo .rx-d1 { background: var(--rx-red); }
.rx-box-promo .rx-d2 { background: var(--rx-yel); }
.rx-box-promo .rx-d3 { border-bottom-color: var(--rx-ink); opacity: .9; }
.rx-box-promo a { color: var(--rx-red) !important; }
.rx-deals { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 4px 0 1.4em; }
.rx-deal { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 20px; background: var(--rx-ink); color: var(--rx-bone); line-height: 1.45; font-size: 15px; }
.rx-deal b { font-size: clamp(42px, 6vw, 64px); line-height: 1; font-weight: 700; letter-spacing: -.03em; color: var(--rx-yel); }
.rx-deal-1 { background: var(--rx-red); }
.rx-deal-1 b { color: var(--rx-bone); }

/* ---------- Chuyển động ---------- */
.rx-reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.rx-reveal.in { opacity: 1; transform: none; }
.rx-reveal .rx-step, .rx-reveal .rx-deal { opacity: 0; transform: translateX(-18px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: calc(.25s + var(--i) * .09s); }
.rx-reveal.in .rx-step, .rx-reveal.in .rx-deal { opacity: 1; transform: none; }
.rx-h { position: relative; }
.rx-reveal .lb-h.rx-h { border-bottom-color: transparent; background: linear-gradient(currentColor, currentColor) 0 100% / 0 3px no-repeat; transition: background-size 1s var(--ease) .15s; }
.rx-box-promo .lb-h.rx-h { color: var(--rx-ink); }
.rx-reveal.in .lb-h.rx-h { background-size: 100% 3px; }
.rx-d1 { animation: rx-float 7s ease-in-out infinite; }
.rx-d2 { animation: rx-turn 14s linear infinite; }
.rx-d3 { animation: rx-float 9s ease-in-out infinite reverse; }
.rx-deal b { display: inline-block; animation: rx-beat 2.6s ease-in-out infinite; transform-origin: left center; }
.rx-deal-1 b { animation-delay: 1.3s; }
.ic-spin { animation: rx-turn 8s linear infinite; transform-box: fill-box; transform-origin: center; }
.ic-spin-slow { animation: rx-turn 18s linear infinite; }
.ic-pulse { animation: rx-pulse 3s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.ic-bob { animation: rx-bob 3.2s ease-in-out infinite; }
.ic-orbit { animation: rx-orbit 5s ease-in-out infinite; }
.ic-grow { animation: rx-grow 3s ease-in-out infinite; transform-box: fill-box; transform-origin: bottom; }
.ic-grow-x { animation: rx-grow-x 3.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes rx-turn { to { transform: rotate(360deg); } }
@keyframes rx-float { 50% { transform: translate(-10px, 12px); } }
@keyframes rx-pulse { 50% { transform: scale(.78); } }
@keyframes rx-bob { 50% { transform: translateY(-4px); } }
@keyframes rx-orbit { 50% { transform: translate(-6px, 6px); } }
@keyframes rx-grow { 50% { transform: scaleY(.55); } }
@keyframes rx-grow-x { 50% { transform: scaleX(.6); } }
@keyframes rx-beat { 0%, 70%, 100% { transform: none; } 80% { transform: scale(1.08) rotate(-2deg); } }
@media (prefers-reduced-motion: reduce) {
  .rx *, .rx *::before { animation: none !important; transition: none !important; }
  .rx-reveal, .rx-reveal .rx-step, .rx-reveal .rx-deal { opacity: 1 !important; transform: none !important; }
  .rx-reveal .lb-h.rx-h { background-size: 100% 3px; }
}

@media (max-width: 600px) {
  .lb-article .lb-body .rx-h { gap: 12px; }
  .rx-ic, .rx-ic svg { flex-basis: 38px; width: 38px; height: 38px; }
  .rx-box { padding: 4px 18px 22px; margin-left: -6px; margin-right: -6px; }
  .rx-box-timeline .rx-h, .lb-article .lb-body .rx-box-promo .rx-h { padding-right: 70px; }
  .rx-d1 { width: 90px; height: 90px; right: -40px; top: -40px; }
  .rx-d2 { width: 34px; height: 34px; right: 30px; top: 14px; }
  .rx-step { grid-template-columns: 1fr; padding-left: 38px; }
  .rx-when { grid-row: auto; text-align: left; font-size: 1.05em; }
  .rx-when small { display: inline; margin: 0 6px 0 0; }
  .rx-step:nth-last-child(-n+2) .rx-when { max-width: none; }
  .rx-deals { grid-template-columns: 1fr; }
}
.lb-article .lb-body .rx { white-space: normal; }
.rx p { white-space: pre-line; }
.rx-box-promo .rx-ic [fill="#f4f0ea"] { fill: var(--rx-ink); }
.rx-box-promo .rx-ic [stroke="#f4f0ea"] { stroke: var(--rx-ink); }
