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

* {
	padding: 0em;
	margin: 0em;
}
body {
  	overflow-x: hidden;
	background-color: #fff;
	font-size: 16px;
	font-family: 'Prompt', sans-serif;
	color: #131313 !important;
	cursor: default !important;
	word-break: break-word;
}
a,
p {
	text-decoration: unset !important;
}
strong, b{
	color: #ffc107;
	font-weight: bold;
}
em { color: #4caf50; }
.link_a{color: #000;}
.link_a:hover{color: #dc3545;}
p a,
p a strong,
p a strong em {
	font-weight: bold;
	color: #03a9f4;
}
p a:hover,
p a strong:hover,
p a strong em:hover {
	color: #dc3545;
}
h1, h2, h3, h4{
	color: #613a15;
	font-weight: bolder;
}
.big-p{
	color: #fff;
	font-size: 1.25em;
	margin: 0;
	font-weight: bolder;
}
.big-p2{
	color: #fff;
	font-size: 3em;
	margin: 0;
	letter-spacing: 3px;
}
.big-p3{
	color: #603912;
	font-size: 1.5em;
	margin: 0;
	font-weight: bold;
}

.breadcrumb-item a {
	color: #795548;
	text-shadow: -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff, 1px 1px 0 #fff;
}
.breadcrumb-item.active {
	color: #3e2723;
	text-shadow: -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff, 1px 1px 0 #fff;
}
.breadcrumb-item + .breadcrumb-item::before {
	color: #ccc;
}
/* form mobile */
.bg-form-mobile {
	background-color: #ddd;
	margin: 6px auto;
	color: #000;
	width: 100%;
}
.on-mobile {
	width: 100%;
	display: none;
}
.form-control:focus {
	border-color: #d3b26a !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 {
    color: #000;
    border: none;
    background-color: #fff;
    margin: 0;
    border-radius: 5px;
    height: 40px;
}
.form-user::placeholder,
.form-pass::placeholder {
	color: #bdbdbd !important;
}
.form-search {
	border: none !important;
	border-radius: .75em !important;
	color: #131313;
	background-color: #fff;
}
.form-search::placeholder {
	text-align: start;
	color: #ccc;
}
.icon-search-mobile {
	padding: 0.1em;
	margin: 0;
	position: absolute;
	height: 25px;
	width: 25px;
	right: 0.3em;
	z-index: 1;
}
.icon-search-mobile:hover {
	transform: scale(1.1);
}
@media screen and (max-width: 992px) {
	.form-outline {
		display: none !important;
	}
}
.btn-bg{
    margin: 0;
    border: 1px solid #000;
    display: block;
    padding: .5rem 0rem;
    text-decoration: none;
    height: 40px;
    background-color: #fff;
	clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%);
}
.btn-bg:hover {
    color: #ffeb3b;
}
.btn-bg2{
    margin: 0;
    border: 1px solid #000;
    display: block;
    padding: .5rem 0rem;
    text-decoration: none;
    height: 40px;
    background-color: #fff;
}
.btn-bg2:hover {
    color: #ffeb3b;
}
@media (min-width: 992px) {
	.on-mobile {
		display: block;
	}
}
@media (max-width: 992px) {
	.mobile-collap-button {
		flex-direction: column;
		align-content: center;
		text-align: center;
		margin-top: 1em;
	}
	.nav-link {
		text-align: center;
	}
	.form-user, .form-pass, .btn-bg, .btn-bg2 {
		margin: .25em 0;
	}
}
.navlink {
	color: #fff;display: inline-flex; margin:.5em .5em;
	border-bottom : solid 3px transparent;
	text-shadow: -1px -1px 0 #222, 1px -1px 0 #222, -1px 1px 0 #222, 1px 1px 0 #222;
}
.navlink:hover {
	color: #00fdc0;
	border-bottom : solid 3px #00fdc0;
	text-shadow: none;
}
/* navbar */
.navbar-nav .nav-item .nav-link {
	background-color: transparent;
	color: #fff;
	margin: 0 .25rem;
	padding: .5rem .5rem;
	border-bottom : solid 3px transparent;
}
.navbar-nav .nav-item .nav-link:hover {
	color: #5ec560;
	border-bottom : solid 3px #5ec560;
}

@media (max-width: 992px) {
	.nav-bg {
		z-index: 0;
		overflow: hidden;
	}
}
.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;
}
.text-bold {
	color: #ffc107;
	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;
}
.txt-int2 {
	text-indent: 4.5em;
}
@media screen and (max-width: 768px) {
	.txt-int2 {
		text-indent: 6em;
	}
}
.border-radius {
	border-radius: .75em;
}
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: #000;
	-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: #000;
}
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: #131313;
}
.link_login {
	color: #fff;
}
.link_login:hover {
	color: rgb(194, 194, 194);
}
.content-border{
	border: solid 5px #d6a86d;padding: 1em;
}

