/* ==========================================================================
   หน้าเว็บสาธารณะ — สีหลักมาจาก "ตั้งค่าเว็บไซต์" (--brand)
   ========================================================================== */
:root {
  --ink: #14212B;
  --ink-soft: #4B5B67;
  --paper: #FFFFFF;
  --mist: #F1F4F3;
  --line: #DCE3E1;
  --marigold: #D98E04;
  --marigold-soft: #FFF6E0;
  --marigold-line: #F0D9A4;
  --radius-sm: 6px;
  --radius: 8px;
  --radius-lg: 14px;
  --font-body: "Sarabun", system-ui, -apple-system, "Segoe UI", "Leelawadee UI", Tahoma, sans-serif;
  --font-head: "Anuphan", "Sarabun", system-ui, -apple-system, "Segoe UI", "Leelawadee UI", sans-serif;
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, h5, h6 { font-family: var(--font-head); font-weight: 700; line-height: 1.35; color: var(--ink); }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-dark); }
:focus-visible { outline: 3px solid rgba(var(--brand-rgb), .45); outline-offset: 2px; }
img { max-width: 100%; }

.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 2000; background: var(--ink); color: #fff; padding: .5rem 1rem; border-radius: var(--radius); }
.skip-link:focus { top: 1rem; color: #fff; }

/* ---------- ส่วนหัว ---------- */
.topbar { background: var(--brand-dark); color: rgba(255,255,255,.88); font-size: .875rem; line-height: 1; padding: .6rem 0; }
.topbar a { color: inherit; text-decoration: none; }
.topbar a:hover { color: #fff; text-decoration: underline; }
.topbar i { margin-right: .25rem; }

.masthead { background: #fff; padding: .875rem 0; }
.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; color: var(--ink); min-width: 0; }
.brand:hover { color: var(--ink); }
.brand-logo { height: 56px; width: auto; max-width: 220px; object-fit: contain; object-position: left center; flex: none; }
@media (max-width: 575.98px) {
  .brand { gap: .6rem; }
  .brand-logo { height: 44px; max-width: 112px; }
  .brand-tagline { font-size: .8rem; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1; line-clamp: 1; overflow: hidden; }
}
.brand-mark { width: 52px; height: 52px; border-radius: 50%; background: var(--brand); color: var(--on-brand); display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; flex: none; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.05rem, 2.6vw, 1.4rem); line-height: 1.25; }
.brand-tagline { font-size: .875rem; color: var(--ink-soft); line-height: 1.45; margin-top: .1rem; }

.masthead-search, .inline-search, .nav-search { display: flex; align-items: stretch; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--mist); }
.masthead-search:focus-within, .inline-search:focus-within, .nav-search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(var(--brand-rgb), .18); background: #fff; }
.masthead-search input, .inline-search input, .nav-search input { border: 0; background: transparent; padding: .5rem 1rem; min-width: 0; flex: 1; color: var(--ink); outline: none; }
.masthead-search input { width: 270px; }
.masthead-search button, .inline-search button, .nav-search button { border: 0; background: transparent; padding: 0 1rem; color: var(--ink-soft); }
.masthead-search button:hover, .inline-search button:hover { color: var(--brand); }

