@import url("https://fonts.googleapis.com/css2?family=Kanit:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

/* Common */
:root {
  --primary-color: #251714;
  --second-color: #005cb2;
  --third-color: #ffffff;
  --button-color: #fb8e42;
  --text-line-color: #f39e01;
}
body {
  font-family: "Kanit", sans-serif;
  color: var(--primary-color);
  font-size: 1rem;
  font-weight: 300;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Kanit", sans-serif;
  font-weight: 600;
  color: var(--primary-color);
}
a {
  text-underline-offset: 3px;
  text-decoration: none;
  color: var(--primary-color);
  transition: all 0.3s ease;
}
a:hover {
  color: var(--second-color);
  text-decoration: none;
}
a:focus {
  outline: none;
}
.section-gap {
  padding: 50px 0;
}
#content {
  margin-top: var(--header-height, 0px);
}
.elementor-widget-text-editor,
.elementor-widget-heading .elementor-heading-title {
  font-family: "Kanit", sans-serif !important;
}
.elementor-widget-text-editor {
  font-weight: 300 !important;
}

/* Header*/
#masthead {
  position: fixed;
  width: 100%;
  top: 0;
  border-bottom: 5px solid var(--text-line-color);
}
#masthead .header-bar {
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
#masthead .header-top {
  padding: 0;
}
#masthead .site-logo img {
  max-height: 60px;
  max-width: 60px;
  width: auto;
}
#masthead .header-bottom,
#masthead .main-navigation ul.nav-menu {
  background-color: transparent;
}
#site-identity .site-title a,
#site-identity .site-description {
  color: var(--text-line-color);
}
#masthead .main-navigation a,
#masthead .main-navigation ul.nav-menu .current_page_item > a,
#masthead .main-navigation ul.nav-menu .current-menu-item > a,
#masthead .main-navigation ul.nav-menu .current_page_ancestor > a,
#masthead .main-navigation ul.nav-menu .current-menu-ancestor > a,
#masthead .main-navigation ul.nav-menu > li:hover > a,
#masthead .main-navigation ul.nav-menu > li.focus > a {
  color: var(--primary-color);
  font-weight: 600;
}
#masthead .main-navigation li.current-menu-item,
#masthead .main-navigation li:hover,
#masthead .main-navigation li:focus {
  background-color: var(--button-color);
}
#masthead .main-navigation li {
  display: inline-block;
  max-width: 100%;
}
#masthead .main-navigation ul.nav-menu > li > a {
  padding: 10px;
  margin-right: 0;
}
#masthead .main-navigation ul ul {
  background-color: #fff;
  max-width: 100%;
}
#masthead .main-navigation ul.nav-menu li.btn-header {
  padding: 10px;
  margin: 0 5px;
  background-color: #404040;
  border: none;
  border-radius: 10px;
}
#masthead .main-navigation ul.nav-menu li.btn-header > a {
  color: var(--third-color);
  padding: 0;
}
#masthead .main-navigation ul.nav-menu li.btn-header:hover,
#masthead .main-navigation ul.nav-menu li.btn-header:focus {
  background-color: var(--button-color);
}
#masthead .main-navigation ul.nav-menu li.btn-header.i-user a {
  display: block;
}
#masthead .main-navigation ul.nav-menu li.btn-header.i-user a::before {
  content: "";
  width: 13px;
  height: 13px;
  background-image: url(../images/i-user.png);
  background-repeat: no-repeat;
  background-size: 100%;
  display: inline-block;
  margin-right: 5px;
}
#masthead .menu-toggle {
  margin-left: 0;
  padding: 0;
  height: 50px;
  min-width: 50px;
}
#masthead .menu-toggle span,
#masthead .menu-toggle span:before,
#masthead .menu-toggle span:after {
  background-color: var(--primary-color);
}
#masthead .menu-toggle.active span {
  background-color: transparent;
}
#masthead .menu-toggle:hover,
#masthead .menu-toggle:focus {
  background-color: transparent;
}
#masthead .header-bottom .wrapper {
  padding: 0;
}
#masthead .main-navigation ul.nav-menu {
  text-align: right;
}
@media screen and (max-width: 1400px) {
  #masthead .main-navigation li {
    margin-bottom: 10px;
  }
}
#masthead .main-navigation li:last-child {
  margin-bottom: 0;
}
@media screen and (min-width: 1440px) {
  #masthead .main-navigation ul.nav-menu li.btn-header.i-user.mgr3em {
    margin-right: 3em;
  }
  #masthead .main-navigation ul.nav-menu li.btn-header.mgl3em {
    margin-left: 3em;
  }
}
@media screen and (max-width: 1023px) {
  #masthead .main-navigation ul.nav-menu {
    background-color: var(--third-color);
    height: 100vh;
    border-top: 1px solid #c1c1c1;
    padding: 0 15px;
  }
  #masthead .main-navigation ul#primary-menu > li {
    text-align: center;
    margin-bottom: 10px;
  }
  #masthead .header-top .wrapper,
  #masthead .header-bottom .wrapper {
    padding: 0;
  }
  #masthead .main-navigation ul.nav-menu li.btn-header {
    margin: 0;
  }
  #masthead .header-bar {
    padding: 5px 20px;
  }
  #masthead .main-navigation ul#primary-menu > li:last-child {
    background-color: var(--button-color);
  }
  #masthead .main-navigation ul#primary-menu > li:last-child a {
    color: var(--third-color);
  }
  #masthead .main-navigation ul#primary-menu li:last-child > ul.sub-menu li a {
    color: var(--primary-color);
  }
  #masthead .main-navigation ul ul {
    box-shadow: 0px 0px 3px 0px rgba(0, 0, 0, 0.15);
  }
  #masthead .main-navigation li.current-menu-item,
  #masthead .main-navigation li:hover,
  #masthead .main-navigation li:focus {
    background-color: transparent;
  }
}
@media screen and (max-width: 767px) {
  #site-identity .site-title {
    font-size: 20px;
  }
  #site-identity .site-description {
    font-size: 13px;
  }
}
@media screen and (max-width: 375px) {
  #masthead .header-bar {
    padding: 5px 10px;
  }
}
@media screen and (max-width: 320px) {
  #site-identity .site-title {
    font-size: 15px;
  }
}

