/* Reset default styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* General layout */
body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', sans-serif;
  color: #333;
  background: linear-gradient(-45deg, #96bff5, #99ecc3, #bea7f3, #7d9df5);
  background-size: 400% 400%;
  animation: gradient 15s ease infinite;
}

@keyframes gradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

header {
  text-align: center;
  margin-bottom: 40px;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: #222;
}

p {
  font-size: 1rem;
  color: #555;
}

nav {
  margin-bottom: 30px;
}

nav ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  list-style: none;
  gap: 15px;
}

nav ul li a {
  text-decoration: none;
  color: #007BFF;
  padding: 8px 16px;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}

nav ul li a:hover {
  background-color: #e0f0ff;
}

section {
  max-width: 800px;
  margin: auto;
  padding: 20px;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.05);
}

section h2 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #111;
}

section h3 {
  margin-top: 30px;
  margin-bottom: 10px;
}

ul li {
  margin-bottom: 10px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px auto;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
}

.hero-img {
  width: 100%;
  max-height: 65vh;
  object-fit: cover;
  border-radius: 12px;
}

img:hover {
  transform: scale(1.02);
}

/* iframe (YouTube) styling */
iframe {
  width: 100%;
  max-width: 560px;
  height: 315px;
  display: block;
  margin: 30px auto;
  border-radius: 10px;
  box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

.container {
  background-color: rgba(255, 255, 255, 0.7); /* กล่องสีขาวโปร่งใส */
  padding: 2rem;
  margin: 4rem auto;
  max-width: 800px;
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px); /* เบลอพื้นหลังแบบแก้ว */
  text-align: center;
}

h1, h2, h3 {
  color: #1f2937;
  margin-bottom: 1rem;
  font-weight: 600;
}

p {
  color: #374151;
  line-height: 1.8;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
}

a:hover {
  text-decoration: underline;
}

ul, ol {
  list-style: none;
  padding-left: 0;
}
