:root {
  --color-purple-light: #a728ff;
  --color-purple-lighted: #bf89eb;
  --color-purple-dark: #6f4c8a;
  --color-purple-darked: #8321c4;
  --color-pink-light: #e50381;
  --color-pink-lighted: #e47fba;
  --color-yellow-light: #fffba9;
}

* {
  padding: 0em;
  margin: 0em;
}
body {
  height: 100vh;
  width: 100%;
  background-color: #0c0c0c;
  font-family: "Prompt", sans-serif !important;
  color: #e0e0e0 !important;
  cursor: default !important;
  word-break: break-word;
  font-size: 14px;
}
a,
p {
  text-decoration: unset !important;
}
.link_a,
p a,
p a strong,
p a strong em {
  color: #ffeb3b;
  font-weight: bolder;
}
.link_a:hover,
p a:hover,
p a strong:hover,
p a strong em:hover {
  color: #c1c1c1;
}
strong {
  color: #00bcd4;
}
h1,
h2,
h3,
h4,
h5 {
  color: #03a9f4;
  font-weight: 700;
}
h1 {
  font-size: 28px;
}
h2 {
  font-size: 25px;
}
h3 {
  font-size: 23px;
}
h4,
h5 {
  font-size: 20px;
}
.fa-search {
  color: #fff;
}
.big-p {
  font-size: 1.1em;
  color: #ffc100;
}
.big-p-w {
  font-size: 1.1em;
  color: #ffffff;
}
.big-p-b {
  font-size: 1.1em;
  color: #2790bd;
}
.breadcrumb-item a {
  color: #fff;
}
.breadcrumb-item.active {
  color: #c1c1c1;
}
.breadcrumb-item + .breadcrumb-item::before {
  color: #cfcfcf;
}
/* form mobile */
.bg-form-mobile {
  background-color: #ddd;
  margin: 6px auto;
  color: #000;
  width: 100%;
}
.on-mobile {
  display: none;
}
.form-control:focus {
  border-color: rgba(255, 255, 255, 0) !important;
  -webkit-box-shadow: none !important;
  -moz-box-shadow: none !important;
  box-shadow: none !important;
}
.relative ::-webkit-input-placeholder {
  text-align: center;
}
.form-user,
.form-pass {
  background-color: #000 !important;
  border: 1px solid #fff !important;
  border-radius: 0.5em !important;
  color: #fff !important;
}
.form-user::placeholder,
.form-pass::placeholder {
  color: #fff !important;
}
.form-search {
  background-color: #fff !important;
  border: 2px solid #000 !important;
  border-radius: 2em !important;
}
.form-search::placeholder {
  text-align: start;
}
.icon-search-mobile {
  padding: 0.2em;
  margin: 0.2em;
  position: absolute;
  height: 25px;
  width: 25px;
  right: 0.3em;
  top: 0.3em;
  z-index: 1;
}
.icon-search-mobile:hover {
  transform: scale(1.1);
}
@media screen and (max-width: 991px) {
  .form-outline {
    display: none !important;
  }
}
.bg-btn-login-mobile {
  background: linear-gradient(to top, #3f51b5, #2a8fbd);
  border-radius: 15px;
  border: solid 3px #fff;
  color: #fff;
  width: 100%;
}
.bg-btn-login-mobile:hover {
  color: #f1f1f1 !important;
}
.btn-register {
  background: linear-gradient(#9f3d00, #9f3d00);
  border-radius: 15px;
  border: solid 3px #dfb67e;
  color: #fff;
}
.btn-register:hover {
  color: #000 !important;
  background-color: #fff !important;
}
.btn-register-mobile {
  background: linear-gradient(to top, #3f51b5, #2a8fbd);
  border-radius: 15px;
  border: solid 3px #fff;
  color: #fff;
  width: 100%;
}
@media (max-width: 991px) {
  .on-mobile {
    display: block;
  }
  .mobile-collap-button {
    flex-direction: column;
    align-content: center;
    text-align: center;
    margin-top: 1em;
  }
  .nav-link {
    text-align: center;
  }
  .form-user {
    width: 100% !important;
    background-color: #000 !important;
  }
  .form-pass {
    width: 100% !important;
    background-color: #000 !important;
  }
}
/* navbar */
.navbar-nav {
  background-color: #2a8fbd;
}
.navbar-nav .nav-item .nav-link {
  background-color: #000;
  color: #fff;
}
.navbar-nav .nav-item .nav-link:hover {
  background-color: #fff;
  color: #000;
}
.header-small-size {
  display: none;
}

/* 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: flex-start !important;
  content: "สารบัญ";
  font-size: 2em;
  font-weight: 700;
  padding-left: 20px;
  color: #fff;
}

.widget-toc {
  display: table;
  padding-right: 1rem;
  margin: 2em 0 !important;
  font-size: 95%;
  width: 100%;
  background-image: linear-gradient(rgb(0, 0, 0, 0.6), rgb(0, 0, 0, 0.6));
  border: 1px solid #535353;
  border-radius: 5px;
}
.widget-toc a {
  color: #f1f1f1f1;
  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;
}
/* //// */
.section-bg {
  background-color: #000;
  padding: 15px 0;
}
.table-responsive td {
  color: #fff !important;
  padding: 15px 10px !important;
}
nav#toc {
  width: 100%;
  border: 1px solid #f1f1f1;
  box-shadow: 0 0 2px #fff;
  margin-bottom: 10px;
  background-image: linear-gradient(rgb(0, 0, 0, 0.6), rgb(0, 0, 0, 0.6));
}
nav#toc p {
  font-size: 23px !important;
  font-weight: 700;
  padding: 10px 20px;
}
#scrollTopBtn {
  position: fixed;
  bottom: 40px;
  right: 40px;
  display: none;
  z-index: 99;
  width: 40px;
  height: 40px;
  border-radius: 5px;
  background-color: #007bff;
  border: none;
  display: flex;
  justify-content: center;
  align-items: center;
}
#scrollTopBtn:hover {
  background-color: #0056b3;
}