/* Footer */
#colophon a:hover,
#colophon a:focus {
  text-decoration: none;
}
#colophon {
  position: relative;
  background-color: #135dd0;
  font-weight: 300;
}
#colophon .hentry:last-child {
  width: 45%;
  float: right;
}
#colophon .site-info {
  color: #fff;
  padding: 10px 0;
  background-color: #282a2e;
  border-top: 1px solid rgb(255 255 255 / 20%);
}
#colophon .f-logo {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-bottom: 20px;
}
#colophon .f-logo img {
  width: 60px;
}
#colophon .f-certificate {
  display: flex;
  gap: 40px;
}
#colophon .f-contact {
  display: flex;
  gap: 40px;
}
#colophon .f-contact div {
  width: 50%;
}
@media screen and (max-width: 767px) {
  #colophon .footer-widgets-area.col-2 .hentry,
  #colophon .footer-widgets-area.col-4 .hentry,
  #colophon .hentry:last-child {
    width: 100%;
    float: left;
  }
  #colophon .footer-widgets-area.col-2 .hentry:nth-child(odd),
  #colophon .footer-widgets-area.col-4 .hentry:nth-child(odd) {
    padding-right: 0;
  }
}

/* breadcrumb */
.breadcrumb {
  max-width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  padding: 10px 0;
  background-color: #f6f6f6;
}
.breadcrumb i {
  margin: 0 7px;
}
.breadcrumb a {
  color: var(--primary-color);
}

/* Head Images Title*/
#header-image .h1-title,
#header-image .p-title {
  color: var(--third-color);
  text-align: left;
}
#header-image .p-title {
  font-size: 20px;
  max-width: 80%;
}
#header-image .wp-custom-header img {
  object-fit: cover;
  width: 100%;
  height: 306px;
}
@media screen and (max-width: 767px) {
  #header-image .h1-title {
    font-size: 2.5rem;
  }
  #header-image .wp-custom-header img {
    object-fit: cover;
    height: 350px;
  }
}
@media screen and (max-width: 480px) {
  #header-image .h1-title {
    font-size: 2rem;
  }
  #header-image .wp-custom-header img {
    object-fit: cover;
    height: 400px;
  }
}

