/* ============================================================
   dhg-glass · PROTO GLASS  (production · home-lg / page 84)
   Premium Liquid Glass — R2
   Layers: aurora → beams → glass nav → glass section → card → tile
   Budget: backdrop-filter ≤ 6 layers per viewport
   ============================================================ */

/* ---------- 0. shell: ตัด chrome ของ Astra (ไม่แตะไฟล์ธีม) -------- */
body.dhg-proto { background: #F3F7FF; color: var(--dhg-ink-2); }
body.dhg-proto .site-header,
body.dhg-proto #masthead,
body.dhg-proto #colophon,
body.dhg-proto .ast-mobile-header-wrap,
body.dhg-proto #secondary,
body.dhg-proto .widget-area { display: none !important; }

body.dhg-proto .site-content { padding: 0 !important; }
body.dhg-proto .ast-container { max-width: none !important; padding: 0 !important; }
body.dhg-proto .site-content > .ast-container > .content-area,
body.dhg-proto .content-area { width: 100% !important; padding: 0 !important; margin: 0 !important; }
body.dhg-proto .entry-content > .elementor { margin: 0; }
body.dhg-proto article.page { margin: 0; border: 0; }
body.dhg-proto .entry-header { display: none; }

/* ---------- 0b. DEAD SPACE FIX --------------------------------
   สาเหตุ: Astra ใส่ min-height:100vh ให้ .site / #page (display:flex)
   เมื่อ viewport สูงกว่าเนื้อหา (จอใหญ่ / ย่อซูม / ถ่ายภาพด้วย window
   สูงเกิน) เพจจะยืดเต็ม viewport → เกิดพื้นที่ว่างใต้ footer ~1.4k px
   วัดจริง @1440x4500: scrollHeight 4500, footer จบ 3034 → ว่าง 1466px
   แก้: ยกเลิกการยืด 100vh ให้เอกสารจบที่เนื้อหาพอดี                */
body.dhg-proto .site,
body.dhg-proto #page,
body.dhg-proto #content,
body.dhg-proto .site-content,
body.dhg-proto .content-area,
body.dhg-proto article.page { min-height: 0 !important; }
body.dhg-proto .site { display: block !important; }
body.dhg-proto { margin: 0 !important; }

/* ---------- 1. AURORA — หลายชั้น เห็นจริงหลังทุก section -------- */
body.dhg-proto::before {
  content: "";
  position: fixed; inset: -10%;
  z-index: -2; pointer-events: none;
  background:
    /* ฟ้า #1D4ED8 — ซ้ายบน */
    radial-gradient(52vw 44vw at 12% 14%, rgba(29,78,216,.34), transparent 64%),
    /* ม่วง #7C3AED — ขวาบน */
    radial-gradient(46vw 40vw at 88% 10%, rgba(124,58,237,.30), transparent 62%),
    /* ไซแอน #22D3EE — ขวาล่าง */
    radial-gradient(50vw 42vw at 84% 70%, rgba(34,211,238,.32), transparent 64%),
    /* ฟ้าสว่าง — ซ้ายกลาง */
    radial-gradient(42vw 34vw at 20% 56%, rgba(59,130,246,.26), transparent 66%),
    /* ม่วงอ่อน — ล่างซ้าย/กลาง */
    radial-gradient(44vw 36vw at 56% 98%, rgba(124,58,237,.22), transparent 66%),
    linear-gradient(168deg, #F2F7FF 0%, #EFEAFE 48%, #E9FBFC 100%);
  filter: saturate(112%);
  animation: pgDrift 40s ease-in-out infinite alternate;
  will-change: transform;
}

/* light beams — บาง ๆ 2 เส้น + vignette (ไม่ animate) */
body.dhg-proto::after {
  content: "";
  position: fixed; inset: -18%;
  z-index: -1; pointer-events: none;
  background:
    linear-gradient(101deg, transparent 33%, rgba(255,255,255,.60) 38.5%, rgba(255,255,255,.10) 42%, transparent 47%),
    linear-gradient(95deg,  transparent 58%, rgba(191,219,254,.52) 64%, rgba(191,219,254,.06) 69%, transparent 74%),
    radial-gradient(120% 92% at 50% 0%, transparent 42%, rgba(15,32,64,.055) 100%),
    radial-gradient(70% 50% at 50% 100%, transparent 58%, rgba(91,33,182,.05) 100%);
  filter: blur(7px);
}
@keyframes pgDrift {
  from { transform: translate3d(-1.4%, -1%, 0) scale(1.01); }
  to   { transform: translate3d(1.6%, 1.3%, 0) scale(1.01); }
}

/* ---------- 2. FLOATING GLASS NAVBAR ---------------------------- */
.pg-nav {
  position: fixed; top: 12px; left: 50%; transform: translateX(-50%);
  width: min(var(--maxw), calc(100% - 24px));
  display: flex; align-items: center; gap: var(--s2);
  padding: 8px 10px 8px 14px;
  border-radius: var(--r-chip);
  background:
    linear-gradient(180deg, rgba(255,255,255,.86), rgba(255,255,255,.74)),
    var(--dhg-tint-blue);
  -webkit-backdrop-filter: blur(22px) saturate(180%) brightness(1.04);
  backdrop-filter: blur(22px) saturate(180%) brightness(1.04);
  border: 1px solid rgba(255,255,255,.90);
  box-shadow: var(--dhg-shadow-1), var(--dhg-spec-top), var(--dhg-spec-bot);
  z-index: 1000;
  transition: background var(--dur-mid) ease, box-shadow var(--dur-mid) ease;
}
.pg-nav.is-stuck {
  background:
    linear-gradient(180deg, rgba(255,255,255,.95), rgba(255,255,255,.88)),
    var(--dhg-tint-blue);
  box-shadow: var(--dhg-shadow-2), var(--dhg-spec-top), var(--dhg-spec-bot);
}

.pg-nav__brand {
  display: flex; align-items: center; gap: 10px; flex: 0 0 auto;
  text-decoration: none; color: var(--dhg-ink);
  font: 700 15px/1.2 Anuphan, sans-serif; letter-spacing: -.01em; white-space: nowrap;
}
.pg-nav__logo {
  width: 34px; height: 34px; border-radius: 11px;
  display: grid; place-items: center; flex: 0 0 auto;
  background: var(--dhg-grad-cta); color: #fff;
  font: 700 11px/1 Anuphan, sans-serif; letter-spacing: .02em;
  box-shadow: 0 6px 14px -6px rgba(29,78,216,.6), inset 0 1px 0 rgba(255,255,255,.4);
}
.pg-nav__brand small {
  display: block; font: 500 11px/1.35 Anuphan, sans-serif;
  color: var(--dhg-ink-4); letter-spacing: 0;
}

.pg-nav__nav { flex: 1 1 auto; min-width: 0; }
.pg-nav__nav ul { display: flex; align-items: center; justify-content: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.pg-nav__nav li { position: relative; list-style: none; }
.pg-nav__nav li > a {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 12px; min-height: 40px;
  border-radius: var(--r-chip);
  font: 600 14.5px/1.2 Anuphan, sans-serif;
  color: var(--dhg-ink); text-decoration: none; white-space: nowrap;
  text-shadow: 0 1px 0 rgba(255,255,255,.45);
  transition: background var(--dur-fast) ease, color var(--dur-fast) ease;
}
.pg-nav__nav li > a:hover,
.pg-nav__nav li.current-menu-item > a {
  background: rgba(29,78,216,.10); color: var(--dhg-blue);
}
.pg-nav__nav li.menu-item-has-children > a::after {
  content: ""; width: 6px; height: 6px; margin-left: 2px;
  border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor;
  transform: rotate(45deg) translateY(-2px); opacity: .6;
}

/* dropdown = glass panel */
.pg-nav__nav .sub-menu {
  position: absolute; top: calc(100% + 10px); left: 0;
  min-width: 296px; padding: 8px; margin: 0;
  display: block; list-style: none;
  border-radius: var(--r-panel);
  background: rgba(255,255,255,.90);
  -webkit-backdrop-filter: blur(24px) saturate(170%);
  backdrop-filter: blur(24px) saturate(170%);
  border: 1px solid var(--dhg-rim);
  box-shadow: var(--dhg-shadow-2), var(--dhg-spec-top);
  opacity: 0; visibility: hidden; transform: translateY(4px);
  transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out), visibility 200ms;
}
.pg-nav__nav li:hover > .sub-menu,
.pg-nav__nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(6px); }
.pg-nav__nav .sub-menu li > a {
  display: block; padding: 9px 12px; min-height: 40px;
  border-radius: 12px; white-space: normal;
  font: 600 14px/1.45 Anuphan, sans-serif; color: var(--dhg-ink-2);
}
.pg-nav__nav .sub-menu li > a:hover { background: rgba(29,78,216,.08); color: var(--dhg-blue); }

.pg-nav__cta {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px;
  padding: 11px 18px; min-height: 44px; border-radius: var(--r-chip);
  background: var(--dhg-grad-cta); color: #fff; text-decoration: none;
  font: 600 14px/1 Anuphan, sans-serif;
  box-shadow: var(--dhg-shadow-cta);
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) ease;
}
.pg-nav__cta:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -10px rgba(29,78,216,.6), inset 0 1px 0 rgba(255,255,255,.6); }

.pg-nav__burger {
  display: none; margin-left: auto; width: 44px; height: 44px;
  align-items: center; justify-content: center;
  border-radius: 999px; border: 1px solid var(--dhg-rim);
  background: rgba(255,255,255,.72); color: var(--dhg-ink);
  font-size: 20px; cursor: pointer;
  box-shadow: var(--dhg-spec-top);
}

/* ---------- 3. PAGE / SECTION RHYTHM ---------------------------- */
.pg-main { padding-top: 92px; }
.pg-sec { padding: var(--sec-y) 0; }
.pg-wrap { width: min(var(--maxw), calc(100% - 40px)); margin: 0 auto; }
.pg-head { max-width: 720px; margin-bottom: var(--s5); }
.pg-kicker {
  margin: 0 0 6px; font: 700 12.5px/1.5 Anuphan, sans-serif;
  letter-spacing: .10em; text-transform: uppercase; color: var(--dhg-teal);
}
.pg-h2 {
  margin: 0; font: 700 clamp(1.5rem, 1.15rem + 1.5vw, 2.125rem)/1.3 Anuphan, sans-serif;
  color: var(--dhg-ink); letter-spacing: -.012em; text-wrap: balance;
  -webkit-font-smoothing: antialiased;
}
.pg-lead-sec { margin: 10px 0 0; font: 400 17px/1.7 Anuphan, sans-serif; color: var(--dhg-ink-3); }

/* ---------- 4. HERO -------------------------------------------- */
.pg-hero { padding: 56px 0 40px; text-align: center; position: relative; }
.pg-hero__inner { width: min(860px, calc(100% - 40px)); margin: 0 auto; position: relative; }

/* แสงเข้มเฉพาะหลัง hero — ให้ตัวอักษร/การ์ดมีอะไรให้หักเห */
.pg-hero::before {
  content: ""; position: absolute; left: 50%; top: -6%; transform: translateX(-50%);
  width: min(1200px, 100%); height: 78%;   /* 100% กัน overflow 5px ที่ 768px */
  z-index: 0; pointer-events: none; filter: blur(58px);
  background:
    radial-gradient(38% 56% at 26% 34%, rgba(29,78,216,.24), transparent 72%),
    radial-gradient(34% 52% at 76% 26%, rgba(124,58,237,.22), transparent 74%),
    radial-gradient(30% 44% at 54% 74%, rgba(34,211,238,.18), transparent 76%);
}
.pg-hero > * { position: relative; z-index: 1; }

.pg-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; margin: 0 0 16px;
  border-radius: var(--r-chip);
  background: linear-gradient(180deg, rgba(255,255,255,.72), rgba(255,255,255,.56));
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  backdrop-filter: blur(12px) saturate(160%);
  border: 1px solid rgba(255,255,255,.90);
  box-shadow: 0 1px 2px rgba(15,32,64,.05), var(--dhg-spec-top);
  font: 600 14.5px/1 Anuphan, sans-serif; color: var(--dhg-blue);
}
.pg-badge__dot {
  width: 8px; height: 8px; border-radius: 50%; background: #059669;
  box-shadow: 0 0 0 3px rgba(5,150,105,.16);
  animation: pgPulse 2.4s ease-in-out infinite;
}
@keyframes pgPulse { 0%,100%{ box-shadow:0 0 0 3px rgba(5,150,105,.16);} 50%{ box-shadow:0 0 0 6px rgba(5,150,105,.05);} }

.pg-h1 {
  margin: 0; font: 700 clamp(2.4rem, 1.15rem + 4.25vw, 4.55rem)/1.07 Anuphan, sans-serif;
  letter-spacing: -.026em; color: var(--dhg-ink); text-wrap: balance;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  text-shadow: 0 1px 0 rgba(255,255,255,.72), 0 18px 40px rgba(29,78,216,.14);
}
.pg-h1 .grad {
  background: var(--dhg-grad-text);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.pg-lead {
  margin: 14px auto 0; max-width: 60ch;
  font: 400 clamp(1.0625rem, .95rem + .45vw, 1.25rem)/1.72 Anuphan, sans-serif;
  color: var(--dhg-ink-2);
}

.pg-btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 24px; }

/* ---------- 5. LIQUID GLASS BUTTONS ---------------------------- */
.pg-btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 15px 30px;
  border-radius: var(--r-chip);
  font: 600 16px/1.2 Anuphan, sans-serif; text-decoration: none; cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-mid) ease, background var(--dur-mid) ease;
}
.pg-btn--primary {
  background: var(--dhg-grad-cta); color: #fff;
  box-shadow: var(--dhg-shadow-cta);
  border: 1px solid rgba(255,255,255,.18);
}
.pg-btn--primary::after {                 /* specular sweep บน hover เท่านั้น */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.30) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform 600ms var(--ease-out);
}
.pg-btn--primary:hover { transform: translateY(-3px); box-shadow: 0 18px 34px -10px rgba(29,78,216,.55), inset 0 1px 0 rgba(255,255,255,.55); }
.pg-btn--primary:hover::after { transform: translateX(120%); }

.pg-btn--ghost {
  background: linear-gradient(180deg, rgba(255,255,255,.78), rgba(255,255,255,.62));
  color: var(--dhg-ink);
  border: 1px solid rgba(255,255,255,.95);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
  box-shadow: 0 2px 6px rgba(15,32,64,.05), var(--dhg-spec-top);
}
.pg-btn--ghost:hover { transform: translateY(-3px); background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.78)); border-color: #fff; box-shadow: var(--dhg-shadow-1), var(--dhg-spec-top); }
.pg-btn:active { transform: translateY(0) scale(.985); }

/* ---------- 6. HERO STATS (facts strip) ------------------------ */
.pg-facts { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; margin: 40px 0 0; }
.pg-fact {
  position: relative; overflow: hidden;
  padding: 18px 18px 20px; border-radius: 18px; text-align: left;
  background:
    linear-gradient(135deg, rgba(255,255,255,.62), rgba(255,255,255,.40)),
    var(--dhg-tint-blue);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid rgba(255,255,255,.82);
  box-shadow: var(--dhg-spec-top), 0 10px 22px -18px rgba(29,78,216,.55);
  transition: transform var(--dur-mid) var(--ease-out), box-shadow var(--dur-mid) ease;
}
.pg-fact::after {                        /* light catch ตามเมาส์ */
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: radial-gradient(200px 200px at var(--mx,18%) var(--my,-8%), rgba(255,255,255,.62), rgba(255,255,255,0) 62%);
  opacity: .85; transition: opacity var(--dur-mid) ease;
}
.pg-fact:hover { transform: translateY(-3px); box-shadow: var(--dhg-spec-top), var(--dhg-shadow-2); }

/* ตัวเลข: 32–40px, 700 (Anuphan ไม่มีน้ำหนัก 800 — ไม่ใช้ faux bold), tabular */
.pg-fact b {
  position: relative; z-index: 1;
  display: block; font: 700 clamp(32px, 1.1vw + 20px, 40px)/1.06 Anuphan, sans-serif;
  letter-spacing: -.022em; font-variant-numeric: tabular-nums;
  color: var(--dhg-accent-1);
  text-shadow: 0 1px 0 rgba(255,255,255,.7);
}
.pg-fact span {
  position: relative; z-index: 1;
  display: block; margin-top: 4px; font: 500 13.5px/1.45 Anuphan, sans-serif; color: var(--dhg-ink-3);
  letter-spacing: -.005em;
}
/* accent ต่อ tile — สีเข้มพอให้คอนทราสต์ผ่านบนพื้นกระจก */
.pg-fact:nth-child(1) b { color: var(--dhg-accent-1); }
.pg-fact:nth-child(2) b { color: var(--dhg-accent-2); }
.pg-fact:nth-child(3) b { color: var(--dhg-accent-3); }
.pg-fact:nth-child(4) b { color: var(--dhg-accent-4); }
.pg-fact:nth-child(1) { background: linear-gradient(135deg, rgba(255,255,255,.62), rgba(255,255,255,.40)), var(--dhg-tint-blue); }
.pg-fact:nth-child(2) { background: linear-gradient(135deg, rgba(255,255,255,.62), rgba(255,255,255,.40)), var(--dhg-tint-violet); }
.pg-fact:nth-child(3) { background: linear-gradient(135deg, rgba(255,255,255,.62), rgba(255,255,255,.40)), var(--dhg-tint-cyan); }
.pg-fact:nth-child(4) { background: linear-gradient(135deg, rgba(255,255,255,.62), rgba(255,255,255,.40)), var(--dhg-tint-blue); }

/* ---------- 7. NEWS CAROUSEL — full-bleed image + glass panel --- */
.pg-news { padding: var(--sec-y) 0; position: relative; }
.news-slider {
  position: relative;
  border-radius: 28px;
  background:
    var(--dhg-glass-card),
    var(--dhg-tint-violet);
  -webkit-backdrop-filter: blur(28px) saturate(165%);
  backdrop-filter: blur(28px) saturate(165%);
  border: 1px solid rgba(255,255,255,.72);
  box-shadow: var(--dhg-shadow-3), var(--dhg-inner-glass);
  overflow: hidden;
}
/* gradient rim (ขาว .65 → .96) ด้วย mask — อ่านว่าเป็นขอบกระจก */
.news-slider::before {
  content: ""; position: absolute; inset: 0; z-index: 4; pointer-events: none;
  border-radius: inherit; padding: 1px;
  background: var(--dhg-rim-grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}

.ns-track { position: relative; min-height: 452px; }
.ns-slide {
  display: none; margin: 0; position: relative; min-height: 452px;
}
.ns-slide.is-active { display: block; animation: pgSlideIn 420ms var(--ease-out) both; }
@keyframes pgSlideIn { from { opacity: 0; transform: translateY(8px) scale(.994); } to { opacity: 1; transform: none; } }

/* รูป full-bleed เต็มสไลด์ + ขอบมนตามกรอบ */
.ns-img {
  position: absolute; inset: 0;
  border-radius: inherit;
  background-size: cover; background-position: center;
  transform: scale(1.001);
}
.ns-img::before {                       /* tint ให้เข้ากับออโรรา (บาง) */
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(135deg, rgba(29,78,216,.20), rgba(124,58,237,.10) 52%, rgba(34,211,238,.18));
  mix-blend-mode: multiply;
}
.ns-img::after {                        /* scrim ทิศทาง + ขอบล่างมีน้ำหนัก */
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background:
    linear-gradient(90deg, rgba(11,18,32,.02) 30%, rgba(11,18,32,.26) 100%),
    linear-gradient(0deg, rgba(11,18,32,.22) 0%, transparent 42%);
}

.n-tag {
  position: absolute; top: 18px; left: 18px; z-index: 3;
  padding: 7px 13px; border-radius: 999px;
  background: rgba(255,255,255,.82);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.9);
  font: 700 12.5px/1.4 Anuphan, sans-serif; color: var(--dhg-violet-deep);
  box-shadow: 0 2px 10px -2px rgba(15,32,64,.30), var(--dhg-spec-top);
}

/* glass info panel ลอยบนรูป */
.ns-body {
  position: relative; z-index: 2;
  margin: 22px 22px 22px auto;
  width: min(508px, 52%);
  min-height: calc(452px - 44px);
  padding: 30px 32px;
  display: flex; flex-direction: column; justify-content: center; gap: 10px;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.84), rgba(255,255,255,.70)),
    var(--dhg-tint-blue);
  -webkit-backdrop-filter: blur(26px) saturate(180%);
  backdrop-filter: blur(26px) saturate(180%);
  border: 1px solid rgba(255,255,255,.78);
  box-shadow: var(--dhg-shadow-2), var(--dhg-spec-top), var(--dhg-spec-bot);
}
.ns-body time { font: 600 14px/1.6 Anuphan, sans-serif; color: var(--dhg-ink-4); letter-spacing: .01em; }
.ns-body h4 {
  margin: 0;
  font: 700 clamp(1.5rem, 1.15rem + 1.1vw, 2.05rem)/1.28 Anuphan, sans-serif;
  color: var(--dhg-ink); letter-spacing: -.016em; text-wrap: balance;
  -webkit-font-smoothing: antialiased;
}
.ns-body h4 a { color: inherit; text-decoration: none; }
.ns-body h4 a:hover { color: var(--dhg-blue); }
.ns-body p { margin: 0; font: 400 16px/1.7 Anuphan, sans-serif; color: var(--dhg-ink-3); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ns-more {
  align-self: flex-start; margin-top: 8px;
  display: inline-flex; align-items: center; min-height: 44px;
  padding: 11px 20px; border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,.90), rgba(255,255,255,.74));
  border: 1px solid rgba(255,255,255,.95);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 2px 8px rgba(15,32,64,.07), var(--dhg-spec-top);
  font: 600 14.5px/1 Anuphan, sans-serif; color: var(--dhg-blue); text-decoration: none;
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) ease;
}
.ns-more:hover { transform: translate(3px,-2px); box-shadow: var(--dhg-shadow-1), var(--dhg-glow-rim); }

/* controls — ปุ่มกลม glass 44px + dots แบบ active pill (ลอยบนรูป) */
.ns-nav {
  position: absolute; left: 20px; bottom: 20px; z-index: 5;
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.62);
  background: linear-gradient(180deg, rgba(255,255,255,.58), rgba(255,255,255,.42));
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 8px 24px -12px rgba(11,18,32,.45), var(--dhg-spec-top);
}
.ns-btn {
  width: 44px; height: 44px; border-radius: 999px; cursor: pointer;
  display: grid; place-items: center;
  background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.76));
  border: 1px solid rgba(255,255,255,.95);
  color: var(--dhg-blue); font-size: 20px; line-height: 1;
  box-shadow: 0 2px 8px rgba(15,32,64,.10), var(--dhg-spec-top);
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) ease, background var(--dur-fast) ease;
}
.ns-btn:hover { transform: translateY(-2px) scale(1.05); background: #fff; box-shadow: var(--dhg-shadow-1), var(--dhg-glow-rim); }
.ns-btn:active { transform: scale(.97); }
.ns-dots { display: flex; align-items: center; gap: 6px; padding: 0 4px; }
.ns-dot {
  width: 9px; height: 9px; padding: 0; border: 0; border-radius: 999px; cursor: pointer;
  background: rgba(255,255,255,.72);
  box-shadow: inset 0 0 0 1px rgba(11,18,32,.14);
  transition: width var(--dur-mid) var(--ease-out), background var(--dur-mid) ease;
}
.ns-dot.is-active {
  width: 30px;
  background: linear-gradient(90deg, var(--dhg-aur-blue), var(--dhg-aur-violet));
  box-shadow: 0 0 12px -2px rgba(29,78,216,.65), inset 0 0 0 1px rgba(255,255,255,.5);
}
.ns-count {
  font: 600 13px/1 Anuphan, sans-serif; color: var(--dhg-ink-3);
  font-variant-numeric: tabular-nums; padding-right: 6px;
  text-shadow: 0 1px 0 rgba(255,255,255,.7);
}

/* ---------- 8. QUICK LINKS → mini dashboard tiles ----------------- */
.chips-grid { display: grid; gap: var(--s5); }
.chip-group {
  padding: 18px 18px 20px; border-radius: var(--r-card);
  background:
    linear-gradient(135deg, rgba(255,255,255,.52), rgba(255,255,255,.34)),
    var(--dhg-tint-blue);
  border: 1px solid rgba(255,255,255,.76);
  box-shadow: var(--dhg-spec-top), 0 14px 30px -26px rgba(29,78,216,.55);
}
.chip-label {
  margin: 0 0 14px; font: 700 13px/1.5 Anuphan, sans-serif;
  color: var(--dhg-teal); letter-spacing: .02em;
}
.chip-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(224px, 1fr)); gap: 10px; }

.chip.glass, .chip {
  --tile-bg: rgba(255,255,255,.60);
  --tile-ico: rgba(29,78,216,.14);
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 11px;
  min-height: 60px; padding: 10px 14px 10px 10px;
  border-radius: 15px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.78), rgba(255,255,255,.60)),
    var(--tile-bg) !important;
  border: 1px solid rgba(255,255,255,.88) !important;
  box-shadow: var(--dhg-spec-top), 0 8px 20px -18px rgba(29,78,216,.55) !important;
  color: var(--dhg-ink-2); text-decoration: none;
  font: 600 14.5px/1.3 Anuphan, sans-serif;
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) ease,
              background var(--dur-fast) ease, color var(--dur-fast) ease;
}
.chip::after {                            /* sheen + light catch */
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background:
    radial-gradient(190px 190px at var(--mx,16%) var(--my,-10%), rgba(255,255,255,.72), rgba(255,255,255,0) 62%),
    var(--dhg-sheen);
  opacity: .65; transition: opacity var(--dur-mid) ease;
}
.chip:hover {
  transform: translateY(-3px); color: var(--dhg-blue);
  background:
    linear-gradient(135deg, rgba(255,255,255,.90), rgba(255,255,255,.74)),
    var(--tile-bg) !important;
  box-shadow: var(--dhg-glow-rim), var(--dhg-spec-top) !important;
}
.chip:hover::after { opacity: 1; }

/* icon zone */
.chip-ico {
  flex: 0 0 auto; position: relative; z-index: 1;
  width: 36px; height: 36px; border-radius: 11px;
  display: grid; place-items: center;
  font-size: 17px; line-height: 1;
  background: var(--tile-ico);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.75), inset 0 0 0 1px rgba(255,255,255,.45);
}
.chip-t { position: relative; z-index: 1; overflow-wrap: anywhere; }

