:root {
  --mlh-nen: #1e1a13;
  --mlh-cam-05: rgba(255, 138, 43, .043);
  --mlh-cam-09: rgba(255, 138, 43, .094);
  --mlh-cam-18: rgba(255, 138, 43, .18);
  --mlh-kem-06: rgba(255, 241, 227, .06);
  --mlh-kem-16: rgba(255, 241, 227, .16);
  --mlh-chu: #f5ead8;
  --mlh-chu-2: #d9cfbf;
  --mlh-chu-3: #b3a894;
  --mlh-ok: #b9ca7e;
  --mlh-ok-chu: #dbe6b3;
}

/* phat-dark - trang "Bai hoc" (PA02, PRJ-045). Xem NHAT_KY_TRIEN_KHAI.md
   lat 6-7 de biet lich su. VA lat 7: rule ngay sau 1 khoi comment dai bi
   Chromium bo qua khi parse - giu comment file nay NGAN, ASCII. */

/* Dau trang: chip cach menu 104/56px */
.pd-mlh-dau {
  padding: clamp(56px, 9vw, 104px) 0 36px;
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px; align-items: end;
}
.pd-mlh-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 10px; border-radius: 999px;
  background: var(--mlh-cam-09); border: 1px solid var(--mlh-cam-18);
  font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; font-weight: 700; color: var(--o-300); white-space: nowrap;
}
.pd-mlh-chip svg { width: 16px; height: 16px; color: var(--o-400); }
/* Cỡ chữ H1 vá 24/09 lat 9: bằng .pd-h1--blog (clamp 34-58px) - ban cu
   clamp(40,6.4vw,72) qua to lam "Hoc bang tay," tu vo xuong 2 dong, cong
   voi <br> co san thanh 4 dong. */
.pd-mlh-dau h1 {
  font-family: var(--font-heading); font-weight: 800; font-size: clamp(30px, 4vw, 40px); line-height: 1.18;
  margin: 18px 0 14px; letter-spacing: -.01em; color: var(--mlh-chu); max-width: 24ch; text-wrap: balance;
}
.pd-mlh-dau h1 .pd-mlh-cam { color: var(--o-400); }
.pd-mlh-dau > div > p { margin: 0; font-size: clamp(16px, 1.6vw, 19px); color: var(--mlh-chu-2); max-width: 36ch; }

/* Bat dau trong 3 phut */
.pd-mlh-nhanh {
  padding: 22px 22px 20px; border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--mlh-cam-09), var(--mlh-cam-05)); border: 1px solid var(--mlh-cam-18);
}
.pd-mlh-nhanh h2 { font-family: var(--font-heading); font-size: 20px; margin: 0 0 12px; line-height: 1.35; color: var(--mlh-chu); }
.pd-mlh-nhanh ol { list-style: none; margin: 0 0 16px; padding: 0; counter-reset: mlh-b; display: flex; flex-direction: column; gap: 8px; }
.pd-mlh-nhanh li {
  counter-increment: mlh-b; position: relative; padding-left: 38px; font-size: 15px; line-height: 1.55; color: var(--mlh-chu-2);
}
.pd-mlh-nhanh li::before {
  content: counter(mlh-b); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 999px;
  display: grid; place-items: center; background: var(--o-500); color: var(--o-900); font-size: 13px; font-weight: 700;
}

/* Lo trinh Thang 5 bac */
.pd-mlh-mk { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 44px 0 16px; flex-wrap: wrap; }
.pd-mlh-mk h2 { font-family: var(--font-heading); font-size: clamp(24px, 3vw, 30px); margin: 0; line-height: 1.3; color: var(--mlh-chu); }
.pd-mlh-mk p { margin: 0; color: var(--mlh-chu-3); font-size: 14.5px; }
.pd-mlh-thang { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; align-items: end; }
.pd-mlh-bac {
  position: relative; border-radius: var(--radius-lg) var(--radius-lg) 6px 6px; padding: 12px 12px 14px;
  background: var(--mlh-kem-06); border: 1px solid var(--mlh-kem-06);
  display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; min-height: calc(64px + var(--i) * 26px);
}
.pd-mlh-bac b { font-family: var(--font-heading); font-size: 15px; color: var(--mlh-chu); }
.pd-mlh-bac span { font-size: 12.5px; color: var(--mlh-chu-3); line-height: 1.45; }
.pd-mlh-bac.co-bai { background: linear-gradient(180deg, var(--mlh-cam-18), var(--mlh-cam-05)); border-color: var(--mlh-cam-18); }
.pd-mlh-bac.co-bai span { color: var(--o-200); }
.pd-mlh-bac.co-bai::after {
  content: ""; position: absolute; top: -7px; right: 12px; width: 14px; height: 14px; border-radius: 999px;
  background: var(--o-500); box-shadow: 0 0 0 5px rgba(255, 138, 43, .2);
}

