/***************************************
Huiyab Stylesheet by CMNice Solutions. *
***************************************/

/*** Reset Documents ***/
@import url('reset.css');

/******** Fonts ********/
@import url('fonts.css');

/* WIDTH SETTING */.
html {
  	scroll-behavior: smooth;
}
.container{
	width:100%;
	height:auto;
	max-width:1200px;
	display:block;
	margin:0 auto;
}
/* LOGO */
.logo-active {
    display: inline-block;
    width: 157px;
    height: 146px;
    position: relative;
    background: #866d2d;
    vertical-align: top;
}
.logo-active::after {
    position: absolute;
    left: 0;
    top: 100%;
    content: "";
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 55px 78.5px 0 78.5px;
    border-color: #866d2d transparent transparent transparent;
}
.logo-active img,
.logo-inactive img {
    display: block;
    margin: 15px auto;
}
.logo-inactive {
    display: inline-block;
    width: 157px;
    height: 146px;
    position: relative;
    vertical-align: top;
}

.nav-logo{
	display: block;
    position: relative;
    z-index: 99;
    width: auto;
    height: auto;
    background-color: #fff;
    padding: 5px;
    box-sizing: border-box;
}
.position-logo{
	position: absolute;
}
/* NAVIGATION */
.nav-bar {
	width:100%;
    height: auto;
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 5;
    text-align: right;
}
.nav-bar p {
	font-size:18px;
	font-family:'psl-thaicommonbold';
	line-height:1;
    color: #6a590a;
    margin-bottom: 0;
}
.nav-bar p svg {
	font-size: smaller;
}
.nav-bar p img {
	vertical-align: middle;
    margin: 0 5px;
}

/* Main Menu */
.nav-list {
	width: 100%;
    height: auto;
	position: relative;
    margin-bottom: 0;
}
.nav-list li {
	display:inline-block;
	height: 100%;
    padding: 0 15px;
    box-sizing: border-box;
    position: relative;
	text-align:center;
	vertical-align:top;
}
.nav-list li::after {
	font: 15px/1 Tahoma;
	color: #fff;
    position: absolute;
    top: 6px;
    right: -15px;
    content: "";
}
.nav-list li:last-child::after {
	display: none;
}
.nav-list li a {
	font-size:16px;
	font-family:'kanitregular';
	line-height:1;
	color:#000;
    text-decoration: none;
}

.nav-menu {
	display:none;
}

/* Sub nav */
.nav-list > li > ul {
	width: 180%;
	min-width:180px;
	display: none;
	position: absolute;
	top: 100%;
	left:0;
	z-index:99;
    padding-top: 8px;
}
.nav-list > li > ul::before {
	width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 8px 8px 8px;
    border-color: transparent transparent #f4cb14 transparent;
    position: absolute;
    top: -3px;
    left: 10%;
    content: "";
}
.nav-list > li:hover > ul {
	display:block;
}
.nav-list > li > ul::before {
	width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 8px 8px 8px;
    border-color: transparent transparent #fff transparent;
    position: absolute;
    top: -3px;
    left: 0;
    content: "";
	display:none;
}
.nav-list > li > ul > li {
	min-height: 25px;
	width: 100%;
	margin: 0;
    text-align: left;
    background: #fff;
    border-bottom: 1px solid #e6e1e0;    
    transition: all 0.5s;
    padding: 0;
}
.nav-list > li > ul > li:hover {
	background: #caae87;
}
.nav-list > li > ul > li:hover a{
	color:#fff;
}
.nav-list > li > ul > li::after {
	display: none;
}
.nav-list > li > ul > li:last-child > a {
	border: 0;
}
.nav-list > li > ul > li > a {
	font-size:13px;
	font-family:'kanitregular';
	line-height:1;
	color:#000;
	display: block;
	padding: 10px 15px;
}
/**/
.nav-list > li > ul > li > ul {
	width: 230px;
	display: none;
	position: absolute;
	top: 0;
	left:230px;
	z-index:99;
    padding-top: 0;
}
.nav-list > li > ul > li > ul::before {
	display: none;
}
.nav-list > li > ul > li:hover > ul {
	display:block;
}
.nav-list > li > ul > li > ul > li {
	min-height: 25px;
	width: 100%;
	margin: 0;
    text-align: left;
    background: rgba(255,255,255,.9);
    border-bottom: 2px dotted #005E20;
    padding: 5px;
}
.nav-list > li > ul > li > ul > li:hover {
	background: #f4cb14;
}
.nav-list > li > ul > li > ul > li::after {
	display: none;
}
.nav-list > li > ul > li > ul > li:last-child > a {
	border: 0;
}
.nav-list > li > ul > li > ul > li > a {
	font-size:18px;
	font-family:'kanitregular';
	line-height:1;
	color:#000;
}
/* hassub */
.hassub,
.hassub ul{
	transition:all 0.1s;
}
/* Header */
.header{
	width:100%;
	height:auto;
	position: relative;
	top:0;
	z-index:11;
}
.header-contact{
	font-size:14px;
	font-family:'kanitregular';
	line-height:1;
	text-transform:uppercase;
}
.header-contact p{
	vertical-align: sub;
}