/* tint ต่อหมวด (ลำดับกลุ่มมาจาก taxonomy: ระบบภายใน → ระบบรายงาน → เอกสาร) */
.chip-group:nth-child(1) .chip { --tile-bg: var(--dhg-tile-1); --tile-ico: var(--dhg-tile-ico-1); }
.chip-group:nth-child(2) .chip { --tile-bg: var(--dhg-tile-2); --tile-ico: var(--dhg-tile-ico-2); }
.chip-group:nth-child(3) .chip { --tile-bg: var(--dhg-tile-3); --tile-ico: var(--dhg-tile-ico-3); }
.chip-group:nth-child(1) .chip-ico { color: #92400E; }
.chip-group:nth-child(2) .chip-ico { color: #065F46; }
.chip-group:nth-child(3) .chip-ico { color: #1E40AF; }

/* ---------- 9. CONTACT CARDS ----------------------------------- */
.pg-cards { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.pg-contact { position: relative; }
.pg-contact::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 100%;
  z-index: 0; pointer-events: none; filter: blur(54px);
  background:
    radial-gradient(30% 50% at 18% 30%, rgba(29,78,216,.22), transparent 74%),
    radial-gradient(30% 50% at 82% 60%, rgba(124,58,237,.20), transparent 74%);
}
.pg-contact > * { position: relative; z-index: 1; }

.pcard {
  position: relative; overflow: hidden;
  padding: 28px 26px; border-radius: var(--r-card);
  background:
    var(--dhg-glass-card),
    var(--dhg-tint-blue);
  -webkit-backdrop-filter: blur(20px) saturate(170%);
  backdrop-filter: blur(20px) saturate(170%);
  border: 1px solid rgba(255,255,255,.70);
  box-shadow: var(--dhg-shadow-2), var(--dhg-inner-glass);
  transition: transform var(--dur-mid) var(--ease-out), box-shadow var(--dur-mid) ease;
}
/* gradient rim: ขาว .65 → .96 (specular edge) */
.pcard::before {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  border-radius: inherit; padding: 1px;
  background: var(--dhg-rim-grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
/* 45° sheen (นิ่ง ไม่ animate loop) + light catch ตามเมาส์ */
.pcard::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; border-radius: inherit;
  background:
    radial-gradient(320px 320px at var(--mx,22%) var(--my,-6%), rgba(255,255,255,.68), rgba(255,255,255,0) 62%),
    var(--dhg-sheen);
  opacity: .7;
  transition: opacity var(--dur-mid) ease;
}
.pcard > * { position: relative; z-index: 2; }
.pcard:hover { transform: translateY(-4px); box-shadow: var(--dhg-shadow-3), var(--dhg-inner-glass); }
.pcard:hover::after { opacity: .95; }

.pcard__ico {
  width: 56px; height: 56px; border-radius: var(--r-tile); margin-bottom: 16px;
  display: grid; place-items: center; font-size: 24px;
  background: linear-gradient(160deg, rgba(255,255,255,.94), rgba(255,255,255,.74));
  border: 1px solid rgba(255,255,255,.95);
  box-shadow: 0 8px 18px -8px rgba(29,78,216,.34), var(--dhg-spec-top);
}
.pcard h3 { margin: 0 0 8px; font: 700 20px/1.42 Anuphan, sans-serif; color: var(--dhg-ink); letter-spacing: -.01em; }
.pcard p { margin: 0; font: 400 15px/1.7 Anuphan, sans-serif; color: var(--dhg-ink-3); }
.pcard p + p { margin-top: 8px; }
.pcard .meta { font-size: 14px; color: var(--dhg-ink-3); }
.pcard a { color: var(--dhg-blue); text-decoration: none; border-bottom: 1px solid rgba(30,64,175,.28); }
.pcard a:hover { border-bottom-color: currentColor; }

/* ---------- 10. FOOTER (glass เดียวกับทั้งหน้า) ------------------ */
.pg-footer {
  position: relative;
  margin-top: var(--s8);
  padding: 44px 0 26px;
  border-radius: 28px 28px 0 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,.80), rgba(255,255,255,.58)),
    var(--dhg-tint-violet),
    var(--dhg-tint-blue);
  -webkit-backdrop-filter: blur(24px) saturate(170%);
  backdrop-filter: blur(24px) saturate(170%);
  border: 1px solid rgba(255,255,255,.66);
  border-bottom: 0;
  box-shadow:
    var(--dhg-spec-top),
    0 -1px 0 rgba(255,255,255,.9),
    0 -22px 48px -30px rgba(29,78,216,.42),
    inset 0 -40px 60px -50px rgba(124,58,237,.28);
}
/* ขอบบนไล่เฉด — กันรอยตัด abrupt */
.pg-footer::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  border-radius: 28px 28px 0 0; pointer-events: none;
  background: linear-gradient(90deg,
    rgba(255,255,255,.10) 0%,
    rgba(255,255,255,.95) 18%,
    rgba(255,255,255,.70) 50%,
    rgba(255,255,255,.95) 82%,
    rgba(255,255,255,.10) 100%);
}
.pg-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.pg-footer h4 { margin: 0 0 10px; font: 700 15px/1.4 Anuphan, sans-serif; color: var(--dhg-ink); }
.pg-footer p, .pg-footer li { font: 400 15px/1.75 Anuphan, sans-serif; color: var(--dhg-ink-3); }
.pg-footer ul { margin: 0; padding: 0; list-style: none; }
.pg-footer a { color: var(--dhg-ink-3); text-decoration: none; border-bottom: 1px solid transparent; transition: color var(--dur-fast) ease, border-color var(--dur-fast) ease, padding-left var(--dur-fast) ease; }
.pg-footer a:hover { color: var(--dhg-blue); border-bottom-color: rgba(30,64,175,.4); padding-left: 2px; }
.pg-footer__base {
  margin-top: 28px; padding-top: 18px;
  border-top: 1px solid rgba(11,18,32,.09);
  display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between;
  font: 500 13.5px/1.6 Anuphan, sans-serif; color: var(--dhg-ink-4);
}
/* เนื้อหาจบติด footer ไม่มีMargin ลอยท้ายเอกสาร */
body.dhg-proto .pg-footslot,
body.dhg-proto .pg-footer { margin-bottom: 0 !important; }

/* ---------- 11. FOCUS / A11Y ---------------------------------- */
body.dhg-proto :focus-visible {
  outline: 2px solid var(--dhg-blue); outline-offset: 3px; border-radius: 6px;
}
.pg-nav a:focus-visible, .pg-btn:focus-visible, .chip:focus-visible,
.ns-btn:focus-visible, .ns-dot:focus-visible, .ns-more:focus-visible { border-radius: 999px; }
.pg-skip {
  position: absolute; left: 12px; top: -60px; z-index: 1100;
  padding: 10px 18px; border-radius: 999px; background: #fff; color: var(--dhg-blue);
  font: 600 14px/1 Anuphan, sans-serif; text-decoration: none;
  transition: top 160ms ease;
}
.pg-skip:focus { top: 12px; }

/* ---------- 12. REVEAL (JS adds .is-in) ----------------------- */
.pg-reveal { opacity: 0; transform: translateY(12px); }
.pg-reveal.is-in { opacity: 1; transform: none; transition: opacity 460ms var(--ease-out), transform 460ms var(--ease-out); }

/* ---------- 13. RESPONSIVE ------------------------------------ */
@media (max-width: 1279px) {
  .pg-nav__nav li > a { font-size: 14px; padding: 10px 9px; }
}
@media (max-width: 1023px) {
  .pg-nav { padding: 6px 8px 6px 12px; }
  .pg-nav__nav {
    position: absolute; top: calc(100% + 10px); left: 0; right: 0;
    padding: 10px; border-radius: var(--r-panel);
    background: rgba(255,255,255,.95);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid var(--dhg-rim);
    box-shadow: var(--dhg-shadow-2), var(--dhg-spec-top);
    opacity: 0; visibility: hidden; transform: translateY(-4px);
    transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out), visibility 200ms;
    max-height: min(70vh, 520px); overflow-y: auto;
  }
  .pg-nav__nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .pg-nav__nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .pg-nav__nav li > a { justify-content: space-between; padding: 12px 14px; font-size: 15px; }
  .pg-nav__nav .sub-menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    min-width: 0; margin: 2px 0 6px 10px; padding: 6px;
    background: rgba(255,255,255,.6); box-shadow: none; border-color: rgba(255,255,255,.7);
    display: none;
  }
  .pg-nav__nav li.is-open > .sub-menu { display: block; }
  .pg-nav__burger { display: inline-flex; }
  .pg-nav__cta { display: none; }

  /* carousel → stack: รูปเต็มบน, panel ซ้อนทับเล็กน้อย */
  .news-slider { border-radius: 24px; }
  .ns-track { min-height: 0; }
  .ns-slide, .ns-slide.is-active { min-height: 0; }
  .ns-img { position: relative; inset: auto; min-height: 240px; aspect-ratio: 16/10; border-radius: inherit; }
  .ns-img::after {
    background:
      linear-gradient(180deg, rgba(11,18,32,.02) 40%, rgba(11,18,32,.28) 100%),
      linear-gradient(0deg, rgba(11,18,32,.18) 0%, transparent 45%);
  }
  .ns-body {
    width: auto; min-height: 0;
    margin: -22px 14px 14px;
    padding: 22px 22px 24px;
    border-radius: 20px;
  }
  .ns-nav {
    position: static; margin: 0 14px 14px; justify-content: space-between;
    background: linear-gradient(180deg, rgba(255,255,255,.72), rgba(255,255,255,.56));
  }

  .pg-cards { grid-template-columns: 1fr 1fr; }
  .pg-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
  .pg-main { padding-top: 84px; }
  .pg-hero { padding: 32px 0 8px; }
  .pg-h1 { font-size: clamp(2rem, 1.4rem + 4vw, 2.6rem); }
  .pg-lead { font-size: 16.5px; }
  .pg-btns { flex-direction: column; align-items: stretch; }
  .pg-btn { width: 100%; }
  .pg-facts { grid-template-columns: 1fr 1fr; margin-top: 28px; gap: 10px; }
  .pg-fact { padding: 16px 16px 18px; }
  .pg-fact b { font-size: clamp(30px, 8.2vw, 36px); }
  .pg-cards { grid-template-columns: 1fr; }
  .pg-footer__grid { grid-template-columns: 1fr; gap: 24px; }
  .pg-footer { padding: 34px 0 22px; border-radius: 22px 22px 0 0; }
  .chip-row { grid-template-columns: 1fr; }
  .chip { min-height: 58px; }
  .ns-body h4 { font-size: 1.32rem; }
  .ns-nav { padding: 8px 10px; }
  .ns-btn { width: 44px; height: 44px; }
  .pg-wrap { width: calc(100% - 28px); }
}

/* ---------- 14. REDUCED MOTION / TRANSPARENCY ----------------- */
@media (prefers-reduced-motion: reduce) {
  body.dhg-proto::before { animation: none; }
  .pg-badge__dot { animation: none; }
  .pg-btn--primary:hover::after { transform: translateX(-120%); }
  .ns-slide.is-active { animation: none; }
  .pg-reveal { opacity: 1; transform: none; }
  .pg-nav, .pg-btn, .chip, .pcard, .pg-fact, .ns-btn, .ns-dot, .ns-more, .pg-fact::after, .pcard::after, .chip::after {
    transition-property: background-color, box-shadow, color, border-color, opacity !important;
  }
  .pg-btn:hover, .chip:hover, .pcard:hover, .pg-fact:hover,
  .ns-btn:hover, .ns-more:hover, .pg-nav__cta:hover { transform: none !important; }
  .pg-footer a:hover { padding-left: 0; }
}
@media (prefers-reduced-transparency: reduce) {
  .pg-nav, .pg-btn--ghost, .pcard, .news-slider, .chip, .pg-footer, .pg-fact,
  .chip-group, .ns-body, .ns-nav, .pg-badge {
    background: #fff !important;
    -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
    border-color: rgba(11,18,32,.10) !important;
  }
  .pcard::after, .chip::after, .pg-fact::after, .ns-img::before { display: none; }
}
/* fallback: เบราว์เซอร์ไม่มี backdrop-filter */
@supports not ((backdrop-filter: blur(2px)) or (-webkit-backdrop-filter: blur(2px))) {
  .pg-nav, .pcard, .news-slider, .chip, .pg-btn--ghost, .pg-footer, .chip-group,
  .ns-body, .ns-nav, .pg-fact, .pg-badge {
    background: rgba(255,255,255,.97) !important;
    border-color: #E6E8F0 !important;
  }
}

/* ---------- 15. ELEMENTOR BRIDGE ----------------------------- */
/* Elementor เขียน per-element CSS ด้วย selector #post-xx .elementor-element-xxxx
   (specificity สูงกว่า) จึงต้องใช้ !important เฉพาะ property ที่เราคุม */
body.dhg-proto .elementor-section.pg-hero { padding: 104px 0 40px !important; }
body.dhg-proto .elementor-section.pg-sec  { padding: var(--sec-y) 0 !important; }
body.dhg-proto .elementor-section.pg-contact { padding: 0 0 var(--sec-y) !important; }
body.dhg-proto .elementor-section.pg-navslot,
body.dhg-proto .elementor-section.pg-footslot { padding: 0 !important; margin: 0 !important; }
@media (max-width: 767px) {
  body.dhg-proto .elementor-section.pg-hero { padding: 88px 0 16px !important; }
  body.dhg-proto .elementor-section.pg-sec  { padding: 40px 0 !important; }
  body.dhg-proto .elementor-section.pg-contact { padding: 0 0 40px !important; }
}
body.dhg-proto .elementor-section { padding-left: 0; padding-right: 0; }
body.dhg-proto .elementor-section > .elementor-container { width: min(var(--maxw), calc(100% - 40px)); max-width: none; }
body.dhg-proto .pg-hero > .elementor-container { width: min(860px, calc(100% - 40px)); }
body.dhg-proto .pg-hero { padding: 104px 0 40px; text-align: center; }
body.dhg-proto .pg-navslot, body.dhg-proto .pg-footslot { padding: 0 !important; margin: 0; }
body.dhg-proto .pg-navslot > .elementor-container,
body.dhg-proto .pg-footslot > .elementor-container { width: 100%; max-width: none; }
body.dhg-proto .pg-footslot .elementor-widget-shortcode { margin-bottom: 0; }
body.dhg-proto .elementor-widget-container { min-height: 0; }
body.dhg-proto .elementor-widget:not(:last-child) { margin-bottom: 0; }
body.dhg-proto .elementor-heading-title { margin: 0; }
body.dhg-proto h1.elementor-heading-title,
body.dhg-proto h2.elementor-heading-title { font-family: Anuphan, sans-serif; }
body.dhg-proto .pg-kickw { margin: 0 0 4px; }
body.dhg-proto .pg-kickw p { margin: 0; }
body.dhg-proto .pg-h2w { margin: 0 0 18px; }
body.dhg-proto .pg-leadsecw { margin: 0 0 24px; }
body.dhg-proto .pg-hero .pg-leadw { margin: 14px 0 0; }
body.dhg-proto .pg-hero .elementor-widget-html { margin: 0; }
body.dhg-proto .pg-contact { margin-top: 20px; }
body.dhg-proto .pg-contact .elementor-column { display: flex; }
body.dhg-proto .pg-contact .elementor-column > .elementor-widget-wrap { width: 100%; }
body.dhg-proto .pg-contact .pcard { width: 100%; }
body.dhg-proto .pcard-h { margin: 0 0 8px !important; }
body.dhg-proto .pcard-h .elementor-heading-title { font: 700 20px/1.42 Anuphan, sans-serif; }
body.dhg-proto .pg-contact .elementor-widget-text-editor p { margin: 0; }
body.dhg-proto .pg-contact .elementor-widget-text-editor p + p { margin-top: 8px; }
body.dhg-proto .pg-links .chips-grid { margin-top: 0; }
body.dhg-proto .elementor-column-gap-default > .elementor-column > .elementor-element-populated { padding: 0; }
body.dhg-proto .elementor-column-gap-default { margin-left: 0; margin-right: 0; }
@media (max-width: 767px) {
  body.dhg-proto .pg-hero { padding: 92px 0 16px; }
  body.dhg-proto .elementor-section > .elementor-container,
  body.dhg-proto .pg-hero > .elementor-container { width: calc(100% - 28px); }
}

/* ---------- 16. full-bleed + section-level aurora -------------- */
body.dhg-proto .pg-navslot > .elementor-container,
body.dhg-proto .pg-footslot > .elementor-container { width: 100% !important; max-width: none !important; }
body.dhg-proto .pg-footer { width: 100%; margin-left: 0; margin-right: 0; }

/* แสงออโรราด้านหลัง carousel — ให้ "แก้ว" มีอะไรให้หักเห */
body.dhg-proto .pg-news { position: relative; }
body.dhg-proto .pg-news::before {
  content: ""; position: absolute; left: -2%; right: -2%; top: 18%; height: 66%;
  z-index: 0; pointer-events: none; filter: blur(48px);
  background:
    radial-gradient(38% 62% at 16% 42%, rgba(29,78,216,.26), transparent 72%),
    radial-gradient(36% 58% at 86% 54%, rgba(124,58,237,.24), transparent 72%),
    radial-gradient(32% 48% at 58% 10%, rgba(34,211,238,.20), transparent 76%);
}
body.dhg-proto .pg-news > .elementor-container { position: relative; z-index: 1; }

/* ซ่อน page-title ของ Astra บนหน้า Liquid Glass (แก้ H1 ซ้ำ — เหลือ H1 เดียวคือ hero) */
body.dhg-proto .entry-title,
body.dhg-proto .page-title { display: none; }


/* ============================================================
   17. R3 FINAL VISUAL POLISH (2026-10-26)
   ไม่รื้อโครง — ปรับเฉพาะความลึกกระจก / ออโรรา / ระยะห่าง / footer
   ============================================================ */

/* ---- 17.1 AURORA ช่วงกลาง–ล่าง: เติมแสงแทนที่พื้นขาวโล่ง ---- */
/* ระบบรายงาน/เอกสาร — ให้ mid-page มีสี (cyan + blue นวล ๆ) */
.pg-links::before {
  content: ""; position: absolute; left: 0; right: 0; top: -12%; height: 124%;
  z-index: 0; pointer-events: none; filter: blur(60px);
  background:
    radial-gradient(34% 46% at 78% 26%, rgba(34,211,238,.20), transparent 74%),
    radial-gradient(30% 44% at 20% 62%, rgba(29,78,216,.16), transparent 76%),
    radial-gradient(26% 40% at 56% 92%, rgba(124,58,237,.14), transparent 78%);
}
.pg-links > * { position: relative; z-index: 1; }

/* ติดต่อ — เดิมจางไป เสริม violet/cyan ให้การ์ดมีอะไรให้หักเห */
.pg-contact::before {
  background:
    radial-gradient(32% 52% at 16% 26%, rgba(29,78,216,.26), transparent 74%),
    radial-gradient(32% 52% at 84% 58%, rgba(124,58,237,.24), transparent 74%),
    radial-gradient(28% 44% at 50% 96%, rgba(34,211,238,.18), transparent 76%);
}

/* ---- 17.2 กระจกลึก: ชั้นหักเห + rim หักเหสี บนการ์ดหลัก ---- */
/* การ์ดติดต่อ */
.pcard {
  background:
    var(--dhg-glass-card),
    var(--dhg-tint-blue),
    var(--dhg-tint-violet);
  -webkit-backdrop-filter: blur(26px) saturate(185%);
  backdrop-filter: blur(26px) saturate(185%);
  box-shadow: var(--dhg-shadow-2), var(--dhg-inner-glass);
}
.pcard::before { background: var(--dhg-rim-refract); }   /* ขอบหักเหฟ้า→ม่วง */
/* ขอบล่างสะท้อนแสง (refraction line) */
.pcard::after {
  background:
    radial-gradient(320px 320px at var(--mx,22%) var(--my,-6%), rgba(255,255,255,.68), rgba(255,255,255,0) 62%),
    linear-gradient(180deg, rgba(255,255,255,0) 78%, rgba(147,197,253,.30) 100%),
    var(--dhg-sheen);
}

/* คาร์ดข่าว (slider) — ชั้นเดียวกัน */
.news-slider {
  background:
    var(--dhg-glass-card),
    var(--dhg-tint-violet),
    var(--dhg-tint-cyan);
  -webkit-backdrop-filter: blur(30px) saturate(185%);
  backdrop-filter: blur(30px) saturate(185%);
}
.news-slider::before { background: var(--dhg-rim-refract); }

/* ตัวเลขสถิติ — กระจกบาง ๆ ให้ aurora 透过 ชัดขึ้น */
.pg-fact {
  background:
    linear-gradient(135deg, rgba(255,255,255,.56), rgba(255,255,255,.34)),
    var(--dhg-tint-blue);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  backdrop-filter: blur(18px) saturate(180%);
}
.pg-fact:nth-child(2) { background: linear-gradient(135deg, rgba(255,255,255,.56), rgba(255,255,255,.34)), var(--dhg-tint-violet); }
.pg-fact:nth-child(3) { background: linear-gradient(135deg, rgba(255,255,255,.56), rgba(255,255,255,.34)), var(--dhg-tint-cyan); }
.pg-fact:nth-child(4) { background: linear-gradient(135deg, rgba(255,255,255,.56), rgba(255,255,255,.34)), var(--dhg-tint-blue); }
.pg-fact::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  border-radius: inherit; padding: 1px;
  background: var(--dhg-rim-refract);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}

/* ---- 17.3 SPACING: ติดต่อ ให้สมดุลกับ section อื่น (มี top เท่ากัน) ---- */
body.dhg-proto .elementor-section.pg-contact { padding: var(--sec-y) 0 !important; }
body.dhg-proto .pg-contact { margin-top: 0; }
@media (max-width: 767px) {
  body.dhg-proto .elementor-section.pg-contact { padding: 40px 0 !important; }
}

/* ---- 17.4 FOOTER พรีเมียม = กระจกชุดเดียวกับ navbar + underglow ---- */
.pg-footer {
  background:
    linear-gradient(180deg, rgba(255,255,255,.68), rgba(255,255,255,.46)),
    var(--dhg-tint-violet),
    var(--dhg-tint-blue);
  -webkit-backdrop-filter: blur(28px) saturate(185%);
  backdrop-filter: blur(28px) saturate(185%);
  box-shadow:
    var(--dhg-spec-top),
    0 -1px 0 rgba(255,255,255,.95),
    0 -26px 56px -32px rgba(29,78,216,.46),
    inset 0 -50px 70px -56px rgba(124,58,237,.34);
}
/* ขอบกระจกหักเหรอบบน (โค้งมุมซ้าย-ขวา ด้วย) */
.pg-footer::before {
  height: 2px;
  background: var(--dhg-rim-refract);
}
/* underglow: แสงออโรราระเรื่อใต้ footer ให้จบท้ายหน้าไม่หั่น abrupt */
.pg-footer::after {
  content: ""; position: absolute; left: 8%; right: 8%; bottom: -18px; height: 90px;
  z-index: -1; pointer-events: none; filter: blur(46px);
  background:
    radial-gradient(50% 100% at 30% 40%, rgba(29,78,216,.28), transparent 72%),
    radial-gradient(50% 100% at 74% 60%, rgba(124,58,237,.24), transparent 74%);
}
.pg-footer__base {
  border-top-color: rgba(11,18,32,.07);
  background: linear-gradient(180deg, rgba(255,255,255,.30), rgba(255,255,255,0));
}

/* ---- 17.5 TABLET: stats 4 ช่องไม่แน่น + กัน overflow ---- */
@media (max-width: 860px) and (min-width: 768px) {
  .pg-facts { grid-template-columns: 1fr 1fr; gap: 12px; }
  .pg-hero::before { width: 100%; }
}


/* ---- 17.6 HERO H1 ตัวจริง (Elementor heading) — ใหญ่ + มีมิติ ---- */
body.dhg-proto .pg-hero h1.elementor-heading-title {
  font: 700 clamp(2.4rem, 1.15rem + 4.25vw, 4.55rem)/1.07 Anuphan, sans-serif;
  letter-spacing: -.026em; color: var(--dhg-ink);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  text-shadow: 0 1px 0 rgba(255,255,255,.72), 0 18px 44px rgba(29,78,216,.16);
  margin: 0;
}
/* บรรทัดที่ 2 ให้เป็น gradient (ถ้า element แยก span) — กันพลาดถ้าไม่มี */
body.dhg-proto .pg-hero h1.elementor-heading-title .grad,
body.dhg-proto .pg-hero h1.elementor-heading-title span:last-child {
  background: var(--dhg-grad-text);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  text-shadow: none;
}
@media (max-width: 767px) {
  body.dhg-proto .pg-hero h1.elementor-heading-title {
    font-size: clamp(2.1rem, 1.2rem + 5.2vw, 2.9rem); line-height: 1.1;
  }
}


/* ============================================================
   PHASE2 WAVE3 — news/project archive + single (Liquid Glass R3)
   ใช้ token/nav/footer เดิมทั้งหมด · สร้างใหม่เฉพาะ .p2-*
   งบ backdrop-filter: nav(1) + footer(1) + prose(1) = 3 ชั้น/วิวพอร์ต
   การ์ดกริด = tint + rim ไม่ blur (กันเกินงบ 6 ชั้น)
   ============================================================ */

/* ---- 18.0 shell: ซ่อนหัวเรื่อง archive ของ Astra + เว้นให้ navbar fixed ---- */
body.dhg-proto .ast-archive-description,
body.dhg-proto .ast-archive-title,
body.dhg-proto .ast-term-description { display: none !important; }

.p2-arc,
.p2-single { position: relative; padding-top: 116px; }
@media (max-width: 1023px) { .p2-arc, .p2-single { padding-top: 108px; } }
@media (max-width: 767px)  { .p2-arc, .p2-single { padding-top: 96px; } }

/* ออโรราหลังเนื้อหา — inset 0 (ไม่ดัน overflow) */
.p2-arc::before,
.p2-single::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  filter: blur(52px);
  background:
    radial-gradient(42% 30% at 12% 4%,  rgba(29,78,216,.22),  transparent 72%),
    radial-gradient(38% 28% at 88% 22%, rgba(124,58,237,.20), transparent 74%),
    radial-gradient(40% 30% at 62% 88%, rgba(34,211,238,.18), transparent 76%);
}
.p2-arc > *,
.p2-single > * { position: relative; z-index: 1; }

/* ---- 18.1 head / kicker / lead ---------------------------------- */
.p2-head { max-width: 760px; margin: 0 0 var(--s6); }
.p2-h1 {
  font: 700 clamp(1.9rem, 1.2rem + 2.5vw, 3rem)/1.14 Anuphan, sans-serif;
  letter-spacing: -.022em;
}
.p2-lead {
  margin: 12px 0 0; max-width: 62ch;
  font: 400 16.5px/1.72 Anuphan, sans-serif; color: var(--dhg-ink-2);
}

/* ---- 18.2 grid 3 / 2 / 1 --------------------------------------- */
.p2-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 1023px) { .p2-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; } }
@media (max-width: 767px)  { .p2-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; } }

/* ---- 18.3 การ์ด (tint + rim, ไม่ใช้ blur) ---------------------- */
.p2-card {
  display: flex; flex-direction: column;
  padding: 0; border-radius: var(--r-card); overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255,255,255,.86), rgba(255,255,255,.68)),
    var(--dhg-tint-blue);
  -webkit-backdrop-filter: none; backdrop-filter: none;
  border: 1px solid rgba(255,255,255,.88);
  box-shadow: var(--dhg-shadow-2), var(--dhg-spec-top);
}
.p2-card::before { background: var(--dhg-rim-refract); }
.p2-card::after {
  background:
    linear-gradient(180deg, rgba(255,255,255,0) 76%, rgba(147,197,253,.26) 100%),
    var(--dhg-sheen);
  opacity: .5;
}
.p2-card:hover { transform: translateY(-4px); box-shadow: var(--dhg-shadow-3), var(--dhg-inner-glass); }
.p2-card:hover::after { opacity: .8; }

.p2-card__media {
  position: relative; z-index: 2;
  display: block; width: 100%; aspect-ratio: 3 / 2;
  overflow: hidden; background: rgba(255,255,255,.5);
}
.p2-card__img { display: block; width: 100%; height: 100%; object-fit: cover; }
.p2-card__ph { background: linear-gradient(135deg, #9ec9ff, #c9bcff 55%, #a8f3e0); }

.p2-card__body {
  position: relative; z-index: 4;
  display: flex; flex-direction: column; gap: 10px;
  padding: 18px 20px 20px; flex: 1 1 auto;
}
.p2-card--proj .p2-card__body { padding: 24px 24px 22px; gap: 12px; min-height: 196px; }

/* ---- 18.4 chip / date / title / excerpt / link ----------------- */
.p2-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; }

.p2-chip {
  display: inline-flex; align-items: center; min-height: 26px; padding: 4px 11px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(255,255,255,.80));
  border: 1px solid rgba(255,255,255,.95);
  box-shadow: 0 1px 2px rgba(15,32,64,.07), var(--dhg-spec-top);
  font: 700 12px/1.4 Anuphan, sans-serif; color: var(--dhg-violet-deep); letter-spacing: .01em;
}