/* top */
.blog-list,
.news-content {
  display: flex;
  /*justify-content: space-between;*/
  flex-wrap: wrap;
  gap: 30px;
}
.blog-item,
.news-content .item {
  width: 31%;
}
.blog-title,
.n-title {
  padding-top: 10px;
  font-weight: bold;
  font-size: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-cont,
.n-cont {
  font-size: 18px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-item,
.jobs-item {
  display: flex;
  width: 100%;
  gap: 20px;
  border-bottom: 1px solid #c7c7c7;
  padding: 15px;
}
.news-taxonomy,
.jobs-taxonomy {
  color: #fff;
  background-color: #333333;
  border-radius: 16px;
  padding: 3px 10px;
}
.news-title,
.jobs-title {
  border-left: 1px solid #c7c7c7;
  padding-left: 15px;
}
.blog-item .blog-thumb img,
.news-content .item .news-thumb img {
  object-fit: cover;
  aspect-ratio: 7 / 4;
  width: 100%;
  overflow-clip-margin: unset;
}
.single .title {
  font-family: "Kanit", Sans-serif;
  font-size: 36px;
  font-weight: 600;
  color: #005cb2;
  line-height: 1.2;
}
.single .border {
  border-bottom: 5px solid #f39e01;
  width: 7%;
  padding-top: 29px;
}
.single .content {
  padding-top: 50px;
}
.backtotop {
  background-color: #fb8e42;
}
@media screen and (max-width: 767px) {
  .blog-list,
  .news-content {
    flex-wrap: wrap;
  }
  .blog-item,
  .news-content .item {
    width: 100%;
  }
  .news-item,
  .jobs-item {
    flex-wrap: wrap;
  }
  .news-date {
    width: auto;
  }
  .news-title {
    width: 100%;
    border-left: none;
    padding-left: 0;
  }
  .top-banner img {
    object-fit: cover;
    width: 100%;
    aspect-ratio: 3 / 2;
  }
}
@media screen and (max-width: 540px) {
  .news-title,
  .jobs-title {
    border-left: none;
    padding-left: 0;
    width: 100%;
  }
}

/** news **/
.news .foogallery-container {
  display: none;
}
.custom-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 40px;
  font-size: 18px;
}

.custom-pagination select {
  font-size: 16px;
  padding: 5px 20px;
  margin: 0 10px;
  border-radius: 24px;
  border: 1px solid #ccc;
}

/* Recruit */
#jobs-form .file {
  display: flex;
  gap: 10px;
  width: 30%;
  padding: 15px;
  border: 1px solid #eee;
  border-radius: 10px;
  flex-direction: column;
  align-items: center;
}
#jobs-form .codedropz-upload-inner {
  display: flex;
  flex-direction: column-reverse;
}
#jobs-form .codedropz-upload-handler {
  margin-bottom: 0;
}
#jobs-form .codedropz-upload-container {
  background: #f2f2f2;
}
#jobs-form .codedropz-btn-wrap {
  font-weight: 600;
}
#jobs-form .codedropz-btn-wrap a,
#jobs-form .dnd-upload-counter {
  color: #c5c5c5;
}
#jobs-form .codedropz-btn-wrap a > span {
  color: red;
}
#jobs-form .codedropz-upload-inner span {
  color: #c5c5c5;
  font-size: 12px;
}
#jobs-form .codedropz-upload-inner div:not([class]) {
  display: none;
}
#jobs-form .imageContainer {
  width: 200px;
  height: 200px;
  border: 5px solid #eee;
  border-radius: 300px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #f8f8f8;
}
#jobs-form .imageContainer #imagePreview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}
#jobs-form .upload-resume {
  width: 100%;
}
#jobs-form .hidden {
  display: none;
}
#jobs-form .upload-profile {
  position: relative;
}
#jobs-form .customFileButton {
  position: absolute;
  top: 0;
  width: 200px;
  height: 200px;
  border-radius: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}
