/* =====================================================================
   รอบ 72: เว็บไซต์องค์กร (หน้าเว็บสาธารณะ /site — WebsiteLayout + WsBlock …)
   ทุก selector อยู่ใต้ .ws (prefix ws-) ไม่รั่วไปหน้าอื่น · สีหลัก = --brand ของร้าน (ใส่ใน <head> โดย App.razor)
   ธีม: data-ws-theme = classic | modern | bold | minimal (เปลี่ยนแค่ตัวแปร + รายละเอียดเล็กน้อย)
   สว่างเสมอ (ไม่ใช้โหมดมืดของหลังร้าน) · มือถือก่อน (390px ไม่เลื่อนแนวนอน) · ไม่มี JS
   ===================================================================== */

.ws {
  --ws-accent: var(--brand, #C2510F);
  --ws-accent-strong: var(--brand-strong, #9F420C);
  --ws-accent-soft: var(--brand-soft, rgba(194,81,15,.12));
  --ws-accent-tint: var(--brand-tint, rgba(194,81,15,.06));
  --ws-on-accent: #FFFFFF;
  --ws-bg: #FFFFFF;
  --ws-bg-alt: #F6F7F9;
  --ws-surface: #FFFFFF;
  --ws-ink: #17181C;
  --ws-muted: #5B6170;
  --ws-line: #E3E6EB;
  --ws-radius: 14px;
  --ws-radius-lg: 22px;
  --ws-shadow: 0 1px 2px rgba(16,24,40,.06), 0 8px 24px rgba(16,24,40,.07);
  --ws-head-bg: rgba(255,255,255,.94);
  --ws-head-ink: var(--ws-ink);
  --ws-head-line: var(--ws-line);
  --ws-hero-bg: linear-gradient(135deg, var(--ws-accent) 0%, var(--ws-accent-strong) 100%);
  --ws-hero-ink: #FFFFFF;
  --ws-foot-bg: #15171C;
  --ws-foot-ink: #E8EAEE;
  --ws-foot-muted: #A3A9B5;
  --ws-h-weight: 700;
  --ws-max: 1120px;
  --ws-gap: clamp(40px, 7vw, 84px);

  display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh;
  background: var(--ws-bg); color: var(--ws-ink);
  font-family: var(--font, "Noto Sans Lao", "Noto Sans Thai", sans-serif);
  font-size: 16px; line-height: 1.65;
  overflow-x: clip;
  color-scheme: light;
}
.ws *, .ws *::before, .ws *::after { box-sizing: border-box; }
/* รอบ 98: ไม่ทับสีของปุ่ม .ws-btn ที่เป็นลิงก์ (เดิม .ws a ชนะ .ws-btn → ตัวหนังสือสีเดียวกับพื้นปุ่ม มองไม่เห็น เช่น ปุ่ม "ຕິດຕາມສະຖານະ" หลังส่งใบสมัคร / ເປີດແຜນທີ່ / ສະໝັກຮຽນ) — :where คงความเจาะจงเดิม */
.ws a:where(:not(.ws-btn)) { color: var(--ws-accent); }
.ws img { max-width: 100%; display: block; }
.ws h1, .ws h2, .ws h3 { color: inherit; line-height: 1.25; margin: 0; font-weight: var(--ws-h-weight); }
.ws .small { font-size: .875rem; }
.ws .pre { white-space: pre-line; }
.ws :focus-visible { outline: 3px solid color-mix(in srgb, var(--ws-accent) 50%, transparent); outline-offset: 2px; }

/* ---------- ธีม ---------- */
.ws[data-ws-theme="classic"] {
  --ws-head-bg: var(--ws-accent);
  --ws-head-ink: #FFFFFF;
  --ws-head-line: transparent;
}
.ws[data-ws-theme="modern"] {
  --ws-bg: #F4F6FB;
  --ws-bg-alt: #FFFFFF;
  --ws-radius: 20px;
  --ws-radius-lg: 30px;
  --ws-shadow: 0 2px 6px rgba(20,30,60,.05), 0 18px 40px rgba(20,30,60,.08);
  --ws-hero-bg: radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--ws-accent) 70%, #ffffff) 0%, var(--ws-accent) 45%, var(--ws-accent-strong) 100%);
  --ws-foot-bg: #FFFFFF;
  --ws-foot-ink: var(--ws-ink);
  --ws-foot-muted: var(--ws-muted);
}
.ws[data-ws-theme="bold"] {
  --ws-head-bg: #111216;
  --ws-head-ink: #FFFFFF;
  --ws-head-line: transparent;
  --ws-hero-bg: var(--ws-accent);
  --ws-h-weight: 800;
  --ws-radius: 8px;
  --ws-radius-lg: 12px;
  --ws-bg-alt: #111216;
}
.ws[data-ws-theme="minimal"] {
  --ws-shadow: none;
  --ws-radius: 10px;
  --ws-radius-lg: 14px;
  --ws-hero-bg: #FFFFFF;
  --ws-hero-ink: var(--ws-ink);
  --ws-bg-alt: #FAFAFA;
  --ws-foot-bg: #FFFFFF;
  --ws-foot-ink: var(--ws-ink);
  --ws-foot-muted: var(--ws-muted);
  --ws-h-weight: 600;
}

/* ---------- โครง ---------- */
.ws-wrap { width: 100%; max-width: var(--ws-max); margin: 0 auto; padding: 0 16px; }
.ws-narrow { max-width: 820px; }
.ws-main { flex: 1 0 auto; }
.ws-muted { color: var(--ws-muted); }
.ws-center { text-align: center; margin: 24px 0 0; }

.ws-preview-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 14px; padding: 8px 16px;
  background: #FFF4D6; color: #6B4A00; font-size: .875rem; font-weight: 600; text-align: center;
}
.ws-preview-bar a { color: inherit; }