.p2-date {
  font: 600 13px/1.5 Anuphan, sans-serif; color: var(--dhg-ink-3);
  font-variant-numeric: tabular-nums;
}

.p2-card__t {
  margin: 0;
  font: 700 19px/1.42 Anuphan, sans-serif; color: var(--dhg-ink);
  letter-spacing: -.012em; text-wrap: balance;
}
.p2-card__link { color: inherit; text-decoration: none; transition: color var(--dur-fast) ease; }
.p2-card:hover .p2-card__link { color: var(--dhg-blue); }

.p2-card__ex {
  margin: 0;
  font: 400 15px/1.68 Anuphan, sans-serif; color: var(--dhg-ink-3);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

.p2-more {
  margin-top: auto; align-self: flex-start;
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 40px; padding: 6px 0 2px;
  font: 600 14px/1.2 Anuphan, sans-serif; color: var(--dhg-blue);
  text-decoration: none;
}
.p2-more span { display: inline-block; transition: transform var(--dur-fast) var(--ease-out); }
.p2-more:hover { color: var(--dhg-blue-vivid); }
.p2-more:hover span { transform: translateX(3px); }

/* ---- 18.5 โครงการ: pill / progress / range --------------------- */
.p2-pill {
  display: inline-flex; align-items: center; min-height: 26px; padding: 4px 11px;
  border-radius: 999px;
  font: 700 12px/1.4 Anuphan, sans-serif; letter-spacing: .01em;
  white-space: nowrap;
}
.p2-pill.run  { background: rgba(29,78,216,.12);   color: #1E40AF; border: 1px solid rgba(29,78,216,.24); }
.p2-pill.done { background: rgba(16,185,129,.14);  color: #065F46; border: 1px solid rgba(16,185,129,.28); }
.p2-pill.plan { background: rgba(124,58,237,.12);  color: #5B21B6; border: 1px solid rgba(124,58,237,.26); }

.p2-pct {
  font: 700 13.5px/1 Anuphan, sans-serif; color: var(--dhg-ink-2);
  font-variant-numeric: tabular-nums;
}

.p2-prog { display: flex; align-items: center; gap: 10px; }
.p2-prog__bar {
  position: relative; display: block; flex: 1 1 auto; height: 8px; border-radius: 999px;
  background: rgba(11,18,32,.09);
  box-shadow: inset 0 1px 2px rgba(11,18,32,.12);
  overflow: hidden;
}
.p2-prog__fill {
  display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--dhg-aur-blue), var(--dhg-aur-violet));
  box-shadow: 0 0 10px -2px rgba(29,78,216,.65);
  transition: width var(--dur-mid) var(--ease-out);
}

.p2-range { margin: 0; font: 600 13px/1.6 Anuphan, sans-serif; color: var(--dhg-ink-3); }

/* ---- 18.6 pagination ------------------------------------------- */
.p2-pager { margin: 32px 0 0; }
.p2-pager .nav-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; }
.p2-pager .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px; padding: 0 14px;
  border-radius: 999px; text-decoration: none;
  background: linear-gradient(180deg, rgba(255,255,255,.90), rgba(255,255,255,.74));
  border: 1px solid rgba(255,255,255,.95);
  box-shadow: 0 2px 6px rgba(15,32,64,.07), var(--dhg-spec-top);
  font: 600 14.5px/1 Anuphan, sans-serif; color: var(--dhg-blue);
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) ease;
}
.p2-pager .page-numbers:hover { transform: translateY(-2px); box-shadow: var(--dhg-shadow-1), var(--dhg-spec-top); }
.p2-pager .page-numbers.current {
  background: linear-gradient(180deg, #1D4ED8, #1E40AF); color: #fff;
  border-color: transparent; box-shadow: var(--dhg-shadow-cta);
}
.p2-pager .page-numbers.dots { background: none; border-color: transparent; box-shadow: none; color: var(--dhg-ink-3); }
.p2-pager .screen-reader-text {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---- 18.7 empty state ------------------------------------------ */
.p2-empty {
  margin: 0; padding: 26px 24px; border-radius: var(--r-card);
  background: linear-gradient(135deg, rgba(255,255,255,.82), rgba(255,255,255,.64));
  border: 1px solid rgba(255,255,255,.90);
  box-shadow: var(--dhg-spec-top);
  font: 400 16px/1.7 Anuphan, sans-serif; color: var(--dhg-ink-3);
}

/* ---- 18.8 single: ปุ่มกลับ / หัวเรื่อง / รูปเด่น ---------------- */
.p2-back {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 10px 18px; border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,.86), rgba(255,255,255,.70));
  border: 1px solid rgba(255,255,255,.95);
  -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%);
  box-shadow: 0 2px 6px rgba(15,32,64,.06), var(--dhg-spec-top);
  font: 600 14px/1 Anuphan, sans-serif; color: var(--dhg-blue); text-decoration: none;
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) ease;
}
.p2-back:hover { transform: translateY(-2px); box-shadow: var(--dhg-shadow-1), var(--dhg-spec-top); color: var(--dhg-blue-vivid); }
.p2-back-wrap { margin: 28px 0 0; }

.p2-art { margin: 20px 0 0; }
.p2-art__head { max-width: 880px; }
.p2-art__h1 {
  margin: 10px 0 0;
  font: 700 clamp(1.7rem, 1.1rem + 2.3vw, 2.6rem)/1.22 Anuphan, sans-serif;
  letter-spacing: -.022em; color: var(--dhg-ink); text-wrap: balance;
}

