/* ===== SGE header — mega menu Dịch vụ ===== */
.sge-nav > a.active, .sge-dd-btn.active { color: #2f6aa8; }
.sge-dd-mega.mega-on .sge-mega-btn-top { color: #f08200; }
.sge-mega-btn-top svg { transition: transform .25s; }
.sge-dd-mega.mega-on .sge-mega-btn-top svg { transform: rotate(180deg); }
.sge-sub-m { display: none; }

.sge-mega {
  position: absolute; left: 12px; right: 12px; top: calc(100% + 8px);
  border-radius: 16px; overflow: hidden;
  background: linear-gradient(160deg, rgba(28, 34, 42, .86), rgba(10, 13, 18, .9));
  -webkit-backdrop-filter: blur(22px) saturate(140%); backdrop-filter: blur(22px) saturate(140%);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .35);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .25s ease, transform .3s ease, visibility .25s;
}
.sge-mega::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.sge-mega.open { opacity: 1; visibility: visible; transform: none; }

/* dạng danh sách (Tài liệu) */
.sge-mega.is-list .sge-mega-in { min-height: 300px; }
.sge-mega-list { flex: 1; display: flex; flex-direction: column; gap: 6px; max-width: 460px; padding-top: 4px; }
.sge-mega-row {
  position: relative; display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-radius: 10px;
  color: #fff; text-decoration: none; font-size: 16px; overflow: hidden; transition: background .3s, padding .3s;
}
.sge-mega-row::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .04));
  transform: scaleX(0); transform-origin: left; transition: transform .35s cubic-bezier(.2, .7, .2, 1);
}
.sge-mega-row > * { position: relative; z-index: 1; }
.sge-mega-row i { display: grid; place-items: center; color: #f08200; }
.sge-mega-row span { flex: 1; }
.sge-mega-row em { color: #f08200; opacity: 0; transform: translateX(-8px); transition: .3s; display: grid; }
.sge-mega-row:hover::before, .sge-mega-row:focus-visible::before { transform: scaleX(1); }
.sge-mega-row:hover em, .sge-mega-row:focus-visible em { opacity: 1; transform: none; }
.sge-mega-in { max-width: 1440px; margin: 0 auto; display: flex; padding: 46px 52px 50px; gap: 0; }
.sge-mega-l { flex: 0 0 300px; padding-right: 44px; margin-right: 44px; border-right: 1px solid rgba(255, 255, 255, .12); color: #fff; }
.sge-mega-l h4 { margin: 0 0 22px; font-size: 24px; font-weight: 700; color: #fff; }
.sge-mega-l p { margin: 0 0 34px; font-size: 16px; line-height: 1.6; color: rgba(255, 255, 255, .88); }
.sge-mega-btn {
  display: inline-block; padding: 12px 38px; border-radius: 999px; background: #f08200; color: #fff !important;
  font-size: 15px; font-weight: 600; text-decoration: none; transition: background .2s;
}
.sge-mega-btn:hover { background: #d97400; }
.sge-mega-r { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.sge-mega-it { display: flex; flex-direction: column; text-decoration: none; color: #fff; }
.sge-mega-tag { font-size: 12.5px; font-weight: 600; color: #f08200; margin-bottom: 12px; }
.sge-mega-img { display: block; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; margin-bottom: 14px; background: #222; }
.sge-mega-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.sge-mega-it b { font-size: 16px; line-height: 1.4; font-weight: 600; color: #fff; transition: color .2s; }
.sge-mega-it small { margin-top: 6px; font-size: 13.5px; line-height: 1.5; color: rgba(255, 255, 255, .62); }
.sge-mega-it em { margin-top: 12px; font-style: normal; font-size: 13.5px; font-weight: 600; color: rgba(255, 255, 255, .8); display: inline-flex; align-items: center; gap: 6px; transition: color .2s, gap .2s; }
.sge-mega-it:hover .sge-mega-img img { transform: scale(1.06); }
.sge-mega-it:hover b, .sge-mega-it.on b { color: #f08200; }
.sge-mega-it:hover em { color: #f08200; gap: 10px; }

@media (max-width: 1280px) {
  .sge-mega-in { padding: 36px 32px 40px; }
  .sge-mega-l { flex-basis: 240px; padding-right: 30px; margin-right: 30px; }
  .sge-mega-r { gap: 18px; }
}
@media (max-width: 1024px) {
  .sge-mega { display: none; }
  .sge-dd-mega .sge-sub-m { display: none; padding: 0 0 6px 12px; }
  .sge-dd-mega.open .sge-sub-m { display: block; }
  .sge-dd-mega.open .sge-mega-btn-top svg { transform: rotate(180deg); }
  .sge-sub-m a { display: block; padding: 10px 0; font-size: 14px; color: #1f2937; text-decoration: none; border-bottom: 1px solid #f1f3f6; }
  .sge-nav { max-height: calc(100vh - 64px); overflow-y: auto; }
}

/* logo vector sắc nét */
.sge-head .sge-logo { width: 124px !important; }
.sge-head .sge-logo img { width: 100% !important; height: auto !important; display: block; }
@media (max-width: 1024px) { .sge-head .sge-logo { width: 104px !important; } }

/* ===== ngôn ngữ ===== */
.sge-lang { position: relative; }
.sge-lang-btn { gap: 5px; align-items: center; }
.sge-lang-btn b { font-size: 12.5px; font-weight: 800; letter-spacing: .04em; }
.sge-lang-menu {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 180px; padding: 6px; border-radius: 12px; background: #fff;
  box-shadow: 0 16px 40px rgba(15, 23, 42, .18); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .2s; z-index: 10;
}
.sge-lang.open .sge-lang-menu { opacity: 1; visibility: visible; transform: none; }
.sge-lang-menu button { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 0; border-radius: 8px; background: none; cursor: pointer; font: 500 14.5px "Be Vietnam Pro", Arial, sans-serif; color: #1f2937; text-align: left; }
.sge-lang-menu button span { width: 30px; height: 22px; border-radius: 5px; display: grid; place-items: center; background: #eef2f6; font-size: 11px; font-weight: 800; color: #12305a; }
.sge-lang-menu button:hover { background: #f3f6fa; }
.sge-lang-menu button.on { color: #2f6aa8; font-weight: 700; }
.sge-lang-menu button.on span { background: #2f6aa8; color: #fff; }
/* ẩn thanh Google Dịch */
.sge-translated body { top: 0 !important; }
.skiptranslate > iframe, iframe.skiptranslate, .goog-te-banner-frame, #goog-gt-tt, .goog-te-balloon-frame, .VIpgJd-ZVi9od-ORHb-OEVmcd { display: none !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }
font[style] { background: none !important; box-shadow: none !important; }

/* ===== tìm kiếm ===== */
.sge-noscroll, .sge-noscroll body { overflow: hidden !important; }
.sge-sr { position: fixed; inset: 0; z-index: 10050; display: none; font-family: "Be Vietnam Pro", Arial, sans-serif; }
.sge-sr.open { display: block; }
.sge-sr-bg { position: absolute; inset: 0; background: rgba(8, 14, 24, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: srFade .2s; }
.sge-sr-in { position: relative; max-width: 760px; margin: 90px auto 0; padding: 0 16px; animation: srUp .3s cubic-bezier(.2, .7, .2, 1); }
@keyframes srFade { from { opacity: 0; } } @keyframes srUp { from { opacity: 0; transform: translateY(-14px); } }
.sge-sr-bar { display: flex; align-items: center; gap: 14px; padding: 0 20px; height: 66px; border-radius: 18px 18px 0 0; background: #fff; color: #5b6676; border-bottom: 1px solid #eef1f5; }
.sge-sr-bar input { flex: 1; height: 100%; border: 0; outline: 0; font: 500 17px "Be Vietnam Pro", Arial, sans-serif; color: #12305a; background: none; }
.sge-sr-x { border: 1px solid #e3e8ef; background: #f7f9fb; border-radius: 8px; padding: 5px 9px; font-size: 12px; color: #5b6676; cursor: pointer; }
.sge-sr-res { max-height: calc(100vh - 220px); overflow-y: auto; background: #fff; border-radius: 0 0 18px 18px; padding: 10px; box-shadow: 0 30px 70px rgba(0, 0, 0, .3); }
.sge-sr-res a { display: block; padding: 12px 14px; border-radius: 12px; text-decoration: none; }
.sge-sr-res a:hover, .sge-sr-res a:focus { background: #f3f6fa; outline: 0; }
.sge-sr-res small { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #f08200; }
.sge-sr-res b { display: block; margin-top: 3px; font-size: 15.5px; font-weight: 600; color: #12305a; }
.sge-sr-res span { display: block; margin-top: 3px; font-size: 13.5px; color: #5b6676; line-height: 1.5; }
.sge-sr-hint { padding: 10px 8px 14px; }
.sge-sr-hint p { margin: 0 0 10px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #9aa7b5; }
.sge-sr-hint button { margin: 0 6px 8px 0; padding: 8px 14px; border-radius: 999px; border: 1px solid #e3e8ef; background: #fff; font: 500 14px "Be Vietnam Pro", Arial, sans-serif; color: #12305a; cursor: pointer; }
.sge-sr-hint button:hover { border-color: #2f6aa8; color: #2f6aa8; }
.sge-sr-none { padding: 24px 14px; color: #5b6676; font-size: 15px; }
.sge-sr-none a { color: #2f6aa8; font-weight: 700; }
@media (max-width: 1024px) {
  .sge-ic { display: inline-flex !important; }
  .sge-lang-btn b { display: none; }
  .sge-sr-in { margin-top: 20px; }
}
@media (max-width: 480px) { .sge-tools { gap: 6px !important; } }

/* ===== Header trong suốt khi ở trên ảnh đầu trang ===== */
.sge-head { transition: background-color .35s ease, box-shadow .35s ease, -webkit-backdrop-filter .35s ease, backdrop-filter .35s ease; }
.sge-head::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 140%; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(6, 18, 34, .38), rgba(6, 18, 34, 0)); opacity: 0; transition: opacity .35s ease;
}
.sge-logo-w { display: none !important; }
.sge-head.is-top:not(.mega-open):not(.nav-open) {
  background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none;
}
.sge-head.is-top:not(.mega-open):not(.nav-open)::before { opacity: 1; }
.sge-head.is-top:not(.mega-open):not(.nav-open) .sge-logo-c { display: none !important; }
.sge-head.is-top:not(.mega-open):not(.nav-open) .sge-logo-w { display: block !important; }
.sge-head.is-top:not(.mega-open):not(.nav-open) .sge-nav > a,
.sge-head.is-top:not(.mega-open):not(.nav-open) .sge-dd-btn,
.sge-head.is-top:not(.mega-open):not(.nav-open) .sge-ic { color: #fff; text-shadow: 0 1px 10px rgba(0, 0, 0, .25); }
.sge-head.is-top:not(.mega-open):not(.nav-open) .sge-nav > a:hover,
.sge-head.is-top:not(.mega-open):not(.nav-open) .sge-dd-btn:hover,
.sge-head.is-top:not(.mega-open):not(.nav-open) .sge-nav > a.active,
.sge-head.is-top:not(.mega-open):not(.nav-open) .sge-dd-btn.active,
.sge-head.is-top:not(.mega-open):not(.nav-open) .sge-ic:hover { color: #ffb347; }
.sge-head.is-top:not(.mega-open):not(.nav-open) .sge-burger span { background: #fff; }
.sge-head.is-top:not(.mega-open):not(.nav-open) .sge-phone { box-shadow: 0 6px 18px rgba(0, 0, 0, .22); }
/* mega menu mở khi header trong suốt: giữ nền tối cho dễ đọc */
.sge-head.is-top.mega-open { background: rgba(236, 238, 241, .96); }

/* ===== Mobile: menu trượt, vùng chạm lớn ===== */
.sge-burger span { transition: transform .25s ease, opacity .2s ease; }
.sge-head.nav-open .sge-burger span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.sge-head.nav-open .sge-burger span:nth-child(2) { opacity: 0; }
.sge-head.nav-open .sge-burger span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
@media (max-width: 1024px) {
  html.sge-nav-lock, html.sge-nav-lock body { overflow: hidden !important; }
  .sge-head .sge-nav {
    max-height: calc(100vh - 64px); max-height: calc(100dvh - 64px);
    padding: 6px 20px 24px; border-top: 1px solid #eef0f3;
    -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
  }
  .sge-head .sge-nav > a, .sge-head .sge-dd-btn { min-height: 52px; padding: 14px 2px; font-size: 16px; justify-content: space-between; }
  .sge-head .sge-sub-m a { padding: 12px 0; font-size: 15px; }
  .sge-head .sge-burger { width: 44px; height: 44px; padding: 12px 10px; margin-right: -8px; }
  .sge-head .sge-ic { width: 40px; height: 40px; align-items: center; justify-content: center; padding: 0; }
}
@media (max-width: 480px) {
  .sge-head .sge-head-in { padding: 0 14px; gap: 8px; }
  .sge-head .sge-logo { width: 92px !important; }
  .sge-head .sge-phone { width: 40px; height: 40px; padding: 0; justify-content: center; }
  .sge-head .sge-lang-menu { right: -60px; }
}

/* ===== Nút Đăng nhập (hệ thống bảo hành) ===== */
.sge-login {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  padding: 10px 18px; border-radius: 999px; border: 1.5px solid #2f6aa8;
  color: #2f6aa8 !important; font: 600 15px "Be Vietnam Pro", Arial, sans-serif; text-decoration: none; white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s;
}
.sge-login:hover { background: #2f6aa8; color: #fff !important; }
.sge-tools .sge-login + .sge-phone { margin-left: 0; }
.sge-head.is-top:not(.mega-open):not(.nav-open) .sge-login { color: #fff !important; border-color: rgba(255, 255, 255, .85); }
.sge-head.is-top:not(.mega-open):not(.nav-open) .sge-login:hover { background: #fff; color: #12305a !important; border-color: #fff; }
@media (max-width: 1200px) { .sge-login { padding: 9px 14px; font-size: 14px; } }
@media (max-width: 1024px) {
  .sge-login { width: 40px; height: 40px; padding: 0; justify-content: center; border-width: 1.5px; }
  .sge-login span { display: none; }
}
@media (max-width: 1360px) and (min-width: 1025px) {
  .sge-head .sge-head-in { gap: 16px; padding: 0 24px; }
  .sge-head .sge-nav { gap: 18px; }
  .sge-head .sge-nav > a, .sge-head .sge-dd-btn { font-size: 14px; }
  .sge-head .sge-tools { gap: 8px; }
  .sge-head .sge-phone { padding: 10px 16px; font-size: 14.5px; margin-left: 0; }
  .sge-head .sge-login { padding: 9px 13px; font-size: 14px; }
}
@media (max-width: 1150px) and (min-width: 1025px) {
  .sge-head .sge-login { width: 40px; height: 40px; padding: 0; justify-content: center; }
  .sge-head .sge-login span { display: none; }
}

/* ===== Mega menu "Bài viết" ===== */
.sge-mega-list.sge-art-list { max-width: 760px; gap: 2px; }
.sge-art-row { display: grid !important; grid-template-columns: 1fr auto; grid-template-rows: auto auto; column-gap: 16px; row-gap: 4px; padding: 14px 18px !important; }
.sge-art-row .sge-art-meta { grid-column: 1; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #f08200; }
.sge-art-row .sge-art-t { grid-column: 1; font-size: 15.5px; line-height: 1.45; color: #fff; }
.sge-art-row em { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
.sge-art-docs { margin-top: 8px; border-top: 1px solid rgba(255, 255, 255, .1); border-radius: 0 0 10px 10px !important; font-size: 14.5px !important; color: rgba(255, 255, 255, .8) !important; }

/* thanh menu khi đã cuộn xuống: nền trắng đặc */
.sge-head { background: #fff; }

/* ảnh nhỏ trong menu Bài viết */
.sge-art-row { grid-template-columns: 96px 1fr auto !important; }
.sge-art-row .sge-art-img { grid-column: 1; grid-row: 1 / span 2; width: 96px; height: 60px; border-radius: 8px; overflow: hidden; background: #222; align-self: center; }
.sge-art-row .sge-art-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.sge-art-row:hover .sge-art-img img { transform: scale(1.06); }
.sge-art-row .sge-art-meta, .sge-art-row .sge-art-t { grid-column: 2 !important; }
.sge-art-row em { grid-column: 3 !important; }
.sge-dd-mega[data-mega="sgeMegaDoc"] .sge-mega-btn-top { cursor: pointer; }

/* Nút Tool Web — dùng chung style .sge-login.
   Ẩn dưới 640px: màn hẹp đã có logo + tìm kiếm + ngôn ngữ + bảo hành + hotline + burger,
   thêm nút thứ 6 là tràn hàng. */
@media (max-width: 640px) { .sge-tool { display: none !important; } }
