/*!
 * Start Bootstrap - Creative Bootstrap Theme (http://startbootstrap.com)
 * Code licensed under the Apache License v2.0.
 * For details, see http://www.apache.org/licenses/LICENSE-2.0.
 */

/*
@font-face {
    font-family: 'THSarabunNew';
    src: url('thsarabunnew-webfont.eot');
    src: url('thsarabunnew-webfont.eot?#iefix') format('embedded-opentype'),
         url('thsarabunnew-webfont.woff') format('woff'),
         url('thsarabunnew-webfont.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;

}
*/

@font-face {
    font-family: 'notosansthai';
    src: url('../fonts/NotoSansThai-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;

}

@font-face {
    font-family: 'notosansthai';
    src: url('../fonts/NotoSansThai-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: bold;

}

@font-face {
    font-family: 'mitr';
    src: url('../fonts/mitr/Mitr-Light.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;

}

@font-face {
    font-family: 'mitr';
    src: url('../fonts/mitr/Mitr-Regular.ttf') format('truetype');
    font-weight: bold;
    font-style: bold;

}

html,
body {
    width: 100%;
    height: 100%;
    font-family: 'notosansthai','mitr', 'Lucida Sans Unicode', 'Lucida Grande', sans-serif;
    font-size: 16px;
}

/*.wrap .container{
    -moz-filter: grayscale(100%);
    -webkit-filter: grayscale(100%);
    filter: gray;
    filter: grayscale(100%);
}*/

hr.light {
    border-color: #fff;
}

a {
    color: #000000;
    -webkit-transition: all .35s;
    -moz-transition: all .35s;
    transition: all .35s;
    text-decoration: none;
}

a:hover,
a:focus {
    color: #9D76B3;
    text-decoration: none;
}

.show .dropdown-item:hover, .show .dropdown-item:focus{
    color: #9D76B3;
}



h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'notosansthai','mitr','Helvetica Neue',Arial,sans-serif;
    
}

p {
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.5;
    
}



.center{
	text-align: center;
}


.bg-primary {
    background-color: #f05f40;
}

.bg-dark {
    color: #fff;
    background-color: #222;
}

.text-faded {
    color: rgba(255,255,255,.7);
}

section {
    padding: 100px 0;
}

aside {
    padding: 50px 0;
}

.no-padding {
    padding: 0;
}

.navbar
{
	margin-bottom: 0px;	
}

.navbar-default .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 0.5%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
.navbar-toggler-icon {
    display: inline-block;
    width: 1.5em;
    height: 1.5em;
    vertical-align: middle;
    content: "";
    background: 50% / 100% 100% no-repeat;
        background-image: none;
}

.section-heading {
    margin-top: 0;
}

.service-box {
    margin: 50px auto 0;
    max-width: 400px;
}

@media(min-width:992px) {
    .service-box {
        margin: 20px auto 0;
    }
}

.service-box p {
    margin-bottom: 0;
}

.portfolio-box {
    display: block;
    position: relative;
    margin: 0 auto;
    max-width: 650px;
}

.portfolio-box .portfolio-box-caption {
    display: block;
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 100%;
    text-align: center;
    color: #fff;
    opacity: 0;
    background: rgba(240,95,64,.9);
    -webkit-transition: all .35s;
    -moz-transition: all .35s;
    transition: all .35s;
}

.portfolio-box .portfolio-box-caption .portfolio-box-caption-content {
    position: absolute;
    top: 50%;
    width: 100%;
    text-align: center;
    transform: translateY(-50%);
}

.portfolio-box .portfolio-box-caption .portfolio-box-caption-content .project-category,
.portfolio-box .portfolio-box-caption .portfolio-box-caption-content .project-name {
    padding: 0 15px;
    font-family: 'Open Sans','Helvetica Neue',Arial,sans-serif;
}

.portfolio-box .portfolio-box-caption .portfolio-box-caption-content .project-category {
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 600;
}

.portfolio-box .portfolio-box-caption .portfolio-box-caption-content .project-name {
    font-size: 18px;
}

.portfolio-box:hover .portfolio-box-caption {
    opacity: 1;
}

@media(min-width:768px) {
    .portfolio-box .portfolio-box-caption .portfolio-box-caption-content .project-category {
        font-size: 16px;
    }

    .portfolio-box .portfolio-box-caption .portfolio-box-caption-content .project-name {
        font-size: 22px;
    }
}

.call-to-action h2 {
    margin: 0 auto 20px;
}

.text-primary {
    color: #f05f40;
}

.no-gutter > [class*=col-] {
    padding-right: 0;
    padding-left: 0;
}

::-moz-selection {
    text-shadow: none;
    color: #fff;
    background: #222;
}

::selection {
    text-shadow: none;
    color: #fff;
    background: #222;
}

img::selection {
    color: #fff;
    background: 0 0;
}

img::-moz-selection {
    color: #fff;
    background: 0 0;
}

body {
    webkit-tap-highlight-color: #222;
}

.site-index .tab-content .header{
	line-height: 1.2;
	padding: 10px 10px;
	font-weight: normal;
}

.site-index .tab-content a,
.site-index .tab-content a:hover,
.site-category  .body-content a
{
	font-size: 14px;
	color: #000;
}
.site-index .tab-content a:hover,
.site-category  .body-content a:hover
{
	text-decoration: none;
}

.image-slider
{
	text-align: center;	
	width: 100%;
	background: url(../img/bg_slider.jpg)
}

.image-slider img
{
	width: 100%;
	margin: 0 auto;	
}

.container .h1b{
	color: #3B3D3D;
	font-weight: bold;
	font-size: 2em;
}

.container .h2b{
	color: #BFC4C4;
	font-weight: bold;
	font-size: 48px;
}

.text-truncate-container {
    width: 450px;
}
.text-truncate-container p {
    -webkit-line-clamp: 3;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
}

.menu-sc-1
{
	text-align: center;	
	width: 100%;
	background: #806298;
}

.menu-sc-1 .container
{
	max-width: 1200px;
	margin: 0 auto;	
}

.menu-sc-1 .container img{
	max-width: 220px;
	padding: 0px 20px;
}

.menu-sc-2
{
	text-align: center;	
	width: 100%;
	background: #262640;
}

.menu-sc-2 .container
{
	color: #fff;
	max-width: 1200px;
	margin: 0 auto;	
}

.menu-sc-2 .container img{
	max-width: 220px;
	padding: 0px 20px;
}

.menu-sc-2 .container h1{
	margin: 40px 0;
	font-size: 2em;
}
.menu-sc-2 .container h6{
	padding-bottom: 40px;
	font-size: 1.2em;
}

.menu-sc-2 .container h6{
	padding-bottom: 40px;
	font-size: 1em;
}

.menu-sc-2 .container span{
	font-size: 3em;
}

.menu-sc-3
{
	text-align: center;	
	width: 100%;
	background: #ffffff;
	padding: 90px 0;
}

.menu-sc-3 .container
{
	max-width: 1200px;
	margin: 0 auto;	
}

.menu-sc-3 .container .menu
{
	background-color: #eee; 
	padding: 40px; 
	margin: 20px 0px;
}

.menu-sc-3 .container a{
	text-decoration: none;
}

.menu-sc-3 .container .menu h4
{
	padding-top: 30px; 
	color: #666;
}

.menu-sc-3 img{
	background-color: #f4f4f4;
	border: 1px solid #f4f4f4;
	border-radius: 1rem;
}

.menu-sc-3 img:hover{
	background-color: #fff;
	border: none;
}


.menu-sc-4
{
	text-align: center;	
	width: 100%;
	background: #262640;
    position: relative;
    min-height: auto;
    color: #fff;
    background-image: url(../img/bg_title.jpg);
    background-size: cover;
	background-attachment: fixed;
	background-position: left center;
	padding: 90px 0;
}

.menu-sc-4 .container
{
	text-align: left;
	max-width: 1200px;
	margin: 0 auto;	
	color: #8D8E8E;
}

.menu-sc-5
{
	text-align: center;	
	width: 100%;
	background: #ffffff;
	padding: 40px 0;
}

.menu-sc-5 .container
{
	max-width: 1200px;
	margin: 0 auto;	
}

#site_map .container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;
}

#site_map a{
	font-family: 'THSarabunNew','Lucida Sans Unicode', 'Lucida Grande', sans-serif;
    font-size: 12px !important;
    transition: transform 1s;
    position: relative;
}

