/* ---------- RESET ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Kanit', sans-serif;
  background: #f8f8f8;
  color: #333;
  text-align: center;
  line-height: 1.6;
}

/* ---------- HEADER ---------- */
header {
  padding: 50px 20px 20px;
}

header h1 {
  font-weight: 600;
  font-size: 2.2rem;
  color: #e53935;
}

header .subtitle {
  color: #777;
  font-weight: 300;
  margin-top: 5px;
}

/* ---------- SECTION ---------- */
section {
  margin: 50px 0;
}

h2 {
  font-weight: 500;
  color: #444;
  margin-bottom: 20px;
}

/* ---------- ONLINE ---------- */
.card {
  display: inline-block;
  background: #fff;
  padding: 30px 50px;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.card h2 {
  color: #e53935;
}

.card p {
  font-size: 1.5rem;
  margin-top: 10px;
  color: #222;
}

/* ---------- SLIDER (Auto + Dots Inside Image) ---------- */
.slider {
  position: relative;
  width: 80%;
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid #ddd;
  background: #000;
}

.slides {
  display: flex;
  transition: transform 0.8s ease;
}

.slides img {
  width: 100%;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 12px;
}

/* จุด indicator (อยู่ในภาพ) */
.dots {
  position: absolute;
  bottom: 15px; /* ขยับขึ้นมาในภาพ */
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  z-index: 2;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.dot.active {
  background: #e53935;
  transform: scale(1.3);
}


/* ปุ่มซ้ายขวา */
.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
  border: none;
  font-size: 1.5rem;
  padding: 10px 14px;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.2s ease;
  z-index: 2;
}

.nav-btn:hover {
  background: rgba(0, 0, 0, 0.5);
}

.prev { left: 15px; }
.next { right: 15px; }

/* ---------- VIDEO ---------- */
.video-section {
  background: #fff;
  padding: 40px 0;
}

.video-box iframe {
  width: 80%;
  max-width: 800px;
  height: 450px;
  border-radius: 16px;
  border: none;
  box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

/* ---------- FOOTER ---------- */
footer {
  padding: 20px;
  color: #888;
  font-size: 0.9em;
  background: #fafafa;
  border-top: 1px solid #eee;
}
/* ---------- FOOTER FIX ---------- */
html, body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

footer {
  margin-top: auto;
  padding: 20px;
  color: #888;
  font-size: 0.9em;
  background: #fafafa;
  border-top: 1px solid #eee;
}
