* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: Arial, sans-serif; line-height: 1.6; }

.slider {
  width: 100%; height: 400px; overflow: hidden; position: relative;
}
.slider img {
  width: 100%; height: 400px; object-fit: cover;
  position: absolute; top: 0; left: 0; opacity: 0; transition: opacity 1s ease-in-out;
}
.slider img.active { opacity: 1; position: relative; }

.section { padding: 40px 20px; }
.section h1 {
  text-align: center; color: #1d8f2e; margin-bottom: 20px; text-transform: uppercase;
}
.section h2 {
  text-align: left; color: #1d8f2e; margin-bottom: 20px; text-transform: uppercase;
}
.product-box { max-width: 1000px; margin: auto; }

.two-column, .two-column-reverse {
  display: flex; gap: 20px; align-items: flex-start; margin-bottom: 40px;
}

.green-heading {
  color: #00b050; /* สีเขียวที่ใช้ใน APV */
  font-weight: bold;
}

.two-column .left, .image-right { flex: 0 0 30%; }
.two-column .right, .text-left { flex: 0 0 70%; }
.left img, .image-right img { width: 100%; height: auto; border-radius: 4px; }
.left, .text-left { border-left: 2px solid #00b050; padding-left: 20px; }
.left h4 { color: #00b050; margin-bottom: 5px; }
.right, .text-left { border-left: 2px solid #00b050; padding-left: 20px; }
.right h4 { color: #00b050; margin-bottom: 5px; }
.right h2, .text-left h2 { color: #333; margin-bottom: 10px; }
.right p, .text-left p { line-height: 1.6; color: #444; }
.text-left { border-right: 2px solid #00b050; padding-right: 20px; border-left: none; }

.header-top {
  display: flex; justify-content: space-between; align-items: center;
  margin-left: 20%; margin-right: 20%; padding: 10px 0; background-color: #ffffff;
}
.logo img { height: 40px; }
.social-icons button {
  border: 1px solid #ddd; background-color: #f7f7f7;
  margin-left: 8px; padding: 10px; border-radius: 4px; cursor: pointer; color: #888;
}

.nav-bar {
  background-color: #5b5b5b; padding: 10px 0;
}
.nav-bar ul {
  list-style: none; display: flex; gap: 25px; align-items: center;
  margin: 0; padding: 0; margin-left: 20%; margin-right: 20%;
}
.nav-bar ul li a {
  color: white; text-decoration: none; font-weight: bold; display: flex; align-items: center; gap: 6px;
}

.green-banner {
  background-image: url('../images/bg-section-1.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  padding: 60px 20px;
  text-align: center;
}

.banner-text {
  color: white;
  font-size: 24px;
  font-style: italic;
  font-weight: bold;
}

.open-house-section {
  padding: 40px 20px;
  text-align: center;
}

.open-house-section h1 {
  color: #00b050; /* สีเขียวแบบเดียวกับธีม NFLOW */
  font-size: 32px;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.open-house-image img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.open-house-detail {
  max-width: 1000px;
  margin: 40px auto;
  padding: 0 20px;
}

.open-house-detail h2 {
  color: #00b050;
  font-size: 24px;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.open-house-detail p {
  color: #444;
  line-height: 1.7;
  margin-bottom: 20px;
}

.apv-highlight {
  background-image: url('../images/bg-section-2.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  padding: 60px 20px;
  text-align: center;
  color: white;
}

.highlight-text {
  max-width: 1000px;
  margin: 0 auto;
  font-size: 20px;
  font-weight: bold;
  line-height: 1.6;
}

.cta-section {
  text-align: center;
  padding: 60px 20px;
}

.cta-lead {
  font-size: 20px;
  color: #333;
  margin-bottom: 20px;
}

.cta-text {
  font-size: 18px;
  color: #555;
  margin-bottom: 20px;
}

.cta-button {
  display: inline-block;
  background-color: #50c86f;
  color: white;
  font-weight: bold;
  padding: 12px 24px;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.cta-button:hover {
  background-color: #3da858;
}


.nav-bar ul li a:hover { text-decoration: underline; }

.footer-section {
  background-color: #10ac3d;
  color: white;
  font-family: 'Arial', sans-serif;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 40px 60px;
  margin: 0% 0% 0% 10%;
}

.footer-left, .footer-center, .footer-right {
  flex: 1;
  min-width: 250px;
  margin: 10px;
}

.footer-left h3,
.footer-center h3,
.footer-right h3 {
  font-weight: bold;
  margin-bottom: 15px;
}

.footer-left p,
.footer-center p,
.footer-right p {
  font-size: 16px;
  line-height: 1.6;
}

.info-image {
  width: 100%;
  max-width: 400px;
  border-radius: 30% 70% 60% 40% / 50% 30% 70% 50%;
  margin-top: 20px;
}

.line-qr {
  width: 120px;
  margin-top: 15px;
}

.footer-bottom {
  background-color: #555;
  text-align: center;
  padding: 15px 10px;
  color: #fff;
  font-size: 14px;
}

.footer-center i,
.footer-right i {
  margin-right: 8px;
  color: #fff;
}

.responsive-image-container {
  width: 100%;
  max-width: 800px;
  margin: 30px auto;
  padding: 0 15px;
  box-sizing: border-box;
}

.responsive-image-container img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px; /* ถ้าต้องการมุมมน */
}

.contact-section {
  padding: 40px 20px;
  background-color: #fff;
}

.contact-container {
  display: flex;
  flex-wrap: wrap;
  max-width: 100%;
  margin: 0 auto;
  gap: 30px;
}

.contact-left,
.contact-right {
  flex: 1 1 50%;
}

.contact-right {
  padding: 10px 20px;
}

.contact-right h3 {
  margin-top: 0;
  font-size: 1.4rem;
  color: #333;
}

.contact-right form {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
}

.contact-right label {
  margin-top: 12px;
  font-weight: 600;
  font-size: 14px;
}

.contact-right input,
.contact-right select,
.contact-right textarea {
  padding: 8px 12px;
  margin-top: 4px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.contact-right button {
  margin-top: 20px;
  padding: 10px;
  font-weight: bold;
  background-color: #00aaff;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.contact-right button:hover {
  background-color: #008ecc;
}

/* Base menu styling */
.nav-bar ul {
  list-style: none;
  display: flex;
  gap: 20px;
  padding: 0;
  margin: 10;
  flex-wrap: wrap;
}

.nav-bar ul li a {
  text-decoration: none;
  color: white;
}

/* Hamburger icon */
.hamburger {
  display: none;
  font-size: 24px;
  cursor: pointer;
  padding: 10px;
}

/* Responsive */
@media screen and (max-width: 768px) {
  .nav-bar ul {
    display: none;
    flex-direction: column;
    background-color: #0e864c;
    padding: 10px;
    margin: 0;
  }

  .nav-bar ul.active {
    display: flex;
  }

  .hamburger {
    display: block;
  }
}

@media (max-width: 768px) {
  .contact-left, .contact-right {
    flex: 1 1 100%;
  }
}

/* footer {
  background: #003f1f; color: #eee; text-align: center; padding: 20px; font-size: 14px;
} */