/* Municipality Theme | Powered by Chiangmai Webdesign */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --indigo: #1a7c31;
  --indigo-mid: #2e9245;
  --violet: #1f8a3a;
  --violet-lt: #43a85d;
  --purple: #edbe5c;
  --blue-v: #d98d19;
  --sky: #edf7ee;
  --sky-deep: #d9efde;
  --accent: #edbe5c;
  --gold: #edbe5c;
  --gold-lt: #fff3cf;
  --white: #ffffff;
  --gray-50: #f5f8ff;
  --gray-100: #eef3fa;
  --gray-200: #d8e4f0;
  --gray-500: #6b86a8;
  --gray-700: #3a5068;
  --text: #0f2035;
  --radius: 10px;
  --mayor-photo-gradient: linear-gradient(
    165deg,
    var(--violet-lt) 0%,
    var(--indigo-mid) 38%,
    var(--indigo) 72%,
    var(--violet) 100%
  );
  --shadow: 0 2px 16px rgba(26, 124, 49, 0.1);
  --shadow-md: 0 6px 28px rgba(26, 124, 49, 0.18);
}

html {
  scroll-behavior: smooth;
  filter: grayscale(75%);
}
body {
  font-family: "Sarabun", sans-serif;
  background: var(--gray-50);
  color: var(--text);
  font-size: 15px;
  line-height: 1.68;
  margin: 0 !important;
  padding: 0 !important;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
}

/* ï¿½"?ï¿½"?ï¿½"? ACCESSIBILITY TOP BAR ï¿½"?ï¿½"?ï¿½"? */
.topbar {
  background: var(--indigo);
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
  padding: 5px 0;
  border-bottom: 2px solid var(--accent);
}
.topbar-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.topbar a {
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.2s;
}
.topbar a:hover {
  color: #fff;
}
.topbar-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}
.ticker-label {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  flex-shrink: 0;
}
.ticker-wrap {
  flex: 1;
  overflow: hidden;
  position: relative;
  min-width: 0;
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 3%,
    black 97%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 3%,
    black 97%,
    transparent 100%
  );
}
.ticker-track {
  display: inline-flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
  animation: ticker-scroll 40s linear infinite;
  will-change: transform;
}
.ticker-track:hover {
  animation-play-state: paused;
}
.ticker-item {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.9);
  padding: 0 16px;
  cursor: default;
}
.ticker-item:hover {
  color: #fff;
}
.ticker-sep {
  color: var(--purple);
  font-size: 10px;
  flex-shrink: 0;
}
@keyframes ticker-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
@media (max-width: 600px) {
  .ticker-label {
    display: none;
  }
}
.topbar-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: blink 2s infinite;
}
@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}
.topbar-right {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}
.tb-sep {
  color: rgba(255, 255, 255, 0.3);
  font-size: 13px;
}
.tb-link {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  padding: 3px 8px;
  border-radius: 6px;
  transition: all 0.2s;
  white-space: nowrap;
}
.tb-link:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.tb-link.tb-link-plain {
  cursor: default;
  pointer-events: none;
}

.tb-link.tb-link-plain:hover {
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
}

.tb-link-tel,
.tb-link-fb {
  pointer-events: auto;
}

.tb-icon-tel,
.tb-icon-fb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tb-link-fb .tb-label-text {
  display: none;
}

.tb-link-fb {
  background: rgba(24, 119, 242, 0.28);
}

.tb-link-fb:hover {
  background: #1877f2;
  color: #fff;
}

.tb-link-fb .tb-icon-fb i {
  font-size: 15px;
  color: #fff;
}

.tb-link-tel:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

/* Tablet + mobile: ticker scroll + phone/Facebook icons only */
@media (max-width: 1024px) {
  .topbar-inner {
    flex-wrap: nowrap;
    gap: 8px;
  }

  .topbar-left {
    min-width: 0;
    flex: 1;
  }

  .topbar-right .tb-desktop-only,
  .topbar-right .tb-extra {
    display: none !important;
  }

  .topbar-right .tb-link-tel,
  .topbar-right .tb-link-fb {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 4px 7px;
    min-width: 30px;
  }

  .topbar-right .tb-link-fb .tb-label-text {
    display: none;
  }

  .topbar-right .tb-link-tel {
    gap: 5px;
    max-width: min(42vw, 200px);
    font-size: clamp(10px, 2.6vw, 12px);
  }

  .topbar-right .tb-link-tel .tb-label {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .topbar-right .tb-icon-tel i,
  .topbar-right .tb-icon-fb i {
    font-size: 14px;
    line-height: 1;
  }

  .topbar-right .tb-link-fb {
    padding: 4px 9px;
    background: rgba(24, 119, 242, 0.35);
  }

  .topbar-right .tb-link-fb:hover {
    background: #1877f2;
  }

  .topbar-right .tb-icon-fb i {
    color: #fff;
  }

  .ticker-item {
    font-size: clamp(11px, 2.8vw, 12px);
    padding: 0 10px;
  }

  .ticker-track {
    animation-duration: 32s;
  }
}

.font-btn {
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #fff;
  padding: 2px 9px;
  border-radius: 4px;
  cursor: pointer;
  font-family: "Sarabun", sans-serif;
  font-size: 12px;
  transition: background 0.2s;
}
.font-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* ï¿½"?ï¿½"?ï¿½"? COVER BANNER ï¿½"?ï¿½"?ï¿½"? */
.site-cover {
  display: block;
}
.cover-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 21 / 6;
  height: auto;
  max-height: min(480px, 46vh);
  min-height: clamp(190px, 28vw, 300px);
  background: var(--indigo);
  overflow: hidden;
}
.cover-img-wrap > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  display: block;
}
.cover-img-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(11, 61, 145, 0.22);
  pointer-events: none;
}
/* Floating logo centered on cover */
.cover-logo-float {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  pointer-events: none;
}
.cover-crest-float {
  width: clamp(80px, 11vw, 120px);
  height: clamp(80px, 11vw, 120px);
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
  border: 4px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  flex-shrink: 0;
}
.cover-crest-float img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.cover-title-float h1 {
  font-size: clamp(15px, 2.2vw, 24px);
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  line-height: 1.2;
  margin-bottom: 3px;
}
.cover-title-float p {
  font-size: clamp(11px, 1.2vw, 14px);
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}
/* Phone number chip ï¿½?" top right */
.cover-logo-bar {
  position: absolute;
  top: 10px;
  right: 14px;
  z-index: 4;
}
.cover-contact {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(11, 61, 145, 0.6);
  backdrop-filter: blur(4px);
  padding: 5px 12px;
  border-radius: 20px;
}
.cover-contact a {
  color: #fff;
  font-weight: 600;
}
/* Tagline bottom of cover */
.cover-tagline {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  z-index: 3;
  text-align: center;
  color: #fff;
  font-size: clamp(16px, 2.2vw, 24px);
  font-weight: 700;
  text-shadow:
    0 2px 10px rgba(0, 0, 0, 0.6),
    0 1px 3px rgba(0, 0, 0, 0.4);
  padding: 0 24px;
  letter-spacing: 0.3px;
}
@media (max-width: 500px) {
  .cover-crest-float {
    width: 70px;
    height: 70px;
  }
  .cover-logo-float {
    gap: 6px;
  }
  .cover-logo-bar {
    top: 6px;
    right: 8px;
  }
  .cover-contact {
    font-size: 11px;
    padding: 4px 9px;
  }
  .cover-title-float h1 {
    font-size: clamp(12px, 3.5vw, 15px);
    color: var(--indigo);
    text-shadow: none;
    line-height: 1.35;
    margin: 0 auto 3px;
    padding: 6px 12px;
    display: inline-block;
    max-width: min(92vw, 420px);
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid #fff;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
  }
  .cover-tagline {
    display: block;
    font-size: clamp(12px, 3.8vw, 16px);
    line-height: 1.35;
    padding: 0 12px;
    bottom: 6px;
  }
  .cover-title-float p {
    display: none;
  }
  .cover-logo-float {
    top: 42%;
    transform: translate(-50%, -58%);
  }
}

/* ï¿½"?ï¿½"?ï¿½"? HEADER ï¿½"?ï¿½"?ï¿½"? */
.site-header {
  background: var(--white);
  box-shadow: 0 2px 12px rgba(11, 61, 145, 0.1);
  position: relative;
  top: auto;
  z-index: 200;
}
/* Row 1: Logo + contact info */
.header-top {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 16px;
}
.header-top-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.header-contact-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--gray-700);
}
.header-contact-item .hci {
  font-size: 15px;
}
.header-contact-item a {
  color: var(--violet);
  font-weight: 600;
}

/* Row 2: Nav bar full width */
.header-nav-bar {
  background: var(--indigo);
  border-top: 0;
}
.nav-bar-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 10px;
  display: flex;
  align-items: center;
  width: 100%;
}
.main-nav {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  min-width: 0;
  gap: 0;
  width: 100%;
  justify-content: center;
}
.nav-item {
  position: relative;
  flex-shrink: 0;
}
.nav-item::after {
  content: "";
  display: block;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 0;
  width: 1px;
  height: 22px;
  background-color: rgba(237, 190, 92, 0.45);
}
.nav-item:last-child::after {
  display: none;
}
.nav-link {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 22px 18px;
  font-size: 16px;
  font-weight: 500;
  color: #fff;
  transition: all 0.2s;
  white-space: nowrap;
  cursor: pointer;
  border-bottom: 0;
}
.nav-link:hover {
  color: var(--gold);
  background: transparent;
  border-bottom-color: transparent;
}
.nav-link.active {
  color: var(--gold);
  background: transparent;
  border-bottom-color: transparent;
}

/* Keep header links consistent on click/focus (override Bootstrap focus ring). */
.site-header a:focus,
.site-header a:active {
  outline: none !important;
  box-shadow: none !important;
  text-decoration: none !important;
}

.site-header .nav-link:focus,
.site-header .nav-link:active {
  background: transparent;
}
.nav-caret {
  font-size: 13px;
  line-height: 1;
  opacity: 0.95;
  transition: transform 0.2s;
}
.nav-item:hover > .nav-link > .nav-caret {
  transform: rotate(180deg);
}

/* ï¿½"?ï¿½"? Level 1 Dropdown ï¿½"?ï¿½"? */
.dropdown {
  position: absolute;
  top: 80%;
  left: 0;
  background: var(--white);
  border-radius: 0;
  box-shadow: var(--shadow-md);
  border: 1px solid #e7ece7;
  min-width: 220px;
  padding: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(0);
  transition:
    opacity 0.2s,
    transform 0.2s;
  z-index: 400;
}
.nav-item:hover > .dropdown {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
  top: 100%;
}

