* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Sarabun', sans-serif;
}

body {
  background: #f9f9f9;
  line-height: 1.6;
}

.logo {
  text-align: center;
  padding: 10px;
}

.logo img {
  max-width: 100%;
  height: auto;
}

/* 2. Marquee running text */
.font-run {
  background: #006699;
  color: #fff;
  padding: 5px 0;
}

.marquee p {
  white-space: nowrap;
  overflow: hidden;
  animation: marquee 15s linear infinite;
}

@keyframes marquee {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* 3. Navigation bar */
.nav ul {
  list-style: none;
  background: #003366;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.nav li {
  position: relative;
}

.nav a {
  display: block;
  padding: 15px 20px;
  text-decoration: none;
  color: #fff;
}

.nav li ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #003366;
}

.nav li:hover ul {
  display: block;
}

.nav li ul li a {
  padding: 10px 20px;
}

/* 4. Header title */
.head2 {
  text-align: center;
  padding: 20px;
  background: #e0e0e0;
}

.head2 h1 {
  font-size: 24px;
}
   body {
  font-family: "Tahoma", sans-serif;
  background: #f5f6fa;
  margin: 0;
  padding: 0;
}

.form-container {
  max-width: 900px;
  margin: 50px auto;
  background: #ffffff;
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.form-container h2 {
  text-align: center;
  color: #2c3e50;
  margin-bottom: 20px;
}

.google-form {
  width: 100%;
  height: 700px; /* ปรับความสูงให้พอดี */
  border: none;
  border-radius: 10px;
}


/* 8. Footer */
footer {
  background: #333;
  color: #fff;
  margin-top: 50px;
  padding: 20px 0;
}

.footer-top-con {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
}

.footer-top-item {
  flex: 1;
  min-width: 250px;
  margin: 10px;
}

.footer-top-item h6 {
  font-size: 18px;
  margin-bottom: 10px;
}

.footer-top-item p {
  margin-bottom: 5px;
}

.footer-top-item iframe {
  width: 100%;
  max-width: 600px;
  height: 300px;
  border: none;
}

/* 9. Responsive adjustments */
@media (max-width: 768px) {
  .nav ul {
    flex-direction: column;
  }

  .footer-top-con {
    flex-direction: column;
    align-items: center;
  }
}
@media (max-width: 768px) {
  .container {
    flex-direction: column;
  }

  .box-left {
    order: 2;
    width: 100%;
    max-width: 100%;
  }

  .box-right {
    order: 1;
    width: 100%;
  }

  .box-item {
    grid-template-columns: 1fr; /* แสดงทีละรูปเต็มจอ */
  }
}
.box-item {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 10px;
}

@media (max-width: 768px) {
  .box-item {
    grid-template-columns: 1fr; /* มือถือ: เรียงลงทีละรูป */
  }
}