body,
html {
  font-family: "Kanit", sans-serif;
  margin: 0;
  font-size: 18px;
  padding-bottom: 0 !important;
}

/***************** start header */
#navbarmainweb {
  font-size: 22px;
  margin-top: -10px;
}

.displayLogo {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.imglogo {
  width: 100%;
  height: auto;
}

.imgContact {
  width: 45px;
  height: 45px;
}

.displayIcon {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding-top: 5px;
  padding-bottom: 15px;
}

.displayNav {
  display: flex;
  /* เพื่อให้เนื้อหาภายใน div id c1 จัดเรียงในลักษณะของ Flexbox */
  justify-content: flex-end;
  /* จัดเรียงเนื้อหาไปทางขวาของ div id c1 */
  align-items: center;
  /* จัดแนวเนื้อหาในแนวตั้งตรงกลางภายใน div id c1 */
}

.iconheaderWeb {
  display: flex;
  /* เพื่อให้เนื้อหาภายใน div class iconheaderWeb จัดเรียงในลักษณะของ Flexbox */
  align-items: center;
  /* จัดแนวเนื้อหาในแนวตั้งตรงกลางภายใน div class iconheaderWeb */

  a {
    color: white !important;
    padding-right: 8px;
  }

  b {
    font-size: 16px;
    padding-left: 4px;
  }
}

a:hover {
  text-decoration: none;
}

.dropdown-menu {
  margin: 0;
  padding: 0;
}

li.nav-item.dropdown.show,
.dropdown-item {
  background: #0557b3;
}

nav,
.dropdown-menu.show,
.bgblue1 {
  background-color: #012060 !important;
}

.dropdown-item {
  padding: 8px 14px !important;
  font-size: 18px;
}

.navbar-dark .navbar-nav .nav-link,
.dropdown-item,
a#navbarDropdown {
  color: white !important;
}

.dropdown-item:hover,
.nav-link:hover {
  background: #1f7ce5;
}

#carouselSliderGalleryLeft {
  border: 4px solid #012060;
}

#navbarmainweb .closebtn {
  display: none;
}

@media only screen and (max-width: 1100px) {
  #navbarmainweb {
    font-size: 18px;
  }

  .navbar-dark .navbar-toggler {
    border-color: white;
  }

  #navbarmainweb {
    margin-top: 0;
  }

  .displayIcon {
    padding-top: 5px;
    padding-bottom: 5px;
  }
}



@media only screen and (max-width: 991px) {
  .iconheaderWeb b {
    display: none;
  }

  .dropdown-item {
    width: 100vh;
  }

  .displayMenu {
    display: flex;
    justify-content: center;
    align-items: center;
  }


  /* css menu screen small */
  .collapse,
  .navbar-collapse {
    display: block !important;
  }

  #navbarmainweb {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 999;
    top: 0;
    right: 0;
    background-color: #012060;
    overflow-x: hidden;
    transition: 0.5s;
    padding-top: 40px;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
  }

  #navbarmainweb a {
    padding: 8px 8px 8px 32px;
    text-decoration: none;
    font-size: 18px;
    color: #818181;
    display: block;
    transition: 0.3s;
  }

  #navbarmainweb a:hover {
    color: #f1f1f1;
    width: 100vh;
  }

  #navbarmainweb .closebtn {
    display: block;
    position: absolute;
    top: 0;
    right: 25px;
    font-size: 26px;
    margin-left: 50px;
    color: white;
  }
}

@media only screen and (max-width: 425px) {
  .imgContact {
    width: 35px;
    height: 35px;
  }

  #divchangLang .btn,
  .navbar-toggler {
    padding: 8px;
  }

  .iconheaderWeb {
    a {
      padding-right: 6px;
    }
  }
}

/***************** End header */
.bganno {
  background-image: url(/assets/img/bganno.png);
  height: auto;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
  padding: 1rem 8px;
  margin: 2rem 1rem;
  text-align: center;
  font-weight: bold;
}

.titleText {
  width: 100%;
  padding: 8px;
  text-align: center;
  color: white;
  /* background-color: #1f7ce5; */
  background: #1f7ce5;
  background: linear-gradient(0deg, rgb(9, 174, 240) 0%, rgb(5, 121, 238) 100%);
  font-weight: bold;
  margin: 1.2rem 0;
}

#carouselSliderGalleryLeft {
  margin-top: 1rem;
  /* border: 5px solid #333333;
  background: #333333; */
}

#carouselSliderGalleryLeft img {
  position: relative;
  width: 100%;
  height: auto;
  max-height: 160px;
}

.carousel-inner {
  border-radius: 0;
}

.videoWrapper {
  position: relative;
  padding-bottom: 56.25%;
  padding-top: 25px;
  height: 0;
}

.videoWrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.w-5 {
  width: 5%;
}

.w-10 {
  width: 10%;
}

.w-15 {
  width: 15%;
}

.w-20 {
  width: 20%;
}

