/* รีเซ็ตพื้นฐาน */
 body {
    background-image: url('images/bg-pratunam.jpg'); /* เปลี่ยนเป็น path ภาพของคุณ */
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    font-family: 'Arial', sans-serif;
    color: #fff;
  }

/* เมนูเลื่อนอัตโนมัติ */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: white;
  padding: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  z-index: 999;
}
nav ul {
  display: flex;
  justify-content: center;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}
nav a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
  transition: color 0.3s;
}
nav a:hover {
  color: #008000;
}

/* ส่วนหัวแบบ Parallax */
header.parallax-header {
  background-image: url("images/header-bg.jpg");
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  padding: 60px 20px;
}
header h1, header p {
  text-shadow: 1px 1px 4px rgba(0,0,0,0.6);
}

/* ปุ่ม LINE แบบเด้ง */
button {
  background-color: #00c300;
  color: white;
  border: none;
  padding: 12px 24px;
  font-size: 16px;
  border-radius: 30px;
  cursor: pointer;
  animation: pulse 1.5s infinite;
}
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

/* ส่วนทั่วไป */
section {
  padding: 60px 20px;
  max-width: 1000px;
  margin: auto;
  animation: fadeIn 1s ease-in;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.room-box {
  width: 300px;
  height: 420px;
  background-color: #f9f9f9;
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  padding: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.room-box img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 8px;
}

.room-box p {
  margin-top: 10px;
  font-weight: bold;
  font-size: 16px;
}


/* แกลเลอรีคลิป */
.video-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}
.video-gallery a {
  text-align: center;
  width: 300px;
  text-decoration: none;
  color: #333;
}
.video-gallery img {
  width: 100%;
  border-radius: 10px;
  transition: transform 0.3s;
}
.video-gallery img:hover {
  transform: scale(1.05);
}

/* QR LINE */
img[alt="QR LINE"] {
  width: 200px;
  display: block;
  margin: 20px auto;
}

/* ส่วนท้าย */
footer {
  text-align: center;
  padding: 20px;
  background: #f0f0f0;
  font-size: 14px;
}
