/* Header + thanh khuyến mại + footer của TRANG CHỦ, dựng lại cho /guide/ (chèn bởi
   kidsafe-agent/landing/sync-to-kidsafe.ps1). Class tiền tố ksc- để không đụng CSS/JS của guide
   (guide có .header, .btn, .nav-link, #mainNav… riêng). Đơn vị px vì guide đặt html { font-size: 62.5% }.
   Giá trị khớp css/style.css của trang chủ — đổi một bên thì sửa bên kia. */

.ksc-promo {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 12px;
  padding: 8px 16px; background: #fff6dc; color: #3d2f05; font-size: 14px; line-height: 1.6;
  text-align: center; text-decoration: none; font-family: "Be Vietnam Pro", system-ui, sans-serif;
}
.ksc-promo:hover { color: #3d2f05; }
.ksc-promo b { color: #8a5a00; font-weight: 700; }
.ksc-promo-tag { background: #3554e0; color: #fff; font-weight: 700; font-size: 12px; letter-spacing: 0.06em; padding: 2px 10px; border-radius: 999px; }
.ksc-promo-link { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 599px) {
  .ksc-promo { font-size: 13px; padding: 7px 12px; }
  .ksc-promo-tag, .ksc-promo-link { display: none; }
}

.header.ksc-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(8px);
  border-bottom: 1px solid #e3e9f8; box-shadow: none; height: auto;
  font-family: "Be Vietnam Pro", system-ui, sans-serif;
}
.ksc-inner { max-width: 1240px; margin: 0 auto; padding: 0 16px; min-height: 64px; display: flex; align-items: center; gap: 16px; position: relative; }
.ksc-logo { display: inline-flex; padding: 5px 0; flex-shrink: 0; }
.ksc-logo img { display: block; height: 30px; width: auto; }
.ksc-cta {
  margin-left: auto; display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 16px; border-radius: 999px; background: #f2b924; color: #1a2445 !important;
  font-size: 15px; font-weight: 700; white-space: nowrap; text-decoration: none;
  box-shadow: 0 12px 28px rgba(242, 185, 36, 0.35);
}
.ksc-cta:hover { background: #e5ac14; }
.ksc-toggle {
  width: 44px; height: 44px; border-radius: 999px; border: 1px solid #dde4f6; background: #fff; color: #1b2c63;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0;
}
.ksc-toggle svg { width: 22px; height: 22px; }
.ksc-toggle .ksc-ic-close { display: none; }
.ksc-open .ksc-toggle .ksc-ic-open { display: none; }
.ksc-open .ksc-toggle .ksc-ic-close { display: block; }

.ksc-nav {
  display: none; position: absolute; left: 0; right: 0; top: 100%;
  flex-direction: column; gap: 4px; padding: 8px 16px 20px;
  background: #fff; border-bottom: 1px solid #e3e9f8; box-shadow: 0 12px 24px rgba(29, 37, 64, 0.08);
}
.ksc-open .ksc-nav { display: flex; }
.ksc-nav a { display: flex; align-items: center; gap: 8px; min-height: 48px; color: #16203f; font-size: 17px; font-weight: 500; text-decoration: none; }
.ksc-nav a:hover { color: #3554e0; text-decoration: underline; text-underline-offset: 4px; }
.ksc-nav .ksc-phone { color: #1b2c63; font-weight: 600; }
.ksc-nav svg { width: 20px; height: 20px; flex-shrink: 0; }
.ksc-nav a[aria-current="page"] { color: #3554e0; font-weight: 600; }

.ksc-lang { display: flex; gap: 6px; padding-top: 8px; }
.ksc-lang button {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 10px;
  border: 1px solid #dde4f6; border-radius: 999px; background: #fff; color: #4a5578;
  font-family: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
}
.ksc-lang img { width: 20px; height: auto; border-radius: 2px; }
.ksc-lang button[aria-pressed="true"] { background: #eef2fb; color: #1b2c63; border-color: #1b2c63; }
.ksc-hidden { display: none !important; }

@media (min-width: 1080px) {
  .ksc-inner { gap: 28px; min-height: 76px; padding: 0 24px; }
  .ksc-logo img { height: 34px; }
  .ksc-toggle { display: none; }
  .ksc-nav {
    display: flex; position: static; flex-direction: row; align-items: center; gap: 24px;
    padding: 0; border: 0; box-shadow: none; background: transparent; flex-grow: 1;
  }
  .ksc-nav a { min-height: 44px; font-size: 16px; }
  .ksc-nav .ksc-phone { margin-left: auto; }
  .ksc-lang { padding-top: 0; gap: 4px; }
  .ksc-lang button { min-height: 36px; padding: 0 8px; }
  .ksc-cta { margin-left: 0; min-height: 46px; padding: 0 20px; font-size: 16px; }
}

/* ---------- Footer ---------- */
.ksc-footer {
  background: radial-gradient(760px 560px at 92% 6%, rgba(85, 126, 255, 0.42), transparent 62%),
              radial-gradient(620px 480px at 4% 100%, rgba(242, 185, 36, 0.2), transparent 60%),
              linear-gradient(140deg, #111c3f 0%, #1b2c63 60%, #22367a 100%);
  color: #c3cceb; padding: 48px 0 32px; font-size: 15px; line-height: 1.6;
  font-family: "Be Vietnam Pro", system-ui, sans-serif;
}
.ksc-footer-grid { max-width: 1240px; margin: 0 auto; padding: 0 16px; display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
@media (min-width: 768px) { .ksc-footer-grid { padding: 0 24px; } .ksc-legal { padding: 16px 24px 0; } }
.ksc-footer-grid > div { display: flex; flex-direction: column; gap: 6px; }
.ksc-footer-grid b { color: #fff; margin-bottom: 4px; font-weight: 700; }
.ksc-footer-grid p { margin: 0; }
.ksc-footer-grid a { color: #c3cceb; text-decoration: none; min-height: 28px; display: inline-flex; align-items: center; }
.ksc-footer-grid a:hover { color: #fff; text-decoration: underline; }
.ksc-footer .ksc-logo { align-self: flex-start; background: #fff; border-radius: 14px; padding: 10px 18px; }
.ksc-footer .ksc-logo img { height: 30px; }
.ksc-legal { max-width: 1240px; margin: 24px auto 0; padding: 16px 16px 0; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 13px; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.ksc-legal a { color: #c3cceb; text-decoration: underline; text-underline-offset: 3px; }
.ksc-legal a:hover { color: #fff; }
