
/* -------------------------------------------------- */
/* 🌑 พื้นหลังดำ + แสงวิ่ง */
/* -------------------------------------------------- */

body {
  margin: 0;
  background: #000;
  color: #fff;
  font-family: sans-serif;
  overflow-x: hidden;
  position: relative;
  padding-right: 10px;
}

/* แสงวิ่งพื้นหลัง */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: -150%;
  width: 150%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(0, 150, 255, 0) 0%,
    rgba(0, 150, 255, 0.15) 50%,
    rgba(0, 150, 255, 0) 100%
  );
  filter: blur(40px);
  animation: lightRun 6s linear infinite;
  pointer-events: none;
  z-index: -1;
}

@keyframes lightRun {
  0% { transform: translateX(-50%) skewX(-15deg); }
  100% { transform: translateX(150%) skewX(-15deg); }
}

/* -------------------------------------------------- */
/* ⭐ HEADER */
/* -------------------------------------------------- */

header {
  width: 100%;
  padding: 20px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  height: 60px;
}

/* ปุ่ม Header */
.buttons {
  display: flex;
  gap: 12px;
  flex-wrap: nowrap;
  padding-right: 350px;   /* 👈 เพิ่มช่องว่างจากขอบขวา */
}

header .buttons button {
  background: linear-gradient(45deg, #0099ff, #33ccff);
  border: none;
  padding: 18px 32px;
  border-radius: 12px;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  position: relative;
  overflow: hidden;

  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  box-shadow: 0 0 12px rgba(0,150,255,0.5);

      /* 🔥 ส่วนสำคัญป้องกันปุ่มย่อ */
  min-width: 180px;      /* บังคับให้ปุ่มไม่น้อยกว่านี้ */
  white-space: nowrap;   /* กันปุ่มขึ้นบรรทัดใหม่ */
  flex-shrink: 0;        /* กัน flex บีบตัว */
}

header .buttons button:hover {
  transform: translateY(-3px) scale(1.07);
  background: linear-gradient(45deg, #00aaff, #66ddff);
  box-shadow: 0 0 20px rgba(0,180,255,0.9), 0 0 35px rgba(0,160,255,1);
}

/* แสงวิ่งบนปุ่ม */
header .buttons button::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: rgba(255,255,255,0.45);
  filter: blur(8px);
  transform: skewX(-25deg);
  transition: 0.35s ease;
}
header .buttons button:hover::after { left: 140%; }

/* -------------------------------------------------- */
/* 🟦 ข้อความวิ่ง */
/* -------------------------------------------------- */

.mid-text {
  margin-left: 25px;
  margin-right: 25px;
  padding: 6px 14px;
  background: #ffffff;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
  display: flex;
  align-items: center;
  overflow: hidden;
  height: 32px;
}

.scroll-text {
  white-space: nowrap;
  padding-left: 100%;
  animation: scrollLeft 14s linear infinite;
  color: #000;
}

@keyframes scrollLeft {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* -------------------------------------------------- */
/* 🌟 เมนูโปร่งแสง */
/* -------------------------------------------------- */

.menu-bar {
  margin: 15px auto 25px;
  padding: 12px 22px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  max-width: 1200px;

  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.3);

  box-shadow:
    0 0 18px rgba(255, 255, 255, 0.2),
    inset 0 0 25px rgba(255, 255, 255, 0.08);
}

.menu-bar a {
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  font-weight: 700;
  padding: 6px 10px;
  transition: 0.25s ease;
}

.menu-bar a:hover {
  color: #00c3ff;
  text-shadow: 0 0 10px rgba(0,200,255,0.8);
}

/* -------------------------------------------------- */
/* 🌟 TB BOX (Glass) */
/* -------------------------------------------------- */

.tb-box {
  max-width: 1200px;
  margin: 40px auto;
  padding: 25px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(8px);
  box-shadow:
    0 0 18px rgba(255, 255, 255, 0.2),
    inset 0 0 25px rgba(255, 255, 255, 0.08);
}

.tb-box img {
  width: 70%;
  display: block;
  margin: 0 auto 25px auto;
  border-radius: 18px;
  box-shadow:
    0 0 22px rgba(255,255,255,0.15),
    inset 0 0 35px rgba(255,255,255,0.07);
}


.tb-box .tb-text {
  color: #ffffff;
  line-height: 1.7;
  font-size: 20px;
  text-align: justify;
}

.hl { color: #ff0000; font-weight: 700; }
.h4 { color: #ffffff; font-size: 17px; font-weight: 700; }
.h5 { color: #0ef706; font-size: 17px; font-weight: 700; }

.tb-title {
  text-align: center;
  font-size: 35px;
  font-weight: 700;
  color: #d6b15c;
  margin-top: 40px;
  margin-bottom: 35px;
}

.tb-title1 {
  text-align: center;
  font-size: 25px;
  font-weight: 700;
  color: #e7eb07;
  margin-top: 40px;
  margin-bottom: 35px;
}

.tb-title2 {
  text-align: center;
  font-size: 25px;
  font-weight: 700;
  color: #eb7507;
  margin-top: 40px;
  margin-bottom: 35px;
}



/* ========================= */
/* FOOTER แบบทอง-ดำ เหมือนในภาพ */
/* ========================= */

.footer {
  background: #000;
  padding: 60px 0 0;
  color: #fff;
  font-size: 16px;
}

.footer-container {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.footer-column h3 {
  color: #d6b15c;
  font-size: 22px;
  margin-bottom: 15px;
  font-weight: 700;
}

.footer-column ul {
  list-style: none;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column ul li::before {
  content: "✔ ";
  color: #d6b15c;
}

.footer-logo img {
  width: 140px;
  display: block;
  margin-bottom: 15px;
}

.footer-logo p {
  color: #fff;
  line-height: 1.6;
  font-size: 17px;
}

/* แถบล่างสีทอง */
.footer-bottom {
  margin-top: 50px;
  background: #c2a66d;
  padding: 12px;
  text-align: center;
  font-size: 16px;
  color: #000;
  font-weight: 600;
}
/* -------------------------------------------------- */
/* กรอบสไลเดอร์ */
.slider-container {
  position: relative;
  width: fit-content;  /* ← ให้กว้างตามรูปจริง */
  margin: 0 auto;
  overflow: hidden;
  border-radius: 15px;
}

/* แถวสไลด์ */
.slider {
  display: flex;
  transition: transform 0.5s ease;
}

/* แต่ละสไลด์ */
.slide {
  flex: 0 0 100%;               /* ← ให้กินเท่ากรอบ container */
  
  display: flex;
  justify-content: center;      /* ← จัดภาพให้อยู่ “กลาง” */
  align-items: center;          /* ← จัดกึ่งกลางแนวตั้ง */
}

.slide img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;               /* ← กันการเบี้ยว */
}

/* ปุ่ม */
.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  padding: 10px 15px;
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  font-size: 25px;
  cursor: pointer;
  border-radius: 8px;
  z-index: 999;
}

.prev { left: -50px; }   /* ← ถ้าภาพแคบเกินขยับออกข้างนอก */
.next { right: -50px; }

.prev:hover, .next:hover {
  background: rgba(255,255,255,0.4);
}


.prev { left: 10px; }
.next { right: 10px; }

/* มือถือ */
@media (max-width: 600px) {
  .prev, .next {
    font-size: 20px;
    padding: 8px 12px;
  }
}

/* -------------------------------------------------- */

/* -------------------------------------------------- */
/* ⭐ Responsive */
/* -------------------------------------------------- */

@media (max-width: 900px) {
  header {
    flex-direction: column;
    gap: 10px;
  }
  .buttons {
    justify-content: center;
    margin-right: 0;
  }
  .footer-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .menu-bar {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }
}