.w-30 {
  width: 30%;
}

.w-40 {
  width: 40%;
}

.w-50 {
  width: 50%;
}

/***************** start footer */
footer {
  z-index: -1;
  bottom: 0;
  width: 100%;
  background-color: #012060;
  color: white;
  padding-bottom: 1px;
  padding-top: 1rem;
}

.logo-foot {
  width: 250px;
  height: auto;
  margin-top: 5%;
}

footer p {
  margin-bottom: 6px;
  font-size: 16px;
}

@media (max-width: 991px) {
  .page-footer {
    display: none !important;
  }

  /* #scrollUpweb {
    margin-bottom: 3rem;
  } */
}

@media (max-width: 768px) {
  footer#contact {
    padding-bottom: 4.5rem;
  }

  footer h4 {
    font-size: 1.2rem;
  }

  footer p {
    margin-bottom: 0;
    font-size: 12px;
  }
}

@media (max-width: 425px) {
  .fixedshow .nav-link {
    font-size: 12px !important;
  }
}

.fixedshow {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  text-align: center;
  z-index: 999;
  background-color: #012060;
  box-shadow: rgba(0, 0, 0, 0.56) 0px 22px 70px 4px;
}

.fixedshow .col {
  padding: unset;
}

.fixedshow a {
  font-family: "Sarabun", sans-serif;
  color: white;
}

.fixedshow i.fa {
  width: 100%;
  font-size: 18px;
  padding-bottom: 6px;
}

.fixedshow .nav-link {
  padding: 10px 8px 4px;
  font-size: 14px;
}

footer a:hover {
  text-decoration: none;
  color: #9e9e9e;
}

a.nav-link.opennavbarmainweb:hover {
  color: white;
}

footer a {
  color: white;
}

.footer-copyright,
.footer-copyright a {
  font-size: 14px;
  color: #9e9e9e;
  text-align: center;
}

footer table {
  color: white;
  font-size: 18px;
}

.histatborder {
  -moz-box-shadow: 5px 5px 5px #ccc;
  -webkit-box-shadow: 5px 5px 5px #ccc;
  box-shadow: 5px 5px 5px #ccc;
  width: 100%;
  max-width: 250px;
  margin: auto;
  border-radius: 5px;
  border: solid;
  border-width: 2px;
  border-color: #6C6C6C;
  background-color: white
}

.showdataanalytic {
  margin-top: 0.25rem;
  font-size: 11px;
}

.showdataanalytic td {
  line-height: 14%;
}

.card-detailText {
  -ms-flex: 1 1 auto;
  flex: 1 1 auto;
  min-height: 1px;
  padding: 8px;
  font-size: 20px;
}


/***** style button scrollUp in web */
#scrollUpweb {
  margin-bottom: 10px;
  /*color: #ffff;
  background-color: #eceff1;
  border-color: #eceff1;
  position: fixed;
  left: 1rem;
  bottom: 8px;
  z-index: 9999;
  */
}

#scrollUpweb:hover,
#scrollUpweb:focus {
  box-shadow: 0 0.5em 0.5em -0.4em var(--hover);
  transform: translateY(-0.40em);
}

.imgleft {
  padding: 0.25rem;
  margin-top: 1.5rem;
}

/********* style widget-btn ************/
.floating-widget {
  position: fixed;
  bottom: 3.5rem;
  right: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 9999;
}

.widget-btn {
  background-color: #fff;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #fff 0 0 no-repeat padding-box;
  box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
  text-decoration: none;
  transition: transform 0.2s;
  position: relative;
  animation: zoomPulse 2.5s infinite ease-in-out;
  -webkit-animation: zoomPulse 2.5s infinite ease-in-out;
}

.widget-btn.blue {
  border: 1px solid #2ca7ff;
  box-shadow: rgb(43 165 255 / 68%) 2px 2px, rgb(43 166 255 / 45%) 4px 4px, rgb(44 168 255 / 26%) 6px 6px;
}

.widget-btn.green {
  border: 1px solid #3ab529;
  box-shadow: rgb(79 185 55 / 71%) 2px 2px, rgb(59 180 41 / 45%) 4px 4px, rgb(73 185 53 / 27%) 6px 6px;
}

/* Animation Keyframe */
@keyframes zoomPulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(0.9);
  }

  100% {
    transform: scale(1);
  }
}

.widget-btn:hover {
  transform: scale(1.1);
}

.icon-contact-right {
  width: 85%;
  height: auto;
  object-fit: contain;
}

.icon-blue {
  -webkit-filter: hue-rotate(180deg);
  filter: hue-rotate(90deg);
}

/* Responsive - ปรับขนาดเมื่อหน้าจอเล็ก */
@media (max-width: 576px) {
  .modal {
    top: 10px;
  }

  .widget-btn {
    width: 50px;
    height: 50px;
  }
}

.modal-phone {
  text-align: center;
}

.modal-phone img {
  width: 50px;
  display: block;
  margin: 5% auto;
}