@font-face {
  font-family: "THSarabunPSK";
  src: url("https://www.toppan-edge.co.th/assets_toppan/fontsweb/THSarabunPSK-Bold.woff2")
      format("woff2"),
    url("https://www.toppan-edge.co.th/assets_toppan/fontsweb/THSarabunPSK-Bold.woff")
      format("woff");
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "THSarabunPSK";
  src: url("https://www.toppan-edge.co.th/assets_toppan/fontsweb/THSarabunPSK.woff2")
      format("woff2"),
    url("https://www.toppan-edge.co.th/assets_toppan/fontsweb/THSarabunPSK.woff")
      format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

body {
  font-family: "THSarabunPSK" !important;
}

header.sticky-top {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  z-index: 1030;
  min-height: 91px;
}
header #menubar {
  margin-top: -60px;
  padding-left: 195px;
}
header #menubar .nav-item a {
  font-size: 28px !important;
  font-weight: bold !important;
  line-height: 52px !important;
  color: #000000 !important;
  letter-spacing: 0px !important;
  padding-right: 60px !important;
}
header #menubar .nav-item a:hover {
  color: #0a77bf !important;
}

/* รีเซ็ตพื้นฐาน */
ul.header-contact {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  z-index: 999;
}

/* เมนูหลัก = แถวนอน */
.header-contact {
  display: flex; /* เรียงแนวนอน */
  justify-content: flex-end;
  align-items: flex-start;
}

.header-contact > li {
  position: relative;
  background: #005ead 0% 0% no-repeat padding-box;
} /* ไว้จับ sub‑menu */
.header-contact a {
  text-decoration: none;
  color: #333;
  padding: 0.75rem 0;
  display: block;
}

/* sub‑menu ซ่อนก่อน */
.sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 160px;
  background: #fff;
  border: 1px solid #ddd;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  display: none;
  flex-direction: column;
}
.has-sub:hover .sub-menu {
  display: flex;
} /* โชว์เมื่อ hover */

.header-contact .globe {
  background-color: #ffffff;
}
.header-contact .globe a {
  color: #005ead;
  font-size: 28px;
  font-weight: bold;
  letter-spacing: 0px;
  line-height: 29px;
  padding-left: 15px;
  padding-right: 15px;
  padding-top: 15px;
}

.header-contact .search a {
  color: #ffffff;
  font-size: 28px;
  font-weight: bold;
  letter-spacing: 0px;
  line-height: 29px;
  padding-left: 15px;
  padding-right: 15px;
  padding-top: 15px;
}
.header-contact .has-sub #langDropdown {
  padding: 0px;
  font-size: 28px;
  font-weight: bold;
  letter-spacing: 0px;
  color: #ffffff;
  padding-left: 15px;
  padding-right: 15px;
}
.header-contact .has-sub #langDropdown span {
  line-height: 59px;
}
.header-contact .envelope a {
  font-size: 28px;font-weight: bold;letter-spacing: 0px;color: #FFFFFF;line-height: 35px;padding-left: 15px;padding-right: 15px;
}
@media (max-width: 767px) and (min-width: 300px) {
}

@media (max-width: 991px) and (min-width: 768px) {
  .header-contact .envelope a span {
    display: none;
  }
}

@media (max-width: 1301px) and (min-width: 992px) {
  header #menubar {
    margin-top: 0;
    padding-left: 15px;
  }
  
}

@media (max-width: 1399px) and (min-width: 1301px) {
  header #menubar {
    margin-top: -55px;
    padding-left: 190px;
  }
  header #menubar .nav-item a {
    font-size: 25px !important;
    font-weight: bold !important;
    line-height: 52px !important;
    color: #000000 !important;
    letter-spacing: 0px !important;
    padding-right: 30px !important;
  }
}

@media (max-width: 1580px) and (min-width: 1400px) {
  header #menubar {
    margin-top: -45px;
    padding-left: 185px;
  }
  header #menubar .nav-item a {
    font-size: 26px !important;
    font-weight: bold !important;
    line-height: 26px !important;
    color: #000000 !important;
    letter-spacing: 0px !important;
    padding-right: 60px !important;
  }
}

@media (max-width: 1620px) and (min-width: 1581px) {
  header #menubar {
    margin-top: -60px;
    padding-left: 205px;
  }
}

@media (min-width: 1621px) {
}

@media (max-width: 576px) {
  header #menubar {
    margin-top: 0;
    padding: 0px;
  }
}



/* เมนูแบบ Mobile Fixed Bottom */
.mobile-menu-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #222;
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
    z-index: 999;
}
.mobile-menu-bar a {
    text-align: center;
    color: white;
    font-size: 26px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.mobile-menu-bar a i {
    font-size: 20px;
    color: #FFFFFF;
    margin-bottom: 4px;
}

/* เมนูย่อย fullscreen */
.menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    color: white;
    z-index: 1000;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
.menu-overlay.active {
    display: flex;
}
.menu-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}
.menu-content ul li {
    margin: 10px 0;
}
.menu-content ul li a {
    color: white;
    font-size: 26px;
    text-decoration: none;
}
.menu-content ul li a:hover {
    color: red;
}


.menu-close {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 2rem;
    text-decoration: none;
    color: #FFFFFF;
}
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    display: none;
  }

  .menu-overlay.active {
    display: block;
    animation: slideUp 0.4s ease forwards;
  }

  .menu-overlay.closing {
    animation: slideDown 0.4s ease forwards;
  }

  @keyframes slideUp {
    from {
      transform: translateY(100%);
    }
    to {
      transform: translateY(0);
    }
  }

  @keyframes slideDown {
    from {
      transform: translateY(0);
    }
    to {
      transform: translateY(100%);
    }
  }

@media (min-width: 1186px) {
    .mobile-menu-bar { display: none; }
}