/* ï¿½"?ï¿½"? Level 1 items ï¿½"?ï¿½"? */
.dropdown > .dd-item {
  position: relative;
}
.dropdown > .dd-item > a,
.dropdown > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 0;
  font-size: 15px;
  color: var(--gray-700);
  transition: all 0.15s;
  gap: 6px;
  border-left: 4px solid var(--indigo);
  border-bottom: 1px solid #eef3ee;
}
.dropdown > .dd-item > a:hover,
.dropdown > a:hover {
  background: var(--indigo);
  color: #fff;
  padding-left: 20px;
  border-left-width: 12px;
}
.dd-caret {
  font-size: 13px;
  line-height: 1;
  opacity: 0.9;
  flex-shrink: 0;
  transition: transform 0.2s;
}
.dd-item:hover > a > .dd-caret {
  transform: rotate(-90deg);
  opacity: 1;
}

/* ï¿½"?ï¿½"? Level 2 Dropdown ï¿½"?ï¿½"? */
.dd-sub {
  position: absolute;
  top: 0;
  left: 100%;
  background: var(--white);
  border-radius: 0;
  box-shadow: var(--shadow-md);
  border: 1px solid #e7ece7;
  min-width: 220px;
  padding: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateX(0);
  transition:
    opacity 0.2s,
    transform 0.2s;
  z-index: 410;
}
.dd-item:hover > .dd-sub {
  opacity: 1;
  pointer-events: all;
  transform: translateX(0);
}

/* ï¿½"?ï¿½"? Level 2 items ï¿½"?ï¿½"? */
.dd-sub > .dd-item2 {
  position: relative;
}
.dd-sub > .dd-item2 > a,
.dd-sub > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 14px;
  border-radius: 0;
  font-size: 15px;
  color: var(--gray-700);
  transition: all 0.15s;
  gap: 6px;
  border-left: 4px solid var(--indigo);
  border-bottom: 1px solid #eef3ee;
}
.dd-sub > .dd-item2 > a:hover,
.dd-sub > a:hover {
  background: var(--indigo);
  color: #fff;
  padding-left: 20px;
  border-left-width: 12px;
}

/* ï¿½"?ï¿½"? Level 3 Dropdown ï¿½"?ï¿½"? */
.dd-sub2 {
  position: absolute;
  top: 0;
  left: 100%;
  background: var(--white);
  border-radius: 0;
  box-shadow: var(--shadow-md);
  border: 1px solid #e7ece7;
  min-width: 210px;
  padding: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateX(0);
  transition:
    opacity 0.2s,
    transform 0.2s;
  z-index: 420;
}
.dd-item2:hover > .dd-sub2 {
  opacity: 1;
  pointer-events: all;
  transform: translateX(0);
}
.dd-sub2 > a {
  display: block;
  padding: 9px 14px;
  border-radius: 0;
  font-size: 15px;
  color: var(--gray-700);
  transition: all 0.15s;
  border-left: 4px solid var(--indigo);
  border-bottom: 1px solid #eef3ee;
}
.dd-sub2 > a:hover {
  background: var(--indigo);
  color: #fff;
  padding-left: 20px;
  border-left-width: 12px;
}

/* ï¿½"?ï¿½"? Divider inside dropdown ï¿½"?ï¿½"? */
.dd-divider {
  height: 1px;
  background: var(--gray-200);
  margin: 4px 8px;
}
.dd-group-label {
  display: block;
  padding: 6px 14px 2px;
  font-size: 11px;
  font-weight: 700;
  color: var(--violet);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  margin-left: auto;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  transition: background 0.2s;
}
.hamburger:hover {
  background: rgba(255, 255, 255, 0.2);
}
.ham-lines {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.ham-lines span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s;
}
.ham-text {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  font-family: "Sarabun", sans-serif;
  letter-spacing: 0.3px;
}

/* Mobile Nav (hamburger) */
.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  max-height: 75vh;
  overflow-y: auto;
}
.mobile-nav.is-open {
  display: flex;
}
body.mobile-nav-open {
  overflow: hidden;
}
.mobile-nav .mn-top {
  display: flex;
  align-items: center;
  padding: 13px 20px;
  font-size: 15px;
  font-weight: 600;
  color: var(--indigo);
  border-bottom: 1px solid var(--gray-100);
  gap: 8px;
}
.mobile-nav .mn-top:hover {
  background: var(--sky);
}

/* L1 group */
.mn-group {
  border-bottom: 1px solid var(--gray-100);
}
.mn-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 20px;
  font-size: 15px;
  font-weight: 600;
  color: var(--indigo);
  cursor: pointer;
  transition: background 0.2s;
  user-select: none;
}
.mn-head:hover {
  background: var(--sky);
}
.mn-head.open {
  background: var(--sky);
  color: var(--violet);
}
.mn-arrow {
  font-size: 11px;
  transition: transform 0.25s;
  flex-shrink: 0;
}
.mn-head.open .mn-arrow {
  transform: rotate(180deg);
}
.mn-body {
  display: none;
  flex-direction: column;
  background: #f8fbff;
  padding: 4px 0 8px;
  border-top: 1px solid var(--gray-200);
}
.mn-body.open {
  display: flex;
}
.mn-body > a {
  padding: 9px 20px 9px 36px;
  font-size: 14px;
  color: var(--gray-700);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  transition: background 0.15s;
}
.mn-body > a:hover {
  background: var(--sky);
  color: var(--violet);
}

/* L2 group */
.mn-group2 {
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}
.mn-head2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 20px 9px 36px;
  font-size: 14px;
  font-weight: 600;
  color: var(--violet);
  cursor: pointer;
  transition: background 0.2s;
  user-select: none;
}
.mn-head2:hover {
  background: var(--sky-deep);
}
.mn-head2.open {
  background: var(--sky-deep);
}
.mn-arrow2 {
  font-size: 10px;
  transition: transform 0.2s;
  flex-shrink: 0;
}
.mn-head2.open .mn-arrow2 {
  transform: rotate(180deg);
}
.mn-body2 {
  display: none;
  flex-direction: column;
  background: #eef6ff;
  border-top: 1px solid var(--sky-deep);
}
.mn-body2.open {
  display: flex;
}
.mn-body2 > a {
  padding: 8px 20px 8px 52px;
  font-size: 13px;
  color: var(--gray-700);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  transition: background 0.15s;
}
.mn-body2 > a::before {
  content: "›  ";
  color: var(--violet);
}
.mn-body2 > a:hover {
  background: var(--sky);
  color: var(--violet);
}

/* ï¿½"?ï¿½"?ï¿½"? QUICK SERVICES BAR ï¿½"?ï¿½"?ï¿½"? */
.qbar {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
}
.qbar-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 6px 24px;
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  justify-content: space-between;
}
.qbar-inner::-webkit-scrollbar {
  display: none;
}
.qitem {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 10px 8px;
  border-radius: 8px;
  flex: 1;
  min-width: 72px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}
.qitem:hover {
  background: var(--sky);
}
.qi-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.qi-lbl {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
  text-align: center;
  line-height: 1.3;
}
.qi1 .qi-icon {
  background: #dceeff;
}
.qi2 .qi-icon {
  background: #fef3c7;
}
.qi3 .qi-icon {
  background: #d1fae5;
}
.qi4 .qi-icon {
  background: #fee2e2;
}
.qi5 .qi-icon {
  background: #dbeafe;
}
.qi6 .qi-icon {
  background: #ffe4f2;
}
.qi7 .qi-icon {
  background: #e0f2fe;
}
.qi8 .qi-icon {
  background: #fef9c3;
}

/* ï¿½"?ï¿½"?ï¿½"? MAIN CONTENT WRAPPER ï¿½"?ï¿½"?ï¿½"? */
.page-body {
  max-width: 1240px;
  margin: 36px auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 348px;
  gap: 28px;
  align-items: start;
  box-sizing: border-box;
}

/* ï¿½"?ï¿½"?ï¿½"? SECTION HEADING ï¿½"?ï¿½"?ï¿½"? */
.sh {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 8px;
}
.sh h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--indigo);
  display: flex;
  align-items: center;
  gap: 10px;
}
.sh h2::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 22px;
  border-radius: 2px;
  background: var(--purple);
  flex-shrink: 0;
}
.sh a {
  font-size: 13px;
  color: var(--violet);
  font-weight: 600;
}
.sh a:hover {
  text-decoration: underline;
}

/* ï¿½"?ï¿½"?ï¿½"? NEWS TABS ï¿½"?ï¿½"?ï¿½"? */
.news-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 18px;
  border-bottom: 2px solid var(--gray-200);
}
.ntab {
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-500);
  cursor: pointer;
  border-radius: 8px 8px 0 0;
  transition: all 0.2s;
  border: none;
  background: none;
  font-family: "Sarabun", sans-serif;
  margin-bottom: -2px;
}
.ntab:hover {
  color: var(--violet);
  background: var(--sky);
}
.ntab.on {
  color: var(--violet);
  border-bottom: 2px solid var(--violet);
  background: var(--sky);
}

/* ï¿½"?ï¿½"?ï¿½"? NEWS CARDS ï¿½"?ï¿½"?ï¿½"? */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}
.event-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.nc {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  border: 1px solid transparent;
}
.nc:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--gray-200);
}
.nc-img {
  height: 170px;
  position: relative;
  overflow: hidden;
  background: var(--gray-100);
  flex-shrink: 0;
}
.nc-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gi-fb {
  width: 100%;
  height: 100%;
  min-height: 160px;
  align-items: center;
  justify-content: center;
  font-size: 40px;
}
.nc-img-bg {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
}
.nc-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 11px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
}
.tag-purple {
  background: var(--indigo);
  color: #fff;
}
.tag-gold {
  background: var(--gold);
  color: #fff;
}
.tag-green {
  background: #059669;
  color: #fff;
}
.tag-blue {
  background: #2563eb;
  color: #fff;
}
.tag-red {
  background: #dc2626;
  color: #fff;
}
.nc-body {
  padding: 14px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.nc-date {
  font-size: 14px;
  color: var(--gray-500);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.nc-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.55;
  flex: 1;
}
.nc-title:hover {
  color: var(--violet);
}
.nc-foot {
  padding: 8px 16px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--gray-500);
}
.nc-read {
  color: var(--violet);
  font-weight: 600;
  font-size: 13px;
}

/* Featured big card */
.nc.feat {
  grid-column: span 2;
  flex-direction: row;
}
.nc.feat .nc-img {
  width: 42%;
  height: auto;
  min-height: 200px;
  flex-shrink: 0;
  position: relative;
}
.nc.feat .nc-body {
  padding: 22px 20px;
}
.nc.feat .nc-title {
  font-size: 17px;
  margin-bottom: 8px;
}
.nc.feat .nc-desc {
  font-size: 13px;
  color: var(--gray-500);
  line-height: 1.6;
}