#jobs-form .defaultText {
  font-weight: 400;
  color: #c5c5c5;
}
#jobs-form .field {
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 15px;
  margin-top: 3em;
}
#jobs-form .field .d-flex {
  display: flex;
  gap: 10px;
}
#jobs-form .field > div {
  margin-bottom: 10px;
}
#jobs-form p {
  margin-bottom: 0;
}
#jobs-form input[type="text"],
#jobs-form input[type="email"],
#jobs-form input[type="url"],
#jobs-form input[type="password"],
#jobs-form input[type="search"],
#jobs-form input[type="number"],
#jobs-form input[type="tel"],
#jobs-form input[type="range"],
#jobs-form input[type="date"],
#jobs-form input[type="month"],
#jobs-form input[type="week"],
#jobs-form input[type="time"],
#jobs-form input[type="datetime"],
#jobs-form input[type="datetime-local"],
#jobs-form input[type="color"],
#jobs-form textarea,
#jobs-form select {
  font-size: inherit;
  color: inherit;
  border: 1px solid #d4d4d4;
  background-color: #f8f8f8;
  padding: 5px 10px;
  max-width: 100%;
  width: 100%;
  border-radius: 10px;
}
#jobs-form select {
  padding: 6px 10px;
}
#jobs-form textarea {
  max-height: 100px;
}
#jobs-form input[type="submit"] {
  color: #fb8e42;
  display: block;
  font-size: inherit;
  font-weight: 500;
  padding: 10px 25px;
  margin: auto;
  position: relative;
  background-color: #fff;
  border: 1px solid #fb8e42;
  border-radius: 10px;
  -webkit-transition: all 0.3s ease-in-out;
  -moz-transition: all 0.3s ease-in-out;
  -ms-transition: all 0.3s ease-in-out;
  -o-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
}
#jobs-form input[type="submit"]:hover {
  color: #fff;
  background-color: #fb8e42;
  border: 1px solid #fff;
}
#jobs-form .btn-submit {
  text-align: center;
  margin-top: 20px;
}
#jobs-form input[type="text"],
#jobs-form input[type="number"],
#jobs-form input[type="tel"],
#jobs-form input[type="email"],
#jobs-form textarea,
#jobs-form .sex select {
  padding-left: 25px;
}
#jobs-form .icon {
  font-family: "FontAwesome";
  color: #d4d4d4;
  font-size: 12px;
  position: absolute;
  top: 13px;
  left: 8px;
  z-index: 1;
}
#jobs-form .cv {
  position: relative;
}
#jobs-form .minimumDiv {
  min-width: 160px;
  max-width: 15%;
}
#jobs-form .f-img .d-flex {
  display: flex;
  gap: 10px;
  justify-content: space-between;
}
#jobs-form .f-img .file {
  width: 40%;
}
#jobs-form .f-img .d-img {
  width: 40%;
}
#jobs-form label > span {
  color: red;
}
.icon-contact{
  position: fixed;
  bottom: 87px;
  right: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 9;
}
.icon-contact span{
  background: #fb8e42;
  border-radius: 50px;
  color: #fff;
}
.icon-contact img{
  max-width: 70%;
}
@media screen and (max-width: 767px) {
  #jobs-form .file {
    width: 100%;
  }
  #jobs-form .field .d-flex {
    flex-direction: column;
  }
  #jobs-form .minimumDiv {
    min-width: 160px;
    max-width: 100%;
  }
  #jobs-form .f-img .d-flex {
    flex-direction: column-reverse;
  }
  #jobs-form .f-img .file {
    width: 100%;
    margin-top: 3em;
  }
  #jobs-form .f-img .img {
    width: 100%;
  }
  #jobs-form .f-img .d-img {
    width: 100%;
  }
  .icon-contact img {
    max-width: 50%;
  }
  .icon-contact span{
    margin-left: auto;
    margin-right: auto;
    padding-left: 10px;
    padding-right: 10px;
  }
}
/*blog*/
@media screen and (max-width: 767px) {
    .wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) {
        width: calc(100% - var(--wp--style--unstable-gallery-gap, 16px) / 2) !important;
    }
    .wp-block-table td, .wp-block-table th{
       padding: 15px 5px !important; 
    }
}