
/* Reset และพื้นฐาน */
body {
  margin: 0;
  font-family: 'Arial', sans-serif;
  scroll-behavior: smooth;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: rem 2rem;
  background: #1e293b;
  color: #10b981;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 10;
}

.login-button {
    background-color: #0062ff;
    border: none;
    padding: 0.5rem 3rem;
    border-radius: 7px;
    color: white;
    cursor: pointer;
    margin-right: 2rem; /* เพิ่มบรรทัดนี้ */
}


/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(to bottom, #e0f7fa, #ffffff);
  padding-top: 50px;
  text-align: center;
}

.hero-content h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.start-button {
  font-size: 1.2rem;
  padding: 0.7rem 2rem;
  border: none;
  border-radius: 12px;
  background-color: #16a34a;
  color: white;
  cursor: pointer;
  transition: background 0.3s ease;
}

.start-button:hover {
  background-color: #209e4e;
}

/* Info section */
.info-section {
  padding: 5rem 2rem;
  background-color: #f9fafb;
  min-height: 100vh;
}

/* Parallax background */
.parallax-bg {
  background-image: url('https://images.unsplash.com/photo-1607746882042-944635dfe10e?auto=format&fit=crop&w=1500&q=80');
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  position: fixed; 
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: -1;
  opacity: 0.4;
  filter: brightness(0.7);
}



@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
.hero-content {
  animation: fadeUp 0.5s ease-out forwards;
}

.start-button {
  animation: fadeUp 1s ease-out forwards;
  animation-delay: 0.3s;
}
.info-section {
  animation: fadeUp 1s ease-out forwards;
  animation-delay: 0.6s;
}

/* ฟอนเท่ๆ */
body {
  margin: 0;
  font-family: 'Prompt', sans-serif;
  background-color: #f1f5f9;
  color: #1e293b;
}

/* Navbar เรียบ ๆ */
.navbar {
  background-color: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  width: 100%;
  z-index: 10;
}

/* ปุ่ม login */
.login-button {
  background-color: #10b981;
  color: white;
  padding: 0.5rem 1rem;
  border: none;
  font-family: 'Prompt', sans-serif;
  border-radius: 9px;
  font-size: 1rem;
  transition: background 0.3s ease;
  right: 1rem;
  left: 5rem;
  top: auto;
}
.login-button:hover {
  background-color: #10b981;
}

/* Hero section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(to bottom, #e0f2fe, #ffffff);
  padding: 2rem;
}
.hero-content h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #0f172a;
}
.start-button {
  background-color: #3b82f6;
  color: white;
  font-size: 1.2rem;
  padding: 0.75rem 2rem;
  border: none;
  font-family: 'Prompt', sans-serif;
  border-radius: 9999px;
  box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3);
  transition: background 0.3s ease, transform 0.2s ease;
}
.start-button:hover {
  background-color: #2563eb;
  transform: translateY(-2px);
}

/* ส่วนเนื้อหาเพิ่มเติม */
.info-section {
  padding: 5rem 2rem;
  background-color: white;
  max-width: 800px;
  margin: auto;
  border-radius: 1rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

/* Fade up animation */
@keyframes fadeUp {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

.hero-content, .start-button, .info-section {
  animation: fadeUp 1s ease-out;
}

.knowledge-section {
  padding: 4rem 2rem;
  background: #f7fafc;
  text-align: center;
}

.knowledge-section h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #1e293b;
}

.knowledge-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.knowledge-card {
  background: #fff;
  box-shadow: 0 4px 20px 0 rgba(30,41,59,0.07);
  border-radius: 20px;
  padding: 2rem 1.5rem;
  width: 250px;
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.2s;
  border: 1px solid #e2e8f0;
}

.knowledge-card:hover {
  box-shadow: 0 6px 32px 0 rgba(30,41,59,0.13);
  transform: translateY(-5px) scale(1.03);
}

.knowledge-card h3 {
  color: #10b981;
  margin-bottom: 0.8rem;
  font-size: 1.3rem;
}

.knowledge-card p {
  color: #334155;
  font-size: 1rem;
}

@media (max-width: 600px) {
  .knowledge-cards {
    flex-direction: column;
    gap: 1rem;
  }
  .knowledge-card {
    width: 100%;
  }
}

.hero-icon {
  color: #10b981;
  font-size: 70px;
  margin-bottom: 20px;
}
.hero-subtitle {
  font-size: 1.2rem;
  color: #334155;
  margin-bottom: 1.5rem;
}
.hero-btn {
  background: #347cf7;
  color: #fff;
  padding: 0.8rem 2.5rem;
  border-radius: 25px;
  font-size: 1.2rem;
  margin-top: 20px;
  box-shadow: 0 6px 24px rgba(52,124,247,0.13);
  border: none;
  cursor: pointer;
  transition: transform 0.2s;
}
.hero-btn:hover {
  transform: translateY(-3px) scale(1.04);
}

.hero {
  background: linear-gradient(135deg, #d9f6fd 0%, #e2fced 100%);
  /* หรือเพิ่ม effect bubble */
  position: relative;
  overflow: hidden;
}

.hero::before, .hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  opacity: 0.16;
}

.hero::before {
  width: 350px; height: 350px;
  left: 10vw; top: 10vh;
  background: #10b981;
  filter: blur(30px);
}
.hero::after {
  width: 280px; height: 280px;
  right: 8vw; bottom: 12vh;
  background: #38bdf8;
  filter: blur(24px);
}

.form-container {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  text-align: center;
}

form input,
form select,
form textarea,
form button {
  display: block;
  width: 100%;
  max-width: 100%;
  padding: 8px 12px;
  font-size: 0.9rem;
  border: 2px solid #10b981;
  border-radius: 6px;
  margin: 10px auto;
  box-sizing: border-box;
}

form input:focus,
form select:focus {
  outline: none;
  border-color: #059669;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

form button {
  background-color: #3b82f6;
  color: white;
  font-weight: bold;
  padding: 10px 0;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s ease;
}

form button:hover {
  background-color: #2563eb;
}

