* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.curve-divider {
  line-height: 0;
  overflow: hidden;
  background: none;
}

.curve-divider svg {
  display: block;
  width: 100%;
  height: 60px;
}
.footer-banner {
  background: linear-gradient(to right, #1b4630, #2e8b57);
  padding: 40px 20px;
  text-align: center;
  color: #fff;
  margin-top: 80px;
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.05);
  border-top-left-radius: 40px;
  border-top-right-radius: 40px;
}



body {
  font-family: 'Roboto', sans-serif;
  background-color: #f9f9f9;
  color: #333;
  line-height: 1.6;
  overflow-x: hidden;
}

header {
  height: auto; /* allow it to grow */
  padding: 30px 0px 20px;
  background: linear-gradient(to right, #1b4630, #226b3d, #2e8b57);
  /* display: flex; */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: visible;
}

header::after {
  content: "";
  position: absolute;
  top: 0;
  left: -50%;
  width: 200%;
  height: 100%;
  background: linear-gradient(60deg, rgba(255,255,255,0.1) 0%, transparent 60%);
  transform: rotate(3deg);
  pointer-events: none;
}

header nav .container img {
  height: 60px;
  max-width: 80%;
  width: auto;
  margin-bottom: 10px
}

header nav .container img:hover {
transform: scale(1.05);
}

.container {
  /* height: auto; */
  margin-top: 30px;
  /* padding: 30px 0px 20px; */
  background: linear-gradient(to right, #1b4630, #226b3d, #2e8b57);
  /* display: flex; */
  /* flex-direction: column; */
  align-items: center;
  justify-content: center;
  /* position: relative; */
  /* overflow: visible; */
}

nav .container {
  display: flex;
  gap: 30px;
  margin-top: 50px;
  position: relative;
  z-index: 2;
  
}

/* Base nav link style */
nav .container a {
  position: relative;
  color: #ffffff;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  padding: 10px 18px;
  border-radius: 8px;
  transition: all 0.3s ease-in-out;
  z-index: 1;
  overflow: hidden;
}

nav .container a::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0%;
  height: 3px;
  background: #ffdd57;
  transition: all 0.4s ease;
  transform: translateX(-50%);
}

nav .container a:hover::before {
  width: 100%;
}
/* Global hover effect */
nav .container a:hover {
  color: #ffdd57;
  text-shadow: 0 0 10px #ffdd57, 0 0 20px #ffdd57;
  transform: scale(1.05);
}

/* Different background color per tab on hover */
nav .container a:nth-child(1):hover { background-color: #2e8b57; } /* Company */
nav .container a:nth-child(2):hover { background-color: #3fa77a; } /* Products */
nav .container a:nth-child(3):hover { background-color: #4cc48d; } /* Services */
nav .container a:nth-child(4):hover { background-color: #5ae1a0; } /* White Paper */
nav .container a:nth-child(5):hover { background-color: #6affb5; } /* Contact */


.menu-item {
  position: relative;
}

.menu-button {
  background: none;
  border: none;
  color: white;
  font-weight: bold;
  cursor: pointer;
  font-size: 16px;
}

.dropdown {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #1e1e24;
  border: 1px solid #555;
  border-radius: 5px;
  padding: 10px;
  z-index: 1000;
  min-width: 200px;
}

.dropdown a {
  color: #aaa;
  text-decoration: none;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}

.dropdown a:hover {
  background-color: #333;
  color: yellow;
}

.menu-item.active .dropdown {
  display: flex;
}




header nav>li {
  position: static;
  float: none;
}

/* header .header .menu-2 {
  
  background: #996512;
  box-shadow: 0 4px 5px 0 rgb(0 0 0 / .35);
  border: none;
  display: none;
  
} */

li {
  list-style: none; /* Bỏ dấu chấm */
}



/* .menu-2 {
  position: absolute;
  top: 100%;
  
  right: 0;
  left: -45%;
  margin-top: 20px;
  padding: 20px 0 10px;
  display: flex;
  width: 100vw;
  background: linear-gradient(to bottom, #26764c 0%, #093821 100%);
  color: white;
  padding: 20px 10px;
  font-family: Arial, sans-serif;
  z-index: 10000;
} */


.menu-2 {
  position: absolute;
  top: 100%; /* Dưới thẻ <a> trong nav */
  left: 0; /* Bắt đầu từ mép trái của nav/header */
  width: 100vw; /* Luôn rộng bằng màn hình */
  max-width: 100vw;
  padding: 50px 50px;
  background: #1b4630;
  display: flex;
  flex-wrap: wrap;
  box-sizing: border-box;
  z-index: 9999;
  color: white;
  list-style: none;
  margin: 0;
  overflow-x: auto;
  border-top: 1px solid rgba(255,255,255,0.1);
}



.menu-2 .main-content {
  flex: 1;
  padding: 0 15px;
}

.menu-2 ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu-2 h3.title {
  font-size: 16px;
  font-weight: bold;
  color: white;
  text-align: left;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.3);
  padding-bottom: 5px;
}

.menu-2 li.level-2 a {
  display: block;
  padding: 4px 0;
  text-decoration: none;
  color: white;
  font-size: 16px;
  transition: color 0.2s ease;
  align-items: center;
  justify-content: center;
}

.menu-2 li.level-2 a:hover {
  /* color: #a2ffce; */
  padding-left: 10px;
}

/* nav li.level-1 {
  position: relative;
} */

nav li.level-1 .menu-2 {
  margin-top: -1px;
}

nav li.level-1 .menu-2 {
  display: none; /* Ẩn mặc định */
}

nav li.level-1:hover .menu-2 {
  display: flex; /* Hiện khi hover */
}

.level-1.show-menu .menu-2 {
  display: flex;
}


/* .menu-2 li.level-2 a:hover {
  color: #ffcc66;
} */

.menu-2 h3.title {
  color: #333;
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 12px;
}


@media (max-width: 768px) {
  .menu-2 {
      flex-wrap: wrap;
  }

  .menu-2 .main-content {
      flex: 50%;
  }
}










.image-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin: 40px 0;
}

.image-gallery img {
  width: calc(33% - 20px);
  min-width: 280px;
  /*max-width: 100%;*/
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.image-gallery img:hover {
  transform: scale(1.05);
}

.hero {
  background: linear-gradient(135deg, #e8f5e9, #ffffff);
  padding: 100px 40px 60px;
  text-align: center;
  position: relative;
}

.hero h1 {
  font-size: 4rem;
  color: #226b3d;
  margin-bottom: 40px;
  background: linear-gradient(to right, #226b3d, #1f8249);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero img {
  width: 90%;
  max-width: 800px;
  border-radius: 16px;
  box-shadow: 0 25px 40px rgba(0, 0, 0, 0.15);
  transition: transform 0.4s ease;
}
.hero img:hover {
  transform: scale(1.03);
}
.section {
  padding: 60px 40px;
  max-width: 1200px;
  margin: auto;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.05); /* ← this is key */
  border-top: none;
  border-bottom: 1px solid #e0e0e0;
  position: relative;
  /* z-index: 2; */
}

.section:first-of-type {
  margin-top: 10px;
}

.section h2 {
  color: #226b3d;
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.section p {
  margin-bottom: 16px;
}

footer {
  background-color: #226b3d;
  color: #fff;
  text-align: center;
  padding: 25px;
  font-size: 14px;
  /* position:static;
  bottom: 0; */

}

footer a {
  color: #ffdd57;
  text-decoration: none;
}

@media (max-width: 768px) {
  header {
    flex-direction: column;
    gap: 15px;
  }

  .hero img {
    width: 90%;
  }

  nav {
    flex-wrap: wrap;
    justify-content: center;
  }
}

.footer-end {
  background: linear-gradient(to right, #1b4630, #2e8b57);
  padding: 20px 0;
  text-align: center;
  color: #fff;
  font-size: 14px;
  border-top-left-radius: 30px;
  border-top-right-radius: 30px;
  margin-top: 100px;
}

.hero h1, .hero img {
  animation: fadeInUp 1s ease-in-out;
}

/* Optional: Animate nav links */
nav a {
  transition: background-color 0.4s ease, transform 0.2s ease;
}

.tab-content {
  display: none;
}
.tab-content.active {
  display: block;
}
.tab-button.active {
  background-color: #0c6b3c;
  color: white;
}
.centered-images {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px; /* spacing between the images */
  margin-top: 20px;
}

.centered-images img {
  max-width: 90%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.image-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 20px;
  width: 100%;
}

.doc-img {
  max-width: 100%;
  height: auto;
  max-height: 1000px;
  box-shadow: 0 0 15px rgba(0,0,0,0.1);
  border-radius: 10px;
}

.doc-container {
  display: flex;
  flex-direction: column; /* or use row if you want side-by-side */
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 20px;
}

.doc-container img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0,0,0,0.1);
}



/* Subtab styles */
.subtab-btn {
    background-color: #fff;
    border: 2px solid #ccc;
    color: #1c4e2a;
    padding: 10px 16px;
    margin-right: 10px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 6px;
}

.subtab-btn:hover {
    background-color: #e0f7ea;
    border-color: #1c4e2a;
    color: #0f2d1a;
    transform: translateY(-2px);
}

.subtab-btn.active {
    background-color: #1c4e2a;
    color: white;
    border-color: #1c4e2a;
}

.tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  justify-content: center;
}

.tab-button {
  padding: 10px 20px;
  font-size: 16px;
  background-color: #f1f1f1;
  border: 2px solid #ccc;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #333;
}

.tab-button:hover {
  background-color: #e0e0e0;
  border-color: #999;
  color: #000;
}

.tab-button.active {
  background-color: #226b3d;
  color: white;
  border-color: #226b3d;
  box-shadow: 0 4px 10px rgba(0, 123, 255, 0.2);
}

/* Nội dung tab */
.tab-content {
  display: none;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.tab-content.active {
  display: block;
  opacity: 1;
}

/* Style hình ảnh cho đẹp hơn */
.doc-img,
.tab-content img {
  width: 100%;
  max-width: 600px;
  border-radius: 12px;
  margin: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Center hình nếu cần */
.centered-images,
.doc-container,
.image-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.section {
  padding: 50px 100px;
  max-width: 1200px;
  margin: auto;
}

.section h2 {
  text-align: center;
  font-size: 38px;
  margin: 30px 0;
  color: #226b3d;
}

section .tabstabs {
  display: flex;
  gap: 30px;
  margin-top: 10px;
  position: relative;
  z-index: 2;
}

/* Base section .tabstabs link style */
section .tabstabs button {
  position: relative;
  color: #ffffff;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  padding: 10px 18px;
  border-radius: 8px;
  transition: all 0.3s ease-in-out;
  z-index: 1;
  overflow: hidden;
}

section .tabstabs button::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0%;
  height: 3px;
  background: #ffdd57;
  transition: all 0.4s ease;
  transform: translateX(-50%);
}

section .tabstabs button:hover::before {
  width: 100%;
}
/* Global hover effect */
section .tabstabs button:hover {
  color: #ffdd57;
  text-shadow: 0 0 10px #ffdd57, 0 0 20px #ffdd57;
  transform: scale(1.05);
}

.centered-images img {
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  margin: 10px auto;
  border-radius: 12px;
  display: block;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}


.centered-images {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  height: 90%;
}


.sample-validation {
  max-width: 900px;
  /* margin: 40px auto; */
  font-family: 'Arial', sans-serif;
  color: #333;
  line-height: 1.6;
  padding: 0 20px;
}

.sample-validation h2 {
  font-size: 20px;
  margin-bottom: 16px;
}

.sample-validation p {
  margin-bottom: 20px;
}

.image-row {
  display: flex;
  gap: 50px;
  justify-content: center;
  align-items: flex-start;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.image-row img {
  max-width: 100%;
  width: 500px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.figure-caption {
  text-align: center;
  font-size: 14px;
  color: #555;
  margin-bottom: 30px;
}


.contact-section {
  max-width: 800px;
  margin: 60px auto;
  padding: 20px;
  font-family: 'Segoe UI', sans-serif;
  color: #222;
  animation: fadeIn 1s ease-in-out;
}

.contact-title {
  font-size: 32px;
  color: #1e5e3b;
  text-align: center;
  margin-bottom: 30px;
  animation: slideDown 0.6s ease-out;
}

.contact-subtitle {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 15px;
}

.contact-list {
  list-style: none;
  padding: 0;
}

.contact-list li {
  margin-bottom: 16px;
  line-height: 1.6;
}

.contact-list a {
  color: #1e5e3b;
  text-decoration: none;
  transition: color 0.3s ease, border-bottom 0.3s ease;
  border-bottom: 1px dashed transparent;
}

.contact-list a:hover {
  color: #0d3d2d;
  border-bottom: 1px dashed #0d3d2d;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}