@media (max-width: 991px) {
  .nav-bg {
    z-index: 0;
    overflow: hidden;
  }
  .nav-main-pc {
    display: none;
  }
  .header-small-size {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
}
@media (max-width: 800px) {
  #scrollTopBtn {
    bottom: 100px;
  }
}
@media (max-width: 500px) {
  .header-small-size a.logo img {
    width: 200px !important;
  }
}
.nav-bg {
  z-index: 999;
}
.text-slide {
  background-color: var(--color-yellow-light);
  color: var(--color-purple-dark);
}

.relative {
  position: relative;
}

/* content */
#more,
#more1,
#more2,
#more3 {
  display: none;
}
.bg-content-1 {
  background-color: #1f1f1f;
  padding: 1em;
}
.bg-content-2 {
  background-color: #2a8fbd;
  padding: 1em;
}
.half-bg {
  background-image: linear-gradient(180deg, #1b1716 50%, #640000 50%);
}
.text-bold {
  color: #fff;
  /*background-color: var(--color-purple-light);*/
  padding: 0.5em 0 0.5em 0;
}
.text-bold2 {
  color: #fff;
  background-color: var(--color-pink-light);
  padding: 0.5em 0 0.5em 0;
}
.txt-int {
  text-indent: 1.5em;
}
.border-radius {
  border-radius: 1em;
}
p {
  animation: fadein 2s;
  -moz-animation: fadein 2s; /* Firefox */
  -webkit-animation: fadein 2s; /* Safari and Chrome */
  -o-animation: fadein 2s; /* Opera */
}
@keyframes fadein {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@-moz-keyframes fadein {
  /* Firefox */
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@-webkit-keyframes fadein {
  /* Safari and Chrome */
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@-o-keyframes fadein {
  /* Opera */
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 22px;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #2196f3;
  -webkit-transition: 0.4s;
  transition: 0.4s;
}
.slider:before {
  position: absolute;
  content: "";
  height: 15px;
  width: 15px;
  left: 2px;
  bottom: 3px;
  background-color: white;
  -webkit-transition: 0.4s;
  transition: 0.4s;
}
input:checked + .slider {
  background-color: #1a237e;
}
input:focus + .slider {
  box-shadow: 0 0 1px #2196f3;
}
input:checked + .slider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}
.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}
/* footer */
@media screen and (max-width: 768px) {
  .footer-bg {
    padding-bottom: 6em !important;
  }
}
.footer-bg {
  background-color: #1b1716;
}
.link_login {
  color: #fff;
}
.link_login:hover {
  color: rgb(194, 194, 194);
}
.content-border {
  border-top: dotted 1px #838383;
  padding: 10px 0 0 0;
}
.sep-menu {
  padding: 1.5em 0;
}
.r-border {
  border-right: 1px solid transparent;
  border-image: linear-gradient(to top, #80808000, #808080, #80808000) 1;
}
.t-border {
  border-top: 1px solid transparent;
  border-image: linear-gradient(to right, #80808000, #808080, #80808000) 1;
}
/* footer nav sticky  */
.nav-footer {
  z-index: 9999;
  display: none;
}
.fas,
.fab {
  font-size: 2rem;
  color: #fff;
}

@media only screen and (max-width: 800px) {
  .nav-footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: linear-gradient(rgb(63 81 181 / 0%), #03a9f4);
    left: 0;
    border-top-left-radius: 25px;
    border-top-right-radius: 25px;
    height: 80px;
    box-shadow: 0px -3px 18px 0px #00000096;
    backdrop-filter: blur(5px);
    border-top: 3px solid #fff;
  }
  .nav-footer-col4 {
    width: 25%;
    float: left;
    text-align: center;
  }
  .col4-bottom {
    font-size: 14px;
    color: #fff;
    letter-spacing: 1px;
    font-weight: 300;
  }
  .nav-footer {
    display: block;
  }
}

/* header nav */
.btn-login-nav {
  border-radius: 0.5em;
  color: #fff;
}
.home-icon {
  animation-duration: 2s;
  animation-name: zoom-in-out;
  animation-delay: 0;
  animation-iteration-count: infinite;
  animation-direction: forward;
}
@keyframes zoom-in-out {
  0% {
    opacity: 0.5;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.1);
  }

  100% {
    opacity: 0.5;
    transform: scale(1);
  }
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0;
}
.logo {
  cursor: pointer;
  z-index: 999;
  transition: 0.3s ease-in-out;
  max-width: 280px;
}
.logo:hover {
  transform: scale(1.03);
}
.dropdown-menu {
  opacity: 0.8;
  background-color: #fff !important;
}
.dropdown-item {
  color: #fff !important ;
  opacity: 1 !important;
}
.dropdown-col a {
  color: #000 !important;
}
.dropdown-item:hover {
  color: #fff !important ;
  background-color: #000 !important;
}
@media only screen and (max-width: 991px) {
  .dropdown-col a {
    color: #fff !important;
  }
  .dropdown-item:hover {
    color: #000 !important ;
    background-color: #fff !important;
  }
  .dropdown-item {
    background-color: #000 !important;
  }
  .collapse:not(.show) {
    display: none !important;
  }
  .dropdown-menu.show {
    display: contents !important;
    text-align: center !important;
  }
  .navbar .nav-item .dropdown-menu {
    display: none;
  }
  .navbar .nav-item:hover .dropdown-menu {
    display: block;
  }
  .navbar .nav-item .dropdown-menu {
    margin-top: 0;
  }
}
.searchBox_nav {
  height: 40px;
}
.search_box {
  background: #fff;
  border-radius: 2em;
  display: flex;
  box-shadow: 0 8px 6px -10px #b3c6ff;
}

.search_box .dropdown {
  width: 80px;
  border-right: 2px solid #dde2f1;
  color: var(--color-purple-darked);
  position: relative;
}

.search_box .dropdown .default_option {
  text-transform: uppercase;
  padding: 10px 7px;
}
.search_box .search_field {
  width: 350px;
  height: 100%;
  position: relative;
}

.search_box .search_field .input {
  width: 98%;
  height: 100%;
  border: 0px;
  font-size: 16px;
  color: #6f768d;
}
.search_box .search_field .input:focus-visible {
  outline: #fff;
}

.search_box .search_field .fas {
  position: absolute;
  top: 0.3em;
  right: 10px;
  font-size: 22px;
  color: #5078ef;
  cursor: pointer;
}

::-webkit-input-placeholder {
  /* Chrome/Opera/Safari */
  color: #9fa3b1;
}
::-moz-placeholder {
  /* Firefox 19+ */
  color: #9fa3b1;
}
:-ms-input-placeholder {
  /* IE 10+ */
  color: #9fa3b1;
}
/* Mobile Nav */
svg {
  height: 80px;
  position: absolute;
  width: 60px;
}
.plates {
  display: flex;
  flex-wrap: wrap;
  max-height: 160px;
  width: 640px;
}
@media (max-width: 640px) {
  .plates {
    width: 320px;
  }
}
.plate {
  height: 80px;
  width: 80px;
  cursor: pointer;
}
/* .burger {
	filter: url(#gooeyness);
} */
.burger {
  filter: none;
}
.burger .line {
  stroke: #ffffff;
  stroke-width: 8;
  fill: none;
  stroke-linecap: round;
}

.x {
  transform: scale(0);
  transition: transform 400ms;
}
.line {
  fill: none;
  stroke: #fff;
  stroke-width: 6px;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform-origin: 50%;
  transition:
    stroke-dasharray 500ms 200ms,
    stroke-dashoffset 500ms 200ms,
    transform 500ms 200ms;
}
.x .line {
  stroke-width: 5.5px;
}

.plate4 .x {
  transition: transform 400ms;
}
.plate4 .line {
  transform-origin: 50%;
  transition: transform 400ms 100ms;
}
.active.plate4 .line {
  transition: transform 400ms;
}
.active.plate4 .line1 {
  transform: translateX(18px) translateY(-3px) rotate(-45deg) scale(0.7);
}
.active.plate4 .line2 {
  transform: translateX(-18px) translateY(-3px) rotate(45deg) scale(0.7);
}
.active.plate4 .line3 {
  transform: translateY(0px) rotate(45deg) scale(0.7);
}
.active.plate4 .line4 {
  transform: translateY(0px) rotate(-45deg) scale(0.7);
}
.active.plate4 .line5 {
  transform: translateX(18px) translateY(3px) rotate(45deg) scale(0.7);
}
.active.plate4 .line6 {
  transform: translateX(-18px) translateY(3px) rotate(-45deg) scale(0.7);
}
.active.plate4 .x {
  transition: transform 400ms 100ms;
  transform: scale(1);
}

/* viewall */
.box-article {
  background-color: #000;
  padding: 3em;
}
.article_link a {
  font-size: 2em;
  color: #fff !important;
  text-decoration: none;
  text-shadow: 3px 3px 3px #03a9f4;
}
.article_link a:hover {
  text-decoration: underline !important;
}
.news-articles {
  text-decoration: none !important;
  display: flex;
  justify-content: center;
  text-align: center;
  font-size: 23px;
  color: #fff;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
}
.news-articles-h2 {
  text-decoration: none !important;
  display: flex;
  justify-content: center;
  text-align: center;
  font-size: 23px;
  color: #fff;
  margin-bottom: 10px;

  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
}
.news-articles-h2:hover {
  color: #8d8d8d;
}
.news-articles-p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
.box-articles {
  color: #fff;
}

.container-card {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}
.cards {
  padding: 1em;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  width: clamp(20rem, calc(20rem + 2vw), 22rem);
  overflow: hidden;
  box-shadow: 0 0.1rem 1rem #2196f3;
  transition: 1s box-shadow;
  border-radius: 0.5em;
  background: linear-gradient(to top, #3f51b5, #00bcd4);
}
.cards:hover {
  box-shadow: 0 0.1rem 1.2rem rgba(255, 255, 255, 1);
  transition: 0.3s ease-in-out;
}

.cards img {
  -webkit-transition: 0.4s ease;
  transition: 0.4s ease;
}

.cards:hover img {
  -webkit-transform: scale(1.08);
  transform: scale(1.08);
}

a.cards {
  color: #666 !important;
}

a.cards:hover {
  cursor: pointer;
  text-decoration: none !important;
}

.card__image_show {
  width: auto !important;
  object-fit: cover;
}
.card__image {
  width: auto !important;
  height: 13.75em;
  object-fit: contain;
}

.card__body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.tag {
  align-self: flex-start;
  padding: 0.25em 0.75em;
  border-radius: 1em;
  font-size: 0.75rem;
}

.tag + .tag {
  margin-left: 0.5em;
}

.tag-red {
  background: #5d4037;
  border: 1px solid #fff;
  color: #fff;
  transition: 0.5s;
}
.tag-red:hover {
  background: #fff;
  border: 1px solid #000;
  color: #000;
}
.link-tag {
  align-self: flex-start;
  padding: 0.25em 0.75em;
  border-radius: 1em;
  font-size: 0.75rem;
  background: #000;
  border: 1px solid #fff;
  color: #fff;
  transition: 0.5s;
  text-decoration: none;
}

.link-tag:hover {
  background: #fff;
  border: 1px solid #000;
  color: #000;
}

.card__body h4 {
  font-size: 1.5rem;
  text-transform: capitalize;
}

.card__footer {
  display: flex;
  padding: 1rem;
  margin-top: auto;
}

/* pagi */
.pagination .active {
  font-size: 20px;
  color: #fff;
  border-bottom: 2px solid #fff;
}

.pagination a {
  font-size: 15px;
  color: #fff;
  letter-spacing: 2px;
  text-transform: uppercase;
  display: inline-block;
  padding: 0 15px 5px;
  transition: transform 0.3s;
}

.pagination a:hover {
  color: #d1d1d1;
  -webkit-transform: scale(1.2);
  transform: scale(1.2);
}
/* search */
.searchBox {
  height: 35px;
  border-radius: 40px;
}

.searchBox:hover > .searchInput {
  width: 240px;
  padding: 0 6px;
}
.searchBox:focus-within > .searchInput {
  width: 240px;
  padding: 0 6px;
}

.searchBox:hover > .searchButton {
  color: #2f3640;
}

.searchButton {
  color: white;
  height: 30px;
  width: 30px;
  padding-bottom: 0em;
  border-radius: 50%;
  background: #3a5244;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: 0.4s;
  position: absolute;
  right: 0.4em;
  top: 0.2em;
}

.searchInput {
  border: none;
  border-radius: 1em;
  background: #fff;
  outline: none;
  float: left;
  padding: 0;
  color: #000;
  font-size: 16px;
  transition: 0.4s;
  line-height: 40px;
  width: 0px;
}

@media screen and (max-width: 620px) {
  .searchBox:hover > .searchInput {
    width: 150px;
    padding: 0 6px;
  }
}
@property --num {
  syntax: "<integer>";
  initial-value: 1;
  inherits: false;
}

.countdown {
  animation: counter 5s alternate ease-in-out;
  counter-reset: num var(--num);
  font: 800 40px system-ui;
}
.countdown::after {
  content: counter(num);
}

@keyframes counter {
  from {
    --num: 100;
  }
  to {
    --num: 1;
  }
}

@property --numm {
  syntax: "<integer>";
  initial-value: 3;
  inherits: false;
}

.countdownn {
  animation: counterr 4s alternate ease-in-out;
  counter-reset: numm var(--numm);
  font: 800 40px system-ui;
}
.countdownn::after {
  content: counter(numm);
}

@keyframes counterr {
  from {
    --numm: 100;
  }
  to {
    --numm: 3;
  }
}
.p-grey {
  color: #9e9e9e;
}

.progress {
  background: rgba(255, 255, 255, 0.1);
  justify-content: flex-start;
  border-radius: 100px;
  align-items: center;
  position: relative;
  padding: 0 5px;
  display: flex;
  height: 40px;
  width: 100%;
}

.progress-value {
  animation: load 5s normal forwards;
  box-shadow: 0 10px 40px -10px #fff;
  border-radius: 100px;
  background: #fff;
  height: 30px;
  width: 0;
}

@keyframes load {
  0% {
    width: 100%;
  }
  100% {
    width: 10%;
  }
}

.progresss {
  background: rgba(255, 255, 255, 0.1);
  justify-content: flex-start;
  border-radius: 100px;
  align-items: center;
  position: relative;
  padding: 0 5px;
  display: flex;
  height: 40px;
  width: 100%;
}

.progresss-value {
  animation: loadd 4s normal forwards;
  box-shadow: 0 10px 40px -10px #fff;
  border-radius: 100px;
  background: #fff;
  height: 30px;
  width: 0;
}

@keyframes loadd {
  0% {
    width: 100%;
  }
  100% {
    width: 30%;
  }
}

.mySlides {
  display: none;
}
.w3-left,
.w3-right,
.w3-badge {
  cursor: pointer;
}
.w3-badge {
  height: 13px;
  width: 13px;
  padding: 0;
}
