/* Font */
@font-face {
	font-family: 'IBM';
	font-weight: 100;
	font-style: normal;
	src: url(../font/IBMPlexSansThai-Thin.ttf) format('truetype');
}
@font-face {
	font-family: 'IBM';
	font-weight: 200;
	font-style: normal;
	src: url(../font/IBMPlexSansThai-ExtraLight.ttf) format('truetype');
}
@font-face {
	font-family: 'IBM';
	font-weight: 300;
	font-style: normal;
	src: url(../font/IBMPlexSansThai-Light.ttf) format('truetype');
}
@font-face {
	font-family: 'IBM';
	font-weight: 400;
	font-style: normal;
	src: url(../font/IBMPlexSansThai-Regular.ttf) format('truetype');
}
@font-face {
	font-family: 'IBM';
	font-weight: 500;
	font-style: normal;
	src: url(../font/IBMPlexSansThai-Medium.ttf) format('truetype');
}
@font-face {
	font-family: 'IBM';
	font-weight: 600;
	font-style: normal;
	src: url(../font/IBMPlexSansThai-SemiBold.ttf) format('truetype');
}
@font-face {
	font-family: 'IBM';
	font-weight: 700;
	font-style: normal;
	src: url(../font/IBMPlexSansThai-Bold.ttf) format('truetype');
}

/* Define */
:root {
	--bs-primary: #ffb906;
	--bs-success: #00bd6e;

	--bs-danger: #EB5757;
	--bs-info: #56CCF2;
	--text-color: #fff;
	--text-color-2: #666E7D;
	--gray-1: #525252;
	--gray-2: #7C88B1;
	--gray-3: #D6D9E4;
	--bg-color: #5d5d5d;
	--border-color: #EAECF3;
	--brand-line: #06C755;
	--green: #e6f9f7;

	--card-bg: #222222;
}