#site_map a:hover{
   	color: #fff !important;
   	text-decoration: none;
   	transform: translate(20px, 0px);
    
}

.round-social a {
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  display: inline-block;
  border-radius: 100%;
  margin: 0 2px;
    margin-bottom: 0px;
  -webkit-transition: 0.2s ease-in;
  -o-transition: 0.2s ease-in;
  transition: 0.2s ease-in;
}

.round-social a {
  color: #263238;
  background: #f4f8fa;
}
.round-social a:hover {
  background: #263238;
  color: #ffffff;
  fill: white;
  transform: translate3d(0px, -5px, 0px);
}

.footer
{
	color: #fff;
	padding: 20px;
	background-color: #2e3035;
	/*background-color: #333;*/
}

.footer p{
	
	color: #fff;
	font-size: 12px;
}

.footer ul{
	padding: 0;
	margin: 0;
}

.footer ul li {
	list-style: none;
}

.footer ul li:hover a{
	padding-left: 10px;
}

.footer ul li a{
	display: flex;
	font-size: 12px;
	color: #8d97ad;
	padding: 2px 0;
	transition: 0.2s ease-in;
	align-items: center;
	-webkit-box-align: center;
}

.footer ul li a:hover{
	color: #fff;
	
}

.footer ul li a svg{
	font-size: 6px;
	margin-right: 10px;
}

