
html, body {
  width: 100%;
  overflow-x: hidden;
}

/* Base styles for the body */
body {
    margin: 0;
    font-family: "Chakra Petch", sans-serif;
    font-weight: 400;
  }
  
  /* Main content area, offset by the fixed top bar */
  main {
    margin-top: 120px;
  }
  
  /* Fixed top navigation bar */
  .top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: #f8f8f8; /* Navy background */
    color: #0e195c;
    padding: 25px 40px; /* Spacing around content */
    z-index: 999; /* Ensure it stays on top */
    display: flex; /* Enable flexbox for layout */
    align-items: center; /* Vertically center items */
    justify-content: space-between; /* Space out logo/text and buttons */
  }

  .container-top-bar{
    display: flex;
    flex-direction: row;
    align-items: center;
  }
  
  /* Container for logo and main heading */
  .top-bar-1 {
    display: flex; /* Arrange logo and text in a row */
    align-items: center; /* Vertically align logo and text */
    gap: 30px; /* Space between logo and text */
  }
  
  /* Logo image styles */
  .top-bar-1 img {
    height: 70px;
  }
  
  /* Main heading text styles */
  .top-bar-1 h1 {
    margin: 0;
    font-size: 40px;
  }

  .top-bar-2{
    display: flex; /* Arrange logo and text in a row */
    align-items: center; /* Vertically align logo and text */
    gap: 30px;
  }
  
  /* Button styles in the top bar */
  .btn {
    border: none;
    color: #0e195c;
    background-color: transparent; /* No background */
    font-size: 16px;
    padding: 5px 8px; /* Comfortable touch area */
    cursor: pointer; /* Indicate interactiveness */
  }

  .dropdown {
    position: relative;
    display: inline-block;
  }
  
  .dropdown-content {
    display: none;
    position: absolute;
    
    background-color: #0e195c;
    right: 0;
    overflow: auto;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
  }
  
  .dropdown-content button {
    color: #f8f8f8;
    padding: 12px 16px;
    border: none;
    width: 120px;
    text-align: left;
  }
  
  .dropdown-content button:hover {background-color: #608bc1;}

  .dropdown:hover .dropdown-content {display: block;}

  .dropdown:hover .dropbtn {background-color: #f8f8f8;}

  .icon {
    width: 20px;
    height: 2px;
    background-color: #0e195c;
    margin: 6px 0;
  }

  /* Slideshow styles */
.slideshow-container {
  position: relative;
  width: 100%; /* Make slideshow container width 100% of main */
  max-width: 100%; /* Limit the maximum width of the slideshow */
  overflow: hidden;
}

.slide {
  display: none;
  width: 100%;
}

.slide img { 
  width: 100%;
  height: 450px;
  object-fit: cover;
}

.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  margin-top: -22px;
  padding: 16px;
  color: #f8f8f8;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
}

/* Position the "next button" to the right */
.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover, .next:hover {
  background-color: rgba(0,0,0,0.8);
}

.dot-container {
  text-align: center;
  background-color: transparent;
}

.dot {
  cursor: pointer;
  height: 5px; /* Reduced size of dots */
  width: 5px;
  margin: 0 5px; /* Increased margin between dots */
  background-color: #666;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.active, .dot:hover {
  background-color: #717171;
}

.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

@keyframes fade {
  from {opacity: .4}
  to {opacity: 1}
}

.container-section-1{
  display: flex;
  justify-content: center;
  width: 100%;
}

.container-timeline {
  display: flex;
  justify-content: space-around;
  position: relative;
  margin: 90px 0;
  gap: 20px;
}

.container-timeline::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 2%;
  right: 2%;
  height: 4px;
  background: #c5c5c5;
  z-index: 0;
}

