/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Sarabun', sans-serif;
  line-height: 1.6;
  background-color: #f9f9f9;
  color: #333;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: auto;
  padding: 2rem;
}

.hero-background {
      position: fixed;
      top: 0; left: 0;
      width: 100%;
      height: 100%;
      z-index: -2;
      background-image: url("../img/con-bg.png");
      background-size: cover;
      background-position: center;
      
    }

    /* ชั้น overlay ด้านบน */
    .overlay {
      position: fixed;
      top: 0; left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.2); /* ปรับความมืด */
      z-index: -1;
    }

/* Contact Hero Section */
.contact-hero {
  padding: 4rem 2rem;
  /*background-color: #fff;*/
}

.contact-wrapper {
  display: flex;
  gap: 4rem;
  flex-wrap: wrap;
  justify-content: space-between;
}

/* Contact Info */
.contact-info {
  flex: 1;
  min-width: 280px;
}

.contact-info h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.contact-info ul {
  list-style: none;
}

.contact-info li {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.contact-info a {
  color: inherit;
  text-decoration: none;
}

.social-icons {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
}

.social-icons a {
  font-size: 1.5rem;
  color: #0d6efd;
  transition: color 0.3s ease;
}

.social-icons a:hover {
  color: #0056b3;
}

/* Contact Form */
.contact-form {
  flex: 1;
  min-width: 300px;
}

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
  width: 100%;
}

.contact-form button.btn-contact {
  padding: 0.75rem 1.5rem;
  background-color: #0d6efd;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact-form button.btn-contact:hover {
  background-color: #0056b3;
}

/* Responsive */
@media (max-width: 768px) {
  .contact-wrapper {
    flex-direction: column;
  }

  .contact-form,
  .contact-info {
    width: 100%;
  }
}

.navbar {

  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1000;
  transition: background-color 0.3s ease, color 0.3s ease; /* สีเริ่มต้น */
  background-color: #0d6efd; /* หรือสีพื้นฐานของคุณ */
}

/* เมื่อเลื่อนลง */
.sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  background-color: #bbeed9; /* เปลี่ยนเป็นสีที่คุณต้องการ */
  color: white;
}

.logo img {
  height: 90px;
}

/* Desktop Menu */
@media (min-width: 769px) {
  .nav-links {
    position: static !important;
    flex-direction: row !important;
    display: flex !important;
    background: transparent !important;
    box-shadow: none !important;
    gap: 2rem;
    padding: 0;
  }

  .nav-links li a {
    color: #333;
    font-size: 1rem;
    text-decoration: none;
    position: relative;
  }

  .nav-links li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    height: 2px;
    width: 0%;
    background: #00bfff;
    transition: width 0.3s ease-in-out;
  }

  .nav-links li a:hover::after {
    width: 100%;
  }
}

/* Mobile Menu */
#menu-toggle {
  display: none;
  z-index: 1001;
  font-size: 1.5rem;
}

.nav-links {
  position: absolute;
  top: 60px;
  left: 0;
  right: 0;
  background: #fff;
  flex-direction: column;
  display: none;
  padding: 1rem 2rem;
  z-index: 1000;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.nav-links.show {
  display: flex;
}

@media (max-width: 768px) {
  #menu-toggle {
    display: block;
    cursor: pointer;
  }
}

/* WeChat Popup */
.wechat-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.popup-content {
  background-color: white;
  padding: 2rem;
  border-radius: 10px;
  position: relative;
  max-width: 300px;
  text-align: center;
}

.popup-content img {
  max-width: 100%;
  margin-top: 1rem;
}

.popup-content h4 {
  margin-bottom: 1rem;
  color: #333;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
}

.close-button {
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 5px;
  background-color: #0d6efd;
  color: white;
  cursor: pointer;
  transition: background 0.3s ease;
}

.close-button:hover {
  background-color: #0056b3;
}

/* Footer */
.main-footer {
  background-color: #0d6efd;
  color: white;
  padding: 2rem 1rem;
  text-align: center;
}