/* ï¿½"?ï¿½"?ï¿½"? YOUTUBE EMBED ï¿½"?ï¿½"?ï¿½"? */
.yt-wrap {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 20px;
  margin-bottom: 28px;
  align-items: start;
}
.yt-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.yt-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.yt-info {
  padding: 14px 0 0;
}
.yt-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--indigo);
  line-height: 1.5;
  margin-bottom: 8px;
}
.yt-meta {
  font-size: 13px;
  color: var(--gray-500);
  margin-bottom: 14px;
}
.yt-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ff0000;
  color: #fff;
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: opacity 0.2s;
}
.yt-btn:hover {
  opacity: 0.85;
}
.yt-side {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.yt-side-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--gray-700);
  padding-bottom: 8px;
  border-bottom: 2px solid var(--indigo);
}
.yt-side-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  text-decoration: none;
  transition: background 0.2s;
  padding: 8px;
  border-radius: 8px;
}
.yt-side-item:hover {
  background: var(--sky);
}
.yt-side-item.is-active {
  background: var(--sky);
  box-shadow: inset 0 0 0 1px rgba(14, 116, 144, 0.2);
}
.yt-side-thumb {
  width: 100px;
  height: 64px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--gray-200);
  position: relative;
}
.yt-side-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.yt-side-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 0, 0, 0.85);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  padding-left: 2px;
}
.yt-side-info {
  flex: 1;
  min-width: 0;
}
.yt-side-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.yt-side-date {
  font-size: 11px;
  color: var(--gray-500);
}
@media (max-width: 768px) {
  .yt-wrap {
    grid-template-columns: 1fr;
  }
  .yt-side {
    display: none;
  }
}

/* ï¿½"?ï¿½"?ï¿½"? VIDEO BLOCK ï¿½"?ï¿½"?ï¿½"? */
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}
.video-card {
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: all 0.3s;
}
.video-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.video-embed {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #000;
  overflow: hidden;
}
.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-empty {
  background: var(--gray-100);
}
.video-empty-inner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}
.video-info {
  padding: 12px 14px;
}
.video-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 4px;
}
.video-meta {
  font-size: 13px;
  color: var(--gray-500);
}
@media (max-width: 768px) {
  .video-grid {
    grid-template-columns: 1fr 1fr;
  }
  .video-placeholder {
    display: none;
  }
}
@media (max-width: 480px) {
  .video-grid {
    grid-template-columns: 1fr;
  }
}

/* ï¿½"?ï¿½"?ï¿½"? ANNOUNCEMENT LIST ï¿½"?ï¿½"?ï¿½"? */
.ann-wrap {
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 28px;
}
.ann-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--gray-100);
  transition: background 0.2s;
  cursor: pointer;
}
.ann-row:last-child {
  border-bottom: none;
}
.ann-row:hover {
  background: var(--sky);
}
.ann-cal {
  min-width: 48px;
  text-align: center;
  background: var(--violet);
  color: #fff;
  border-radius: 9px;
  padding: 6px 4px;
  flex-shrink: 0;
}
.ann-cal .d {
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}
.ann-cal .m {
  font-size: 10px;
  opacity: 0.85;
  margin-top: 1px;
}
.ann-cal.gold {
  background: var(--purple);
}
.ann-info {
  flex: 1;
  min-width: 0;
}
.ann-title {
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.5;
}
.ann-badge {
  display: inline-block;
  margin-top: 5px;
  font-size: 11px;
  padding: 2px 9px;
  border-radius: 10px;
  font-weight: 600;
}
.ab-bid {
  background: var(--gold-lt);
  color: #92400e;
}
.ab-news {
  background: var(--sky-deep);
  color: var(--violet);
}
.ab-tax {
  background: #d1fae5;
  color: #065f46;
}
.ab-reg {
  background: #fee2e2;
  color: #991b1b;
}

/* ï¿½"?ï¿½"?ï¿½"? MAYOR CARD ï¿½"?ï¿½"?ï¿½"? */
.mayor-card {
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
  text-align: center;
}
.mayor-img-wrap {
  position: relative;
  background: var(--mayor-photo-gradient);
  padding: 0;
}
.mayor-photo {
  width: 100%;
  height: 320px;
  border-radius: 0;
  border: none;
  box-shadow: none;
  object-fit: contain;
  object-position: center;
  position: relative;
  z-index: 1;
  background: transparent;
  display: block;
  margin: 0;
}
.mayor-photo-placeholder {
  width: 100%;
  height: 320px;
  border-radius: 0;
  border: none;
  background: var(--mayor-photo-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 72px;
  position: relative;
  z-index: 1;
}
.mayor-body {
  padding: 14px 18px 18px;
}
.mayor-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--indigo);
  margin-bottom: 3px;
}
.mayor-title {
  font-size: 12px;
  font-weight: 600;
  background: var(--indigo);
  color: #fff;
  display: inline-block;
  padding: 3px 14px;
  border-radius: 20px;
  margin-bottom: 10px;
}
.mayor-quote {
  font-size: 13px;
  color: var(--gray-700);
  line-height: 1.6;
  border-left: 3px solid var(--purple);
  background: var(--sky);
  padding: 8px 12px;
  border-radius: 0 8px 8px 0;
  text-align: left;
  font-style: italic;
  margin-bottom: 12px;
}
.mayor-contact {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}
.mayor-btn {
  font-size: 12px;
  padding: 5px 14px;
  border-radius: 20px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: "Sarabun", sans-serif;
  border: none;
}
.mayor-btn.primary {
  background: var(--violet);
  color: #fff;
}
.mayor-btn.primary:hover {
  background: var(--indigo);
}
.mayor-btn.outline {
  background: transparent;
  color: var(--violet);
  border: 1.5px solid var(--violet);
}
.mayor-btn.outline:hover {
  background: var(--sky);
}
.mayor-hotline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--indigo);
  color: #fff;
  border-radius: 0;
  padding: 12px 18px;
  text-decoration: none;
  margin: 12px -18px -18px;
  width: calc(100% + 36px);
  box-sizing: border-box;
  text-align: center;
  transition: background 0.2s;
}
.mayor-hotline:hover {
  background: var(--violet);
}
.mayor-hotline span {
  font-size: 22px;
  flex-shrink: 0;
}
.mayor-hotline > div {
  min-width: 0;
}
.mh-num {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.mh-lbl {
  font-size: 11px;
  opacity: 0.8;
  margin-top: 1px;
}

/* ï¿½"?ï¿½"?ï¿½"? SIDEBAR ï¿½"?ï¿½"?ï¿½"? */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
/* sidebar elements ï¿½fï¿½Sï¿½? font-size ï¿½?ï¿½"à¸µà¸¢à¸§à¸à¸±ï¿½Tï¿½-à¸¸à¸ breakpoint */

/* ITA Box */
/* ï¿½"?ï¿½"?ï¿½"? FACEBOOK PAGE BOX ï¿½"?ï¿½"?ï¿½"? */
.fb-page-box {
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.fb-page-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  background: #1877f2;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}
.fb-page-head span:nth-child(2) {
  flex: 1;
}
.fb-page-follow {
  font-size: 12px;
  background: #fff;
  color: #1877f2;
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.fb-page-follow:hover {
  background: #e8f0fe;
}
.fb-page-embed {
  background: #f0f2f5;
}

.ita-card {
  background: var(--indigo);
  border-radius: 12px;
  padding: 18px;
  color: #fff;
  box-shadow: var(--shadow-md);
}
.ita-card h3 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ita-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.ita-item {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 10px 8px;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
  display: block;
}
.ita-item:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: translateY(-2px);
}
.ita-item .ii {
  font-size: 20px;
  margin-bottom: 4px;
}
.ita-item span {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.3;
  display: block;
}

/* Contact Card */
.contact-box {
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.cb-head {
  background: var(--indigo);
  padding: 16px 18px;
  color: #fff;
}
.cb-head h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 2px;
}
.cb-head p {
  font-size: 12px;
  opacity: 0.8;
}
.cb-body {
  padding: 14px 16px;
}
.cb-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 16px;
}
.cb-row:last-child {
  border-bottom: none;
}
.cb-icon {
  font-size: 16px;
  width: 26px;
  text-align: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.cb-row a {
  color: var(--violet);
}
.cb-row span {
  color: var(--text);
}

/* Emergency */
/* ï¿½"?ï¿½"?ï¿½"? HOTLINE BANNER ï¿½"?ï¿½"?ï¿½"? */
.hotline-banner {
  background: var(--indigo);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.hotline-title {
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.hotline-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: rgba(0, 0, 0, 0.15);
}
.hotline-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 14px 8px;
  text-decoration: none;
  transition: opacity 0.2s;
  gap: 4px;
  background: rgba(255, 255, 255, 0.06);
}
.hotline-btn:hover {
  opacity: 0.85;
  background: rgba(255, 255, 255, 0.14);
}
.hb-num {
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.hb-lbl {
  font-size: 11px;
  opacity: 0.8;
  text-align: center;
}
.hb-red {
  color: #fca5a5;
}
.hb-orange {
  color: #fcd34d;
}
.hb-green {
  color: #6ee7b7;
}
.hb-blue {
  color: #93c5fd;
}

/* Poll */
/* ï¿½"?ï¿½"?ï¿½"? SATISFACTION SURVEY ï¿½"?ï¿½"?ï¿½"? */
.sat-box {
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.sat-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--indigo);
  color: #fff;
}
.sat-icon {
  font-size: 26px;
}
.sat-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}
.sat-sub {
  font-size: 12px;
  opacity: 0.8;
}
.sat-body {
  padding: 14px 16px;
}
.sat-q {
  font-size: 13px;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.5;
  font-weight: 600;
}
.sat-options {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sat-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: 9px;
  background: var(--white);
  cursor: pointer;
  font-size: 14px;
  font-family: "Sarabun", sans-serif;
  color: var(--text);
  transition: all 0.2s;
  text-align: left;
}
.sat-btn:hover {
  border-color: var(--violet);
  background: var(--sky);
  color: var(--violet);
}
.sat-btn.selected {
  border-color: var(--violet);
  background: var(--violet);
  color: #fff;
}
.sat-result {
  padding-top: 4px;
}
.sat-thanks {
  font-size: 14px;
  font-weight: 700;
  color: var(--indigo);
  margin-bottom: 12px;
  text-align: center;
}
.sat-bar-row {
  margin-bottom: 8px;
}
.sat-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--gray-700);
  margin-bottom: 3px;
}
.sat-bar-bg {
  background: var(--gray-100);
  border-radius: 4px;
  height: 8px;
  overflow: hidden;
}
.sat-bar-fill {
  height: 100%;
  border-radius: 4px;
  background: var(--violet);
  transition: width 0.6s ease;
}
.sat-total {
  font-size: 12px;
  color: var(--gray-500);
  text-align: center;
  margin-top: 8px;
}
.sat-link {
  display: block;
  padding: 10px 16px;
  font-size: 13px;
  color: var(--violet);
  border-top: 1px solid var(--gray-100);
  text-decoration: none;
  transition: background 0.2s;
}
.sat-link:hover {
  background: var(--sky);
}
.poll-q {
  font-size: 13px;
  color: var(--text);
  margin-bottom: 14px;
  line-height: 1.5;
}
.po {
  margin-bottom: 10px;
}
.po-lbl {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin-bottom: 4px;
  color: var(--gray-700);
}
.po-lbl b {
  color: var(--violet);
}
.po-bg {
  height: 7px;
  background: var(--gray-200);
  border-radius: 4px;
  overflow: hidden;
}
.po-fill {
  height: 100%;
  border-radius: 4px;
}
.btn-vote {
  width: 100%;
  margin-top: 12px;
  padding: 10px;
  background: var(--violet);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-family: "Sarabun", sans-serif;
  cursor: pointer;
  font-weight: 700;
  transition: opacity 0.2s;
}
.btn-vote:hover {
  opacity: 0.88;
}

