/* ===== Landing: Đăng ký học thử miễn phí ===== */

/* Diploma band (mang từ trang chủ): neo .dp-seal vào riêng khối ảnh để nút CTA bên
   dưới không bị con dấu (absolute) đè lên. */
.diploma .dp-figure {
  position: relative;
}
.diploma .dp-cta {
  margin-top: 44px;
  display: flex;
  justify-content: center;
}
@media (max-width: 860px) {
  .diploma .dp-cta {
    margin-top: 30px;
  }
}

/* chrome: header slim + footer gọn + thanh CTA dính đáy */
body.lp-page {
  padding-bottom: 74px;
}
/* Nâng cụm nút liên hệ nổi (.float, từ footer trang chính) lên trên thanh CTA dính đáy. */
.lp-page .float {
  bottom: 88px;
}
@media (max-width: 560px) {
  .lp-page .float {
    bottom: calc(74px + env(safe-area-inset-bottom, 0px));
  }
}
.lp-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.lp-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}
.lp-header-cta {
  display: flex;
  align-items: center;
  gap: 14px;
}
.lp-hotline {
  font-weight: 800;
  color: var(--ink);
  font-size: 15px;
  white-space: nowrap;
}
.lp-hotline:hover {
  color: var(--red);
}

.lp-foot {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.75);
  text-align: center;
  padding: clamp(34px, 5vw, 52px) 0;
}
.lp-foot-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  margin-bottom: 18px;
}
.lp-foot-brand .brand {
  font-weight: 800;
}
.lp-foot-brand img {
  width: 38px;
  height: 38px;
}
.lp-foot-info {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  justify-content: center;
  font-size: 14.5px;
}
.lp-foot-info a {
  color: #fff;
}
.lp-foot-legal {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.5);
  max-width: 60ch;
  margin: 0 auto;
}

.lp-sticky {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  background: #fff;
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 30px -12px rgba(0, 0, 0, 0.18);
}
.lp-sticky .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-block: 11px;
}
.lp-sticky-txt {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.lp-sticky-txt b {
  font-size: 15px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.lp-sticky-txt span {
  font-size: 12.5px;
  color: var(--muted);
}
.lp-sticky-act {
  display: flex;
  gap: 10px;
  align-items: center;
}
@media (max-width: 560px) {
  .lp-header-cta .btn {
    padding: 9px 14px;
    font-size: 13px;
  }
  .lp-hotline {
    display: none;
  }
  .lp-sticky-txt b {
    font-size: 13.5px;
  }
  .lp-sticky-txt span {
    font-size: 11px;
  }
  .lp-sticky-act .btn--ghost {
    display: none;
  }
}

.lp-hero {
  background: var(--ink);
  color: #fff;
  position: relative;
  overflow: hidden;
  padding-block: clamp(36px, 4.5vw, 60px);
}
.lp-hero::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 360px;
  height: 360px;
  border: 64px solid var(--red);
  border-radius: 50%;
  opacity: 0.16;
  border-right-color: transparent;
  border-bottom-color: transparent;
  pointer-events: none;
}
.lp-hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(30px, 4vw, 60px);
  align-items: center;
  position: relative;
  z-index: 2;
}
.lp-hero .eyebrow {
  color: #fff;
  display: inline-block;
  margin-bottom: 16px;
}
.lp-hero h1 {
  color: #fff;
  font-size: clamp(28px, 4.2vw, 50px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  font-weight: 800;
}
.lp-hero h1 .hl {
  color: var(--red);
}
.lp-lead {
  color: rgba(255, 255, 255, 0.82);
  margin-top: 16px;
  font-size: clamp(15.5px, 1.6vw, 18px);
  max-width: 56ch;
  line-height: 1.6;
}
.lp-offers {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}
.lp-offer {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--night-line);
  border-radius: 14px;
  padding: 12px 18px;
  display: flex;
  flex-direction: column;
  min-width: 124px;
}
.lp-offer b {
  font-size: 20px;
  color: #fff;
  font-family: var(--mono);
  letter-spacing: -0.02em;
}
.lp-offer span {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 2px;
}
.lp-offer.hot {
  background: var(--red);
  border-color: var(--red);
}
.lp-offer.hot span {
  color: rgba(255, 255, 255, 0.9);
}

