body{
  margin:0;
  background-color: var(--bg-body);;
  padding-top: 50px;
}

/* tab-bar */
.logo{ margin: 0; 
}
.logodeptabbar{
  width: 200px;
  height: auto;
}

.topbar{
  display: flex;
  position: relative;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
  background-color: var(--bg-home);
}

.indicator{
  position: absolute;
  top: 10px;
  left: 10px;
  width: 80px;
  height: 40px;
  border-radius: 30px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2,1),width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.tab-container{
  position: relative;
  display: flex;
  width: fit-content;
  margin: 10px 10px 10px auto;
  gap: 25px;
  background-color: #F3E6A2;
  border-radius: 33px;
  padding: 10px 15px;
  z-index: 999;
}

.tab-link{
  font-family: 'Kodchasan', sans-serif;
  position: relative;
  z-index: 1;
  text-decoration: none;
  display: flex;
  align-items: center;
  color: #184274;
  padding: 10px 15px ;
  border-radius: 30px;
  transition: all 0.4s ease;
  opacity: 0.6;
}

.tab-link .icon{
  width: 20px;
  height: 20px;
  display: block;
}

.tab-link .label{
  max-width: 0;
  overflow: hidden;
  opacity: 0;
  white-space: nowrap;
  transition: all 0.4s ease, opacity 0.3s ease;
  font-weight: bold;
  margin-left: 0;
}

.tab-link.active{
  color: #184274;
  background-color: #78C0E6;
  opacity: 1;
  animation: pop 0.3s ease;
}

@keyframes pop{
  0%{ transform: scale(0.9); }
  50%{ transform: scale(1.05); }
  100%{ transform: scale(1); }
}

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         

.tab-link:hover{
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.tab-link.active .label{
  display: inline-block;
  max-width: 150px;
  opacity: 1;
  margin-left: 10px;
}

.hamburger{
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 6px;
}

.hamburger span{
  width: 40px;
  height: 4px;
  background-color: #F3E6A2;
  border-radius: 5px;
  transition: all 0.4s ease;
}


/* footer */
.footer{
    font-family: 'K2D', sans-serif;
    margin-top: auto;
}

.footer-inner{
    display: flex;
    justify-content: space-between; /*left-right*/
    align-items: flex-start;
    flex-wrap: wrap;
    background-color: var(--color-footer1);
    color: #F3E6A2;
    gap: 10px;
    padding: 40px;
  
}

.footer-logo-img{
    width: 200px;
    height: auto;
    margin: 0;
}


.footer-contact p{
    margin: 6px 0; /*ระยะห่างบรรทัด*/
    line-height: 1.6; /*ค.สูงบรรทัด*/
}

.footer-address p{
    margin: 6px 0; /*ระยะห่างบรรทัด*/
    line-height: 1.6; /*ค.สูงบรรทัด*/
}

.footer .social{
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.footer-bottom{
    display: flex;
    color: #040518;
    background-color: #F3E6A2;
    justify-content: center;
    padding: 12px 16px;
    text-align: center;
    width: 100%;
}


 @media (max-width: 768px){
  .indicator{ display: none; }

  .hamburger{
    display: flex;
  }

  .hamburger span{
    background-color: #F3E6A2;
  }

  .topbar{
    position: relative;
    z-index: 3000;
  }

  #menu{
    position: absolute; /*อยู่ตามสั่ง top right บลาๆ*/
    top: 65px;
    right: 0;
    width: 150px;

    display: flex;
    flex-direction: column;
    gap: 14px;

    padding: 20px;
    border-radius: 20px;

    transition: transform .35s ease, opacity .35s ease;
  }

  #menu .tab-link{
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #184274;
    font: 16px;
    background: transparent;
    opacity: 1;
    width: 125px;
    justify-content: flex-start;
  }
  
  #menu .tab-link .label{
    display: inline !important;
    color: inherit !important;
    opacity: 1 !important;
    visibility: visible !important;
    font-size: 16px !important;
    line-height: 1.3 !important;
    max-width: none !important;
    overflow: visible !important;
    opacity: 1 !important;
    margin-left: 0 !important;
  }

    #menu .tab-link.active{
    width: 125px;
    color: #184274;
    background-color: #78C0E6;
    opacity: 1;
    animation: pop 0.3s ease;
  }

  .tab-container{
    position: absolute;
    top: 65px;
    height: fit-content;
    width: 150px;

    display: flex;
    flex-direction: column;
    gap: 15px;

    color: #184274;
    background-color: #F3E6A2;
    padding: 20px;
    border-radius: 20px;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(120%);
    transition: transform 0.35s ease;
  }


  .tab-container.active{
    transform: translateX(0);
    right: 0px;
    pointer-events: auto;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  /* footer */
  .footer-logo{
    width: 160px;
    margin-left: 0;
  }
  .footer-row{
    flex-direction: column;
    gap: 20px;
  }

  .footer-col,.footer-contact,.footer-address{
    flex: none;
    width: 100%; /*ให้เต็ม*/
  }

  .footer .social{
    flex-direction: row; /*เรียงแนวนอน*/
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
  }

  .project-header{
    font-size: 18px;
    padding: 14px 16px;
    gap: 12px;
  }

  .project-header .proj-notop-icon{
    width: 22px;
  }
    /* contact */
    .address-iot{
      flex-direction: column;
    }
}
.bch-container{
  display: flex;
  /* overflow: hidden; */
  height: 120px;
  align-items: flex-end;
  overflow: hidden;
  width: 100%;
}

