/* ==========================================================================
   ladi.vidtools.net - giao dien trang khach (uu tien dien thoai)
   Viet cho man hinh nho truoc, roi mo rong o 640 / 768 / 1024 / 1280px.
   Mau, font, bo goc lay tu bien CSS cua tung trang (App\Support\PageTheme).
   ========================================================================== */

:root {
  --primary: #ea580c;
  --primary-strong: #c2410c;
  --primary-soft: rgba(234, 88, 12, 0.12);
  --on-primary: #ffffff;
  --font-heading: 'Be Vietnam Pro', system-ui, sans-serif;
  --font-body: 'Be Vietnam Pro', system-ui, sans-serif;
  --radius: 20px;
  --btn-radius: 999px;
  --text: #0f172a;
  --muted: #5b6474;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --line: rgba(15, 23, 42, 0.08);
  --shadow: 0 18px 48px rgba(15, 23, 42, 0.12);
  --shadow-sm: 0 4px 16px rgba(15, 23, 42, 0.08);
  --container: 1140px;
  --on-bg: #0f172a;
  --on-bg-muted: #5b6474;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-body); color: var(--text); line-height: 1.6; background: #f6f4ef; font-size: 16px; }
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.2; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }

/* ---------------------------------------------------------------- khung trang */
.page-shell {
  position: relative;
  min-height: 100vh;
  overflow-x: clip;
  background:
    radial-gradient(circle at top left, rgba(251, 191, 36, 0.18), transparent 32%),
    radial-gradient(circle at top right, rgba(14, 165, 233, 0.12), transparent 28%),
    linear-gradient(180deg, #fbf6ec 0%, #f4efe7 42%, #f7f8fc 100%);
}
.page-shell.tone-dark, .section.tone-dark { --on-bg: #f8fafc; --on-bg-muted: rgba(248, 250, 252, 0.78); }
.page-shell.tone-light, .section.tone-light { --on-bg: #0f172a; --on-bg-muted: #5b6474; }
.page-overlay { position: absolute; inset: 0; background: #020617; pointer-events: none; }
.page-shell.has-sticky-cta { padding-bottom: 76px; }

.topbar { position: relative; z-index: 1; padding: 10px 16px 0; text-align: center; }
.topbar a { font-family: var(--font-heading); font-weight: 800; font-size: 0.95rem; color: var(--primary); text-decoration: none; letter-spacing: 0.01em; }

.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }
.section { position: relative; z-index: 1; padding: 14px 0; }
.section.has-block-bg { padding: 36px 0; }
.block-anchor { position: relative; top: -12px; }

.section-head { text-align: center; margin-bottom: 20px; }
.section-title { font-weight: 800; font-size: clamp(1.55rem, 6vw, 2.6rem); color: var(--on-bg); text-wrap: balance; letter-spacing: -0.01em; }
.section-desc { margin: 10px auto 0; max-width: 720px; color: var(--on-bg-muted); font-size: clamp(1rem, 3.2vw, 1.1rem); text-wrap: balance; }

.card { background: var(--surface); color: var(--text); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); }
.card .section-title { color: var(--text); }
.card .section-desc { color: var(--muted); }

/* ---------------------------------------------------------------- nut */
.btn-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 12px 28px; max-width: 100%;
  border: 0; border-radius: var(--btn-radius);
  background: var(--primary); color: var(--on-primary);
  font-family: var(--font-heading); font-weight: 800; font-size: 1.05rem; line-height: 1.25; text-align: center; text-decoration: none;
  box-shadow: 0 12px 28px var(--primary-soft); cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}
.btn-cta:hover { transform: translateY(-2px); filter: brightness(1.06); }
.btn-cta:active { transform: translateY(0); }
.btn-cta[disabled] { opacity: 0.7; cursor: progress; }
.btn-outline { background: transparent; color: var(--primary); box-shadow: inset 0 0 0 2px var(--primary); }
.cta-row { display: flex; justify-content: center; margin-top: 22px; }

/* ---------------------------------------------------------------- video, anh */
.video-frame { position: relative; width: 100%; max-width: 960px; margin: 0 auto; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; box-shadow: var(--shadow); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-fallback { display: grid; place-items: center; height: 100%; color: #fff; font-weight: 700; text-decoration: none; }
.image-demo { aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #0f172a; box-shadow: var(--shadow); }
.image-demo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.image-demo:hover img { transform: scale(1.03); }

/* ---------------------------------------------------------------- slider (vuot ngang tren dien thoai) */
.slider { position: relative; }
.slider-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: 86%; gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 6px 2px 14px; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.slider-track::-webkit-scrollbar { display: none; }
.slide { scroll-snap-align: start; display: flex; flex-direction: column; background: var(--surface); color: var(--text); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.slide-media { position: relative; aspect-ratio: 16 / 9; background: #0f172a; }
.slide-media img { width: 100%; height: 100%; object-fit: cover; }
.slide-media.has-video img { opacity: 0.78; }
.play-btn { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 64px; height: 64px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--primary); color: var(--on-primary); cursor: pointer; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35); transition: transform 0.2s ease; }
.play-btn:hover { transform: translate(-50%, -50%) scale(1.08); }
.play-btn svg { width: 30px; height: 30px; margin-left: 4px; }
.slide-body { padding: 18px 20px 22px; }
.slide-body h3 { font-size: 1.2rem; font-weight: 800; }
.slide-body p { margin-top: 8px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.slider-nav { display: flex; justify-content: center; gap: 10px; margin-top: 4px; }
.slider-nav button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; font-size: 1.2rem; box-shadow: var(--shadow-sm); }

/* ---------------------------------------------------------------- loi ich */
.benefits-list { display: grid; gap: 10px; max-width: 1080px; margin: 0 auto; }
.benefit { background: var(--surface); color: var(--text); border-radius: 12px; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.benefit-head { width: 100%; display: grid; grid-template-columns: 30px minmax(0, 1fr) 20px; align-items: center; gap: 12px; min-height: 58px; padding: 12px 16px; background: none; border: 0; text-align: left; color: inherit; cursor: default; }
.benefit.has-detail .benefit-head { cursor: pointer; }
.benefit-check { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: var(--on-primary); }
.benefit-check svg { width: 16px; height: 16px; }
.benefit-head strong { font-family: var(--font-heading); font-size: 1.02rem; line-height: 1.35; overflow-wrap: anywhere; }
.benefit-arrow { width: 18px; height: 18px; color: #94a3b8; transition: transform 0.3s ease; }
.benefit.open .benefit-arrow { transform: rotate(180deg); }
.benefit-detail { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.35s ease; }
.benefit.open .benefit-detail { grid-template-rows: 1fr; }
.benefit-detail > div { overflow: hidden; }
.benefit-detail-inner { padding: 0 16px 16px 58px; color: var(--muted); }
.benefit-detail-inner h4 { color: var(--primary); font-size: 1rem; margin-bottom: 4px; }

/* ---------------------------------------------------------------- form dang ky (dung chung) */
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.form-success { padding: 16px; border-radius: 12px; background: #dcfce7; color: #166534; font-weight: 700; text-align: center; margin-bottom: 16px; }
.form-errors { padding: 12px 16px; border-radius: 12px; background: #fee2e2; color: #991b1b; margin-bottom: 16px; }
.form-errors ul { margin: 0; padding-left: 18px; }

/* ---------------------------------------------------------------- thong bao chung */
.flash { position: relative; z-index: 2; width: min(100% - 32px, 720px); margin: 12px auto 0; padding: 14px 16px; border-radius: 14px; font-weight: 600; box-shadow: var(--shadow-sm); }
.flash-success { background: #dcfce7; color: #166534; }
.flash-error { background: #fee2e2; color: #991b1b; }
.flash ul { margin: 0; padding-left: 18px; }

/* ---------------------------------------------------------------- nut noi, cta dinh */
.floating-contact { position: fixed; right: 14px; bottom: 18px; z-index: 40; display: grid; gap: 10px; }
.has-sticky-cta .floating-contact { bottom: 88px; }
.floating-contact a { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; color: #fff; text-decoration: none; font-weight: 800; font-size: 0.8rem; box-shadow: 0 10px 24px rgba(15, 23, 42, 0.28); animation: pulse 2.4s infinite; }
.floating-contact .fc-zalo { background: #0068ff; }
.floating-contact .fc-phone { background: #16a34a; }
.floating-contact svg { width: 26px; height: 26px; }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 39; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(10px); box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.12); }
.sticky-cta .btn-cta { width: 100%; min-height: 54px; }

/* ---------------------------------------------------------------- popup video */
.video-modal { position: fixed; inset: 0; z-index: 9999; display: none; align-items: center; justify-content: center; padding: 16px; background: rgba(2, 6, 23, 0.9); backdrop-filter: blur(6px); }
.video-modal.open { display: flex; }
.video-modal-box { position: relative; width: min(100%, 960px); aspect-ratio: 16 / 9; background: #000; border-radius: 14px; overflow: hidden; }
.video-modal-box iframe { width: 100%; height: 100%; border: 0; }
.video-modal-close { position: absolute; top: 8px; right: 8px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, 0.6); color: #fff; font-size: 26px; cursor: pointer; }

/* ---------------------------------------------------------------- an theo thiet bi */
@media (max-width: 767px) { .hide-on-mobile { display: none !important; } }
@media (min-width: 768px) { .hide-on-desktop { display: none !important; } .sticky-cta { display: none; } .page-shell.has-sticky-cta { padding-bottom: 0; } .has-sticky-cta .floating-contact { bottom: 18px; } }

.footer-space { height: 24px; }

/* ================================================================ man lon hon */

@media (min-width: 768px) {
  .section { padding: 22px 0; }
  .section.has-block-bg { padding: 56px 0; }
  .slider-track { grid-auto-columns: calc((100% - 32px) / 3); }
  /* The cung hang cao bang nhau (JS mo / dong ca hang cung luc). */
  .benefits-list { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
  .rich-text.has-image { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); }
  .rich-text.has-image.media-right .rich-media { order: 2; }
  .topbar { padding-top: 14px; }
}

/* ==========================================================================
   Block them o Dot 5 (uu tien dien thoai)
   ========================================================================== */

/* danh sach co dau tich dung chung */
.check-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.check-list li { position: relative; padding-left: 28px; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); font-size: 12px; font-weight: 900; line-height: 20px; text-align: center; }

/* danh gia */
/* Cac the cung hang cao bang nhau. */
.testimonial-grid { display: grid; gap: 16px; }
.testimonial { position: relative; margin: 0; display: flex; flex-direction: column; gap: 12px; padding: 20px; background: var(--surface); color: var(--text); border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.testimonial-head { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex: 0 0 52px; box-shadow: 0 0 0 3px var(--primary-soft); }
.testimonial-initial { display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); font-weight: 800; font-size: 1.2rem; }
.testimonial-who { min-width: 0; flex: 1; }
.testimonial-who strong { display: block; font-size: 1.05rem; line-height: 1.3; }
.testimonial-who small { display: block; margin-top: 2px; color: var(--muted); font-size: 0.88rem; }
.testimonial-mark { align-self: flex-start; margin-top: -6px; color: var(--primary); opacity: 0.25; font-family: Georgia, serif; font-size: 3.6rem; line-height: 1; }
.testimonial-stars { color: #f59e0b; letter-spacing: 2px; font-size: 1.1rem; line-height: 1; }
.testimonial-stars span { color: #e2e8f0; }
.testimonial blockquote { margin: 0; flex: 1; color: #334155; line-height: 1.65; white-space: pre-line; }
.testimonial-video { margin-top: auto; min-height: 44px; font-size: 0.95rem; padding: 8px 16px; }

/* FAQ */
.faq-list { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }
.faq-item { background: var(--surface); color: var(--text); border-radius: 14px; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 56px; padding: 14px 18px; font-family: var(--font-heading); font-weight: 700; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; flex: 0 0 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); font-size: 1.2rem; transition: transform 0.2s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-answer { padding: 0 18px 18px; color: var(--muted); }

/* giang vien */
.instructor { display: grid; gap: 20px; padding: clamp(18px, 5vw, 36px); align-items: center; }
.instructor-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: calc(var(--radius) - 4px); }
.instructor-name { font-size: clamp(1.5rem, 5.5vw, 2.2rem); font-weight: 800; }
.instructor-role { margin-top: 4px; color: var(--primary); font-weight: 700; }
.instructor-bio { margin-top: 12px; color: var(--muted); }

/* noi dung khoa hoc */
.curriculum { max-width: 860px; margin: 0 auto; display: grid; gap: 10px; }
.curriculum-section { background: var(--surface); color: var(--text); border-radius: 14px; border: 1px solid var(--line); overflow: hidden; }
.curriculum-section summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 14px; padding: 14px 16px; min-height: 60px; }
.curriculum-section summary::-webkit-details-marker { display: none; }
.curriculum-section[open] summary { background: var(--primary-soft); }
.curriculum-index { flex: 0 0 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--primary); color: var(--on-primary); font-weight: 800; }
.curriculum-title { font-family: var(--font-heading); font-weight: 700; line-height: 1.35; }
.curriculum-title small { display: block; color: var(--muted); font-weight: 500; font-family: var(--font-body); font-size: 0.88rem; }
.curriculum-lessons { margin: 0; padding: 8px 18px 16px 70px; display: grid; gap: 8px; color: #334155; }

/* so lieu */
.stats-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.stat { text-align: center; padding: 18px 10px; border-radius: var(--radius); background: var(--surface); color: var(--text); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.stat strong { display: block; color: var(--primary); font-family: var(--font-heading); font-weight: 900; font-size: clamp(1.8rem, 8vw, 2.8rem); line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat > span { display: block; margin-top: 6px; color: var(--muted); font-size: 0.92rem; }

/* cam ket */

/* dai CTA */
.cta-banner { display: grid; gap: 18px; justify-items: center; text-align: center; padding: clamp(26px, 7vw, 52px) clamp(18px, 5vw, 48px); border-radius: var(--radius); background: linear-gradient(135deg, var(--primary) 0%, var(--primary-strong) 100%); color: var(--on-primary); box-shadow: 0 20px 48px var(--primary-soft); }
.cta-banner h2 { font-size: clamp(1.5rem, 6vw, 2.4rem); font-weight: 800; text-wrap: balance; }
.cta-banner p { margin-top: 8px; opacity: 0.9; }
.cta-banner-btn { background: #ffffff; color: var(--primary-strong); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18); }

/* cac buoc */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.step { position: relative; display: flex; gap: 14px; padding: 18px; background: var(--surface); color: var(--text); border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.step-number { flex: 0 0 44px; width: 44px; height: 44px; align-self: flex-start; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: var(--on-primary); font-family: var(--font-heading); font-weight: 900; font-size: 1.2rem; }
.step h3 { font-size: 1.1rem; font-weight: 800; }
.step p { margin-top: 6px; color: var(--muted); }

/* luoi tinh nang */
/* Dien thoai: anh vuong ben trai, chu ben phai. Man lon: the doc, anh 16:10 o tren. Hang cuoi thieu the duoc can giua. */
.feature-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.feature { flex: 1 1 100%; display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 14px; align-items: center; padding: 10px; background: var(--surface); color: var(--text); border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--primary-soft); }
.feature-media { position: relative; aspect-ratio: 1 / 1; border-radius: calc(var(--radius) * 0.7); overflow: hidden; background: linear-gradient(135deg, var(--primary) 0%, var(--primary-strong) 100%); }
.feature-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.feature:hover .feature-media img { transform: scale(1.06); }
.feature-num { position: absolute; left: 8px; top: 8px; min-width: 32px; height: 24px; padding: 0 8px; border-radius: 999px; display: grid; place-items: center; background: rgba(15, 23, 42, 0.72); color: #fff; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.04em; backdrop-filter: blur(4px); }
.feature-media.is-empty { display: grid; place-items: center; }
.feature-media.is-empty .feature-num { position: static; height: auto; padding: 0; background: none; font-size: 2rem; font-weight: 900; backdrop-filter: none; }
.feature-body { min-width: 0; padding-right: 6px; }
.feature h3 { font-size: 1.08rem; font-weight: 800; line-height: 1.35; }
.feature p { margin-top: 6px; color: var(--muted); font-size: 0.95rem; }

/* thu vien anh */
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 14px; transition: transform 0.3s ease; }
.gallery a:hover img { transform: scale(1.02); }
.gallery figcaption { margin-top: 6px; color: var(--on-bg-muted); font-size: 0.88rem; text-align: center; }

/* logo */
.logos-title { font-size: clamp(1.1rem, 4vw, 1.4rem); color: var(--on-bg-muted); font-weight: 700; }
.logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 18px 28px; }
.logo-item { display: grid; place-items: center; width: 120px; height: 56px; }
.logo-item img { max-width: 100%; max-height: 100%; object-fit: contain; filter: grayscale(1); opacity: 0.7; transition: filter 0.2s ease, opacity 0.2s ease; }
.logo-item:hover img { filter: none; opacity: 1; }
.tone-dark .logo-item img { filter: grayscale(1) brightness(1.8); }

/* bang so sanh */

/* van ban */
/* Khong anh: khung thu gon vua chu. Co anh: anh + chu nam canh nhau (dien thoai: anh o tren). */
.rich-text { position: relative; overflow: hidden; max-width: 820px; margin-inline: auto; padding: clamp(24px, 5vw, 48px); }
.rich-text::before { content: ""; position: absolute; top: -120px; right: -100px; width: 280px; height: 280px; border-radius: 50%; background: var(--primary-soft); pointer-events: none; }
.rich-text > * { position: relative; }
.rich-kicker { display: inline-block; margin-bottom: 12px; padding: 5px 12px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); font-size: 0.8rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.rich-text .section-title { text-align: left; }
.rich-bar { display: block; width: 56px; height: 4px; margin: 14px 0 4px; border-radius: 4px; background: linear-gradient(90deg, var(--primary), var(--primary-strong)); }
.rich-text p { margin-top: 12px; color: #334155; font-size: 1.05rem; line-height: 1.75; text-wrap: pretty; }
.rich-text .check-list { margin-top: 12px; }
.rich-text.is-center, .rich-text.is-center .section-title { text-align: center; }
.rich-text.is-center .rich-bar { margin-inline: auto; }
.rich-text.is-center .check-list { display: inline-grid; text-align: left; }
.rich-text.has-image { max-width: none; display: grid; gap: clamp(20px, 4vw, 44px); align-items: center; }
.rich-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: calc(var(--radius) * 0.8); box-shadow: var(--shadow-sm); }

/* ban do */
.map-block { padding: clamp(20px, 5vw, 36px); text-align: center; }
.map-frame { position: relative; margin-top: 16px; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: #e2e8f0; }
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* truoc - sau */
.before-after { position: relative; max-width: 960px; margin: 0 auto; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); user-select: none; }
.before-after img { width: 100%; display: block; }
.ba-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-before img { width: 100%; height: 100%; object-fit: cover; }
.ba-label { position: absolute; top: 12px; padding: 4px 12px; border-radius: 999px; background: rgba(2, 6, 23, 0.65); color: #fff; font-size: 0.85rem; font-weight: 700; }
.ba-label-before { left: 12px; }
.ba-label-after { right: 12px; }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; background: #fff; transform: translateX(-50%); box-shadow: 0 0 10px rgba(0, 0, 0, 0.4); pointer-events: none; }
.ba-handle::after { content: "⇆"; position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; transform: translate(-50%, -50%); border-radius: 50%; display: grid; place-items: center; background: #fff; color: #0f172a; font-weight: 900; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3); }
.before-after input[type="range"] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; }

/* chan trang */

@media (min-width: 640px) {
  .testimonial-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature { flex: 0 1 calc((100% - 16px) / 2); grid-template-columns: minmax(0, 1fr); align-items: start; align-content: start; gap: 16px; padding: 10px 10px 20px; }
  .feature-media { aspect-ratio: 16 / 10; }
  .feature-media.is-empty .feature-num { font-size: 2.6rem; }
  .feature-body { padding: 0 10px; }
  .feature h3 { font-size: 1.15rem; }
  .gallery.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 768px) {
  .instructor { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
  .instructor.image-right .instructor-photo { order: 2; }
  .cta-banner { grid-template-columns: 1fr auto; justify-items: start; text-align: left; }
  .stats-grid.count-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stats-grid.count-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .steps.count-2, .steps.count-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps.count-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .map-frame { aspect-ratio: 16 / 7; }
}

@media (min-width: 1024px) {
  .testimonial-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .feature { flex-basis: calc((100% - 32px) / 3); }
  .feature-grid.cols-4 .feature { flex-basis: calc((100% - 48px) / 4); }
  .gallery.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .steps.count-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .steps.count-4 .step, .steps.count-3 .step { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------------------------------------------------------------- so sanh */
/* May tinh: bang 3 cot, cot phai la mot dai noi lien mau chu dao. Dien thoai: moi tieu chi mot the. */
.comparison { max-width: 960px; margin-inline: auto; padding: clamp(22px, 5vw, 44px); }
.comparison .section-title { margin-bottom: 22px; text-align: center; }
.cmp-table { display: grid; gap: 12px; }
.cmp-row { display: grid; gap: 10px; padding: 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface-soft); }
.cmp-criterion { font-family: var(--font-heading); font-weight: 800; font-size: 1.05rem; color: var(--text); }
.cmp-left, .cmp-right { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; min-width: 0; }
.cmp-row.cmp-head { display: none; }
.cmp-left { color: var(--muted); }
.cmp-right { padding: 10px 12px; border-radius: 12px; background: var(--primary-soft); color: var(--text); font-weight: 700; }
/* Dien thoai: ten cot la dong chu nho phia tren gia tri. */
.cmp-row > [data-label]::before { content: attr(data-label); flex: 0 0 100%; color: var(--muted); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.cmp-row > .cmp-right[data-label]::before { color: var(--primary-strong); }
.cmp-dot { flex: 0 0 26px; width: 26px; height: 26px; border-radius: 50%; display: inline-grid; place-items: center; font-style: normal; font-weight: 900; font-size: 0.85rem; }
.cmp-dot.small { flex-basis: 22px; width: 22px; height: 22px; font-size: 0.72rem; }
.cmp-dot.yes { background: #dcfce7; color: #16a34a; }
.cmp-dot.no { background: #fee2e2; color: #dc2626; }

/* ---------------------------------------------------------------- chan trang */
.site-footer { position: relative; overflow: hidden; padding: clamp(28px, 5vw, 48px) clamp(20px, 5vw, 48px) 0; border-radius: var(--radius); background: linear-gradient(160deg, #0b1120 0%, #111a33 100%); color: #cbd5e1; box-shadow: var(--shadow); }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--primary), var(--primary-strong), transparent); }
.site-footer::after { content: ""; position: absolute; top: -140px; right: -120px; width: 320px; height: 320px; border-radius: 50%; background: var(--primary); opacity: 0.12; filter: blur(30px); pointer-events: none; }
.site-footer > * { position: relative; z-index: 1; }
.footer-grid { display: grid; gap: 28px; }
.footer-brand { display: block; font-family: var(--font-heading); font-size: 1.5rem; font-weight: 900; letter-spacing: 0.01em; color: #fff; }
.footer-brand::after { content: ""; display: block; width: 40px; height: 3px; margin-top: 10px; border-radius: 3px; background: var(--primary); }
.footer-about p { margin-top: 12px; max-width: 360px; color: #94a3b8; line-height: 1.7; }
.footer-social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.footer-social a { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1); color: #e2e8f0; text-decoration: none; font-size: 0.8rem; font-weight: 800; transition: transform 0.2s ease, background 0.2s ease; }
.footer-social a:hover { transform: translateY(-3px); color: #fff; }
.footer-social svg { width: 20px; height: 20px; }
.footer-social .fs-facebook:hover { background: #1877f2; }
.footer-social .fs-youtube:hover { background: #ff0000; }
.footer-social .fs-tiktok:hover { background: #111111; }
.footer-social .fs-zalo:hover { background: #0068ff; }
.footer-heading { margin-bottom: 14px; color: #fff; font-size: 0.85rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.footer-contact, .footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.footer-contact li { display: flex; align-items: center; gap: 12px; }
.fc-icon { flex: 0 0 36px; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); }
.fc-icon svg { width: 18px; height: 18px; }
.site-footer a { color: #e2e8f0; text-decoration: none; transition: color 0.2s ease; }
.site-footer a:hover { color: var(--primary); }
.footer-links a { display: inline-flex; align-items: center; gap: 8px; }
.footer-links a::before { content: "\203A"; color: var(--primary); font-size: 1.2rem; line-height: 1; transition: transform 0.2s ease; }
.footer-links a:hover::before { transform: translateX(3px); }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-top: 28px; padding: 18px 0 22px; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.footer-copy { color: #64748b; font-size: 0.88rem; }
.site-footer .footer-top { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); color: #cbd5e1; font-size: 0.85rem; font-weight: 700; }
.site-footer .footer-top:hover { background: var(--primary); color: var(--on-primary); }

@media (min-width: 768px) {
  .cmp-table { gap: 0; }
  .cmp-row, .cmp-head { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 1fr); gap: 0; padding: 0; border: 0; border-radius: 0; background: none; align-items: stretch; }
  .cmp-row.cmp-head { display: grid; }
  .cmp-left, .cmp-right { flex-wrap: nowrap; }
  .cmp-criterion { display: flex; align-items: center; }
  .cmp-row > *, .cmp-head > * { padding: 16px 20px; }
  .cmp-row > [data-label]::before { content: none; }
  .cmp-row:not(.is-last) > .cmp-criterion, .cmp-row:not(.is-last) > .cmp-left { border-bottom: 1px solid var(--line); }
  .cmp-head > .cmp-left { font-family: var(--font-heading); font-weight: 800; color: var(--muted); }
  .cmp-right { border-radius: 0; background: var(--primary-soft); border-left: 2px solid var(--primary); border-right: 2px solid var(--primary); }
  .cmp-row:not(.is-last) > .cmp-right { border-bottom: 1px solid rgba(255, 255, 255, 0.7); }
  .cmp-head > .cmp-right { border: 0; border-radius: 16px 16px 0 0; background: linear-gradient(135deg, var(--primary), var(--primary-strong)); color: var(--on-primary); font-family: var(--font-heading); font-weight: 800; }
  .cmp-head > .cmp-right .cmp-dot { background: rgba(255, 255, 255, 0.22); color: #fff; }
  .cmp-row.is-last > .cmp-right { border-bottom: 2px solid var(--primary); border-radius: 0 0 16px 16px; }
  .footer-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 0.8fr); gap: 40px; }
  .footer-grid.no-contact, .footer-grid.no-links { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
}