/* sections */
.lp-sec {
  padding-block: clamp(18px, 2.2vw, 34px);
}
.lp-sec.alt {
  background: var(--paper-2);
}
.lp-head {
  text-align: center;
  max-width: 62ch;
  margin: 0 auto 22px;
}
.lp-head p {
  margin-top: 10px;
}
.lp-head h2 {
  font-size: clamp(26px, 3.4vw, 40px);
  letter-spacing: -0.03em;
  margin-top: 14px;
}
.lp-head p {
  color: var(--muted);
  margin-top: 14px;
  font-size: 16.5px;
  line-height: 1.6;
}

.lp-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.lp-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: transform 0.2s, box-shadow 0.25s;
}
.lp-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.lp-item .ic {
  flex: 0 0 46px;
  height: 46px;
  border-radius: 13px;
  background: var(--red-tint);
  color: var(--red);
  display: grid;
  place-items: center;
  font-size: 22px;
}
.lp-item h3 {
  font-size: 17px;
  margin-bottom: 5px;
  letter-spacing: -0.01em;
}
.lp-item p {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.55;
}

/* stats */
.lp-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: clamp(28px, 4vw, 44px);
}
.lp-stat {
  text-align: center;
}
.lp-stat .n {
  font-family: var(--mono);
  font-weight: 800;
  font-size: clamp(26px, 3.2vw, 44px);
  color: var(--red);
  letter-spacing: -0.03em;
}
.lp-stat .l {
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 6px;
}

/* promo list */
.lp-promo {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.lp-promo li {
  list-style: none;
  display: flex;
  gap: 14px;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 15px 20px;
  font-size: 15.5px;
}
.lp-promo li .tag {
  flex: 0 0 auto;
  background: var(--red);
  color: #fff;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 13px;
  padding: 5px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

/* trial courses chips */
.lp-courses {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 26px;
}
.lp-courses .chip {
  font-size: 14.5px;
}

/* grid 3 cột (mục tiêu) */
.lp-grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.lp-goal {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  position: relative;
}
.lp-goal .num {
  font-family: var(--mono);
  font-weight: 800;
  font-size: 30px;
  color: var(--red);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 14px;
}
.lp-goal p {
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.6;
}

/* band highlight (cơ hội nghề nghiệp) */
.lp-band {
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-xl);
  overflow: hidden;
  position: relative;
  padding: clamp(40px, 6vw, 72px) clamp(24px, 5vw, 64px);
  text-align: center;
}
.lp-band::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -70px;
  width: 300px;
  height: 300px;
  border: 56px solid var(--red);
  border-radius: 50%;
  opacity: 0.16;
  border-right-color: transparent;
  border-top-color: transparent;
  pointer-events: none;
}
.lp-band .eyebrow {
  color: #fff;
  display: inline-block;
}
.lp-band h2 {
  color: #fff;
  position: relative;
  z-index: 2;
  font-size: clamp(24px, 3.2vw, 40px);
  margin-top: 14px;
  letter-spacing: -0.02em;
  max-width: 22ch;
  margin-inline: auto;
  line-height: 1.12;
}
.lp-band p {
  position: relative;
  z-index: 2;
  color: rgba(255, 255, 255, 0.85);
  margin: 16px auto 0;
  max-width: 64ch;
  font-size: 16.5px;
  line-height: 1.65;
}
.lp-band .hl {
  color: var(--red);
}

/* danh sách khóa học (4 thẻ) */
.lp-course-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px 22px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.25s, border-color 0.2s;
}
.lp-course-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--red);
}
.lp-course-card .ic {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: var(--red-tint);
  color: var(--red);
  display: grid;
  place-items: center;
  font-size: 28px;
  margin: 0 auto 14px;
}
.lp-course-card h3 {
  font-size: 17px;
  letter-spacing: -0.01em;
}
.lp-course-card p {
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 6px;
  line-height: 1.5;
}

