:root {
  --ink: #0b2145;
  --muted: #60718a;
  --blue: #0b84f3;
  --blue-dark: #076bd0;
  --sky: #eaf5ff;
  --line: #dce8f4;
  --paper: #ffffff;
  --bg: #f4f8fc;
  --green: #12996f;
  --orange: #ff8a24;
  --shadow: 0 18px 45px rgba(23, 60, 102, .1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: "Noto Sans Thai", system-ui, sans-serif;
  line-height: 1.75;
}
a { color: var(--blue-dark); }
.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(255,255,255,.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.header-inner, .page-shell, .footer-inner {
  width: min(1120px, calc(100% - 32px));
  margin: auto;
}
.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: white;
  background: linear-gradient(145deg, #11aee8, #0875e9);
  border-radius: 14px;
}
.top-nav { display: flex; gap: 20px; }
.top-nav a { color: var(--ink); text-decoration: none; font-weight: 700; }
.page-shell { padding: 48px 0 80px; }
.hero {
  padding: 42px;
  border: 1px solid #d8e9fa;
  border-radius: 32px;
  background:
    radial-gradient(circle at 92% 12%, rgba(68, 211, 177, .24), transparent 28%),
    linear-gradient(135deg, #e7f4ff, #f8f5ff 62%, #effcf8);
  box-shadow: var(--shadow);
}
.eyebrow {
  margin: 0 0 8px;
  color: var(--blue-dark);
  font-size: .86rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.hero h1, .article-head h1 {
  margin: 0;
  max-width: 850px;
  font-size: clamp(2rem, 5vw, 3.7rem);
  line-height: 1.2;
  letter-spacing: -.025em;
}
.hero p { max-width: 760px; margin: 18px 0 0; color: var(--muted); font-size: 1.08rem; }
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin: 48px 0 20px;
}
.section-head h2 { margin: 0; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.section-head p { margin: 0; color: var(--muted); }
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.article-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--paper);
  box-shadow: 0 10px 30px rgba(23, 60, 102, .07);
}
.card-art {
  min-height: 170px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #dff2ff, #edf7ff 48%, #f4edff);
}
.card-art img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.phone-glyph {
  width: 84px;
  height: 128px;
  padding: 8px;
  border: 5px solid var(--ink);
  border-radius: 22px;
  background: #fff;
}
.phone-screen {
  height: 100%;
  border-radius: 12px;
  background:
    linear-gradient(180deg, transparent 54%, rgba(255,255,255,.35) 55%),
    linear-gradient(145deg, var(--blue), #6c5ce7);
}
.card-body { padding: 22px; }
.tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  color: #075d4a;
  background: #dff7ef;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 800;
}
.article-card h2 { margin: 13px 0 8px; font-size: 1.25rem; line-height: 1.45; }
.article-card p { margin: 0 0 16px; color: var(--muted); }
.read-link { font-weight: 800; text-decoration: none; }
.article-wrap {
  display: grid;
  grid-template-columns: minmax(0, 760px) 260px;
  gap: 30px;
  align-items: start;
}
.article-main, .article-aside .aside-card {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--paper);
  box-shadow: var(--shadow);
}
.article-head { padding: 42px 46px 30px; border-bottom: 1px solid var(--line); }
.article-cover {
  display: block;
  width: calc(100% - 48px);
  max-height: 430px;
  margin: 24px auto 0;
  border-radius: 22px;
  object-fit: cover;
  object-position: center;
}
.article-head h1 { font-size: clamp(2rem, 4.5vw, 3.15rem); }
.article-meta { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 18px; color: var(--muted); font-size: .92rem; }
.article-body { padding: 34px 46px 50px; font-size: 1.06rem; }
.article-body h2 { margin: 42px 0 12px; font-size: 1.7rem; line-height: 1.4; }
.article-body h3 { margin: 25px 0 8px; font-size: 1.22rem; }
.article-body p { margin: 0 0 18px; }
.article-body li { margin-bottom: 7px; }
.notice, .summary-box, .danger-box {
  margin: 24px 0;
  padding: 20px 22px;
  border-radius: 18px;
}
.notice { border-left: 5px solid var(--blue); background: var(--sky); }
.summary-box { border: 1px solid #bfeadf; background: #effbf7; }
.danger-box { border: 1px solid #ffc9aa; background: #fff4ed; }
.article-aside { position: sticky; top: 92px; display: grid; gap: 18px; }
.aside-card { padding: 22px; }
.aside-card h2 { margin: 0 0 10px; font-size: 1.05rem; }
.aside-card ol { margin: 0; padding-left: 20px; }
.aside-card a { text-decoration: none; }
.source-list { font-size: .94rem; }
.cta {
  margin-top: 42px;
  padding: 28px;
  border-radius: 22px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue-dark), #7057e8);
}
.cta h2 { margin-top: 0; }
.cta a { color: white; font-weight: 800; }
.breadcrumb { margin-bottom: 18px; color: var(--muted); font-size: .92rem; }
.breadcrumb a { text-decoration: none; }
.site-footer { padding: 28px 0; color: var(--muted); background: #fff; border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.footer-links a { color: var(--muted); font-weight: 700; text-decoration: none; }
.footer-links a:hover { color: var(--blue); }
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 28px;
}
.info-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--paper);
  box-shadow: var(--shadow);
}
.info-card h2 { margin: 0 0 10px; font-size: 1.35rem; }
.info-card p:last-child, .info-card ul:last-child { margin-bottom: 0; }
.info-card a { font-weight: 750; }
.info-card-wide { grid-column: 1 / -1; }
.policy-page {
  max-width: 900px;
  padding: 38px 44px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--paper);
  box-shadow: var(--shadow);
}
.policy-page h2 { margin: 36px 0 10px; font-size: 1.45rem; }
.policy-page h2:first-of-type { margin-top: 12px; }
.policy-page li { margin-bottom: 8px; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 999px;
  color: #fff;
  background: var(--blue-dark);
  font-weight: 800;
  text-decoration: none;
}
.button-link-secondary { color: var(--blue-dark); background: var(--sky); border: 1px solid #cfe0f7; }
.article-qa {
  margin-top: 42px;
  padding: 28px;
  border: 1px solid #cfe3f6;
  border-radius: 24px;
  background: linear-gradient(145deg, #f7fbff, #fff);
}
.qa-heading { display: flex; align-items: start; justify-content: space-between; gap: 18px; }
.qa-heading h2 { margin: 0; }
.qa-moderated {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 999px;
  color: #075d4a;
  background: #dff7ef;
  font-size: .78rem;
  font-weight: 800;
}
.qa-intro { color: var(--muted); }
.qa-form { display: grid; gap: 15px; margin-top: 20px; }
.qa-form label { display: grid; gap: 7px; font-weight: 750; }
.qa-form label > span { color: var(--muted); font-size: .86rem; font-weight: 500; }
.qa-form input:not([type="checkbox"]), .qa-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #bdcee0;
  border-radius: 14px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}
.qa-form textarea { resize: vertical; min-height: 120px; }
.qa-form input:focus, .qa-form textarea:focus { outline: 3px solid rgba(11,132,243,.16); border-color: var(--blue); }
.qa-consent { grid-template-columns: 22px 1fr !important; align-items: start; font-size: .9rem; font-weight: 500 !important; }
.qa-consent input { width: 18px; height: 18px; margin-top: 4px; }
.qa-form button {
  justify-self: start;
  min-height: 46px;
  padding: 10px 20px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--blue-dark);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.qa-form button:disabled { opacity: .6; cursor: wait; }
.qa-status { min-height: 1.6em; margin: 0 !important; font-weight: 700; }
.qa-status.success { color: var(--green); }
.qa-status.error { color: #b53a28; }
.qa-trap { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.qa-published { display: grid; gap: 14px; margin-top: 28px; }
.qa-published > h3 { margin: 0; font-size: 1.25rem; }
.qa-item { padding: 18px 20px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.qa-item-question { margin: 0 0 10px !important; font-weight: 800; }
.qa-item-answer { margin: 0 !important; color: #263d5d; white-space: pre-line; }
.qa-item-meta { display: block; margin-top: 10px; color: var(--muted); font-size: .82rem; }
.qa-loading, .qa-empty { margin: 0 !important; color: var(--muted); }

@media (max-width: 860px) {
  .article-grid { grid-template-columns: 1fr 1fr; }
  .article-wrap { grid-template-columns: 1fr; }
  .article-aside { position: static; }
  .info-grid { grid-template-columns: 1fr; }
  .info-card-wide { grid-column: auto; }
}
@media (max-width: 620px) {
  .header-inner { min-height: 62px; }
  .top-nav a:not(:last-child) { display: none; }
  .page-shell { padding-top: 24px; }
  .hero { padding: 28px 24px; border-radius: 24px; }
  .article-grid { grid-template-columns: 1fr; }
  .article-head, .article-body { padding-left: 22px; padding-right: 22px; }
  .article-head { padding-top: 28px; }
  .article-cover {
    width: calc(100% - 28px);
    max-height: 250px;
    margin-top: 14px;
    border-radius: 16px;
  }
  .article-body { font-size: 1rem; }
  .policy-page { padding: 26px 22px; border-radius: 22px; }
  .article-qa { padding: 22px 18px; }
  .qa-heading { display: grid; }
  .qa-moderated { justify-self: start; }
}