/* Main */
html,
body {
	font: 400 16px/1.5 'IBM';
	color: var(--text-color);
}
body {
	background-color: var(--bg-color);
}
.wrapper {
	padding: 40px 0;
}
.grecaptcha-badge {
	display: none;
}
img {
	max-width: 100%;
}
.profile-image {
	position: relative;
	border-radius: 50%;
	background-size: cover;
	background-position: center;
	z-index: 1;
	width: 100%;
	height: 100%;
}
.profile-image-wrapper {
	position: relative;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background-image: url(../img/icon/frame-gold.png);
	background-size: 100% 100%;
	padding: 2px;
}
.profile-image-wrapper.lg {
	width: 200px;
	height: 200px;
	padding: 6px;
	background-image: url(../img/icon/frame-gold.png);
	background-size: 100% 100%;
}
.profile-image-wrapper.md {
	width: 100px;
	height: 100px;
	padding: 4px;
}
.profile-image-wrapper:after {
	content: "";
	display: block;
	position: absolute;
	z-index: 0;
	height: calc(100% - 2px);
	width: calc(100% - 2px);
	left: 1px;
	top: 1px;
	border-radius: 50%;
	background-color: rgba(202, 202, 202, 0.5);
	animation: placeholder-glow 2s ease-in-out infinite;
}
@keyframes placeholder-glow {
	50% {
		opacity: .2
	}
}
@keyframes placeholder-glow-s {
	50% {
		opacity: .3
	}
}
.glow {
	animation: placeholder-glow 2s ease-in-out infinite;
}
.header h2 {
	font-size: 24px;
}
.header h3 {
	font-size: 20px;
}
strong,
.strong {
	font-weight: 500;
}
hr {
	margin: 1rem 0;
	border-color: var(--border-color);
	opacity: 1;
}
hr.dashed {
	border: 1px dashed var(--border-color);
}
.page-error,
.login-wrapper {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 400px;
	max-width: 100%;
}
.fancybox__container {
	z-index: 1060;
}
.ellipsis {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.tag {
	display: inline-block;
	padding: 6px;
	border: 1px solid #fff;
	border-radius: 8px;
	width: 50px;
	line-height: 1.5;
	/*background-color: #222222;*/
	text-decoration: none;
	color: #fff;
	transition: .25s all;
}
.tag:hover,
.tag:active,
.tag:focus,
.tag.active {
	background-color: var(--bs-primary);
	border-color: var(--bs-primary);
	color: #222;
}
.box-middle {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 400px;
	max-width: 100%;
}


/* Loader */
.loader {
	position: fixed;
	left: 0;
	right: 0;
	top: 0;
	bottom: 0;
	z-index: 3000;
	transition: .25s all;
	opacity: 0;
	visibility: hidden;
}
.loader.active {
	opacity: 1;
	visibility: visible;
}
.loader-bg {
	background-color: #070707;
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	top: 0;
	opacity: 0.5;
}


/* Typo */
h6,
.h6 {
	font-size: 1.1rem;
}
.text-primary {
	color: var(--bs-primary) !important;
}
.text-color {
	color: var(--text-color) !important;
}
.text-2 {
	color: var(--text-color-2) !important;
}
.text-gray-1 {
	color: var(--gray-1) !important;
}
.text-gray-2 {
	color: var(--gray-2) !important;
}
.text-gray-3 {
	color: var(--gray-3) !important;
}
.text-blue {
	color: #2F80ED !important;
}
.text-gd-primary {
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-size: 100%;
	background-color: var(--bs-primary);
	background-image: linear-gradient(135deg, #765c1c 0%, #d6a015 50%, #ffeec3 100%);
	clip-path: inset(1px);
}
.text-danger {
	color: var(--bs-danger) !important;
}
.bg-orange {
	background-color: var(--bs-secondary-orange);
}
.bg-green {
	background-color: var(--green);
}
.bg-gray-1 {
	background-color: var(--gray-1);
}
.bg-cover {
	background-size: cover;
	background-position: center center;
}
.border-1 {
	border: 1px solid var(--border-color);
}
.border-primary {
	border-color: var(--bs-primary) !important;
}
.circle-success {
	width: 16px;
	height: 16px;
	border-radius: 50%;
	box-shadow: 0 0 8px 0 rgba(0, 189, 110, 0.55);
	background-color: #00bd6e;
	line-height: 1;
	animation: placeholder-glow-s 2s ease-in-out infinite;
}
.text-muted {
	color: rgba(255, 255, 255, 0.6);
}
dl.horizontal {
	font-size: 0;
}
dl.horizontal dt,
dl.horizontal dd {
	display: inline-block;
	font-size: 1rem;
	vertical-align: top;
}
dl.horizontal dt {
	width: 100px;
	font-weight: 500;
	margin-bottom: 8px;
}
dl.horizontal dd {
	width: calc(100% - 100px);
	margin-bottom: 8px;
	font-weight: 300;
}
.bg-card {
	background-color: var(--card-bg);
}


/* Badge */
.badge {
	--bs-badge-padding-y: 5px;
	--bs-badge-font-size: 14px;
	--bs-badge-font-weight: 500;
	--bs-badge-border-radius: 8px;
}
.badge-small {
	--bs-badge-font-size: 0.8rem;
}
.badge-primary {
	background-image: linear-gradient(102deg, #816b32 0%, #d6a015 33%, #b68814 81%, #ebc16f 100%);
}
.badge-new {
	background-color: #fd4343;
}
.badge-open {
	padding: 4px 12px;
	border-radius: 8px;
	background-color: #fff;
	color: var(--bs-success);
}


/* Bg */
.bg-1 {
	background: linear-gradient(93.79deg, #EDF0FA 0%, rgba(237, 240, 250, 0) 138.16%);
}
.bg-2 {
	background: linear-gradient(94.87deg, #FEF6F4 1.13%, rgba(254, 246, 244, 0) 107.62%);
}
.bg-3 {
	background: linear-gradient(94.48deg, #F0FFFE 0%, rgba(240, 255, 254, 0) 117.08%);
}
.bg-4 {
	background: linear-gradient(94.47deg, #FFFAEB 0%, rgba(255, 250, 235, 0) 109.77%);
}
.bg-gray {
	background-color: #FAFAFD !important;
}
.bg-gray-2 {
	background-color: #F8FAFD !important;
}
.bg-warning {
	background-color: #FFF3CE !important;
}


/* Button */
.link {
	text-decoration: none;
	color: var(--text-color);
	background: transparent;
	border: none;
	padding: 0;
}
.link:hover,
.link:focus,
.link:active {
	color: var(--bs-primary);
	border-color: transparent;
}
.btn-link {
	text-decoration: none;
}
.btn {
	--bs-btn-border-radius: 8px;
	--bs-btn-padding-x: 15px;
	--bs-btn-padding-y: 8px;
	--bs-btn-border-width: 0;
}
.btn-primary {
	--bs-btn-color: #fff;
	--bs-btn-bg: var(--bs-primary);
	--bs-btn-hover-color: #fff;
	--bs-btn-hover-bg: #30ADA2;
	--bs-btn-focus-shadow-rgb: ;
	--bs-btn-active-color: #fff;
	--bs-btn-active-bg: #1F8A80;
	--bs-btn-active-shadow: ;
	--bs-btn-disabled-color: #fff;
	--bs-btn-disabled-bg: var(--bs-primary);

	background-image: linear-gradient(105deg, #f1b51a -22%, #d6a015 33%, #ffb906 80%, #ffeecd 114%, #ffb906 152%);
	--bs-btn-box-shadow: 0 11px 40px 0 rgba(0, 0, 0, 0.1);
}
.btn-primary:hover {
	background-image: linear-gradient(105deg, #f1b51a -22%, #d6a015 45%, #ffb906 90%, #ffeecd 114%, #ffb906 152%);
}
.btn-primary:focus,
.btn-primary:active {
	background-image: linear-gradient(105deg, #f1b51a -22%, #d6a015 60%, #ffb906 100%, #ffeecd 114%, #ffb906 152%);
}
.btn-primary.liked {
	background-image: linear-gradient(102deg, #816b32 0%, #d6a015 75%, #b68814 100%);
}
.btn-line {
	--bs-btn-color: #fff;
	--bs-btn-bg: var(--brand-line);
	--bs-btn-border-color: var(--brand-line);
	--bs-btn-hover-color: #fff;
	--bs-btn-hover-bg: #05a747;
	--bs-btn-hover-border-color: #05a747;
	--bs-btn-focus-shadow-rgb: ;
	--bs-btn-active-color: #fff;
	--bs-btn-active-bg: #038237;
	--bs-btn-active-border-color: #038237;
	--bs-btn-active-shadow: ;
	--bs-btn-disabled-color: #fff;
	--bs-btn-disabled-bg: var(--brand-line);
	--bs-btn-disabled-border-color: var(--brand-line);
}
.btn-smaller {
	--bs-btn-padding-x: 0;
	--bs-btn-padding-y: 6px;
}
.btn-outline-white {
	--bs-btn-border-width: 1px;
	--bs-btn-padding-y: 5px;
	--bs-btn-color: #fff;
	--bs-btn-bg: transparent;
	--bs-btn-border-color: #fff;
	--bs-btn-hover-color: #fff;
	--bs-btn-hover-bg: #333;
	--bs-btn-hover-border-color: #fff;
	--bs-btn-focus-shadow-rgb: ;
	--bs-btn-active-color: #fff;
	--bs-btn-active-bg: #666;
	--bs-btn-active-border-color: #fff;
	--bs-btn-active-shadow: ;
	--bs-btn-disabled-color: #fff;
	--bs-btn-disabled-bg: transparent;
	--bs-btn-disabled-border-color: #fff;
}
.btn-like {
	cursor: pointer;
}


/* Card */
.card {
	position: relative;
	--bs-card-border-width: 0;
	box-shadow: 0px 4px 16px rgba(0, 0, 0, 0.04);
	--bs-card-border-radius: 8px;
	--bs-card-spacer-y: 0.75rem;
	--bs-card-spacer-x: 0.75rem;
	--bs-card-cap-bg: transparent;
	--bs-card-cap-padding-y: 20px;
	--bs-card-cap-padding-x: 25px;
	--bs-card-bg: var(--card-bg);
}
.card-footer {
	border-top: 1px solid var(--bg-color);
}
.card-header {
	border-bottom: 1px solid var(--bg-color);
}
.card-image {
	height: 200px;
}
.card-image-2 {
	height: 180px;
}
.gallery-image {
	height: 60px;
}


/* Form */
.form-label {
	font-weight: 500;
}
.form-control,
.form-select {
	border: 1px solid #EAECF3;
	border-radius: 16px;
	padding: 12px 15px;
	height: auto;
	color: #000;
	border-color: #000;
}
.input-group-text {
	border-color: #EAECF3;
}
.dropdown-toggle.disabled,
.form-control:not(.input):read-only,
.form-select:disabled {
	background-color: #e9ecef !important;
	opacity: 1;
}
.autoComplete_wrapper,
.autoComplete_wrapper > input {
	display: block;
	width: 100%;
}
.form-control:focus,
.form-select:focus {
	border-color: var(--bs-primary);
	box-shadow: none;
}
.form-control::placeholder {
	color: var(--gray-3);
}
.form-floating > label {
	color: #000;
}
.required > label:first-child {
	position: relative;
}
.required > label:first-child:after {
	content: "*";
	color: red;
	display: block;
	position: absolute;
	top: 0;
	right: -12px;
}
.icon-left {
	position: absolute;
	left: 15px;
	top: 12px;
}
.hide-icon::-webkit-inner-spin-button,
.hide-icon::-webkit-calendar-picker-indicator {
	opacity: 0;
}
.bootstrap-select .dropdown-menu {
	max-width: 100%;
}
.bootstrap-select > .dropdown-toggle {
	border-color: #EAECF3;
}
.bootstrap-select > .dropdown-toggle:active,
.bootstrap-select > .dropdown-toggle:focus,
.bootstrap-select > .dropdown-toggle.show {
	border-color: var(--bs-primary);
	box-shadow: none;
}
.bootstrap-select > .dropdown-toggle {
	background-color: #fff;
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
	background-size: 12px auto;
	background-repeat: no-repeat;
	background-position: right 15px center;
}
.bootstrap-select.rounded-0 > .dropdown-toggle {
	border-radius: 0;
}
.bootstrap-select .dropdown-toggle:focus,
.bootstrap-select > select.mobile-device:focus+.dropdown-toggle {
	outline: none !important;
	box-shadow: none;
}
.bootstrap-select > .dropdown-menu {
	transform: translate(0, 44px) !important;
}
.bs-actionsbox, .bs-donebutton,
.bs-searchbox {
	padding: 8px;
}
.bootstrap-select .no-results {
	padding: 0;
	background: transparent;
	margin: 0 10px 10px;
}
.bootstrap-select .bs-invalid,
.bootstrap-select .bs-invalid:focus {
	color: var(--bs-danger);
	border-color: var(--bs-danger);
}
.bootstrap-select .dropdown-toggle::after {
	display: none;
}


/* Modal */
.modal {
	--bs-modal-bg: #000;
	--bs-modal-border-width: 0;
	--bs-modal-border-radius: 1rem;
	--bs-modal-padding: 1.5rem;
}
.modal-content {
	box-shadow: 0px 4px 16px rgba(0, 0, 0, 0.04);
}
.modal-backdrop {
	--bs-backdrop-bg: #000;
	--bs-backdrop-opacity: 0.5;
	width: 100%;
	height: 100%;
	right: 0;
	bottom: 0;
}
.modal-action {
	max-width: 500px;
	font-size: 0;
	margin: auto;
}
.modal-action .btn {
	width: calc(50% - 10px);
}
.modal-action .btn + .btn {
	margin-left: 20px;
}
.btn-close {
    color: #fff;
    opacity: 0.9;
    background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23FFF'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e") center / 1em auto no-repeat;
}
.btn-close:hover {
	opacity: 1;
}


/* Pagination */
.pagination {
	--bs-pagination-border-width: 0;
	--bs-pagination-color: var(--gray-1);
	--bs-pagination-bg: transparent;
	--bs-pagination-hover-bg: transparent;
	--bs-pagination-focus-bg: transparent;
	--bs-pagination-disabled-bg: transparent;
	--bs-pagination-active-bg: transparent;
	--bs-pagination-active-color: var(--bs-primary);
	--bs-pagination-hover-color: var(--bs-primary);
	--bs-pagination-focus-box-shadow: ;
}


/* Page error */
.page-error {
	width: 300px;
	text-align: center;
	margin: 0 auto;
}
.page-error h1 {
	font-size: 120px;
	font-weight: 600;
	line-height: 1;
}
.page-error p {
	font-size: 24px;
	font-weight: 500;
}


/* Toast */
.toast {
	--bs-toast-bg: rgba(255, 255, 255, 0.95);
	--bs-toast-max-width: 380px;
	--bs-toast-color: #000;
}


/* Fixed responsive */
.like-count {
	/*line-height: 40px;*/
}


/* Responsive */
@media (min-width: 1400px) {
	.container, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
		max-width: 1200px;
	}
}
@media (min-width: 1200px) {
	.container, .container-lg, .container-md, .container-sm, .container-xl {
		max-width: 1140px;
	}
}
@media (min-width: 768px) {
	.w-md-auto {
		width: auto !important;
	}
}
@media (max-width: 1199px) {

}
@media (max-width: 991px) {

}
@media (max-width: 767px) {
	html,
	body {
		font-size: 14px;
	}
	.profile-image-wrapper.lg {
		width: 120px;
		height: 120px;
		padding: 4px;
	}
	/*.btn-like {
		font-size: 0;
		--bs-btn-padding-x: 0;
		width: 30px;
		height: 30px;
	}*/
	/*.btn-like:before {
		font-family: "Font Awesome 6 Pro";
		content: "\f164";
		-moz-osx-font-smoothing: grayscale;
		-webkit-font-smoothing: antialiased;
		display: block;
		font-style: normal;
		font-variant: normal;
		line-height: 1;
		text-rendering: auto;
		font-size: 14px;
		font-weight: 900;
	}
	.btn-like.liked {
		color: #333;
	}*/
	/*.like-count {
		line-height: 30px;
	}*/
	.btn-action {

	}
	.btn-action img {
		width: 18px;
		height: 18px;
	}
	.btn-action span {
		display: none;
	}
	dl.horizontal dt {
		width: 80px;
	}
	dl.horizontal dd {
		width: calc(100% - 80px);
	}
	.box-middle {
		width: 340px;
	}
	.card {
		--bs-card-spacer-y: 0.5rem;
		--bs-card-spacer-x: 0.5rem;
	}
	.badge-open,
	.badge-new {
		font-size: 0 !important;
		padding: 5px !important;
	}
	.modal {
		--bs-modal-padding: 1rem;
	}
	.card-image-2 {
		height: 120px;
	}
}