/* promo chi tiết */
.lp-promo li .pc {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.lp-promo li .pc b {
  font-size: 15.5px;
  letter-spacing: -0.01em;
}
.lp-promo li .pc span {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.5;
}
.lp-promo li.main {
  background: var(--red-tint);
  border-color: rgba(220, 0, 0, 0.25);
}
.lp-note {
  text-align: center;
  font-size: 13.5px;
  color: var(--muted);
  margin: 16px auto 0;
  max-width: 720px;
}

/* gallery ảnh */
.lp-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.lp-gallery a {
  display: block;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--paper-2);
}
.lp-gallery a.tall {
  grid-row: span 2;
  aspect-ratio: 4 / 6.2;
}
.lp-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}
.lp-gallery a:hover img {
  transform: scale(1.06);
}

/* video (facade YouTube) */
.vsec {
  background: var(--paper-2);
}
.vstage {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
}
.vframe {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: #000;
  aspect-ratio: 16/9;
}
.vslide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s ease;
}
.vslide.active {
  opacity: 1;
  visibility: visible;
}
.vslide iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.ytfacade {
  position: absolute;
  inset: 0;
  cursor: pointer;
  overflow: hidden;
}
.ytfacade img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.ytfacade:hover img {
  transform: scale(1.04);
}
.ytfacade::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(22, 17, 15, 0.82), rgba(22, 17, 15, 0.05) 55%);
}
.ytplay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--red);
  display: grid;
  place-items: center;
  z-index: 3;
  box-shadow: 0 14px 40px -6px rgba(220, 0, 0, 0.7);
  transition: transform 0.2s;
}
.ytfacade:hover .ytplay {
  transform: translate(-50%, -50%) scale(1.08);
}
.ytplay::before {
  content: "";
  border-style: solid;
  border-width: 13px 0 13px 22px;
  border-color: transparent transparent transparent #fff;
  margin-left: 5px;
}
.ytcap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 26px 28px;
  z-index: 3;
  color: #fff;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}
.ytcap b {
  font-size: clamp(17px, 2vw, 22px);
  font-weight: 800;
  letter-spacing: -0.02em;
  max-width: 30ch;
}
.ytcap .ch {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  white-space: nowrap;
}
.varrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 6;
  font-size: 20px;
  color: var(--ink);
  transition: 0.2s;
}
.varrow:hover {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}
.varrow.prev {
  left: -24px;
}
.varrow.next {
  right: -24px;
}
.vdots {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 24px;
}
.vdots button {
  width: 32px;
  height: 6px;
  border-radius: 999px;
  border: 0;
  background: var(--line);
  cursor: pointer;
  transition: 0.2s;
  padding: 0;
}
.vdots button.active {
  background: var(--red);
  width: 46px;
}

@media (max-width: 900px) {
  .lp-hero .wrap {
    grid-template-columns: 1fr;
  }
  .lp-grid {
    grid-template-columns: 1fr;
  }
  .lp-grid3 {
    grid-template-columns: 1fr;
  }
  .lp-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 760px) {
  .lp-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
  .lp-gallery a.tall {
    grid-row: auto;
    aspect-ratio: 4 / 3;
  }
  .varrow.prev {
    left: 8px;
  }
  .varrow.next {
    right: 8px;
  }
  .varrow {
    width: 42px;
    height: 42px;
    font-size: 17px;
  }
  .ytplay {
    width: 66px;
    height: 66px;
  }
}

/* =========================================================================
   Gutenberg core-block mirrors — để markup do block sinh ra (group/heading/
   paragraph) ăn đúng style như bản hardcode cũ. Không plugin, không build.
   ====================================================================== */

