* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Kanit", sans-serif;
}
*:before,
*:after {
  box-sizing: border-box;
}
body {
  background: linear-gradient(to top, #540f4e, #5a0e54);
  overflow-x: hidden !important;
  min-height: 100vh;
}

h1 {
  font-size: 2.2em !important;
  color: #ffe88a;
  margin: 10px 0;
  font-weight: 500;
}

h2 {
  font-size: 1.9em !important;
  color: #ffe88a;
  margin: 10px 0;
  font-weight: 500;
}
h3 {
  font-size: 1.8em !important;
  color: #cf0;
  margin: 10px 0;
  font-weight: 500;
}

h4 {
  font-size: 1.65em !important;
  color: #cf0;
  margin: 10px 0;
  font-weight: 500;
}
h5 {
  font-size: 1.45em !important;
  color: #cf0;
  margin: 10px 0;
  font-weight: 500;
}
a {
  text-decoration: none;
}

p {
  font-size: 17px;
  font-weight: 400;
  color: #e9e9e9;
}
p strong {
  color: #e5ff00;
  font-weight: 600 !important;
}
p strong em {
  color: #e5ff00;
}
p strong a {
  color: #e5ff00;
  text-decoration: underline;
}
p strong a:hover {
  color: #e5ff00;
  opacity: 0.6;
  transition: 0.3s;
}
p a {
  text-decoration: underline;
  color: #e5ff00;
}
p a:hover {
  opacity: 0.6;
  transition: 0.3s;
}
p em {
  color: #e5ff00;
}
p u {
  color: #e5ff00;
}

.white {
  color: #ffffff !important;
}
.img-max {
  max-width: 100% !important;
  height: auto !important;
  display: block !important;
  margin: auto !important;
}
.txt-indent {
  text-indent: 2em;
}

/* ** */
.zoom {
  -webkit-transition: 0.3s ease-in-out;
  transition: 0.3s ease-in-out;
}
.zoom:hover {
  -webkit-transform: scale(1.1);
  transform: scale(1.1);
}
.hov-top {
  -webkit-transition: 0.3s ease-in-out;
  transition: 0.3s ease-in-out;
}
.hov-top:hover {
  -webkit-transform: translateY(-5px);
  transform: translateY(-5px);
}
/* ** */

/* ****************************** */

#bread-crumbs .container {
  background-image: linear-gradient(
    to right,
    #c81c06,
    #c81c04,
    #c81c06,
    #c81c06
  );
  margin-top: 10px;
  border-radius: 3px;
  box-shadow: 1px 1px 1px #000;
}
.nav-breadcrumb {
  padding: 8px 8px 8px 20px;
}
.navbar-breadcrumb {
  padding: 8px 10px;
  width: 100%;
}
.breadcrumb-item a {
  font-size: 20px !important;
  font-weight: 500;
  color: #ffffff;
}
.breadcrumb-item a:hover {
  text-decoration: underline;
  opacity: 0.8;
  transition: 0.5s;
}
.breadcrumb-item.active {
  color: #ece800;
  font-size: 20px !important;
}
.breadcrumb-item + .breadcrumb-item::before {
  color: #f1f1f1;
}
.breadcrumb {
  margin-bottom: 0 !important;
}
/* *************** */

/* table */
.toc-title {
  text-align: center;
  font-weight: 700;
  margin: 0;
  padding: 0;
  visibility: hidden;
  position: relative;
  justify-content: center;
}

