
:root{ --bg:#ffffff; --text:#222; --muted:#6b7280; --brand:#3559e0; --brand-2:#8ab6f9; --card:#f3f4f6; }
*{box-sizing:border-box}
body{margin:0;font-family:system-ui,-apple-system,Segoe UI,Roboto,'Noto Sans Thai',sans-serif;color:var(--text);background:var(--bg);line-height:1.6}
.container{max-width:1100px;margin:0 auto;padding:0 16px}
.site-header{position:sticky;top:0;background:rgba(255,255,255,.9);backdrop-filter:saturate(180%) blur(12px);border-bottom:1px solid #eee;z-index:20}
.site-header .brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:inherit;font-weight:700}
.logo{width:150px;height:auto}
.nav{display:flex;flex-wrap:wrap;gap:12px;margin-left:auto}
.nav a{color:var(--muted);text-decoration:none;padding:10px 6px;border-radius:8px}
.nav a:hover{background:var(--card);color:var(--text)}
.content{padding:24px 0}
.site-footer{border-top:1px solid #eee;margin-top:40px}
.site-footer .container{display:flex;justify-content:space-between;gap:16px;padding:16px 0;flex-wrap:wrap}
.hero{
  background:linear-gradient(135deg,var(--brand),var(--brand-2));
  color:#fff;padding:64px 0;
  margin-bottom:24px;
  border-bottom:4px solid rgba(0,0,0,.08);
}
.hero .hero-inner{
    max-width:900px;margin:0 auto;
    padding:0 16px;
    text-align:center
}
.hero h1{margin:0 0 8px 0;font-size:clamp(28px,6vw,44px)}
.badge{background:rgba(255,255,255,.2);padding:2px 8px;border-radius:999px;font-weight:600;font-size:.8em;margin-left:8px}
.lead{opacity:.95;margin:8px 0 16px}
.btn{display:inline-block;padding:10px 16px;border-radius:12px;background:#fff;color:#000;text-decoration:none;font-weight:700}
.btn-outline{background:transparent;border:2px solid #fff;color:#fff;margin-left:8px}
.btn-2{display:inline-block;padding:10px 16px;border-radius:12px;background:#ff53cb;color:#fff;text-decoration:none;font-weight:700}
.grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.grid3 article{background:var(--card);border-radius:12px;min-height: 250px;padding:16px}
.grid3 article:last-child p {
  min-height: 50px; 
}
.table{width:100%;border-collapse:collapse;background:var(--card);border-radius:12px;overflow:hidden}
.table th,.table td{padding:12px;border-bottom:1px solid #e5e7eb}
.cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:16px}
.card{background:var(--card);border-radius:12px;padding:16px}
.gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:12px}
.gallery img{width:100%;border-radius:10px}
.svg-wrap{background:var(--card);border-radius:12px;padding:8px;overflow:auto}
svg .area rect{fill:#e5efff;stroke:#3559e0;stroke-width:2}
svg .area:focus rect, svg .area:hover rect{fill:#d6e6ff;outline:none}
svg .label{font-size:14px;fill:#0f172a;font-weight:700}
img {
  max-width: 100%;
  height: auto;
}
@media (max-width:900px){.grid3{grid-template-columns:1fr} .nav{gap:6px}}