.timeline-box {
  text-align: center;
  position: relative;
  z-index: 1;
  width: 180px;
  padding: 0 10px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.timeline-box .text {
  font-size: 14px;
  margin-top: 8px;
  color: #333;
  line-height: 1.6;
  font-weight: 400;
}

.icon-t {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #0e195c;
  color: #f8f8f8;
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  z-index: 2;
}

.line {
  width: 4px;
  height: 40px;
  background-color: #c5c5c5;
  margin: 0 auto;
}

.year {
  font-weight: 800;
  font-size: 18px;
  margin-top: 8px;
  color: black;
}

.text {
  font-size: 15px;
  margin-top: 4px;
  color: #444;
}

/* Optional: Different colors per year */
.year-2016 .icon-t { background-color: #0e195c; }
.year-2017 .icon-t { background-color: #69BBc9; }
.year-2018 .icon-t { background-color: #666; }
.year-2019 .icon-t { background-color: #69BBc9; }
.year-2020 .icon-t { background-color: #608bc1; }

.timeline-box:nth-child(odd) {
  transform: translateY(75px); /* กล่องล่าง */
}

.year-2017{
  transform: translateY(-25px);
}

.year-2019{
  transform: translateY(-75px);
}

.container-section-2{
  display: flex;
  flex-direction: row;
  gap: 20px;
}

.container-section-2-l{
  max-width: 50%;
}

.company-info {
  display: flex;
  flex-direction: column; /* Stack image and text */
  align-items: center; /* Center horizontally */
  text-align: center; /* Center text within */
  padding: 20px;
  border: 1px solid #f8f8f8;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  margin-left: 50px;
}

.company-info p{
  font-size: 18px;
  font-weight: 500;
  color: #0e195c;
}

.company-info h3{
  font-size: 22px;
  color: #0e195c;
}

.chart-container{
  justify-content: center;
  max-width: 100%;
}

#chart {
  width: 700px;
  height: 500px;
}

.container-section-3{
  display: flex;
  justify-content: center;
}

.business-philosophy {
  text-align: center;
  margin-top: 20px;
}

.business-philosophy h2 {
  font-size: 38px;
  font-weight: bold;
  margin-bottom: 40px;
  color: #0e195c;
}

.philosophy-grid {
  display: flex;
  gap: 25px;
  justify-items: center;
  align-items: center;
}

.philosophy-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 250px;
  text-align: center;
}

.philosophy-item img {
  width: 50%;
  margin-bottom: 20px;
}

.philosophy-item h3 {
  font-size: 20px;
  font-weight: 500;
  color: #0e195c;
}

.philosophy-item p {
  font-size: 14px;
  font-weight: 500;
  color: #666;
  margin-top: 0;
}

.philosophy-item .number {
  font-size: 30px;
  font-weight: bold;
  color: #608bc1;
  margin-right: 10px;
  display: block;
}

.container-section-4 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 50px;
  margin-bottom: 60px;
  gap: 40px;
}

.section-4-left {
  flex: 1;
  max-width: 50%;
  margin-left: 200px;
}

.section-4-title {
  position: relative;
  display: inline-block;
  margin-bottom: 30px;
}

.highlight-bar-1 {
  position: absolute;
  width: 90%;
  height: 20px;
  background-color: #608bc1;
  left: 0;
  z-index: 0;
}

.section-4-title h2 {
  font-size: 32px;
  font-weight: bold;
  color: #0e195c;
  line-height: 1.3;
  position: relative;
  z-index: 1;
  margin: 0;
  top: 30px;
}

.feature-box {
  margin-top: 1%;
  border: 2px solid #0e195c;
  padding: 15px 20px;
  border-radius: 10px;
  max-width: 400px;
}

.feature-title {
  font-weight: bold;
  font-size: 18px;
  margin: 0;
  color: #608bc1;
}

.feature-box ul {
  list-style: none;
  margin: 0;
}

.feature-box li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 20px;
  color: #608bc1;
  font-size: 14px;
}

.feature-box li::before {
  content: "•";
  color: #608bc1;
  position: absolute;
  left: 0;
  font-size: 18px;
  top: 0;
}

.section-4-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-items: center;
  margin-left: 100px;
  margin-top: 0;
}

.section-4-right img {
  width: 80%;
  max-width: 400px;
  height: auto;
}

.section-4-label {
  font-size: 12px;
  color: #608bc1;
  text-align: left;
}

.highlight-bar-2 {
  width: 10px;
  height: 30px; 
  background-color: #608bc1;
}

.section-4-label-container {
  display: flex;
  align-items: center;
  margin-top: 10px;
  gap: 10px;
}

.container-section-5 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}

.section-5-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-items: center;
  margin-left: 200px;
  margin-top: 0;
}

.section-5-left img {
  width: 80%;
  max-width: 400px;
  height: auto;
}

.section-5-label-container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
}

.section-5-label {
  font-size: 12px;
  color: #608bc1;
  text-align: left;
}

