/* Local clone tweaks — keep original look while serving offline. */
html {
  scroll-behavior: auto;
}

html,
body,
button,
input,
textarea,
select {
  font-family: "Be Vietnam Pro", "Open Sans", Arial, Helvetica, tahoma, sans-serif;
}

.new25xxzw p {
  font-family: "Be Vietnam Pro", Arial, Helvetica, tahoma, sans-serif !important;
}

img {
  max-width: 100%;
}

.site-baner-bgm {
  background-size: cover;
  background-position: center;
}

/* Cookie popup still exists in the original scripts; hide it locally so the clone is usable. */
#cc--main {
  display: none !important;
}

/* SGE logo — keep tagline readable in header and footer. */
.head3blogo {
  width: 168px !important;
  height: 58px !important;
}

.head3blogo img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain;
  object-position: left center;
}

.ph-logo {
  width: 140px !important;
}

.ph-logo img {
  width: 100% !important;
  height: auto !important;
  object-fit: contain;
}

.wsfxaclogo {
  height: 72px !important;
  width: auto !important;
  max-width: 220px;
  object-fit: contain;
}

/* ===== SGE header (thay thanh công cụ cũ) ===== */
.hd-ph, .nav_toggle, .head3 { display: none !important; }
.sge-head {
  position: fixed; top: 0; left: 0; right: 0; z-index: 9999;
  background: rgba(236, 238, 241, .96);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 rgba(15, 23, 42, .06), 0 4px 14px rgba(15, 23, 42, .06);
  font-family: "Be Vietnam Pro", Arial, sans-serif;
}
.sge-head-in {
  max-width: 1440px; margin: 0 auto; height: 76px; padding: 0 40px;
  display: flex; align-items: center; gap: 24px;
}
.sge-logo { flex: none; display: block; width: 122px; }
.sge-logo img { width: 100%; height: auto; display: block; }
.sge-nav { flex: 1; display: flex; justify-content: center; align-items: center; gap: 30px; }
.sge-nav > a, .sge-dd-btn {
  color: #1f2937; font-size: 15px; font-weight: 500; text-decoration: none;
  background: none; border: 0; padding: 8px 0; cursor: pointer; font-family: inherit;
  display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; transition: color .2s;
}
.sge-nav > a:hover, .sge-dd-btn:hover, .sge-dd:hover .sge-dd-btn { color: #2f6aa8; }
.sge-dd { position: relative; }
.sge-dd-menu {
  position: absolute; top: 100%; left: -16px; min-width: 210px; padding: 8px;
  background: #fff; border-radius: 12px; box-shadow: 0 12px 30px rgba(15, 23, 42, .14);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: .2s;
}
.sge-dd:hover .sge-dd-menu, .sge-dd:focus-within .sge-dd-menu { opacity: 1; visibility: visible; transform: none; }
.sge-dd-menu a { display: block; padding: 10px 12px; border-radius: 8px; color: #1f2937; font-size: 14px; text-decoration: none; }
.sge-dd-menu a:hover { background: #eef3fa; color: #2f6aa8; }
.sge-tools { flex: none; display: flex; align-items: center; gap: 14px; }
.sge-ic { color: #1f2937; background: none; border: 0; padding: 6px; cursor: pointer; display: inline-flex; }
.sge-ic:hover { color: #2f6aa8; }
.sge-phone {
  display: inline-flex; align-items: center; gap: 10px; margin-left: 10px;
  background: #2f6aa8; color: #fff !important; text-decoration: none;
  font-weight: 700; font-size: 16px; padding: 12px 24px; border-radius: 999px;
  box-shadow: 0 6px 16px rgba(47, 106, 168, .3); transition: background .2s;
}
.sge-phone:hover { background: #255a91; }
.sge-burger { display: none; width: 40px; height: 40px; background: none; border: 0; cursor: pointer; padding: 10px 8px; flex-direction: column; justify-content: space-between; }
.sge-burger span { display: block; height: 2px; background: #1f2937; border-radius: 2px; }

@media (max-width: 1200px) {
  .sge-head-in { padding: 0 20px; }
  .sge-nav { gap: 20px; }
  .sge-nav > a, .sge-dd-btn { font-size: 14px; }
}
@media (max-width: 1024px) {
  .sge-head-in { height: 64px; gap: 12px; }
  .sge-logo { width: 96px; }
  .sge-burger { display: flex; }
  .sge-tools { margin-left: auto; }
  .sge-ic { display: none; }
  .sge-phone { padding: 9px 16px; font-size: 14px; margin-left: 0; }
  .sge-nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 16px;
    background: #fff; box-shadow: 0 12px 24px rgba(15, 23, 42, .12);
  }
  .sge-nav.open { display: flex; }
  .sge-nav > a, .sge-dd-btn { padding: 12px 0; border-bottom: 1px solid #eef0f3; width: 100%; }
  .sge-dd-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding: 0 0 0 12px; display: none; }
  .sge-dd:hover .sge-dd-menu, .sge-dd:focus-within .sge-dd-menu { display: block; }
}
@media (max-width: 480px) {
  .sge-phone span { display: none; }
  .sge-phone { padding: 10px; }
}
