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

/* Body & Background */
body {
  background-color: #f9f9f9;
  color: #333;
  line-height: 1.6;
}

/* Logo */
.logo {
  text-align: center;
  padding: 15px 0;
  background-color: #004080;
}

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

/* Running marquee */
.font-run {
  background-color: #ffcc00;
  overflow: hidden;
  height: 40px;
  display: flex;
  align-items: center;
}

.marquee p {
  white-space: nowrap;
  animation: marquee 20s linear infinite;
  font-size: 18px;
  color: #004080;
  padding-left: 100%;
}

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

/* Navigation */
.nav {
  background-color: #003366;
}

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

.nav > ul > li {
  position: relative;
  margin: 0 10px;
}

.nav a {
  display: block;
  padding: 15px 20px;
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s;
}

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

/* Dropdown submenu */
.nav li ul {
  display: none;
  position: absolute;
  background-color: #003366;
  top: 50px;
  left: 0;
  min-width: 180px;
  z-index: 1000;
  border-radius: 0 0 6px 6px;
}

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

.nav li ul li {
  margin: 0;
}

.nav li ul li a {
  padding: 10px 20px;
  font-weight: normal;
}

/* Header title */
.head2 {
  text-align: center;
  padding: 25px 15px;
  background-color: #e8e8e8;
  font-size: 16px;
  font-weight: 700;
  color: #004080;
  box-shadow: inset 0 -3px 6px -3px rgba(0,0,0,0.1);
}

/* Main container */
.container {
  max-width: 1200px;
  margin: 30px auto;
  display: flex;
  gap: 25px;
  padding: 0 15px;
}

/* Left box */
.box-left {
  flex: 1 1 300px;
  background-color: #fdf0e7;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 12px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
}

.box-left-search {
  padding: 12px 15px;
  font-size: 16px;
  border: 2px solid #004080;
  border-radius: 8px;
  margin-bottom: 20px;
  transition: border-color 0.3s;
}

.box-left-search:focus {
  outline: none;
  border-color: #ff6600;
}

/* Menu links on left */
.box-menu {
  background-color: #004080;
  color: white;
  padding: 12px 18px;
  margin-bottom: 15px;
  border-radius: 8px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.3s;
}

.box-menu:hover {
  background-color: #ff6600;
  color: white;
}

/* Right box */
.box-right {
  flex: 2 1 600px;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

/* Box item images */
.box-item img {
  width: 100%;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  object-fit: cover;
  height: 350px;
}

/* 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;
  }
}