/* =====================================================================
   GIAO DIỆN 2 (24/11/2026) – lớp trình bày chung cho mọi trang nội dung
   Áp dụng khi <html> có lớp nk-gd2 (header.php gắn cho mọi trang TRỪ trang chủ 1.php và 4 trang quảng cáo 160–163).
   Không sửa nội dung từng trang: chỉ chuẩn hoá chữ, khoảng cách, bảng giá, ảnh, nút; sửa lỗi tràn ngang trên điện thoại;
   gom các nút nổi thành thanh liên hệ ở đáy màn hình điện thoại. Phông: Inter (tiêu đề) + Roboto (chữ) – đã nạp sẵn.
   ===================================================================== */
html.nk-gd2{
  --gd-xanh:#0C4A7C;--gd-xanh-dam:#083457;--gd-xanh-nhat:#EAF2FA;
  --gd-cam:#F5A623;--gd-cam-dam:#C77D00;--gd-do:#D93025;--gd-zalo:#0068FF;
  --gd-chu:#1B2733;--gd-mo:#526273;--gd-vien:#DCE4EC;--gd-nen:#F4F7FA;--gd-trang:#FFFFFF;
  --gd-bo:12px;--gd-day:0px;
}
html.nk-gd2 body{background:var(--gd-trang);color:var(--gd-chu);-webkit-text-size-adjust:100%;text-rendering:optimizeLegibility}

/* ---------- 1. Sửa lỗi tràn ngang trên điện thoại (ảnh rộng cố định, bảng rộng, chữ dài) ---------- */
html.nk-gd2 #wb_main img{max-width:100% !important;height:auto !important}
html.nk-gd2 #wb_main iframe{max-width:100%}
html.nk-gd2 #wb_main h1,html.nk-gd2 #wb_main h2,html.nk-gd2 #wb_main h3,html.nk-gd2 #wb_main p,html.nk-gd2 #wb_main li,html.nk-gd2 #wb_main td{overflow-wrap:anywhere;word-break:normal}
html.nk-gd2 .nk-bang-cuon{width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;margin:16px 0;border:1px solid var(--gd-vien);border-radius:var(--gd-bo);background:var(--gd-trang)}
html.nk-gd2 .nk-bang-cuon>table{margin:0 !important;border:0 !important;min-width:100%}

/* ---------- 2. Chữ & tiêu đề ---------- */
html.nk-gd2 #wb_main{font-family:Roboto,Arial,Helvetica,sans-serif}
html.nk-gd2 #wb_main p,html.nk-gd2 #wb_main li{font-size:16px;line-height:1.7}
html.nk-gd2 #wb_main h1,html.nk-gd2 #wb_main h2,html.nk-gd2 #wb_main h3,html.nk-gd2 #wb_main h4,html.nk-gd2 #wb_main summary{font-family:Inter,Roboto,Arial,sans-serif;letter-spacing:-.01em;text-wrap:balance}
html.nk-gd2 #wb_main h1{font-size:clamp(24px,5.2vw,34px) !important;line-height:1.25 !important;font-weight:800 !important}
html.nk-gd2 #wb_main h2{font-size:clamp(21px,4.4vw,28px) !important;line-height:1.3 !important;font-weight:800 !important;margin-top:1.4em;margin-bottom:.55em}
html.nk-gd2 #wb_main h3{font-size:clamp(18px,3.8vw,21px) !important;line-height:1.35 !important;font-weight:700 !important}
html.nk-gd2 #wb_main a:not([class]){color:var(--gd-xanh);text-underline-offset:2px}

/* tiêu đề đầu bài (thẻ h2 kiểu cũ của trình tạo web) -> khối giới thiệu gọn, dễ đọc */
html.nk-gd2 #wb_main nav[aria-label="Breadcrumb"]{display:none !important}   /* đường dẫn cũ trùng với đường dẫn mới ở đầu trang */
html.nk-gd2 #wb_main .wb-stl-heading1{color:var(--gd-xanh-dam) !important;margin-top:.4em}

