body {
  background: #FFFAF8;
  color: #fff;
  font: 14px Arial, sans-serif;
  margin : 100px;
  display: flex;
  flex-direction: column;
  min-height: 100vh; /* Ensure the body takes the full viewport height */
}

p {
  color: #fff;
  line-height: 1.5;
}

#wrapper {
  width: 100%;
  margin: 20px auto;
  flex: 1; /* Allow the content to grow and push the footer down */
}

#tabs, #tabs2, #tabs3, #tabs4, #tabs5 {
  text-align: center;
  width: 90%;
  margin: 0 auto 40px;
}

#tabs {
  display: flex;
  justify-content: center; /* Center the tabs horizontally */
  gap: 50px; /* Tăng khoảng cách giữa các tab */
  margin-top: 50px;
}

#tabs li, #tabs2 li, #tabs3 li, #tabs4 li, #tabs5 li {
  display: inline-block;
}

#tabs li {
  list-style: none;
}

#tabs li a, #tabs2 li a, #tabs3 li a, #tabs4 li a, #tabs5 li a {
  padding: 17px 30px;
  color: #fff;
  text-decoration: none;
}

#tabs li a {
  padding: 10px 20px; /* Tăng padding để dễ bấm hơn */
  font-size: 1rem; /* Điều chỉnh kích thước chữ */
  background-color: #444; /* Background color for tabs */
  color: #fff; /* Text color */
  text-decoration: none; /* Remove underline */
  border-radius: 5px; /* Round the corners */
  transition: background-color 0.3s ease; /* Smooth hover effect */
  font-weight: bold; /* Make text bold */
}

#tabs li a:hover {
  background-color: #666; /* Change background color on hover */
}

#tabs li a.active {
  background-color: #666; /* Màu nền cho tab đang được chọn */
}

#tabs li:first-child a {
  color: #1e88e5; /* Pink for the first tab */
}

#tabs li:last-child a {
  color: #1e88e5; /* Blue for the second tab */
}

/* Styles for tab-1 */
#tabs li a#tab-1 {
  background-color: #444; /* Background color for tab-1 */
  color: #fff; /* Text color */
  padding: 10px 20px;
  font-size: 1rem;
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.3s ease;
  font-weight: bold;
}

#tabs li a#tab-1.active {
  background-color: #666; /* Active background color for tab-1 */
}

#tabs li a#tab-1:hover {
  background-color: #555; /* Hover background color for tab-1 */
}

/* Styles for tab-2 */
#tabs li a#tab-2 {
  background-color: #333; /* Background color for tab-2 */
  color: #fff; /* Text color */
  padding: 10px 20px;
  font-size: 1rem;
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.3s ease;
  font-weight: bold;
}

#tabs li a#tab-2.active {
  background-color: #555; /* Active background color for tab-2 */
}

#tabs li a#tab-2:hover {
  background-color: #444; /* Hover background color for tab-2 */
}

.tabulous_active {
  border-bottom: 1px solid #fff;
}

#tabs_container {
  display: flex; /* Use flexbox to align tabs horizontally */
  justify-content: space-between; /* Position tabs-1 and tabs-2 on opposite sides */
  align-items: center; /* Align content vertically in the center */
  gap: 20px; /* Add spacing between the tabs */
  padding: 20px;
  background-color: #333; /* Background color for the box */
  border-radius: 10px; /* Rounded corners for the box */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Add shadow for better visibility */
  width: 80%; /* Set the width of the box */
  margin: 0 auto; /* Center the box horizontally */
  position: absolute; /* Position the box in the middle of the screen */
  top: 50%; /* Center vertically */
  left: 50%; /* Center horizontally */
  transform: translate(-50%, -50%); /* Adjust for centering */
}

#tabs_container > div {
  flex: 1; /* Allow each tab content to take equal space */
  padding: 20px;
  background-color: #444; /* Background color for each tab */
  color: #fff;
  border-radius: 5px;
  text-align: center; /* Center text inside each tab */
  box-sizing: border-box;
}

#tabs_container > div h2 {
  margin-bottom: 15px;
}

#tabs_container > div p {
  line-height: 1.5;
}

.transition {
  transition: all 0.3s ease-in-out;
}

.make_transist {
  transition: all 0.3s ease-in-out;
}

.hideleft {
  transform: translateX(-100%);
  opacity: 0;
  transition: all 0.3s ease-in-out;
}

.showleft {
  transform: translateX(0);
  opacity: 1;
  transition: all 0.3s ease-in-out;
}