/* Links card */
/* ï¿½"?ï¿½"?ï¿½"? LINK BANNERS ï¿½"?ï¿½"?ï¿½"? */
.link-banners {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.lb-head {
  padding: 11px 14px;
  font-size: 14px;
  font-weight: 700;
  background: var(--indigo);
  color: #fff;
}
.lb-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  text-decoration: none;
  transition: opacity 0.2s;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.lb-item:first-of-type {
  border-top: none;
}
.lb-item:hover {
  opacity: 0.88;
}
.lb-logo {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: contain;
  background: #fff;
  flex-shrink: 0;
  padding: 2px;
}
.lb-emoji {
  font-size: 24px;
  width: 32px;
  text-align: center;
  flex-shrink: 0;
}
.lb-text {
  flex: 1;
  min-width: 0;
}
.lb-name {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}
.lb-desc {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 1px;
}
.lb-arr {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  flex-shrink: 0;
}
.link-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--gray-100);
  font-size: 13px;
  color: var(--gray-700);
  cursor: pointer;
  transition: background 0.2s;
}
.link-row:last-child {
  border-bottom: none;
}
.link-row:hover {
  background: var(--sky);
  color: var(--violet);
}
.link-icon {
  font-size: 16px;
  width: 28px;
  text-align: center;
}
.link-arrow {
  margin-left: auto;
  color: var(--gray-500);
  font-size: 12px;
}

/* ï¿½"?ï¿½"?ï¿½"? BANNER STRIP ï¿½"?ï¿½"?ï¿½"? */
.banner-strip {
  background: var(--gray-100);
  padding: 24px;
  border-top: 3px solid var(--indigo);
}
.banner-strip-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.banner-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 16px;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.25s;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.banner-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.banner-oss {
  background: var(--indigo);
  color: #fff;
}
.banner-ita {
  background: #059669;
  color: #fff;
}
.banner-nogift {
  background: var(--purple);
  color: #fff;
}
.banner-eservice {
  background: var(--violet);
  color: #fff;
}
.banner-icon {
  font-size: 32px;
  flex-shrink: 0;
}
.banner-body {
  flex: 1;
  min-width: 0;
}
.banner-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
  color: #fff;
}
.banner-sub {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
}
.banner-arrow {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.6);
  flex-shrink: 0;
}
.banner-card:hover .banner-arrow {
  color: #fff;
  transform: translateX(4px);
}
@media (max-width: 768px) {
  .banner-strip-inner,
  .home-banner-grid,
  .qr-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-items: stretch;
  }

  .banner-strip-inner {
    gap: 12px;
  }

  .home-banner-grid {
    gap: 12px;
  }
  .banner-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 12px 10px;
  }
  .banner-arrow {
    display: none;
  }
  .banner-icon {
    font-size: 26px;
  }
  .banner-title {
    font-size: 13px;
    line-height: 1.3;
  }
  .banner-sub {
    font-size: 11px;
    line-height: 1.45;
  }
  .banner-strip {
    padding: 16px;
  }
}

/* ï¿½"?ï¿½"?ï¿½"? SERVICES SECTION ï¿½"?ï¿½"?ï¿½"? */
.svc-inner {
  max-width: 1240px;
  margin: 0 auto;
}
.svc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.svc-card {
  background: var(--gray-50);
  border-radius: 12px;
  padding: 22px 16px;
  text-align: center;
  transition: all 0.3s;
  cursor: pointer;
  border: 1.5px solid transparent;
}
.svc-card:hover {
  background: var(--white);
  border-color: var(--violet);
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}
.svc-icon {
  font-size: 34px;
  margin-bottom: 10px;
}
.svc-card h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--indigo);
  margin-bottom: 5px;
}
.svc-card p {
  font-size: 13px;
  color: var(--gray-500);
  line-height: 1.5;
}
.svc-card .svc-arrow {
  display: none;
  font-size: 12px;
  color: var(--violet);
  margin-top: 8px;
  font-weight: 600;
}
.svc-card:hover .svc-arrow {
  display: block;
}

/* ï¿½"?ï¿½"?ï¿½"? GALLERY ï¿½"?ï¿½"?ï¿½"? */
.gal-wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 36px 24px 48px;
}
.gal-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.gi {
  background: var(--gray-200);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}
.gi:first-child {
  grid-column: span 2;
  grid-row: span 2;
}
.gi-bg {
  width: 100%;
  height: 100%;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: var(--gray-500);
  transition: transform 0.4s;
}
.gi:hover .gi-bg {
  transform: scale(1.06);
}
.gi-ov {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(11, 61, 145, 0.8));
  padding: 24px 12px 10px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.3s;
}
.gi:hover .gi-ov {
  opacity: 1;
}

/* ï¿½"?ï¿½"?ï¿½"? BANNER CTA ï¿½"?ï¿½"?ï¿½"? */
.cta-band {
  background: var(--indigo);
  padding: 48px 24px;
  text-align: center;
  color: #fff;
}
.cta-band h2 {
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 700;
  margin-bottom: 10px;
}
.cta-band p {
  font-size: 16px;
  opacity: 0.85;
  margin-bottom: 24px;
}
.cta-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.cta-btn {
  padding: 13px 28px;
  border-radius: 9px;
  font-size: 15px;
  font-weight: 700;
  font-family: "Sarabun", sans-serif;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}
.cta-btn.primary {
  background: var(--purple);
  color: #fff;
  border: none;
}
.cta-btn.primary:hover {
  background: #c2185b;
  transform: translateY(-2px);
}
.cta-btn.outline {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
}
.cta-btn.outline:hover {
  background: rgba(255, 255, 255, 0.1);
}

.cta-btn.cta-btn-plain {
  cursor: default;
  pointer-events: none;
}

.cta-btn.cta-btn-plain:hover {
  background: transparent;
  transform: none;
}

/* ï¿½"?ï¿½"?ï¿½"? FOOTER ï¿½"?ï¿½"?ï¿½"? */
footer {
  background: #1a7c31;
  color: rgba(255, 255, 255, 0.75);
  padding: 48px 24px 24px;
}

/* Keep footer links consistent when clicked/focused (override Bootstrap ring). */
footer a:focus,
footer a:active {
  outline: none !important;
  box-shadow: none !important;
  text-decoration: none !important;
}
.footer-grid {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-logo {
  width: 72px;
  height: 72px;
  margin-bottom: 12px;
}
.footer-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
.fb h2 {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}
.fb p {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 16px;
}
footer.modern-footer .fb p a[href^="tel:"] {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}
footer.modern-footer .fb p a[href^="tel:"]:hover {
  color: #edbe5c;
}
.social-row {
  display: flex;
  gap: 10px;
}
.soc-btn {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.2s;
}
.soc-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}
footer .fc h3,
.fc h3 {
  font-family: "Athiti", sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.68;
  color: #fff;
  margin: 0 0 12px;
  padding: 0 0 8px;
  border-bottom: 2px solid var(--purple);
  display: inline-block;
  text-transform: none;
  letter-spacing: normal;
}
.fc ul {
  list-style: none;
}
.fc ul li {
  margin-bottom: 8px;
}
.fc ul li a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  transition: all 0.2s;
}
.fc ul li a:hover {
  color: var(--accent);
  padding-left: 6px;
}
.footer-bottom {
  max-width: 1240px;
  margin: 0 auto;
  padding-top: 20px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  width: 100%;
  box-sizing: border-box;
}

.footer-bottom span {
  display: inline;
  white-space: nowrap;
}

.footer-bottom a {
  display: inline;
  white-space: nowrap;
}

/* ï¿½"?ï¿½"?ï¿½"? DOWNLOAD SECTION ï¿½"?ï¿½"?ï¿½"? */
.home-banner-section {
  background: var(--gray-50);
  padding: 34px 24px 0;
}
.home-banner-inner {
  max-width: 1240px;
  margin: 0 auto;
}
.home-banner-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.home-banner-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.home-banner-card:hover {
  border-color: var(--sky-deep);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.home-banner-card img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  height: auto;
  object-fit: contain;
  background: #fff;
}
.dl-section {
  background: var(--gray-50);
  padding: 40px 24px;
}
.dl-inner {
  max-width: 1240px;
  margin: 0 auto;
}
.dl-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.dl-tab {
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid var(--gray-200);
  background: var(--white);
  color: var(--gray-700);
  transition: all 0.2s;
  font-family: "Sarabun", sans-serif;
}
.dl-tab:hover {
  border-color: var(--violet);
  color: var(--violet);
}
.dl-tab.on {
  background: var(--violet);
  color: #fff;
  border-color: var(--violet);
}
.dl-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.dl-card {
  background: var(--white);
  border-radius: 10px;
  padding: 14px 16px;
  border: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.2s;
  cursor: pointer;
}
.dl-card:hover {
  border-color: var(--violet);
  box-shadow: var(--shadow);
  transform: translateX(3px);
}
.dl-card-icon {
  font-size: 22px;
  flex-shrink: 0;
}
.dl-card-info {
  flex: 1;
  min-width: 0;
}
.dl-card-info h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}
.dl-card-info span {
  font-size: 11px;
  color: var(--gray-500);
}
.dl-type {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  flex-shrink: 0;
}
.dl-pdf {
  background: #fee2e2;
  color: #991b1b;
}
.dl-doc {
  background: #dbeafe;
  color: #1e3a5f;
}
.dl-pane {
  display: none;
}
.dl-pane.on {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

/* ï¿½"?ï¿½"?ï¿½"? ITA/LPA SECTION ï¿½"?ï¿½"?ï¿½"? */
.ita-section {
  background: var(--white);
  padding: 40px 24px;
  border-top: 3px solid var(--gray-100);
}
.ita-full-inner {
  max-width: 1240px;
  margin: 0 auto;
}
.ita-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.ita-panel {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.ita-panel-head {
  padding: 18px 22px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
}
.ita-panel-head.blue {
  background: var(--indigo);
}
.ita-panel-head.green {
  background: #059669;
}
.ita-panel-head h3 {
  font-size: 16px;
  font-weight: 700;
}
.ita-panel-head p {
  font-size: 12px;
  opacity: 0.8;
  margin-top: 2px;
}
.ita-panel-head .ph-icon {
  font-size: 28px;
}
.ita-panel-body {
  background: var(--white);
}
.ita-link-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--gray-100);
  transition: background 0.2s;
  cursor: pointer;
}
.ita-link-row:last-child {
  border-bottom: none;
}
.ita-link-row:hover {
  background: var(--sky);
}
.ita-link-icon {
  font-size: 16px;
  width: 28px;
  text-align: center;
}
.ita-link-text {
  flex: 1;
  font-size: 14px;
  color: var(--text);
}
.ita-link-arrow {
  font-size: 13px;
  color: var(--gray-500);
}

