/* ===== SGE — Trang chủ: tối ưu giao diện mobile / tablet =====
   Nạp sau cùng trên trang chủ. Chỉ tác động ở màn hình nhỏ. */

/* menu điện thoại cũ của bản gốc (đã thay bằng header SGE) — bỏ hẳn để không gây tràn ngang */
.phnav-menu, .phnav2-language { display: none !important; }

@media (max-width: 1024px) {
  html, body { overflow-x: hidden; }
  @supports (overflow: clip) { html, body { overflow-x: clip; } }

  /* nút bo tròn: không xuống dòng, chiều cao tự co */
  .more10 {
    display: inline-flex !important; align-items: center; justify-content: center;
    min-width: 0 !important; height: auto !important; line-height: 1.25 !important;
    padding: 12px 22px !important; white-space: nowrap; font-size: 14.5px !important;
  }

  /* ---- Vì sao chọn SGE: bỏ hiệu ứng sticky dài, gói gọn trong 1 khung ---- */
  .nwa42 { position: relative; }
  .nwa42sti { position: relative !important; height: auto !important; min-height: 0 !important; padding: 84px 20px 76px; overflow: hidden; background: #0b1626; }
  .nwa42hs { display: none !important; }
  .nwa42vidoe { position: absolute !important; inset: 0; width: 100% !important; height: 100% !important; object-fit: cover; }
  .nwa42zz { position: absolute !important; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(6, 16, 30, .55), rgba(6, 16, 30, .78)) !important; opacity: 1 !important; }
  .nwa42wz2 { position: relative !important; z-index: 2; left: auto !important; top: auto !important; transform: none !important; width: 100% !important; opacity: 1 !important; }
  .nwa42wz2 .jlh1 { font-size: 30px !important; line-height: 1.3 !important; }
  .nwa42wzp9 { width: 100% !important; max-width: 640px; margin: 44px auto 0 !important; display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .nwa42wzp9 ul { width: auto !important; margin: 0; padding: 18px 6px; border-radius: 14px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); }
  .nwa42wzp9p1 span { font-size: 44px !important; padding: 0 !important; }
  .nwa42wzp9p2 { font-size: 14px !important; margin-top: 10px !important; }
  .nwa42wzp11 { margin-top: 40px !important; display: flex; justify-content: center; }
}

