/* ตั้งค่าทั่วไป */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Kanit', sans-serif;
  background: linear-gradient(135deg, #fff7e6, #ffe6f0);
  color: #333;
  line-height: 1.6;
}

/* ส่วนหัว */
.hero {
  background: linear-gradient(135deg, #fcd5ce, #ffafcc);
  text-align: center;
  padding: 3rem 1rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.hero-content h1 {
  font-size: 3rem;
  color: #7f4f24;
  animation: fadeInDown 1s ease-in-out;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: #5a3e36;
}

.hero-content img {
  max-width: 90%;
  height: auto;
  border-radius: 20px;
  margin: 1rem 0;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  opacity: 0.6; /* ปรับความจางของภาพ */
}

/* ลิงก์ */
.hero-content a {
  display: block;
  background-color: #03f7ff83;
  color: #fff;
  text-decoration: none;
  padding: 0.8rem;
  margin: 0.8rem auto;
  width: 400px;
  border-radius: 30px;
  box-shadow: 5px 5px 5px #aeafaf;
  transition: background-color 0.3s ease, transform 0.2s ease;
  font-weight: bold;
}

.hero-content a:hover {
  background-color: #004ffbb9;
  transform: scale(1.05);
}

/* ส่วนท้าย */
footer {
  background-color: #ffcad4;
  text-align: center;
  padding: 1rem;
  margin-top: 2rem;
  font-size: 0.9rem;
  color: #5a3e36;
}

/* Animation */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.2rem;
  }

  .hero-content a {
    width: 80%;
  }

  .hero-content img {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 1.8rem;
  }

  .hero-content p {
    font-size: 1rem;
  }
}