.bch-tab{
  display: flex;
  flex: 1;
  height: 90px;

  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 25px 25px 0 0;

  padding: 10px;
  align-items: center;
  justify-content: center;

  color: #F3E6A2;
  font-size: 24px;
  font-family: 'K2D',sans-serif;

  background-color: #184274;
  cursor: pointer;

  /* animation */
  transform: translateY(15px);
  transition: all 0.35s ease;
}

.bch-tab[aria-selected="true"]{
  display: flex;
  flex: 2;
  padding: 20px;
  height: 100px;

  color: #040518;
  font-size: 32px;
  font-weight: 700;
  text-align: center;

  background-color: #78C0E6;

  /* animation */
  transform: translateY(0);
}

.contact-container{
  display: flex;
  align-items: center;
  justify-content: center;
  height: fit-content;
  gap: 20px;

  background: var(--bg-contact-gradient);
}

.address-iot{
  display: flex;
  gap: 40px;
  align-items: stretch;
  max-width: 1440px;
  margin: 0 auto;
  align-items: center;
  padding: 20px;

    /* ทำglasss */
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px); /*รองรับในsafari*/
  border: 1px solid #040518; 
  border-radius: 20px;
}

.address-iot .detail-box{
  font-family: 'K2D',sans-serif;
  font-size: 36px;
  font-weight: 100;
  color: var(--color-text);
  background: none;

  align-items: center;
}

.contact-panel{
  gap: 20px;
  margin: 20px;
}
.contact-box{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 50px;
  max-width: 1500px;
  margin: 0 auto;
  padding: 20px;
}

.contact-card{
  position: relative;
  width: 150px;
  margin: 40px auto;
  max-width: 280px;
}

.contact-detail{
  font-family: 'K2D',sans-serif;
  width: 100%;
  height: 100px;
  padding: 100px 20px;
  /* transform: translate(0%,100%); */
  border-radius: 20px;
  background: var(--background-blue1);
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,.12);
}

.contact-detail p{
    font-size: 16px;
    transform: translate(0%,-50%);
    align-items: center;
}
.contact-detail a{
  word-break: break-word; /*ไม่ให้ข้อความดันล้น*/
  color: #040518;
}

.icon-circle{
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%,-50%);
  width: 80px;
  height: 80px;
  border-radius: 999px;
  background: #fff;
  display: grid;
  place-items: center;
  border: 2px solid #78C0E6;
}

.assess{
  display: flex;
  gap: 18px;
  justify-content: space-between;
  align-items: center;


  background-color: var(--color-h1-bg);

  font-family: 'K2D',sans-serif;
  font-size: 24px;
  color: var(--color-h1-text);
  font-weight: 100;

  border-radius: 20px;

  max-width: 980px;
  margin: 24px auto;
  padding: 22px 24px;
}

.lang-toggle-container {
    font-family: 'K2D',sans-serif;
    position: absolute;
    top: 12px;
    right: 80px;
    z-index: 10001;
    display: flex;
    gap: 4px;
    background-color: #F3E6A2;
    border-radius: 20px;
    padding: 4px;
}

.lang-btn {
    background: transparent;
    border: none;
    border-radius: 15px;
    padding: 4px 12px;
    font-size: 13px !important;
    font-weight: bold !important;
    font-family: inherit !important;
    color: #184274;
    cursor: pointer;
    transition: background 0.3s ease;
    min-width: 40px;       
    text-align: center;
}

.lang-btn.active {
    background-color: #78C0E6;
    animation: pop 0.3s ease;
}

.goog-te-banner-frame,
.skiptranslate { display: none !important; }
body.translated-ltr { top: 0 !important; }
body { top: 0 !important; }