.section-5-right {
  flex: 1;
  max-width: 50%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.section-5-title {
  position: relative;
  display: inline-block;
  margin-bottom: 30px;
}

.section-5-title h2 {
  font-size: 32px;
  font-weight: bold;
  color: #0e195c;
  line-height: 1.3;
  position: relative;
  z-index: 1;
  margin: 0;
  top: 30px;
}

.findmore-btn {
  padding: 10px 20px;
  background-color: #f8f8f8;
  border: #0e195c;
  color: #608bc1;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
  margin: 10px 0;
  width: 200px;
}

.findmore-btn:hover {
  background-color: #ccc;
}


.container-section-6 {
  text-align: center;
  background-color: #fff;
  margin-top: 20px;
}

.section-6-title {
  font-size: 48px;
  font-weight: bold;
  color: #0e195c;
  letter-spacing: 5px;
  -webkit-text-stroke: 1.5px #0e195c;
  color: transparent;
}

.qc-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 200px;
}

.qc-item {
  display: flex;
  flex-direction: column;
  align-items: center;   /* ตรงนี้ช่วยให้ข้อความอยู่กลางแนวนอน */
  text-align: center;
  max-width: 300px;      /* เพิ่มเพื่อไม่ให้ข้อความยาวเกิน */
}

.qc-item img {
  width: 100%;
  max-height: 300px;
  object-fit: contain;
}

.qc-label {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center; /* ทำให้ข้อความและแถบอยู่ตรงกลางพอดี */
  margin-top: 10px;
  font-size: 16px;
  color: #608bc1;
  line-height: 1.4;
  text-align: left;
}

.highlight-bar-4 {
  width: 6px;
  height: 40px;
  background-color: #608bc1;
  margin-right: 8px;
}

.container-section-7 {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 50px;
}