#tab{
	margin-top: 60px;
	border: none;
}

#tab a {
	border: none;
    display: block;
    padding: 5px 5px;
    position: relative;
    color: #936DAA;
}

#tab .active, #tab a:hover{
	border: none;
	color: #000;
	filter: grayscale(100%);
    -webkit-filter: grayscale(100%);
}

.menu-sc-1 img:hover{
	border: none;
	color: #000;
	filter: grayscale(1) invert(1);
    -webkit-filter: grayscale(1) invert(1);
}

.index-thumbnail {
	position: relative;
	overflow: hidden;
	width: 112px;
	height: 112px;
	border: 1px solid #666;
	padding: 5px;
}

.index-thumbnail img{
   	position: absolute;
   	top: 0;
   	left: -20%;
   	height: 112px;
}

#staff .table-view table th{
	background-color: #4488ff;
	color: #fff; 
	text-align: center;
}
#staff .table-view table th,
#staff .table-view table td{
	border: 1px solid white;
    font-size: 0.9em;
    padding: 0.1em;
}

#staff .table-view table tr.odd{
	background-color: #f6feff;
    font-size: 0.9em;
    padding: 0.1em;
}

#staff .table-view table tr.even{
	background-color: #e4fdff;
    font-size: 0.9em;
    padding: 0.1em;
}

#staff .table-view table tr.odd:hover,
#staff .table-view table tr.even:hover
{
	background-color: #c9e797;
}

#staff .table-view table tr.summary td,
#staff .table-view table tr td.summary{
	background-color: #d9d9d9;
    font-size: 0.9em;
    padding: 0.1em;
    border-bottom: 1px double #777777;
}

#staff .table-view table tr td.tright{
	text-align: right;
}

#staff .table-view table tr td.tcenter{
	text-align: center;
}

#staff h6 {font-weight:normal;color:#111;font-size:1em;font-weight:bold;}

.staff .img-thumbnail{
	background-color: #f4f4f4;
	border: 1px solid #f4f4f4;
	border-radius: 1rem;
}

.staff .img-thumbnail:hover{
	background-color: #fff;
	border: none;
}

.so .btn-outline-dark:hover{
	color: black;
	background-color: #9E76B4;
}

.ams-tabs .nav-tabs .nav-link{
	font-weight: bold;
	color: black;
}

.ams-tabs .nav-tabs .nav-link.active, .ams-tabs .nav-tabs .nav-item.show .nav-link {
  color: #9e76b4;
  background-color: #fff;
  border-bottom: solid 6px #9e76b4;
  border-color: #fff #fff #9e76b4;
  font-weight: bold;
}

.ams-tabs .nav-tabs .nav-link:hover, .ams-tabs .nav-tabs .nav-link:focus{
	isolation: isolate;
	border-bottom: solid 6px #9e76b4;
  	border-color: #fff #fff #9e76b4;
  	font-weight: bold;
}

.carousel-caption a
{
	padding: 10px;
	opacity: .8;
}

.article-gallery .gallery-item img
{
	max-height: 160px;
	padding-bottom: 5px;
}

.article a:hover
{
	color :#9D76B3;
	text-decoration: none;
}

.ams-icon-email{
    background-image: url(../img/mail-icon.png);
    background-repeat: no-repeat;
    width: 25px; 
    height: 25px; 
    padding-left: 30px; 
}

.ams-icon-phone{
    background-image: url(../img/phone-icon.png);
    background-repeat: no-repeat;
    width: 25px; 
    height: 25px; 
    padding-left: 30px; 
}

.overlay{
 transition: transform .2s; /* Animation */
}

 .overlay:hover {
    -webkit-transform: scale(1.1);
    -ms-transform: scale(1.1);
    transform: scale(1.1);
}

.overlay2{
 transition: transform .2s; /* Animation */
}

 .overlay2:hover {
    -webkit-transform: scale(1.01);
    -ms-transform: scale(1.01);
    transform: scale(1.01);
}

.ita-header{
	background-color: #274980; color: white;
}

.ita-body{
	padding: 10px 10px; 
	border: 1px solid rgba(0, 0, 0, 0.03);
}

.ita-body:hover{
	background-color: #f4f8fa;
}

.ita-body .card-body{
	padding: 5px; 
}

.ita-body .btn{
	padding:0;
	color: #212529;
	text-decoration: none;
}

.ita-body .btn:focus, .ita-body .btn:hover, .ita-body .btn-link:hover {
  outline: 0;
  box-shadow: none;
  text-decoration: none;
  color: #212529;
}

.cookie-consent-popup {
  font-size: 14px;
  color: white;
  background-color: rgba(128, 98, 153, 0.8);
}

.cookie-consent-popup button {
  color: white;
  background-color: red;
  padding: 2px 16px;
  border: none;
  border-radius: 10px;
}