/* Slider */
.slider-container {
    width: 100%;
    height: auto;
    position: relative;
}
.rslides{
	box-sizing: border-box;
	padding:0px !important;
}
.rslides li{
	text-align:center;
}
.rslides img{
	display: block;
	float:none;
	width: auto;
	max-width:100%;
	border: 0;
	text-align: center;
	margin:0 auto;
}
/* Topic */
.topic_contain{
	font-family:'kanitbold';
	line-height:1.4;
	font-size: 30px;
}
.topic_hr{
	width: 4em;
	display: block;
	margin: 0 auto;
	border-top: 2px solid #fff !important;
	border-bottom: 0 !important;
}
/* About */
.about-content-textbox{
	color: #333;
	font-family:'kanitregular';
	line-height:1.4;
}
/* article */
.article-contain{
	font-size:16px;
	font-family:'kanitregular';
	line-height:1.4;
}
.article-contain h1{
	font-size:34px;
}
.article-contain h2{
	font-size:28px;
}
.article-contain h3{
	font-size:22px;
}
/* Service */
.service-contain{
	background: 
		url('../images/bg-service.jpg') top center no-repeat;
	background-size: cover;
}
/* Location */
.location-contain{
	background: 
		url('../images/bg-location.jpg') top center no-repeat;
	background-size: cover;
	font-size:16px;
	font-family:'kanitregular';
	line-height:1.4;
}
.location-button img{
	width: 180px;
}

/* Footer */
.footer-content p{
	font-family:'kanitregular';
	font-size: 13px;
	line-height: 1.2;
}
/* Web setting */
.bg-soft-gray{
	background-color: #f3f4f8 !important;
}
.bg-yellow-cream{
	background-color: #caae87 !important;
}
.bg-yellow{
	background-color: #e7ac32 !important;
}