.p2-art__media {
  margin: 22px 0 0; width: 100%; max-width: 100%;
  aspect-ratio: 16 / 9; max-height: 440px;
  border-radius: var(--r-card); overflow: hidden;
  border: 1px solid rgba(255,255,255,.82);
  box-shadow: var(--dhg-shadow-2), var(--dhg-spec-top);
}
.p2-art__img { display: block; width: 100%; height: 100%; object-fit: cover; }
.p2-art__media--ph { background: linear-gradient(135deg, #9ec9ff, #c9bcff 55%, #a8f3e0); }

/* ---- 18.9 single: panel + prose (อ่านง่าย ~70ch) ---------------- */
.p2-panel {
  margin: 22px 0 0; width: min(100%, 620px); padding: 22px 24px;
  border-radius: var(--r-card);
  background: linear-gradient(135deg, rgba(255,255,255,.88), rgba(255,255,255,.72));
  border: 1px solid rgba(255,255,255,.88);
  box-shadow: var(--dhg-spec-top), 0 14px 30px -26px rgba(29,78,216,.55);
}
.p2-info { margin: 0; display: grid; gap: 12px; }
.p2-info__row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.p2-info__row dt { font: 600 13.5px/1.5 Anuphan, sans-serif; color: var(--dhg-ink-3); min-width: 96px; }
.p2-info__row dd { margin: 0; display: flex; align-items: center; gap: 10px; flex: 1 1 160px; min-width: 0; }
.p2-info__row dd .p2-prog { flex: 1 1 auto; min-width: 90px; }

.p2-prose {
  margin: 24px 0 0; width: min(100%, 840px); padding: 32px 34px;
  border-radius: var(--r-card);
  background:
    linear-gradient(135deg, rgba(255,255,255,.90), rgba(255,255,255,.76)),
    var(--dhg-tint-blue);
  -webkit-backdrop-filter: blur(26px) saturate(180%); backdrop-filter: blur(26px) saturate(180%);
  border: 1px solid rgba(255,255,255,.88);
  box-shadow: var(--dhg-shadow-2), var(--dhg-inner-glass);
  font: 400 16.5px/1.78 Anuphan, sans-serif; color: var(--dhg-ink-2);
  overflow-wrap: break-word; word-break: normal;
}
.p2-prose > * { max-width: 70ch; }
.p2-prose > * + * { margin-top: 1em; }
.p2-prose p { margin: 0; font: inherit; }
.p2-prose p + p { margin-top: 1em; }
.p2-prose h2 { font: 700 23px/1.4 Anuphan, sans-serif; color: var(--dhg-ink); letter-spacing: -.014em; margin: 1.5em 0 0; }
.p2-prose h3 { font: 700 19px/1.45 Anuphan, sans-serif; color: var(--dhg-ink); margin: 1.3em 0 0; }
.p2-prose ul, .p2-prose ol { padding-left: 1.4em; margin: 1em 0 0; }
.p2-prose li { margin: .35em 0; }
.p2-prose a { color: var(--dhg-blue); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
.p2-prose a:hover { color: var(--dhg-blue-vivid); }
.p2-prose strong { color: var(--dhg-ink); }
.p2-prose img, .p2-prose video, .p2-prose iframe, .p2-prose embed, .p2-prose table {
  max-width: 100% !important; height: auto; border-radius: var(--r-tile);
}
.p2-prose iframe, .p2-prose embed { width: 100%; }
.p2-prose table { display: block; overflow-x: auto; border-collapse: collapse; }
.p2-prose blockquote {
  margin: 1.2em 0 0; padding: 4px 0 4px 18px;
  border-left: 3px solid rgba(29,78,216,.35);
  font: 500 16.5px/1.75 Anuphan, sans-serif; color: var(--dhg-ink-3);
}
.p2-prose figure { margin: 1.2em 0 0; }
.p2-prose figcaption { margin-top: 8px; font: 400 13.5px/1.6 Anuphan, sans-serif; color: var(--dhg-ink-4); }

/* ---- 18.10 related list ---------------------------------------- */
.p2-rel { margin: 34px 0 0; width: min(100%, 840px); }
.p2-rel__t { margin: 0 0 12px; font: 700 16px/1.4 Anuphan, sans-serif; color: var(--dhg-ink); letter-spacing: .01em; }
.p2-rel__list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.p2-rel__item {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px;
  padding: 12px 16px; min-height: 52px;
  border-radius: var(--r-panel);
  background: linear-gradient(135deg, rgba(255,255,255,.84), rgba(255,255,255,.68));
  border: 1px solid rgba(255,255,255,.90);
  box-shadow: var(--dhg-spec-top), 0 8px 20px -20px rgba(29,78,216,.55);
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) ease;
}
.p2-rel__item:hover { transform: translateY(-2px); box-shadow: var(--dhg-shadow-1), var(--dhg-spec-top); }
.p2-rel__date { font: 600 12.5px/1.5 Anuphan, sans-serif; color: var(--dhg-ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.p2-rel__link { flex: 1 1 200px; min-width: 0; font: 600 15px/1.5 Anuphan, sans-serif; color: var(--dhg-ink); text-decoration: none; }
.p2-rel__link:hover { color: var(--dhg-blue); }

/* ---- 18.11 มือถือ ------------------------------------------------- */
@media (max-width: 767px) {
  .p2-head { margin-bottom: var(--s5); }
  .p2-lead { font-size: 15.5px; line-height: 1.68; }
  .p2-card__body { padding: 16px 16px 18px; }
  .p2-card--proj .p2-card__body { padding: 20px 18px 18px; min-height: 0; }
  .p2-card__t { font-size: 18px; }
  .p2-art__h1 { font-size: clamp(1.5rem, 1.1rem + 2.4vw, 1.95rem); }
  .p2-art__media { aspect-ratio: 3 / 2; max-height: none; margin-top: 18px; }
  .p2-prose { padding: 20px 18px; font-size: 16px; line-height: 1.78; }
  .p2-prose > * { max-width: 100%; }
  .p2-panel { padding: 18px 18px; }
  .p2-info__row dt { min-width: 0; width: 100%; }
  .p2-rel__item { padding: 12px 14px; }
  .p2-back { width: 100%; justify-content: center; }
  .p2-back-wrap { margin-top: 22px; }
}
@media (max-width: 400px) {
  .p2-card__body { padding: 14px 14px 16px; }
  .p2-card--proj .p2-card__body { padding: 18px 15px 16px; }
  .p2-prose { padding: 18px 15px; }
  .p2-chip, .p2-pill { font-size: 11.5px; padding: 3px 10px; }
  .p2-rel__item { gap: 6px 10px; }
}

/* ---- 18.12 reduced motion / transparency / no-backdrop fallback -- */
@media (prefers-reduced-motion: reduce) {
  .p2-card, .p2-back, .p2-more span, .p2-rel__item, .p2-pager .page-numbers, .p2-prog__fill {
    transition-property: background-color, box-shadow, color, border-color, opacity !important;
  }
  .p2-card:hover, .p2-back:hover, .p2-rel__item:hover, .p2-pager .page-numbers:hover { transform: none !important; }
  .p2-more:hover span { transform: none !important; }
}
@media (prefers-reduced-transparency: reduce) {
  .p2-card, .p2-back, .p2-prose, .p2-panel, .p2-rel__item, .p2-pager .page-numbers, .p2-empty {
    background: #fff !important;
    -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
    border-color: rgba(11,18,32,.10) !important;
  }
  .p2-card::after { display: none; }
}
@supports not ((backdrop-filter: blur(2px)) or (-webkit-backdrop-filter: blur(2px))) {
  .p2-back, .p2-prose {
    background: rgba(255,255,255,.97) !important;
    border-color: #E6E8F0 !important;
  }
}


/* ===== PHASE2 BUGFIX (orchestrator QA): Astra .ast-container เป็น flex แถวเดียว
   → template ที่ส่ง <main> + footer เป็นลูก 2 ตัว โดนแบ่งเป็น 2 คอลัมน์
   (footer ถูกอัดเป็น sidebar ขวา 361px) — หน้าแรกมีลูกเดียวจึงไม่โดน
   แก้ให้เป็น block บนหน้า R3 ทุกหน้า (หน้าแรกมีลูกคนเดียว → ไม่กระทบ) ===== */
body.dhg-proto .site-content > .ast-container,
body.dhg-proto .ast-container {
  display: block !important;
}
body.dhg-proto .ast-container > .content-area,
body.dhg-proto .ast-container > #pg-main {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}


/* ---- 19.0 หน้า term หมวดข่าว (PHASE3) ---- */
.p2-arc--term .p2-head { margin-bottom: 18px; }
.p2-arc--term .p2-empty { margin-bottom: 8px; }
.p2-arc--term .p2-back-wrap { margin-top: 28px; }
body.tax-dhg_news_cat .ast-container { display: block; } /* กัน flex แถวเดียวของ Astra */
@media (max-width: 600px) { .p2-arc--term .p2-head { margin-bottom: 14px; } }

/* ---- 20.0 แถว pill หมวดข่าว (PHASE3) ----------------------------- */
.p2-catbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin: 0 0 22px;
}
.p2-catbar__pill {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 40px; padding: 8px 16px; border-radius: 999px;
  font: 600 14px/1.2 Anuphan, sans-serif; color: var(--dhg-blue);
  text-decoration: none;
  background: linear-gradient(180deg, rgba(255,255,255,.88), rgba(255,255,255,.70));
  border: 1px solid rgba(255,255,255,.95);
  box-shadow: 0 2px 6px rgba(15,32,64,.06), var(--dhg-spec-top);
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) ease;
}
.p2-catbar__pill:hover { transform: translateY(-2px); box-shadow: var(--dhg-shadow-1), var(--dhg-spec-top); }
.p2-catbar__pill.is-active {
  background: linear-gradient(180deg, #1D4ED8, #1E40AF);
  color: #fff; border-color: transparent; box-shadow: var(--dhg-shadow-cta);
}
.p2-catbar__pill:focus-visible { outline: 3px solid rgba(29,78,216,.45); outline-offset: 2px; }
.p2-catbar__n { margin-left: 6px; font-variant-numeric: tabular-nums; opacity: .75; }

@media (max-width: 600px) {
  .p2-catbar { gap: 6px; margin-bottom: 16px; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 4px; }
  .p2-catbar__pill { min-height: 38px; padding: 7px 13px; font-size: 13px; flex: 0 0 auto; }
}
@media (prefers-reduced-motion: reduce) { .p2-catbar__pill { transition: none; } }

/* ---- 21.0 หน้าค้นหา (PHASE3) ------------------------------------- */
.p2-arc--search .p2-head { margin-bottom: 18px; }
.p2-arc--search .p2-q { font-weight: 700; color: var(--dhg-ink-1); }
.p2-arc--search .p2-searchform { margin: 0 0 22px; max-width: 560px; }
.p2-arc--search .p2-searchform input[type="search"] {
  width: 100%; min-height: 48px; padding: 12px 16px; border-radius: 14px;
  font: 400 16px/1.4 Anuphan, sans-serif; color: var(--dhg-ink-1);
  background: rgba(255,255,255,.88); border: 1px solid rgba(255,255,255,.95);
  box-shadow: inset 0 1px 2px rgba(15,32,64,.05), var(--dhg-spec-top);
}
.p2-arc--search .p2-searchform input[type="submit"] { display: none; } /* ใช้ปุ่มในธีม/Enter */
.p2-arc--search .p2-searchform .search-field:focus-visible { outline: 3px solid rgba(29,78,216,.45); outline-offset: 2px; }
.p2-arc--search .p2-searchform label { position: relative; display: block; margin: 0; }
.p2-arc--search .p2-searchform input[type="search"] { padding-right: 60px; }
.p2-arc--search .p2-searchform .ast-search-submit {
  position: absolute; top: 50%; right: 6px; transform: translateY(-50%);
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; margin: 0; padding: 0; border: 0; border-radius: 12px;
  background: linear-gradient(180deg, #1D4ED8, #1E40AF); color: #fff; cursor: pointer;
  box-shadow: 0 2px 8px rgba(29,78,216,.28);
}
.p2-arc--search .p2-searchform .ast-search-submit svg { width: 18px; height: 18px; fill: #fff; }
.p2-arc--search .p2-searchform .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
/* empty state (2 กรณี: ไม่พบผลลัพธ์ / ยังไม่ได้ระบุคำค้น) */
.p2-arc--search .p2-empty { margin: 0; }
.p2-arc--search .p2-empty__msg { margin: 0; }
.p2-arc--search .p2-empty .p2-searchform { margin: 18px 0 0; }
.p2-arc--search .p2-empty__links { margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.p2-arc--search .p2-empty__links .p2-more { margin: 0; }
body.search .ast-container { display: block; } /* กัน flex แถวเดียวของ Astra */
@media (max-width: 600px) {
  .p2-arc--search .p2-head { margin-bottom: 14px; }
  .p2-arc--search .p2-searchform { margin-bottom: 18px; }
}
@media (prefers-reduced-motion: reduce) { .p2-arc--search .p2-q { transition: none; } }

/* ============================================================
 * 22. PRE-LAUNCH A4 — หน้า 404 (Liquid Glass R3)
 * ============================================================ */

.p2-404 .p2-head { margin-bottom: 18px; }
.p2-404__head .p2-h1 { margin-top: 6px; }
.p2-404__search { margin: 0 0 22px; max-width: 560px; }
.p2-404__search input[type="search"] {
	width: 100%; min-height: 48px; padding: 12px 16px; border-radius: 14px;
	font: 400 16px/1.4 Anuphan, sans-serif; color: var(--dhg-ink-1);
	background: rgba(255, 255, 255, .88); border: 1px solid rgba(255, 255, 255, .95);
	box-shadow: inset 0 1px 2px rgba(15, 32, 64, .05), var(--dhg-spec-top, none);
}
.p2-404__search input[type="submit"],
.p2-404__search .search-submit { display: none; } /* ใช้ Enter หรือปุ่มในธีม */
.p2-404__card { text-decoration: none; display: block; }
.p2-404__card:hover .p2-more { color: var(--dhg-blue); }
.p2-404__card .p2-more { margin-top: 10px; display: inline-block; }

/* Astra .ast-container เป็น flex แถวเดียว — กันหน้า 404 ถูกแบ่ง 2 คอลัมน์ */
body.dhg-proto .ast-container { display: block !important; }

@media (max-width: 600px) {
	.p2-404 .p2-head { margin-bottom: 14px; }
	.p2-404__search { margin-bottom: 16px; }
}

/* ============================================================
 * 23. MOCKUP BUILD — การ์ดทางลัด + Dashboard CTAM+/Smart Hospital + เอกสารล่าสุด
 * ============================================================ */

/* ---- การ์ดทางลัด 5 ใบ ---- */
.mk-cards { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin: 6px 0 26px; }
.mk-card {
	display: flex; flex-direction: column; gap: 6px; text-decoration: none; padding: 18px 16px;
	border-radius: 20px; background: rgba(255, 255, 255, .86); border: 1px solid rgba(255, 255, 255, .95);
	box-shadow: inset 0 1px 2px rgba(15, 32, 64, .05), 0 10px 26px rgba(15, 32, 64, .07);
	transition: transform .18s ease, box-shadow .18s ease;
}
.mk-card:hover { transform: translateY(-3px); box-shadow: inset 0 1px 2px rgba(15, 32, 64, .05), 0 16px 34px rgba(15, 32, 64, .12); }
.mk-card__ico { display: inline-flex; width: 40px; height: 40px; border-radius: 13px; align-items: center; justify-content: center;
	background: linear-gradient(150deg, rgba(37, 99, 235, .14), rgba(14, 165, 233, .12)); color: var(--dhg-blue, #2563eb); }
.mk-card__ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.mk-card__t { font-weight: 700; font-size: 16px; color: var(--dhg-ink-1, #0f2040); line-height: 1.3; }
.mk-card__s { font-size: 13.5px; color: var(--dhg-ink-2, #3a4a6b); line-height: 1.45; }
.mk-card__d { font-size: 12px; color: rgba(58, 74, 107, .75); }

/* ---- Dashboard 2 ใบ ---- */
.mk-dash-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0 0 26px; }
.mk-dash {
	display: flex; flex-direction: column; padding: 20px 20px 16px; border-radius: 22px;
	background: rgba(255, 255, 255, .88); border: 1px solid rgba(255, 255, 255, .95);
	box-shadow: inset 0 1px 2px rgba(15, 32, 64, .05), 0 10px 26px rgba(15, 32, 64, .07);
}
.mk-dash__hd { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.mk-dash__ico { display: inline-flex; width: 38px; height: 38px; flex: 0 0 38px; border-radius: 12px; align-items: center; justify-content: center;
	background: linear-gradient(150deg, rgba(16, 185, 129, .16), rgba(52, 211, 153, .12)); color: #0f9d6b; }
.mk-dash__ico--sh { background: linear-gradient(150deg, rgba(245, 158, 11, .18), rgba(251, 191, 36, .12)); color: #b45309; }
.mk-dash__ico svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.mk-dash__t { font-size: 17px; font-weight: 700; color: var(--dhg-ink-1, #0f2040); margin: 0; }
.mk-dash__s { font-size: 13px; color: rgba(58, 74, 107, .8); margin: 2px 0 0; }
.mk-dash__body { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; flex: 1; }
.mk-dash__donut {
	width: 128px; height: 128px; flex: 0 0 128px; border-radius: 50%; display: grid; place-items: center; position: relative;
	background: conic-gradient(#10b981 calc(var(--p) * 1%), #ef4444 0 calc((var(--p) + var(--r)) * 1%), rgba(148, 163, 184, .35) 0 100%);
}
.mk-dash__donut::after { content: ''; position: absolute; inset: 15px; border-radius: 50%; background: rgba(255, 255, 255, .96); }
.mk-dash__donut-mid { position: relative; z-index: 1; display: grid; place-items: center; line-height: 1.1; }
.mk-dash__donut-mid b { font-size: 22px; color: var(--dhg-ink-1, #0f2040); }
.mk-dash__donut-mid i { font-style: normal; font-size: 11.5px; color: rgba(58, 74, 107, .8); }
.mk-dash__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; flex: 1; min-width: 160px; }
.mk-dash__list li { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--dhg-ink-2, #3a4a6b); }
.mk-dash__list li::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: #94a3b8; flex: 0 0 9px; }
.mk-dash__list li.is-pass::before { background: #10b981; }
.mk-dash__list li.is-fail::before { background: #ef4444; }
.mk-dash__list li.is-miss::before { background: #f59e0b; }
.mk-dash__list li.is-wait::before { background: #cbd5e1; }
.mk-dash__list li.is-sum { margin-top: 4px; padding-top: 8px; border-top: 1px dashed rgba(148, 163, 184, .5); }
.mk-dash__list li.is-sum::before { background: var(--dhg-blue, #2563eb); }
.mk-dash__note { font-size: 13px; color: rgba(58, 74, 107, .85); margin: 4px 0; }
.mk-dash__stat { display: grid; gap: 2px; margin: 0; padding: 14px 16px; border-radius: 16px; background: rgba(148, 163, 184, .12); }
.mk-dash__stat span { font-size: 12.5px; color: rgba(58, 74, 107, .8); }
.mk-dash__stat b { font-size: 22px; }
.mk-dash__stat.is-pass { background: rgba(16, 185, 129, .12); }
.mk-dash__stat.is-pass b { color: #0f9d6b; }
.mk-dash__stat.is-fail { background: rgba(239, 68, 68, .12); }
.mk-dash__stat.is-fail b { color: #dc2626; }
.mk-dash__stat--diamond { background: rgba(56, 189, 248, .14); }
.mk-dash__stat--diamond b { color: #0284c7; }
.mk-dash__stat--gold { background: rgba(245, 158, 11, .16); }
.mk-dash__stat--gold b { color: #b45309; }
.mk-dash__stat--silver { background: rgba(148, 163, 184, .18); }
.mk-dash__stat--silver b { color: #475569; }
.mk-dash__ft { margin-top: 12px; text-align: right; }
.mk-more { font-size: 13.5px; font-weight: 600; color: var(--dhg-blue, #2563eb); text-decoration: none; }
.mk-more:hover { text-decoration: underline; }
.mk-wait { font-size: 13.5px; color: rgba(58, 74, 107, .85); background: rgba(148, 163, 184, .16); padding: 10px 14px; border-radius: 12px; margin: 0; }

.mk-dash__donut--empty { background: conic-gradient(rgba(148, 163, 184, .3) 0 100%); }
.mk-dash__donut--empty .mk-dash__donut-mid b { color: #94a3b8; }
.mk-dash__side { flex: 1; min-width: 160px; display: grid; gap: 6px; align-content: center; }

/* ---- Smart Hospital ระดับ ---- */
.mk-sh { display: grid; gap: 9px; flex: 1; min-width: 170px; }
.mk-sh__row { display: flex; align-items: center; gap: 10px; padding: 9px 13px; border-radius: 13px; background: rgba(148, 163, 184, .12); }
.mk-sh__row--sh-gold { background: rgba(245, 158, 11, .16); }
.mk-sh__row--sh-diamond { background: rgba(56, 189, 248, .14); }
.mk-sh__row--sh-silver { background: rgba(148, 163, 184, .18); }
.mk-sh__dot { width: 10px; height: 10px; border-radius: 50%; background: #94a3b8; }
.mk-sh__row--sh-diamond .mk-sh__dot { background: #0ea5e9; }
.mk-sh__row--sh-gold .mk-sh__dot { background: #f59e0b; }
.mk-sh__row--sh-silver .mk-sh__dot { background: #94a3b8; }
.mk-sh__n { font-size: 14px; font-weight: 600; color: var(--dhg-ink-1, #0f2040); }
.mk-sh__c { margin-left: auto; font-size: 13.5px; color: var(--dhg-ink-2, #3a4a6b); }

/* ---- เอกสาร/คู่มือล่าสุด ---- */
.mk-docs { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.mk-docs__row { display: flex; align-items: center; gap: 11px; padding: 12px 14px; border-radius: 14px;
	background: rgba(255, 255, 255, .86); border: 1px solid rgba(255, 255, 255, .95); box-shadow: 0 6px 18px rgba(15, 32, 64, .06); }
.mk-docs__ico { display: inline-flex; width: 30px; height: 30px; flex: 0 0 30px; border-radius: 9px; align-items: center; justify-content: center;
	background: rgba(37, 99, 235, .12); color: var(--dhg-blue, #2563eb); }
.mk-docs__ico svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.mk-docs__t { flex: 1; font-size: 14px; color: var(--dhg-ink-1, #0f2040); text-decoration: none; line-height: 1.4; }
.mk-docs__t:hover { color: var(--dhg-blue, #2563eb); }
.mk-docs__badge { font-size: 11px; font-weight: 700; letter-spacing: .04em; color: #b91c1c; background: rgba(239, 68, 68, .12); padding: 3px 8px; border-radius: 8px; }

/* ---- ทะเบียนหน่วยงาน (หน้ารายการ) ---- */
.mk-orgs__table-wrap { overflow-x: auto; border-radius: 18px; background: rgba(255, 255, 255, .88);
	border: 1px solid rgba(255, 255, 255, .95); box-shadow: 0 10px 26px rgba(15, 32, 64, .07); margin-bottom: 14px; }
.mk-orgs__table { width: 100%; border-collapse: collapse; font-size: 14px; }
.mk-orgs__table th, .mk-orgs__table td { padding: 11px 14px; text-align: left; border-bottom: 1px solid rgba(148, 163, 184, .25); }
.mk-orgs__table th { font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; color: rgba(58, 74, 107, .8); background: rgba(148, 163, 184, .1); }
.mk-orgs__table tr:last-child td { border-bottom: 0; }
.mk-orgs__link { color: var(--dhg-ink-1, #0f2040); text-decoration: none; font-weight: 600; }
.mk-orgs__link:hover { color: var(--dhg-blue, #2563eb); }
.mk-orgs__note { font-size: 12.5px; color: rgba(58, 74, 107, .8); }
.mk-orgs__h { font-size: 20px; font-weight: 700; color: var(--dhg-ink-1, #0f2040); margin: 26px 0 12px; }
.mk-org__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 22px; }
.mk-org__body { font-size: 15px; color: var(--dhg-ink-2, #3a4a6b); }
.mk-org__back { margin-top: 18px; }
.mk-tag { display: inline-block; font-size: 12.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.mk-tag--pass { color: #0f9d6b; background: rgba(16, 185, 129, .14); }
.mk-tag--fail { color: #dc2626; background: rgba(239, 68, 68, .14); }
.mk-tag--wait { color: #64748b; background: rgba(148, 163, 184, .2); }
.mk-tag--na { color: #94a3b8; background: rgba(148, 163, 184, .12); }
.mk-tag--lv { color: #b45309; background: rgba(245, 158, 11, .16); }

/* ---- แก้ช่องว่าง Contact (ตาม Mockup: กระชับ) ---- */
.pg-contact-head { padding-bottom: 6px !important; }
.pg-contact-head + .pg-contact { padding-top: 14px !important; }
.pg-contact { padding-bottom: 40px !important; }

/* ---- responsive ---- */
@media (max-width: 1100px) {
	.mk-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.mk-dash-grid, .mk-org__grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
	.mk-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.mk-card { padding: 14px 13px; }
	.mk-dash { padding: 16px 15px 13px; }
	.mk-dash__donut { width: 108px; height: 108px; flex-basis: 108px; }
	.mk-dash__donut::after { inset: 13px; }
	.mk-dash__donut-mid b { font-size: 19px; }
	.mk-sh__row { padding: 8px 11px; }
}
@media (max-width: 380px) {
	.mk-cards { grid-template-columns: 1fr; }
}

/* ============================================================
 * 24. MOCKUP REBUILD — หน้าแรกแบบ 2 คอลัมน์ + ระยะห่างกระชับ
 * ============================================================ */

.mp .mp-sec { padding: 18px 0; }
.mp .pg-wrap { max-width: 1180px; }

/* ---- HERO 2 คอลัมน์ ---- */
.mp-hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 26px; align-items: center;
	padding: 34px 0 26px; }
.mp-hero__tag { display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: .09em;
	color: var(--dhg-blue, #2563eb); background: rgba(255, 255, 255, .9); border: 1px solid rgba(255, 255, 255, .95);
	padding: 6px 13px; border-radius: 999px; box-shadow: 0 6px 16px rgba(15, 32, 64, .07); }
.mp-hero__h { font-size: clamp(32px, 4.2vw, 50px); line-height: 1.12; font-weight: 800;
	color: var(--dhg-ink-1, #0f2040); margin: 12px 0 10px; }
.mp-hero__h .grad { background: linear-gradient(100deg, #2563eb, #7c3aed); -webkit-background-clip: text;
	background-clip: text; color: transparent; }
.mp-hero__lead { font-size: 16px; line-height: 1.6; color: var(--dhg-ink-2, #3a4a6b); margin: 0 0 18px; max-width: 34em; }
.mp-hero .pg-badge { margin-top: 16px; }
.mp-hero__r { position: relative; display: grid; place-items: center; min-height: 260px; }

/* อุปกรณ์ตกแต่ง (ภาพประกอบ) */
.mp-device { position: relative; width: min(390px, 92%); }
.mp-device__screen { position: relative; border-radius: 20px; padding: 20px;
	background: linear-gradient(160deg, rgba(255, 255, 255, .92), rgba(255, 255, 255, .78));
	border: 1px solid rgba(255, 255, 255, .95);
	box-shadow: inset 0 1px 2px rgba(255, 255, 255, .9), 0 22px 48px rgba(15, 32, 64, .14);
	backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.mp-device__base { height: 10px; width: 62%; margin: 8px auto 0; border-radius: 0 0 12px 12px;
	background: linear-gradient(180deg, rgba(148, 163, 184, .45), rgba(148, 163, 184, .18)); }
.mp-device__pill { display: block; height: 9px; width: 44%; border-radius: 999px; background: rgba(37, 99, 235, .18); margin-bottom: 8px; }
.mp-device__pill--sm { width: 26%; background: rgba(148, 163, 184, .3); }
.mp-device__bars { display: flex; align-items: flex-end; gap: 9px; height: 104px; margin: 14px 0 6px; }
.mp-device__bars i { flex: 1; height: var(--h); border-radius: 8px 8px 4px 4px;
	background: linear-gradient(180deg, rgba(37, 99, 235, .85), rgba(14, 165, 233, .55)); }
.mp-device__bars i:nth-child(4) { background: linear-gradient(180deg, rgba(16, 185, 129, .85), rgba(52, 211, 153, .5)); }
.mp-device__badge { position: absolute; right: -12px; bottom: -14px; width: 56px; height: 56px; border-radius: 18px;
	display: grid; place-items: center; color: #fff;
	background: linear-gradient(150deg, #2563eb, #0ea5e9); box-shadow: 0 14px 30px rgba(37, 99, 235, .38); }
.mp-device__badge svg { width: 27px; height: 27px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.mp-orb { position: absolute; border-radius: 50%; filter: blur(2px); opacity: .55; z-index: -1; }
.mp-orb--a { width: 150px; height: 150px; left: 2%; top: 6%; background: radial-gradient(circle at 30% 30%, rgba(14, 165, 233, .5), transparent 70%); }
.mp-orb--b { width: 190px; height: 190px; right: 0; bottom: 0; background: radial-gradient(circle at 60% 40%, rgba(124, 58, 237, .42), transparent 70%); }

/* ---- การ์ดทางลัด: หัวข้อเล็ก + การ์ด ---- */
.mk-cards { margin: 0; }

/* ---- ข่าว + เอกสาร คู่กัน ---- */
.mp-split { display: grid; grid-template-columns: 1.25fr .75fr; gap: 18px; align-items: start; }
.mp-hd { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.mp-hd--center { flex-direction: column; align-items: center; text-align: center; gap: 4px; }
.mp-hd__t { font-size: 20px; font-weight: 700; color: var(--dhg-ink-1, #0f2040); margin: 0; }
.mp-hd__s { font-size: 14px; color: rgba(58, 74, 107, .85); margin: 0; }
.mp-more { font-size: 13.5px; font-weight: 600; color: var(--dhg-blue, #2563eb); text-decoration: none; white-space: nowrap; }
.mp-more:hover { text-decoration: underline; }
.mp-more--block { display: inline-block; margin-top: 10px; }
.mp-split__side .mk-docs { gap: 8px; }

/* ---- CONTACT แบบย่อ ---- */
.mp-contact { padding-bottom: 26px !important; }
.mp-ct { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px; max-width: 980px; }
.mp-ct__i { display: flex; gap: 11px; align-items: flex-start; padding: 13px 15px; border-radius: 16px;
	background: rgba(255, 255, 255, .86); border: 1px solid rgba(255, 255, 255, .95);
	box-shadow: 0 8px 20px rgba(15, 32, 64, .06); }
.mp-ct__ico { display: inline-flex; width: 32px; height: 32px; flex: 0 0 32px; border-radius: 10px; align-items: center; justify-content: center;
	background: rgba(37, 99, 235, .12); color: var(--dhg-blue, #2563eb); }
.mp-ct__ico svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.mp-ct__v { font-size: 13.5px; line-height: 1.55; color: var(--dhg-ink-2, #3a4a6b); }
.mp-ct__v a { color: var(--dhg-blue, #2563eb); text-decoration: none; }
.mp-ct__v a:hover { text-decoration: underline; }

/* ---- หน้า /systems/ (รายการระบบงาน 10 รายการ เดิม) ---- */
.sys-list { display: grid; gap: 18px; }
.sys-list .cat-grid { display: block; }
.sys-list .cat { margin-bottom: 14px; }

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
	.mp-hero { grid-template-columns: 1fr; gap: 16px; padding-top: 24px; }
	.mp-hero__r { min-height: 0; order: -1; }
	.mp-device { width: min(320px, 88%); }
	.mp-split { grid-template-columns: 1fr; }
	.mp-ct { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
	.mp .mp-sec { padding: 12px 0; }
	.mp-hero { padding: 18px 0 14px; }
	.mp-hero__h { font-size: 30px; margin: 9px 0 8px; }
	.mp-hero__lead { font-size: 14.5px; margin-bottom: 14px; }
	.mp-hero__r { display: none; } /* มือถือ: ตัดภาพประกอบเพื่อลดความสูง */
	.mp-hero .pg-badge { margin-top: 12px; }
	.mp-hd__t { font-size: 18px; }
	.mp-ct__i { padding: 11px 13px; }
	.mp-contact { padding-bottom: 18px !important; }
}
/* ---- ปรับความใสให้ใกล้ Glass ของ Mockup + จัดการมือถือ ---- */
.mk-card, .mk-dash, .mk-docs__row { background: rgba(255, 255, 255, .8); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
@media (max-width: 600px) {
	/* การ์ดใบที่ 5 (เลขคี่) กินเต็มแถว ไม่ให้ดูแหว่ง */
	.mk-cards .mk-card:last-child { grid-column: 1 / -1; }
	/* หน้าแรกมือถือ: footer เหลือแค่ทางลัด + ลิขสิทธิ์ (ข้อมูลติดต่ออยู่ในส่วน Contact ด้านบนแล้ว) */
	body.mp-front .pg-footer__grid > *:nth-child(1),
	body.mp-front .pg-footer__grid > *:nth-child(3) { display: none; }
	body.mp-front .pg-footer__grid { grid-template-columns: 1fr; }
	body.mp-front .pg-footer { padding-top: 14px; padding-bottom: 14px; }
}
/* ปรับความใส最后一次: ให้เห็นพื้นหลัง Aurora ทะลุการ์ด (ตาม Mockup) */
.mk-card { background: rgba(255, 255, 255, .62); border-color: rgba(255, 255, 255, .85); }
.mk-dash { background: rgba(255, 255, 255, .66); border-color: rgba(255, 255, 255, .88); }
.mk-docs__row { background: rgba(255, 255, 255, .66); border-color: rgba(255, 255, 255, .88); }
.mp-ct__i { background: rgba(255, 255, 255, .64); border-color: rgba(255, 255, 255, .86); }

/* ============================================================
 * 25. MOCKUP 1:1 — กระชับมือถือ + Glass/Aurora มีมิติ
 * ============================================================ */

/* ---- Aurora background เฉพาะหน้าแรก ---- */
body.mp-front { background: linear-gradient(180deg, #f6f9ff 0%, #edf3ff 42%, #f6f1ff 100%); }
body.mp-front::before {
	content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none;
	background:
		radial-gradient(58% 42% at 10% 6%, rgba(37, 99, 235, .18), transparent 62%),
		radial-gradient(52% 38% at 90% 10%, rgba(124, 58, 237, .20), transparent 64%),
		radial-gradient(70% 46% at 50% 102%, rgba(14, 165, 233, .16), transparent 66%);
}
body.mp-front #pg-main, body.mp-front .pg-navslot, body.mp-front .pg-footslot { position: relative; z-index: 1; }

/* ---- Glass จริง: โปร่ง + ขอบไฮไลต์ + เงาลึก ---- */
.mk-card, .mk-dash, .mk-docs__row, .mp-ct__i, .mp-device__screen {
	background: linear-gradient(158deg, rgba(255, 255, 255, .62) 0%, rgba(255, 255, 255, .34) 100%);
	-webkit-backdrop-filter: blur(20px) saturate(165%);
	backdrop-filter: blur(20px) saturate(165%);
	border: 1px solid rgba(255, 255, 255, .72);
	box-shadow:
		0 14px 34px rgba(23, 43, 84, .12),
		inset 0 1px 0 rgba(255, 255, 255, .9),
		inset 0 -1px 0 rgba(255, 255, 255, .35);
}
.mk-card:hover { transform: translateY(-2px); box-shadow: 0 20px 40px rgba(23, 43, 84, .16), inset 0 1px 0 rgba(255,255,255,.95); }

/* ---- Desktop: สมดุล กระชับขึ้นอีก ---- */
.mp .mp-sec { padding: 14px 0; }
.mp-hero { padding: 26px 0 20px; gap: 22px; }
.mp-hero__h { margin: 10px 0 8px; }
.mp-hero__lead { margin-bottom: 14px; }
.mp-hero .pg-badge { margin-top: 12px; }
.mk-cards { gap: 12px; margin: 0 0 18px; }
.mk-card { padding: 15px 14px; border-radius: 18px; }
.mk-dash { padding: 17px 18px 14px; }
.mk-dash-grid { margin-bottom: 18px; }
.mp-split { gap: 16px; }
.mk-docs { gap: 7px; }

/* ============================================================
 * MOBILE 390 — จัดใหม่ให้กระชับ (ไม่ใช่แค่ซ้อน Desktop)
 * ============================================================ */
@media (max-width: 600px) {

	/* --- ระยะห่างรวม --- */
	.mp .mp-sec { padding: 7px 0; }
	.mp .pg-wrap { padding-left: 15px; padding-right: 15px; }

	/* --- HERO กระชับ --- */
	.mp-hero { padding: 12px 0 8px; gap: 8px; }
	.mp-hero__tag { font-size: 9.5px; letter-spacing: .07em; padding: 4px 9px; }
	.mp-hero__h { font-size: 25px; line-height: 1.16; margin: 7px 0 5px; }
	.mp-hero__lead {
		font-size: 12.5px; line-height: 1.5; margin: 0 0 9px;
		display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
	}
	.mp-hero .pg-btns { display: flex; gap: 7px; margin: 0; }
	.mp-hero .pg-btn { flex: 1 1 0; min-height: 38px; padding: 0 10px; font-size: 13px; }
	.mp-hero .pg-badge { margin-top: 8px; font-size: 11px; padding: 4px 9px; }
	.mp-hero__r { display: none; }

	/* --- QUICK ACCESS: การ์ดเล็ก 2 คอลัมน์ --- */
	.mk-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin: 0 0 8px; }
	.mk-cards .mk-card:last-child { grid-column: 1 / -1; }
	.mk-card { padding: 10px 11px; border-radius: 14px; gap: 3px; }
	.mk-card__ico { width: 27px; height: 27px; border-radius: 9px; }
	.mk-card__ico svg { width: 15px; height: 15px; }
	.mk-card__t { font-size: 13px; line-height: 1.25; }
	.mk-card__s { font-size: 10.5px; line-height: 1.3; }
	.mk-card__d { display: none; }

	/* --- DASHBOARD: กระชับ ลดกรอบ --- */
	.mk-dash-grid { gap: 7px; margin-bottom: 8px; }
	.mk-dash { padding: 12px 13px 10px; border-radius: 16px; }
	.mk-dash__hd { gap: 8px; margin-bottom: 8px; }
	.mk-dash__ico { width: 28px; height: 28px; flex: 0 0 28px; border-radius: 9px; }
	.mk-dash__ico svg { width: 16px; height: 16px; }
	.mk-dash__t { font-size: 14px; }
	.mk-dash__s { font-size: 11px; }
	.mk-dash__body { gap: 10px; }
	.mk-dash__donut { width: 78px; height: 78px; flex: 0 0 78px; }
	.mk-dash__donut::after { inset: 9px; }
	.mk-dash__donut-mid b { font-size: 15px; }
	.mk-dash__donut-mid i { font-size: 9.5px; }
	.mk-dash__list { gap: 4px; min-width: 0; }
	.mk-dash__list li { font-size: 11.5px; }
	.mk-dash__note, .mk-wait { font-size: 11.5px; padding: 7px 10px; }
	.mk-sh { gap: 5px; min-width: 0; }
	.mk-sh__row { padding: 6px 9px; border-radius: 10px; }
	.mk-sh__n { font-size: 12.5px; }
	.mk-sh__c { font-size: 11.5px; }
	.mk-dash__ft { margin-top: 7px; }
	.mk-more { font-size: 12px; }

	/* --- ข่าว: บัตรเตี้ย ไม่กินจอ --- */
	.news-slider { height: auto !important; min-height: 0 !important; }
	.ns-track { height: auto !important; }
	.ns-slide, .ns-slide.is-active { height: auto !important; min-height: 0 !important; }
	.ns-img { height: 124px !important; min-height: 0 !important; }
	.ns-body { padding: 9px 12px 10px !important; }
	.ns-body p { display: none !important; }
	.ns-body h4 { font-size: 15px !important; margin: 2px 0 4px !important; }
	.ns-body time { font-size: 10.5px !important; }
	.n-tag { font-size: 9.5px !important; padding: 3px 7px !important; }
	.ns-more { min-height: 32px !important; font-size: 12px !important; }
	.ns-nav, .ns-dots { display: none !important; }

	/* --- เอกสาร --- */
	.mk-docs { gap: 6px; }
	.mk-docs__row { padding: 8px 10px; border-radius: 12px; gap: 9px; }
	.mk-docs__ico { width: 26px; height: 26px; flex: 0 0 26px; border-radius: 8px; }
	.mk-docs__t { font-size: 12.5px; line-height: 1.35; }
	.mk-docs__badge { font-size: 9.5px; padding: 2px 6px; }

	/* --- หัวข้อ --- */
	.mp-hd { margin-bottom: 7px; }
	.mp-hd__t { font-size: 15.5px; }
	.mp-hd__s { font-size: 11.5px; }
	.mp-more { font-size: 11.5px; }
	.mp-more--block { margin-top: 7px; }

	/* --- Contact: 3 แถวเตี้ย --- */
	.mp-contact { padding-top: 8px !important; padding-bottom: 10px !important; }
	.mp-ct { gap: 6px; }
	.mp-ct__i { padding: 8px 10px; border-radius: 12px; gap: 8px; }
	.mp-ct__ico { width: 25px; height: 25px; flex: 0 0 25px; border-radius: 8px; }
	.mp-ct__ico svg { width: 14px; height: 14px; }
	.mp-ct__v { font-size: 11.5px; line-height: 1.42; }

	/* --- Footer: เหลือทางลัด + ลิขสิทธิ์ --- */
	body.mp-front .pg-footer { padding-top: 10px !important; padding-bottom: 8px !important; }
	body.mp-front .pg-footer__grid > *:nth-child(1),
	body.mp-front .pg-footer__grid > *:nth-child(3) { display: none; }
	body.mp-front .pg-footer__grid { grid-template-columns: 1fr; gap: 0; }
	body.mp-front .pg-footer__base { font-size: 10.5px; }
}

/* ============================================================
 * 26. ปรับรอบ 2 — Glass โปร่งจริง + Mobile กระชับกว่าเดิม
 * ============================================================ */

/* Aurora เข้มขึ้นเพื่อให้เห็นความโปร่งของการ์ด */
body.mp-front::before {
	background:
		radial-gradient(58% 42% at 10% 6%, rgba(37, 99, 235, .28), transparent 62%),
		radial-gradient(52% 38% at 90% 10%, rgba(124, 58, 237, .30), transparent 64%),
		radial-gradient(70% 46% at 50% 102%, rgba(14, 165, 233, .24), transparent 66%);
}

/* การ์ด: โปร่งขึ้น + ขอบแก้วชัด */
.mk-card, .mk-dash, .mk-docs__row, .mp-ct__i, .mp-device__screen {
	background: linear-gradient(158deg, rgba(255, 255, 255, .44) 0%, rgba(255, 255, 255, .18) 100%);
	border: 1px solid rgba(255, 255, 255, .78);
	box-shadow:
		0 12px 30px rgba(23, 43, 84, .14),
		inset 0 1px 0 rgba(255, 255, 255, .95),
		inset 0 0 24px rgba(255, 255, 255, .25);
}

@media (max-width: 600px) {

	/* Hero: เล็กลงอีก + ไม่ซ้ำกับโลโก้ใน Navbar */
	.mp-hero { padding: 8px 0 6px; }
	.mp-hero__h { font-size: 22px; line-height: 1.18; margin: 6px 0 4px; }
	.mp-hero__lead { font-size: 12px; line-height: 1.45; margin: 0 0 8px; -webkit-line-clamp: 2; }
	.mp-hero .pg-btn { min-height: 34px; font-size: 12.5px; border-radius: 11px; }
	.mp-hero .pg-badge { margin-top: 7px; font-size: 10px; padding: 3px 8px; }

	/* Quick access: เตี้ยลง ระยะชิด */
	.mk-card { padding: 9px 10px; border-radius: 13px; }
	.mk-card__ico { width: 24px; height: 24px; border-radius: 8px; }
	.mk-card__ico svg { width: 13px; height: 13px; }
	.mk-card__t { font-size: 12.5px; }
	.mk-card__s { font-size: 10px; }

	/* Dashboard: มือถือ = แถวข้อมูลเตี้ย ไม่ใช้ donut/กล่องใหญ่ */
	.mk-dash { padding: 10px 12px 9px; border-radius: 14px; }
	.mk-dash__hd { margin-bottom: 6px; gap: 7px; }
	.mk-dash__ico { width: 24px; height: 24px; flex: 0 0 24px; border-radius: 8px; }
	.mk-dash__ico svg { width: 14px; height: 14px; }
	.mk-dash__t { font-size: 13px; }
	.mk-dash__s { display: none; }
	.mk-dash__donut { display: none; }              /* ซ่อนวงกลมบนมือถือ */
	.mk-dash__body { gap: 6px; }
	.mk-dash__list { gap: 3px; }
	.mk-dash__list li { font-size: 11px; }
	.mk-dash__note, .mk-wait { font-size: 11px; padding: 6px 9px; margin: 2px 0; }
	.mk-dash__stat { padding: 8px 10px; }
	.mk-dash__stat b { font-size: 16px; }
	.mk-dash__ft { margin-top: 5px; }
	/* ระดับ Smart Hospital: 3 ช่องเรียงแถวเดียว */
	.mk-sh { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
	.mk-sh__row { flex-direction: column; align-items: center; gap: 1px; padding: 6px 4px; border-radius: 9px; }
	.mk-sh__n { font-size: 11px; }
	.mk-sh__c { margin-left: 0; font-size: 10.5px; }

	/* ข่าวให้เตี้ยลงอีก */
	.ns-img { height: 112px !important; }
	.ns-body { padding: 8px 11px 9px !important; }
	.ns-body h4 { font-size: 14px !important; }

	/* Contact 3 แถวเตี้ย */
	.mp-ct__i { padding: 7px 9px; border-radius: 11px; }
	.mp-ct__v { font-size: 11px; line-height: 1.38; }

	/* Footer: มือถือเหลือเฉพาะบล็อกทางลัด + copyright (ตัดข้อมูลติดต่อซ้ำ) */
	body.mp-front .pg-footer { padding: 8px 0 !important; }
	body.mp-front .pg-footer__grid { grid-template-columns: 1fr; gap: 0; }
	body.mp-front .pg-footer__grid > *:nth-child(1),
	body.mp-front .pg-footer__grid > *:nth-child(3) { display: none; }
	body.mp-front .pg-footer__grid > *:nth-child(2) p { display: none; }
	body.mp-front .pg-footer__base { font-size: 10px; }
}

/* ============================================================
 * 27. ปรับรอบ 3 — มือถือสั้นลง + Glass เห็นความโปร่งจริงในภาพ
 * ============================================================ */

/* เพิ่มความโปร่ง + tint ให้การ์ดเห็นพื้นหลังทะลุชัดขึ้น */
.mk-card, .mk-dash, .mk-docs__row, .mp-ct__i {
	background: linear-gradient(158deg, rgba(255, 255, 255, .34) 0%, rgba(232, 240, 255, .16) 100%);
	border: 1px solid rgba(255, 255, 255, .82);
}
body.mp-front::before {
	background:
		radial-gradient(60% 44% at 8% 4%, rgba(37, 99, 235, .34), transparent 60%),
		radial-gradient(54% 40% at 92% 8%, rgba(124, 58, 237, .34), transparent 62%),
		radial-gradient(72% 48% at 50% 104%, rgba(14, 165, 233, .28), transparent 64%);
}

@media (max-width: 600px) {
	/* Hero: ตัดคำอธิบายยาวออก เหลือหัวข้อ+ปุ่ม+วันที่ */
	.mp-hero__lead { display: none; }
	.mp-hero { padding: 6px 0 4px; }
	.mp-hero__h { margin-bottom: 7px; }

	/* Dashboard: ระยะในแน่นขึ้น */
	.mk-dash { padding: 9px 11px 8px; }
	.mk-dash__body { gap: 4px; }
	.mk-wait, .mk-dash__note { padding: 5px 8px; font-size: 10.5px; margin: 0; }

	/* Contact: ที่อยู่เต็มแถว / โทร+อีเมล 2 คอลัมน์ */
	.mp-ct { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; }
	.mp-ct__i:first-child { grid-column: 1 / -1; }
	.mp-ct__i { padding: 7px 8px; gap: 7px; }
	.mp-ct__v { font-size: 10.5px; line-height: 1.35; }

	/* Footer: ลิงก์เรียงบรรทัดเดียว */
	body.mp-front .pg-footer__grid > *:nth-child(2) ul { display: flex; flex-wrap: wrap; gap: 4px 12px; justify-content: center; }
	body.mp-front .pg-footer__grid > *:nth-child(2) li { margin: 0; }
	body.mp-front .pg-footer__grid > *:nth-child(2) a { font-size: 11.5px; }
	body.mp-front .pg-footer { padding: 6px 0 !important; }
}

/* ============================================================
 * 28. ปรับรอบ 4 — แก้ Hero ถูก Navbar ทับ + Glass/Aurora เห็นมิติจริง
 * ============================================================ */

/* พื้นหลัง Aurora 覆盖ทั้งหน้า (ไม่ใช่แค่หัว/ท้าย) */
body.mp-front { background: linear-gradient(180deg, #eef3ff 0%, #e8eeff 38%, #f2ecff 72%, #eef4ff 100%); }
body.mp-front::before {
	background:
		radial-gradient(46% 26% at 12% 6%, rgba(37, 99, 235, .30), transparent 62%),
		radial-gradient(44% 24% at 88% 12%, rgba(124, 58, 237, .30), transparent 64%),
		radial-gradient(52% 22% at 20% 42%, rgba(14, 165, 233, .22), transparent 66%),
		radial-gradient(50% 22% at 82% 62%, rgba(99, 102, 241, .22), transparent 66%),
		radial-gradient(60% 26% at 50% 92%, rgba(14, 165, 233, .24), transparent 66%);
}

/* การ์ดโปร่งขึ้นชัดเจน */
.mk-card, .mk-dash, .mk-docs__row, .mp-ct__i {
	background: linear-gradient(158deg, rgba(255, 255, 255, .30) 0%, rgba(255, 255, 255, .14) 100%);
	border: 1px solid rgba(255, 255, 255, .85);
	box-shadow: 0 10px 26px rgba(23, 43, 84, .13), inset 0 1px 0 rgba(255, 255, 255, .95);
}

@media (max-width: 600px) {
	/* Navbar เป็นแบบลอย → เว้นที่ให้เนื้อหา ไม่ให้ทับ */
	body.mp-front #pg-main { padding-top: 74px; }

	/* ปุ่มไม่เต็มความกว้าง */
	.mp-hero .pg-btns { display: flex; gap: 7px; }
	.mp-hero .pg-btn { flex: 0 0 auto; min-height: 34px; padding: 0 14px; font-size: 12.5px; }

	/* ข่าวเตี้ยลง */
	.ns-img { height: 104px !important; }

	/* Contact แน่นขึ้น + ตัดคำอธิบายซ้ำ */
	.mp-contact .mp-hd__s { display: none; }
	.mp-ct__i { padding: 6px 8px; }
	.mp-ct__v { font-size: 10.5px; }
	.mp-ct__ico { width: 22px; height: 22px; flex: 0 0 22px; }
}

/* ============================================================
 * 29. ปรับรอบ 5 — ปุ่ม/ข่าว/Footer มือถือให้แน่นขึ้น
 * ============================================================ */
@media (max-width: 600px) {
	.mp-hero .pg-btn { width: auto !important; flex: 0 0 auto !important; min-height: 32px; padding: 0 13px; font-size: 12px; }
	.mp-hero .pg-btn--primary { box-shadow: 0 8px 18px rgba(37, 99, 235, .28); }

	.ns-img { height: 96px !important; }
	.ns-body { padding: 7px 10px 8px !important; }
	.ns-body h4 { font-size: 13.5px !important; line-height: 1.3 !important; }
	.ns-more { min-height: 28px !important; font-size: 11.5px !important; }

	body.mp-front .pg-footer { padding: 4px 0 6px !important; }
	body.mp-front .pg-footer__grid { margin: 0 !important; }
	body.mp-front .pg-footer__grid > *:nth-child(2) ul { gap: 2px 10px !important; }
	body.mp-front .pg-footer__grid > *:nth-child(2) a { font-size: 11px !important; line-height: 1.4 !important; }
	body.mp-front .pg-footer__base { margin-top: 4px !important; font-size: 9.5px !important; }

	.mk-sh__row { padding: 5px 3px; }
	.mk-sh__c { font-size: 10px; }
}

/* ============================================================
 * 30. Polish สุดท้าย — Footer กลืนกับ Aurora / เงาภาพฮีโร่ / overlay ข่าว
 * ============================================================ */
body.mp-front .pg-footer {
	background: linear-gradient(180deg, rgba(255, 255, 255, .34), rgba(255, 255, 255, .16)) !important;
	-webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
	border-top: 1px solid rgba(255, 255, 255, .7);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .85);
}
body.mp-front .pg-footer__grid > * { color: var(--dhg-ink-2, #3a4a6b); }

/* เงาของภาพประกอบฮีโร่ */
.mp-device__screen { box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 14px 30px rgba(23, 43, 84, .12) !important; }
.mp-device__badge { box-shadow: 0 10px 22px rgba(37, 99, 235, .30) !important; }

/* overlay ข่าว: โปร่งขึ้นให้เห็นภาพ */
.ns-body { background: rgba(255, 255, 255, .72) !important; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
@media (max-width: 600px) {
	.ns-body { background: rgba(255, 255, 255, .82) !important; }
	.mk-cards .mk-card__t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}

/* ============================================================
 * 31. ปรับสมดุลสุดท้าย — คอลัมน์เอกสารเต็มความสูง / donut พอดี / contact ไม่ล้น
 * ============================================================ */
.mp-split { align-items: stretch; }
.mp-split__side {
	display: flex; flex-direction: column; padding: 14px 15px 12px; border-radius: 20px;
	background: linear-gradient(158deg, rgba(255, 255, 255, .30), rgba(255, 255, 255, .12));
	-webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
	border: 1px solid rgba(255, 255, 255, .8);
	box-shadow: 0 10px 26px rgba(23, 43, 84, .11), inset 0 1px 0 rgba(255, 255, 255, .9);
}
.mp-split__side .mk-more--block { margin-top: auto; padding-top: 10px; }
.mk-dash__donut { width: 112px; height: 112px; flex: 0 0 112px; }
.mk-dash__donut::after { inset: 13px; }
.mp-ct__v { word-break: break-word; overflow-wrap: anywhere; }
@media (max-width: 600px) {
	.mp-split__side { padding: 11px 12px 9px; border-radius: 16px; }
	.mk-dash__donut { display: none; }
}
@media (max-width: 430px) {
	.mp-ct { grid-template-columns: 1fr; }
	.mp-ct__i:first-child { grid-column: auto; }
}

/* ============================================================
 * 32. สมดุลคอลัมน์ ขวา — หัวข้ออยู่นอก panel เท่ากันทั้งสองฝั่ง
 * ============================================================ */
.mp-split__side { padding: 0 !important; background: none !important; border: 0 !important; box-shadow: none !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
.mp-split__side { display: flex; flex-direction: column; }
.mp-docs-panel {
	flex: 1; display: flex; flex-direction: column; padding: 14px 15px 12px; border-radius: 20px;
	background: linear-gradient(158deg, rgba(255, 255, 255, .30), rgba(255, 255, 255, .12));
	-webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
	border: 1px solid rgba(255, 255, 255, .8);
	box-shadow: 0 10px 26px rgba(23, 43, 84, .11), inset 0 1px 0 rgba(255, 255, 255, .9);
}
.mp-docs-panel .mk-more--block { margin-top: auto; padding-top: 10px; }
@media (max-width: 600px) { .mp-docs-panel { padding: 10px 11px 9px; border-radius: 15px; } }

/* ให้ panel เอกสารอ่านเป็นการ์ดชัดขึ้น (ไม่จมไปกับพื้นหลัง) */
.mp-docs-panel {
	background: linear-gradient(158deg, rgba(255, 255, 255, .5) 0%, rgba(244, 248, 255, .3) 100%);
	border: 1px solid rgba(255, 255, 255, .9);
	box-shadow: 0 14px 30px rgba(23, 43, 84, .13), inset 0 1px 0 rgba(255, 255, 255, .95);
}
.mp-docs-panel .mk-docs__row { background: rgba(255, 255, 255, .55); box-shadow: 0 4px 12px rgba(23, 43, 84, .05); }

/* ============================================================
 * 33. มือถือรอบสุดท้าย — ระยะชิด / ไอคอนใหญ่ขึ้น / ข้อความอ่านชัด
 * ============================================================ */
@media (max-width: 600px) {
	.mp .mp-sec { padding: 5px 0; }
	.mp-hero { padding: 4px 0 2px; }
	.mk-card__ico { width: 30px; height: 30px; border-radius: 10px; }
	.mk-card__ico svg { width: 16px; height: 16px; }
	.mk-card { padding: 10px 11px; }
	.mk-wait, .mk-dash__note { color: #3f4d6b !important; background: rgba(148, 163, 184, .24) !important; font-weight: 600; }
	.mk-sh__c { color: #1e293b; }
	.mk-sh__c b { color: #0f2040; font-size: 12px; }
	.mk-dash { padding: 9px 11px 8px; }
	#dashboards { padding-bottom: 2px; }
	#news { padding-top: 4px; }
}

/* ============================================================
 * 34. แก้ตามผลตรวจ 5 ข้อ — คืนองค์ประกอบที่ซ่อน + สมดุลตาม Mockup
 * ============================================================ */

/* --- Glass/Aurora ตาม Mockup: การ์ดฝ้าขาว (ไม่โปร่งจนจาง) --- */
body.mp-front::before {
	background:
		radial-gradient(52% 38% at 8% 4%, rgba(56, 132, 255, .26), transparent 62%),
		radial-gradient(48% 34% at 92% 6%, rgba(139, 92, 246, .26), transparent 64%),
		radial-gradient(56% 30% at 18% 46%, rgba(56, 189, 248, .16), transparent 66%),
		radial-gradient(52% 30% at 84% 68%, rgba(129, 140, 248, .16), transparent 66%),
		radial-gradient(62% 34% at 50% 98%, rgba(56, 189, 248, .18), transparent 68%);
}
.mk-card, .mk-dash, .mk-docs__row, .mp-ct__i, .mp-docs-panel {
	background: linear-gradient(160deg, rgba(255, 255, 255, .72) 0%, rgba(255, 255, 255, .44) 100%);
	-webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%);
	border: 1px solid rgba(255, 255, 255, .92);
	box-shadow: 0 12px 28px rgba(30, 51, 92, .10), inset 0 1px 0 rgba(255, 255, 255, .95);
}

/* --- 4) Desktop: เอกสารสูงตามเนื้อหา ไม่ยืดเท่าข่าว --- */
.mp-split { align-items: start; }
.mp-split__side, .mp-docs-panel { height: auto; }
.mp-docs-panel { flex: 0 0 auto; }

/* ระยะห่างใกล้ Mockup (โปร่งกว่าเดิมเล็กน้อย) */
.mp .mp-sec { padding: 18px 0; }

@media (max-width: 600px) {

	/* --- 1) Hero มือถือ: แสดงคำอธิบายครบ --- */
	.mp-hero__lead {
		display: block !important;
		font-size: 12.5px; line-height: 1.55; margin: 0 0 10px;
		-webkit-line-clamp: unset; -webkit-box-orient: unset; overflow: visible;
	}

	/* --- 2) CTAM+ มือถือ: แสดง Donut --- */
	.mk-dash__donut {
		display: grid !important;
		width: 76px; height: 76px; flex: 0 0 76px;
	}
	.mk-dash__donut::after { inset: 9px; }
	.mk-dash__donut-mid b { font-size: 15px; }
	.mk-dash__donut-mid i { font-size: 9px; }

	/* --- 3) News มือถือ: รูปเต็มความกว้างด้านบน ข้อความด้านล่าง --- */
	.ns-slide, .ns-slide.is-active { grid-template-columns: 1fr !important; display: block !important; }
	.ns-img {
		width: 100% !important; height: 176px !important; min-height: 0 !important;
		border-radius: 14px 14px 0 0 !important; margin: 0 !important;
	}
	.ns-body {
		padding: 10px 12px 12px !important; border-radius: 0 0 14px 14px !important;
		background: rgba(255, 255, 255, .86) !important;
	}
	.ns-body p {
		display: -webkit-box !important; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
		overflow: hidden; font-size: 12px !important; line-height: 1.5 !important; margin: 6px 0 0 !important;
	}

	/* ระยะห่าง/สเกลมือถือ: กระชับแต่ไม่ซ่อน */
	.mp .mp-sec { padding: 8px 0; }
	.mk-dash { padding: 12px 13px 11px; }
	.mk-dash__body { gap: 12px; }
	.mp-split__side { padding: 0; }
}

/* มือถือ: รูปข่าวเต็มความกว้าง → ยกเลิกการดึงข้อความขึ้นทับรูป */
@media (max-width: 600px) {
	.ns-body { margin-top: 0 !important; }
	.ns-img { border-radius: 14px 14px 0 0 !important; }
	.ns-slide { overflow: hidden; border-radius: 14px; }
}

/* ============================================================
 * 35. เก็บงาน 4 จุด (ไม่รื้อโครงสร้าง)
 * ============================================================ */

/* ---------- 1) Desktop Hero: มิติ Premium Liquid Glass ---------- */
.mp-hero__r { position: relative; perspective: 1000px; }
.mp-hero__r::before {           /* แสงเรืองรองใต้แท่น */
	content: ''; position: absolute; left: 6%; right: 6%; bottom: 4%; height: 46%;
	background: radial-gradient(ellipse at 50% 60%, rgba(124, 58, 237, .34), rgba(37, 99, 235, .18) 48%, transparent 72%);
	filter: blur(28px); z-index: 0; pointer-events: none;
}
.mp-hero__r::after {            /* การ์ดแก้วลอยประกอบ */
	content: ''; position: absolute; right: 2%; top: 6%; width: 96px; height: 62px; border-radius: 16px;
	background: linear-gradient(150deg, rgba(255, 255, 255, .78), rgba(255, 255, 255, .34));
	border: 1px solid rgba(255, 255, 255, .95);
	box-shadow: 0 16px 34px rgba(23, 43, 84, .16), inset 0 1px 0 rgba(255, 255, 255, .95);
	-webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
	transform: rotate(7deg); pointer-events: none; z-index: 3;
}
.mp-device { position: relative; z-index: 2; transform: rotateY(-7deg) rotateX(3deg); transform-style: preserve-3d; }
.mp-device__screen { position: relative; overflow: hidden; box-shadow: inset 0 1px 0 rgba(255,255,255,.95), 0 26px 50px rgba(23, 43, 84, .16) !important; }
.mp-device__screen::before {    /* reflection แนวทแยง */
	content: ''; position: absolute; inset: 0; pointer-events: none;
	background: linear-gradient(118deg, rgba(255, 255, 255, .55) 0%, rgba(255, 255, 255, .08) 34%, transparent 52%);
}
.mp-device__screen::after {     /* ขอบกระจกด้านบน */
	content: ''; position: absolute; left: 0; right: 0; top: 0; height: 42%;
	background: linear-gradient(180deg, rgba(255, 255, 255, .42), transparent);
	pointer-events: none;
}
.mp-device__bars i { box-shadow: 0 8px 16px rgba(37, 99, 235, .22), inset 0 1px 0 rgba(255,255,255,.45); }
.mp-device__base { box-shadow: 0 20px 34px rgba(23, 43, 84, .20); }
.mp-device__badge { z-index: 4; }

/* ---------- 2) CTAM+ : ลดพื้นที่ว่าง Desktop ---------- */
@media (min-width: 601px) {
	.mk-dash { padding: 15px 18px 12px; }
	.mk-dash__hd { margin-bottom: 9px; }
	.mk-dash--ctam .mk-dash__body { gap: 22px; align-items: center; }
	.mk-dash--ctam .mk-wait { max-width: 210px; }
	.mk-dash--ctam .mk-dash__note { margin: 2px 0; }
	.mk-dash__ft { margin-top: 8px; }
}

/* ---------- 2b) Donut มือถือ: สมดุลกลางการ์ด ---------- */
@media (max-width: 600px) {
	.mk-dash--ctam .mk-dash__body { flex-direction: column; align-items: center; text-align: center; gap: 8px; }
	.mk-dash--ctam .mk-dash__donut { width: 84px; height: 84px; flex-basis: 84px; }
	.mk-dash--ctam .mk-dash__donut::after { inset: 10px; }
	.mk-dash--ctam .mk-wait { width: 100%; }
}

/* ---------- 3) Smart Hospital มือถือ: ป้ายไม่ลอยขวา ---------- */
@media (max-width: 600px) {
	.mk-dash--sh .mk-dash__body { flex-direction: column; align-items: stretch; gap: 8px; }
	.mk-dash--sh .mk-wait { width: 100% !important; text-align: center; }
	.mk-dash--sh .mk-sh { width: 100%; }
}

/* ---------- 4) มือถือ: ลดช่องว่างก่อน Footer + Footer กลมกลืน ---------- */
@media (max-width: 600px) {
	.mp-contact { padding-bottom: 4px !important; }
	body.mp-front #pg-main { padding-bottom: 0 !important; }
	body.mp-front .pg-footer {
		margin-top: 0 !important;
		padding: 9px 0 7px !important;
		background: linear-gradient(180deg, rgba(255, 255, 255, .46) 0%, rgba(255, 255, 255, .24) 100%) !important;
		border-top: 1px solid rgba(255, 255, 255, .9) !important;
		box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95) !important;
		-webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
	}
}

/* CTAM+ Desktop: กระชับขึ้นอีกเล็กน้อย ให้ไม่โล่ง */
@media (min-width: 601px) {
	.mk-dash--ctam .mk-dash__donut { width: 100px; height: 100px; flex: 0 0 100px; }
	.mk-dash--ctam .mk-dash__donut::after { inset: 11px; }
	.mk-dash--ctam .mk-dash__donut-mid b { font-size: 19px; }
	.mk-dash--ctam .mk-dash__body { gap: 18px; }
}

/* CTAM+ Desktop: จัดกลาง ลดความโล่ง + donut ใหญ่ขึ้นให้เต็มสัดส่วน */
@media (min-width: 601px) {
	.mk-dash--ctam .mk-dash__body { justify-content: center; gap: 20px; }
	.mk-dash--ctam .mk-dash__donut { width: 118px; height: 118px; flex: 0 0 118px; }
	.mk-dash--ctam .mk-dash__donut::after { inset: 13px; }
	.mk-dash--ctam .mk-dash__donut-mid b { font-size: 22px; }
	.mk-dash--ctam .mk-wait { max-width: 200px; text-align: left; }
	.mk-dash--ctam .mk-dash__note { text-align: left; }
}

/* CTAM+ Desktop โหมดยังไม่มีข้อมูล: จัดคอลัมน์กลางการ์ด ไม่อ้างว้างด้านขวา */
@media (min-width: 601px) {
	.mk-dash--ctam:not(:has(.mk-dash__list)) .mk-dash__body {
		flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px;
	}
	.mk-dash--ctam:not(:has(.mk-dash__list)) .mk-wait { max-width: none; text-align: center; }
	.mk-dash--ctam:not(:has(.mk-dash__list)) .mk-dash__note { text-align: center; margin: 0; }
	.mk-dash--ctam:not(:has(.mk-dash__list)) .mk-dash__ft { text-align: center; }
}

/* ============================================================
 * 36. CTAM+ 100% ผ่านครบ — เน้นสีเขียว (เฉพาะเมื่อผ่านครบจริง)
 * ============================================================ */
.mk-dash__donut.is-full {
	box-shadow: 0 0 0 3px rgba(16, 185, 129, .16), 0 12px 26px rgba(16, 185, 129, .22);
}
.mk-dash__donut.is-full .mk-dash__donut-mid b { color: #0f9d6b; }
.mk-dash__donut.is-full .mk-dash__donut-mid i { color: #0f9d6b; }

/* ============================================================
 * 37. NEWS — Premium Liquid Glass Carousel (เต็มความกว้าง)
 * ============================================================ */
.mp-news .mp-hd { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.mp-news .mp-hd__l { min-width: 0; }
.mp-news .mp-hd__s { margin: 3px 0 0; font-size: 13px; color: rgba(58, 74, 107, .82); }

.nsx { position: relative; }
.nsx__viewport {
	overflow: hidden; border-radius: 26px;
	border: 1px solid rgba(255, 255, 255, .9);
	box-shadow: 0 22px 48px rgba(23, 43, 84, .12), inset 0 1px 0 rgba(255, 255, 255, .95);
	background: linear-gradient(160deg, rgba(255, 255, 255, .5), rgba(255, 255, 255, .26));
}
.nsx__track { display: flex; transition: transform .62s cubic-bezier(.22, .61, .36, 1); will-change: transform; }
.nsx__slide {
	flex: 0 0 100%; min-width: 0;
	display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: stretch;
}

/* ---- รูป 60% ---- */
.nsx__media { position: relative; display: block; overflow: hidden; min-height: 400px; background: #e8eefc; }
.nsx__img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.015); transition: transform .8s ease; }
.nsx__slide.is-active .nsx__img { transform: scale(1); }
.nsx__media::after {
	content: ''; position: absolute; inset: 0; pointer-events: none;
	background: linear-gradient(92deg, rgba(12, 26, 54, .22) 0%, rgba(12, 26, 54, .04) 38%, rgba(255, 255, 255, .06) 100%);
}
.nsx__img--ph { background: linear-gradient(140deg, #c7d7fb, #dfe7ff 45%, #e9e2ff); }
.nsx__tag {
	position: absolute; left: 16px; top: 16px; z-index: 2;
	font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
	color: #123; padding: 6px 12px; border-radius: 999px;
	background: rgba(255, 255, 255, .82); border: 1px solid rgba(255, 255, 255, .95);
	-webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
	box-shadow: 0 8px 18px rgba(23, 43, 84, .14);
}

/* ---- Glass panel 40% ---- */
.nsx__panel {
	position: relative; display: flex; flex-direction: column; justify-content: center; gap: 11px;
	padding: 30px 32px;
	background: linear-gradient(158deg, rgba(255, 255, 255, .78) 0%, rgba(255, 255, 255, .46) 100%);
	-webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%);
	border-left: 1px solid rgba(255, 255, 255, .9);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95);
}
.nsx__panel::before {
	content: ''; position: absolute; left: 0; top: 18%; bottom: 18%; width: 1px;
	background: linear-gradient(180deg, transparent, rgba(37, 99, 235, .22), transparent);
}
.nsx__date { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: #2563eb; }
.nsx__t { margin: 0; font-size: 25px; line-height: 1.28; font-weight: 800; letter-spacing: -.01em; color: #0f2040; }
.nsx__t a { color: inherit; text-decoration: none; }
.nsx__t a:hover { color: #1d4ed8; }
.nsx__d { margin: 0; font-size: 14.5px; line-height: 1.72; color: rgba(58, 74, 107, .88); }
.nsx__more { align-self: flex-start; margin-top: 6px; }

/* ---- แถบควบคุม ---- */
.nsx__bar {
	display: flex; align-items: center; gap: 12px; justify-content: center;
	margin: 14px auto 0; padding: 7px 12px; width: fit-content;
	border-radius: 999px; border: 1px solid rgba(255, 255, 255, .9);
	background: linear-gradient(160deg, rgba(255, 255, 255, .62), rgba(255, 255, 255, .32));
	-webkit-backdrop-filter: blur(14px) saturate(150%); backdrop-filter: blur(14px) saturate(150%);
	box-shadow: 0 12px 26px rgba(23, 43, 84, .1), inset 0 1px 0 rgba(255, 255, 255, .95);
}
.nsx__btn {
	width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .95);
	background: rgba(255, 255, 255, .66); color: #1d3a6b; font-size: 20px; line-height: 1;
	display: grid; place-items: center; cursor: pointer; transition: background .2s, transform .2s, box-shadow .2s;
	box-shadow: 0 6px 14px rgba(23, 43, 84, .1);
}
.nsx__btn:hover { background: #fff; transform: translateY(-1px); box-shadow: 0 10px 20px rgba(23, 43, 84, .16); }
.nsx__btn:disabled { opacity: .45; cursor: default; transform: none; }
.nsx__count { font-size: 13px; font-weight: 700; color: #1d3a6b; display: inline-flex; align-items: baseline; gap: 2px; min-width: 44px; justify-content: center; }
.nsx__count b { font-size: 15px; }
.nsx__count i { font-style: normal; opacity: .55; }
.nsx__count span { opacity: .7; }
.nsx__dots { display: flex; align-items: center; gap: 7px; }
.nsx__dot {
	width: 8px; height: 8px; padding: 0; border-radius: 999px; border: 0; cursor: pointer;
	background: rgba(37, 99, 235, .26); transition: width .25s ease, background .25s ease;
}
.nsx__dot.is-active { width: 24px; background: linear-gradient(90deg, #2563eb, #7c3aed); }

@media (max-width: 900px) {
	.nsx__slide { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
	.nsx__media { min-height: 340px; }
	.nsx__panel { padding: 22px 24px; }
	.nsx__t { font-size: 21px; }
}

@media (max-width: 600px) {
	.mp-news .mp-hd { margin-bottom: 10px; }
	.nsx__viewport { border-radius: 18px; }
	.nsx__slide { grid-template-columns: 1fr; }
	.nsx__media { min-height: 0; height: 196px; }
	.nsx__img { transform: none; }
	.nsx__tag { left: 12px; top: 12px; font-size: 10.5px; padding: 5px 10px; }
	.nsx__panel { padding: 13px 15px 15px; gap: 7px; border-left: 0; border-top: 1px solid rgba(255, 255, 255, .9); }
	.nsx__panel::before { display: none; }
	.nsx__date { font-size: 11px; }
	.nsx__t { font-size: 17px; line-height: 1.35; }
	.nsx__d {
		font-size: 12.5px; line-height: 1.6; margin: 0;
		display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
	}
	.nsx__more { margin-top: 2px; }
	.nsx__bar { margin-top: 10px; gap: 9px; padding: 6px 9px; }
	.nsx__btn { width: 34px; height: 34px; font-size: 18px; }
	.nsx__count { min-width: 40px; font-size: 12px; }
	.nsx__dot { width: 7px; height: 7px; }
	.nsx__dot.is-active { width: 20px; }
}

/* 37b. จำกัดความสูงการ์ดข่าว Desktop ให้สมดุล (ไม่ยืดตามข่าวที่ข้อความยาวสุด) */
@media (min-width: 601px) {
	.nsx__slide { height: 452px; }
	.nsx__media { min-height: 0; height: 100%; }
	.nsx__panel { overflow: hidden; }
	.nsx__t {
		display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
	}
	.nsx__d {
		display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
	}
}

/* 37c. ปุ่มอ่านต่อไม่เต็มความกว้างบนมือถือ */
.nsx__more { width: auto !important; flex: 0 0 auto; padding: 0 18px; min-height: 40px; }
@media (max-width: 600px) {
	.nsx__more { padding: 0 16px; min-height: 38px; font-size: 13.5px; }
}

/* ============================================================
 * 38. NEWS REDESIGN — ภาพเต็มการ์ด + Floating Glass Panel
 * ============================================================ */
.nsx__viewport {
	border-radius: 26px;
	background: transparent;
	border: 1px solid rgba(255, 255, 255, .8);
	box-shadow: 0 28px 60px rgba(18, 34, 66, .18), inset 0 1px 0 rgba(255, 255, 255, .7);
}
.nsx__slide {
	position: relative; display: block; height: 432px; padding: 0;
	border-radius: 26px; overflow: hidden;
}
.nsx__media {
	position: absolute; inset: 0; width: 100%; height: 100%;
	min-height: 0; border-radius: 0; background: #dfe7f6;
}
.nsx__img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; transform: scale(1.02); }
.nsx__slide.is-active .nsx__img { transform: scale(1); }
.nsx__media::after {
	background:
		linear-gradient(90deg, rgba(9, 20, 40, .34) 0%, rgba(9, 20, 40, .10) 30%, rgba(9, 20, 40, .02) 52%, rgba(9, 20, 40, .18) 78%, rgba(9, 20, 40, .34) 100%),
		linear-gradient(180deg, rgba(9, 20, 40, .18) 0%, transparent 34%, transparent 70%, rgba(9, 20, 40, .22) 100%);
}
.nsx__tag { left: 20px; top: 20px; }

/* ---- Floating glass panel ---- */
.nsx__panel {
	position: absolute; right: 26px; top: 50%; transform: translateY(-50%);
	width: 43%; max-width: 520px; z-index: 2;
	padding: 26px 28px 24px; border-radius: 22px;
	display: flex; flex-direction: column; gap: 10px; justify-content: center;
	background: linear-gradient(155deg, rgba(255, 255, 255, .60) 0%, rgba(255, 255, 255, .26) 100%);
	-webkit-backdrop-filter: blur(26px) saturate(180%); backdrop-filter: blur(26px) saturate(180%);
	border: 1px solid rgba(255, 255, 255, .72);
	box-shadow:
		0 26px 56px rgba(8, 20, 44, .30),
		0 4px 14px rgba(8, 20, 44, .16),
		0 0 70px rgba(124, 58, 237, .16),
		inset 0 1px 0 rgba(255, 255, 255, .92),
		inset 0 -24px 48px rgba(255, 255, 255, .10);
	overflow: hidden;
}
.nsx__panel::before {          /* reflection streak */
	content: ''; position: absolute; left: -34%; top: -70%; width: 70%; height: 240%;
	transform: rotate(19deg); pointer-events: none;
	background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .50) 48%, rgba(255, 255, 255, 0) 100%);
	opacity: .55;
}
.nsx__panel::after {           /* rim light + bottom glow */
	content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .30), inset 0 -34px 60px rgba(37, 99, 235, .10);
}
.nsx__date {
	position: relative; z-index: 1; align-self: flex-start; margin: 0;
	padding: 4px 11px; border-radius: 999px;
	background: rgba(255, 255, 255, .72); border: 1px solid rgba(255, 255, 255, .9);
	font-size: 11.5px; letter-spacing: .06em; color: #1d4ed8;
	box-shadow: 0 4px 10px rgba(9, 20, 40, .10);
}
.nsx__t { position: relative; z-index: 1; margin: 2px 0 0; font-size: 27px; line-height: 1.26; font-weight: 800; color: #0a1730; text-shadow: 0 1px 0 rgba(255, 255, 255, .5); }
.nsx__d { position: relative; z-index: 1; margin: 0; font-size: 14.5px; line-height: 1.7; color: rgba(22, 37, 66, .92); }
.nsx__more { position: relative; z-index: 1; }
.nsx__panel .nsx__more { background: linear-gradient(135deg, #2563eb, #4f46e5); box-shadow: 0 10px 22px rgba(37, 99, 235, .34); border: 1px solid rgba(255, 255, 255, .35); }

@media (max-width: 1100px) and (min-width: 601px) {
	.nsx__slide { height: 400px; }
	.nsx__panel { width: 46%; right: 18px; padding: 20px 22px; }
	.nsx__t { font-size: 22px; }
}

@media (max-width: 600px) {
	.nsx__viewport { border-radius: 20px; }
	.nsx__slide { height: auto; border-radius: 20px; overflow: visible; }
	.nsx__media {
		position: relative; inset: auto; width: 100%; height: 208px;
		border-radius: 20px 20px 0 0; overflow: hidden;
	}
	.nsx__img { transform: none; }
	.nsx__media::after { background: linear-gradient(180deg, rgba(9, 20, 40, .18), transparent 40%, rgba(9, 20, 40, .28) 100%); }
	.nsx__tag { left: 13px; top: 13px; }
	.nsx__panel {
		position: relative; right: auto; top: auto; transform: none;
		width: auto; max-width: none; margin: -26px 8px 8px;
		padding: 14px 15px 15px; border-radius: 18px; gap: 7px;
	}
	.nsx__date { font-size: 10.5px; padding: 3px 9px; }
	.nsx__t { font-size: 18px; line-height: 1.34; margin-top: 0; }
	.nsx__d {
		font-size: 12.5px; line-height: 1.62;
		display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
	}
	.nsx__more { margin-top: 2px; }
}

/* ============================================================
 * 39. QUICK ACCESS — 4 การ์ดเท่ากัน (Desktop 4 คอลัมน์ / มือถือ 2×2)
 * ============================================================ */
.mk-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 6px 0 26px; }
.mk-cards .mk-card { width: 100%; min-width: 0; }
.mk-cards .mk-card:last-child { grid-column: auto; }

@media (max-width: 900px) {
	.mk-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}
@media (max-width: 600px) {
	.mk-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0 0 8px; }
	.mk-cards .mk-card:last-child { grid-column: auto; }
}

/* ============================================================
 * 41. Smart Hospital — รองรับข้อความ "ระดับเพชร/ทอง/เงิน"
 * ============================================================ */
.mk-sh__row { gap: 9px; padding: 9px 12px; }
.mk-sh__n { font-size: 14.5px; letter-spacing: -.01em; }
.mk-sh__c { flex: 0 0 auto; white-space: nowrap; }

@media (max-width: 600px) {
	.mk-sh__row { gap: 2px; padding: 7px 5px; }
	.mk-sh__n { font-size: 11.5px; line-height: 1.25; letter-spacing: 0; text-align: center; }
	.mk-sh__c { font-size: 10.5px; }
}

/* ============================================================
 * 42. NEWS — Premium Liquid Glass Panel + Control Dock (redesign)
 * ============================================================ */

/* ---------- การ์ด: ภาพเต็มพื้นที่ + เงาลึก ---------- */
.nsx__viewport {
	border: 1px solid rgba(255, 255, 255, .55);
	box-shadow:
		0 40px 80px -28px rgba(6, 16, 40, .55),
		0 18px 40px -20px rgba(6, 16, 40, .35),
		inset 0 1px 0 rgba(255, 255, 255, .55);
}
.nsx__media::after {
	background:
		linear-gradient(90deg, rgba(6, 14, 32, .28) 0%, rgba(6, 14, 32, .06) 26%, rgba(6, 14, 32, 0) 46%, rgba(6, 14, 32, .10) 70%, rgba(6, 14, 32, .30) 100%),
		linear-gradient(180deg, rgba(6, 14, 32, .16) 0%, transparent 30%, transparent 72%, rgba(6, 14, 32, .26) 100%);
}

/* ---------- Floating glass panel ---------- */
.nsx__panel {
	right: 30px;
	width: 43%;
	max-width: 520px;
	padding: 30px 32px 28px;
	border-radius: 28px;
	gap: 12px;
	background:
		radial-gradient(130% 100% at 8% 0%, rgba(255, 255, 255, .62) 0%, rgba(255, 255, 255, .10) 46%, rgba(255, 255, 255, 0) 70%),
		radial-gradient(90% 70% at 100% 100%, rgba(255, 255, 255, .28) 0%, rgba(255, 255, 255, 0) 60%),
		linear-gradient(158deg, rgba(255, 255, 255, .42) 0%, rgba(255, 255, 255, .16) 55%, rgba(255, 255, 255, .26) 100%);
	-webkit-backdrop-filter: blur(30px) saturate(200%) brightness(1.04);
	backdrop-filter: blur(30px) saturate(200%) brightness(1.04);
	border: 1px solid rgba(255, 255, 255, .52);
	box-shadow:
		0 44px 80px -26px rgba(4, 12, 30, .62),
		0 10px 24px -8px rgba(4, 12, 30, .30),
		0 0 90px -10px rgba(124, 58, 237, .28),
		inset 0 1px 0 rgba(255, 255, 255, .98),
		inset 0 -1px 0 rgba(255, 255, 255, .22),
		inset 0 0 0 1px rgba(255, 255, 255, .12);
	isolation: isolate;
	overflow: hidden;
}
/* gloss ด้านบน */
.nsx__panel::before {
	content: ''; position: absolute; inset: 0 0 auto 0; height: 46%; z-index: 0; pointer-events: none;
	background: linear-gradient(180deg, rgba(255, 255, 255, .55) 0%, rgba(255, 255, 255, .12) 55%, rgba(255, 255, 255, 0) 100%);
	opacity: .75;
}
/* แถบแสงสะท้อนเฉียง */
.nsx__panel::after {
	content: ''; position: absolute; left: -46%; top: -90%; width: 78%; height: 280%; z-index: 0; pointer-events: none;
	transform: rotate(21deg);
	background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .55) 48%, rgba(255, 255, 255, 0) 100%);
	filter: blur(7px); opacity: .45;
}
/* glow สีม่วงด้านล่าง (ชั้นใน) */
.nsx__glass-glow {
	position: absolute; inset: auto -25% -55% -25%; height: 75%; z-index: 0; pointer-events: none;
	background: radial-gradient(58% 100% at 50% 100%, rgba(99, 102, 241, .34) 0%, rgba(99, 102, 241, 0) 72%);
	filter: blur(26px);
}
.nsx__date, .nsx__t, .nsx__d, .nsx__more { position: relative; z-index: 2; }

.nsx__date {
	align-self: flex-start; margin: 0 0 2px;
	padding: 5px 13px; border-radius: 999px;
	background: linear-gradient(150deg, rgba(255, 255, 255, .72), rgba(255, 255, 255, .38));
	border: 1px solid rgba(255, 255, 255, .85);
	-webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
	box-shadow: 0 8px 18px -6px rgba(10, 24, 52, .28), inset 0 1px 0 rgba(255, 255, 255, .95);
	font-size: 11px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase;
	color: #1d4ed8;
}
.nsx__t {
	margin: 0; font-size: 28px; line-height: 1.22; font-weight: 800; letter-spacing: -.018em;
	color: #07142c; text-shadow: 0 1px 0 rgba(255, 255, 255, .65);
}
.nsx__d {
	margin: 0; font-size: 14.5px; line-height: 1.75; color: rgba(16, 30, 58, .86);
	text-shadow: 0 1px 0 rgba(255, 255, 255, .35);
}
.nsx__more {
	align-self: flex-start; margin-top: 6px; padding: 0 22px; min-height: 46px;
	border-radius: 999px; font-size: 14px; font-weight: 700; color: #fff;
	background: linear-gradient(135deg, #2563eb 0%, #4f46e5 55%, #7c3aed 100%);
	border: 1px solid rgba(255, 255, 255, .35);
	box-shadow: 0 16px 30px -10px rgba(37, 99, 235, .65), inset 0 1px 0 rgba(255, 255, 255, .45);
	transition: transform .28s cubic-bezier(.2, .8, .2, 1), box-shadow .28s, filter .28s;
}
.nsx__more:hover { transform: translateY(-2px); filter: brightness(1.06); box-shadow: 0 22px 38px -12px rgba(37, 99, 235, .7), inset 0 1px 0 rgba(255, 255, 255, .5); }
.nsx__more:active { transform: translateY(0) scale(.985); }

/* ---------- Control dock ---------- */
.nsx__bar {
	margin: 18px auto 0; padding: 9px 12px 9px 10px; gap: 12px;
	border-radius: 999px;
	background:
		radial-gradient(120% 120% at 12% 0%, rgba(255, 255, 255, .6) 0%, rgba(255, 255, 255, .1) 55%),
		linear-gradient(160deg, rgba(255, 255, 255, .5) 0%, rgba(255, 255, 255, .22) 100%);
	-webkit-backdrop-filter: blur(24px) saturate(190%); backdrop-filter: blur(24px) saturate(190%);
	border: 1px solid rgba(255, 255, 255, .62);
	box-shadow:
		0 24px 46px -18px rgba(6, 16, 40, .45),
		0 4px 12px -4px rgba(6, 16, 40, .22),
		inset 0 1px 0 rgba(255, 255, 255, .95);
}
.nsx__btn {
	width: 46px; height: 46px; border-radius: 50%;
	background: linear-gradient(150deg, rgba(255, 255, 255, .72), rgba(255, 255, 255, .38));
	border: 1px solid rgba(255, 255, 255, .85);
	color: #14284f;
	box-shadow: 0 10px 20px -8px rgba(6, 16, 40, .4), inset 0 1px 0 rgba(255, 255, 255, .95);
	transition: transform .26s cubic-bezier(.2, .8, .2, 1), box-shadow .26s, background .26s;
}
.nsx__btn svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; }
.nsx__btn:hover { transform: translateY(-2px) scale(1.05); background: #fff; box-shadow: 0 16px 28px -10px rgba(6, 16, 40, .45), inset 0 1px 0 #fff; }
.nsx__btn:active { transform: translateY(0) scale(.95); }
.nsx__btn:disabled { opacity: .4; transform: none; box-shadow: none; }

.nsx__count { min-width: 66px; display: inline-flex; align-items: baseline; justify-content: center; gap: 3px; color: #14284f; font-variant-numeric: tabular-nums; }
.nsx__count b {
	font-size: 18px; font-weight: 800; letter-spacing: -.02em;
	background: linear-gradient(135deg, #2563eb, #7c3aed);
	-webkit-background-clip: text; background-clip: text; color: transparent;
}
.nsx__count i { font-style: normal; font-size: 11px; opacity: .38; margin: 0 1px; }
.nsx__count span { font-size: 12.5px; font-weight: 700; color: rgba(20, 40, 79, .55); }

.nsx__dots { gap: 7px; padding: 0 4px; }
.nsx__dot {
	width: 7px; height: 7px; background: rgba(20, 40, 79, .22);
	transition: width .32s cubic-bezier(.2, .8, .2, 1), background .32s, transform .2s, box-shadow .32s;
}
.nsx__dot:hover { transform: scale(1.4); background: rgba(20, 40, 79, .42); }
.nsx__dot.is-active {
	width: 26px;
	background: linear-gradient(90deg, #2563eb, #7c3aed);
	box-shadow: 0 0 14px rgba(99, 102, 241, .55);
}

/* ---------- Mobile ---------- */
@media (max-width: 600px) {
	.nsx__viewport { border-radius: 22px; }
	.nsx__media { height: 216px; border-radius: 22px 22px 0 0; }
	.nsx__panel {
		margin: -38px 9px 10px;
		padding: 17px 17px 16px;
		border-radius: 24px;
		gap: 8px;
		background:
			radial-gradient(130% 90% at 8% 0%, rgba(255, 255, 255, .68) 0%, rgba(255, 255, 255, .16) 52%, rgba(255, 255, 255, 0) 74%),
			linear-gradient(160deg, rgba(255, 255, 255, .52) 0%, rgba(255, 255, 255, .28) 100%);
		-webkit-backdrop-filter: blur(26px) saturate(190%); backdrop-filter: blur(26px) saturate(190%);
		border: 1px solid rgba(255, 255, 255, .68);
		box-shadow:
			0 26px 46px -18px rgba(4, 12, 30, .55),
			0 6px 16px -6px rgba(4, 12, 30, .28),
			inset 0 1px 0 rgba(255, 255, 255, .98);
	}
	.nsx__panel::before { height: 40%; opacity: .6; }
	.nsx__date { font-size: 10px; padding: 4px 10px; letter-spacing: .07em; }
	.nsx__t { font-size: 19px; line-height: 1.3; }
	.nsx__d { font-size: 13px; line-height: 1.62; -webkit-line-clamp: 3; }
	.nsx__more { min-height: 42px; padding: 0 20px; font-size: 13.5px; }
	.nsx__bar { margin-top: 14px; padding: 7px 9px; gap: 10px; width: 100%; max-width: 330px; justify-content: space-between; }
	.nsx__btn { width: 46px; height: 46px; }
	.nsx__count { min-width: 58px; }
	.nsx__count b { font-size: 16px; }
	.nsx__count span { font-size: 11.5px; }
	.nsx__dot { width: 6px; height: 6px; }
	.nsx__dot.is-active { width: 20px; }
}

/* 42b. แก้ทับซ้อน: ปุ่มไม่ให้มี padding ภายนอก / panel มือถือเต็มความกว้าง */
.nsx__btn { padding: 0; box-sizing: border-box; line-height: 1; }
.nsx__btn svg { display: block; }
@media (max-width: 600px) {
	.nsx__panel {
		position: relative; right: auto; top: auto; transform: none;
		width: auto; max-width: none;
	}
}

/* ============================================================
 * 43. NEWS — ปรับให้เป็นแก้วโปร่งจริง (ลดความทึบ) + text contrast
 * ============================================================ */
/* เงามืดด้านขวาใต้กระจก เพื่อให้ตัวอักษรคมและแก้วดูโปร่ง */
.nsx__slide::after {
	content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
	background: linear-gradient(90deg, rgba(4, 11, 24, 0) 48%, rgba(4, 11, 24, .16) 76%, rgba(4, 11, 24, .32) 100%);
}
.nsx__panel {
	width: 41%;
	z-index: 2;
	background:
		radial-gradient(120% 90% at 0% 0%, rgba(255, 255, 255, .52) 0%, rgba(255, 255, 255, .06) 40%, rgba(255, 255, 255, 0) 62%),
		linear-gradient(160deg, rgba(255, 255, 255, .28) 0%, rgba(255, 255, 255, .10) 52%, rgba(255, 255, 255, .18) 100%);
	-webkit-backdrop-filter: blur(34px) saturate(210%) brightness(1.05);
	backdrop-filter: blur(34px) saturate(210%) brightness(1.05);
	border: 1px solid rgba(255, 255, 255, .52);
	padding: 32px 34px 30px;
}
.nsx__panel::before { height: 40%; opacity: .55; }
.nsx__panel::after { opacity: .30; }
.nsx__glass-glow { opacity: .55; }

.nsx__t { color: #05101f; text-shadow: 0 1px 18px rgba(255, 255, 255, .55), 0 1px 2px rgba(255, 255, 255, .45); }
.nsx__d { color: rgba(9, 20, 40, .93); text-shadow: 0 1px 12px rgba(255, 255, 255, .55); }
.nsx__date { background: linear-gradient(150deg, rgba(255, 255, 255, .8), rgba(255, 255, 255, .55)); }

/* Controls: ทุกชิ้นเป็นชิ้นแก้วทรงเดียวกัน */
.nsx__bar { gap: 10px; padding: 8px 10px; }
.nsx__count {
	min-width: auto; padding: 7px 14px; border-radius: 999px;
	background: linear-gradient(150deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, .26));
	border: 1px solid rgba(255, 255, 255, .72);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), 0 6px 14px -8px rgba(6, 16, 40, .35);
}
.nsx__dots {
	padding: 6px 10px; border-radius: 999px;
	background: rgba(255, 255, 255, .2);
	box-shadow: inset 0 1px 2px rgba(6, 16, 40, .10);
}

@media (max-width: 600px) {
	.nsx__panel {
		width: auto; padding: 17px 17px 16px;
		background:
			radial-gradient(120% 90% at 0% 0%, rgba(255, 255, 255, .62) 0%, rgba(255, 255, 255, .12) 46%, rgba(255, 255, 255, 0) 68%),
			linear-gradient(160deg, rgba(255, 255, 255, .34) 0%, rgba(255, 255, 255, .22) 100%);
		-webkit-backdrop-filter: blur(28px) saturate(200%); backdrop-filter: blur(28px) saturate(200%);
	}
	.nsx__slide::after { background: linear-gradient(180deg, rgba(4, 11, 24, 0) 40%, rgba(4, 11, 24, .10) 75%, rgba(4, 11, 24, .18) 100%); }
	.nsx__bar { gap: 8px; padding: 7px 8px; }
	.nsx__count { padding: 6px 11px; }
	.nsx__dots { padding: 5px 8px; }
}

/* ============================================================
 * 44. NEWS — เก็บรายละเอียดแก้ว: blur ลึก, ขอบSpecular, เงาโทนเย็น
 * ============================================================ */
.nsx__panel {
	-webkit-backdrop-filter: blur(46px) saturate(205%) brightness(1.02);
	backdrop-filter: blur(46px) saturate(205%) brightness(1.02);
	border: 1px solid rgba(255, 255, 255, .62);
	box-shadow:
		0 44px 88px -30px rgba(16, 24, 62, .62),
		0 14px 30px -10px rgba(24, 32, 78, .38),
		0 0 80px -14px rgba(124, 58, 237, .30),
		0 0 0 1px rgba(10, 20, 45, .10),
		inset 0 1px 0 rgba(255, 255, 255, 1),
		inset 0 0 0 1px rgba(255, 255, 255, .26),
		inset 0 -1px 0 rgba(255, 255, 255, .28);
}
/* ปุ่มอ่านต่อ: เงานุ่มโทนเย็น + gloss ด้านบน */
.nsx__more {
	position: relative; overflow: hidden;
	box-shadow:
		0 18px 34px -12px rgba(49, 46, 200, .70),
		0 0 26px -6px rgba(79, 70, 229, .45),
		inset 0 1px 0 rgba(255, 255, 255, .50);
}
.nsx__more::after {
	content: ''; position: absolute; inset: 0 0 54% 0; pointer-events: none;
	background: linear-gradient(180deg, rgba(255, 255, 255, .35), rgba(255, 255, 255, 0));
}
/* ขอบแก้วบาง ๆ ด้านใน ให้เห็น "ความหนา" ของกระจก */
.nsx__viewport { box-shadow: 0 40px 80px -30px rgba(16, 24, 62, .55), 0 18px 40px -22px rgba(24, 32, 78, .35), inset 0 1px 0 rgba(255, 255, 255, .6); }
@media (max-width: 600px) {
	.nsx__panel {
		-webkit-backdrop-filter: blur(36px) saturate(200%); backdrop-filter: blur(36px) saturate(200%);
		border: 1px solid rgba(255, 255, 255, .7);
		box-shadow:
			0 28px 50px -20px rgba(16, 24, 62, .55),
			0 8px 18px -8px rgba(24, 32, 78, .35),
			0 0 0 1px rgba(10, 20, 45, .08),
			inset 0 1px 0 rgba(255, 255, 255, 1),
			inset 0 0 0 1px rgba(255, 255, 255, .22);
	}
}

/* ============================================================
 * 45. NEWS — แก้ให้เป็น "แก้วขาวโปร่ง" (ไม่ใช่กล่องมืด/ทึบ)
 * ============================================================ */
/* เอา scrim มืดหลังกระจกออก — เป็นสาเหตุที่แก้วดูเทาหม่น */
.nsx__slide::after { background: none; }

.nsx__panel {
	background:
		radial-gradient(130% 100% at 0% 0%, rgba(255, 255, 255, .72) 0%, rgba(255, 255, 255, .18) 42%, rgba(255, 255, 255, 0) 66%),
		linear-gradient(158deg, rgba(255, 255, 255, .56) 0%, rgba(255, 255, 255, .30) 52%, rgba(255, 255, 255, .40) 100%);
	border: 1px solid rgba(255, 255, 255, .78);
	-webkit-backdrop-filter: blur(42px) saturate(190%) brightness(1.06);
	backdrop-filter: blur(42px) saturate(190%) brightness(1.06);
	box-shadow:
		0 42px 84px -28px rgba(18, 26, 64, .55),
		0 12px 26px -10px rgba(24, 32, 78, .32),
		0 0 70px -16px rgba(124, 58, 237, .26),
		0 0 0 1px rgba(10, 20, 45, .06),
		inset 0 1px 0 rgba(255, 255, 255, 1),
		inset 0 0 0 1px rgba(255, 255, 255, .45),
		inset 0 -1px 0 rgba(255, 255, 255, .5);
}
.nsx__panel::before { opacity: .85; height: 38%; }
.nsx__t { color: #08142b; text-shadow: 0 1px 0 rgba(255, 255, 255, .6); }
.nsx__d { color: rgba(10, 22, 44, .90); text-shadow: 0 1px 0 rgba(255, 255, 255, .45); }

@media (max-width: 600px) {
	.nsx__panel {
		background:
			radial-gradient(130% 100% at 0% 0%, rgba(255, 255, 255, .78) 0%, rgba(255, 255, 255, .22) 46%, rgba(255, 255, 255, 0) 70%),
			linear-gradient(160deg, rgba(255, 255, 255, .62) 0%, rgba(255, 255, 255, .40) 100%);
		border: 1px solid rgba(255, 255, 255, .85);
	}
	.nsx__slide::after { background: none; }
}

/* ============================================================
 * 46. NEWS — กระจกขาวนวล (frosted white) ไม่ดูดสีพื้นหลังจนเป็นเทา
 * ============================================================ */
.nsx__panel {
	background:
		radial-gradient(125% 95% at 8% 0%, rgba(255, 255, 255, .96) 0%, rgba(255, 255, 255, .40) 42%, rgba(255, 255, 255, 0) 68%),
		linear-gradient(160deg, rgba(255, 255, 255, .84) 0%, rgba(255, 255, 255, .62) 48%, rgba(255, 255, 255, .78) 100%);
	-webkit-backdrop-filter: blur(40px) saturate(175%) brightness(1.10);
	backdrop-filter: blur(40px) saturate(175%) brightness(1.10);
	border: 1px solid rgba(255, 255, 255, .9);
	box-shadow:
		0 40px 80px -26px rgba(18, 26, 64, .48),
		0 12px 26px -10px rgba(24, 32, 78, .28),
		0 0 64px -14px rgba(124, 58, 237, .22),
		0 0 0 1px rgba(255, 255, 255, .55),
		inset 0 1px 0 rgba(255, 255, 255, 1),
		inset 0 0 0 1px rgba(255, 255, 255, .55),
		inset 0 -1px 0 rgba(255, 255, 255, .6);
}
.nsx__panel::before { opacity: .9; height: 34%; }
.nsx__glass-glow { opacity: .35; }
.nsx__t { color: #0a1730; }
.nsx__d { color: rgba(14, 26, 50, .88); }

@media (max-width: 600px) {
	.nsx__panel {
		background:
			radial-gradient(125% 95% at 8% 0%, rgba(255, 255, 255, .98) 0%, rgba(255, 255, 255, .48) 46%, rgba(255, 255, 255, 0) 72%),
			linear-gradient(160deg, rgba(255, 255, 255, .88) 0%, rgba(255, 255, 255, .70) 100%);
		border: 1px solid rgba(255, 255, 255, .92);
	}
}

/* ============================================================
 * 47. NEWS — ไล่ความโปร่งแบบ Liquid (มุมบนขวาโปร่ง เห็นภาพทะลุ)
 * ============================================================ */
.nsx__panel {
	background:
		radial-gradient(72% 62% at 100% 0%, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .30) 62%, rgba(255, 255, 255, .60) 100%),
		radial-gradient(85% 70% at 0% 100%, rgba(255, 255, 255, .55) 0%, rgba(255, 255, 255, .12) 60%, rgba(255, 255, 255, 0) 100%),
		linear-gradient(158deg, rgba(255, 255, 255, .66) 0%, rgba(255, 255, 255, .44) 50%, rgba(255, 255, 255, .58) 100%);
	border: 1px solid rgba(255, 255, 255, .82);
}
.nsx__panel::before { opacity: .8; height: 30%; }
@media (max-width: 600px) {
	.nsx__panel {
		background:
			radial-gradient(80% 60% at 100% 0%, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .34) 60%, rgba(255, 255, 255, .66) 100%),
			linear-gradient(160deg, rgba(255, 255, 255, .74) 0%, rgba(255, 255, 255, .58) 100%);
	}
}

/* ============================================================
 * 48. NEWS — ชั้นภาพเบลอภายในกระจก (ให้เห็น "ทะลุ" จริงทุกเบราว์เซอร์)
 * ============================================================ */
.nsx__panel { overflow: hidden; }
.nsx__bg {
	position: absolute; inset: -46px; z-index: 0; pointer-events: none;
	background-size: cover; background-position: 50% 35%;
	filter: blur(24px) saturate(1.12) brightness(1.02);
	transform: scale(1.18);
	opacity: .62;
}
.nsx__glass-glow { z-index: 1; }
.nsx__panel::before, .nsx__panel::after { z-index: 1; }
.nsx__date, .nsx__t, .nsx__d, .nsx__more { z-index: 3; }

/* ลดความขาวลง ให้ภาพเบลอทะลุผ่านได้ */
.nsx__panel {
	background:
		radial-gradient(120% 90% at 0% 0%, rgba(255, 255, 255, .62) 0%, rgba(255, 255, 255, .10) 46%, rgba(255, 255, 255, 0) 70%),
		linear-gradient(158deg, rgba(255, 255, 255, .52) 0%, rgba(255, 255, 255, .30) 52%, rgba(255, 255, 255, .40) 100%);
	border: 1px solid rgba(255, 255, 255, .78);
}
@media (max-width: 600px) {
	.nsx__bg { inset: -34px; opacity: .58; filter: blur(20px) saturate(1.1); }
	.nsx__panel {
		background:
			radial-gradient(120% 90% at 0% 0%, rgba(255, 255, 255, .70) 0%, rgba(255, 255, 255, .14) 48%, rgba(255, 255, 255, 0) 72%),
			linear-gradient(160deg, rgba(255, 255, 255, .56) 0%, rgba(255, 255, 255, .36) 100%);
	}
}

/* ============================================================
 * 49. NEWS — เก็บ contrast + ขอบแก้ววิ้ง
 * ============================================================ */
.nsx__d {
	color: #16233d; font-weight: 500; letter-spacing: .002em;
	text-shadow: 0 1px 0 rgba(255, 255, 255, .75), 0 0 14px rgba(255, 255, 255, .45);
}
.nsx__t { text-shadow: 0 1px 0 rgba(255, 255, 255, .8), 0 0 20px rgba(255, 255, 255, .5); }
.nsx__panel {
	border: 1px solid rgba(255, 255, 255, .88);
	box-shadow:
		0 42px 84px -28px rgba(18, 26, 64, .50),
		0 12px 26px -10px rgba(24, 32, 78, .30),
		0 0 64px -16px rgba(124, 58, 237, .22),
		inset 0 1px 0 rgba(255, 255, 255, 1),
		inset 0 0 0 1px rgba(255, 255, 255, .5),
		inset 0 -1px 0 rgba(255, 255, 255, .55);
}
/* เส้นแสงวิ้งขอบบน */
.nsx__panel::before {
	opacity: 1; height: 2px; border-radius: 2px;
	background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .95) 22%, rgba(255, 255, 255, .95) 78%, rgba(255, 255, 255, 0) 100%);
}

/* ============================================================
 * 50. NEWS PANEL — Clean Premium Frosted Glass (final spec)
 * ขาวนวล .93 · blur 8px · radius 22 · เงาชั้นเดียว · ไม่มีชั้นเอฟเฟกต์
 * ============================================================ */
.nsx__bg,
.nsx__glass-glow { display: none !important; }
.nsx__panel::before,
.nsx__panel::after { display: none !important; }

.nsx__panel {
	background: rgba(255, 255, 255, .93);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	border: 1px solid rgba(255, 255, 255, .96);
	border-radius: 22px;
	padding: 28px 30px 26px;
	box-shadow: 0 18px 42px -18px rgba(15, 23, 42, .30), 0 0 0 1px rgba(15, 23, 42, .05);
	overflow: hidden;
}
.nsx__date {
	background: #ffffff;
	border: 1px solid rgba(20, 33, 61, .10);
	color: #1d4ed8;
	-webkit-backdrop-filter: none; backdrop-filter: none;
	box-shadow: none;
	font-size: 11px; letter-spacing: .06em;
}
.nsx__t {
	color: #14213D; font-weight: 800; text-shadow: none;
	font-size: 27px; line-height: 1.28; letter-spacing: -.01em;
}
.nsx__d {
	color: #334155; font-weight: 400; text-shadow: none;
	font-size: 15px; line-height: 1.72;
}
.nsx__more { text-shadow: none; }

@media (max-width: 600px) {
	.nsx__panel {
		background: rgba(255, 255, 255, .95);
		border-radius: 22px;
		padding: 18px 18px 17px;
		margin: -38px 10px 10px;
		box-shadow: 0 14px 30px -14px rgba(15, 23, 42, .30), 0 0 0 1px rgba(15, 23, 42, .05);
	}
	.nsx__date { font-size: 10.5px; }
	.nsx__t { font-size: 19.5px; line-height: 1.34; }
	.nsx__d { font-size: 13.5px; line-height: 1.62; }
}

/* ============================================================
 * 51. NEWS — Hero Overlay ตามภาพอ้างอิง (แก้วเข้มเต็มความกว้างด้านล่าง)
 * ============================================================ */
.nsx__viewport { border-radius: 22px; background: #0b1526; }
.nsx__slide {
	position: relative; display: block; height: 480px;
	border-radius: 22px; overflow: hidden; padding: 0;
}
.nsx__media {
	position: absolute; inset: 0; width: 100%; height: 100%;
	min-height: 0; border-radius: 0; background: #0b1526;
}
.nsx__media .nsx__img, .nsx__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nsx__media::after {
	background:
		linear-gradient(180deg, rgba(6, 12, 26, .18) 0%, rgba(6, 12, 26, 0) 32%, rgba(6, 12, 26, .10) 62%, rgba(6, 12, 26, .42) 100%);
}

.nsx__panel {
	position: absolute; left: 0; right: 0; bottom: 0; top: auto;
	width: auto; max-width: none; margin: 0;
	padding: 26px 32px 26px;
	border: 0; border-top: 1px solid rgba(255, 255, 255, .16);
	border-radius: 0 0 22px 22px;
	background: linear-gradient(180deg, rgba(8, 15, 30, .30) 0%, rgba(8, 15, 30, .70) 44%, rgba(8, 15, 30, .88) 100%);
	-webkit-backdrop-filter: blur(16px) saturate(135%);
	backdrop-filter: blur(16px) saturate(135%);
	box-shadow: none;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	grid-template-areas:
		"meta meta"
		"title title"
		"desc btn";
	gap: 9px 28px;
	align-items: end;
	overflow: visible;
	transform: none;
}
.nsx__panel::before, .nsx__panel::after { display: none !important; }

.nsx__meta { grid-area: meta; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.nsx__tag {
	position: static; left: auto; top: auto;
	display: inline-flex; align-items: center; height: 27px; padding: 0 13px;
	border-radius: 999px;
	background: rgba(147, 197, 253, .20);
	border: 1px solid rgba(191, 219, 254, .50);
	-webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
	color: #e0edff; font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: none;
}
.nsx__date {
	display: inline-flex; align-items: center; gap: 7px; margin: 0; padding: 0;
	background: none; border: 0; box-shadow: none; border-radius: 0;
	-webkit-backdrop-filter: none; backdrop-filter: none;
	color: rgba(255, 255, 255, .82); font-size: 12.5px; font-weight: 500;
	letter-spacing: .01em; text-transform: none;
}
.nsx__date svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }

.nsx__t {
	grid-area: title; margin: 0; color: #fff;
	font-size: 32px; line-height: 1.24; font-weight: 800; letter-spacing: -.012em;
	text-shadow: 0 2px 16px rgba(0, 0, 0, .40);
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.nsx__t a { color: inherit; text-decoration: none; }
.nsx__d {
	grid-area: desc; margin: 0; max-width: 780px;
	color: rgba(255, 255, 255, .90); font-size: 14.5px; line-height: 1.66;
	text-shadow: 0 1px 10px rgba(0, 0, 0, .35);
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.nsx__more {
	grid-area: btn; align-self: end; justify-self: end;
	display: inline-flex; align-items: center; gap: 9px;
	height: 46px; padding: 0 22px; border-radius: 999px;
	background: rgba(255, 255, 255, .12);
	border: 1px solid rgba(255, 255, 255, .55);
	-webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
	color: #fff; font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap;
	box-shadow: none; text-shadow: none;
	transition: background .26s ease, color .26s ease, border-color .26s ease, transform .26s ease;
}
.nsx__more svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; transition: transform .26s ease; }
.nsx__more:hover { background: #fff; color: #14213D; border-color: #fff; transform: translateY(-1px); filter: none; }
.nsx__more:hover svg { transform: translateX(3px); }
.nsx__more::after { display: none !important; }

@media (max-width: 600px) {
	.nsx__slide { height: 400px; border-radius: 20px; }
	.nsx__viewport { border-radius: 20px; }
	.nsx__panel {
		padding: 16px 18px 18px;
		border-radius: 0 0 20px 20px;
		grid-template-columns: 1fr;
		grid-template-areas: "meta" "title" "desc" "btn";
		gap: 7px;
		background: linear-gradient(180deg, rgba(8, 15, 30, .22) 0%, rgba(8, 15, 30, .72) 40%, rgba(8, 15, 30, .90) 100%);
		-webkit-backdrop-filter: blur(14px) saturate(130%); backdrop-filter: blur(14px) saturate(130%);
	}
	.nsx__tag { height: 24px; padding: 0 11px; font-size: 10.5px; }
	.nsx__date { font-size: 11.5px; }
	.nsx__date svg { width: 13px; height: 13px; }
	.nsx__t { font-size: 21px; line-height: 1.32; -webkit-line-clamp: 2; }
	.nsx__d { font-size: 13px; line-height: 1.6; -webkit-line-clamp: 3; }
	.nsx__more { justify-self: start; height: 42px; padding: 0 18px; font-size: 13.5px; margin-top: 3px; }
}


/* 51b. ไม่ตัดคำกลางประโยคบน Desktop */
.nsx__d { display: block; -webkit-line-clamp: unset; overflow: visible; }
@media (max-width: 600px) {
	.nsx__d { display: -webkit-box; -webkit-line-clamp: 3; overflow: hidden; }
}

/* ============================================================
 * 52. NEWS — Pixel-accurate Liquid Glass Card (ตาม Blueprint)
 * ============================================================ */
.nsx__slide { height: 430px; border-radius: 26px; overflow: hidden; }
.nsx__viewport { border-radius: 26px; }
.nsx__media { position: absolute; inset: 0; width: 100%; height: 100%; }
.nsx__media .nsx__img, .nsx__media img { filter: none; }

.nsx__panel {
	position: absolute; left: 20px; right: 20px; bottom: 20px; top: auto;
	width: auto; max-width: none; margin: 0;
	padding: 14px 18px;
	border: 1px solid rgba(255, 255, 255, .65);
	border-radius: 22px;
	background: rgba(35, 45, 85, .30);
	-webkit-backdrop-filter: blur(12px) saturate(140%);
	backdrop-filter: blur(12px) saturate(140%);
	box-shadow: 0 12px 32px rgba(15, 23, 42, .16);
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 0;
	overflow: hidden;
	transform: none;
}
/* reflection บาง ๆ ขอบบน */
.nsx__panel::before {
	content: ''; display: block !important; position: absolute;
	left: 10px; right: 10px; top: 0; height: 1px; z-index: 1;
	background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .70) 30%, rgba(255, 255, 255, .70) 70%, rgba(255, 255, 255, 0) 100%);
	opacity: 1;
}
.nsx__panel::after { display: none !important; }

.nsx__body { display: flex; flex-direction: column; gap: 5px; min-width: 0; padding-right: 18px; }
.nsx__cta {
	display: flex; align-items: center; align-self: stretch;
	padding-left: 18px;
	border-left: 1px solid rgba(255, 255, 255, .30);
}

.nsx__meta { display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; }
.nsx__tag, .nsx__date {
	display: inline-flex; align-items: center; gap: 5px;
	height: 22px; padding: 0 9px; border-radius: 999px;
	background: rgba(255, 255, 255, .16);
	border: 1px solid rgba(255, 255, 255, .38);
	-webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
	color: #fff; font-size: 10.5px; font-weight: 600; letter-spacing: .02em;
	text-transform: none; position: static; left: auto; top: auto;
	box-shadow: none; margin: 0; white-space: nowrap;
}
.nsx__date svg { width: 11px; height: 11px; stroke-width: 1.9; opacity: .9; }

.nsx__t {
	grid-area: auto; margin: 0; color: #fff;
	font-size: 20px; line-height: 1.30; font-weight: 800; letter-spacing: -.005em;
	text-shadow: 0 1px 8px rgba(0, 0, 0, .38);
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.nsx__d {
	grid-area: auto; margin: 0; max-width: none;
	color: rgba(255, 255, 255, .93); font-size: 12.5px; line-height: 1.55;
	text-shadow: 0 1px 6px rgba(0, 0, 0, .30);
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.nsx__more {
	grid-area: auto; justify-self: auto; align-self: center;
	display: inline-flex; align-items: center; gap: 7px;
	height: 40px; padding: 0 16px; border-radius: 999px;
	background: rgba(255, 255, 255, .14);
	border: 1px solid rgba(255, 255, 255, .55);
	-webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
	color: #fff; font-size: 13px; font-weight: 600; white-space: nowrap;
	box-shadow: none;
	transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.nsx__more svg { width: 15px; height: 15px; stroke-width: 2; }
.nsx__more:hover { background: rgba(255, 255, 255, .92); color: #14213D; border-color: rgba(255, 255, 255, .92); }

@media (max-width: 600px) {
	.nsx__slide { height: 320px; border-radius: 20px; }
	.nsx__viewport { border-radius: 20px; }
	.nsx__panel {
		left: 12px; right: 12px; bottom: 12px;
		padding: 12px 13px;
		border-radius: 18px;
		grid-template-columns: minmax(0, 1fr);
		gap: 0;
	}
	.nsx__body { padding-right: 0; gap: 4px; }
	.nsx__cta { border-left: 0; padding-left: 0; padding-top: 8px; align-self: auto; }
	.nsx__tag, .nsx__date { height: 20px; padding: 0 8px; font-size: 10px; }
	.nsx__date svg { width: 10px; height: 10px; }
	.nsx__t { font-size: 17px; line-height: 1.32; }
	.nsx__d { font-size: 11.5px; line-height: 1.5; }
	.nsx__more { height: 34px; padding: 0 13px; font-size: 12px; gap: 6px; }
	.nsx__more svg { width: 13px; height: 13px; }
}

/* 52b. Mobile: ให้ภาพสูงขึ้น + ลดข้อความย่อเหลือ 1 บรรทัด เพื่อไม่บังภาพ */
@media (max-width: 600px) {
	.nsx__slide { height: 340px; }
	.nsx__panel { padding: 11px 12px; }
	.nsx__t { font-size: 16.5px; line-height: 1.3; }
	.nsx__d { font-size: 11px; line-height: 1.45; -webkit-line-clamp: 1; }
	.nsx__cta { padding-top: 7px; }
}

/* ============================================================
 * 53. NEWS — Glass เทาอมฟ้านุ่ม · ปุ่มกระจกขาว · ไม่มีป้าย/วันที่
 * ============================================================ */
.nsx__panel {
	background: rgba(96, 110, 138, .32);
	-webkit-backdrop-filter: blur(10px) saturate(130%);
	backdrop-filter: blur(10px) saturate(130%);
	border: 1px solid rgba(255, 255, 255, .58);
	border-radius: 20px;
	box-shadow: 0 10px 26px rgba(15, 23, 42, .18);
	padding: 14px 16px;
	gap: 0;
}
.nsx__panel::before {
	background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .45) 35%, rgba(255, 255, 255, .45) 65%, rgba(255, 255, 255, 0) 100%);
}
.nsx__body { padding-right: 16px; gap: 4px; }
.nsx__cta { border-left: 0; padding-left: 0; }

.nsx__t { font-size: 20px; line-height: 1.28; text-shadow: 0 1px 6px rgba(10, 20, 40, .35); }
.nsx__d { font-size: 12.5px; line-height: 1.55; color: rgba(255, 255, 255, .95); text-shadow: 0 1px 5px rgba(10, 20, 40, .30); }

.nsx__more {
	background: rgba(255, 255, 255, .88);
	border: 1px solid rgba(255, 255, 255, .95);
	color: #1e3a8a;
	font-weight: 700;
	box-shadow: 0 6px 16px rgba(15, 23, 42, .18);
	-webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.nsx__more:hover {
	background: #fff; color: #14213D; border-color: #fff;
	box-shadow: 0 10px 22px rgba(15, 23, 42, .22);
	transform: translateY(-1px);
}

@media (max-width: 600px) {
	.nsx__panel { padding: 11px 12px; border-radius: 16px; }
	.nsx__body { padding-right: 0; gap: 3px; }
	.nsx__t { font-size: 16.5px; }
	.nsx__d { font-size: 11px; line-height: 1.45; -webkit-line-clamp: 2; }
	.nsx__more { height: 32px; padding: 0 13px; font-size: 11.5px; }
}

/* 53b. Mobile: ปุ่มอยู่ขวาของข้อความ เพื่อให้กล่องเตี้ยและไม่บังภาพ */
@media (max-width: 600px) {
	.nsx__panel { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
	.nsx__body { padding-right: 10px; }
	.nsx__cta { align-self: end; }
	.nsx__more { height: 32px; padding: 0 11px; font-size: 11.5px; gap: 5px; }
	.nsx__more svg { width: 12px; height: 12px; }
}

/* ============================================================
 * 54. NEWS — ปุ่มกระจกขาว (override specificity .nsx__panel .nsx__more)
 * ============================================================ */
.nsx__panel .nsx__more,
.page .nsx__panel a.nsx__more {
	background: rgba(255, 255, 255, .88) !important;
	background-image: none !important;
	border: 1px solid rgba(255, 255, 255, .95) !important;
	color: #1e3a8a !important;
	font-weight: 700;
	box-shadow: 0 6px 16px rgba(15, 23, 42, .18) !important;
	-webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
	text-shadow: none;
}
.nsx__panel .nsx__more svg { stroke: #1e3a8a; }
.nsx__panel .nsx__more:hover {
	background: #ffffff !important;
	color: #14213D !important;
	border-color: #ffffff !important;
	box-shadow: 0 10px 22px rgba(15, 23, 42, .22) !important;
	transform: translateY(-1px);
}
.nsx__panel .nsx__more:hover svg { stroke: #14213D; }

/* ============================================================
 * 55. NEWS — กระจกเทาอมฟ้าอ่อนนุ่ม (สว่างขึ้น เห็นภาพทะลุชัด)
 * ============================================================ */
.nsx__panel {
	background:
		linear-gradient(180deg, rgba(255, 255, 255, .16) 0%, rgba(255, 255, 255, .05) 100%),
		rgba(132, 146, 174, .26);
	-webkit-backdrop-filter: blur(9px) saturate(125%);
	backdrop-filter: blur(9px) saturate(125%);
	border: 1px solid rgba(255, 255, 255, .62);
	box-shadow: 0 10px 26px rgba(15, 23, 42, .16);
}

/* ============================================================
 * 56. HERO IMAGE (intro.jpg) + SMART HOSPITAL RESULTS TABLE
 * ============================================================ */
.mp-hero__art {
	display: flex; align-items: center; justify-content: center;
	width: 100%; min-height: 300px;
}
.mp-hero__img {
	display: block; width: 100%; height: auto; max-height: 380px;
	object-fit: contain; object-position: center;
	mix-blend-mode: multiply;
	filter: drop-shadow(0 26px 48px rgba(37, 64, 150, .20));
}

/* หัวข้อ Dashboard ที่ยาวขึ้น */
.mk-dash--sh .mk-dash__t { font-size: 17px; line-height: 1.42; }

/* ตารางผลประเมิน Smart Hospital ในหน้ารายละเอียด */
.mk-sh-res { margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(20, 40, 80, .10); }
.mk-sh-res__ea { display: flex; justify-content: space-between; gap: 10px; margin: 0 0 8px; font-size: 12px; color: #47536b; }
.mk-sh-res__ea b { color: #14213D; letter-spacing: .02em; }
.mk-sh-res__t { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 12.5px; }
.mk-sh-res__t th, .mk-sh-res__t td { padding: 7px 8px; border-bottom: 1px solid rgba(20, 40, 80, .08); text-align: right; }
.mk-sh-res__t thead th { font-size: 11px; font-weight: 700; color: #5b6b88; background: rgba(239, 244, 255, .75); }
.mk-sh-res__t thead th:first-child, .mk-sh-res__t tbody th { text-align: left; }
.mk-sh-res__t tbody th { font-weight: 600; color: #1d2b45; }
.mk-sh-res__t tbody td { color: #14213D; font-variant-numeric: tabular-nums; }
.mk-sh-res__t tr.is-total th, .mk-sh-res__t tr.is-total td { font-weight: 800; background: rgba(37, 99, 235, .06); border-bottom: 0; }
.mk-sh-res__lv { display: flex; align-items: center; justify-content: space-between; margin: 10px 0 0; font-size: 13px; color: #47536b; }
.mk-sh-res__lv b { padding: 3px 12px; border-radius: 999px; font-size: 12.5px; }
.mk-sh-res__lv b.is-diamond { background: #e0edff; color: #0b4aa2; }
.mk-sh-res__lv b.is-gold { background: #fff4dc; color: #8a5a00; }
.mk-sh-res__lv b.is-silver { background: #eef1f6; color: #3b4a63; }

@media (max-width: 980px) {
	.mp-hero__img { max-height: 300px; }
}
@media (max-width: 600px) {
	.mp-hero__art { min-height: 0; padding: 2px 0 6px; }
	.mp-hero__img { max-height: 200px; }
	.mk-dash--sh .mk-dash__t { font-size: 15px; }
	.mk-sh-res__ea { flex-direction: column; gap: 2px; font-size: 11px; }
	.mk-sh-res__t { font-size: 11.5px; }
	.mk-sh-res__t th, .mk-sh-res__t td { padding: 6px 5px; }
}

/* 57. HERO IMAGE — แสดงบนมือถือ/แท็บเล็ต (เดิมถูกซ่อน) */
@media (max-width: 980px) {
	.mp-hero__r { display: block !important; margin-top: 10px; }
	.mp-hero__art { min-height: 0; }
	.mp-hero__img { max-height: 240px; }
}
@media (max-width: 600px) {
	.mp-hero__r { margin-top: 6px; }
	.mp-hero__img { max-height: 190px; }
}

/* ============================================================
 * 58. HERO MASK + SMART HOSPITAL TILES ตาม Mockup ล่าสุด
 * ============================================================ */
/* --- Hero: เฟดขอบทั้ง 4 ด้าน ไม่มีกรอบขาว --- */
.mp-hero__img {
	max-height: 400px;
	mix-blend-mode: multiply;
	-webkit-mask-image:
		radial-gradient(120% 120% at 50% 48%, #000 58%, rgba(0, 0, 0, .55) 76%, transparent 94%),
		linear-gradient(to bottom, transparent 0%, #000 7%, #000 93%, transparent 100%);
	-webkit-mask-composite: source-in;
	mask-image:
		radial-gradient(120% 120% at 50% 48%, #000 58%, rgba(0, 0, 0, .55) 76%, transparent 94%),
		linear-gradient(to bottom, transparent 0%, #000 7%, #000 93%, transparent 100%);
	mask-composite: intersect;
}

/* --- Smart Hospital: 3 ช่องแก้วเท่ากัน --- */
.mk-dash--sh .mk-dash__body { padding-bottom: 0; }
.mk-sh__tiles {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
}
.mk-sh__tile {
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	gap: 3px; padding: 14px 8px 12px;
	border-radius: 16px;
	border: 1px solid rgba(255, 255, 255, .75);
	box-shadow:
		0 10px 22px -14px rgba(20, 40, 90, .40),
		inset 0 1px 0 rgba(255, 255, 255, .95);
	-webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
	text-align: center;
}
.mk-sh__tile--diamond { background: linear-gradient(160deg, rgba(224, 236, 255, .96) 0%, rgba(191, 219, 254, .60) 100%); }
.mk-sh__tile--gold    { background: linear-gradient(160deg, rgba(255, 246, 221, .96) 0%, rgba(253, 224, 171, .62) 100%); }
.mk-sh__tile--silver  { background: linear-gradient(160deg, rgba(240, 242, 249, .96) 0%, rgba(211, 217, 231, .62) 100%); }

.mk-sh__ic { font-size: 25px; line-height: 1.15; filter: drop-shadow(0 4px 8px rgba(20, 40, 90, .18)); }
.mk-sh__n  { font-size: 12px; font-weight: 700; color: #33405a; letter-spacing: .01em; }
.mk-sh__v  { display: flex; align-items: baseline; gap: 4px; margin-top: 1px; }
.mk-sh__v b { font-size: 30px; line-height: 1; font-weight: 800; color: #0f1e3d; letter-spacing: -.02em; }
.mk-sh__v i { font-style: normal; font-size: 11px; font-weight: 600; color: #5a6a86; }

/* --- แถวล่าง: เส้นคั่นซ้าย-ขวา + ข้อความขอบเขต --- */
.mk-sh__foot { display: flex; align-items: center; gap: 12px; margin: 14px 0 2px; }
.mk-sh__rule { flex: 1 1 auto; height: 1px; background: linear-gradient(90deg, rgba(20, 40, 80, 0) 0%, rgba(20, 40, 80, .18) 50%, rgba(20, 40, 80, 0) 100%); }
.mk-sh__scope { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: #47536b; white-space: nowrap; }
.mk-sh__scope svg { width: 14px; height: 14px; color: #7b8aa6; }
.mk-sh__scope b { color: #14213D; font-weight: 800; }

/* ปุ่มดูรายละเอียดมุมขวาล่าง */
.mk-dash--sh .mk-dash__ft { display: flex; justify-content: flex-end; }

@media (max-width: 600px) {
	.mp-hero__img { max-height: 200px; }
	.mk-sh__tiles { gap: 7px; }
	.mk-sh__tile { padding: 11px 5px 9px; border-radius: 14px; gap: 2px; }
	.mk-sh__ic { font-size: 21px; }
	.mk-sh__n { font-size: 10.5px; }
	.mk-sh__v b { font-size: 24px; }
	.mk-sh__v i { font-size: 10px; }
	.mk-sh__foot { gap: 8px; margin-top: 11px; }
	.mk-sh__scope { font-size: 10.5px; gap: 4px; }
	.mk-sh__scope svg { width: 12px; height: 12px; }
}

/* 59. แก้ทับซ้อน: .mk-sh เดิมเป็น grid 3 คอลัมน์ (ทำให้ tiles แคบ) */
.mk-sh { display: block; grid-template-columns: none; gap: 0; }
.mk-sh__tiles { width: 100%; }

/* 60. Hero: ลบเงาที่ยังทำให้เห็นกรอบ + เฟดขอบแรงขึ้น; เส้นคั่นชัดขึ้น */
.mp-hero__img {
	filter: none !important;
	-webkit-mask-image:
		radial-gradient(112% 112% at 50% 50%, #000 52%, rgba(0, 0, 0, .35) 74%, transparent 88%),
		linear-gradient(to bottom, transparent 0%, #000 6%, #000 94%, transparent 100%),
		linear-gradient(to right, transparent 0%, #000 5%, #000 95%, transparent 100%);
	-webkit-mask-composite: source-in;
	mask-image:
		radial-gradient(112% 112% at 50% 50%, #000 52%, rgba(0, 0, 0, .35) 74%, transparent 88%),
		linear-gradient(to bottom, transparent 0%, #000 6%, #000 94%, transparent 100%),
		linear-gradient(to right, transparent 0%, #000 5%, #000 95%, transparent 100%);
	mask-composite: intersect;
}
.mk-sh__rule {
	height: 1px; min-width: 22px;
	background: rgba(20, 40, 80, .16);
	background-image: linear-gradient(90deg, rgba(20, 40, 80, 0) 0%, rgba(20, 40, 80, .22) 45%, rgba(20, 40, 80, .22) 55%, rgba(20, 40, 80, 0) 100%);
}

/* 61. Hero: สร้าง backdrop ให้ multiply ทำงาน (ลบพื้นขาวของ JPG) + เฟดขอบ */
.mp-hero__art {
	background: radial-gradient(130% 120% at 62% 42%, #f6f8ff 0%, #e9edfc 52%, #e5eafb 100%);
	border-radius: 26px;
	-webkit-mask-image: radial-gradient(115% 115% at 50% 50%, #000 62%, rgba(0, 0, 0, .55) 80%, transparent 94%);
	mask-image: radial-gradient(115% 115% at 50% 50%, #000 62%, rgba(0, 0, 0, .55) 80%, transparent 94%);
	padding: 6px 4px;
}
.mp-hero__img { mix-blend-mode: multiply; }

/* 62. Hero: ใช้สีพื้นหลังเดียวกับหน้าเว็บ + เฟดเร็วกว่า ไม่ให้เห็นกรอบ */
.mp-hero__art {
	background: linear-gradient(160deg, #e6ebfb 0%, #e4e8fb 100%);
	padding: 0;
	border-radius: 0;
	-webkit-mask-image: radial-gradient(118% 118% at 50% 50%, #000 38%, rgba(0, 0, 0, .45) 66%, transparent 86%);
	mask-image: radial-gradient(118% 118% at 50% 50%, #000 38%, rgba(0, 0, 0, .45) 66%, transparent 86%);
}

/* 63. Hero: แยกชั้น wash ด้านหลังภาพ เพื่อให้ multiply ทำงาน (ไม่ถูก mask isolate) */
.mp-hero__art { position: relative; background: none; -webkit-mask-image: none; mask-image: none; padding: 0; border-radius: 0; }
.mp-hero__wash {
	position: absolute; inset: 0; z-index: 0; pointer-events: none;
	background: linear-gradient(160deg, #e6ebfb 0%, #e4e8fb 100%);
	-webkit-mask-image: radial-gradient(120% 120% at 50% 50%, #000 42%, rgba(0, 0, 0, .5) 70%, transparent 90%);
	mask-image: radial-gradient(120% 120% at 50% 50%, #000 42%, rgba(0, 0, 0, .5) 70%, transparent 90%);
}
.mp-hero__img { position: relative; z-index: 1; mix-blend-mode: multiply; }

/* 64. Hero: ขยาย wash เกินขอบภาพ + ปิด mask บนภาพ กันขาวขอบ */
.mp-hero__img { -webkit-mask-image: none !important; mask-image: none !important; }
.mp-hero__wash {
	inset: -30px;
	background: linear-gradient(160deg, #e6ebfb 0%, #e3e7fb 100%);
	-webkit-mask-image: radial-gradient(125% 125% at 50% 50%, #000 52%, rgba(0, 0, 0, .45) 76%, transparent 95%);
	mask-image: radial-gradient(125% 125% at 50% 50%, #000 52%, rgba(0, 0, 0, .45) 76%, transparent 95%);
}

/* 65. กัน overflow จาก wash ที่ขยายเกินกรอบ */
.mp-hero { overflow: hidden; }
.mp-hero__art { overflow: hidden; }

/* 66. Aurora ต่อเนื่องทั้งหน้า — เลิกใช้ fixed (ทำให้เป็นแถบซ้ำตาม viewport) */
body.mp-front { position: relative; }
body.mp-front::before {
	position: absolute;
	top: 0; left: 0; right: 0; bottom: 0;
	height: auto;
	background:
		radial-gradient(900px 620px at 10% 120px, rgba(56, 132, 255, .26), rgba(0, 0, 0, 0) 62%),
		radial-gradient(860px 560px at 90% 240px, rgba(124, 58, 237, .24), rgba(0, 0, 0, 0) 64%),
		radial-gradient(900px 640px at 16% 38%, rgba(14, 165, 233, .20), rgba(0, 0, 0, 0) 66%),
		radial-gradient(880px 620px at 84% 58%, rgba(99, 102, 241, .20), rgba(0, 0, 0, 0) 66%),
		radial-gradient(1000px 720px at 50% 94%, rgba(14, 165, 233, .22), rgba(0, 0, 0, 0) 66%);
	-webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 92%, rgba(0, 0, 0, .35) 100%);
	mask-image: linear-gradient(to bottom, #000 0%, #000 92%, rgba(0, 0, 0, .35) 100%);
}


/* ============================================================
   ยง43 INTERNAL GLASS PAGE โ€” Gutenberg content (page-glass.php)
   Scope: .pd-page / .pd-content (เนเธกเนเธเธนเธเธเธฑเธ Page ID เธซเธฃเธทเธญ Block ID)
   เธฃเธญเธเธฃเธฑเธ Heading / Paragraph / Group / Columns / List / Details /
   Buttons / Image เธ—เธตเนเน€เธเธดเนเธกเนเธซเธกเนเธเธฒเธ Gutenberg เนเธ”เธขเนเธกเนเธ•เนเธญเธเนเธเน CSS เธ•เนเธญเธเธฅเนเธญเธ
   ============================================================ */

body.dhg-proto .pd-page { padding: 104px 0 8px; }
.pd-content { width: min(1080px, calc(100% - 40px)); margin: 0 auto; }

/* ---------- Hero ---------- */
.pd-content > .pd-hero {
  position: relative;
  overflow: hidden;
  margin: 0;
  padding: clamp(36px, 6vw, 68px) clamp(24px, 5vw, 56px);
  border-radius: 30px;
  color: #fff;
  background: linear-gradient(135deg, #0b2a6b 0%, #1e4fd8 46%, #7c3aed 100%);
  box-shadow: 0 24px 60px rgba(30, 64, 175, .28), inset 0 1px 0 rgba(255, 255, 255, .28);
}
.pd-content > .pd-hero::after {
  content: "";
  position: absolute;
  top: -40%; right: -10%;
  width: 62%; height: 130%;
  background:
    radial-gradient(closest-side, rgba(34, 211, 238, .42), transparent 70%),
    radial-gradient(closest-side, rgba(124, 58, 237, .40), transparent 72%);
  filter: blur(30px);
  pointer-events: none;
}
.pd-content > .pd-hero > * { position: relative; z-index: 1; }
.pd-hero h1 {
  color: #fff;
  font-size: clamp(34px, 5.2vw, 56px);
  line-height: 1.12;
  letter-spacing: -.02em;
  margin: .08em 0 .18em;
}
.pd-hero__kicker { font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: #c7d9ff; margin: 0; }
.pd-hero__sub { color: #eaf1ff; font-size: clamp(18px, 2.4vw, 24px); font-weight: 600; line-height: 1.45; margin: 0 0 14px; }
.pd-hero__lead { color: rgba(255, 255, 255, .94); font-size: clamp(15px, 1.6vw, 17px); line-height: 1.85; max-width: 62ch; }
.pd-hero__note { color: rgba(255, 255, 255, .72); font-size: 13px; line-height: 1.7; margin-top: 18px; }
.pd-hero .wp-block-buttons { margin-top: 22px; }
.pd-hero .wp-block-button__link {
  background: #fff; color: #11307a; border-radius: 999px;
  padding: 14px 26px; font-weight: 700; font-size: 15px;
  box-shadow: 0 10px 26px rgba(6, 20, 60, .28);
}
.pd-hero .is-style-outline .wp-block-button__link {
  background: transparent; color: #fff; box-shadow: none;
  border: 1px solid rgba(255, 255, 255, .78);
}

/* ---------- Sections (glass cards) ---------- */
.pd-content .pd-section {
  margin-top: 24px;
  padding: clamp(22px, 3vw, 34px) clamp(20px, 3.4vw, 40px);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, .8);
  background: linear-gradient(180deg, rgba(255, 255, 255, .82), rgba(255, 255, 255, .66));
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  box-shadow: 0 14px 40px rgba(15, 32, 64, .08), inset 0 1px 0 rgba(255, 255, 255, .9);
}
.pd-content .pd-section > * + * { margin-top: 14px; }

/* ---------- Typography ---------- */
.pd-content h2 {
  color: #0B1220;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.35;
  margin: 0 0 4px;
}
.pd-content h3 { color: #0B1220; font-size: clamp(18px, 2vw, 21px); line-height: 1.45; margin: 0 0 4px; }
.pd-content p { color: #1E293B; font-size: clamp(15px, 1.5vw, 17px); line-height: 1.85; margin: 0; }
.pd-content ul, .pd-content ol { margin: 0; padding-left: 1.3em; }
.pd-content li { color: #1E293B; font-size: clamp(15px, 1.5vw, 17px); line-height: 1.8; }
.pd-content li + li { margin-top: 8px; }
.pd-content a { color: #1D4ED8; text-underline-offset: 3px; }

/* ---------- Callout notes ---------- */
.pd-content .pd-note {
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, .72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .85);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.pd-content .pd-note p { font-size: 16px; margin: 0; }
.pd-note--law   { background: linear-gradient(180deg, rgba(219, 234, 254, .88), rgba(239, 246, 255, .72)); border-left: 4px solid #1D4ED8; }
.pd-note--guide { background: linear-gradient(180deg, rgba(220, 252, 231, .88), rgba(240, 253, 244, .72)); border-left: 4px solid #16A34A; }
.pd-note--warn  { background: linear-gradient(180deg, rgba(254, 243, 199, .92), rgba(255, 251, 235, .74)); border-left: 4px solid #D97706; }
.pd-note--do    { background: linear-gradient(180deg, rgba(220, 252, 231, .92), rgba(240, 253, 244, .74)); border-left: 4px solid #16A34A; }
.pd-note--dont  { background: linear-gradient(180deg, rgba(254, 226, 226, .92), rgba(254, 242, 242, .74)); border-left: 4px solid #DC2626; }

/* ---------- FAQ ---------- */
.pd-content .wp-block-details {
  margin-top: 12px;
  padding: 2px 18px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, .85);
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 6px 18px rgba(15, 32, 64, .06);
}
.pd-content .wp-block-details summary {
  position: relative;
  padding: 14px 30px 14px 0;
  cursor: pointer;
  list-style: none;
  color: #0B1220;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
}
.pd-content .wp-block-details summary::-webkit-details-marker { display: none; }
.pd-content .wp-block-details summary::after {
  content: "+";
  position: absolute; right: 0; top: 50%;
  transform: translateY(-50%);
  color: #1D4ED8; font-size: 20px; font-weight: 700;
}
.pd-content .wp-block-details[open] { padding-bottom: 10px; }
.pd-content .wp-block-details[open] summary::after { content: "\2013"; }

/* ---------- Columns / images / misc ---------- */
.pd-content .wp-block-columns { gap: 18px; }
.pd-content .wp-block-column .pd-note { height: 100%; }
.pd-content .wp-block-image img { border-radius: 18px; box-shadow: 0 12px 30px rgba(15, 32, 64, .12); }
.pd-content .wp-block-quote { margin: 0; padding: 14px 18px; border-left: 4px solid #1D4ED8; border-radius: 0 16px 16px 0; background: rgba(255, 255, 255, .7); }
.pd-content .wp-block-separator { border-color: rgba(15, 32, 64, .12); }

/* ---------- Reference buttons ---------- */
.pd-refs .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.pd-refs .wp-block-button { margin: 0; }
.pd-refs .wp-block-button__link {
  padding: 13px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, #1D4ED8, #5B21B6);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 10px 24px rgba(29, 78, 216, .25);
}
.pd-refs .wp-block-button__link:hover { filter: brightness(1.07); }
.pd-refs__note { color: #475569; font-size: 13px; }

/* ---------- Responsive ---------- */
@media (max-width: 782px) {
  body.dhg-proto .pd-page { padding-top: 92px; }
  .pd-content { width: calc(100% - 28px); }
  .pd-content .pd-section { padding: 20px 18px; border-radius: 20px; }
  .pd-content .wp-block-columns { display: block; }
  .pd-content .wp-block-column + .wp-block-column { margin-top: 14px; }
  .pd-content .pd-hero { border-radius: 24px; }
}



/* ---------- ยง43b hero contrast & alignment (specificity fixes) ---------- */
.pd-content .pd-hero { text-align: left; }
.pd-content .pd-hero h1,
.pd-content .pd-hero h2,
.pd-content .pd-hero h2.pd-hero__sub,
.pd-content .pd-hero p,
.pd-content .pd-hero p.pd-hero__lead,
.pd-content .pd-hero p.pd-hero__note,
.pd-content .pd-hero p.pd-hero__kicker { text-align: left; }
.pd-content .pd-hero h1,
.pd-content .pd-hero h2.pd-hero__sub { color: #ffffff; }
.pd-content .pd-hero p.pd-hero__lead { color: rgba(255, 255, 255, .95); }
.pd-content .pd-hero p.pd-hero__note { color: rgba(255, 255, 255, .70); }
.pd-content .pd-hero p.pd-hero__kicker { color: #c7d9ff; }
.pd-content .pd-hero .is-style-outline .wp-block-button__link,
.pd-content .pd-hero .is-style-outline .wp-block-button__link:visited {
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, .85) !important;
  background: rgba(255, 255, 255, .10) !important;
}
.pd-content .pd-hero .wp-block-button__link:hover { filter: brightness(1.05); }



/* ---------- ยง43c constrained layout: เธเธดเธ”เธเนเธฒเธขเน€เธ•เนเธกเธเธงเธฒเธกเธเธงเนเธฒเธเธเธฒเธฃเนเธ” ---------- */
.pd-content .pd-hero.is-layout-constrained > *,
.pd-content .pd-section.is-layout-constrained > *,
.pd-content .pd-note.is-layout-constrained > * {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}



/* ---------- §44 P7.3B: navbar / hero clearance (desktop 2-col hero) ---------- */
/* The floating navbar is position:fixed (top:12px, height:62px -> bottom 74px),
   so it is out of flow. The hero must reserve that space, otherwise its first
   line (the eyebrow tag) renders underneath the glass navbar.
   58px = approved baseline padding (26px) + 32px clearance. */
@media (min-width: 1025px) {
  .mp-hero { padding-top: 58px; }
}
/* Logged-in: keep the floating navbar below the 32px WP admin bar. */
body.admin-bar .pg-nav { top: 44px; }



/* ---------- §45 P7.4.1: long system names on Quick Access cards ---------- */
/* Card titles must wrap (mobile previously forced nowrap + ellipsis, which cut
   "system CTAM+ ..." to one line). All four cards keep an equal height. */
.mk-cards { grid-auto-rows: 1fr; }
.mk-cards .mk-card__t {
  white-space: normal;
  overflow: hidden;
  text-overflow: clip;
  overflow-wrap: break-word;
  word-break: normal;
}

/* ---------- §46 P7.5 + §50 P7.13: Smart Hospital popup (Premium Liquid Glass) ---------- */
html.sh-modal-open { overflow: hidden; }

/* tiles become buttons: reset native styles, keep the approved glass look */
.mk-sh__tile {
  -webkit-appearance: none; appearance: none;
  width: 100%; font: inherit; color: inherit; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
}
.mk-sh__tile:hover { transform: translateY(-2px); }
.mk-sh__tile:focus-visible { outline: 3px solid rgba(29, 78, 216, .45); outline-offset: 3px; }

.sh-modal { position: fixed; inset: 0; z-index: 1200; display: grid; place-items: center; padding: 24px; }
.sh-modal[hidden] { display: none; }

/* overlay — translucent blue-violet haze instead of flat grey */
.sh-modal__ov {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 18% 6%, rgba(84, 108, 200, .32) 0%, rgba(84, 108, 200, 0) 62%),
    linear-gradient(160deg, rgba(38, 54, 118, .46) 0%, rgba(76, 58, 132, .44) 100%);
  -webkit-backdrop-filter: blur(14px) saturate(135%);
  backdrop-filter: blur(14px) saturate(135%);
  animation: shFade .22s ease-out;
}

/* frosted glass panel */
.sh-modal__dlg {
  position: relative; z-index: 1;
  width: min(600px, 100%); max-height: min(78vh, 720px);
  display: flex; flex-direction: column; gap: 14px;
  padding: 22px 22px 18px; border-radius: 24px; overflow: hidden;
  background: linear-gradient(165deg, rgba(255,255,255,.88) 0%, rgba(247,251,255,.74) 52%, rgba(240,246,255,.68) 100%);
  border: 1px solid rgba(255,255,255,.9);
  box-shadow: 0 34px 80px -30px rgba(14,28,58,.5), 0 6px 18px -8px rgba(14,28,58,.18), inset 0 1px 0 rgba(255,255,255,.95);
  -webkit-backdrop-filter: blur(30px) saturate(185%);
  backdrop-filter: blur(30px) saturate(185%);
  animation: shPop .24s cubic-bezier(.22,.8,.3,1);
}
/* bottom fade — signals the list continues below */
.sh-modal__dlg::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 30px; pointer-events: none;
  border-radius: 0 0 24px 24px;
  background: linear-gradient(to top, rgba(247,251,255,.92), rgba(247,251,255,0));
}
/* soft top sheen, keeps the panel reading as glass */
.sh-modal__dlg::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,.62) 0%, rgba(255,255,255,0) 42%);
  opacity: .7;
}

.sh-modal__x {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  width: 34px; height: 34px; min-width: 34px; padding: 0; box-sizing: border-box;
  border-radius: 11px; display: grid; place-items: center;
  -webkit-appearance: none; appearance: none;
  font-size: 19px; line-height: 1; cursor: pointer; color: #3a4763;
  background: rgba(255,255,255,.62); border: 1px solid rgba(15,32,64,.10);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
  transition: background .16s ease, color .16s ease, border-color .16s ease;
}
.sh-modal__x:hover { background: rgba(29,78,216,.09); color: #1d4ed8; border-color: rgba(29,78,216,.18); }

.sh-modal__hd {
  display: flex; align-items: center; gap: 14px;
  padding: 2px 46px 12px 0;
  border-bottom: 1px solid rgba(15,32,64,.07);
}
.sh-modal__ico {
  flex: 0 0 auto; width: 46px; height: 46px; border-radius: 15px;
  display: grid; place-items: center; font-size: 23px; line-height: 1;
  background: linear-gradient(160deg, rgba(255,255,255,.95), rgba(226,236,255,.85));
  border: 1px solid rgba(255,255,255,.95);
  box-shadow: 0 8px 18px -10px rgba(29,58,120,.45), inset 0 1px 0 rgba(255,255,255,.9);
}
.sh-modal__cap { display: block; min-width: 0; }
.sh-modal__t { margin: 0; font-size: 19px; line-height: 1.3; font-weight: 800; letter-spacing: -.01em; color: #0c1830; }
.sh-modal__c {
  display: inline-flex; align-items: center; margin: 6px 0 0; padding: 3px 10px;
  border-radius: 999px; font-size: 12px; font-weight: 600; color: #244e9e;
  background: rgba(37,99,235,.09); border: 1px solid rgba(37,99,235,.12);
}

.sh-modal__body {
  min-height: 0; overflow-y: scroll; overscroll-behavior: contain;
  margin: 0 -6px; padding: 2px 6px 10px; -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable; scrollbar-width: thin; scrollbar-color: rgba(29,78,216,.35) transparent;
}
.sh-modal__body::-webkit-scrollbar { width: 10px; }
.sh-modal__body::-webkit-scrollbar-thumb { background: rgba(29,78,216,.28); border-radius: 999px; border: 2px solid transparent; background-clip: content-box; }
.sh-modal__body::-webkit-scrollbar-track { background: transparent; }

.sh-modal__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.sh-modal__item {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 13px;
  background: rgba(255,255,255,.52); border: 1px solid rgba(255,255,255,.62);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.75);
  font-size: 13.5px; line-height: 1.45; color: #1b2a45;
  transition: background .15s ease;
}
/* P7.14 — alternating rows: odd = white glass, even = soft blue-violet tint */
.sh-modal__item:nth-child(even) {
  background: rgba(232, 235, 255, .55);
  border-color: rgba(255, 255, 255, .55);
}
.sh-modal__item:nth-child(odd) { background: rgba(255, 255, 255, .52); }
.sh-modal__item:hover,
.sh-modal__item:nth-child(even):hover,
.sh-modal__item:nth-child(odd):hover { background: rgba(37, 99, 235, .10); }
.sh-modal__idx {
  flex: 0 0 auto; width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center;
  font-size: 11px; font-weight: 700; color: #2b4ea8;
  background: rgba(29,78,216,.08); border: 1px solid rgba(29,78,216,.10);
}
.sh-modal__name { min-width: 0; overflow-wrap: anywhere; }
.sh-modal__empty { padding: 26px 12px; text-align: center; font-size: 13.5px; color: #5a6a86; }

@keyframes shFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes shPop { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }

@media (max-width: 480px) {
  .sh-modal { padding: 12px; }
  .sh-modal__dlg { max-height: 86vh; border-radius: 20px; padding: 18px 16px 14px; gap: 12px; }
  .sh-modal__x { top: 12px; right: 12px; width: 32px; height: 32px; min-width: 32px; border-radius: 10px; }
  .sh-modal__hd { gap: 12px; padding: 2px 42px 10px 0; }
  .sh-modal__ico { width: 40px; height: 40px; border-radius: 13px; font-size: 20px; }
  .sh-modal__t { font-size: 17px; }
  .sh-modal__item { font-size: 13px; padding: 9px 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .sh-modal__ov, .sh-modal__dlg { animation: none; }
}

/* ---------- §47 P7.6: หน้า รู้จักกลุ่มงาน ---------- */
.about-page { padding-bottom: 8px; }
.about-wrap { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.about-sec { padding: clamp(22px, 3vw, 38px) 0 0; }

.about-hero { padding: clamp(22px, 3.4vw, 44px) 0 clamp(18px, 2.6vw, 30px); }
.about-hero__in {
  position: relative; overflow: hidden; border-radius: 28px;
  padding: clamp(26px, 4vw, 46px) clamp(22px, 4vw, 48px);
  background: linear-gradient(135deg, #0b2a6b 0%, #1e4fd8 50%, #7c3aed 100%);
  box-shadow: 0 24px 60px rgba(30, 64, 175, .24), inset 0 1px 0 rgba(255, 255, 255, .28);
  color: #fff;
}
.about-hero__in::after {
  content: ""; position: absolute; top: -45%; right: -12%; width: 60%; height: 140%;
  background:
    radial-gradient(closest-side, rgba(34, 211, 238, .40), transparent 70%),
    radial-gradient(closest-side, rgba(124, 58, 237, .38), transparent 72%);
  filter: blur(28px);
}
.about-hero__in > * { position: relative; z-index: 1; }
.about-hero__eyebrow { margin: 0 0 8px; font: 700 12px/1.5 Anuphan, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.78); }
.about-hero__t { margin: 0; font: 800 clamp(1.75rem, 1.2rem + 2.2vw, 2.7rem)/1.22 Anuphan, sans-serif; color: #fff; }
.about-hero__org { margin: 10px 0 0; font: 500 clamp(.95rem, .85rem + .35vw, 1.12rem)/1.6 Anuphan, sans-serif; color: rgba(255,255,255,.86); }

.about-card {
  padding: clamp(20px, 3vw, 32px); border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.80));
  border: 1px solid rgba(255,255,255,.9);
  box-shadow: 0 18px 44px -26px rgba(15,35,80,.35), inset 0 1px 0 rgba(255,255,255,.9);
}
.about-h2 { margin: 0 0 14px; font: 800 clamp(1.2rem, 1rem + .7vw, 1.55rem)/1.3 Anuphan, sans-serif; color: #0f1e3d; }
.about-body { color: #33415c; font-size: 15.5px; line-height: 1.75; }
.about-body p { margin: 0 0 12px; }
.about-body p:last-child { margin-bottom: 0; }
.about-body ul, .about-body ol { margin: 0 0 12px; padding-left: 22px; }

.about-vision { margin-top: 18px; padding: 16px 18px; border-radius: 18px; background: rgba(37,99,235,.06); border: 1px solid rgba(37,99,235,.12); }
.about-vision__t { margin: 0 0 6px; font: 700 14px/1.4 Anuphan, sans-serif; color: #1d4ed8; }
.about-vision__b { margin: 0; color: #2c3b58; font-size: 14.5px; line-height: 1.7; }

.about-missions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.about-mission {
  padding: 20px 22px; border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(255,255,255,.82));
  border: 1px solid rgba(255,255,255,.9);
  box-shadow: 0 14px 34px -24px rgba(15,35,80,.35);
}
.about-mission__t { margin: 0 0 8px; font: 700 15.5px/1.45 Anuphan, sans-serif; color: #12274d; }
.about-mission__b { color: #3b4a66; font-size: 14.5px; line-height: 1.7; }
.about-mission__b p { margin: 0 0 8px; }
.about-mission__b p:last-child { margin-bottom: 0; }

/* Organization chart — เฉพาะชื่อตำแหน่งและจำนวนอัตรา (ไม่มีข้อมูลส่วนบุคคล) */
.org { display: flex; flex-direction: column; align-items: center; }
.org__head { width: min(420px, 100%); }
.org__stem {
  width: 2px; height: 26px; border-radius: 2px;
  background: linear-gradient(180deg, rgba(29,78,216,.45), rgba(29,78,216,.16));
}
.org__team { width: 100%; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.org__node {
  padding: 16px 18px; border-radius: 18px; text-align: center;
  background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(255,255,255,.80));
  border: 1px solid rgba(255,255,255,.9);
  box-shadow: 0 14px 34px -24px rgba(15,35,80,.35);
}
.org__node--head {
  padding: 20px 22px;
  background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(235,242,255,.88));
  border-color: rgba(29,78,216,.18);
  box-shadow: 0 20px 46px -26px rgba(30,64,175,.45);
}
.org__t { margin: 0; font: 700 15px/1.45 Anuphan, sans-serif; color: #0f1e3d; overflow-wrap: anywhere; }
.org__node--head .org__t { font-size: 17px; }
.org__c { margin: 6px 0 0; font: 700 12.5px/1.4 Anuphan, sans-serif; color: #1d4ed8; }
.org__c b { font-size: 16px; }

.about-empty {
  margin: 0; padding: 22px; border-radius: 18px; text-align: center;
  color: #5a6a86; font-size: 14px; background: rgba(255,255,255,.7);
  border: 1px dashed rgba(15,32,64,.16);
}

.about-contact__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.about-contact__list li { display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: start; padding: 10px 0; border-bottom: 1px solid rgba(15,32,64,.06); }
.about-contact__list li:last-child { border-bottom: 0; }
.about-contact__k { font: 700 13px/1.6 Anuphan, sans-serif; color: #5a6a86; }
.about-contact__v { font: 500 14.5px/1.6 Anuphan, sans-serif; color: #22314f; overflow-wrap: anywhere; }
.about-contact__v a { color: #1d4ed8; text-decoration: none; }
.about-contact__v a:hover { text-decoration: underline; }

@media (max-width: 1024px) {
  .org__team { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-missions { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .about-wrap { width: calc(100% - 28px); }
  .about-hero__in { border-radius: 22px; }
  .about-card { border-radius: 20px; }
  .org__head { width: 100%; }
  .about-contact__list li { grid-template-columns: 1fr; gap: 2px; }
}
@media (max-width: 400px) {
  .org__team { gap: 12px; }
  .org__node { padding: 13px 12px; }
  .org__t { font-size: 14px; }
}
@media (max-width: 340px) {
  .org__team { grid-template-columns: 1fr; }
}


/* ---------- §48 P7.9: รู้จักกลุ่มงาน — แถวบน (หัวหน้า + ที่ปรึกษา), ระดับวิชาชีพ, ป้ายบทบาท, หมายเลขภารกิจ ---------- */
.org__total { margin: 0 0 16px; text-align: center; font: 600 13px/1.6 Anuphan, sans-serif; color: #5a6a86; }
.org__total b { font-size: 15px; color: #1d4ed8; }
.org__top { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 18px; align-items: stretch; }
.org__top--single { grid-template-columns: minmax(0, 1fr); max-width: 420px; margin-left: auto; margin-right: auto; }
.org__top .org__node { display: flex; flex-direction: column; justify-content: center; }
.org__node--advisor {
  background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(244,238,255,.90));
  border-color: rgba(124,58,237,.18);
  box-shadow: 0 20px 46px -26px rgba(109,40,217,.38);
}
.org__lvl { margin: 5px 0 0; font: 600 13px/1.5 Anuphan, sans-serif; color: #41537a; overflow-wrap: anywhere; }
.org__note {
  display: inline-block; margin-top: 9px; padding: 4px 10px; border-radius: 999px;
  background: rgba(37,99,235,.10); border: 1px solid rgba(37,99,235,.18);
  font: 700 11.5px/1.5 Anuphan, sans-serif; color: #1d4ed8;
}
.about-mission { position: relative; padding: 20px 22px 20px 58px; }
.about-mission__n {
  position: absolute; top: 18px; left: 20px; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, #1e4fd8, #7c3aed);
  font: 700 12px/1 Anuphan, sans-serif; box-shadow: 0 8px 18px -8px rgba(30,79,216,.6);
}
@media (max-width: 767px) {
  .org__top { grid-template-columns: minmax(0, 1fr); }
  .org__top--single { max-width: 100%; }
  .about-mission { padding-left: 52px; }
}
@media (max-width: 400px) {
  .about-mission { padding-left: 48px; }
  .about-mission__n { left: 14px; width: 24px; height: 24px; }
}

/* ---------- §49 P7.12: popup close-button focus + mobile anchor offset ---------- */
/* Astra's global button:focus paints a blue border; keep the close button neutral
   for mouse users, but keep a clear ring for keyboard (:focus-visible). */
body.dhg-proto .sh-modal__x:focus,
body.dhg-proto .sh-modal__x:focus:not(:focus-visible) {
  background: rgba(255, 255, 255, .62);
  color: #3a4763;
  border-color: rgba(15, 32, 64, .08);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}
body.dhg-proto .sh-modal__x:focus:not(:focus-visible) { outline: none; }
body.dhg-proto .sh-modal__x:focus-visible {
  outline: 3px solid rgba(29, 78, 216, .45);
  outline-offset: 2px;
}

/* Mobile: the floating navbar is 58px tall; keep the #news heading clear of it.
   Scoped to mobile + #news only, so desktop and other anchors are unchanged. */
@media (max-width: 1024px) {
  #news { scroll-margin-top: 72px; }
}