@media (max-width: 767px) {
  .w1400 { padding-left: 16px !important; padding-right: 16px !important; }
  .ptb100p { padding-top: 56px !important; padding-bottom: 56px !important; }
  .jlh1 { font-size: 30px !important; line-height: 1.2 !important; }

  /* ---------- Banner đầu trang ---------- */
  .site-baner, .site-baner .swiper-wrapper, .site-baner-slide, .site-baner-bg {
    height: 100vh !important; height: 100svh !important; min-height: 560px !important; max-height: 860px;
  }
  .site-baner-bgm { background-position: 72% center !important; height: 100% !important; }
  .site-baner-bg::after {
    content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: linear-gradient(180deg, rgba(220, 234, 248, 0) 0, rgba(220, 234, 248, .78) 96px, rgba(220, 234, 248, .5) 44%, rgba(220, 234, 248, 0) 64%);
  }
  .site-baner-zw {
    top: 104px !important; bottom: auto !important; left: 0 !important; right: 0 !important; transform: none !important;
    width: 100% !important; max-width: none !important; padding: 0 20px !important; text-align: left !important;
  }
  .site-baner-zw .site-baner-p3 { font-size: 30px !important; line-height: 1.25 !important; white-space: normal !important; margin: 0 !important; }
  .site-baner-zw .site-baner-p4 { font-size: 15.5px !important; line-height: 1.6 !important; white-space: normal !important; margin: 12px 0 0 !important; max-width: 340px; }
  .site-baner-zw .site-baner-p2 { margin-top: 22px !important; }
  .site-baner-zw .site-baner-p2 .more10 { padding: 14px 26px !important; font-size: 15px !important; box-shadow: 0 8px 20px rgba(240, 130, 0, .3); }
  /* thanh chuyển slide: chỉ giữ 3 vạch tiến trình, ẩn chữ */
  .siteots { bottom: 28px !important; padding: 0 20px !important; }
  .sitepagex { padding: 0 !important; }
  .sitebtns { display: none !important; }
  .sitepage6 { width: 190px !important; margin: 0 !important; }
  .sitepage6m { width: 54px !important; margin-right: 10px !important; }
  .sitepage6m span { font-size: 0 !important; padding-bottom: 0 !important; display: block; width: 100%; height: 4px; }

  /* ---------- Giải pháp ---------- */
  .jl10btits { flex-direction: column; align-items: flex-start !important; gap: 16px; padding-bottom: 24px !important; }
  .jl10btitsr { gap: 10px; flex-wrap: wrap; }
  .jl10btitsr a { margin-left: 0 !important; }
  .jl10bm + .jl10bm { margin-top: 20px; }
  .jl10bmx { padding: 0 16px !important; }
  .jl10bzs { padding-bottom: 0 !important; border-radius: 16px; overflow: hidden; background: #f3f6fa; }
  .jl10bbg { position: relative !important; height: 230px !important; border-radius: 0 !important; }
  .jl10bwz { position: relative !important; top: auto !important; transform: none !important; height: auto !important; padding: 22px 20px 26px !important; }
  .jl10bwz .itemtxtp1 { font-size: 24px !important; }
  .jl10bwz .ab19bp2 br { display: none; }
  .jl10bwz .ab19bp2 { font-size: 15px !important; line-height: 1.65 !important; margin-top: 10px !important; }
  .jl10bmx1 .ab19bp2 { color: #34465c !important; }
  .jl10bwz .ab19bp3 { margin-top: 18px !important; }

  /* ---------- Vì sao chọn SGE ---------- */
  .nwa42sti { padding: 64px 16px 60px; }
  .nwa42wz2 .jlh1 { font-size: 24px !important; }
  .nwa42wzp9 { grid-template-columns: 1fr; gap: 10px; margin-top: 32px !important; }
  .nwa42wzp9 ul { display: flex; align-items: center; gap: 16px; padding: 14px 18px; text-align: left !important; }
  .nwa42wzp9p1 { flex: 0 0 64px; text-align: center; }
  .nwa42wzp9p1 span { font-size: 40px !important; }
  .nwa42wzp9p2 { margin-top: 0 !important; font-size: 15px !important; }
  .nwa42wzp9p2 br { display: none; }
  .nwa42wzp11 { margin-top: 32px !important; }

  /* ---------- Liên hệ / Hỗ trợ ---------- */
  .dn1em { display: flex !important; flex-direction: column; gap: 16px; }
  .dn1ex { width: 100% !important; min-height: 320px; border-radius: 16px !important; }
  .dn1eximg1 { display: none !important; }
  .dn1eximg2 { position: absolute !important; inset: 0; width: 100% !important; height: 100% !important; }
  .dn1ewz { padding: 22px 20px 24px !important; }
  .dn1ewzp0 { font-size: 24px !important; }
  .dn1ep2 { font-size: 15px !important; line-height: 1.6 !important; margin-top: 8px !important; opacity: 1 !important; max-height: none !important; transform: none !important; }
  .dn1ep2 br { display: none; }
  .dn1ep3 { display: flex !important; flex-wrap: wrap; gap: 10px; margin-top: 16px !important; opacity: 1 !important; transform: none !important; }
  .dn1ep3 a { margin: 0 !important; }
}

@media (max-width: 1024px) {
  /* ---------- Sửa chữa & Dự án: ảnh trên, chữ dưới ---------- */
  .jl8bm { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
  .jl8c .jl8bm { flex-direction: column; align-items: flex-start; }
  .jl8c .jl10btitsr { display: flex; gap: 10px; flex-wrap: wrap; }
  .jl8brs { display: flex; gap: 10px; }
  .jl8bbig { margin-top: 24px !important; }
  .jl8cslide { background: #0f2238; }
  .jl8bswiper .swiper-wrapper, .jl8bswiper4 .swiper-wrapper { align-items: stretch; }
  .jl8bslide { height: auto !important; }
  .jl8bslide .jl8bimg, .jl8cslide-height-1 .jl8bimg {
    position: relative !important; display: block; width: 100% !important; height: 340px !important; object-fit: cover;
  }
  .jl8cslide-height-1 { padding-bottom: 0 !important; height: auto !important; }
  .jl8bwz, .jl8c .jl8cwz.sge-pj {
    position: relative !important; left: auto !important; right: auto !important; top: auto !important; transform: none !important;
    width: auto !important; min-width: 0 !important; max-width: none !important; padding: 20px 18px 24px !important;
    border-radius: 0 !important; background: none !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  }
  .jl8bwz .jl8bp1 { font-size: 22px !important; line-height: 1.3 !important; }
  .jl8bwz p[style] { font-size: 15px !important; line-height: 1.65 !important; max-width: none !important; }
  .jl8bp3, .jl8cp4 { display: flex !important; flex-wrap: wrap; gap: 10px; margin-top: 16px !important; }
  .jl8bp3 a, .jl8cp4 a { margin: 0 !important; }
  .jl8c .jl8cwz.sge-pj .jl8cp2 { font-size: 22px !important; line-height: 1.3 !important; margin-top: 6px !important; }
  .jl8c .jl8cwz.sge-pj .jl8cp3 { font-size: 15px !important; line-height: 1.65 !important; margin-top: 10px !important; }

  .jl8ccasebtn1, .jl8ccasebtn2 { top: 170px !important; }
  .jl8bslide, .jl8cslide { border-radius: 16px !important; background: #f3f6fa; overflow: hidden; }
  .jl8cslide { background: #0f2238; }
}

@media (max-width: 767px) {
  .jl8bslide, .jl8cslide { width: calc(100vw - 32px) !important; }
  .jl8ccasebtn1, .jl8ccasebtn2 { top: 110px !important; transform: translateY(-50%) !important; }
  .jl8ccasebtn1 { left: 28px !important; }
  .jl8ccasebtn2 { right: 28px !important; left: auto !important; }
  .jl8bswiper4 { padding: 0 16px !important; }
  .jl8bslide .jl8bimg, .jl8cslide-height-1 .jl8bimg { height: 220px !important; }
}

@media (max-width: 380px) {
  .site-baner-zw .site-baner-p3 { font-size: 27px !important; }
  .jlh1 { font-size: 27px !important; }
}

/* ===== Slide 2 (ảnh tối): chữ trắng + lớp phủ tối bên trái ===== */
.sge-slide-dark .site-baner-bg { position: relative; }
.sge-slide-dark .site-baner-bg::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(6, 16, 30, .72) 0%, rgba(6, 16, 30, .45) 38%, rgba(6, 16, 30, 0) 62%),
              linear-gradient(0deg, rgba(6, 16, 30, .45) 0%, rgba(6, 16, 30, 0) 30%);
}
.sge-slide-dark .site-baner-p4 { text-shadow: 0 1px 12px rgba(0, 0, 0, .35); }
@media (max-width: 767px) {
  .sge-slide-dark .site-baner-bgm { background-position: 77% center !important; }
  .sge-slide-1 .site-baner-bgm { background-position: 64% center !important; }
  .sge-slide-dark .site-baner-bg::after {
    background: linear-gradient(180deg, rgba(6, 16, 30, .25) 0, rgba(6, 16, 30, .7) 96px, rgba(6, 16, 30, .5) 44%, rgba(6, 16, 30, 0) 66%),
                linear-gradient(0deg, rgba(6, 16, 30, .45) 0%, rgba(6, 16, 30, 0) 25%);
  }
}
@media (max-width: 767px) { .sge-slide-3 .site-baner-bgm { background-image: url(/local/sge-photos/kiem-tra-nhiet-m.jpg?v=1) !important; background-position: 60% center !important; } }