/* The bai hoc lon */
.pd-mlh-bai {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); border-radius: var(--radius-lg); overflow: hidden; margin-top: 18px;
  background: radial-gradient(120% 80% at 100% 0%, rgba(255, 138, 43, .085), transparent 55%), var(--mlh-nen);
  border: 1px solid var(--mlh-cam-18); box-shadow: 0 24px 48px -28px rgba(255, 138, 43, .35); position: relative;
  transition: transform .3s var(--tap-em, cubic-bezier(.2, .7, .3, 1)), box-shadow .3s ease;
}
.pd .pd-mlh-bai, .pd .pd-mlh-bai * { text-decoration: none; }
.pd-mlh-bai::before {
  content: ""; position: absolute; left: 28px; right: 28px; top: -1px; height: 2px; background: var(--o-grad-flat); z-index: 2;
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .pd-mlh-bai:hover { transform: translateY(-4px) rotate(-.4deg); box-shadow: 0 34px 60px -28px rgba(255, 138, 43, .5); }
  .pd-mlh-bai:hover .pd-mlh-bia svg { transform: scale(1.04) rotate(.8deg); }
}
.pd-mlh-bai:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; }
.pd-mlh-bia { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #241c12; }
.pd-mlh-bai > .pd-mlh-bia { aspect-ratio: auto; min-height: 340px; }
.pd-mlh-bia svg { position: absolute; inset: 0; width: 100%; height: 100%; transition: transform .6s ease; }
.pd-mlh-bia img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.pd-mlh-bia__nhan {
  position: absolute; left: 14px; bottom: 14px; padding: 4px 10px; border-radius: 999px; background: rgba(22, 20, 15, .7);
  font-size: 11.5px; color: var(--mlh-chu-3); border: 1px dashed var(--mlh-kem-16);
}
.pd-mlh-bai__than { padding: 26px clamp(20px, 3vw, 34px) 26px; display: flex; flex-direction: column; gap: 14px; }
.pd-mlh-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.pd-mlh-meta span { padding: 4px 11px; border-radius: 999px; background: var(--mlh-kem-06); font-size: 13px; font-weight: 600; color: var(--mlh-chu-2); }
.pd-mlh-meta span.bac2 { background: var(--mlh-cam-09); color: var(--o-300); }
.pd-mlh-bai h3 { font-family: var(--font-heading); font-size: clamp(26px, 3.2vw, 34px); line-height: 1.22; margin: 0; color: var(--mlh-chu); }
.pd-mlh-bai__mo { margin: 0; color: var(--mlh-chu-2); font-size: 15.5px; }

/* 5 tem */
.pd-mlh-tem-ds { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.pd-mlh-tem {
  position: relative; padding: 10px 6px 9px; text-align: center; border-radius: 6px; background: var(--mlh-kem-06); color: var(--mlh-chu-3);
  font-size: 11.5px; font-weight: 600; line-height: 1.35;
  -webkit-mask: radial-gradient(circle 3.5px at 50% 0, transparent 97%, #000) top/12px 51% repeat-x, radial-gradient(circle 3.5px at 50% 100%, transparent 97%, #000) bottom/12px 51% repeat-x;
          mask: radial-gradient(circle 3.5px at 50% 0, transparent 97%, #000) top/12px 51% repeat-x, radial-gradient(circle 3.5px at 50% 100%, transparent 97%, #000) bottom/12px 51% repeat-x;
}
.pd-mlh-tem b { display: block; font-family: var(--font-heading); font-size: 17px; color: var(--mlh-chu-2); }
.pd-mlh-tem.xong { background: var(--o-500); color: var(--o-900); }
.pd-mlh-tem.xong b { color: var(--o-900); }
.pd-mlh-tem.dang { background: var(--mlh-cam-18); color: var(--o-100); box-shadow: inset 0 0 0 2px var(--o-500); }
.pd-mlh-tem.dang b { color: var(--o-200); }
.pd-mlh-tt-hang { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.pd-mlh-tt { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--mlh-chu-2); }
.pd-mlh-tt i { width: 9px; height: 9px; border-radius: 999px; background: var(--mlh-chu-3); display: block; }
.pd-mlh-tt.dang i { background: var(--o-500); box-shadow: 0 0 0 4px rgba(255, 138, 43, .2); }
.pd-mlh-tt.xong { color: var(--mlh-ok-chu); } .pd-mlh-tt.xong i { background: var(--mlh-ok); }
.pd-mlh-nut-gia {
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 999px;
  background: var(--o-grad); color: var(--o-900); font: 700 14px/1.2 var(--font-body); white-space: nowrap;
}
.pd-mlh-nut-gia svg { width: 16px; height: 16px; }

/* Sap co */
.pd-mlh-sap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 18px; }
.pd-mlh-sap-the { border-radius: var(--radius-lg); overflow: hidden; background: var(--mlh-nen); border: 1px dashed var(--mlh-kem-16); }
.pd-mlh-sap-the .pd-mlh-bia { aspect-ratio: 16 / 9; filter: saturate(.55) brightness(.8); }
.pd-mlh-sap-the__than { padding: 18px 20px 20px; }
.pd-mlh-sap-nhan {
  display: inline-block; padding: 4px 11px; border-radius: 999px; border: 1px solid var(--mlh-kem-16);
  font-size: 12px; letter-spacing: .06em; text-transform: uppercase; font-weight: 700; color: var(--mlh-chu-2);
}
.pd-mlh-sap-the h3 { font-family: var(--font-heading); font-size: 21px; margin: 10px 0 6px; line-height: 1.3; color: var(--mlh-chu); }
.pd-mlh-sap-the p { margin: 0; font-size: 14.5px; color: var(--mlh-chu-3); }

.pd-mlh__moi { color: var(--color-neutral-500, #9a9186); font-size: 14px; margin: 20px 0 0; }

@media (prefers-reduced-motion: no-preference) {
  .pd-mlh-vao { animation: pd-mlh-vao .5s cubic-bezier(.2, .7, .3, 1) both; }
  .pd-mlh-vao.d2 { animation-delay: .08s; } .pd-mlh-vao.d3 { animation-delay: .16s; }
}
@keyframes pd-mlh-vao { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

@media (max-width: 860px) {
  .pd-mlh-dau { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .pd-mlh-bai { grid-template-columns: minmax(0, 1fr); }
  .pd-mlh-bai > .pd-mlh-bia { aspect-ratio: 16 / 9; min-height: 0; }
  .pd-mlh-sap { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
  .pd-mlh-thang { gap: 6px; }
  .pd-mlh-bac { padding: 10px 8px 12px; min-height: calc(52px + var(--i) * 18px); }
  .pd-mlh-bac span { display: none; }
  .pd-mlh-bac.co-bai span { display: block; font-size: 11px; }
  .pd-mlh-tem { font-size: 0; padding: 9px 4px; }
  .pd-mlh-tem b { font-size: 16px; }
}

/* The goi y PA01 */
.pd-mlh-goi-y {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(255, 138, 43, .085), transparent 55%),
    #1e1a13;
  border: 1px solid rgba(255, 138, 43, .18);
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  margin: 32px 0;
  text-decoration: none;
  color: #f5ead8;
  font-family: var(--font-body);
  transition: transform .18s cubic-bezier(.2, .7, .3, 1), border-color .18s;
}
.pd-mlh-goi-y:hover, .pd-mlh-goi-y:focus-visible { transform: translateY(-2px); outline: none; }
.pd-mlh-goi-y__k { font-size: 12.5px; color: #b3a894; display: block; margin-bottom: 3px; }
.pd-mlh-goi-y__t { font-size: 16px; font-weight: 700; margin: 0; }
.pd-mlh-goi-y__nut {
  flex: none; font-size: 14px; font-weight: 700; color: #ffb066;
  white-space: nowrap;
}

@media (max-width: 480px) {
  .pd-mlh-goi-y { padding: 16px 18px; }
}
