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

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

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

/* WIDTH SETTING */
.bg-main {
    position: relative;
    background: url('../images/bg-main.jpg') center no-repeat;
    background-size: cover;
    background-attachment: fixed;
}
.nav-hold {
	width:100%;
    height: auto;
	margin:0 auto;
    position: relative;
}

.content-container {
    width: 100%;
    min-height: 600px;
    position: relative;
	font: 22px/1 THSarabunNew;
}

.top-contact {
    position: absolute;
    top: 0;
    left: 0;
    background: rgba(21,58,92,.77);
    min-height: 149px;
    z-index: 20;
}
.top-contact p {
    font: 22px/1 THSarabunNew;
    color: #fff;
    margin-bottom: 0;
}

/* NAVIGATION */
.nav-bar {
	width:100%;
    height: auto;
    background: #1b3a5c;
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 5;
    text-align: right;
}

.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;
    max-height: 100%;
    z-index: 10;
}
.nav-bar p {
	font: 18px/1 psl-thaicommonbold;
    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: 28px;
	position: relative;
    margin-bottom: 0;
}
.nav-list li {
	display:inline-block;
	height: 100%;
    padding-left: 20px;
    box-sizing: border-box;
    position: relative;
	text-align:center;
	vertical-align:top;
}
.nav-list li::after {
	font: 22px/1 THSarabunNew;
	color: #fff;
    position: absolute;
    top: 6px;
    right: -15px;
    content: "/";
}
.nav-list li:last-child::after {
	display: none;
}
.nav-list li#active a {
    font: 22px/1 THSarabunNew-Bold;
}
.nav-list li a {
    font: 22px/1 THSarabunNew;
	color: #fff;
    text-decoration: none;
}

.nav-menu {
	display:none;
}

/* Sub nav */
.nav-list > li > ul {
	width: 230px;
	display: none;
	position: absolute;
	top: 100%;
	left:0;
	z-index:99;
    padding-top: 5px;
}
.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 > 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:hover {
	background: #f4cb14;
}
.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: 22px/1 THSarabunNew;
    color: #000;
}

.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: 22px/1 THSarabunNew;
    color: #000;
}
/* Lang */
.lang{
	-webkit-border-radius: 3px;
	-moz-border-radius: 3px;
	border-radius: 3px;
	font: 18px/1 THSarabunNew;
    color: #000;
}

/* Slider */
.slider-container {
    width: 100%;
    height: auto;
    position: relative;
}

/* Left Nav */
.left-nav-box {
    width: 100%;
    height: auto;
    position: relative;
    background-color: white;
    box-shadow: 0 21px 21px rgba(0, 0, 0, 0.37);
}

.president {
    width: 100%;
    position: relative;
    background: #1b3a5c;
}
.president h1 {
    font: 22px/1 THSarabunNew;
    color: #fff;
}
.president h2 {
    font: 22px/1 THSarabunNew-Bold;
    color: #fff;
}

.left-nav {
    width: 100%;
    height: auto;
    position: relative;
}

.left-nav-list {
    width: 100%;
    height: auto;
    position: relative;
    list-style: none;
}
.left-nav-list li {
    width: 100%;
    height: auto;
    position: relative;
    border-bottom: 5px solid #fff;
	background: #1b3a5c;
}
.left-nav-list li:last-child {
    border-bottom: 0;
}
.left-nav-list li a,
.left-nav-list li a:hover {
    font: 22px/1.5 THSarabunNew-Bold;
    color: #fff;
    text-decoration: none;
}
/* Sub */
.left-nav-list li.hassub ul{
	display:block;
	background-color:#f3f3f3;
}
.left-nav-list li.hassub ul li{
	border-bottom:2px dotted #8796a7;
	background-color:#f3f3f3;
}
.left-nav-list li.hassub ul li a{
	font: 22px/1.5 THSarabunNew;
	color:#000;
}

/* Headings */
.heading0 {
    font: 22px/1 THSarabunNew;
    color: #000;
}
.heading1 {
    width: 100%;
    height: auto;
    position: relative;
    text-align: center;
    background: #1b3a5c;
}
.heading1 h1 {
    position: relative;
    font: 22px/1.5 THSarabunNew-Bold;
    color: #fff;
    margin-bottom: 0;
}
.heading1 h1 a {
    color: #fff;
    text-decoration: none;
}
.heading1 input[type='text']{
	height:34px;
	font: 22px/1 THSarabunNew;
}
.heading1 button{
	height:34px;
}

.heading2 {
    width: 100%;
    height: auto;
    position: relative;
}
.heading2 h1 {
    position: relative;
    font: 28px/1 THSarabunNew;
    color: #000;
    margin-bottom: 0;
    border-bottom: 2px solid #005e20;
}
.heading2 h1 span::after {
    width: 5px;
    height: 5px;
    background: #fff;
    position: absolute;
    bottom: -2px;
    right: -5px;
    content: "";
}
.heading2 select {
    position: relative;
    font: 22px/1 THSarabunNew;
    color: #fff;
    background: #005e20;
    border: none;
    outline: none;
    padding: 3px;
    box-sizing: border-box;
}
.heading2 select option {
    color: #000;
    background: #f4cb14;
}