.tabulousclear {
  display: block;
  clear: both;
}

@media (max-width: 768px) {
  #tabs_container {
    flex-direction: column; /* Stack tabs vertically on smaller screens */
    align-items: center; /* Center align the tabs */
    width: 90%; /* Adjust width for smaller screens */
    padding: 20px;
  }

  #tabs_container > div {
    width: 100%; /* Make each tab take full width */
    margin-bottom: 10px; /* Add spacing between stacked tabs */
  }

  #tabs {
    flex-wrap: wrap; /* Cho phép các tab xuống dòng khi không đủ không gian */
    gap: 30px; /* Khoảng cách giữa các tab trên màn hình nhỏ */
  }

  #tabs li a {
    font-size: 0.9rem; /* Giảm kích thước chữ để phù hợp với màn hình nhỏ */
    padding: 8px 12px; /* Giảm padding để tránh chồng chéo */
    text-align: center; /* Căn giữa chữ trong tab */
  }

  /* Media queries for tab-1 */
  #tabs li a#tab-1 {
    font-size: 0.9rem;
    padding: 8px 12px;
  }

  /* Media queries for tab-2 */
  #tabs li a#tab-2 {
    font-size: 0.9rem;
    padding: 8px 12px;
  }
}

@media (max-width: 480px) {
  body {
    margin : 0px;
    width: 100%;
    position: relative;
  }

  .navbar-custom {
    position: absolute !important;
    width: 100% !important;
  }

  #wrapper {
    width: 100%;
    margin: 100px 0 0 0 !important;
    flex: 1; /* Allow the content to grow and push the footer down */
  }

  #tabs {
    gap: 20px; /* Khoảng cách giữa các tab */
  }

  #tabs ul {
    display: flex !important;
    padding-left:  0 !important;
    gap: 20px;;
  }

  #tabs li a {
    width: 100%; /* Đảm bảo tab chiếm toàn bộ chiều rộng */
    text-align: center; /* Căn giữa chữ trong tab */
    font-size: 12px !important;
  }

  #tabs li a {
    padding: 6px 10px; /* Reduce padding for smaller screens */
    font-size: 0.8rem; /* Giảm kích thước chữ hơn nữa cho màn hình rất nhỏ */
    flex: 0; /* Default state for tabs */
    transition: flex 0.3s ease; /* Smooth transition for flex changes */
  }

  #tabs li a.active {
    flex: 1; /* Expand when active */
  }

  #tabs_container > div {
    padding: 2x; /* Reduce padding inside each tab */
  }

  /* Media queries for tab-1 */
  #tabs li a#tab-1 {
    /* font-size: 0.8rem;
    padding: 6px 10px; */
  }

  /* Media queries for tab-2 */
  #tabs li a#tab-2 {
    /* margin-top: 20px;
    font-size: 0.8rem;
    padding: 6px 10px; */
  }

  .custom-footer {
    position: absolute !important;
    width: 100% !important;
    left: 0 !important;
  }
}

#dynamic-section section {
  display: none; /* Ẩn tất cả các section theo mặc định */
  justify-content: center; /* Center horizontally */
  align-items: center; /* Center vertically */
  flex-direction: column; /* Stack content vertically */
  text-align: center; /* Ensure text is centered */
  margin-top: 0px; /* Maintain spacing */
}

#dynamic-section section img {
  max-width: 100%; /* Ensure images are responsive */
  height: auto; /* Maintain aspect ratio */
}

#tabs-section {
  display: flex; /* Use flexbox for layout */
  justify-content: center; /* Center tabs horizontally */
  align-items: center; /* Align tabs vertically */
  background-color: #fff; /* Set background color to white */
  border-radius: 10px; /* Round the corners */
  padding: 10px 20px; /* Add padding inside the section */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Add a subtle shadow */
  margin: 0 auto 20px; /* Center the section and add spacing below */
  max-width: 1080px; /* Adjust width to fit the content */
  height:80px; /* Ensure height adjusts to content */
}

.footer-container {
  margin-top: 50px;
  width: cover; /* Ensure the footer spans the full width */
  display: block; /* Prevent unintended inline behavior */
  position: relative; /* Ensure it stays in the normal document flow */
  clear: both; /* Clear any floating elements above */
}

#footer-placeholder {
  background-color: #333 !important; /* Adjust as needed to match footer design */
  padding: 0;
  text-align: center; /* Ensure content is centered */
  width: 200%; /* Ensure it spans the full width */
  box-sizing: border-box; /* Include padding in width calculation */
}