/* ï¿½"?ï¿½"?ï¿½"? Q&A BOARD ï¿½"?ï¿½"?ï¿½"? */
.qa-section {
  background: var(--gray-50);
  padding: 40px 24px;
}
.qa-inner {
  max-width: 1240px;
  margin: 0 auto;
}
.qa-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  align-items: start;
}
.qa-form-card {
  background: var(--white);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 22px;
  margin-bottom: 20px;
}
.qa-form-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--indigo);
  margin-bottom: 16px;
}
.qa-field {
  margin-bottom: 14px;
}
.qa-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 5px;
}
.qa-field input,
.qa-field select,
.qa-field textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1.5px solid var(--gray-200);
  border-radius: 8px;
  font-size: 14px;
  font-family: "Sarabun", sans-serif;
  color: var(--text);
  background: var(--white);
  transition: border 0.2s;
  outline: none;
}
.qa-field input:focus,
.qa-field textarea:focus,
.qa-field select:focus {
  border-color: var(--violet);
}
.qa-field textarea {
  resize: vertical;
  min-height: 90px;
}
.qa-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.btn-submit {
  background: var(--violet);
  color: #fff;
  border: none;
  border-radius: 9px;
  padding: 11px 26px;
  font-size: 15px;
  font-weight: 700;
  font-family: "Sarabun", sans-serif;
  cursor: pointer;
  transition: opacity 0.2s;
}
.btn-submit:hover {
  opacity: 0.88;
}
.qa-thread {
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.qt-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.qt-header h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--indigo);
}
.qa-item {
  padding: 14px 18px;
  border-bottom: 1px solid var(--gray-100);
  cursor: pointer;
  transition: background 0.2s;
}
.qa-item:last-child {
  border-bottom: none;
}
.qa-item:hover {
  background: var(--sky);
}
.qa-item-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 4px;
}
.qa-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.qa-item-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}
.qa-item-meta {
  display: flex;
  gap: 10px;
  font-size: 13px;
  color: var(--gray-500);
  margin-top: 2px;
}
.qa-status {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 600;
}
.qs-answered {
  background: #d1fae5;
  color: #065f46;
}
.qs-pending {
  background: var(--gold-lt);
  color: #92400e;
}
.qa-reply-box {
  background: var(--sky);
  border-radius: 8px;
  padding: 12px 14px;
  margin-top: 8px;
  font-size: 13px;
  color: var(--gray-700);
  border-left: 3px solid var(--violet);
  display: none;
}
.qa-item.open .qa-reply-box {
  display: block;
}
.qa-stats-card {
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 16px;
}
.qa-stats-card h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--indigo);
  margin-bottom: 12px;
}
.qas-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 13px;
}
.qas-row:last-child {
  border-bottom: none;
}
.qas-num {
  font-weight: 700;
  color: var(--violet);
}
.qa-cat-list {
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 16px;
  margin-top: 16px;
}
.qa-cat-list h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--indigo);
  margin-bottom: 10px;
}
.qc-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid var(--gray-100);
  cursor: pointer;
  transition: color 0.2s;
  font-size: 13px;
}
.qc-item:last-child {
  border-bottom: none;
}
.qc-item:hover {
  color: var(--violet);
}
.qc-count {
  margin-left: auto;
  background: var(--sky-deep);
  color: var(--violet);
  font-size: 11px;
  padding: 1px 8px;
  border-radius: 10px;
  font-weight: 600;
}

/* ï¿½"?ï¿½"?ï¿½"? REAL IMAGE GRID ï¿½"?ï¿½"?ï¿½"? */
.img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--gray-500);
  font-size: 12px;
  text-align: center;
  padding: 8px;
}
.img-placeholder .ip-icon {
  font-size: 32px;
}
.img-upload-hint {
  font-size: 11px;
  color: var(--gray-500);
  opacity: 0.7;
}

/* ï¿½"?ï¿½"?ï¿½"? PROCUREMENT SECTION ï¿½"?ï¿½"?ï¿½"? */
.proc-inline {
  margin-bottom: 28px;
}
.proc-inline .proc-inner {
  padding: 0;
}
.proc-section {
  background: var(--white);
  padding: 40px 24px;
  border-top: 3px solid var(--gray-100);
}
.proc-inner {
  max-width: 1240px;
  margin: 0 auto;
}
.proc-filter {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.proc-filter label {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-700);
}
.proc-select {
  min-width: 280px;
  max-width: 100%;
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 14px;
  color: var(--text);
  font-family: "Sarabun", sans-serif;
}
.proc-search {
  min-width: 280px;
  max-width: 100%;
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 14px;
  color: var(--text);
  font-family: "Sarabun", sans-serif;
}
.proc-select:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(233, 30, 140, 0.12);
}
.proc-search:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(233, 30, 140, 0.12);
}
.proc-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.proc-tab {
  padding: 7px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid var(--gray-200);
  background: var(--white);
  color: var(--gray-700);
  transition: all 0.2s;
  font-family: "Sarabun", sans-serif;
}
.proc-tab:hover {
  border-color: var(--purple);
  color: var(--purple);
}
.proc-tab.on {
  background: var(--purple);
  color: #fff;
  border-color: var(--purple);
}
.proc-list {
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.proc-pane {
  display: none;
}
.proc-pane.on {
  display: block;
}
.proc-search-empty {
  display: none;
  padding: 16px;
  color: var(--gray-500);
}
.proc-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--gray-100);
  transition: background 0.2s;
  cursor: pointer;
}
.proc-row:last-child {
  border-bottom: none;
}
.proc-row:hover {
  background: var(--sky);
}
.proc-icon {
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}
.proc-info {
  flex: 1;
  min-width: 0;
}
.proc-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.5;
}
.proc-meta {
  display: flex;
  gap: 10px;
  margin-top: 4px;
  flex-wrap: wrap;
}
.proc-badge {
  font-size: 11px;
  padding: 2px 9px;
  border-radius: 10px;
  font-weight: 600;
}
.pb-plan {
  background: #dceeff;
  color: #1a7c31;
}
.pb-price {
  background: #fef3c7;
  color: #92400e;
}
.pb-result {
  background: #d1fae5;
  color: #065f46;
}
.pb-report {
  background: #dbeafe;
  color: #1e3a5f;
}
.proc-date {
  font-size: 13px;
  color: var(--gray-500);
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 80px;
  text-align: right;
}

/* ï¿½"?ï¿½"?ï¿½"? WEBBOARD + FAQ COMBINED ï¿½"?ï¿½"?ï¿½"? */
.wb-faq-section {
  background: var(--gray-50);
  padding: 40px 24px;
}
.wb-faq-inner {
  max-width: 1240px;
  margin: 0 auto;
}
.wb-faq-layout {
  display: grid;
  grid-template-columns: 70% 1fr;
  gap: 20px;
  align-items: start;
}
.wbfaq-box {
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.wbfaq-head {
  padding: 13px 16px;
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  background: var(--indigo);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.wbfaq-more {
  display: block;
  padding: 10px 16px;
  font-size: 13px;
  color: var(--violet);
  border-top: 1px solid var(--gray-100);
  text-decoration: none;
  transition: background 0.2s;
}
.wbfaq-more:hover {
  background: var(--sky);
}
.wb-faq-right .faq-grid {
  gap: 6px;
}
.wb-faq-right .faq-q {
  font-size: 14px;
}
@media (max-width: 1100px) {
  .wb-faq-layout {
    grid-template-columns: 60% 1fr;
  }
}
@media (max-width: 900px) {
  .wb-faq-layout {
    grid-template-columns: 1fr;
  }
}

/* ï¿½"?ï¿½"?ï¿½"? WEBBOARD SECTION ï¿½"?ï¿½"?ï¿½"? */
.wb-section {
  background: var(--gray-50);
  padding: 40px 24px;
}
.wb-inner {
  max-width: 1240px;
  margin: 0 auto;
}
.wb-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
  align-items: start;
}
.wb-list {
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.wb-cat-tabs {
  display: flex;
  border-bottom: 2px solid var(--gray-100);
}
.wb-ctab {
  padding: 12px 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-500);
  cursor: pointer;
  border: none;
  background: none;
  font-family: "Sarabun", sans-serif;
  transition: all 0.2s;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
}
.wb-ctab:hover {
  color: var(--violet);
}
.wb-ctab.on {
  color: var(--violet);
  border-bottom-color: var(--violet);
}
.wb-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--gray-100);
  cursor: pointer;
  transition: background 0.2s;
}
.wb-item:last-child {
  border-bottom: none;
}
.wb-item:hover {
  background: var(--sky);
}
.wb-ava {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.wb-body {
  flex: 1;
  min-width: 0;
}
.wb-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 4px;
}
.wb-meta {
  display: flex;
  gap: 10px;
  font-size: 13px;
  color: var(--gray-500);
  flex-wrap: wrap;
  align-items: center;
}
.wb-status {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 600;
}
.ws-ans {
  background: #d1fae5;
  color: #065f46;
}
.ws-new {
  background: var(--sky-deep);
  color: var(--violet);
}
.ws-pend {
  background: #fef3c7;
  color: #92400e;
}
.wb-pin {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 600;
  background: #fee2e2;
  color: #991b1b;
}
.wb-counts {
  display: flex;
  gap: 12px;
  font-size: 13px;
  color: var(--gray-500);
}
.wb-side-card {
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 16px;
}
.wb-side-head {
  background: var(--indigo);
  padding: 14px 16px;
  color: #fff;
}
.wb-side-head h3 {
  font-size: 14px;
  font-weight: 700;
}
.wb-side-body {
  padding: 14px 16px;
}
.wb-side-row {
  display: flex;
  justify-content: space-between;
  padding: 7px 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 13px;
}
.wb-side-row:last-child {
  border-bottom: none;
}
.wb-side-num {
  font-weight: 700;
  color: var(--violet);
}
.wb-post-btn {
  display: block;
  width: 100%;
  padding: 12px;
  background: var(--violet);
  color: #fff;
  border: none;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 700;
  font-family: "Sarabun", sans-serif;
  cursor: pointer;
  text-align: center;
  transition: opacity 0.2s;
  text-decoration: none;
  margin-top: 4px;
}
.wb-post-btn:hover {
  opacity: 0.88;
}
.wb-hot {
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.wb-hot-head {
  padding: 12px 16px;
  border-bottom: 1px solid var(--gray-100);
  font-size: 14px;
  font-weight: 700;
  color: var(--indigo);
}
.wb-hot-item {
  display: flex;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--gray-100);
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s;
}
.wb-hot-item:last-child {
  border-bottom: none;
}
.wb-hot-item:hover {
  background: var(--sky);
}
.wb-hot-num {
  font-size: 16px;
  font-weight: 700;
  color: var(--gray-200);
  flex-shrink: 0;
  min-width: 22px;
}
.wb-hot-num.top {
  color: var(--gold);
}