/* External link */
.ex-link p {
    font: 20px/1 THSarabunNew-Bold;
    color: #006633;
}
.ex-link .ex-img{
	background-color:#fff;
	height:140px;
}

/* blue Box */
.blue-box {
    width: 100%;
    height: auto;
    position: relative;
    background: #e6edf2;
}
.blue-box input[type="text"],
.blue-box textarea,
.blue-box input[type="submit"]{
	font: 20px/1 THSarabunNew;
    color: #000;
}

/* Event */
.event-box {
    width: 100%;
    height: auto;
    background: #fff;
    position: relative;
}
.event-box .img {
    width: 100%;
    height: 160px;
    position: relative;
}
.event-box .img a {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 5;
}
.event-box h1 {
    font: 20px/1 THSarabunNew-Bold;
    color: #000;
}
.event-box h2 {
    font: 16px/1 THSarabunNew-Bold;
    color: #000;
}
.event-box h2 span {
    background: none;
	text-decoration: underline;
}
.event-box p {
    font: 20px/1 THSarabunNew;
    color: #000;
    margin-bottom: 5px;
}
.event-box a {
    font: 20px/1 THSarabunNew;
    color: #c00;
    text-decoration: none;
}

/* News Box */
.news-box {
    width: 100%;
    height: auto;
    position: relative;
    border-bottom: 1px dotted #000;
}
.news-box p {
    font: 20px/1 THSarabunNew;
    color: #000;
    margin-bottom: 5px;
}
.news-box a {
    font: 20px/1 THSarabunNew;
}

.blog-detail {
    position: relative;
    font: 22px/1 THSarabunNew;
}
.blog-detail h1 {
    font: 24px/1 THSarabunNew;
    color: #035c22;
}
.blog-detail p {
    font: 20px/1 THSarabunNew;
    color: #000;
}
.blog-detail ul,
.blog-detail ol {
    font: 22px/1 THSarabunNew;
    color: #000;
}
.blog-detail ul {
    list-style: disc;
    list-style-position: inside;
}
.blog-detail ol {
    list-style: decimal;
    list-style-position: inside;
}
.blog-detail img {
    max-width: 100%;
}
.blog-detail input[type="text"],
.blog-detail textarea,
.blog-detail input[type="submit"]{
	font: 22px/1 THSarabunNew;
}

/* Product */
.product-detail {
    position: relative;
}
.product-detail h1 {
    font: 26px/1 THSarabunNew-Bold;
    color: #000;
}
.product-detail h2 {
    font: 22px/1 THSarabunNew-Bold;
}
.product-detail h4 {
    font: 20px/1 THSarabunNew;
}
.product-detail p {
    font: 20px/1 THSarabunNew;
    color: #333;
}
.product-detail a {
    font: 22px/1.3 THSarabunNew;
}

/* Footer */
.footer-content {
    width: 100%;
    height: auto;
    position: relative;
    background: #1b3a5c;
}
.footer-content p {
    font: 22px/1.5 THSarabunNew;
    color: #fff;
    margin-bottom: 0;
}

.social {
    display: inline-block;
    width: 38px;
    height: 38px;
    border: 2px solid #fff;
    background: #000;
    border-radius: 50%;
    color: #fff;
    text-align: center;
    line-height: 38px;
}

.footer {
    width: 100%;
    height: auto;
    background: #252525;
    position: relative;
}
.footer p {
    font: 22px/1 THSarabunNew;
    color: #fff;
    text-align: center;
    margin-bottom: 0;
}
.footer p a {
    color: #000;
    text-decoration: none;
}
.footer img {
    display: block;
}

.flex-direction-nav a{
	line-height:normal;
}
.highlight-detail{
	position:absolute;
	left:0;
	bottom:0;
	width:100%;
	height:auto;
	background:rgba(27, 58, 92, 0.5);
	font: 22px/1 THSarabunNew;
    color: #fff;
}
/* Search*/
.has-search .form-control {
    padding-left: 2.375rem;
}

.has-search .form-control-feedback {
    position: absolute;
    z-index: 2;
    display: block;
    width: 2.375rem;
    height: 2.375rem;
    line-height: 2.375rem;
    text-align: center;
    pointer-events: none;
    color: #aaa;
}
.btn-search{
	margin-left:-5px;
	line-height:1.65;
}
/* Sticky Nav */
/* The sticky class is added to the navbar with JS when it reaches its scroll position */
.sticky {
	height:36px;
	position: fixed;
	top: 0;
	width: 100%;
}

.clearfix {
    clear: both;
}