:root {
  --navy: #1d3170;
  --pink: #e8607a;
  --sky: #eef4fb;
  --ink: #1f2430;
  --muted: #5b6375;
}
* { box-sizing: border-box; }
body { margin: 0; background: #fff; color: var(--ink); font: 17px/1.75 "Sarabun", system-ui, sans-serif; }
h1, h2, strong { font-family: "Prompt", "Sarabun", sans-serif; color: var(--navy); line-height: 1.35; }
h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); margin: 1.2em 0 .6em; }
h2 { font-size: clamp(1.25rem, 3vw, 1.6rem); margin: 1em 0 .4em; }
a { color: var(--navy); }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 16px; }
.center { text-align: center; }
.lead { font-size: 1.15rem; color: var(--muted); }
.wide { width: 100%; margin: 1.5em 0; border-radius: 8px; }

.top { position: sticky; top: 0; z-index: 10; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.06); }
.bar { background: var(--navy); display: flex; justify-content: flex-end; gap: 20px; padding: 4px 16px; font-size: .9rem; }
.bar a { color: #fff; text-decoration: none; }
.head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 8px; padding-bottom: 8px; }
.logo img { height: 56px; width: auto; }
nav { display: flex; gap: 4px; overflow-x: auto; }
nav a { padding: 6px 12px; border-radius: 20px; text-decoration: none; font-family: "Prompt", sans-serif; white-space: nowrap; }
nav a:hover, nav a[aria-current] { background: var(--pink); color: #fff; }
@media (max-width: 760px) {
  .top { position: static; }
  .head { flex-direction: column; align-items: stretch; }
  .logo img { height: 44px; margin: 0 auto; }
  nav { justify-content: flex-start; }
}

.slider { position: relative; }
.track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.track::-webkit-scrollbar { display: none; }
.track > div { flex: 0 0 100%; scroll-snap-align: start; }
.track img { width: 100%; }
.prev, .next { position: absolute; top: 50%; transform: translateY(-50%); border: 0; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.85); color: var(--navy); font-size: 28px; line-height: 1; cursor: pointer; }
.prev { left: 12px; } .next { right: 12px; }

.intro { padding: 1.5em 16px; }
.docs { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 1em; }
.doc { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 150px; text-decoration: none; font-family: "Prompt", sans-serif; }
.doc img { height: 64px; width: auto; }
.band { background: var(--sky); padding: 24px 0; margin: 24px 0; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.grid2.mid { align-items: center; }
@media (max-width: 760px) { .grid2 { grid-template-columns: 1fr; gap: 12px; } }
.row { padding: 24px 0; border-bottom: 1px solid #e4e8f0; }
.row img { margin-top: 12px; border-radius: 8px; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; margin: 1em 0 2em; }
.card { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: inherit; background: #fff; border: 1px solid #e4e8f0; border-radius: 10px; padding: 12px; }
.card img { border-radius: 6px; aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.card p { margin: 0; font-size: .95rem; color: var(--muted); }
a.card:hover { border-color: var(--pink); }
.date { color: var(--pink); font-size: .9rem; }

.prose { max-width: 820px; }
.tags { color: var(--muted); font-size: .9rem; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.gallery img { border-radius: 6px; aspect-ratio: 1; object-fit: cover; width: 100%; }
details { border: 1px solid #e4e8f0; border-radius: 8px; padding: 10px 14px; margin: 8px 0; }
summary { cursor: pointer; font-family: "Prompt", sans-serif; color: var(--navy); }
.btn { display: inline-block; background: var(--pink); color: #fff; padding: 8px 20px; border-radius: 24px; text-decoration: none; font-family: "Prompt", sans-serif; margin: 4px 4px 4px 0; }
.btn.alt { background: var(--navy); }

footer { background: var(--navy); color: #dfe6f5; margin-top: 48px; padding: 32px 0 12px; }
footer strong { color: #fff; }
footer a { color: #fff; }
.foot { display: flex; gap: 32px; align-items: flex-start; flex-wrap: wrap; }
.flogo { width: 140px; background: #fff; border-radius: 8px; padding: 6px; }
.copy { text-align: center; font-size: .85rem; opacity: .7; margin: 24px 0 0; }