/* ---------- หัว ---------- */
.ws-head {
  position: sticky; top: 0; z-index: 20;
  background: var(--ws-head-bg); color: var(--ws-head-ink);
  border-bottom: 1px solid var(--ws-head-line);
  -webkit-backdrop-filter: saturate(160%) blur(10px); backdrop-filter: saturate(160%) blur(10px);
}
.ws-head-in { display: flex; align-items: center; gap: 12px; min-height: 64px; position: relative; }
.ws-brand { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1 1 auto; color: inherit; text-decoration: none; }
.ws-logo { width: 44px; height: 44px; border-radius: 12px; object-fit: contain; background: #FFFFFF; flex: none; }
.ws-logo-txt { display: grid; place-items: center; background: var(--ws-accent); color: var(--ws-on-accent); font-weight: 800; font-size: 1.2rem; }
.ws[data-ws-theme="classic"] .ws-logo-txt, .ws[data-ws-theme="bold"] .ws-logo-txt { background: rgba(255,255,255,.18); }
.ws-brand-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.ws-brand-txt strong { font-size: 1.06rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ws-brand-txt small { font-size: .78rem; opacity: .78; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.ws-nav-cb { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.ws-nav-btn {
  display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 12px; cursor: pointer; color: inherit;
}
.ws-nav-btn:hover { background: rgba(127,127,127,.14); }
.ws-nav-cb:focus-visible + .ws-nav-btn { outline: 3px solid color-mix(in srgb, var(--ws-accent) 50%, transparent); }
.ws-nav {
  display: none; position: absolute; top: 100%; left: 8px; right: 8px; z-index: 30;
  flex-direction: column; gap: 2px; padding: 10px; margin-top: 4px;
  background: #FFFFFF; color: var(--ws-ink); border-radius: var(--ws-radius); box-shadow: 0 16px 40px rgba(16,24,40,.18);
  max-height: calc(100dvh - 90px); overflow: auto;
}
.ws-nav-cb:checked ~ .ws-nav { display: flex; }
.ws-nav > a {
  display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 10px;
  color: inherit; text-decoration: none; font-weight: 600;
}
.ws-nav > a:hover { background: var(--ws-accent-tint); }
.ws-nav > a.on { color: var(--ws-accent); background: var(--ws-accent-soft); }
.ws-nav > a.ws-nav-cta { justify-content: center; background: var(--ws-accent); color: var(--ws-on-accent); margin-top: 6px; }
.ws-nav > a.ws-nav-ghost { background: transparent; color: var(--ws-accent); box-shadow: inset 0 0 0 1.5px var(--ws-accent); }
.ws-lang { display: inline-flex; gap: 2px; padding: 3px; margin-top: 8px; align-self: flex-start; border-radius: 999px; background: rgba(127,127,127,.14); }
.ws-lang a { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border-radius: 999px; color: inherit; text-decoration: none; font-size: .85rem; font-weight: 600; }
.ws-lang a.on { background: #FFFFFF; color: var(--ws-ink); box-shadow: 0 1px 3px rgba(0,0,0,.15); }

@media (min-width: 900px) {
  .ws-nav-btn { display: none; }
  .ws-nav {
    display: flex; position: static; flex-direction: row; align-items: center; flex-wrap: wrap; justify-content: flex-end;
    gap: 2px; padding: 0; margin: 0; background: none; color: inherit; box-shadow: none; max-height: none; overflow: visible; flex: 0 1 auto;
  }
  .ws-nav > a { min-height: 40px; padding: 0 12px; font-size: .95rem; }
  .ws-nav > a:hover { background: rgba(127,127,127,.14); }
  .ws-nav > a.on { color: inherit; background: rgba(127,127,127,.16); }
  .ws[data-ws-theme="modern"] .ws-nav > a.on, .ws[data-ws-theme="minimal"] .ws-nav > a.on { color: var(--ws-accent); background: var(--ws-accent-soft); }
  .ws-nav > a.ws-nav-cta { margin: 0 0 0 6px; padding: 0 16px; border-radius: 999px; }
  .ws[data-ws-theme="classic"] .ws-nav > a.ws-nav-cta, .ws[data-ws-theme="bold"] .ws-nav > a.ws-nav-cta { background: #FFFFFF; color: var(--ws-ink); }
  .ws[data-ws-theme="classic"] .ws-nav > a.ws-nav-ghost, .ws[data-ws-theme="bold"] .ws-nav > a.ws-nav-ghost { background: transparent; color: #FFFFFF; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.8); }
  .ws-lang { margin: 0 0 0 8px; align-self: center; }
}

/* ---------- ส่วนทั่วไป ---------- */
.ws-sec { padding: var(--ws-gap) 0; }
.ws-sec-alt { background: var(--ws-bg-alt); }
.ws[data-ws-theme="bold"] .ws-sec-alt { color: #F2F3F5; --ws-muted: #A7ADB8; --ws-surface: #1C1E24; --ws-line: #2C2F37; }
.ws[data-ws-theme="bold"] .ws-sec-alt .ws-card, .ws[data-ws-theme="bold"] .ws-sec-alt .ws-news-card { color: #F2F3F5; }
.ws-sec + .ws-sec:not(.ws-sec-alt) { padding-top: calc(var(--ws-gap) * .5); }
.ws-sec-head { margin: 0 0 28px; max-width: 720px; }
.ws-h1 { font-size: clamp(1.7rem, 4.5vw, 2.6rem); }
.ws-h2 { font-size: clamp(1.4rem, 3.4vw, 2rem); margin: 0 0 14px; }
.ws-sec-head .ws-h2 { margin: 0; }
.ws[data-ws-theme="bold"] .ws-h2 { letter-spacing: -.01em; }
.ws[data-ws-theme="classic"] .ws-sec-head .ws-h2::after, .ws[data-ws-theme="bold"] .ws-sec-head .ws-h2::after {
  content: ""; display: block; width: 48px; height: 4px; margin-top: 12px; border-radius: 4px; background: var(--ws-accent);
}
.ws-lead { margin: 10px 0 0; color: var(--ws-muted); font-size: 1.05rem; }
.ws-prose { font-size: 1.02rem; }
.ws-prose p { margin: 0 0 1em; }
.ws-prose p:last-child, .ws-prose .ws-ul:last-child { margin-bottom: 0; }
.ws-ul { margin: 0 0 1em; padding-left: 1.3em; }
.ws-ul li { margin: .25em 0; }
.ws-ul li::marker { color: var(--ws-accent); }

/* ปุ่ม */
.ws-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.ws-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px;
  border: 0; border-radius: 999px; background: var(--ws-accent); color: var(--ws-on-accent);
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; transition: transform .15s ease, background .15s ease;
}
.ws-btn:hover { background: var(--ws-accent-strong); transform: translateY(-1px); }
.ws-btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.ws-btn-ghost { background: transparent; color: var(--ws-accent); box-shadow: inset 0 0 0 2px var(--ws-accent); }
.ws-btn-ghost:hover { background: var(--ws-accent-tint); }
.ws[data-ws-theme="bold"] .ws-btn, .ws[data-ws-theme="minimal"] .ws-btn { border-radius: var(--ws-radius); }

/* ---------- Hero ---------- */
.ws-hero {
  position: relative; display: flex; align-items: center; min-height: clamp(320px, 62vh, 620px);
  padding: 56px 0; background: var(--ws-hero-bg); color: var(--ws-hero-ink); overflow: hidden; isolation: isolate;
}
.ws-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.ws-hero.has-img { color: #FFFFFF; }
.ws-hero.has-img::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(10,12,18,.25) 0%, rgba(10,12,18,.62) 100%);
}
.ws-hero-in { position: relative; }
.ws-hero-title { font-size: clamp(2rem, 6.4vw, 3.6rem); max-width: 16ch; text-wrap: balance; }
.ws-hero-sub { margin: 16px 0 0; max-width: 56ch; font-size: clamp(1.02rem, 2.2vw, 1.25rem); opacity: .92; }
.ws-hero .ws-btn { background: #FFFFFF; color: var(--ws-ink); }
.ws-hero .ws-btn:hover { background: #F1F2F4; }
.ws-hero .ws-btn-ghost { background: transparent; color: #FFFFFF; box-shadow: inset 0 0 0 2px rgba(255,255,255,.85); }
.ws-hero .ws-btn-ghost:hover { background: rgba(255,255,255,.12); }
.ws[data-ws-theme="minimal"] .ws-hero:not(.has-img) { min-height: 0; padding: clamp(56px, 10vw, 110px) 0; border-bottom: 1px solid var(--ws-line); }
.ws[data-ws-theme="minimal"] .ws-hero:not(.has-img) .ws-hero-title { color: var(--ws-ink); }
.ws[data-ws-theme="minimal"] .ws-hero:not(.has-img) .ws-hero-title::first-letter { color: var(--ws-accent); }
.ws[data-ws-theme="minimal"] .ws-hero:not(.has-img) .ws-btn { background: var(--ws-accent); color: var(--ws-on-accent); }
.ws[data-ws-theme="minimal"] .ws-hero:not(.has-img) .ws-btn-ghost { background: transparent; color: var(--ws-accent); box-shadow: inset 0 0 0 2px var(--ws-accent); }
.ws[data-ws-theme="modern"] .ws-hero { margin: 16px; border-radius: var(--ws-radius-lg); min-height: clamp(300px, 56vh, 560px); }
.ws[data-ws-theme="bold"] .ws-hero-title { text-transform: none; letter-spacing: -.02em; }
.ws[data-ws-theme="bold"] .ws-hero:not(.has-img)::after {
  content: ""; position: absolute; right: -80px; bottom: -120px; width: 360px; height: 360px; border-radius: 50%;
  background: rgba(255,255,255,.12); z-index: -1;
}

/* ---------- รูป + ข้อความ ---------- */
.ws-it { display: grid; gap: 28px; align-items: center; }
.ws-it-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--ws-radius-lg); box-shadow: var(--ws-shadow); }
@media (min-width: 820px) {
  .ws-it { grid-template-columns: 1fr 1fr; gap: 56px; }
  .ws-it-rev .ws-it-media { order: 2; }
  .ws-it-noimg { grid-template-columns: 1fr; max-width: 820px; }
}

/* ---------- การ์ด ---------- */
.ws-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 18px; }
.ws-card {
  display: flex; flex-direction: column; gap: 10px; padding: 24px; min-width: 0;
  background: var(--ws-surface); border: 1px solid var(--ws-line); border-radius: var(--ws-radius); box-shadow: var(--ws-shadow);
}
.ws[data-ws-theme="modern"] .ws-card { border-color: transparent; }
.ws[data-ws-theme="minimal"] .ws-card { box-shadow: none; }
.ws-card-img { width: calc(100% + 48px); max-width: none; margin: -24px -24px 6px; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--ws-radius) var(--ws-radius) 0 0; }
.ws-card-ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--ws-accent-soft); color: var(--ws-accent); }
.ws[data-ws-theme="bold"] .ws-card-ico { background: var(--ws-accent); color: var(--ws-on-accent); border-radius: 10px; }
.ws-card-title { font-size: 1.12rem; }
.ws-card-text { color: var(--ws-muted); font-size: .95rem; }
.ws-card-text p { margin: 0 0 .6em; }
.ws-card-text p:last-child { margin: 0; }
.ws-card-more { margin-top: auto; font-weight: 700; text-decoration: none; }
.ws-card-more::after { content: " →"; }

/* ---------- แกลเลอรี + ภาพใหญ่ (:target) ---------- */
.ws-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(46%, 220px), 1fr)); gap: 10px; }
.ws-gal-item { display: block; overflow: hidden; border-radius: var(--ws-radius); background: var(--ws-bg-alt); }
.ws-gal-item img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .25s ease; }
.ws-gal-item:hover img { transform: scale(1.04); }
.ws-lb {
  display: none; position: fixed; inset: 0; z-index: 100; padding: 56px 12px 24px;
  align-items: center; justify-content: center; background: rgba(8,10,14,.92);
}
.ws-lb:target { display: flex; }
.ws-lb figure { margin: 0; max-width: min(1200px, 100%); max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.ws-lb img { max-width: 100%; max-height: calc(100dvh - 140px); object-fit: contain; border-radius: 8px; }
.ws-lb figcaption { color: #E9EBEF; text-align: center; font-size: .95rem; }
.ws-lb-close {
  position: absolute; top: 10px; right: 12px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px;
  background: rgba(255,255,255,.14); color: #FFFFFF; font-size: 1.8rem; line-height: 1; text-decoration: none;
}

/* ---------- ตัวเลขเด่น ---------- */
.ws-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(46%, 180px), 1fr)); gap: 14px; }
.ws-stat { display: flex; flex-direction: column; gap: 4px; padding: 20px; border-radius: var(--ws-radius); background: var(--ws-accent-tint); text-align: center; }
.ws-stat strong { font-size: clamp(1.8rem, 5vw, 2.6rem); line-height: 1.1; color: var(--ws-accent); font-variant-numeric: tabular-nums; }
.ws-stat span { color: var(--ws-muted); font-weight: 600; }
.ws[data-ws-theme="bold"] .ws-stats-sec { background: var(--ws-accent); color: #FFFFFF; }
.ws[data-ws-theme="bold"] .ws-stats-sec .ws-stat { background: rgba(255,255,255,.12); }
.ws[data-ws-theme="bold"] .ws-stats-sec .ws-stat strong, .ws[data-ws-theme="bold"] .ws-stats-sec .ws-stat span { color: #FFFFFF; }
.ws[data-ws-theme="bold"] .ws-stats-sec .ws-h2::after { background: #FFFFFF; }

/* ---------- ทีมงาน ---------- */
.ws-team { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(46%, 180px), 1fr)); gap: 22px 16px; }
.ws-person { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; min-width: 0; }
.ws-person-img { width: min(140px, 100%); aspect-ratio: 1; border-radius: 50%; object-fit: cover; margin-bottom: 8px; background: var(--ws-bg-alt); box-shadow: var(--ws-shadow); }
.ws-person-ini { display: grid; place-items: center; background: var(--ws-accent-soft); color: var(--ws-accent); font-size: 2.2rem; font-weight: 800; }
.ws-person strong { overflow-wrap: anywhere; }
.ws-person .ws-muted { font-size: .9rem; }

/* ---------- ข่าว ---------- */
.ws-news { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 18px; }
.ws-news-card {
  display: flex; flex-direction: column; min-width: 0; overflow: hidden; color: inherit; text-decoration: none;
  background: var(--ws-surface); border: 1px solid var(--ws-line); border-radius: var(--ws-radius); box-shadow: var(--ws-shadow);
  transition: transform .15s ease, box-shadow .15s ease;
}
.ws-news-card:hover { transform: translateY(-2px); }
.ws-news-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--ws-bg-alt); }
.ws-news-noimg { display: grid; place-items: center; color: var(--ws-accent); background: var(--ws-accent-tint); }
.ws-news-body { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 20px; }
.ws-news-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--ws-muted); font-size: .85rem; margin: 0; }
.ws-news-title { font-size: 1.08rem; line-height: 1.35; }
.ws-news-snip { color: var(--ws-muted); font-size: .93rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ws-tag { display: inline-flex; align-items: center; min-height: 22px; padding: 0 8px; border-radius: 999px; background: var(--ws-accent-soft); color: var(--ws-accent-strong); font-size: .75rem; font-weight: 700; }
.ws-tag-draft { background: #FFF4D6; color: #6B4A00; }

.ws-article .ws-h1 { margin: 6px 0 20px; }
.ws-article-cover { width: 100%; border-radius: var(--ws-radius-lg); margin: 0 0 24px; }
.ws-back { display: inline-flex; align-items: center; gap: 4px; margin: 0 0 18px; color: var(--ws-muted); font-weight: 600; text-decoration: none; }
.ws-back:hover { color: var(--ws-accent); }

/* ---------- ปฏิทินกิจกรรม ---------- */
.ws-events { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ws-event {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "date kind" "title title"; gap: 2px 12px;
  padding: 14px 16px; border-radius: var(--ws-radius); background: var(--ws-surface); border: 1px solid var(--ws-line); border-left: 4px solid var(--ws-accent);
}
.ws-event-date { grid-area: date; color: var(--ws-muted); font-size: .88rem; font-weight: 600; }
.ws-event strong { grid-area: title; }
.ws-event-kind { grid-area: kind; font-size: .78rem; font-weight: 700; color: var(--ws-accent-strong); }
.ws-event-branch { grid-column: 1 / -1; color: var(--ws-muted); font-size: .82rem; }
.ws-ev-holiday, .ws-ev-break { border-left-color: #2E7D5B; }
.ws-ev-exam { border-left-color: #B3261E; }

/* ---------- ติดต่อ ---------- */
.ws-contact { display: grid; gap: 28px; }
@media (min-width: 880px) { .ws-contact:not(.ws-contact-solo) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 48px; } }
.ws-contact-list { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.ws-contact-list li { display: flex; gap: 10px; align-items: flex-start; }
.ws-contact-list svg { flex: none; margin-top: 3px; color: var(--ws-accent); }
.ws-contact-list a { color: inherit; font-weight: 600; overflow-wrap: anywhere; }
.ws-contact-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.ws-contact-form { padding: 22px; border-radius: var(--ws-radius-lg); background: var(--ws-surface); border: 1px solid var(--ws-line); box-shadow: var(--ws-shadow); color: var(--ws-ink); }
.ws-form { display: flex; flex-direction: column; gap: 14px; }
.ws-form-two { display: grid; gap: 14px; }
@media (min-width: 560px) { .ws-form-two { grid-template-columns: 1fr 1fr; } }
.ws-field { display: flex; flex-direction: column; gap: 6px; font-size: .9rem; font-weight: 600; color: var(--ws-muted); }
.ws-field input, .ws-field textarea {
  width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--ws-line); border-radius: 12px;
  background: #FFFFFF; color: var(--ws-ink); font: inherit; font-size: 16px; font-weight: 400;
}
.ws-field textarea { resize: vertical; min-height: 120px; }
.ws-field input:focus, .ws-field textarea:focus { outline: 2px solid var(--ws-accent); outline-offset: 0; border-color: transparent; }
.ws-anchor { display: block; position: relative; top: -80px; height: 0; }
.ws-hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.ws-alert { padding: 12px 14px; border-radius: 12px; margin: 0 0 14px; font-weight: 600; }
.ws-alert-ok { background: #E7F6EC; color: #1C6B3A; }
.ws-alert-err { background: #FBE8E6; color: #B3261E; }
.ws-alert-draft { background: #FFF4D6; color: #6B4A00; margin: 16px 0 0; }

/* ---------- แบนเนอร์ชวนคลิก ---------- */
.ws-cta { padding: clamp(40px, 6vw, 64px) 0; background: var(--ws-accent); color: var(--ws-on-accent); }
.ws[data-ws-theme="modern"] .ws-cta { margin: 0 16px; border-radius: var(--ws-radius-lg); }
.ws-cta-in { display: flex; flex-direction: column; gap: 18px; }
@media (min-width: 820px) { .ws-cta-in { flex-direction: row; align-items: center; justify-content: space-between; } .ws-cta-in .ws-btns { margin: 0; flex: none; } }
.ws-cta-title { font-size: clamp(1.4rem, 3.6vw, 2rem); }
.ws-cta-text { margin-top: 8px; opacity: .92; }
.ws-cta-text p { margin: 0; }
.ws-btns.on-brand .ws-btn { background: #FFFFFF; color: var(--ws-ink); }
.ws-btns.on-brand .ws-btn-ghost { background: transparent; color: #FFFFFF; box-shadow: inset 0 0 0 2px rgba(255,255,255,.85); }

/* ---------- คำถามที่พบบ่อย ---------- */
.ws-faq { display: flex; flex-direction: column; gap: 10px; }
.ws-faq-item { border: 1px solid var(--ws-line); border-radius: var(--ws-radius); background: var(--ws-surface); }
.ws-faq-item summary {
  list-style: none; display: flex; justify-content: space-between; gap: 12px; padding: 16px 18px; cursor: pointer; font-weight: 700;
}
.ws-faq-item summary::-webkit-details-marker { display: none; }
.ws-faq-item summary::after { content: "+"; flex: none; color: var(--ws-accent); font-size: 1.3rem; line-height: 1; }
.ws-faq-item[open] summary::after { content: "−"; }
.ws-faq-item .ws-prose { padding: 0 18px 16px; color: var(--ws-muted); }

/* ---------- ท้ายเว็บ ---------- */
.ws-foot { margin-top: auto; background: var(--ws-foot-bg); color: var(--ws-foot-ink); padding: 44px 0 20px; }
.ws[data-ws-theme="modern"] .ws-foot, .ws[data-ws-theme="minimal"] .ws-foot { border-top: 1px solid var(--ws-line); }
.ws-foot-in { display: grid; gap: 24px; }
@media (min-width: 760px) { .ws-foot-in { grid-template-columns: 1.4fr 1fr; } }
.ws-foot-col { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ws-foot-name { font-size: 1.15rem; }
.ws-foot-addr, .ws-foot-note { margin: 0; color: var(--ws-foot-muted); display: flex; flex-direction: column; }
.ws-foot-link { color: var(--ws-foot-ink); text-decoration: none; font-weight: 600; overflow-wrap: anywhere; }
.ws-foot-link:hover { text-decoration: underline; }
.ws-socials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.ws-social {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--ws-foot-ink) 28%, transparent); color: var(--ws-foot-ink); text-decoration: none; font-size: .88rem; font-weight: 600;
}
.ws-social:hover { background: color-mix(in srgb, var(--ws-foot-ink) 10%, transparent); }
.ws-foot-base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; margin-top: 28px; padding-top: 16px;
  border-top: 1px solid color-mix(in srgb, var(--ws-foot-ink) 16%, transparent); color: var(--ws-foot-muted); font-size: .82rem;
}

/* ---------- ไม่พบ / ปิด ---------- */
.ws-closed { max-width: 560px; margin: 0 auto; padding: 96px 16px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.ws-closed h1 { font-size: 1.5rem; }
.ws-closed p { margin: 0 0 8px; color: var(--ws-muted); }
.ws-closed-ico { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 24px; background: var(--ws-accent-soft); color: var(--ws-accent); }

@media (prefers-reduced-motion: reduce) {
  .ws-btn, .ws-gal-item img, .ws-news-card { transition: none; }
}

@media print {
  .ws-head, .ws-preview-bar, .ws-contact-form, .ws-lb { display: none !important; }
  .ws-hero { min-height: 0; color: #000; background: none; }
}