/* ï¿½"?ï¿½"?ï¿½"? VISITOR COUNTER ï¿½"?ï¿½"?ï¿½"? */
.vc-box {
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.vc-head {
  background: var(--indigo);
  padding: 13px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.vc-head h3 {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}
.vc-dot {
  width: 8px;
  height: 8px;
  background: #4ade80;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(74, 222, 128, 0.35);
  animation: vcpulse 2s infinite;
}
@keyframes vcpulse {
  0%,
  100% {
    box-shadow: 0 0 0 2px rgba(74, 222, 128, 0.35);
  }
  50% {
    box-shadow: 0 0 0 5px rgba(74, 222, 128, 0.15);
  }
}
.vc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}
.vc-stat {
  background: var(--white);
  padding: 12px 14px;
  text-align: center;
}
.vc-stat.vc-total {
  grid-column: span 2;
  background: var(--sky-deep);
}
.vc-label {
  font-size: 13px;
  color: var(--gray-500);
  font-weight: 500;
  margin-bottom: 4px;
}
.vc-num {
  font-size: 22px;
  font-weight: 700;
  color: var(--indigo);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.5px;
}
.vc-stat.vc-total .vc-num {
  font-size: 28px;
  color: var(--indigo);
  font-weight: 800;
}
.vc-online {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--gray-700);
}
.vc-green-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  flex-shrink: 0;
  animation: vcpulse 1.5s infinite;
}

/* ï¿½"?ï¿½"?ï¿½"? IMAGE CAROUSEL ï¿½"?ï¿½"?ï¿½"? */
.carousel-outer {
  background: var(--gray-100);
  padding: 20px 24px;
}
.carousel-wrap {
  position: relative;
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 1240 / 612;
  min-height: 332px;
  max-height: 70vh;
  background: var(--indigo);
  box-shadow: var(--shadow-md);
}
.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
.car-slide {
  width: 100%;
  flex: 0 0 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--indigo);
}
.car-slide-link {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--indigo);
}
.car-slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
}
/* Prev / Next buttons */
.car-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(36px, 5vw, 48px);
  height: clamp(36px, 5vw, 48px);
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  cursor: pointer;
  font-size: clamp(20px, 3vw, 26px);
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.2s,
    transform 0.2s;
  z-index: 5;
  backdrop-filter: blur(4px);
}
.car-prev {
  left: 12px;
}
.car-next {
  right: 12px;
}
.car-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-50%) scale(1.1);
}
/* Dots */
.car-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
  z-index: 5;
}
.car-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: all 0.25s;
  padding: 0;
}
.car-dot.on {
  background: #fff;
  width: 28px;
  border-radius: 4px;
}

@media (max-width: 1024px) {
  .carousel-wrap {
    aspect-ratio: 16 / 9;
    min-height: 293px;
  }
}

@media (max-width: 768px) {
  .carousel-wrap {
    aspect-ratio: 20 / 17;
    min-height: 281px;
    max-height: 61vh;
  }
}

@media (max-width: 600px) {
  .carousel-outer {
    padding: 12px 12px;
  }
  .carousel-wrap {
    min-height: 255px;
  }
  .car-prev {
    left: 6px;
  }
  .car-next {
    right: 6px;
  }
}

@media (max-width: 480px) {
  .carousel-wrap {
    aspect-ratio: 21 / 20;
    min-height: 230px;
    max-height: 56vh;
  }
}

/* Bottom-right floating stack: banner · messenger · contacts */
.modern-floating-stack {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 600;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.modern-floating-stack .mq-complaint-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.modern-floating-stack .mq-close {
  position: absolute;
  top: -6px;
  right: -6px;
  z-index: 2;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.modern-floating-stack .mq-complaint-link {
  display: block;
  line-height: 0;
}

.modern-floating-stack .mq-complaint-link img {
  width: auto;
  height: auto;
  max-width: none;
  border-radius: 12px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.2);
  display: block;
}

.modern-floating-stack .mq-messenger-link {
  display: block;
  line-height: 0;
}

.modern-floating-stack .mq-messenger-link img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  display: block;
}

.modern-floating-stack .chat-float {
  position: static;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.chat-toggle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--violet);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 22px;
  box-shadow: 0 4px 16px rgba(11, 61, 145, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s;
}
.chat-toggle:hover {
  background: var(--indigo);
  transform: scale(1.1);
}
.chat-panel {
  background: var(--white);
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(11, 61, 145, 0.18);
  width: 220px;
  overflow: hidden;
  border: 1px solid var(--gray-200);
  display: none;
}
.chat-panel.open {
  display: block;
}
.chat-panel-head {
  background: var(--indigo);
  color: #fff;
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 700;
}
.chat-channel {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--gray-100);
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s;
  text-decoration: none;
}
.chat-channel:last-child {
  border-bottom: none;
}
.chat-channel:hover {
  background: var(--sky);
  color: var(--violet);
}
.chat-ch-icon {
  font-size: 20px;
  width: 28px;
  text-align: center;
  flex-shrink: 0;
}

/* ï¿½"?ï¿½"?ï¿½"? GOOGLE MAP SECTION ï¿½"?ï¿½"?ï¿½"? */
.map-section {
  background: var(--white);
  padding: 0;
}
.map-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 36px 24px;
}
.map-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  align-items: start;
}
.map-frame {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
}
.map-info-card {
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.map-info-head {
  background: var(--indigo);
  padding: 16px 18px;
  color: #fff;
}
.map-info-head h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 2px;
}
.map-info-head p {
  font-size: 12px;
  opacity: 0.8;
}
.map-info-body {
  padding: 14px 16px;
}
.map-info-row {
  display: flex;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 14px;
  align-items: flex-start;
}
.map-info-row:last-child {
  border-bottom: none;
}
.map-info-icon {
  font-size: 16px;
  width: 24px;
  flex-shrink: 0;
}
.map-info-row a {
  color: var(--violet);
}
.btn-directions {
  display: block;
  width: 100%;
  margin-top: 14px;
  padding: 10px;
  background: var(--violet);
  color: #fff;
  border: none;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 700;
  font-family: "Sarabun", sans-serif;
  cursor: pointer;
  text-align: center;
  transition: background 0.2s;
  text-decoration: none;
}
.btn-directions:hover {
  background: var(--indigo);
}

/* ï¿½"?ï¿½"?ï¿½"? QR CODE SECTION ï¿½"?ï¿½"?ï¿½"? */
.qr-section {
  background: var(--sky);
  padding: 36px 24px;
  border-top: 1px solid var(--sky-deep);
}
.qr-inner {
  max-width: 1240px;
  margin: 0 auto;
}
.qr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 20px;
  justify-items: center;
}
.qr-card {
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 24px 20px;
  text-align: center;
  transition: all 0.25s;
  width: 100%;
  max-width: 320px;
}
.qr-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.qr-img {
  width: 220px;
  height: 220px;
  margin: 0 auto 14px;
  border-radius: 10px;
  overflow: hidden;
  border: 3px solid var(--sky-deep);
}
.qr-img a {
  display: block;
  width: 100%;
  height: 100%;
  line-height: 0;
  transition: opacity 0.2s;
}
.qr-img a:hover {
  opacity: 0.88;
}
.qr-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.qr-placeholder {
  width: 220px;
  height: 220px;
  margin: 0 auto 14px;
  background: var(--gray-100);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 2px dashed var(--gray-200);
}
.qr-placeholder-icon {
  font-size: 36px;
}
.qr-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--indigo);
  margin-bottom: 4px;
}
.qr-desc {
  font-size: 13px;
  color: var(--gray-500);
  line-height: 1.4;
}
.qr-badge {
  display: inline-block;
  margin-top: 8px;
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 600;
}
.qr-line {
  background: #06c755;
  color: #fff;
}
.qr-fb {
  background: #1877f2;
  color: #fff;
}
.qr-egov {
  background: var(--indigo);
  color: #fff;
}
.qr-complaint {
  background: #edbe5c;
  color: #fff;
}

/* ï¿½"?ï¿½"?ï¿½"? TAX PAYMENT BAND ï¿½"?ï¿½"?ï¿½"? */
.tax-band {
  background: var(--indigo);
  padding: 32px 24px;
}
.tax-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.tax-text h3 {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}
.tax-text p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}
.tax-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.btn-tax {
  padding: 11px 22px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 700;
  font-family: "Sarabun", sans-serif;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.btn-tax.primary {
  background: var(--purple);
  color: #fff;
  border: none;
}
.btn-tax.primary:hover {
  background: #c2185b;
}
.btn-tax.outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.45);
}
.btn-tax.outline:hover {
  background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
  .map-layout {
    grid-template-columns: 1fr;
  }
  .qr-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 16px;
    justify-items: stretch;
  }
  .qr-card {
    max-width: none;
    width: 100%;
    padding: 16px 12px;
  }
  .qr-img,
  .qr-placeholder {
    width: 100%;
    max-width: 200px;
    height: auto;
    aspect-ratio: 1;
    margin-left: auto;
    margin-right: auto;
  }
  .tax-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (max-width: 480px) {
  .qr-section {
    padding: 24px 16px;
  }
  .qr-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 12px;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    justify-items: stretch;
  }
  .qr-card {
    max-width: none;
    width: 100%;
    padding: 12px 8px;
  }
  .qr-img,
  .qr-placeholder {
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 1;
    margin-bottom: 8px;
  }
  .qr-name {
    font-size: 12px;
    line-height: 1.35;
  }
  .qr-desc {
    font-size: 11px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .qr-badge {
    font-size: 10px;
    padding: 2px 8px;
    margin-top: 6px;
  }
  .modern-floating-stack {
    right: 14px;
    bottom: 14px;
    gap: 8px;
  }

  .modern-floating-stack .mq-complaint-link img {
    max-width: 110px;
  }

  .modern-floating-stack .mq-messenger-link img,
  .modern-floating-stack .chat-toggle {
    width: 48px;
    height: 48px;
  }
}
/* ï¿½"?ï¿½"?ï¿½"? FAQ SECTION ï¿½"?ï¿½"?ï¿½"? */
.faq-section {
  background: var(--gray-100);
  padding: 40px 24px;
}
.faq-inner {
  max-width: 1240px;
  margin: 0 auto;
}
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.faq-item {
  background: var(--white);
  border-radius: 10px;
  box-shadow: var(--shadow);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid transparent;
  transition: border-color 0.2s;
}
.faq-item:hover {
  border-color: var(--violet);
}
.faq-item.open {
  border-color: var(--violet);
}
.faq-q {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.5;
}
.faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background: var(--violet);
  color: #fff;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  margin-top: 1px;
}
.faq-item.open .faq-icon {
  background: var(--purple);
}
.faq-q span:nth-child(2) {
  flex: 1;
}
.faq-caret {
  font-size: 11px;
  color: var(--gray-500);
  flex-shrink: 0;
  margin-top: 3px;
  transition: transform 0.25s;
}
.faq-item.open .faq-caret {
  transform: rotate(180deg);
  color: var(--violet);
}
.faq-a {
  display: none;
  padding: 0 16px 14px 50px;
  font-size: 14px;
  color: var(--gray-700);
  line-height: 1.7;
  border-top: 1px solid var(--gray-100);
}
.faq-item.open .faq-a {
  display: block;
}
@media (max-width: 768px) {
  .faq-grid {
    grid-template-columns: 1fr;
  }
}

