/* เต็มจอ กลางพอดี และไม่ให้เลื่อน */
html,
body {
  height: 100%;
  margin: 0;
  overflow: hidden; /* ปิด scrollbar */
  font-family: system-ui, sans-serif;
}

/* พื้นหลังเต็มจอ (ใส่ได้ถ้ามี) */
/* body { background: #0b1530; } */

.firstPage {
  background-image: url("../image/main_bg.jpg");
  height: 100vh; /* สูงเท่าจอ */
  display: grid;
  grid-template-rows: 1fr auto; /* ภาพหลัก | ปุ่ม */
  justify-items: center;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
}

/* ภาพหลักกลางจอ */
.hero {
  width: min(800px, 92vw);
  display: grid;
  place-items: center;
}
.hero-image {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ปุ่มเรียงกลางจอ */
.cta {
  display: grid;
  grid-auto-flow: column;
  gap: clamp(12px, 3vw, 24px);
  align-items: center;
  justify-content: center;
}

/* .btn_main {
  display: inline-block;
  width: 280px;
  height: 80px;
  border: none;
  outline: none;
  background: url("../image/main_btn.png") center/cover no-repeat;
  cursor: pointer;
  transition: transform 0.2s, filter 0.2s;
}

.btn_main:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
} */

.btn_main,
.btn_signature {
  width: 180px; /* ความกว้างของปุ่ม */
  height: 40px; /* ความสูงของปุ่ม */
  border: none;
  outline: none;
  cursor: pointer;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover; /* ให้รูปครอบเต็มปุ่ม */
  border-radius: 10px; /* มุมโค้งนิดๆ */
  transition: transform 0.2s ease, filter 0.2s ease;
}

/* ภาพพื้นหลังของแต่ละปุ่ม */
.btn_main {
  background-image: url("../image/main_btn.png");
}
.btn_signature {
  background-image: url("../image/signature_btn.png");
}

/* เอฟเฟกต์ hover */
.btn_main:hover,
.btn_signature:hover {
  transform: translateY(-3px);
  filter: brightness(1.07);
}

/* จอเล็ก: วางปุ่มเป็นคอลัมน์ */
@media (max-width: 640px) {
  .cta {
    grid-auto-flow: row;
    width: 100%;
  }
  .btn_main,
  .btn_signature {
    width: min(92vw, 360px);
  }
  .btn_main,
  .btn_signature {
    width: 160px; /* ความกว้างของปุ่ม */
    height: 40px; /* ความสูงของปุ่ม */
position: relative;
    bottom: 100px;
  }
}
