/* =========================================================================
   ส่วนกลางทั้งเว็บ Pangtopia: แถบบน · เมนูย่อย FiwPang · ส่วนท้าย
   (ใช้ชุดเดียวกันทุกหน้า โหลดหลัง style.css / fiwpang.css)
   ========================================================================= */
.gh { position: sticky; top: 0; z-index: 30; background: rgba(15, 16, 18, .94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid #1f2024; color: #f2efe8; font-family: "Anuphan", "Leelawadee UI", system-ui, sans-serif; }
.gh-in { display: flex; align-items: center; gap: 20px; height: 62px; }
.gh-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.gh-brand img { width: 30px; height: 30px; border-radius: 8px; }
.gh-brand img.gh-wm { width: auto; height: 15px; border-radius: 0; }
.gh-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.gh-nav a { position: relative; color: #b8b4ab; text-decoration: none; font-size: 15px; padding: 8px 12px; border-radius: 8px; white-space: nowrap; transition: color .25s; }
.gh-nav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .35s cubic-bezier(.2, .7, .2, 1); }
.gh-nav a:hover { color: #f2efe8; }
.gh-nav a:hover::after, .gh-nav a[aria-current="page"]::after { transform: scaleX(1); }
.gh-nav a[aria-current="page"] { color: #f2efe8; }
.gh-nav a.gh-cta { margin-left: 8px; border: 1px solid #3a3c41; padding: 7px 14px; }
.gh-nav a.gh-cta::after { content: none; }
.gh-nav a.gh-cta:hover { border-color: #b9a074; }
.gh-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid #2c2e33; border-radius: 10px; background: transparent; cursor: pointer; position: relative; }
.gh-toggle span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: #f2efe8; transition: transform .3s, top .3s; }
.gh-toggle span:first-child { top: 17px; }
.gh-toggle span:last-child { top: 25px; }
.gh-toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.gh-toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }
.gh a:focus-visible, .gh button:focus-visible, .subnav a:focus-visible, .gf a:focus-visible { outline: 2.5px solid #b9a074; outline-offset: 2px; }

/* เมนูย่อยของ FiwPang */
.subnav { position: sticky; top: 62px; z-index: 29; background: rgba(246, 241, 231, .95); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid #e5dac5; font-family: "Anuphan", "Leelawadee UI", system-ui, sans-serif; }
.subnav-in { display: flex; align-items: center; gap: 18px; height: 52px; }
.sn-title { display: flex; align-items: center; gap: 8px; color: #17152b; text-decoration: none; font-family: "Taviraj", serif; font-weight: 600; font-size: 18px; flex: none; }
.sn-title img { width: 24px; height: 24px; border-radius: 6px; }
.sn-links { display: flex; gap: 2px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.sn-links::-webkit-scrollbar { display: none; }
.sn-links a { color: #4d4a5c; text-decoration: none; font-size: 14.5px; padding: 6px 11px; border-radius: 7px; white-space: nowrap; transition: color .2s, background .2s; }
.sn-links a:hover { color: #17152b; background: #efe5cf; }
.sn-links a[aria-current="page"] { color: #17152b; font-weight: 600; }
.subnav .sn-cta { flex: none; display: inline-flex; align-items: center; height: 36px; padding: 0 16px; border-radius: 7px; background: #17152b; color: #f6f1e7; font-size: 14.5px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: background .2s, transform .2s; }
.subnav .sn-cta:hover { background: #2a2650; transform: translateY(-1px); }
html { scroll-padding-top: 76px; }

/* ส่วนท้าย */
footer.gf { background: #0b0c0d; color: #8f8b83; border: 0; padding: 60px 0 34px; margin: 0; font-family: "Anuphan", "Leelawadee UI", system-ui, sans-serif; font-size: 14.5px; }
.gf-in { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 32px; }
.gf-brand img { height: 16px; width: auto; opacity: .9; }
.gf-brand p { margin: 16px 0 0; line-height: 1.7; max-width: 26em; }
footer.gf .gf-brand a { color: #e9e2d2; }
.gf-col h4 { margin: 0 0 12px; color: #f2efe8; font-family: "Taviraj", serif; font-weight: 600; font-size: 16px; }
footer.gf .gf-col a { display: block; color: #c9c4ba; text-decoration: none; padding: 5px 0; min-height: 0; }
footer.gf .gf-col a:hover { color: #e2c98f; }
.gf-fine { margin-top: 44px; padding-top: 22px; border-top: 1px solid #1d1e21; font-size: 13px; color: #6e6a63; line-height: 1.7; }

@media (max-width: 920px) {
  .gh-toggle { display: block; }
  .gh-nav { position: absolute; left: 0; right: 0; top: 62px; flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: 8px 16px 18px; background: #0f1012; border-bottom: 1px solid #1f2024; box-shadow: 0 30px 40px -30px #000; }
  .gh-nav:not(.open) { display: none; }
  .gh-nav a { padding: 14px 4px; font-size: 16px; border-bottom: 1px solid #1d1e21; border-radius: 0; }
  .gh-nav a::after { content: none; }
  .gh-nav a.gh-cta { margin: 14px 0 0; text-align: center; border-radius: 8px; }
  .gf-in { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gf-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .sn-title span { display: none; }
  .subnav-in { gap: 10px; }
  .sn-links { margin-left: 0; flex: 1; }
  .subnav .sn-cta { padding: 0 12px; font-size: 13.5px; }
}
@media (prefers-reduced-motion: reduce) { .gh-nav a::after, .gh-toggle span { transition: none; } }
@media (max-width: 560px) { .sn-links { -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent); mask-image: linear-gradient(90deg, #000 82%, transparent); padding-right: 18px; } }