.hexagon-row {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.hexagon-row.offset {
  transform: translateY(-20px);
  margin-top: 30px;
}

.hexagon {
  width: 190px;
  height: 190px;
  background-color: #ccc;
  clip-path: polygon(0% 25%, 50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%);
  background-size: cover;
  background-position: center;
  transition: transform 0.3s ease-in-out;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hexagon:hover {
  transform: scale(1.1);
}

.hexagon-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #f8f8f8;
  font-weight: bold;
  font-size: 12px;
  text-align: center;
  pointer-events: none;
  letter-spacing: 2px;
  white-space: nowrap;
}

.container-section-8 {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.container-section-8 .hexagon {
  width: 250px;
  height: 250px;
}

.hexagon-before{
  gap: 20px;
  display: flex;
  justify-content: center;
}

.hexagon-after{
  gap: 20px;
  display: flex;
  justify-content: center;
}

.container-section-9 {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.map-container {
  position: relative;
  max-width: 1200px;
  margin: auto;
}

.map-container img {
  width: 100%;
  display: block;
}

.pin {
  position: absolute;
  transform: translate(-50%, -50%);
  cursor: pointer;
  color: #0e195c;
  font-size: 24px;
}

.pin i {
  width: 30px;
  transition: transform 0.3s ease;
}

.pin:hover i {
  transform: scale(1.6);
  z-index: 2;
}

.pin p {
  font-size: 14px;
  font-weight: 600;
  margin: 0px;
}

/* Tooltip */
.tooltip {
  position: absolute;
  background: rgba(13, 25, 120, 0.679);
  color: #fff;
  padding: 6px 10px;
  border-radius: 5px;
  font-size: 14px;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, -120%);
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.pin:hover .tooltip {
  opacity: 1;
}

/* ตำแหน่งของหมุดบนภาพ */
.us       { top: 21%; left: 16%; }
.germany  { top: 23%; left: 47.5%; }
.israel   { top: 34%; left: 55.5%; }
.vietnam  { top: 41%; left: 77%; }
.japan    { top: 32%; left: 85%; }
.thailand { top: 48%; left: 76.5%; }


.title-section-9 {
  display: flex;
  align-items: center;
  font-size: 38px;
  font-weight: bold;
  color: #0e195c; /* or #007b00 for stronger green */
  border-bottom: 2px solid #0e195c;
  padding-bottom: 8px;
  margin-bottom: 20px;
}

.title-line {
  width: 24px;
  height: 24px;
  margin-right: 10px;
}

.goback-btn {
  padding: 10px 20px;
  background-color: #0e195c;
  color: #f8f8f8;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
  margin: 10px 0;
  width: 200px;
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  background-color: #608bc1;
  color: #f8f8f8;
  padding: 40px 60px;
  font-family: 'Chakra Petch', sans-serif;
  flex-wrap: wrap;
}

.footer-left,
.footer-right {
  max-width: 50%;
}

.footer-left h2 {
  font-size: 30px;
  margin: 10px 0;
  font-weight: bold;
}

.footer-left p {
  margin: 5px 0;
  font-size: 14px;
}

.footer-logo {
  height: 80px;
}

.footer-btn {
  padding: 10px 20px;
  background-color: #f8f8f8;
  color: #608bc1;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
  margin: 10px 0;
}

.footer-btn:hover {
  background-color: #ccc;
}

.bg-contact{
  display: flex;
  max-width: 100%;
  height: 1000px;
  background-color: #ccc;
}



@media (max-width:1370px){
  .qc-container {
    gap: 50px;
  }
}

@media (max-width: 1200px) {

  .container-section-2{
    flex-direction: column;
  }

  .container-section-2-l{
    max-width: 100%;
  }
  
  .container-section-2-r{
    max-width: 100%;
  }

  .company-info {
    margin-left: 0px;
    margin: 5px;
    max-width: 100%;
  }

  #chart {
    margin-left: 0px;
    width: 100%;
    height: 300px;
  }
 

  .section-4-left {
    margin-left: 50px;
  }

  .section-5-left {
    margin-left: 50px;
  }

  .qc-container {
    gap: 50px;
  }

  .hexagon {
    width: 177px;
    height: 177px;
  }

  .container-section-8 .hexagon {
    width: 175px;
    height: 175px;
  }
}

@media (max-width: 1070px) {
  .container-timeline {
    gap: 0px;
  }

  .timeline-box {
    width: 140px;
    padding: 0px;
  }

  .timeline-box:nth-child(odd) {
    transform: translateY(100px); /* กล่องล่าง */
  }
  
  .year-2017{
    transform: translateY(-25px);
  }
  
  .year-2019{
    transform: translateY(-95px);
  }
}

@media (max-width: 600px) {

  .top-bar {
    flex-direction: column;
    align-items: flex-start;
    padding: 15px 20px;
  }

  .top-bar-1 img {
    height: 40px;
  }

  .top-bar-1 h1 {
    font-size: 30px;
  }

  .top-bar-2{
    margin-top: 10px;
  }

  .slide img { 
    height: 200px;
  }

  .container-section-1 {
    width: 100%;
  }

  .container-timeline {
    flex-direction: column;
    margin: 10px;
  }

  .timeline-box {
    flex-direction: row;
    width: 100%;
    height: auto;
    max-width: 100%;
    padding: 0;
    box-sizing: border-box;
    text-align: center;
    align-items: center;
  }
  
  .timeline-box:nth-child(odd) {
    transform: translateY(0px); /* กล่องล่าง */
  }
  
  .year-2017{
    transform: translateY(0px);
  }
  
  .year-2019{
    transform: translateY(0px);
  }

  .line{
    width: 4px;
    height: 20px;
  }

  .container-timeline::before {
    visibility: hidden;
  }

  .business-philosophy h2 {
    font-size: 26px;
  }

  .philosophy-grid {
    flex-direction: column;
    gap: 10px;
  }

  .philosophy-item img {
    width: 40%;
    margin-bottom: 0px;
  }

  .philosophy-item h3 {
    margin: 0;
  }

  .container-section-4 {
    gap: 0px;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
  }

  .section-4-left {
    margin-left: 20px;
    max-width: 100%;
    width: 100%;
  }

  .section-4-title {
    margin-bottom: 10px;
  }

  .section-4-right {
    margin-left: 0px;
    align-items: center;
    max-width: 100%;
  }

  .container-section-5 {
    gap: 0px;
    flex-direction: column;
    align-items: center;
  }

  .section-5-right {
    margin: 5px;
    max-width: 100%;
    order: 1;
  }

  .section-5-title {
    margin-bottom: 10px;
  }

  .section-5-left {
    margin-left: 0px;
    align-items: center;
    order: 2;
  }
  
  .feature-box {
    margin-top: 35px;
  }

  .section-6-title {
    font-size: 40px;
  }

  .container-section-6 {
    margin: 5px;
    max-width: 100%;
  }

  .container-section-7 {
    margin-top: 10px;
    flex-direction: row;
    justify-content: center;
  }

  .qc-container {
    gap: 20px;
  }

  .hexagon-row {
    gap: 10px;
    flex-direction: column;
  }

  .hexagon-row.offset {
    flex-direction: column;

  }

  .hexagon {
    width: 165px;
    height: 165px;
  }

  .hexagon-text {
    font-weight: bold;
    font-size: 10px;
  }

  .container-section-8  {
    justify-items: center;
  }

  .container-section-8 .hexagon {
    width: 160px;
    height: 160px;
  }

  .container-section-8 .hexagon-row {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }

  .container-section-9 img{
    max-width: 90%;
  }


}