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

/* 1. Body & background */
body {
  background: #f9f9f9;
  line-height: 1.6;
}

/* 2. Logo */
.logo {
  text-align: center;
  background: #fff;
  padding: 10px 0;
  border-bottom: 3px solid #fcdd46;
}

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

/* 3. Running text marquee */
.font-run {
  background: #fcdd46;
  color: #002060;
  overflow: hidden;
}

.marquee p {
  display: inline-block;
  white-space: nowrap;
  animation: marquee 20s linear infinite;
  font-size: 20px;
  padding: 10px 0;
}

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

/* 4. 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;
  color: #fff;
  text-decoration: none;
  transition: background 0.3s;
}

.nav a:hover {
  background: #0055a5;
}

.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;
}

/* 5. Page title header */
.head2 {
  text-align: center;
  padding: 20px;
  background: #e0e0e0;
}

.head2 h1 {
  font-size: 26px;
  color: #003366;
}

/* 6. Container layout */
.container {
  display: flex;
  flex-wrap: wrap;
  padding: 20px;
  gap: 20px;
}

/* 7. Box-left menu */
.box-left {
  flex: 0 0 250px;
  background: #fcdd46;
  padding: 15px;
  border-radius: 10px;
}

.box-left-search {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.box-menu {
  display: block;
  background: #003366;
  color: #fff;
  padding: 10px;
  margin-bottom: 10px;
  text-decoration: none;
  border-radius: 5px;
  text-align: center;
  transition: background 0.3s;
}

.box-menu:hover {
  background: #0055a5;
}

/* 8. Box-right images (single column) */
.box-right {
  flex: 1;
}

.box-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.box-item img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid #ccc;
}

/* 9. Footer */
footer {
  background: #003366;
  color: #fff;
  margin-top: 50px;
  padding: 30px 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: 400px;
  height: 250px;
  border: none;
  border-radius: 10px;
}

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

  .container {
    flex-direction: column;
  }

  .box-left {
    order: 2; /* เมนูมาอยู่ด้านล่างในมือถือ */
  }

  .box-right {
    order: 1;
  }

  .footer-top-con {
    flex-direction: column;
    align-items: center;
  }
}