@import 'https://fonts.googleapis.com/css?family=Kanit';
@import 'http://www.tpa.or.th/css/greyscale.css';
html { position: relative; min-height: 100%; }
body { margin-bottom: 135px; }
h1,h2,h3,h4 { font-family: 'Kanit', sans-serif !important; font-weight: bold; } 
h5 { font-weight: bold; } 
/*
.ehrow { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; display: flex; flex-wrap: wrap; }
.ehrow > [class*='col-'] { display: flex; flex-direction: column; }
.ehrow a { color: #333; }

.box-listbook .row { display: table; }
.box-listbook .row > [class*="col-"] { float: none; display: table-cell; vertical-align: top; }*/
.box-listbook .row a { color: #333; }

.header { margin-bottom: 0.5em; font-family: 'Kanit', sans-serif !important; }
.navbar-default { background-color: #FFF; border: 0 none; }
.navbar-default .navbar-nav > li > a { color: #333; } .navbar-default .navbar-nav > li > a:hover { color: #000; }
ul.navbar-nav { margin-left: 1em; }
.navbar-nav > li > a { padding-top: 30px; }
.navbar-brand img { width: 400px; height: auto; margin-top: -15px; }
.btn-group .btn { border-top-right-radius: 0 !important; border-bottom-right-radius: 0 !important; border-top-left-radius: 0 !important; border-bottom-left-radius: 0 !important; }
.header .btn-primary { background-color: #001B8F; border-color: #FFF; border-width: 2px; }
.header .btn-group .btn-primary-noleftedge { border-left:0 none; }
.header .btn-group .btn-primary-norightedge { border-right:0 none; }
.randombanner { margin-top: 0; margin-bottom: 1em; padding: 0; }
	.carousel { }
	.carousel-caption { /*position: relative; margin-top: 0;*/ display: block; position: static; min-height: 7em; padding-top: 10px; padding-bottom: 20px; bottom: 0px; color: #333; text-shadow: none; /*background-color: #FFF;*/ }
	.carousel-caption h3 { margin: 0; padding: 0; }
	.carousel-indicators { bottom: 0; }
	.carousel-indicators li { border: 1px solid #269abc; }
	.carousel-indicators .active { background-color: #31b0d5; }
.nav-book { margin: 0; padding: 8px 0; background-color: #09C; }
/* .nav-book div { text-align: center; }
.nav-book div a { color: #FFF; } */
.nav-book ul { margin: 0; padding: 0; list-style-type: none; }
.nav-book ul li { display: inline; padding: 0 2.4em; }
.nav-book ul li a { color: #FFF; text-decoration: none; }
.content-intro { padding: 1em 4em; background: #FFF; }
.content-intro h1 { margin-bottom: 1em; font-size: 2em; font-weight: bold; }
.content-intro h1 span { font-size: 1.4em; color: #039; }
.page-title { padding: 0.5em; border: 1px solid #CCC; font-size: 1em; font-weight: bold; }
/* .footer { width: 100%; height: 140px; position: absolute; bottom: 0; padding-top: 0.9em; background: #001B8F; color: #FFF; } */
.footer { width: 100%; min-height: 90px; position: absolute; bottom: 0; padding-top: 0.9em; background: /*#111*/ #001B8F; color: #FFF; font-family: 'Kanit', sans-serif !important; }
.footer strong { font-size: 1.2em; }
.footer a, .footer-links a { color: #FFF; }

.home-logo { text-align: center; }
.home-logo img { height: 96px; width: auto; padding: 0 1em; }
#home-panel-activity { display: block; margin: 0; padding: 0; list-style-type: none; overflow: hidden; }
#home-panel-activity li { margin: 3px 0; padding: 10px 0; border-bottom: 1px dotted #999; }
/* #home-panel-activity li:before { font-family: 'Glyphicons Halflings'; content: "\e258"; color: #999; font-size: 0.4em; margin-right: 0.7em; } */
#home-panel-activity h4 { font-weight: bold; position: relative; }
#home-panel-activity h4 .label { position: absolute; right: 0.2em; font-weight: bold; } #home-panel-activity h4 a.label { color: #FFF; }
.home-service { margin: 0.9em 0 0 0; padding: 0.8em 0; background-color: #a5cbf0; background-image: url(../images/homeservice-bg.jpg); background-position: center top; /*background-position: bottom; background-size:cover;*/ }
.home-service > div { padding: 0 1em; }
.home-service > div > div > div > div { margin-bottom: 0.9em; background: #FFF; color: #FFF; }
.home-service > div > div > div > div > h4 { margin: 0.5em 0 0 0; padding-top: 0; text-align: center; }
.home-service > div > div > div > div > p { margin-top: 0; padding: 0 1em 0.7em 1em; }
.home-service > div > div > div:nth-child(1) > div, .home-service > div > div > div:nth-child(4) > div { background: #2b4e86; }
.home-service > div > div > div:nth-child(2) > div, .home-service > div > div > div:nth-child(5) > div { background: #4a78a9; }
.home-service > div > div > div:nth-child(3) > div, .home-service > div > div > div:nth-child(6) > div { background: #5b98ce; }

.backwards { unicode-bidi: bidi-override; direction: rtl; }
.bshadow { margin-bottom: 10px; box-shadow: 0px 2px 5px #888888; }

@media (min-width: 769px) {
	.navbar-nav li > a, .btn-group .btn { font-size: 16px; }
	.dropup, .dropup .btn { font-size: 14px !important; }
	.carousel-caption { position: absolute; bottom: 0.9em; margin: 0; right: 4%; left: 4%; }
	.caption-invert { color: #FFF !important; text-shadow: 0 1px 2px rgba(0,0,0,.6) !important; }
}
@media (max-width: 991px) {
	.carousel-caption { min-height: 4em; }
	.carousel-caption h3 { font-size: 1em; }
	.carousel-caption p { font-size: 0.9em; }
	.nav-book div { border-bottom: 1px solid #FFF; }
	.nav-book div:nth-last-child(1) { border-bottom: 0px none; }
}

@media (max-width: 768px) {
	.navbar-brand img { width: 250px; height: auto; }
	.navbar-toggle { padding: 9px 23px; background-color: #FFF; }
	ul.navbar-nav { margin-left: 0; }
	.navbar-nav > li > a { padding-top: 10px; }
	.hamburger-box { float:left; }
	.hamburger-text { float:right; margin-top:-4px; padding-left: 9px; font-weight: bold; }
	.home-logo img { height: 32px; width: auto; padding: 0 0.5em; }
	body { margin-bottom: 0; }
	.footer { position: relative; overflow: hidden; background: #001B8F; color: #FFF; }
}

@media (max-width: 480px) {
	/*.randombanner .carousel-indicators { display: none; }*/
	.box-listbook .row > div { padding: 0.4em; }
	.footer { margin-top: -0.5em; }
	.footer > div { margin-top: -1em; padding-bottom: 1em; }
}

/* order list */
li > ol { counter-reset: item; }
ol > li { counter-increment: item; }
ol ol > li { display: block; }
ol ol > li:before { content: counters(item, ".") ". "; margin-left: -1em; }