.toc-title:after {
  visibility: visible;
  display: flex;
  justify-content: center;
  content: "สารบัญ";
  font-size: 2em;
  background: linear-gradient(to bottom, #fff200, #fbff02);
  background-size: 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(1px 1px 1px #505050);
  /* color: #d07800; */
}

.widget-toc {
  display: table;
  border-radius: 10px;
  box-shadow: 1px 1px 10px #d1d1d1;
  padding-right: 1rem;
  margin: 2em 0 !important;
  font-size: 95%;
  width: 50%;
}
.widget-toc a {
  color: #fff;
  text-decoration: underline !important;
  font-size: 16px;
}
.widget-toc a:hover {
  text-decoration: none;
  opacity: 0.6;
  transition: 0.3s;
}
.widget-toc ol {
  padding-right: 0px;
  counter-reset: item;
}
.widget-toc ol li {
  display: block;
  position: relative;
}
.widget-toc ol li:before {
  content: counters(item, ".");
  counter-increment: item;
  position: absolute;
  margin-right: 100%;
  right: 0.5rem;
  inline-size: max-content;
}
/* table */

.site-header {
  padding: 0px 20px;
  background-color: #00000099;
  box-shadow: 0 0 5px #000;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
}
.x-flex {
  display: flex;
  align-items: center;
}
.x-flex a {
  margin-left: 15px;
}
/* ****fsfsfsd**** */

@-webkit-keyframes x-hamburger-wave {
  0% {
    width: 70%;
  }
  to {
    width: 100%;
  }
}
@keyframes x-hamburger-wave {
  0% {
    width: 70%;
  }
  to {
    width: 100%;
  }
}
.x-hamburger {
  margin-right: 20px;
  margin-top: 6px;
  width: 25px;
  height: 24px;
  position: relative;
  transition: 0.5s ease-in-out;
  cursor: pointer;
}
.x-hamburger,
.x-hamburger span {
  -webkit-transform: rotate(0deg);
  transform: rotate(0deg);
}
.x-hamburger span {
  width: 70%;
  display: block;
  position: absolute;
  height: 3px;
  background: #fff;
  border-radius: 9px;
  opacity: 1;
  left: 0;
  transition: 0.25s ease-in-out;
}
.x-hamburger span:first-child {
  top: 0;
  -webkit-transform-origin: left center;
  transform-origin: left center;
  -webkit-animation: x-hamburger-wave 0.4s ease-out infinite alternate;
  animation: x-hamburger-wave 0.4s ease-out infinite alternate;
}
.x-hamburger span:nth-child(2) {
  top: 9px;
  -webkit-transform-origin: left center;
  transform-origin: left center;
  -webkit-animation: x-hamburger-wave 0.4s ease-out 0.3s infinite alternate;
  animation: x-hamburger-wave 0.4s ease-out 0.3s infinite alternate;
}
.x-hamburger span:nth-child(3) {
  top: 18px;
  -webkit-transform-origin: left center;
  transform-origin: left center;
  -webkit-animation: x-hamburger-wave 0.4s ease-out 0.6s infinite alternate;
  animation: x-hamburger-wave 0.4s ease-out 0.6s infinite alternate;
}
.x-hamburger.open {
  width: 25px;
}
.x-hamburger.open span {
  width: 100%;
  -webkit-animation: none;
  animation: none;
}
.x-hamburger.open span:first-child {
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
  top: 0;
  left: 5px;
}
.x-hamburger.open span:nth-child(2) {
  width: 0;
  opacity: 0;
}
.x-hamburger.open span:nth-child(3) {
  -webkit-transform: rotate(-45deg);
  transform: rotate(-45deg);
  top: 18px;
  left: 5px;
}
.nav-menu {
  position: relative;
  width: 100%;
  height: 80px;
}
.nav-menu ul {
  position: absolute;
  z-index: 2;
  width: 100%;
  top: -10px;
  left: 0;
  display: flex;
  justify-content: center;
  list-style: none;
  padding: 0;
}
.nav-menu ul li {
  display: inline-block;
  height: 95px;
  padding: 20px 10px 0px 10px;
  background-color: #940000;
  margin-right: 10px;
  box-shadow: 0 0 4px #3d3d3d;
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;
  -webkit-transition: 0.3s ease-in-out;
  transition: 0.3s ease-in-out;
}
.nav-menu ul li:hover {
  background-color: #ddb72c;
}
.nav-menu ul li a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.nav-menu ul li a span {
  display: block;
  font-size: 17px;
  font-weight: 500;
  color: #fff;
}
.site-button {
  display: flex;
  justify-content: center;
  align-items: center;
}
.site-button a {
  display: inline-block;
  margin: 0 8px;
  font-size: 16px;
  color: #2f0f02;
  padding: 8px 35px;
  -webkit-transition: 0.3s ease-in-out;
  transition: 0.3s ease-in-out;
}
.site-button a:hover {
  filter: brightness(125%);
  transform: translateY(-3px);
}
.site-button a.first-btn {
  background: linear-gradient(to top, #f1f5f6, #d4d5d9);
  border: 1px solid #fff;
  border-radius: 5px;
}
.site-button a.fst-btn {
  background-color: #fd5f00;
  border: 1px solid #ff8234;
  color: #fff !important;
  border-radius: 5px;
}
.site-button a.last-btn {
  background-color: #1500fd;
  border: 1px solid #4f3fff;
  color: #fff !important;
  border-radius: 5px;
}
.nav-aside {
  position: fixed;
  top: 80px;
  left: 0;
  width: 245px;
  height: 100vh;
  overflow: hidden;
}
.nav-aside ul {
  list-style: none;
  padding: 0;
  display: block;
  height: 100%;
  overflow-x: hidden;
  padding-bottom: 90px;
}
.nav-aside ul::-webkit-scrollbar {
  width: 5px;
}
.nav-aside ul::-webkit-scrollbar-track {
  background: #7e0000;
}
.nav-aside ul::-webkit-scrollbar-thumb {
  background: #ff4242;
}

.nav-aside ul li {
  margin-bottom: 20px;
  padding: 10px 15px;
  background-color: #ddb72c;
  border-radius: 10px;
  width: 80%;
  margin-left: 50%;
  transform: translateX(-50%);
  -webkit-transition: 0.3s ease-in-out;
  transition: 0.3s ease-in-out;
}
.nav-aside ul li:hover {
  background-color: none;
  background: linear-gradient(#d29c26, #9a0f03);
  box-shadow: 0 0 5px #484848;
}
.nav-aside ul li a {
  display: flex;
  flex-direction: row;
  align-items: center;
  width: 100%;
}
.nav-aside ul li a span {
  display: block;
  font-size: 17px;
  font-weight: 400;
  line-height: 1;
  color: #fff;
}
.nav-aside ul li:first-child {
  margin-top: 15px !important;
}
.site-footer {
  padding-top: 40px;
  background-color: #31072d;
}

marquee.marquee {
  cursor: pointer;
  padding: 10px;
  background-color: #ddb72c;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}
marquee.marquee span {
  display: block;
  font-size: 16px;
  color: #fff;
}
.card_hit {
  padding: 1em;
  border-radius: 10px;
}
.p-20 {
  padding: 20px;
}
.card_hit span.span-hit {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 28px;
  font-weight: 500;
  color: #fff;
}
.card_hit span.span-hit img {
  margin: 0 8px;
}
.card-box {
  display: block;
  text-align: center;
}
.card-box .figure-hot {
  display: inline-block;
  margin: 8px;
  padding: 10px;
  border: 5px solid #ff0003;
  width: 150px;
  height: 120px;
  overflow: hidden;
  cursor: pointer;
  -webkit-transition: 0.3s ease-in-out;
  transition: 0.3s ease-in-out;
}
.card-box .figure-hot:hover {
  background-color: transparent;
  -webkit-transform: scale(1.1);
  transform: scale(1.1);
}
.card-box .figure-hot span {
  display: block;
  font-size: 16px;
  font-weight: 500;
  color: #fff;
}

.card-box .figure-hot:first-child {
  background-color: transparent;
}
.nav-mobile {
  display: none !important;
}
.d-mb {
  display: none !important;
}
.main_slider {
  display: none !important;
  width: 100%;
  padding: 20px;
  overflow-x: scroll;
  box-sizing: border-box;
  background-color: #590000;
}
.main_slider::-webkit-scrollbar {
  display: none !important;
}
.main_slider {
  -ms-overflow-style: none;
}
.slider_container {
  display: block;
  white-space: nowrap;
}
.item {
  display: inline-block;
  margin-right: 20px;
}
.item a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.item a img {
  display: block;
  text-align: center;
}
.item a span {
  display: block;
  font-size: 16px;
  font-weight: 500;
  color: #fff;
}
.sidenav-slide {
  display: none;
  height: 100%;
  width: 0;
  position: fixed;
  z-index: 999;
  top: 0;
  left: 0;
  background-color: #31072d;
  overflow-x: hidden;
  transition: 0.6s;
}
.logo-nav-mb {
  padding: 15px 0;
  background-color: #00000099;
}
.btn-menu {
  display: flex;
  justify-content: space-between;
  padding: 12px 10px;
  border-bottom: 2px solid #c2741c;
}
.btn-menu button {
  width: 48%;
  font-size: 14px;
  font-weight: 400;
  color: #fff;
  padding: 8px;
  border-radius: 20px;
  box-shadow: 0 0 3px #3d3d3d;
}
.btn-menu button:last-child {
  background-image: linear-gradient(to bottom, #e4e5e7, #f3f7f8);
  border: 1px solid #fff;
  color: #000;
}
.btn-menu button:first-child {
  background-image: linear-gradient(to bottom, #e4e5e7, #f3f7f8);
  border: 1px solid #fff;
  color: #000;
}
.sidenav ul {
  padding: 0 !important;
  list-style: none;
  display: block;
}
.sidenav ul li {
  padding: 13px 10px;
  background-color: #590e51;
  margin-bottom: 15px;
  border-radius: 10px;
  box-shadow: 0 0 3px #3d3d3d;
}
.sidenav ul li:first-child {
  background-image: linear-gradient(to bottom, #590e51, #31072d);
}
.sidenav ul li a {
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
}
.sidenav ul li a span {
  display: block;
  font-size: 16px;
  font-weight: 400;
  color: #fff;
  margin-left: 8px;
}
.btn-btn-success {
  width: fit-content;
  display: block;
  padding: 10px 35px;
  font-size: 18px;
  font-weight: 400;
  color: #fff;
  border-radius: 10px;
  border: 1px solid #cf0;
  background-image: linear-gradient(to bottom, #cf9524, #990c03);
}
.bg_articles {
  overflow: hidden;
  background-color: #560f50;
  border: 5px solid #d63384;
}
.news-articles-h4 {
  display: block;
  font-size: 20px;
  color: #ffffff;
}
.view_date {
  color: #e6e6e6;
}
.tag__info {
  padding: 10px;
  display: block;
  text-align: center;
}
.tag__info a {
  display: inline-block;
  margin: 5px;
  padding: 3px 10px;
  font-size: 14px;
  font-weight: 400;
  color: #fff;
  border-radius: 5px;
  background-color: #390000;
}
.site {
  color: #fff;
  text-align: center;
}
.site span a {
  color: #cf0;
}
.box-name-category p,
.box-name-tag p {
  display: inline-block;
}
.box-name-category a {
  color: #cf0;
}
.box-name-tag a {
  display: inline-block;
  margin: 5px;
  padding: 3px 10px;
  font-size: 14px;
  font-weight: 400;
  color: #fff;
  border-radius: 5px;
  background-color: #000;
}
.buttons {
  display: block;
}
.buttons a {
  display: inline-block;
  margin: 5px;
  width: fit-content;
  padding: 8px 20px;
  border-radius: 5px;
  font-size: 18px;
  font-weight: 400;
  color: #fff;
  -webkit-transition: 0.3s ease-in-out;
  transition: 0.3s ease-in-out;
}
.buttons a:hover {
  opacity: 0.8;
  -webkit-transform: scale(1.1);
  transform: scale(1.1);
}
.buttons a i {
  margin-right: 5px;
}
.buttons a:first-child {
  background-color: #1500fd;
}
.buttons a:last-child {
  background-color: #11fd00;
}
.buttons a:nth-child(2) {
  background-color: #00cffd;
}
.str-news a {
  font-size: 24px;
  font-weight: 500;
  color: #cf0;
}
.article-content {
  background-color: #00000033;
}
.a-in {
  padding: 10px 20px;
  display: block;
  font-size: 16px;
  font-weight: 400;
  color: #f1f1f1;
}
section.error {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background-color: #000;
}
section.error strong {
  display: block;
  font-size: 4em;
  color: #ff0000;
}
section.error p {
  color: #fff;
}

/* .card-float-text img{
  display: block;
  float: left;
  width: 250px !important;
  padding: 20px;
} */
article.main-content {
  overflow-x: hidden !important;
}
.nav-sticky {
  display: none !important;
}
@media only screen and (max-width: 1373px) {
  .nav-menu ul {
    position: relative;
    z-index: 0;
    width: 100%;
    top: 0;
    left: 0;
    display: flex;
    list-style: none;
    padding: 0;
  }
  .nav-menu ul li a span {
    font-size: 13px !important;
  }
}
@media only screen and (max-width: 992px) {
  .nav-sticky {
    display: flex !important;
    justify-content: space-around;
    align-items: center;
    position: sticky;
    position: -webkit-sticky;
    left: 0;
    bottom: 0;
    padding: 10px;
    background-image: linear-gradient(to bottom, #000, #3d0042);
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
  }
  .nav-sticky .btn-a {
    display: inline-block;
    padding: 6px 25px;
    background-image: linear-gradient(to right, #ffb605, #f0e300);
    border-radius: 5px;
    box-shadow: 2px 2px 1px #832f00;
    font-size: 16px;
    font-weight: 500;
    color: #000;
  }
  .site-header {
    padding: 0px 10px;
    height: auto !important;
    position: relative !important;
  }
  .d-desk {
    display: none !important;
  }
  .main-content {
    padding-left: 0px;
    padding-top: 0px;
  }
  .site-footer {
    padding-left: 0px;
    padding-top: 0px;
  }
  .nav-aside {
    display: none;
  }
  .main_slider {
    display: block !important;
  }
  .d-mb {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
  }
  .main-hamburger {
    display: flex;
    align-items: center;
  }
  .sidenav-slide {
    display: block;
    padding-bottom: 120px;
  }
  .closebtn {
    position: absolute;
    top: -5px;
    right: 23px;
    font-size: 40px;
    color: white;
    display: flex;
    cursor: pointer;
  }
  .sidenav {
    padding: 1em 10px 0 10px;
  }
  .ft-logo {
    width: 210px !important;
  }
}
@media (max-width: 636px) {
  .d-mb .main-hamburger a img {
    width: 150px !important;
  }
  .d-mb .main-hamburger a {
    margin-left: 0px !important;
  }
  .item a img {
    width: 23px !important;
    height: 23px !important;
  }
  .item a span {
    font-size: 14px;
    font-weight: 400;
  }
  marquee span {
    font-size: 14px !important;
  }
}

@media (max-width: 527px) {
  .site-button a {
    font-size: 11px;
    padding: 8px 10px !important;
  }
}
@media (max-width: 444px) {
  .d-mb .main-hamburger a img {
    width: 120px !important;
  }
}

.content-bg1 {
  position: relative;
  border: 4px solid transparent;
  border-radius: 16px;
  background: linear-gradient(to top, #231f20, #231f20);
  background-clip: padding-box;
  padding: 10px;
}
.content-bg1::after {
  position: absolute;
  top: -4px;
  bottom: -4px;
  left: -4px;
  right: -4px;
  background: linear-gradient(
    to right,
    #cc502c 0%,
    #f9e069 25%,
    #cc5326 70%,
    #ffeb6e 80%,
    #cc502c 100%
  );
  content: "";
  z-index: -1;
  border-radius: 16px;
}

.h-bg1 {
  background-image: url(../img/background/3-05.webp);
  background-size: 100% 100%;
  padding: 15px 2em;
}

.h-bg2 {
  background: linear-gradient(
    to right,
    #9b0075 0%,
    #2c0021 25%,
    #dc7001 50%,
    #2c0021 75%,
    #9b0075 100%
  );
  padding: 0.5em;
  border-radius: 2em;
}

.header-fixed {
  position: absolute;
  margin-left: auto;
  margin-right: auto;
  left: 0;
  right: 0;
  text-align: center;
  background-color: #00000088;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

.big-p1 {
  font-size: 1.5em;
  color: #fff;
}
