:root {
  --blue: #245cc2;
  --blue2: #3f7de0;
  --red: #ef1c24;
  --text: #0f172a;
  --muted: #5b6475;
  --bg: #eef2f8;
  --card: #ffffff;
  --radius: 18px;
  --shadow: 0 16px 36px rgba(20, 40, 90, 0.14);
  --accent: #ffb703;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; font-family: 'Be Vietnam Pro', sans-serif; color: var(--text); background: var(--bg); }
a { color: inherit; text-decoration: none; }
.container { width: 100%; max-width: 1600px; margin: 0 auto; padding: 0 20px; }

.topbar { position: sticky; top: 0; z-index: 80; background: rgba(255, 255, 255, 0.96); border-bottom: 1px solid rgba(36, 92, 194, 0.16); backdrop-filter: blur(8px); }
.nav { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--blue); white-space: nowrap; flex-shrink: 0; }
.brand-logo { width: 44px; height: 44px; border-radius: 50%; object-fit: contain; background: #fff; }
.menu { display: flex; gap: 16px; color: #24324d; font-weight: 600; white-space: nowrap; flex: 1; justify-content: center; min-width: 0; }
.menu a { padding: 8px 2px; border-bottom: 2px solid transparent; white-space: nowrap; }
.menu a.active, .menu a:hover { color: var(--red); border-bottom-color: var(--red); }
.menu-toggle { display: none; border: 1px solid #d5ddf4; background: #fff; color: #213557; }
.hide-mobile { flex-shrink: 0; }

.section { padding: 68px 0; }
.hero {
  background:
    radial-gradient(circle at 85% 10%, rgba(255, 183, 3, 0.22), transparent 32%),
    radial-gradient(circle at 8% 20%, rgba(36, 92, 194, 0.2), transparent 36%),
    linear-gradient(180deg, #e9f1ff 0%, #f8fbff 100%);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; align-items: center; }
.hero-copy {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(36, 92, 194, 0.12);
  border-radius: 16px;
  padding: 18px;
}
.hero h1 {
  margin: 8px 0 10px;
  font-size: clamp(1.9rem, 3.2vw, 3.2rem);
  line-height: 1.14;
  text-wrap: balance;
}
.hero p { color: var(--muted); line-height: 1.7; margin: 0 0 16px; font-size: 1.05rem; }
.hero-tagline {
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-weight: 700;
  color: #24458a;
  margin-bottom: 8px;
}
.hero-desc { margin-bottom: 16px; }
.chip { display: inline-block; background: rgba(239, 28, 36, 0.12); color: var(--red); padding: 8px 14px; border-radius: 999px; font-size: 0.84rem; font-weight: 700; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-banner-frame { box-shadow: 0 18px 36px rgba(20, 40, 90, 0.22); }
.stats-video-frame { box-shadow: 0 14px 30px rgba(15, 23, 42, 0.25); }

.frame { width: 100%; overflow: hidden; border-radius: var(--radius); border: 2px solid #fff; box-shadow: var(--shadow); background: #fff; }
.frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-frame { aspect-ratio: 16 / 10; }
.video-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.feature-image-frame { aspect-ratio: 16 / 10; }
.frame-md { aspect-ratio: 16 / 11; }
.frame-form { aspect-ratio: 4 / 3; }

.stats { padding: 22px 0 12px; }
.stats-layout { display: grid; grid-template-columns: 1.3fr 1fr; gap: 14px; align-items: stretch; }
.stats-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.stat-card { background: var(--card); border: 1px solid #e1e8f7; border-radius: 14px; padding: 14px; box-shadow: var(--shadow); }
.stat-icon { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #e9f1ff; color: var(--blue); margin-bottom: 8px; font-weight: 700; }
.stat-card h3 { margin: 0; color: var(--blue); font-size: 1.5rem; }
.stat-card p { margin: 6px 0 0; color: var(--muted); }

.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 24px; align-items: center; }
.split.reverse { grid-template-columns: 1fr 1.05fr; }
.split.reverse .frame { order: 2; }
.split h2 { margin: 0 0 10px; font-size: clamp(1.8rem, 3vw, 2.6rem); }
.split p { color: var(--muted); line-height: 1.7; }
.split ul { margin: 0; padding-left: 20px; line-height: 1.8; color: #334155; }

.programs { background: #eef4ff; }
.program-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.program-card { background: #fff; border: 1px solid #dce7ff; border-radius: 12px; padding: 10px; box-shadow: var(--shadow); overflow: hidden; }
.program-image-wrap { width: 100%; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 10px; border: 1px solid #e3ebff; }
.program-image-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.program-card h4 { margin: 10px 0 0; color: var(--blue); font-size: 1.05rem; }

.activity { background: #eaf1ff; }
.activity h2 { margin: 0 0 14px; text-align: center; font-size: 2rem; }
.activity-slider { position: relative; aspect-ratio: 16 / 10; }

.section-title {
  margin: 0 0 16px;
  text-align: center;
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  color: var(--blue);
  font-weight: 800;
  letter-spacing: 0.01em;
}

.press {
  background: #eef4ff;
}

.press-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  align-items: stretch;
}

.press-main-card {
  background: #fff;
  border: 1px solid #dce7ff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.press-main-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(20, 40, 90, 0.18);
}

.press-main-card img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  display: block;
}

.press-main-card h4 {
  margin: 0;
  padding: 12px;
  color: #1e3a8a;
  font-size: 1rem;
  line-height: 1.45;
}

.press-list-wrap {
  background: #fff;
  border: 1px solid #dce7ff;
  border-radius: 12px;
  padding: 12px;
  box-shadow: var(--shadow);
}

.press-list-wrap h3 {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 1.1rem;
}

.press-list-wrap ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
}

.press-list-wrap li {
  color: #334155;
  line-height: 1.55;
}

.press-list-wrap a {
  color: #1e3a8a;
  font-weight: 600;
}

.testimonials {
  background: #eef4ff;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.testimonial-card {
  background: #fff;
  border: 1px solid #dce7ff;
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  box-shadow: var(--shadow);
}

.testimonial-card img {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 10px;
  display: block;
  border: 3px solid #e6efff;
}

.testimonial-card .stars {
  color: #f59e0b;
  font-size: 1rem;
  margin-bottom: 8px;
}

.testimonial-card p {
  margin: 0;
  color: #475569;
  line-height: 1.65;
}

.testimonial-card h5 {
  margin: 12px 0 0;
  font-size: 1.05rem;
  color: var(--blue);
  font-weight: 700;
}
#activityImage { width: 100%; height: 100%; object-fit: cover; display: block; }
.slide-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; background: rgba(15, 23, 42, 0.55); color: #fff; font-size: 1.8rem; border: 0; }
#prevActivity { left: 14px; }
#nextActivity { right: 14px; }
.dots { display: flex; justify-content: center; gap: 8px; margin-top: 12px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #b8c7eb; cursor: pointer; }
.dot.active { background: var(--blue); }
.thumbs { margin-top: 12px; display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; }
.thumb { width: 100%; height: 74px; object-fit: cover; border-radius: 8px; border: 2px solid transparent; cursor: pointer; }
.thumb.active { border-color: var(--blue); }

.register-wrap {
  display: grid;
  grid-template-columns: 1.05fr 1.2fr;
  gap: 16px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid #d9e5ff;
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow);
}
.register-intro p { color: var(--muted); }
.hot-badge {
  display: inline-flex;
  background: #fff3d4;
  color: #9a6200;
  border: 1px solid #ffe0a3;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.84rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.register-benefits { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.register-benefits span {
  background: #e8f1ff;
  border: 1px solid #d0e1ff;
  color: #1e4ea1;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 0.82rem;
  font-weight: 600;
}
.form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-content: start;
  background: #fff;
  border: 1px solid #dce8ff;
  border-radius: 14px;
  padding: 12px;
}
.form input, .form select {
  width: 100%;
  border: 1px solid #cad8f2;
  border-radius: 10px;
  padding: 12px 14px;
  font: inherit;
  min-height: 46px;
}
.form button, .message { grid-column: 1 / -1; }
.form button {
  min-height: 48px;
  font-size: 1rem;
  box-shadow: 0 10px 24px rgba(36, 92, 194, 0.22);
}
.form input:focus, .form select:focus { outline: none; border-color: var(--blue2); box-shadow: 0 0 0 3px rgba(63,125,224,.16); }

.contact { background: #f0f5ff; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-grid > div { background: #fff; border: 1px solid #dce6fb; border-radius: 12px; padding: 14px; }
.support-links { display: grid; gap: 8px; margin-top: 6px; }
.support-links a { color: var(--blue); font-weight: 600; }

.btn { border: 0; border-radius: 10px; padding: 12px 18px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.btn-primary { background: linear-gradient(90deg, var(--blue2), var(--blue)); color: #fff; }
.btn-outline { border: 1px solid var(--blue); color: var(--blue); background: #fff; }
.footer { background: var(--blue); color: #fff; padding: 24px 0; }
.footer-wrap { display: flex; justify-content: space-between; align-items: center; }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.show { opacity: 1; transform: translateY(0); }
.form-step { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; grid-column: 1 / -1; }
.form-step button,
.form-step-actions { grid-column: 1 / -1; }
.hidden-step { display: none; }
.form-step-actions { display: flex; gap: 8px; }
.form-step-actions .btn { flex: 1; }

.float-social {
  position: fixed;
  right: 16px !important;
  bottom: 16px !important;
  left: auto !important;
  top: auto !important;
  z-index: 64;
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-end;
  gap: 8px;
}
.float-main-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 0;
  font-size: 1.8rem;
  line-height: 1;
  background: linear-gradient(135deg, #0d61da, #245cc2);
  color: #fff;
  box-shadow: 0 12px 28px rgba(13, 70, 180, 0.38);
}
.float-main-btn {
  transition: transform 0.2s ease;
  will-change: transform;
}
.float-main-btn.open { transform: rotate(45deg); }

.float-links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
}
.float-links a {
  min-width: 104px;
  min-height: 40px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 8px 16px rgba(10, 28, 70, 0.2);
  transform: translateY(10px) scale(0.96);
  opacity: 0;
  transition: transform 0.24s cubic-bezier(.22,.61,.36,1), opacity 0.2s ease;
  will-change: transform, opacity;
}
.float-links.open {
  opacity: 1;
  pointer-events: auto;
}
.float-links.open a {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.float-links a:nth-child(1) { transition-delay: 0.00s; }
.float-links a:nth-child(2) { transition-delay: 0.03s; }
.float-links a:nth-child(3) { transition-delay: 0.06s; }
.float-links a:nth-child(4) { transition-delay: 0.09s; }
.float-links a:nth-child(5) { transition-delay: 0.12s; }

#floatZaloLink { background: #0180ff; }
#floatTiktokLink { background: #111827; }
#floatFacebookLink { background: #1877f2; }
#floatMapLink { background: #f97316; }
#floatCallLink { background: #16a34a; }

.mobile-quick-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 55;
  background: rgba(10, 25, 56, 0.95);
  padding: 8px;
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.mobile-quick-cta a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-weight: 700;
}
#mobileCallLink { background: var(--accent); color: #1f2a44; }
#mobileZaloLink { background: #0a5bd7; color: #fff; }

.quick-popup {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(10, 20, 40, 0.48);
  display: grid;
  place-items: center;
  padding: 16px;
}
.quick-popup.hidden { display: none; }
.quick-popup-content {
  width: min(420px, 100%);
  background: #fff;
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 20px 40px rgba(12, 24, 54, 0.25);
  position: relative;
}
.quick-popup-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 0;
  background: #edf2ff;
  color: #1e3a8a;
}
.quick-popup-content h3 { margin: 0 0 8px; }
.quick-popup-content p { margin: 0 0 12px; color: var(--muted); }

.message { margin: 0; font-weight: 600; }
.message.success { color: #15803d; }
.message.error { color: #dc2626; }

@media (max-width: 1280px) {
  .program-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
  .menu-toggle { display: inline-flex; }
  .menu { display: none; position: absolute; top: 78px; left: 0; right: 0; background: #fff; border-bottom: 1px solid #dce6fb; padding: 10px 20px; flex-direction: column; gap: 6px; }
  .menu.open { display: flex; }
  .hide-mobile { display: none; }
  .hero-grid, .stats-layout, .split, .split.reverse, .program-grid, .register-wrap, .contact-grid, .form, .stats-grid, .form-step, .press-grid, .testimonial-grid { grid-template-columns: 1fr; }
  .container { padding: 0 14px; }

  .hero {
    background:
      radial-gradient(circle at 50% 0, rgba(255, 183, 3, 0.28), transparent 44%),
      linear-gradient(180deg, #e8f1ff 0%, #f7fbff 100%);
  }

  .chip { font-size: 0.78rem; }
  .hero h1 {
    font-size: clamp(1.45rem, 6.7vw, 2.05rem);
    line-height: 1.2;
  }
  .hero p { font-size: 0.98rem; }

  .hero-actions {
    position: sticky;
    bottom: 8px;
    z-index: 25;
    background: rgba(255, 255, 255, 0.94);
    padding: 8px;
    border-radius: 12px;
    border: 1px solid #d8e6ff;
    box-shadow: 0 10px 20px rgba(25, 50, 100, 0.16);
  }
  .hero-actions .btn { flex: 1; min-height: 44px; font-size: 0.95rem; }

  .stats { padding-top: 18px; }
  .stat-card { border-radius: 12px; padding: 12px; }

  .register { padding-top: 48px; }
  .register-wrap {
    border: 2px solid #cfe0ff;
    box-shadow: 0 20px 40px rgba(36, 92, 194, 0.2);
  }

  .register-intro { order: 2; }
  .form { order: 1; }
  .form button {
    position: sticky;
    bottom: 8px;
    z-index: 26;
  }

  .mobile-quick-cta { display: grid; }
  .float-social {
    right: 12px !important;
    bottom: 86px !important;
    left: auto !important;
    top: auto !important;
  }
  .float-main-btn { width: 52px; height: 52px; }
  .footer { padding-bottom: 78px; }
}