/* Bỏ khoảng cách block-gap mặc định; để grid gap + margin theo class (vd .lp-head,
   .lp-offers) tự điều khiển. KHÔNG reset margin-block của .wp-block-group ở đây vì sẽ
   đè mất margin có chủ đích của .lp-head/.lp-offers (gây sát nội dung). */
.lp-page {
  --wp--style--block-gap: 0;
}

/* Một số phiên bản WP bọc con của group trong .wp-block-group__inner-container,
   khiến grid/flex items không còn là con trực tiếp của container. display:contents
   "xoá" hộp trung gian này để con xuyên qua thành grid/flex item của container cha.
   (Nếu WP render kiểu mới — con trực tiếp — selector này không khớp nên vô hại.) */
.lp-page .wp-block-group__inner-container {
  display: contents;
}

/* Chữ nổi bật đỏ trong tiêu đề (thay span inline cũ). */
.hl {
  color: var(--red);
}

/* Tiện ích khoảng cách (thay inline-style cũ). */
.lp-sec--pt0 {
  padding-top: 0;
}
.lp-band-wrap {
  padding-block: clamp(22px, 3vw, 40px);
}
.lp-cta-wrap {
  padding-block: clamp(28px, 4vw, 52px);
}

/* HERO offers: <b> -> .num, <span> -> .cap */
.lp-offer .num {
  font-size: 20px;
  color: #fff;
  font-family: var(--mono);
  letter-spacing: -0.02em;
}
.lp-offer .cap {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 2px;
}
.lp-offer.hot .cap {
  color: rgba(255, 255, 255, 0.9);
}

/* Tiêu đề form trên nền hero tối (thay inline-style cũ). */
.lp-formwrap-title {
  color: #fff;
  font-size: clamp(20px, 2.2vw, 26px);
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

/* PROMO: <li> -> .lp-promo-row, <b> -> .pt, <span> -> .ps */
.lp-promo .lp-promo-row {
  list-style: none;
  display: flex;
  gap: 14px;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 15px 20px;
  font-size: 15.5px;
}
.lp-promo .lp-promo-row .tag {
  flex: 0 0 auto;
  background: var(--red);
  color: #fff;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 13px;
  padding: 5px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.lp-promo .lp-promo-row .pc {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.lp-promo .lp-promo-row .pc .pt {
  font-size: 15.5px;
  letter-spacing: -0.01em;
  font-weight: 700;
}
.lp-promo .lp-promo-row .pc .ps {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.5;
}
.lp-promo .lp-promo-row.main {
  background: var(--red-tint);
  border-color: rgba(220, 0, 0, 0.25);
}

/* CTA band: xếp dọc + căn giữa toàn bộ (chữ + 2 nút). Gốc là flex ngang
   (chữ trái – nút phải, justify-content:space-between trong site.css). */
.ctaband {
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.ctaband .ct {
  margin-inline: auto;
  text-align: center;
}
.ctaband .eyebrow {
  color: #fff;
  opacity: 0.9;
}
.ctaband .ct h2 {
  margin-top: 14px;
}
.ctaband .ct p {
  color: rgba(255, 255, 255, 0.9);
  margin-top: 14px;
  max-width: 52ch;
  margin-inline: auto;
}
.ctaband .actions {
  justify-content: center;
}

/* Thẻ khóa học CHI TIẾT (icon + tên + câu dẫn + checklist) — căn trái. */
.lp-course-card--detail {
  text-align: left;
  padding: 30px 28px;
}
.lp-course-card--detail .ic {
  margin: 0 0 16px;
}
.lp-course-card--detail h3 {
  font-size: 19px;
}
.lp-course-card--detail .lp-course-intro {
  font-size: 14px;
  color: var(--muted);
  margin-top: 10px;
  line-height: 1.55;
}
.lp-course-card--detail .wp-block-list,
.lp-course-card--detail ul {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.lp-course-card--detail li {
  position: relative;
  padding-left: 28px;
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.5;
}
.lp-course-card--detail li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 1px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--red-tint);
  color: var(--red);
  font-size: 11px;
  font-weight: 800;
  display: grid;
  place-items: center;
}