.nav-toggle { display: inline-flex; align-items: center; gap: .35rem; border: 1px solid var(--line); background: #fff; border-radius: var(--radius); padding: .4rem .8rem; font-weight: 600; color: var(--ink); flex: none; }
.nav-toggle i { font-size: 1.4rem; line-height: 1; }

.site-nav { background: var(--brand); padding: 0; }
.site-nav .navbar-nav { gap: 0; }
.site-nav .nav-link { color: var(--on-brand); font-family: var(--font-head); font-weight: 500; font-size: 1rem; padding: .85rem 1rem; border-bottom: 3px solid transparent; }
.site-nav .nav-link:hover, .site-nav .nav-link:focus, .site-nav .nav-link.show { color: var(--on-brand); background: rgba(0,0,0,.12); }
.site-nav .nav-link.active { color: var(--on-brand); border-bottom-color: var(--marigold); }
.site-nav .dropdown-menu { border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 32px rgba(20,33,43,.14); padding: .4rem; margin-top: 0; font-size: .975rem; }
.site-nav .dropdown-item { border-radius: var(--radius-sm); padding: .45rem .8rem; }
.site-nav .dropdown-item:active { background: var(--brand); }

@media (max-width: 991.98px) {
  .site-nav .navbar-collapse { padding: .25rem 0 1rem; }
  .site-nav .nav-link { padding: .7rem .25rem; border-bottom: 1px solid rgba(255,255,255,.14); }
  .site-nav .nav-link.active { border-bottom-color: rgba(255,255,255,.14); box-shadow: inset 4px 0 0 var(--marigold); padding-left: .9rem; }
  .site-nav .dropdown-menu { background: transparent; border: 0; box-shadow: none; padding: 0 0 .5rem 1rem; }
  .site-nav .dropdown-item { color: var(--on-brand); opacity: .9; }
  .site-nav .dropdown-item:hover { background: rgba(0,0,0,.12); color: var(--on-brand); }
  .site-nav .dropdown-divider { border-color: rgba(255,255,255,.2); }
  .nav-search { margin-top: 1rem; background: #fff; }
}

/* ---------- หน้าแรก ---------- */
.home-lead { padding-top: 1.25rem; }
@media (min-width: 992px) { .home-lead { padding-top: 2rem; } }

.hero-carousel { border-radius: var(--radius-lg); overflow: hidden; background: var(--mist); }
/* กรอบแบนเนอร์: สัดส่วนตามการตั้งค่า ภาพพอดีกรอบ (contain) และเติมพื้นที่ว่างด้วยภาพเดียวกันแบบเบลอ */
.hero-frame { position: relative; aspect-ratio: var(--hero-ratio, 16 / 9); overflow: hidden; background: #0F1A22; }
.hero-frame img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-frame.is-contain img { object-fit: contain; }
.hero-frame.is-contain::before { content: ""; position: absolute; inset: -40px; background: var(--fit-bg) center / cover no-repeat; filter: blur(32px) brightness(.72) saturate(1.15); }
.hero-link { display: block; color: #fff; }
.hero-caption { z-index: 2; position: absolute; left: 0; right: 0; bottom: 0; padding: 3.5rem 1.5rem 1.4rem; background: linear-gradient(to top, rgba(8,14,20,.82), rgba(8,14,20,0)); color: #fff; }
.hero-title { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.1rem, 2.8vw, 1.8rem); line-height: 1.3; margin: 0; max-width: 28ch; }
.hero-sub { margin: .3rem 0 0; font-size: .975rem; opacity: .9; max-width: 60ch; }
.hero-carousel .carousel-indicators { justify-content: flex-end; margin: 0 1.25rem .9rem auto; }
.hero-carousel .carousel-indicators [data-bs-target] { width: 22px; height: 4px; border-radius: 2px; border: 0; }
.hero-carousel .carousel-control-prev, .hero-carousel .carousel-control-next { width: 3.5rem; }

.hero-welcome { background: var(--brand); color: var(--on-brand); border-radius: var(--radius-lg); padding: clamp(2rem, 6vw, 4rem) clamp(1.5rem, 5vw, 3.5rem); height: 100%; min-height: 280px; display: flex; flex-direction: column; justify-content: flex-end; }
.hero-welcome h1 { color: inherit; font-size: clamp(2rem, 5vw, 3.25rem); line-height: 1.2; max-width: 16ch; margin-bottom: .5rem; }
.hero-welcome-tagline { font-family: var(--font-head); font-weight: 500; font-size: clamp(1.05rem, 2.2vw, 1.3rem); margin: 0; opacity: .95; }
.hero-welcome-desc { margin: .75rem 0 0; max-width: 56ch; opacity: .85; }
.hero-welcome .btn-light { color: var(--brand-dark); font-weight: 600; }

/* ป้ายประกาศ */
.notice-board { height: 100%; background: var(--marigold-soft); border: 1px solid var(--marigold-line); border-radius: var(--radius-lg); padding: 1.25rem 1.35rem .5rem; display: flex; flex-direction: column; }
.notice-board h2 { font-size: 1.2rem; display: flex; align-items: center; gap: .55rem; margin: 0 0 .5rem; }
.notice-board h2 i { color: var(--marigold); font-size: 1.15rem; }
.notice-list { list-style: none; padding: 0; margin: 0; overflow: auto; }
.notice-list li { position: relative; padding: .75rem 0 .75rem 1.15rem; border-top: 1px dashed var(--marigold-line); }
.notice-list li:first-child { border-top: 0; }
.notice-list li::before { content: ""; position: absolute; left: 0; top: 1.3rem; width: 8px; height: 8px; border-radius: 50%; background: var(--marigold); box-shadow: 0 0 0 3px rgba(217,142,4,.18); }
.notice-list li a { display: block; color: var(--ink); font-weight: 600; line-height: 1.5; text-decoration: none; }
.notice-list li a:hover { color: var(--brand-dark); text-decoration: underline; }
.notice-list time { font-size: .85rem; color: var(--ink-soft); }
.notice-more { display: block; margin-top: auto; padding: .7rem 0 .8rem; border-top: 1px dashed var(--marigold-line); font-size: .925rem; font-weight: 600; text-decoration: none; color: var(--brand-dark); }
.notice-more:hover { text-decoration: underline; }
@media (min-width: 992px) {
  /* ให้ป้ายประกาศสูงเท่าแบนเนอร์ รายการที่ยาวเกินเลื่อนดูในกล่อง */
  .notice-col { position: relative; min-height: 280px; }
  .notice-board, .side-card { position: absolute; top: 0; bottom: 0; left: calc(var(--bs-gutter-x) * .5); right: calc(var(--bs-gutter-x) * .5); }
  .notice-board .notice-list, .side-pane .notice-list { flex: 1; }
  .side-pane .fb-plugin.is-fill { min-height: 0; }
  .hero-welcome { min-height: 380px; }
}

/* ---------- ส่วนเนื้อหา ---------- */
.section { padding: clamp(2.25rem, 5vw, 3.75rem) 0; }
.section-mist { background: var(--mist); }
.section-head { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; margin-bottom: 1.5rem; }
.section-head h2 { font-size: clamp(1.4rem, 3vw, 1.85rem); margin: 0; }
.section-more { margin-left: auto; font-weight: 600; text-decoration: none; white-space: nowrap; }
.section-more:hover { text-decoration: underline; }
@media (max-width: 767.98px) { .section-head .chip-row { order: 3; flex-basis: 100%; } }

.chip-row { display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none; max-width: 100%; padding: 2px; }
.chip-row::-webkit-scrollbar { display: none; }
.chip { flex: none; border: 1px solid var(--line); border-radius: 999px; padding: .3rem .95rem; font-size: .925rem; line-height: 1.5; color: var(--ink); text-decoration: none; background: #fff; }
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.is-active { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }

.meta { display: flex; flex-wrap: wrap; gap: .25rem 1rem; font-size: .875rem; color: var(--ink-soft); }
.meta-item { display: inline-flex; align-items: center; gap: .35rem; }
.meta-item i { font-size: .85em; opacity: .8; }
.meta-link { color: var(--brand); text-decoration: none; font-weight: 600; }

.img-fallback { display: grid !important; place-items: center; background: var(--brand-soft); color: rgba(var(--brand-rgb), .5); font-size: 1.75rem; width: 100%; }

/* ข่าว */
.news-cat { display: inline-block; font-size: .85rem; font-weight: 600; color: var(--brand); text-decoration: none; margin-bottom: .2rem; }
.news-cat:hover { text-decoration: underline; }
.news-lead-media { display: block; border-radius: var(--radius); overflow: hidden; margin-bottom: 1rem; background: var(--mist); }
.news-lead-img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.news-lead-title { font-size: clamp(1.35rem, 2.6vw, 1.8rem); margin: 0 0 .5rem; }
.news-lead-title a, .news-row-title a { color: inherit; text-decoration: none; }
.news-lead-title a:hover, .news-row-title a:hover { color: var(--brand); text-decoration: underline; text-decoration-thickness: 2px; }
.news-lead-excerpt { color: var(--ink-soft); margin-bottom: .5rem; }
.news-lead-text { border-left: 4px solid var(--brand); padding: .25rem 0 .25rem 1.25rem; }
.news-lead-text .news-lead-title { font-size: clamp(1.5rem, 3vw, 2.1rem); }

.news-row { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: .95rem; padding: 1rem 0; border-top: 1px solid var(--line); }
.news-stack .news-row:first-child { border-top: 0; padding-top: 0; }
.news-row-media { display: block; border-radius: var(--radius-sm); overflow: hidden; align-self: start; background: var(--mist); }
.news-row-img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.news-row-title { font-size: 1.05rem; line-height: 1.5; margin: 0 0 .3rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-row-excerpt { display: none; color: var(--ink-soft); font-size: .95rem; margin: 0 0 .35rem; }
.pin-badge { color: var(--marigold); margin-right: .3rem; }

.news-list { border-bottom: 1px solid var(--line); }
.news-list .news-row:first-child { border-top: 0; }
@media (min-width: 768px) {
  .news-list .news-row { grid-template-columns: 240px minmax(0, 1fr); gap: 1.4rem; padding: 1.4rem 0; }
  .news-list .news-row-title { font-size: 1.2rem; }
  .news-list .news-row-excerpt { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
}
@media (min-width: 992px) {
  .news-list-2col { display: grid; grid-template-columns: 1fr 1fr; column-gap: 2.5rem; border-bottom: 0; }
  .news-list-2col .news-row { grid-template-columns: 160px minmax(0, 1fr); border-top: 1px solid var(--line); }
  .news-list-2col .news-row:nth-child(2) { border-top: 0; }
}

/* อัลบั้มภาพ */
.album-mosaic { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; }
.album-mosaic .album-card-feature { grid-column: span 2; }
@media (min-width: 992px) {
  .album-mosaic { grid-template-columns: 2fr 1fr 1fr; gap: 1.1rem; }
  .album-mosaic .album-card-feature { grid-column: 1; grid-row: span 2; min-height: 320px; }
  .album-mosaic .album-card-feature .album-card-img { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; }
}
.album-card { position: relative; display: block; border-radius: var(--radius); overflow: hidden; color: #fff; text-decoration: none; background: var(--ink); isolation: isolate; }
.album-card:hover { color: #fff; }
.album-card-img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; display: block; transition: transform .45s ease; }
.album-card:hover .album-card-img { transform: scale(1.035); }
.album-card-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.75rem .95rem .85rem; background: linear-gradient(to top, rgba(8,14,20,.86), rgba(8,14,20,0)); display: flex; flex-direction: column; gap: .2rem; }
.album-card-title { font-family: var(--font-head); font-weight: 700; font-size: 1rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.album-card-feature .album-card-title { font-size: clamp(1.1rem, 2vw, 1.45rem); }
.album-card-meta { display: flex; flex-wrap: wrap; gap: .2rem .8rem; font-size: .8rem; opacity: .88; }
.album-card .img-fallback { color: rgba(255,255,255,.4); background: var(--ink); aspect-ratio: 4 / 3; }
.album-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; }
@media (min-width: 768px) { .album-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; } }
@media (min-width: 1200px) { .album-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.album-intro { max-width: 780px; margin-bottom: 1.5rem; }
.album-intro p { margin: .5rem 0 0; }
.photo-grid { columns: 2 150px; column-gap: .6rem; }
@media (min-width: 992px) { .photo-grid { columns: 4 200px; column-gap: .9rem; } }
.photo-tile { display: block; margin-bottom: .6rem; break-inside: avoid; border-radius: var(--radius-sm); overflow: hidden; background: var(--mist); cursor: zoom-in; }
@media (min-width: 992px) { .photo-tile { margin-bottom: .9rem; } }
.photo-tile img { width: 100%; height: auto; display: block; transition: opacity .2s; }
.photo-tile:hover img { opacity: .88; }

.lightbox .modal-content { background: rgba(6,10,14,.97); color: #fff; border: 0; border-radius: 0; }
.lightbox-bar { display: flex; justify-content: space-between; align-items: center; padding: .75rem 1rem; font-size: .9rem; }
.lightbox-close { border: 0; background: rgba(255,255,255,.1); color: #fff; width: 44px; height: 44px; border-radius: 50%; font-size: 1.1rem; }
.lightbox-stage { flex: 1; display: flex; align-items: center; justify-content: center; position: relative; padding: 0 .5rem 1rem; min-height: 0; touch-action: pan-y; }
.lightbox-stage figure { margin: 0; text-align: center; max-width: 100%; }
.lightbox-stage img { max-width: 100%; max-height: calc(100vh - 140px); object-fit: contain; display: block; margin: 0 auto; }
.lightbox-stage figcaption { margin-top: .75rem; font-size: .95rem; opacity: .85; min-height: 1.5em; }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); border: 0; background: rgba(255,255,255,.12); color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 1.3rem; z-index: 2; }
.lightbox-nav:hover { background: rgba(255,255,255,.22); }
.lightbox-nav.prev { left: .75rem; }
.lightbox-nav.next { right: .75rem; }

/* เอกสาร */
.doc-list { border-top: 1px solid var(--line); }
.doc-grid { border-top: 1px solid var(--line); }
@media (min-width: 992px) { .doc-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 2.5rem; border-top: 0; } .doc-grid .doc-row:nth-child(-n+2) { border-top: 1px solid var(--line); } }
.doc-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: .95rem; align-items: start; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.doc-badge { width: 44px; height: 44px; border-radius: var(--radius); display: grid; place-items: center; font-size: 1.35rem; }
.doc-pdf { background: #FDECEC; color: #B42318; }
.doc-word { background: #E8F0FD; color: #1D4FB0; }
.doc-excel { background: #E6F4EA; color: #17693A; }
.doc-ppt { background: #FDF0E6; color: #B4470F; }
.doc-zip { background: #F1EEFA; color: #533A9C; }
.doc-img { background: #E5F5F6; color: #0B6F78; }
.doc-txt { background: var(--mist); color: var(--ink-soft); }
.doc-title { font-weight: 700; color: var(--ink); text-decoration: none; line-height: 1.5; }
.doc-title:hover { color: var(--brand); text-decoration: underline; }
.doc-desc { margin: .15rem 0 .25rem; color: var(--ink-soft); font-size: .95rem; }
.doc-actions { display: flex; gap: .4rem; align-items: center; }

/* ปุ่ม */
.btn { font-weight: 600; }
.btn-brand { --bs-btn-bg: var(--brand); --bs-btn-border-color: var(--brand); --bs-btn-color: var(--on-brand); --bs-btn-hover-bg: var(--brand-dark); --bs-btn-hover-border-color: var(--brand-dark); --bs-btn-hover-color: #fff; --bs-btn-active-bg: var(--brand-dark); --bs-btn-active-border-color: var(--brand-dark); --bs-btn-active-color: #fff; }
.btn-brand-outline { --bs-btn-color: var(--brand); --bs-btn-border-color: rgba(var(--brand-rgb), .4); --bs-btn-hover-bg: var(--brand); --bs-btn-hover-color: var(--on-brand); --bs-btn-hover-border-color: var(--brand); --bs-btn-active-bg: var(--brand-dark); --bs-btn-active-color: #fff; }

/* หัวหน้าเพจ */
.page-head { background: var(--mist); border-bottom: 1px solid var(--line); padding: 1.1rem 0 1.5rem; }
.page-head h1 { font-size: clamp(1.6rem, 4vw, 2.3rem); margin: .35rem 0 0; }
.page-lead { margin: .35rem 0 0; color: var(--ink-soft); }
.breadcrumb { font-size: .875rem; margin: 0; --bs-breadcrumb-divider-color: var(--ink-soft); --bs-breadcrumb-item-active-color: var(--ink-soft); }
.breadcrumb a { color: var(--ink-soft); text-decoration: none; }
.breadcrumb a:hover { color: var(--brand); text-decoration: underline; }

.list-toolbar { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; }
.list-toolbar .chip-row { flex: 1 1 auto; min-width: 0; }
.list-toolbar .inline-search { width: 100%; background: #fff; }
@media (min-width: 768px) { .list-toolbar .inline-search { width: 290px; flex: none; } }
.result-note { color: var(--ink-soft); font-size: .95rem; }

.empty-state { text-align: center; padding: 3.5rem 1rem; color: var(--ink-soft); }
.empty-state i { font-size: 2.5rem; color: rgba(var(--brand-rgb), .45); display: block; margin-bottom: .5rem; }
.empty-inline { color: var(--ink-soft); }

/* บทความ */
.article { padding-bottom: 2.5rem; }
.article .breadcrumb, .article-head, .article-cover, .article .prose, .share-bar, .updated-note { max-width: 780px; margin-left: auto; margin-right: auto; }
.article-head { margin-top: 1rem; margin-bottom: 1.5rem; }
.article-head h1 { font-size: clamp(1.65rem, 4vw, 2.5rem); line-height: 1.3; margin-bottom: .8rem; }
.article-cover { margin-bottom: 2rem; }
.article-cover img { width: 100%; height: auto; max-height: 82vh; object-fit: contain; background: var(--mist); border-radius: var(--radius-lg); display: block; }

.prose { font-size: 1.0625rem; line-height: 1.85; overflow-wrap: break-word; max-width: 780px; }
.section .prose { margin-left: auto; margin-right: auto; }
.prose > :first-child { margin-top: 0; }
.prose h1, .prose h2 { font-size: 1.5rem; margin: 2.25rem 0 .75rem; }
.prose h3 { font-size: 1.25rem; margin: 1.75rem 0 .6rem; }
.prose h4, .prose h5, .prose h6 { font-size: 1.1rem; margin: 1.5rem 0 .5rem; }
.prose p { margin: 0 0 1.1rem; }
.prose ul, .prose ol { margin: 0 0 1.1rem; padding-left: 1.5rem; }
.prose li { margin-bottom: .35rem; }
.prose img { max-width: 100%; height: auto; border-radius: var(--radius); }
.prose figure { margin: 1.5rem 0; }
.prose figcaption { font-size: .9rem; color: var(--ink-soft); margin-top: .5rem; }
.prose .table-scroll { overflow-x: auto; margin: 1.25rem 0; -webkit-overflow-scrolling: touch; }
.prose table { border-collapse: collapse; margin: 1.25rem 0; font-size: .975rem; max-width: none; }
.prose .table-scroll > table { margin: 0; }
.prose th, .prose td { border: 1px solid var(--line); padding: .5rem .75rem; vertical-align: top; }
.prose th { background: var(--mist); font-weight: 700; }
.prose iframe { width: 100%; max-width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius); margin: 1rem 0; }
/* โพสต์ Facebook ที่ฝังในข่าว: ใช้ความสูงจากโค้ดฝัง (site.js) กว้างไม่เกิน 500px */
.prose iframe.fb-embed-post { aspect-ratio: auto; max-width: 500px; display: block; margin-inline: auto; background: #fff; }
.prose blockquote { border-left: 4px solid var(--brand); padding: .25rem 0 .25rem 1.1rem; color: var(--ink-soft); margin: 1.5rem 0; }
.prose hr { margin: 2rem 0; border-color: var(--line); opacity: 1; }
.prose pre { background: var(--mist); padding: 1rem; border-radius: var(--radius); }
.updated-note { margin-top: 2.5rem; font-size: .875rem; color: var(--ink-soft); }

.share-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.share-bar > span { font-weight: 600; margin-right: .5rem; }
.share-btn { display: inline-flex; gap: .4rem; align-items: center; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: .35rem .95rem; font-size: .925rem; color: var(--ink); text-decoration: none; }
.share-btn:hover { border-color: var(--brand); color: var(--ink); }
.share-fb i { color: #1877F2; }
.share-line i { color: #06C755; }

/* บุคลากร */
.staff-group { margin-bottom: 2.75rem; scroll-margin-top: 1rem; }
.staff-group h2 { font-size: 1.35rem; padding-bottom: .5rem; margin-bottom: 1.25rem; border-bottom: 2px solid var(--brand); display: flex; align-items: baseline; gap: .75rem; }
.staff-group .count { font-family: var(--font-body); font-weight: 400; font-size: .9rem; color: var(--ink-soft); }
.staff-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 1rem; }
@media (min-width: 768px) { .staff-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.75rem 1.25rem; } }
@media (min-width: 1200px) { .staff-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.staff-grid-single { grid-template-columns: minmax(0, 240px) !important; justify-content: center; }
.staff-card { margin: 0; text-align: center; }
.staff-photo { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius); background: var(--mist); display: block; margin-bottom: .7rem; }
.staff-card .img-fallback { aspect-ratio: 3 / 4; font-size: 3rem; }
.staff-card figcaption { display: flex; flex-direction: column; gap: .1rem; }
.staff-name { font-family: var(--font-head); font-weight: 700; line-height: 1.4; }
.staff-position { font-size: .9rem; color: var(--ink-soft); line-height: 1.5; }
.staff-bio { font-size: .85rem; color: var(--ink-soft); margin-top: .35rem; line-height: 1.55; }
.staff-contact { display: flex; justify-content: center; gap: .75rem; margin-top: .35rem; }
.staff-contact a { color: var(--ink-soft); }
.staff-contact a:hover { color: var(--brand); }

/* ค้นหา */
.search-big { display: flex; gap: .5rem; max-width: 640px; margin-bottom: 1.5rem; }
.search-big input { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); padding: .65rem 1rem; font-size: 1.05rem; }
.search-big input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(var(--brand-rgb), .18); }
.search-group { font-size: 1.15rem; margin: 2.25rem 0 .5rem; padding-bottom: .5rem; border-bottom: 1px solid var(--line); }
.search-pages { list-style: none; padding: 0; margin: 0; }
.search-pages li { padding: .85rem 0; border-bottom: 1px solid var(--line); }
.search-pages a { font-weight: 700; }
.search-pages p { margin: .25rem 0 0; color: var(--ink-soft); font-size: .95rem; }

.pagination { --bs-pagination-color: var(--ink); --bs-pagination-hover-color: var(--brand); --bs-pagination-active-bg: var(--brand); --bs-pagination-active-border-color: var(--brand); --bs-pagination-active-color: var(--on-brand); --bs-pagination-focus-box-shadow: 0 0 0 .2rem rgba(var(--brand-rgb), .25); --bs-pagination-focus-color: var(--brand); margin-top: 2rem; gap: .25rem; }
.pagination .page-link { border-radius: var(--radius-sm) !important; min-width: 2.5rem; text-align: center; }

/* ---------- ส่วนท้าย ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.78); padding-top: 3rem; border-top: 4px solid var(--brand); font-size: .95rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-name { font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; color: #fff; margin-bottom: .2rem; line-height: 1.35; }
.footer-tagline { margin-bottom: 1rem; }
.footer-contact { display: flex; flex-direction: column; gap: .6rem; font-style: normal; margin: 1rem 0 0; }
.footer-contact > span { display: flex; gap: .65rem; line-height: 1.6; }
.footer-contact i { color: rgba(255,255,255,.5); margin-top: .2rem; }
.footer-heading { font-family: var(--font-head); color: #fff; font-weight: 500; margin-bottom: .75rem; }
.footer-links { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 1.5rem; }
.footer-links li { margin-bottom: .45rem; break-inside: avoid; }
.footer-links a { color: rgba(255,255,255,.8); }
.footer-links a:hover { color: #fff; }
.footer-social { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.footer-social a { display: inline-flex; align-items: center; gap: .45rem; padding: .35rem .85rem; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; color: rgba(255,255,255,.88); }
.footer-social a:hover { border-color: #fff; color: #fff; text-decoration: none; }
.footer-map iframe { width: 100%; height: auto; aspect-ratio: 16 / 10; border: 0; border-radius: var(--radius); display: block; }
.footer-bottom { margin-top: 2.75rem; padding: 1rem 0; border-top: 1px solid rgba(255,255,255,.1); font-size: .875rem; color: rgba(255,255,255,.6); }
.site-footer .back-top { color: rgba(255,255,255,.75); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .site-footer, .share-bar, .pagination, .list-toolbar { display: none !important; }
  body { font-size: 12pt; }
}

/* ---------- รูปจาก Google Drive ---------- */
.lightbox-loading { display: none; position: absolute; top: 50%; left: 50%; width: 42px; height: 42px; margin: -21px 0 0 -21px; border: 3px solid rgba(255,255,255,.25); border-top-color: #fff; border-radius: 50%; animation: lb-spin .8s linear infinite; }
.lightbox-stage.is-loading .lightbox-loading { display: block; }
.lightbox-stage.is-loading img { opacity: .35; }
.lightbox-stage img { transition: opacity .2s; }
@keyframes lb-spin { to { transform: rotate(360deg); } }
.photo-tile.is-broken, .album-card.is-broken { position: relative; min-height: 140px; background: var(--mist); }
.photo-tile.is-broken img, .album-card.is-broken img { opacity: 0; }
.photo-tile.is-broken::after, .album-card.is-broken::after { content: "โหลดภาพนี้ไม่ได้"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink-soft); font-size: .875rem; }
.album-card.is-broken::after { color: rgba(255,255,255,.6); }

/* ---------- ภาพพอดีกรอบอัตโนมัติ (ภาพปกข่าว อัลบั้ม บุคลากร) ---------- */
.fit-frame { position: relative; display: block; overflow: hidden; border-radius: inherit; background: var(--mist); isolation: isolate; }
.fit-frame::before { content: ""; position: absolute; inset: -14%; background: var(--fit-bg) center / cover no-repeat; filter: blur(18px) brightness(.92) saturate(1.1); }
.fit-frame > img { position: relative; z-index: 1; object-fit: contain !important; margin: 0 !important; background: transparent !important; }
.album-card .fit-frame::before { filter: blur(18px) brightness(.6); }
@media (min-width: 992px) { .album-mosaic .album-card-feature .fit-frame { position: absolute; inset: 0; } }
.staff-card .fit-frame { margin-bottom: .7rem; border-radius: var(--radius); }
.news-lead-media .fit-frame, .news-row-media .fit-frame { border-radius: 0; }

/* ---------- Facebook ---------- */
.fb-mark { color: #1877F2; margin-right: .5rem; font-size: .9em; }
.fb-plugin { width: 100%; max-width: 500px; margin: 0 auto; }
.fb-plugin iframe { display: block; border: 0; overflow: hidden; max-width: 100%; margin: 0 auto; border-radius: var(--radius); background: #fff; }
.fb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 1.25rem; }
.fb-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.fb-card-media { display: block; background: var(--mist); }
.fb-card-img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.fb-card-body { display: flex; flex-direction: column; gap: .75rem; padding: 1rem 1.1rem 1.1rem; flex: 1; }
.fb-card-text { margin: 0; font-size: .975rem; line-height: 1.7; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-clamp: 4; overflow: hidden; }
.fb-card.is-text { background: linear-gradient(160deg, #EEF4FF 0%, #fff 70%); }
.fb-card.is-text .fb-card-body { padding-top: 1.4rem; }
.fb-card.is-text .fb-card-body::before { content: "\201C"; font: 700 3.2rem/0.6 Georgia, serif; color: #1877F2; opacity: .35; height: 1.2rem; }
.fb-card.is-text .fb-card-text { font-size: 1.08rem; -webkit-line-clamp: 9; line-clamp: 9; }
.fb-page .fb-card-text { -webkit-line-clamp: 8; line-clamp: 8; }
.fb-page .fb-card.is-text .fb-card-text { -webkit-line-clamp: 14; line-clamp: 14; }
.fb-card-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: .75rem; }
.fb-card-foot .meta-item i { color: #1877F2; opacity: 1; }
.fb-card-link { font-weight: 600; font-size: .9rem; text-decoration: none; white-space: nowrap; }
.fb-card-link:hover { text-decoration: underline; }
.section-fb .section-head h2 { display: flex; align-items: center; }

/* ---------- กล่องข้างแบนเนอร์: Facebook (มีป้ายประกาศด้วยจะเป็นแท็บ) ---------- */
.side-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); display: flex; flex-direction: column; overflow: hidden; }
.side-head { padding: 1.1rem 1.2rem .1rem; }
.side-head h2 { font-size: 1.15rem; margin: 0; display: flex; align-items: center; }
.side-tabs { display: flex; background: var(--mist); border-bottom: 1px solid var(--line); flex: none; }
.side-tab { flex: 1 1 0; min-width: 0; display: flex; align-items: center; justify-content: center; gap: .45rem; padding: .8rem .5rem .7rem; border: 0;
  border-bottom: 3px solid transparent; background: transparent; font-family: var(--font-head); font-weight: 600; font-size: .98rem; color: var(--ink-soft); white-space: nowrap; }
.side-tab:hover { color: var(--ink); }
.side-tab.active { background: #fff; color: var(--ink); border-bottom-color: #1877F2; }
#sideTabNotice.active { border-bottom-color: var(--marigold); }
.side-tab .bi-facebook { color: #1877F2; }
.side-tab .bi-pin-angle-fill { color: var(--marigold); }
.side-count { background: var(--marigold); color: #fff; border-radius: 999px; font-size: .72rem; line-height: 1.5; padding: 0 .45rem; }
.side-body { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.side-body:not(.tab-content) > .side-pane, .side-body.tab-content > .side-pane.active { display: flex; }
.side-pane { flex: 1 1 auto; min-height: 0; flex-direction: column; gap: .8rem; padding: .9rem 1.1rem 1rem; }
.side-pane.is-notice { background: var(--marigold-soft); padding: .4rem 1.25rem 0; gap: 0; }
.side-more { margin-top: auto; padding-top: .65rem; border-top: 1px dashed var(--line); font-weight: 600; font-size: .925rem; text-decoration: none; }
.side-more:hover { text-decoration: underline; }
.side-pane .fb-plugin { max-width: 100%; margin: 0; }
.fb-plugin.is-fill { flex: 1 1 auto; min-height: 480px; position: relative; }
.fb-plugin.is-fill iframe { position: absolute; inset: 0; width: 100%; height: 100%; }

/* โพสต์แบบย่อ */
.fb-mini-list { list-style: none; margin: -.3rem 0 0; padding: 0; overflow: auto; flex: 1 1 auto; min-height: 0; }
.fb-mini-list li + li { border-top: 1px solid var(--line); }
.fb-mini { display: flex; gap: .8rem; padding: .7rem 0; color: var(--ink); text-decoration: none; }
.fb-mini:hover .fb-mini-text { color: var(--brand-dark); text-decoration: underline; }
.fb-mini-thumb { flex: none; width: 72px; height: 72px; border-radius: .55rem; overflow: hidden; background: var(--mist); }
.fb-mini-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fb-mini-body { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.fb-mini-text { font-size: .93rem; line-height: 1.55; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.fb-mini time { font-size: .8rem; color: var(--ink-soft); }

/* ชวนติดตามเพจ */
.fb-follow { display: flex; flex-direction: column; align-items: flex-start; gap: .8rem; padding: 1.15rem 1.25rem; border-radius: var(--radius-lg);
  background: linear-gradient(150deg, #EAF2FF 0%, #fff 80%); border: 1px solid #D5E3FA; }
.fb-follow p { margin: 0; line-height: 1.65; }
.fb-follow.is-compact { padding: .95rem 1.05rem; gap: .65rem; }
.fb-follow.is-compact p { font-size: .95rem; }
.fb-btn { display: inline-flex; align-items: center; gap: .5rem; background: #1877F2; border-color: #1877F2; color: #fff; font-weight: 600; border-radius: 999px; padding: .5rem 1.15rem; }
.fb-btn:hover, .fb-btn:focus-visible { background: #0D65D9; border-color: #0D65D9; color: #fff; }
.fb-follow-row { display: grid; gap: 1.25rem; align-items: center; max-width: 1040px; margin: 0 auto; }
.fb-follow-row .fb-plugin { margin: 0; }
@media (min-width: 768px) { .fb-follow-row { grid-template-columns: minmax(0, 500px) minmax(0, 1fr); } .fb-follow-row .fb-follow { padding: 1.6rem 1.75rem; } }
.section-fb > .container > .fb-follow.is-compact, .fb-page .fb-follow.is-compact { max-width: 500px; margin: 1rem auto 0; align-items: center; text-align: center; }

/* ---------- แจ้งปัญหา / ความคิดเห็น ---------- */
.fbk-narrow { max-width: 820px; }
.fbk-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.1rem, 3vw, 1.9rem); }
.fbk-step { border: 0; padding: 0; margin: 0 0 1.6rem; min-width: 0; }
.fbk-step legend { font-family: var(--font-head); font-weight: 700; font-size: 1.12rem; display: flex; align-items: center; gap: .6rem; margin-bottom: .85rem; float: none; width: auto; }
.fbk-num { width: 1.75rem; height: 1.75rem; border-radius: 50%; background: var(--brand); color: var(--on-brand); display: inline-grid; place-items: center; font-size: .9rem; flex: none; }
.req { color: #C0392B; }
.fbk-systems { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); gap: .65rem; }
.fbk-system { position: relative; cursor: pointer; }
.fbk-system input { position: absolute; opacity: 0; inset: 0; }
.fbk-system-box { display: flex; flex-direction: column; gap: .2rem; height: 100%; padding: .8rem .95rem; border: 1.5px solid var(--line); border-radius: var(--radius); background: #fff; transition: border-color .15s, box-shadow .15s; }
.fbk-system-box strong { font-family: var(--font-head); font-size: 1.05rem; }
.fbk-system-box small { color: var(--ink-soft); line-height: 1.45; }
.fbk-system:hover .fbk-system-box { border-color: rgba(var(--brand-rgb), .5); }
.fbk-system input:checked + .fbk-system-box { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(var(--brand-rgb), .15); background: var(--brand-soft); }
.fbk-system input:focus-visible + .fbk-system-box { outline: 3px solid rgba(var(--brand-rgb), .45); outline-offset: 2px; }
.fbk-kinds { display: flex; flex-wrap: wrap; gap: .5rem; }
.fbk-kind-opt { position: relative; cursor: pointer; }
.fbk-kind-opt input { position: absolute; opacity: 0; }
.fbk-kind-opt span { display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .95rem; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; font-size: .95rem; }
.fbk-kind-opt input:checked + span { border-color: var(--brand); background: var(--brand); color: var(--on-brand); }
.fbk-kind-opt input:focus-visible + span { outline: 3px solid rgba(var(--brand-rgb), .45); outline-offset: 2px; }
.fbk-count { text-align: right; font-size: .8rem; color: var(--ink-soft); margin-top: .25rem; }
.fbk-previews { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .6rem; }
.fbk-previews img { width: 96px; height: 72px; object-fit: contain; background: var(--mist); border: 1px solid var(--line); border-radius: .5rem; }
.fbk-consent { background: var(--mist); border-radius: var(--radius); padding: .9rem 1rem; display: grid; gap: .55rem; font-size: .95rem; }
.fbk-submit { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; margin-top: 1.4rem; }
.fbk-submit .btn { display: inline-flex; align-items: center; gap: .5rem; }
.fbk-shield { font-size: .85rem; color: var(--ink-soft); display: inline-flex; align-items: center; gap: .35rem; }
.fbk-shield.is-ready i { color: var(--brand); }
.fbk-hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.fbk-aside { background: var(--brand-soft); border-radius: var(--radius-lg); padding: 1.25rem 1.35rem; position: sticky; top: 1rem; }
.fbk-aside h2 { font-size: 1.1rem; display: flex; gap: .5rem; align-items: center; margin-bottom: .75rem; }
.fbk-aside ul { padding-left: 1.1rem; margin-bottom: 1rem; line-height: 1.7; }
.fbk-privacy { font-size: .9rem; color: var(--ink-soft); margin: 0; display: flex; gap: .45rem; }
.fbk-sent { display: flex; gap: 1rem; align-items: flex-start; background: #E7F5EE; border: 1px solid #B9E0CB; border-radius: var(--radius-lg); padding: 1.2rem 1.35rem; margin-bottom: 1.5rem; }
.fbk-sent > i { font-size: 2rem; color: #0B7A4B; line-height: 1; }
.fbk-sent h2 { font-size: 1.25rem; margin: .1rem 0 .4rem; }
.fbk-sent p { margin-bottom: .75rem; }
.fbk-sent .btn { display: inline-flex; align-items: center; gap: .35rem; }
.fbk-public { margin-top: 3rem; }
.fbk-list { display: grid; gap: 1rem; }
.fbk-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.15rem 1.3rem; }
.fbk-card-top { display: flex; flex-wrap: wrap; gap: .4rem .6rem; align-items: center; margin-bottom: .55rem; }
.fbk-kind, .fbk-sys, .fbk-status { display: inline-flex; align-items: center; gap: .3rem; font-size: .8rem; font-weight: 600; padding: .12rem .6rem; border-radius: 999px; line-height: 1.6; }
.fbk-kind { background: var(--mist); color: var(--ink); }
.fbk-kind-problem { background: #FDECEC; color: #A3271F; }
.fbk-kind-request { background: #FFF4D6; color: #7A5300; }
.fbk-kind-question { background: #E8F0FD; color: #1D4FB0; }
.fbk-kind-comment { background: #EAF6EF; color: #0B6E4F; }
.fbk-sys { background: transparent; border: 1px solid var(--line); color: var(--ink-soft); font-weight: 500; }
.fbk-status.is-new { background: #E8F0FD; color: #1D4FB0; }
.fbk-status.is-progress { background: #FFF4D6; color: #7A5300; }
.fbk-status.is-done { background: #E3F4EC; color: #0B6E4F; }
.fbk-status.is-closed { background: #EEF1F3; color: #56636E; }
.fbk-subject { font-size: 1.15rem; margin: 0 0 .2rem; overflow-wrap: anywhere; }
.fbk-meta { font-size: .875rem; color: var(--ink-soft); margin-bottom: .65rem; }
.fbk-message { line-height: 1.75; overflow-wrap: anywhere; }
.fbk-message.is-clamp { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 6; line-clamp: 6; overflow: hidden; }
.fbk-reply { margin-top: .9rem; padding: .85rem 1rem; border-left: 4px solid var(--brand); background: var(--brand-soft); border-radius: 0 var(--radius) var(--radius) 0; line-height: 1.7; overflow-wrap: anywhere; }
.fbk-reply-head { font-weight: 700; font-size: .9rem; color: var(--brand-dark); margin-bottom: .3rem; display: flex; align-items: center; gap: .4rem; }
.fbk-wait { margin: 1rem 0 0; color: var(--ink-soft); display: flex; gap: .5rem; align-items: center; }
.fbk-track .fbk-subject { font-size: 1.35rem; }

/* =====================================================================
   จัดหน้าแรก (หลังบ้าน > จัดหน้าแรก)
   ===================================================================== */
/* ---------- ส่วนหัวแบบเต็มช่อง / เต็มจอ ---------- */
.home-lead.is-wide .hero-frame { max-height: min(80vh, 760px); }
.home-lead.is-full { padding-top: 0; }
.home-lead.is-full .hero-carousel { border-radius: 0; }
.home-lead.is-full .hero-frame { max-height: min(80vh, 900px); }
.home-lead.is-full .hero-welcome { border-radius: 0; min-height: clamp(300px, 46vh, 520px); }
.home-lead.is-full .hero-welcome-inner { width: 100%; }
.home-lead.is-full .hero-caption { padding-left: max(1.5rem, calc((100vw - 1296px) / 2)); padding-right: max(1.5rem, calc((100vw - 1296px) / 2)); }
.home-lead.is-wide .hero-welcome, .home-lead.is-split .hero-welcome { min-height: 320px; }

/* ป้ายประกาศแบบแถบใต้แบนเนอร์ */
.notice-strip { margin-top: 1rem; display: flex; align-items: center; gap: .5rem 1.25rem; background: var(--marigold-soft); border: 1px solid var(--marigold-line);
  border-radius: var(--radius-lg); padding: .7rem 1.15rem; }
.notice-strip h2 { flex: none; font-size: 1rem; margin: 0; display: flex; align-items: center; gap: .45rem; white-space: nowrap; }
.notice-strip h2 i { color: var(--marigold); }
.notice-strip ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .35rem 0; flex: 1 1 auto; min-width: 0; overflow-x: auto; scrollbar-width: thin; }
.notice-strip li { flex: none; display: flex; align-items: baseline; gap: .55rem; max-width: 28rem; padding: 0 1.25rem; border-left: 1px dashed var(--marigold-line); }
.notice-strip li:first-child { border-left: 0; padding-left: 0; }
.notice-strip li a { font-weight: 600; color: var(--ink); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.notice-strip li a:hover { color: var(--brand-dark); text-decoration: underline; }
.notice-strip time { font-size: .8rem; color: var(--ink-soft); white-space: nowrap; }
.notice-strip-more { flex: none; font-weight: 600; font-size: .9rem; text-decoration: none; color: var(--brand-dark); }
@media (max-width: 767.98px) {
  .notice-strip { flex-wrap: wrap; padding: .8rem 1rem; }
  .notice-strip-more { margin-left: auto; }
  .notice-strip ul { order: 3; flex-basis: 100%; flex-direction: column; overflow: visible; }
  .notice-strip li { max-width: none; padding: .45rem 0 0; border-left: 0; border-top: 1px dashed var(--marigold-line); flex-wrap: wrap; }
  .notice-strip li:first-child { border-top: 0; padding-top: 0; }
  .notice-strip li a { white-space: normal; }
}

/* ---------- ภาพพื้นหลังเต็มหน้า ---------- */
body.has-page-bg { background-color: transparent; }
body.has-page-bg::before { content: ""; position: fixed; inset: 0; z-index: -2; background: var(--page-bg); pointer-events: none; }
@media (max-width: 767.98px) { body.has-page-bg::before { background: var(--page-bg-m, var(--page-bg)); } }
body.bg-tone-light::after, body.bg-tone-dark::after { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; }
body.bg-tone-light::after { background: rgba(255, 255, 255, .45); }
body.bg-tone-dark::after { background: rgba(8, 14, 22, .45); }
/* แต่ละส่วนเป็นกล่องลอยบนพื้นหลัง */
.has-page-bg .section, .has-page-bg .section-mist { background: transparent; padding: clamp(.6rem, 1.6vw, 1.1rem) 0; }
.has-page-bg .home-lead { padding-bottom: clamp(.6rem, 1.6vw, 1.1rem); }
.has-page-bg main { padding-bottom: clamp(1.25rem, 4vw, 3rem); }
.has-page-bg .section > .container, .has-page-bg .article > .container {
  background: rgba(255, 255, 255, .84); -webkit-backdrop-filter: blur(14px) saturate(1.15); backdrop-filter: blur(14px) saturate(1.15);
  border: 1px solid rgba(255, 255, 255, .65); border-radius: var(--radius-lg); box-shadow: 0 12px 32px rgba(15, 30, 40, .10);
  padding: clamp(1.25rem, 3vw, 2.25rem) clamp(1rem, 3vw, 2.25rem);
}
.has-page-bg.bg-panel-solid .section > .container, .has-page-bg.bg-panel-solid .article > .container { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; border-color: var(--line); }
.has-page-bg .article { padding: clamp(.6rem, 1.6vw, 1.1rem) 0 1rem; }
.has-page-bg .page-head { background: rgba(255, 255, 255, .82); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 0; margin-bottom: clamp(.6rem, 1.6vw, 1.1rem); }
.has-page-bg.bg-panel-solid .page-head { background: #fff; }
.has-page-bg .section-fb .fb-follow, .has-page-bg .notice-strip { box-shadow: 0 6px 18px rgba(15, 30, 40, .06); }
@media (max-width: 575.98px) {
  .has-page-bg .section > .container, .has-page-bg .article > .container { width: auto; margin-inline: .5rem; padding-inline: 1rem; }
}

/* ---------- ส่วน: แจ้งปัญหา / ความคิดเห็น ---------- */
.fbk-cta { display: grid; gap: 1.5rem; align-items: center; background: linear-gradient(140deg, rgba(var(--brand-rgb), .10), rgba(var(--brand-rgb), .02));
  border: 1px solid rgba(var(--brand-rgb), .18); border-radius: var(--radius-lg); padding: clamp(1.25rem, 3vw, 2.25rem); }
@media (min-width: 992px) { .fbk-cta { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); } }
.fbk-cta h2 { font-size: clamp(1.3rem, 2.6vw, 1.75rem); display: flex; align-items: center; gap: .6rem; margin: 0 0 .5rem; }
.fbk-cta h2 i { color: var(--brand); }
.fbk-cta-main p { margin: 0 0 1rem; color: var(--ink-soft); max-width: 60ch; }
.fbk-cta-systems { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.1rem; }
.fbk-cta-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.fbk-cta-list li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: .75rem 1rem; display: grid; gap: .1rem; min-width: 0; }
.fbk-cta-list a { font-weight: 600; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.fbk-cta-list a:hover { color: var(--brand-dark); text-decoration: underline; }
.fbk-cta-list small { color: var(--ink-soft); }
.fbk-cta-sys { font-size: .75rem; font-weight: 700; color: var(--brand-dark); letter-spacing: .02em; }
