*{box-sizing:border-box}

body{
  margin:0;
  background:#f4f4f4;
  color:#222;
  font-family:Tahoma, Arial, sans-serif;
  font-size:14px;
  line-height:1.75;
}

a{
  text-decoration:none;
  color:inherit;
}

/* ขนาดเล็กแบบเว็บตัวอย่าง */
.site-wrap{
  width:100%;
  max-width:560px;
  margin:0 auto;
  background:#fff;
  min-height:100vh;
  padding:10px 12px 28px;
  box-shadow:0 0 18px rgba(0,0,0,.08);
}

.top-image{
  display:block;
  width:100%;
  height:auto;
  max-height:150px;
  object-fit:cover;
  border-radius:3px;
  margin:0 auto 10px;
  background:#ddd;
}

.button-center{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:8px;
  margin:8px 0 14px;
  flex-wrap:wrap;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:118px;
  height:34px;
  padding:0 14px;
  border-radius:4px;
  font-size:13px;
  font-weight:700;
  color:#fff;
  line-height:1;
  border:1px solid rgba(0,0,0,.12);
}

.btn-register{
  background:#d71920;
}

.btn-login{
  background:#111;
}

.btn:hover{
  opacity:.88;
}

h1{
  font-size:22px;
  line-height:1.38;
  margin:10px 0 12px;
  color:#111;
  font-weight:700;
}

h2{
  font-size:18px;
  line-height:1.45;
  margin:22px 0 8px;
  color:#111;
}

h3{
  font-size:16px;
  margin:16px 0 6px;
  color:#222;
}

p{
  margin:0 0 12px;
}

ul{
  margin:8px 0 14px;
  padding-left:22px;
}

li{
  margin:4px 0;
}

.article{
  padding:0 2px;
}

.article strong{
  color:#111;
}

.mini-box{
  border:1px solid #ddd;
  background:#fafafa;
  padding:10px;
  margin:14px 0;
  border-radius:4px;
}

.mini-box strong{
  display:block;
  margin-bottom:4px;
  color:#d71920;
}

.table-wrap{
  overflow-x:auto;
  margin:14px 0;
  border:1px solid #ddd;
  border-radius:3px;
}

table{
  width:100%;
  min-width:480px;
  border-collapse:collapse;
  font-size:13px;
  background:#fff;
}

th,
td{
  padding:8px;
  border-bottom:1px solid #e5e5e5;
  text-align:left;
  vertical-align:top;
}

th{
  background:#f0f0f0;
  color:#111;
}

tr:last-child td{
  border-bottom:0;
}

.faq details{
  border:1px solid #ddd;
  background:#fafafa;
  padding:9px 10px;
  margin:8px 0;
  border-radius:4px;
}

summary{
  font-weight:700;
  cursor:pointer;
  color:#111;
}

details p{
  margin:8px 0 0;
}

.bottom-cta{
  margin:20px 0 0;
  padding:12px;
  border:1px solid #ddd;
  background:#fafafa;
  text-align:center;
  border-radius:4px;
}

.bottom-cta p{
  margin:6px 0 0;
}

footer{
  margin-top:22px;
  padding-top:12px;
  border-top:1px solid #ddd;
  text-align:center;
  color:#666;
  font-size:12px;
}

@media(max-width:600px){
  .site-wrap{
    max-width:100%;
    padding:8px 10px 24px;
    box-shadow:none;
  }

  h1{
    font-size:20px;
  }

  h2{
    font-size:17px;
  }

  .top-image{
    max-height:135px;
  }

  .btn{
    min-width:108px;
    height:33px;
    font-size:13px;
  }
}
