@font-face {
  font-family: "Serithai";
  src: url("../../font/Serithai-Light.ttf");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Serithai";
  src: url("../../font/Serithai-Medium.ttf");
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Serithai";
  src: url("../../font/Serithai-Bold.ttf");
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "SerithaiBold";
  src: url("../../font/Serithai-Bold.ttf");
  font-display: swap;
}

@font-face {
  font-family: "ChakraPetch";
  src: url("../../font/ChakraPetch-Light.ttf");
  font-display: swap;
}

@font-face {
  font-family: "Sarabun";
  src: url("../../font/Sarabun-Light.ttf");
  font-display: swap;
}

* {
  font-family: "ChakraPetch";
}

.menu-top-active {
  animation: ActiveTopMenu 0.5s;
}

@keyframes ActiveTopMenu {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0%);
  }
}

.menu-top-noneactive {
  animation: NoneActiveTopMenu 0.5s;
}

@keyframes NoneActiveTopMenu {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.detail-taxt {
  font-family: "ChakraPetch";
}

.submenu-title-wrapper {
  font-family: "SerithaiBold";
}

span {
  font-family: "ChakraPetch";
}

.ant-menu-item:hover,
.ant-menu-item-active,
.ant-menu:not(.ant-menu-inline) .ant-menu-submenu-open,
.ant-menu-submenu-active,
.ant-menu-submenu-title:hover {
  color: var(--header-color) !important;
  /* font-size: 15px; */
}

.ant-menu-submenu-selected {
  color: var(--header-color) !important;
}

.ant-menu-submenu-vertical
  > .ant-menu-submenu-title:hover
  .ant-menu-submenu-arrow::after,
.ant-menu-submenu-vertical-left
  > .ant-menu-submenu-title:hover
  .ant-menu-submenu-arrow::after,
.ant-menu-submenu-vertical-right
  > .ant-menu-submenu-title:hover
  .ant-menu-submenu-arrow::after,
.ant-menu-submenu-inline
  > .ant-menu-submenu-title:hover
  .ant-menu-submenu-arrow::after,
.ant-menu-submenu-vertical
  > .ant-menu-submenu-title:hover
  .ant-menu-submenu-arrow::before,
.ant-menu-submenu-vertical-left
  > .ant-menu-submenu-title:hover
  .ant-menu-submenu-arrow::before,
.ant-menu-submenu-vertical-right
  > .ant-menu-submenu-title:hover
  .ant-menu-submenu-arrow::before,
.ant-menu-submenu-inline
  > .ant-menu-submenu-title:hover
  .ant-menu-submenu-arrow::before {
  background: -webkit-gradient(
    linear,
    left top,
    right top,
    from(var(--header-color)),
    to(var(--header-color))
  ) !important;
  background: linear-gradient(
    to right,
    var(--header-color),
    var(--header-color)
  ) !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "SerithaiBold";
}

.loadding-center {
  position: fixed;
  top: 50%;
  left: 50%;
  /* margin-top: -50px;
    margin-left: -100px; */
}

body {
  font-family: "Serithai";
  background-color: #ffffff;
}

.container {
  max-width: 1600px;
  margin: auto;
}

.container-contant {
  max-width: 1600px;
  margin: auto;
}

.home-container {
  position: relative;
  padding: 2em;
}

.main-page {
  padding: 30px;
}

.breadcrumb-mobile {
  display: none;
}

.banner {
  margin: auto;
  width: 100%;
  max-width: 1600px;
  height: auto;
  padding: 0px;
  background-color: #ffffff;
}

.search-input-nav {
  display: block;
}

.search-input {
  display: none;
}

.logo {
  padding: initial;
}

.img-logo {
  height: 180px;
  width: auto;
  min-width: 40px;
  min-height: 40px;
  padding: 5px;
}
@media (max-width: 576px) {
  .img-logo {
    height: 80px;
  }
}

.title {
  padding: 10px;
  float: left;
}

.title-thai {
  font-family: "SerithaiBold";
  font-size: 2em;
  padding-top: 5px;
}

.group-banner {
  display: flex;
  align-items: center;
}

.ant-menu-submenu-active :hover {
  color: var(--header-color) !important;
}

.title-eng {
  font-family: "SerithaiBold";
  display: inline;
  font-size: 1.3em;
}

.clear-foat {
  clear: both;
}

.ant-menu-item-selected {
  color: var(--header-color) !important;
}

.ant-menu-item-selected a,
.ant-menu-item-selected a:hover {
  color: var(--header-color) !important;
}

.ant-menu-horizontal {
  font-family: "SerithaiBold";
}

.ant-menu-item,
.ant-menu-submenu-title {
  font-family: "SerithaiBold";
}

.ant-menu-submenu-title :hover {
  color: var(--header-color);
}

.ant-menu-horizontal > .ant-menu-item-active,
.ant-menu-horizontal > .ant-menu-item-open,
.ant-menu-horizontal > .ant-menu-item-selected,
.ant-menu-horizontal > .ant-menu-item:hover,
.ant-menu-horizontal > .ant-menu-submenu-active,
.ant-menu-horizontal > .ant-menu-submenu-open,
.ant-menu-horizontal > .ant-menu-submenu-selected,
.ant-menu-horizontal > .ant-menu-submenu:hover {
  color: var(--header-color) !important;
  border-bottom: 2px solid var(--header-color) !important;
  -webkit-animation: HoverAttention 1s;
  -webkit-animation-iteration-count: infinite;
  animation: HoverAttention 1s;
  animation-iteration-count: infinite;
}

.ant-drawer-header {
  padding: 0px 24px !important;
}

.ant-menu-item-selected {
  /* ActiveMenu */
  animation: ActiveMenu 1s;
  animation-iteration-count: infinite;
}

.icon-menu {
  display: none;
  position: fixed;
  top: 8px;
  right: 10px;
  font-size: 24px;
  cursor: pointer;
  border: 1px solid var(--header-color);
  width: 32px;
  height: 32px;
  padding: 3px 5px 5px 5px;
  background-color: #ffffff;
}

.icon-menu :hover {
  color: var(--header-color);
}

.icon-mobile {
  display: none;
}

.icon-menu-close {
  border: 1px solid var(--header-color);
  font-size: 24px;
  width: 32px;
  height: 32px;
  padding: 3px 5px 5px 5px;
}

.ant-menu-vertical .ant-menu-item::after,
.ant-menu-vertical-left .ant-menu-item::after,
.ant-menu-vertical-right .ant-menu-item::after,
.ant-menu-inline .ant-menu-item::after {
  border-right: 3px solid var(--header-color) !important;
}

.icon-menu-close :hover {
  color: var(--header-color);
}

.ant-carousel .slick-slide h3 {
  color: #fff;
}

.link-text {
  cursor: pointer;
  float: left;
  padding-top: 10px;
}

.link-text :hover {
  color: #5774fb;
}

.link-icon {
  cursor: pointer;
  float: left;
}

.partner {
  border: 2px solid #efefef;
  padding: 12px 0px 8px;
  background-color: #efefef;
}

.title-partner {
  text-align: center;
}

.title-partner span {
  font-family: "SerithaiBold";
}

.partner-box-desc {
  height: 100px;
}

.partner-item {
  padding: 10px;
  margin: 10px;
  border-radius: 4px;
  cursor: pointer;
}

.img-banner {
  display: inline;
}

.partner-item :hover {
  color: var(--header-color);
}

.partner-img {
  width: 64px;
  margin-right: 10px;
}

.partner-font {
  font-size: 15px;
}

.body-component {
  padding: 0px;
  background-color: #ffffff;
}

.footer {
  /* background-color: #6b6b6b; */
  background-color: var(--header-color);
  color: #ffffff;
}

.footer-menu {
  padding: 20px;
}

.list-menu {
  color: #ffffff;
  padding-bottom: 10px;
}

.list-menu :hover {
  color: #ffffff;
  cursor: pointer;
  text-decoration: underline;
}

.footer-contact {
  padding-left: 10px;
  text-align: center;
}

.title-contact {
  margin-bottom: 10px;
}

.social-logo-facebook {
  color: #ffffff;
  background: #096dd9 !important;
  cursor: pointer;
  transition: all 0.1s;
}

.ant-avatar.social-logo-facebook:hover {
  background: #0a79f1 !important;
  box-shadow: 0 3px 1px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
  transition: all 0.1s;
}

.social-logo-line {
  color: #ffffff;
  background: #1fb115 !important;
  cursor: pointer;
  transition: all 0.2s;
}

.ant-avatar.social-logo-line:hover {
  background: #23c818 !important;
  box-shadow: 0 3px 1px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
  transition: all 0.1s;
}

.social-logo-youtube {
  color: #ffffff;
  background: #ff0000 !important;
  cursor: pointer;
  transition: all 0.1s;
}

.ant-avatar.social-logo-youtube:hover {
  background: #ff1a1a !important;
  box-shadow: 0 3px 1px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
  transition: all 0.1s;
}

.social-logo-mail {
  color: #ffffff;
  background: #d44638 !important;
  cursor: pointer;
  transition: all 0.1s;
}

.ant-avatar.social-logo-mail:hover {
  background: #d9594d !important;
  box-shadow: 0 3px 1px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
  transition: all 0.1s;
}

.social-logo-contact {
  color: #ffffff;
  background: #ff6f33 !important;
  cursor: pointer;
  transition: all 0.1s;
}

.social-logo-contact :hover {
  background: var(--header-color) !important;
  cursor: pointer;
  transition: all 0.1s;
}

.logo-facebook {
  color: #ffffff;
  cursor: pointer;
}

.logo-facebook :hover {
  color: #096dd9;
}

.logo-line {
  color: #ffffff;
  cursor: pointer;
}

.logo-line :hover {
  color: #1fb115;
}

.logo-youtube {
  color: #ffffff;
  cursor: pointer;
}

.logo-youtube :hover {
  color: #ff0000;
  cursor: pointer;
}

.logo-mail {
  color: #ffffff;
  cursor: pointer;
}

.logo-mail :hover {
  color: #d44638;
}

.logo-contact {
  color: #ffffff;
}

.logo-contact :hover {
  color: var(--header-color);
}

.footer-title {
  font-size: 1.5em;
  font-family: "SerithaiBold";
}

.copyright {
  padding: 40px 10px 10px;
  background-color: #2a2a2a;
  color: #ffffff;
  text-align: left;
}

.copyright .ant-col {
  padding: 10px 20px 10px 0px;
}

.copyright p {
  margin: 0px;
}

.container-contant img {
  max-width: 100%;
}

@media screen and (max-width: 1200px) {
  .home-container {
    padding-left: 0px;
    padding-right: 0px;
  }
  .ant-menu-horizontal {
    padding: 0px !important;
  }
}

@media screen and (max-width: 1090px) {
  .title-thai {
    margin-top: 0px;
    font-size: 28px;
  }
  .title-eng {
    font-size: 18px;
  }
}

@media screen and (max-width: 900px) {
  .title-thai {
    margin-top: 0px;
    font-size: 28px;
  }
  .title-eng {
    font-size: 14px;
  }
}

@media screen and (max-width: 780px) {
  .img-banner {
    display: none;
  }
  .banner {
    padding: 10px;
  }
  .group-banner {
    display: flex;
  }
  .main-page {
    margin-top: 20px;
  }
  .title-thai {
    color: unset;
    text-shadow: unset;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
  }
  .title-eng {
    color: unset;
    text-shadow: unset;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
  }
  .banner {
    height: auto;
    position: fixed;
    top: 0;
    z-index: 1000;
    box-shadow: 0px 1px 7px 0px #00000024;
  }
  .text-overlay {
    font-size: 14px;
    font-family: "fcHomeBlod";
    font-weight: 800;
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    white-space: nowrap;
  }
  .container-detail {
    min-height: 50vh;
  }
  .title {
    padding: 0px;
  }
  .title-thai {
    margin-top: 0px;
    font-size: 18px;
  }
  .title-eng {
    font-size: 11px;
  }
  .menu-top {
    display: none;
  }
  .icon-mobile {
    display: flex;
  }
  .search-input-nav {
    display: none;
  }
  .search-input {
    display: block;
  }
  .breadcrumb-mobile {
    display: inline;
  }
  .ant-menu-horizontal > .ant-menu-item-active,
  .ant-menu-horizontal > .ant-menu-item-open,
  .ant-menu-horizontal > .ant-menu-item-selected,
  .ant-menu-horizontal > .ant-menu-item:hover,
  .ant-menu-horizontal > .ant-menu-submenu-active,
  .ant-menu-horizontal > .ant-menu-submenu-open,
  .ant-menu-horizontal > .ant-menu-submenu-selected,
  .ant-menu-horizontal > .ant-menu-submenu:hover {
    -webkit-animation: HoverAttention 1s;
    -webkit-animation-iteration-count: unset;
    animation: HoverAttention 1s;
    animation-iteration-count: unset;
  }
  .body-component {
    padding: 65px 0px 0px;
  }
}

@media screen and (max-width: 570px) {
  .banner {
    padding: 0px;
    height: auto;
    position: fixed;
    top: 0;
    z-index: 1000;
  }
  .group-banner {
    display: flex;
  }
  .article-img-holder {
    height: auto;
  }
  .title {
    padding-top: 30px;
  }
  .title-thai {
    margin-top: 0px;
    /* padding-top: 10px; */
    font-size: 17px;
    padding-left: 0px;
  }
  .title-eng {
    padding-left: 0px;
    margin-left: 0px;
    font-size: 8px;
    /* position: fixed; */
  }
  .menu-top {
    display: none;
  }
  .body-component {
    padding: 55px 10px 10px;
  }
  .menu-top {
    display: none;
  }
}

@media screen and (max-width: 540px) {
  .partner-img {
    width: 50px;
    margin-right: 5px;
  }
  .group-banner {
    display: flex;
  }
}

@media screen and (max-width: 450px) {
  .banner {
    height: auto;
    position: fixed;
    top: 0;
    z-index: 1000;
    box-shadow: 0px 1px 7px 0px #00000024;
  }
  .group-banner {
    display: flex;
  }
  .title {
    padding: 0px;
  }
  .title-thai {
    padding: 0px;
    font-size: 14px;
    text-align: left;
    line-height: 1 !important;
    /* margin-top: 1%; */
  }
  .title-eng {
    font-size: 8px;
    /* position: fixed; */
    padding-left: 0px;
    line-height: 1 !important;
  }
  .bottom-menu {
    padding: 0px;
  }
  .menu-top {
    display: none;
  }
  .main-page {
    padding: 0px;
  }
  .ant-menu-horizontal > .ant-menu-item-active,
  .ant-menu-horizontal > .ant-menu-item-open,
  .ant-menu-horizontal > .ant-menu-item-selected,
  .ant-menu-horizontal > .ant-menu-item:hover,
  .ant-menu-horizontal > .ant-menu-submenu-active,
  .ant-menu-horizontal > .ant-menu-submenu-open,
  .ant-menu-horizontal > .ant-menu-submenu-selected,
  .ant-menu-horizontal > .ant-menu-submenu:hover {
    -webkit-animation: HoverAttention 1s;
    -webkit-animation-iteration-count: unset;
    animation: HoverAttention 1s;
    animation-iteration-count: unset;
  }
}

@media screen and (max-width: 340px) {
  .group-banner {
    display: flex;
  }
  .banner {
    height: auto;
    position: fixed;
    top: 0;
    z-index: 1000;
    box-shadow: 0px 1px 7px 0px #00000024;
  }
  .title {
    padding: 0px;
  }
  .title-thai {
    font-size: 13px;
    text-align: left;
  }
  .title-eng {
    font-size: 8px;
  }
  .bottom-menu {
    padding: 0px;
  }
  .menu-top {
    display: none;
  }
  .main-page {
    padding: 0px;
  }
  .ant-menu-horizontal > .ant-menu-item-active,
  .ant-menu-horizontal > .ant-menu-item-open,
  .ant-menu-horizontal > .ant-menu-item-selected,
  .ant-menu-horizontal > .ant-menu-item:hover,
  .ant-menu-horizontal > .ant-menu-submenu-active,
  .ant-menu-horizontal > .ant-menu-submenu-open,
  .ant-menu-horizontal > .ant-menu-submenu-selected,
  .ant-menu-horizontal > .ant-menu-submenu:hover {
    -webkit-animation: HoverAttention 1s;
    -webkit-animation-iteration-count: unset;
    animation: HoverAttention 1s;
    animation-iteration-count: unset;
  }
}

@media screen and (max-width: 340px) {
  .group-banner {
    display: flex;
  }
  .banner {
    height: auto;
    position: fixed;
    top: 0;
    z-index: 1000;
    box-shadow: 0px 1px 7px 0px #00000024;
  }
  .title {
    padding: 0px;
  }
  .title-thai {
    font-size: 11px;
    text-align: left;
    /* margin-top: 5px; */
  }
  .title-eng {
    font-size: 6px;
    /* position: fixed; */
  }
  .icon-menu {
    position: fixed;
    top: 2px;
  }
  .bottom-menu {
    padding: 0px;
  }
  .menu-top {
    display: none;
  }
  .main-page {
    padding: 0px;
  }
  .ant-menu-horizontal > .ant-menu-item-active,
  .ant-menu-horizontal > .ant-menu-item-open,
  .ant-menu-horizontal > .ant-menu-item-selected,
  .ant-menu-horizontal > .ant-menu-item:hover,
  .ant-menu-horizontal > .ant-menu-submenu-active,
  .ant-menu-horizontal > .ant-menu-submenu-open,
  .ant-menu-horizontal > .ant-menu-submenu-selected,
  .ant-menu-horizontal > .ant-menu-submenu:hover {
    -webkit-animation: HoverAttention 1s;
    -webkit-animation-iteration-count: unset;
    animation: HoverAttention 1s;
    animation-iteration-count: unset;
  }
}

.ant-menu-horizontal > .ant-menu-item:hover,
.ant-menu-horizontal > .ant-menu-submenu:hover,
.ant-menu-horizontal > .ant-menu-item-active,
.ant-menu-horizontal > .ant-menu-submenu-active,
.ant-menu-horizontal > .ant-menu-item-open,
.ant-menu-horizontal > .ant-menu-submenu-open,
.ant-menu-horizontal > .ant-menu-item-selected,
.ant-menu-horizontal > .ant-menu-submenu-selected {
  color: var(--header-color) !important;
  border-bottom: 2px solid var(--header-color) !important;
}

@-webkit-keyframes HoverAttention {
  from {
    border-bottom: 2px solid var(--header-color);
    -webkit-box-shadow: 0px 0px 0px 0px var(--coop-main-color);
    -moz-box-shadow: 0px 0px 0px 0px var(--coop-main-color);
    box-shadow: 0px 0px 0px 0px var(--coop-main-color);
  }
  to {
    border-bottom: 2px solid var(--header-color);
    -webkit-box-shadow: 7px 0px 0px 0px rgba(126, 146, 97, 0);
    -moz-box-shadow: 7px 0px 0px 0px rgba(130, 194, 38, 0);
    box-shadow: 7px 0px 0px 0px rgba(130, 194, 38, 0);
  }
}

@keyframes HoverAttention {
  from {
    border-bottom: 2px solid var(--header-color);
    -webkit-box-shadow: 0px 0px 0px 0px var(--coop-main-color);
    -moz-box-shadow: 0px 0px 0px 0px var(--coop-main-color);
    box-shadow: 0px 0px 0px 0px var(--coop-main-color);
  }
  to {
    border-bottom: 2px solid var(--header-color);
    -webkit-box-shadow: 7px 0px 0px 0px rgba(130, 194, 38, 0);
    -moz-box-shadow: 7px 0px 0px 0px rgba(130, 194, 38, 0);
    box-shadow: 0px 7px 0px 0px rgba(130, 194, 38, 0);
  }
}

@keyframes ActiveMenu {
  from {
    -webkit-box-shadow: 0px 0px 0px 0px var(--coop-main-color);
    -moz-box-shadow: 0px 0px 0px 0px var(--coop-main-color);
    box-shadow: 0px 0px 0px 0px var(--coop-main-color);
  }
  to {
    -webkit-box-shadow: 0px 0px 0px 5px rgba(130, 194, 38, 0);
    -moz-box-shadow: 0 rgba(130, 194, 38, 0);
    box-shadow: 0 rgba(130, 194, 38, 0);
  }
}

@media screen and (max-width: 280px) {
  .group-banner {
    display: flex;
  }
  .banner {
    height: auto;
    position: fixed;
    top: 0;
    z-index: 1000;
    box-shadow: 0px 1px 7px 0px #00000024;
  }
  .partner-font {
    font-size: 12px;
  }
  .partner-img {
    width: 50px;
    margin-right: 5px;
  }
  .partner-title {
    font-size: 12px;
  }
  .title {
    padding: 0px;
  }
  .title-thai {
    font-size: 11px;
    text-align: left;
    /* margin-top: 5px; */
  }
  .title-eng {
    font-size: 6px;
    /* position: fixed; */
  }
  .icon-menu {
    display: none;
    position: fixed;
    top: 8px;
    right: 10px;
    font-size: 24px;
    cursor: pointer;
    border: 1px solid var(--header-color);
    width: 24px;
    height: 24px;
    padding: 0px;
    background-color: #ffffff;
  }
  .icon-menu {
    position: fixed;
    top: 2px;
    right: 0px;
  }
  .bottom-menu {
    padding: 0px;
  }
  .menu-top {
    display: none;
  }
  .main-page {
    padding: 0px;
  }
  .ant-menu-horizontal > .ant-menu-item-active,
  .ant-menu-horizontal > .ant-menu-item-open,
  .ant-menu-horizontal > .ant-menu-item-selected,
  .ant-menu-horizontal > .ant-menu-item:hover,
  .ant-menu-horizontal > .ant-menu-submenu-active,
  .ant-menu-horizontal > .ant-menu-submenu-open,
  .ant-menu-horizontal > .ant-menu-submenu-selected,
  .ant-menu-horizontal > .ant-menu-submenu:hover {
    -webkit-animation: HoverAttention 1s;
    -webkit-animation-iteration-count: unset;
    animation: HoverAttention 1s;
    animation-iteration-count: unset;
  }
}