/* footer nav sticky  */
.nav-footer {
	z-index: 9999;
	display: none;
}
.fas,
.fab {
	font-size: 2rem;
	color: #fff;
}
@media screen and (max-width: 980px){
#nav{display: none;}
}
@media only screen and (max-width: 800px) {
	.nav-footer {
		position: fixed;
		bottom: 0;
		width: 100%;
	background: linear-gradient(to top,var(--bs-dark) , var(--bs-gray-dark));
		left: 0;
		border-top-left-radius: 25px;
		border-top-right-radius: 25px;
		height: 80px;
		box-shadow: 0px -3px 18px 0px #00000096;
	}
	.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 {
	background-color: #9f3d00;
	border-radius: 0.5em;
	border: solid 3px #dfb67e;
	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 {
	justify-content: space-between;
	align-items: center;
	padding: 0;
}
.logo {
	cursor: pointer;
	z-index: 1001;
	transition: 0.3s ease-in-out;
	max-width: 350px;
}
.dropdown-menu {
	opacity: 0.8;
	background-color: #fff !important;
}
.dropdown-item {
	color: #000 !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: 992px) {
	.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 {
	width: 100%;
	cursor: pointer;
}
.burger {
	filter: url(#gooeyness);
}
.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;
	text-decoration: none;
}
.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: #3eaaf3;
	margin-bottom: 10px;

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

.container-card {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 2rem;
}
.cards {
	cursor: pointer;
	display: flex;
	flex-direction: column;
	width: clamp(20rem, calc(20rem + 2vw), 20rem);
	overflow: hidden;
	transition: 1s box-shadow;

	background-color: #212121;
    border: 4px solid #be7e02;
    border-image: linear-gradient(to right, #9E9E9E, #212121) 1;
}
.cards:hover {
	box-shadow: 0 0.1rem 1rem #000;
	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);
}

.cards em {
	color: #9e9e9e;
}
.cards p {
	color: #fff;
}
.cards span {
	color: #ccc;
}
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;
	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: #393939;
	border: 1px solid #fff;
	transition: 0.5s;
	color: #000;
}
.tag-red:hover {
	background: #292929;
	border: 1px solid #fff;
	color: #fff;
}
.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;
	}
}

.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: "สารบัญ";
}

.widget-toc {
  display: table;
  border: 1px solid #ffffff;
  background-color: #424242;
  padding-right: 1rem;
  font-size: 95%;
}
.widget-toc a {
  color: #ffffff;
  text-decoration: underline !important;
}
.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;
}

.navPanelToggle{
text-decoration: none;
height: 50px;
left: 0;
position: absolute;
top: 0;
width: 75px;
display: none;
}

#menuToggle {
  display: flex;
  flex-direction: column;
  position: relative;
  top: 5px;
  left: 15px;
  z-index: 1;
  -webkit-user-select: none;
  user-select: none;
}

#menuToggle input
{
  display: flex;
  width: 40px;
  height: 32px;
  position: absolute;
  cursor: pointer;
  opacity: 0;
  z-index: 2;
}

#menuToggle span
{
  display: flex;
  width: 32px;
  height: 3px;
  margin-bottom: 5px;
  position: relative;
  background: #603912;
  border-radius: 3px;
  z-index: 1;
  transform-origin: 5px 0px;
  transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
              background 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
              opacity 0.55s ease;
}

#menuToggle span:first-child
{
  transform-origin: 0% 0%;
}

#menuToggle span:nth-last-child(2)
{
  transform-origin: 0% 100%;
}

#menuToggle input:checked ~ span
{
  opacity: 1;
  transform: rotate(45deg) translate(-3px, -1px);
  background: #6c757d;
}
#menuToggle input:checked ~ span:nth-last-child(3)
{
  opacity: 0;
  transform: rotate(0deg) scale(0.2, 0.2);
}

#menuToggle input:checked ~ span:nth-last-child(2)
{
  transform: rotate(-45deg) translate(0, -1px);
}

#menu
{
  position: absolute;
  width: 280px;
  height: 600px;
  box-shadow: 0 0 10px #000;
  margin: -50px 0 0 -50px;
  padding: 50px;
  padding-top: 125px;
  background-color: #1f1f1f;  
  transform-origin: 0% 0%;
  transform: translate(-200%, 0);
  transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0);
}

#menu li
{
  padding: 10px 0;
  transition-delay: 2s;
	color: #fff;
}

#menu li a {
	color: #fff;
}

#menuToggle input:checked ~ ul
{
  transform: none;
}

.h-color{
	line-height: 1.5;
	padding: 0 1em;
}

.h-color1{
	color: #fff;
	background-color: #131313;
    clip-path: polygon(10% 0%, 100% 0%, 90% 100%, 0% 100%);
}
.h-color2{
	color: #131313;
	background-color: #fff;
    clip-path: polygon(0 0, 90% 0%, 100% 100%, 10% 100%);
}
.content-bg{
    color: #000;
    position: relative;
    border: 4px solid transparent;
    border-radius: 16px;
    background-color: #fff;
    background-clip: padding-box;
    padding: 10px;
  }
.content-bg::after {
    position: absolute;
    top: -4px; bottom: -4px;
    left: -4px; right: -4px;
    background: linear-gradient(to right,#7c1ec3, #2ef2fe);
    content: '';
    z-index: -1;
    border-radius: 16px;
}
.content-bg1{
	color: #fff;
    background-color: #191919;
	clip-path: polygon(0 0, 100% 0%, 100% 80%, 0% 100%);
}
.content-bg2{
	color: #fff;
    background-color: #191919;
	clip-path: polygon(0 20%, 100% 0%, 100% 100%, 0% 100%);
  }
.content-bg3{
	background-color: #131313;
}
.content-bg5{
	padding: .5em 1em;
	border:solid 3px #f7d804;
}
.content-bg6{
	background-color: #191a1c;
}

.fa-inp{position: absolute; margin-top: 10px;margin-left:5px;}
.fa-search{color: #ccc;}

.card-link-img {
  display: block;
  text-align: center;
  margin-bottom: 10px;
}
.card-link-img a {
  display: inline-block;
  margin: 5px;
}

nav#navlist {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 0px 20px 30px 20px;
  display: flex;
  align-items: center;
  transition: 0.3s ease-out;
}

nav.is-hidden {
  transform: translateY(10%);
}

@media (max-width: 640px) {
  nav {
    padding: 5px 10px 5px 10px;
  }
}