/* Flex */
.flex-direction-nav a{
	line-height:normal;
}
.btn-search{
	margin-left:-5px;
	margin-top:-5px;
	line-height:1.65;
}
/* Owl */
.owl-carousel .owl-nav button span{
	padding:0.2em 1em !important;
}
/* Popup */
.popup-contain{
	font-family:'kanitregular';
}
/* Sticky Nav */
/* The sticky class is added to the navbar with JS when it reaches its scroll position */
#nav-bar{
	transition: all 0.5s ease;
}
.sticky {
	position: fixed;
	top: 0;
	width: 100%;
}
/* Swiper*/
.swiper-arrow-contain{
	width:50px !important;
	height:20px;
	display:block;
	margin:0 auto;
	text-align:center;
	position:relative;
}
.swiper-arrow-contain .swiper-button-prev,
.swiper-arrow-contain .swiper-button-next{
	width: 20px;
	height: 20px;
	text-align: center;
	-webkit-border-radius: 10px;
	-moz-border-radius: 10px;
	border-radius: 10px;
}
.swiper-arrow-contain .swiper-button-prev{
	left:0;
}
.swiper-arrow-contain .swiper-button-next{
	right:0;
}
:root {
	--swiper-navigation-size: 10px !important;
}
/* User setting */
.theme-font{
	font-family:'kanitregular';
}
.theme-font button{
	cursor:pointer;
}
.theme-font-s{
	font-size:10px !important;
}
.theme-font-m{
	font-size:12px !important;
}
.theme-font-l{
	font-size:14px !important;
}
.col-lg-5{
	width:19.5% !important;
	display:inline-block;
}
/* Popup */
/* overlay at start */
.mfp-fade{
	font-family:'kanitregular';
}
.mfp-fade.mfp-bg {
  opacity: 0;

  -webkit-transition: all 0.15s ease-out;
  -moz-transition: all 0.15s ease-out;
  transition: all 0.15s ease-out;
}
/* overlay animate in */
.mfp-fade.mfp-bg.mfp-ready {
  opacity: 0.8;
}
/* overlay animate out */
.mfp-fade.mfp-bg.mfp-removing {
  opacity: 0;
}

/* content at start */
.mfp-fade.mfp-wrap .mfp-content {
  opacity: 0;

  -webkit-transition: all 0.25s ease-out;
  -moz-transition: all 0.25s ease-out;
  transition: all 0.25s ease-out;
}
/* content animate it */
.mfp-fade.mfp-wrap.mfp-ready .mfp-content {
  opacity: 1;
}
/* content animate out */
.mfp-fade.mfp-wrap.mfp-removing .mfp-content {
  opacity: 0;
}
/* Pager */
.paginate-pagination{
	list-style:none;
	display:block;
	margin:0 auto;
	clear:both;
	text-align:center;
	font-family:'kanitregular';
}
.paginate-pagination ul{
	display:inline-block;
}
.paginate-pagination ul li a.active{
	opacity: 1 !important;
	background-color:#663366 !important;
	color:#fff !important;
}
/* Quick pager */
ul.simplePagerNav{
	width:100%;
	display:block;
	text-align:center;
	margin-top:0.8em;
}
ul.simplePagerNav li{
	min-width:1.5em;
	display:inline-block;
	margin:0.2em 0.2em;
	background-color:#fff;
	-webkit-border-radius: 04px;
	-moz-border-radius: 04px;
	border-radius: 04px;
	transition:all 0.5s;
}
ul.simplePagerNav li a{
	padding:0 0.5em;
	color:#666;
}
ul.simplePagerNav li.currentPage{
	background-color:#c03a88;
}
ul.simplePagerNav li.currentPage a{
	color:#fff;
}
/* Pager */
.paging{
	display: block;
	text-align: center;
}
.paging a{
	font-family:'kanitregular';
	background-color: #fff;
	color: #000;
	text-decoration: none;
	margin: 0 0.2em;
	-webkit-border-radius: 04px;
	-moz-border-radius: 04px;
	border-radius: 04px;
	padding: 0.2em 0.4em;
	min-width: 1.5em;
}
.paging span{
	margin: 0 0.2em;
	-webkit-border-radius: 04px;
	-moz-border-radius: 04px;
	border-radius: 04px;
	padding: 0.2em 0.4em;
	min-width: 1.5em;
}
.paging span.current{
	background-color: #2927b9;
	color: #fff;
}
.paging span.disabled{
	background-color: #ccc;
	color: #fff;
}
/**/
#scrollUp {
    bottom: 20px;
    right: 20px;
    padding: 10px 20px;
    background: #555;
    color: #fff;
}
/**/
.social-logo{
	width:40px;
	height:auto;
	position:fixed;
	right:0;
	top:30%;
	z-index:99;
}
.social-logo a img{
	transition:all 0.5s;
}
.social-logo a:hover img{
	transform: scale(1.2);
}
button{
	cursor:pointer;
}
.clearfix {
    clear: both;
}