/* ---------- 3. Bảng giá ---------- */
html.nk-gd2 #wb_main table{width:100%;border-collapse:separate !important;border-spacing:0;font-size:15px !important;background:var(--gd-trang)}
html.nk-gd2 #wb_main table th{background:var(--gd-xanh) !important;color:#fff !important;font-weight:700;text-align:left;padding:11px 12px !important;border:0 !important;font-size:14px !important;white-space:nowrap}
html.nk-gd2 #wb_main table td{padding:11px 12px !important;border:0 !important;border-top:1px solid var(--gd-vien) !important;vertical-align:top;color:var(--gd-chu)}
html.nk-gd2 #wb_main table tbody tr:nth-child(even) td{background:#F8FAFC}
html.nk-gd2 #wb_main table tbody tr:hover td{background:var(--gd-xanh-nhat)}
html.nk-gd2 #wb_main .nk-gia{font-weight:700;color:var(--gd-do);white-space:nowrap;font-variant-numeric:tabular-nums}
@media (max-width:640px){html.nk-gd2 #wb_main .nk-gia{white-space:normal}}

/* ---------- 4. Hỏi đáp (details/summary) ---------- */
html.nk-gd2 #wb_main details{border:1px solid var(--gd-vien) !important;border-radius:var(--gd-bo) !important;box-shadow:none !important;margin:10px 0}
html.nk-gd2 #wb_main details[open]{border-color:var(--gd-xanh) !important}
html.nk-gd2 #wb_main summary{font-size:17px !important;color:var(--gd-xanh-dam) !important;padding:2px 0}

/* ---------- 5. Nút gọi / Zalo trong bài: cùng một kiểu, đủ lớn để bấm ---------- */
html.nk-gd2 #wb_main a[href^="tel:"][class*="bg-"],html.nk-gd2 #wb_main a[href*="zalo.me"][class*="bg-"]{border-radius:12px !important;min-height:52px;display:inline-flex !important;align-items:center;justify-content:center;gap:8px;font-weight:800 !important;font-size:17px !important;letter-spacing:.01em;box-shadow:0 6px 16px rgba(12,74,124,.18) !important}
html.nk-gd2 #wb_main a[href^="tel:"][class*="bg-"]{background:var(--gd-do) !important;color:#fff !important}
html.nk-gd2 #wb_main a[href*="zalo.me"][class*="bg-"]{background:var(--gd-zalo) !important;color:#fff !important}

/* ---------- 6. Nút nổi: máy tính gọn lại, điện thoại thành THANH LIÊN HỆ ở đáy ---------- */
html.nk-gd2 .nk-float-ping{display:none !important}                       /* bỏ vòng nhấp nháy liên tục – đỡ rối mắt */
html.nk-gd2 #float-call,html.nk-gd2 #float-zalo,html.nk-gd2 .float-call,html.nk-gd2 .float-zalo{display:none !important} /* trùng với nút Gọi / Zalo của thanh */
html.nk-gd2 .nk-thanh-ngan{display:none}
@media (min-width:768px){
  html.nk-gd2 .nk-float-actions .nk-float-label{opacity:0;transform:translateX(8px);transition:opacity .15s,transform .15s;pointer-events:none}
  html.nk-gd2 .nk-float-actions .nk-float-btn:hover .nk-float-label,html.nk-gd2 .nk-float-actions .nk-float-btn:focus-visible .nk-float-label{opacity:1;transform:none}
}
@media (max-width:767px){
  html.nk-gd2{--gd-day:64px}
  html.nk-gd2 body{padding-bottom:calc(var(--gd-day) + env(safe-area-inset-bottom)) !important}
  html.nk-gd2 .nk-float-actions{position:fixed !important;left:0 !important;right:0 !important;bottom:0 !important;top:auto !important;width:auto !important;height:auto !important;
    display:grid !important;grid-auto-flow:column;grid-auto-columns:1fr;gap:0 !important;margin:0 !important;padding:6px 6px calc(6px + env(safe-area-inset-bottom)) !important;
    background:rgba(255,255,255,.97) !important;border-top:1px solid var(--gd-vien);box-shadow:0 -6px 18px rgba(16,40,64,.10);z-index:9990 !important;transform:none !important}
  html.nk-gd2 .nk-float-actions .nk-float-btn{position:static !important;display:flex !important;flex-direction:column;align-items:center;justify-content:center;gap:3px;margin:0 !important;padding:2px 0 !important;min-height:52px;background:none !important;border:0 !important;box-shadow:none !important;text-decoration:none !important;color:var(--gd-chu) !important;transform:none !important}
  html.nk-gd2 .nk-float-actions .nk-float-label{display:none !important}
  html.nk-gd2 .nk-float-actions .nk-float-circle{position:relative !important;width:34px !important;height:34px !important;min-width:34px;border-radius:10px !important;box-shadow:none !important;display:flex !important;align-items:center;justify-content:center;margin:0 !important;transform:none !important}
  html.nk-gd2 .nk-float-actions .nk-float-circle svg{width:19px !important;height:19px !important}
  html.nk-gd2 .nk-float-actions .nk-thanh-ngan{display:block;font:600 11.5px/1.1 Roboto,Arial,sans-serif;color:var(--gd-chu);white-space:nowrap}
  html.nk-gd2 .nk-float-actions .nk-call .nk-float-circle{background:var(--gd-do) !important}
  html.nk-gd2 .nk-float-actions .nk-call .nk-thanh-ngan{color:var(--gd-do);font-weight:800}
  html.nk-gd2 .nk-float-actions .nk-zalo .nk-float-circle{background:var(--gd-zalo) !important}
  html.nk-gd2 .nk-float-actions .nk-dat-lich-thanh .nk-float-circle{background:var(--gd-cam) !important;color:#2A1A00}
  /* nút "Đặt lịch" nổi góc trái được JS chuyển vào thanh -> ẩn bản nổi nếu chưa chuyển được thì vẫn giữ */
  html.nk-gd2.nk-gd2-thanh #nkdl-noi{display:none !important}
  html.nk-gd2 #nk-tv-khung,html.nk-gd2 .nk-tv-khung{z-index:9995 !important}
  html.nk-gd2 .nk-tv-moi{bottom:calc(var(--gd-day) + 10px) !important}
}
@media (prefers-reduced-motion:reduce){html.nk-gd2 *{animation:none !important;transition:none !important}}

/* ---------- 7. Đầu bài ---------- */
/* điện thoại: ảnh banner đầu trang vốn đã ẩn, nhưng lớp phủ của nó vẫn chiếm 64px trắng -> ẩn theo */
@media (max-width:767px){html.nk-gd2 #wb_main>.wb-cs-row:first-child .wb_element_picture>.wb-elm-ch-wrp{display:none !important}html.nk-gd2 #wb_main>.wb-cs-row:first-child .wb_element_picture{min-height:0 !important;height:auto !important}}
/* khối giới thiệu kiểu cũ (dòng "DỊCH VỤ … TẠI NGUYỄN KIM:" + địa chỉ, tổng đài…) -> nhãn nhỏ + thẻ thông tin */
html.nk-gd2 #wb_main .wb-stl-heading1+p{font:700 13px/1.4 Inter,Roboto,sans-serif !important;letter-spacing:.06em;text-transform:uppercase;color:var(--gd-cam-dam);margin:6px 0 8px}
html.nk-gd2 #wb_main .wb-stl-heading1+p>br:first-child{display:none}
html.nk-gd2 #wb_main .wb-stl-heading1+p+p{background:var(--gd-nen);border:1px solid var(--gd-vien);border-radius:var(--gd-bo);padding:14px 16px;line-height:1.8}

/* ---------- 8. Bảng GIÁ trên điện thoại: mỗi hạng mục một dòng, giá nằm ngay dưới tên (không phải kéo ngang) ---------- */
@media (max-width:640px){
  html.nk-gd2 #wb_main table.nk-bang-gia{min-width:0 !important}
  html.nk-gd2 #wb_main table.nk-bang-gia thead{display:none}
  html.nk-gd2 #wb_main table.nk-bang-gia tbody{display:block}
  html.nk-gd2 #wb_main table.nk-bang-gia tr{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 8px;padding:11px 12px;border-top:1px solid var(--gd-vien)}
  html.nk-gd2 #wb_main table.nk-bang-gia tr:first-child{border-top:0}
  html.nk-gd2 #wb_main table.nk-bang-gia td{display:block;padding:0 !important;border:0 !important;background:none !important;font-size:15px}
  html.nk-gd2 #wb_main table.nk-bang-gia td:first-child:not(.nk-o-gia){color:var(--gd-mo);font-size:13px;min-width:20px}
  html.nk-gd2 #wb_main table.nk-bang-gia td:nth-child(2):not(.nk-o-gia){flex:1 1 0;font-weight:600}
  html.nk-gd2 #wb_main table.nk-bang-gia td.nk-o-gia{flex:1 1 100%;order:5;font-size:16px;padding-left:28px !important}
  html.nk-gd2 #wb_main table.nk-bang-gia td:not(:first-child):not(:nth-child(2)):not(.nk-o-gia){flex:1 1 100%;order:6;font-size:13px;color:var(--gd-mo);padding-left:28px !important}
  html.nk-gd2 #wb_main table.nk-bang-gia tbody tr:nth-child(even){background:#F8FAFC}
  html.nk-gd2 .nk-bang-cuon.co-gia{overflow-x:visible}
  html.nk-gd2 #wb_main table.nk-bang-gia td{white-space:normal !important;min-width:0 !important;max-width:100%}
  html.nk-gd2 #wb_main table.nk-bang-gia tr{flex-wrap:nowrap;display:grid !important;grid-template-columns:minmax(0,1fr);column-gap:4px}
  html.nk-gd2 #wb_main table.nk-bang-gia.co-stt tr{grid-template-columns:24px minmax(0,1fr)}
  html.nk-gd2 #wb_main table.nk-bang-gia:not(.co-stt) td{grid-column:1 !important;padding-left:0 !important}
  html.nk-gd2 #wb_main table.nk-bang-gia:not(.co-stt) td:first-child:not(.nk-o-gia){color:var(--gd-chu) !important;font-size:15px !important;font-weight:600}
  html.nk-gd2 #wb_main table.nk-bang-gia td.nk-o-gia,html.nk-gd2 #wb_main table.nk-bang-gia td:not(:first-child):not(:nth-child(2)):not(.nk-o-gia){grid-column:2;padding-left:0 !important}
}
html.nk-gd2 #wb_main td.nk-o-gia{font-weight:700;color:var(--gd-do);font-variant-numeric:tabular-nums;white-space:normal !important;min-width:150px}