/* ï¿½"?ï¿½"?ï¿½"? FOOTER VISITOR COUNTER ï¿½"?ï¿½"?ï¿½"? */
.footer-vc {
  background: var(--indigo);
  border-top: 3px solid var(--purple);
  padding: 14px 24px;
}
.footer-vc-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.fvc-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
}
.fvc-stats {
  display: flex;
  align-items: center;
  gap: 0;
}
.fvc-stat {
  text-align: center;
  padding: 4px 18px;
}
.fvc-stat.fvc-total {
  background: rgba(233, 30, 140, 0.2);
  border-radius: 8px;
}
.fvc-num {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.fvc-stat.fvc-total .fvc-num {
  color: #f9a8d4;
}
.fvc-lbl {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 2px;
}
.fvc-sep {
  width: 1px;
  height: 28px;
  background: rgba(255, 255, 255, 0.15);
}
@media (max-width: 600px) {
  .fvc-stat {
    padding: 4px 10px;
  }
  .fvc-num {
    font-size: 15px;
  }
}

/* ï¿½"?ï¿½"?ï¿½"? EVENT CALENDAR ï¿½"?ï¿½"?ï¿½"? */
.cal-box {
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.cal-head {
  background: var(--indigo);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
}
.cal-month-label {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}
button.cal-nav {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  font-family: "Sarabun", sans-serif;
}
.cal-nav:hover {
  background: rgba(255, 255, 255, 0.3);
}
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: var(--sky);
  padding: 6px 8px 4px;
}
.cal-dow {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--violet);
  padding: 3px 0;
}
.cal-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  padding: 4px 8px 10px;
  gap: 3px;
}
.cal-day {
  text-align: center;
  padding: 5px 2px;
  font-size: 13px;
  border-radius: 6px;
  cursor: default;
  line-height: 1.2;
  min-height: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: inherit;
}
.cal-day.empty {
}
.cal-day.today {
  background: var(--indigo);
  color: #fff;
  font-weight: 700;
  border-radius: 50%;
}
.cal-day.has-event {
  background: var(--sky-deep);
  color: var(--indigo);
  font-weight: 700;
  cursor: pointer;
}
.cal-day.has-event:hover {
  background: var(--violet);
  color: #fff;
}
.cal-day.has-event::after {
  content: "";
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--purple);
  margin: 2px auto 0;
}
.cal-day.today.has-event {
  background: var(--indigo);
}
.cal-day.today.has-event::after {
  background: #fff;
}
.cal-day.other-month {
  color: var(--gray-200);
}
.cal-events {
  border-top: 1px solid var(--gray-100);
  padding: 12px 14px 14px;
}
.cal-ev-head {
  font-size: 13px;
  font-weight: 700;
  color: var(--indigo);
  margin-bottom: 8px;
}
.cal-ev-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 7px 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 13px;
}
.cal-ev-item:last-child {
  border-bottom: none;
}
.cal-ev-date {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--indigo);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
}
.cal-ev-date .cd {
  font-size: 16px;
}
.cal-ev-title {
  color: var(--text);
  line-height: 1.4;
}
.cal-ev-empty {
  font-size: 13px;
  color: var(--gray-500);
  text-align: center;
  padding: 8px 0;
}

/* ï¿½"?ï¿½"?ï¿½"? FLOATING SIDEBAR BUTTON ï¿½"?ï¿½"?ï¿½"? */
.sb-float-btn {
  display: none;
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 698;
  flex-direction: column;
  align-items: center;
  background: var(--indigo);
  color: #fff;
  border: none;
  cursor: pointer;
  padding: 14px 8px;
  gap: 6px;
  border-radius: 10px 0 0 10px;
  box-shadow: -3px 0 12px rgba(11, 61, 145, 0.25);
  font-family: "Sarabun", sans-serif;
  font-size: 11px;
  font-weight: 700;
  transition: background 0.2s;
  writing-mode: vertical-rl;
}
.sb-float-btn:hover {
  background: var(--violet);
}
.sb-float-icon {
  font-size: 18px;
  writing-mode: horizontal-tb;
}
.sb-close-btn {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--indigo);
  color: #fff;
  border-radius: 0;
  margin-bottom: 0;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  width: 100%;
  font-family: "Sarabun", sans-serif;
  position: sticky;
  top: 0;
  z-index: 1;
}
.sb-close-btn span {
  opacity: 0.7;
  font-size: 18px;
}

/* ï¿½"?ï¿½"?ï¿½"? FADE-IN ANIMATION ï¿½"?ï¿½"?ï¿½"? */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.fade-in {
  opacity: 0;
  animation: fadeInUp 0.55s ease forwards;
}
.fade-in.delay-1 {
  animation-delay: 0.08s;
}
.fade-in.delay-2 {
  animation-delay: 0.16s;
}
.fade-in.delay-3 {
  animation-delay: 0.24s;
}
.fade-in.delay-4 {
  animation-delay: 0.32s;
}

/* pre-hidden state before JS kicks in */
.will-fade {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.55s ease,
    transform 0.55s ease;
}
.will-fade.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ï¿½"?ï¿½"?ï¿½"? RESPONSIVE ï¿½"?ï¿½"?ï¿½"? */
@media (max-width: 1024px) {
  .news-grid,
  .event-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .nc.feat {
    grid-column: span 2;
  }
  .page-body {
    padding-left: 16px;
    padding-right: 16px;
    gap: 22px;
  }
  .carousel-outer,
  .map-inner,
  footer.modern-footer {
    padding-left: 16px;
    padding-right: 16px;
  }
  .svc-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .gal-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gi:first-child {
    grid-column: span 2;
  }
  .ita-two-col {
    grid-template-columns: 1fr;
  }
  .dl-pane.on {
    grid-template-columns: repeat(2, 1fr);
  }
  .qa-layout {
    grid-template-columns: 1fr;
  }
  .wb-layout {
    grid-template-columns: 1fr;
  }

  /* Top menu → hamburger + mobile nav (เท่าแท็บเล็ต/มือถือ) */
  .main-nav {
    display: none;
  }
  .hamburger {
    display: flex !important;
  }
  .header-contact-item {
    display: none;
  }
}
@media (max-width: 860px) {
  .page-body {
    grid-template-columns: 1fr;
  }
  .nc.feat {
    flex-direction: column;
  }
  .nc.feat .nc-img {
    width: 100%;
    height: 200px;
  }

  /* ï¿½"?ï¿½"? Floating Sidebar (mobile/tablet) ï¿½"?ï¿½"? */
  .sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    bottom: 0;
    width: min(348px, 100%);
    max-width: 100%;
    height: 100dvh;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 700;
    background: var(--gray-100);
    padding: 0;
    box-shadow: -6px 0 32px rgba(11, 61, 145, 0.22);
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    scrollbar-width: thin;
    scrollbar-color: var(--gray-200) transparent;
    order: 0;
    gap: 20px; /* ï¿½?ï¿½-ï¿½^à¸² desktop gap */
    display: flex;
    flex-direction: column;
  }
  .sidebar.sb-open {
    right: 0;
  }

  /* padding à¸£à¸­ï¿½s content ï¿½?ï¿½-ï¿½^à¸² desktop */
  .sidebar > *:not(.sb-close-btn) {
    flex-shrink: 0;
  }

  .sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 699;
    backdrop-filter: blur(3px);
  }
  .sidebar-overlay.sb-open {
    display: block;
  }

  .sb-close-btn {
    display: flex;
    position: sticky;
    top: 0;
    z-index: 2;
    margin: 0;
    width: 100%;
    border-radius: 0;
    flex-shrink: 0;
  }
  .sb-float-btn {
    display: flex !important;
  }
}
@media (max-width: 480px) {
  .news-grid {
    grid-template-columns: 1fr;
  }
  .event-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 500px) {
  .cover-top-right .cover-contact {
    display: none !important;
  }
  .cover-crest {
    width: 46px;
    height: 46px;
  }
  .cover-title h1 {
    font-size: 13px;
  }
  .cover-logo-bar {
    padding: 10px 14px;
  }
}
@media (max-width: 600px) {
  .hero {
    min-height: 320px;
  }
  .hero-inner {
    padding: 32px 16px 40px;
  }
  .svc-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .page-body,
  .gal-wrap,
  .home-banner-section,
  .dl-section,
  .ita-section,
  .qa-section,
  .proc-section,
  .wb-section {
    padding: 20px 16px;
  }
  .ita-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .dl-pane.on {
    grid-template-columns: 1fr;
  }
  .home-banner-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .qa-field-row {
    grid-template-columns: 1fr;
  }
  .hero-stats {
    grid-template-columns: 1fr 1fr;
  }
  .hstat-num {
    font-size: 22px;
  }
  .proc-tabs {
    gap: 4px;
  }
  .proc-tab {
    font-size: 12px;
    padding: 6px 10px;
  }
  .proc-filter {
    flex-direction: column;
    align-items: flex-start;
  }
  .proc-select {
    width: 100%;
    min-width: 0;
  }
  .proc-search {
    width: 100%;
    min-width: 0;
  }
  .qbar-inner {
    padding: 4px 12px;
  }
  .qitem {
    min-width: 72px;
    padding: 8px 8px;
  }
  .nc.feat .nc-img {
    height: 180px;
  }
  .wb-layout {
    grid-template-columns: 1fr;
  }
  .gal-grid {
    grid-template-columns: 1fr 1fr;
  }
  .gi:first-child {
    grid-column: span 2;
  }
}

/* การ์ดหน้าแรก — จอ 769–1024px แถวละ 3 รายการ */
@media (min-width: 769px) and (max-width: 1024px) {
  .banner-strip-inner,
  .home-banner-grid,
  .qr-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    justify-items: stretch;
  }

  .banner-card {
    flex-direction: row;
    align-items: center;
    padding: 14px 12px;
    gap: 10px;
  }

  .banner-arrow {
    display: block;
  }

  .banner-icon {
    font-size: 28px;
  }

  .banner-title {
    font-size: 14px;
  }

  .banner-sub {
    font-size: 11px;
  }

  .qr-card {
    max-width: none;
    width: 100%;
    padding: 16px 12px;
  }

  .qr-img,
  .qr-placeholder {
    width: 100%;
    max-width: 180px;
    height: auto;
    aspect-ratio: 1;
    margin-left: auto;
    margin-right: auto;
  }
}

/* การ์ดหน้าแรก — จอ ≤768px แถวละ 2 รายการ (หลัง breakpoint แท็บเล็ต) */
@media (max-width: 768px) {
  .banner-strip-inner,
  .home-banner-grid,
  .qr-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-items: stretch;
  }
}

/* POPUP LIGHTBOX */
.popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.42s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.42s;
  cursor: pointer;
}
.popup-overlay.is-open {
  opacity: 1;
  visibility: visible;
}
.popup-overlay.is-closing {
  pointer-events: none;
}
.popup-overlay.hidden {
  display: none !important;
  pointer-events: none !important;
}
.popup-box {
  position: relative;
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  width: fit-content;
  max-width: min(760px, calc(100vw - 40px));
  opacity: 0;
  transform: scale(0.97) translateZ(0);
  transition: opacity 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
  cursor: default;
}
.popup-overlay.is-open .popup-box {
  opacity: 1;
  transform: scale(1) translateZ(0);
}
@media (prefers-reduced-motion: reduce) {
  .popup-overlay,
  .popup-box {
    transition-duration: 0.01ms !important;
  }
}
.popup-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  cursor: pointer;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.popup-close:hover {
  background: rgba(0, 0, 0, 0.75);
}
.popup-banner {
  display: block;
  line-height: 0;
  width: fit-content;
  max-width: min(760px, calc(100vw - 40px));
}
.popup-banner img {
  width: auto;
  height: auto;
  display: block;
  max-width: min(760px, calc(100vw - 40px));
  max-height: min(70vh, 560px);
  object-fit: contain;
}

/* ï¿½"?ï¿½"?ï¿½"? COOKIE CONSENT ï¿½"?ï¿½"?ï¿½"? */
.cookie-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 800;
  background: linear-gradient(90deg, rgba(26, 124, 49, 0.97), rgba(46, 146, 69, 0.97));
  backdrop-filter: blur(8px);
  border-top: 3px solid #edbe5c;
  padding: 14px 24px;
  transition: transform 0.4s ease;
  box-shadow: 0 -4px 24px rgba(26, 124, 49, 0.35);
}
.cookie-bar.hidden {
  transform: translateY(110%);
  pointer-events: none;
}
.cookie-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.cookie-text {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex: 1;
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
  line-height: 1.6;
}
.cookie-icon {
  font-size: 24px;
  flex-shrink: 0;
}
.cookie-text strong {
  color: #fff;
  display: block;
  margin-bottom: 2px;
  font-size: 15px;
}
.cookie-text a {
  color: #fff3cf;
}
.cookie-btns {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.cookie-accept {
  background: #edbe5c;
  color: #1a4f2a;
  border: none;
  border-radius: 9px;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 700;
  font-family: "Sarabun", sans-serif;
  cursor: pointer;
  transition: background 0.2s;
}
.cookie-accept:hover {
  background: #d98d19;
  color: #fff;
}
.cookie-decline {
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  border-radius: 9px;
  padding: 10px 16px;
  font-size: 14px;
  font-family: "Sarabun", sans-serif;
  cursor: pointer;
}
.cookie-decline:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
@media (max-width: 600px) {
  .cookie-inner {
    flex-direction: column;
  }
  .cookie-btns {
    width: 100%;
  }
  .cookie-accept,
  .cookie-decline {
    flex: 1;
    text-align: center;
  }
}

/* ï¿½"?ï¿½"?ï¿½"? IFRAME GLOBAL 100% WIDTH ï¿½"?ï¿½"?ï¿½"? */
.fb-page-embed iframe {
  width: 100% !important;
  display: block;
  min-height: 380px;
}
.map-frame iframe {
  width: 100%;
  display: block;
}

/* ï¿½"?ï¿½"?ï¿½"? ELECTION TOGGLE BLOCK ï¿½"?ï¿½"?ï¿½"? */
.elect-wrap {
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 24px;
  border-left: 4px solid #edbe5c;
}
.elect-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  cursor: pointer;
  background: linear-gradient(135deg, #1a7c31 0%, #2e9245 100%);
  user-select: none;
  transition: opacity 0.2s;
}
.elect-head:hover {
  opacity: 0.92;
}
.elect-head-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.elect-icon {
  font-size: 22px;
}
.elect-title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}
.elect-badge {
  background: #edbe5c;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
}
.elect-toggle-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
  transition: background 0.2s;
}
.elect-head:hover .elect-toggle-btn {
  background: rgba(255, 255, 255, 0.25);
}
#electArrow {
  font-size: 14px;
  transition: transform 0.3s;
}
.elect-body {
  padding: 16px 18px 18px;
  border-top: 1px solid var(--gray-100);
  display: none;
}
.elect-body.open {
  display: block;
}
.elect-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}
.elect-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 14px 10px;
  border-radius: 10px;
  background: var(--sky);
  text-decoration: none;
  transition: all 0.2s;
  border: 1.5px solid transparent;
}
.elect-card:hover {
  background: var(--indigo);
  border-color: var(--indigo);
}
.elect-card:hover .elect-card-title,
.elect-card:hover .elect-card-sub {
  color: #fff;
}
.elect-card-icon {
  font-size: 26px;
  margin-bottom: 6px;
}
.elect-card-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--indigo);
  margin-bottom: 3px;
}
.elect-card-sub {
  font-size: 11px;
  color: var(--gray-500);
  line-height: 1.4;
}
.elect-card-ect {
  background: #fef3c7;
}
.elect-card-ect:hover {
  background: #f59e0b;
  border-color: #f59e0b;
}
.elect-notice {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: #fff8e1;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--gray-700);
  line-height: 1.6;
  border-left: 3px solid #f59e0b;
}
@media (max-width: 600px) {
  .elect-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ï¿½"?ï¿½"?ï¿½"? SIDEBAR ACCORDION MENU ï¿½"?ï¿½"?ï¿½"? */
.sb-menu-box {
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.sb-menu-item {
  border-bottom: 1px solid var(--gray-100);
}
.sb-menu-item:last-child {
  border-bottom: none;
}
.sb-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px;
  cursor: pointer;
  background: var(--indigo);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  transition: background 0.2s;
  user-select: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.sb-menu-head:hover {
  background: var(--violet);
}
.sb-arrow {
  font-size: 16px;
  transition: transform 0.25s;
  opacity: 0.8;
}
.sb-menu-item.open .sb-arrow {
  transform: rotate(90deg);
}
.sb-menu-body {
  display: none;
  flex-direction: column;
  background: var(--white);
  padding: 6px 0;
}
.sb-menu-item.open .sb-menu-body {
  display: flex;
}
.sb-menu-body a {
  padding: 9px 20px;
  font-size: 13.5px;
  color: var(--gray-700);
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: all 0.15s;
}
.sb-menu-body a:hover {
  background: var(--sky);
  color: var(--indigo);
  border-left-color: var(--violet);
  padding-left: 24px;
}

/* ï¿½"?ï¿½"?ï¿½"? SIDEBAR QUICK LINKS LIST ï¿½"?ï¿½"?ï¿½"? */
.sb-links-box {
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.sb-links-head {
  background: var(--indigo);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 16px;
}
.sb-links-list {
  display: flex;
  flex-direction: column;
  padding: 6px 0;
}
.sb-links-list a {
  padding: 8px 18px;
  font-size: 13.5px;
  color: var(--gray-700);
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: all 0.15s;
}
.sb-links-list a:hover {
  background: var(--sky);
  color: var(--indigo);
  border-left-color: var(--violet);
  padding-left: 22px;
}
.sb-links-list a + a {
  border-top: 1px solid var(--gray-100);
}
/* E-Service nav highlight */
.nav-eservice {
  background: var(--purple) !important;
  color: #fff !important;
  border-radius: 6px;
  padding: 6px 14px !important;
}
.nav-eservice:hover {
  background: #c2185b !important;
}

/* Responsive safety layer — ไม่ล้นจอทุกขนาด */
html {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

body {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

img,
video,
canvas,
svg {
  max-width: 100%;
  height: auto;
}

iframe {
  max-width: 100%;
}

table {
  width: 100%;
  max-width: 100%;
}

.post-desc table,
.entry-content table,
.content table,
.table-responsive table {
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.fb-page-embed iframe,
.map-frame iframe,
.yt-embed iframe,
.video-embed iframe {
  width: 100% !important;
  max-width: 100% !important;
}

@media (max-width: 991px) {
  .container,
  .container-fluid,
  .main-wrapper,
  .content-wrap {
    width: 100%;
    max-width: 100%;
  }

  .row {
    margin-left: 0;
    margin-right: 0;
  }

  [class*="col-"] {
    padding-left: 10px;
    padding-right: 10px;
  }
}

@media (max-width: 768px) {
  .topbar-inner,
  .site-cover,
  .section-head,
  .news-grid,
  .footer-grid,
  .content-wrap,
  .inner-page-wrap {
    padding-left: 12px;
    padding-right: 12px;
  }

  .cover-logo-float {
    width: min(94vw, 520px);
    top: 44%;
    transform: translate(-50%, -58%);
  }

  .cover-tagline {
    bottom: 10px;
    font-size: clamp(11px, 3.2vw, 15px);
    line-height: 1.3;
    padding: 0 14px;
  }

  .cover-title-float h1,
  .cover-title-float p,
  .cover-tagline {
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  .popup-box {
    width: min(92vw, 520px);
    max-height: 88vh;
    overflow-y: auto;
  }
}

/* ป้องกันล้นจอ — min-width:0 ใน grid/flex (ไม่ใส่ max-width:100% ที่ wrapper 1240px) */
.page-body > div:first-child,
.page-body > .sidebar,
.yt-wrap,
.yt-main,
.map-layout,
.qa-layout,
.wb-layout,
.ita-two-col,
.elect-wrap,
.ann-wrap {
  min-width: 0;
}

.map-layout,
.qa-layout,
.wb-layout,
.ita-two-col {
  max-width: 100%;
}

.page-body > div:first-child {
  overflow-x: clip;
}

/* ส่วนล่างหน้าแรก + footer — คงความกว้างกลาง 1240px บนเดสก์ท็อป */
.banner-strip-inner,
.qr-inner,
.dl-inner,
.wb-faq-inner,
.tax-inner,
.home-banner-inner,
.map-inner,
.proc-inner,
.qa-inner,
.faq-inner,
.ita-full-inner,
.gal-wrap,
.footer-grid,
.footer-bottom,
.footer-vc-inner {
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.sh h2,
.nc-title,
.yt-title,
.proc-title,
.ann-title,
.map-info-row,
.cover-title-float h1,
.cover-tagline {
  overflow-wrap: anywhere;
  word-break: break-word;
}

@media (max-width: 640px) {
  .news-grid,
  .event-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .nc.feat {
    grid-column: span 1;
    flex-direction: column;
  }

  .nc.feat .nc-img {
    width: 100%;
    min-height: 0;
    height: auto;
    max-height: 220px;
  }

  .faq-grid {
    grid-template-columns: 1fr;
  }

  .ita-grid {
    grid-template-columns: 1fr;
  }

  .svc-grid {
    grid-template-columns: 1fr;
  }

  .cookie-bar {
    padding-left: 12px;
    padding-right: 12px;
  }

  .cookie-text {
    font-size: 13px;
  }
}

@media (max-width: 380px) {
  .qitem {
    min-width: 64px;
    padding: 8px 4px;
  }

  .qi-lbl {
    font-size: 11px;
  }

  .modern-floating-stack .mq-complaint-link img {
    max-width: 92px;
  }
}


