/*
 * Globals
 */
 @font-face {
  font-family: 'SMBxAdvanceRegular';
  src: url('./fonts/SMBxAdvanceRegular.eot'); /* IE9 Compat Modes */
  src: url('./fonts/SMBxAdvanceRegular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('./fonts/SMBxAdvanceRegular.woff') format('woff'), /* Modern Browsers */
       url('./fonts/SMBxAdvanceRegular.ttf') format('truetype'), /* Safari, Android, iOS */
       url('./fonts/SMBxAdvanceRegular.svg') format('svg'); /* Legacy iOS */
  font-weight: normal;
  font-style: normal;
}

/* Links */
a,
a:focus,
a:hover {
  color: #fff;
}

/* Custom default button */
.btn-default,
.btn-default:hover,
.btn-default:focus {
  color: #333;
  text-shadow: none; /* Prevent inheritence from `body` */
  background-color: #fff;
  border:0;
 /* border: 1px solid #a8a8a8;*/
}
.btn-lg, .btn-group-lg>.btn,.btn {
border-radius: 0px;
}

/*
 * Base structure
 */

html,
body {
  height: 100%;
  background-color: #000;
}
body {
  color: #fff;
  text-align: center;
  text-shadow: 0 1px 3px rgba(0,0,0,.5);
   font-family: 'SMBxAdvanceRegular';
   font-size: 20px;
}
h3, .h3 {
font-size: 32px;
}

/* Extra markup and styles for table-esque vertical and horizontal centering */
.site-wrapper {
  display: table;
  width: 100%;
  height: 100%; /* For at least Firefox */
  min-height: 100%;
  -webkit-box-shadow: inset 0 0 100px rgba(0,0,0,.5);
          box-shadow: inset 0 0 100px rgba(0,0,0,.5);
}
.site-wrapper-inner {
  display: table-cell;
  vertical-align: top;
}
.cover-container {
  margin-right: auto;
  margin-left: auto;
}

/* Padding for spacing */
.inner {
  padding: 4px;
}


/*
 * Header
 */
.masthead-brand {
  margin-top: 10px;
  margin-bottom: 10px;
}

.masthead-nav > li {
  display: inline-block;
}
.masthead-nav > li + li {
  margin-left: 20px;
}
.masthead-nav > li > a {
  padding-right: 0;
  padding-left: 0;
  font-size: 16px;
  font-weight: bold;
  color: #fff; /* IE8 proofing */
  color: rgba(255,255,255,.75);
  border-bottom: 2px solid transparent;
}

.masthead-nav > li > a:hover,
.masthead-nav > li > a:focus {
  background-color: transparent;
 /* border-bottom-color: #a9a9a9;
  border-bottom-color: rgba(255,255,255,.25);*/
}
.nav > li > a {
    padding: 0;
}
.masthead-nav > .active > a,
.masthead-nav > .active > a:hover,
.masthead-nav > .active > a:focus {
  color: #fff;
  border-bottom-color: #fff;
}

.masthead  nav i{
	background-repeat: no-repeat;
    background-size: 35px 35px;
    display: block;
    height: 38px;
    padding: 0;
    top: 4px;
    width: 38px;
}
nav i.home{
	background-image: url("images/btn_home.png");
}
nav i.search{
	background-image: url("images/btn_search.png");
}

img.img-logo{	
	margin: -95px auto 0;
}

.main-menu a.btn{
text-align:left;
padding-left:40px;
color:#fff;
}
.main-menu-inside a.btn{
color:#fff;
font-size:28px;
}
.main-menu a.btn-c1,.main-menu-inside a.btn-c1{background-color:#b81220;}
.main-menu a.btn-c2,.main-menu-inside a.btn-c2{background-color:#bd5500;}
.main-menu a.btn-c3,.main-menu-inside a.btn-c3{background-color:#ccbb00;}
.main-menu a.btn-c4,.main-menu-inside a.btn-c4{background-color:#077840;}
.main-menu a.btn-c5,.main-menu-inside a.btn-c5{background-color:#292961;}
.main-menu a.btn-c0,.main-menu-inside a.btn-c0{background-color:#7b3b8c;}

.main-menu-inside a:not(:first-child){
	 background-color: #333;
    font-size: 22px;
    overflow: hidden;
    padding: 2px 7px;
    text-align: left;
}
/*
.main-menu a.btn:nth-child(1),.main-menu a.btn:nth-child(7){
background-color:#b81220;
}
.main-menu a.btn:nth-child(2),.main-menu a.btn:nth-child(8){
background-color:#bd5500;
}
.main-menu a.btn:nth-child(3),.main-menu a.btn:nth-child(9){
background-color:#ccbb00;
}
.main-menu a.btn:nth-child(4),.main-menu a.btn:nth-child(10){
background-color:#077840;
}
.main-menu a.btn:nth-child(5),.main-menu a.btn:nth-child(11){
background-color:#292961;
}
.main-menu a.btn:nth-child(6),.main-menu a.btn:nth-child(12){
background-color:#7b3b8c;
}
*/

@media (min-width: 320px) {
  .nav.masthead-nav {
    float: left;
    width: 42px;
    margin-top: 26px;
   }
  .nav.masthead-nav.navbar-right {
    float: right;
  }

}


@media (min-width: 768px) {
  .masthead-brand {
    float: left;
  }
  .masthead-nav {
    float: left;
  }

}
/*
 * icon
*/
.glyphicon {
font-size:28px;
padding: 4px;
}
/*
 * Cover
 */

.cover {
  padding: 10px 20px 10px 20px;
}
.cover .btn-lg {
  padding: 2px 20px;
font-size: 25px;
/*  font-weight: bold;*/
}

/*
 * list news
 */
 .list-newsiphone {
    margin: 2px 0;
    padding: 0;
    text-align: left;
}
.list-newsiphone > li {
	 background-color: #333;
    height: 36px;
    margin: 4px 0;
    overflow: hidden;
    padding: 5px 7px;
    /*text-overflow: "...";*/
}

ul.list-news {
	list-style:none;
	padding:5px 0px;
}
ul.list-news   li {
   background-color: #333;
    font-size: 20px; 
    text-align: left;
     padding: 5px 0 10px;
       margin-bottom: 6px;
 
}

ul.list-news   li  a{
display: block;
    height: 22px;
    overflow: hidden;
   text-overflow: ellipsis;
  /* text-overflow:    " อ่านต่อ ...";*/
    white-space: nowrap;
    padding-left:5px;
}
	ul.list-news   li a {
	/* width: 100%;*/
	}
	
	
	
ul.list-news3 {
	list-style:none;
	padding:5px 0px;
}
ul.list-news3   li {
   background-color: #333;
    font-size: 20px; 
    text-align: left;
     padding: 5px 0 10px;
       margin-bottom: 6px;
 
}

ul.list-news3   li  a{
display: block;
    height: 22px;
    overflow: hidden;
   text-overflow: ellipsis;
  /* text-overflow:    " อ่านต่อ ...";*/
   /* white-space: nowrap;*/
    padding-left:5px;
}
	ul.list-news3   li a {
	 width: 100%;
	}
	
	
/*
 *  news detail
 */
 h3#header-newsdetail {
    font-size: 28px;
} 
 h3[id]{
  margin-top: 10px;
 text-align:left;
 }
 .newsdetail{
 padding-bottom: 40px;
  text-align:left;
 }
 ul li {
 list-style:none;
 
 }
 img#no-member{
 width:100%;
 }
/*
 * Footer
 */
 div#footer {
    display: block;
    height: 50px;
    position: fixed;

}

 .mastfoot {
    position: fixed;
    bottom: 0;
      padding: 0 4px;
  }
.mastfoot {
  color: #999; /* IE8 proofing */
  color: rgba(255,255,255,.5);
}
@media (max-width: 1024px) {
	.form-control {    
	
	    margin: 0 auto;
	    width: 75%;
	}
}
@media (max-width: 768px) {
	ul.list-news   li {
     width: 728px;
	}
	.form-control {    
	    font-size: 34px;
	    height: 50px;
	    margin: 0 auto;
	   /* width: 80%;*/
	   width: 100%;
	}
	.btn {
		font-size: 25px;
		padding: 10px 35px;
	
	}
	div#footer {
    width: 100%;
	}
}
@media (max-width: 640px) {
	div#footer {
	 width: 100%; /* Must be percentage or pixels for horizontal alignment */
	}
	ul.list-news   li {
	 width: 600px;
	}

}

@media (max-width: 360px) {
	h3{
	font-size:30px;
	}
	ul.list-news   li,ul.list-newsiphonw li {
	 width: 320px;
	}

	div#footer {
	 width: 100%; /* Must be percentage or pixels for horizontal alignment */
	}
	.form-control {
 	 font-size: 30px;
	    height: 50px;
	    margin: auto;
	    width: 100%;
	}
	.btn {
	/*	border-radius: 6px;*/
    font-size: 20px;
    padding: 6px 30px;
	}
}
@media (max-width: 320px) {
	ul.list-news li ,ul.list-newsiphonw li {
	 width: 280px;
	}
  	h3{
	font-size:27px;
	}
	.form-control {
	    font-size: 28px;
	    height: 42px;
	 
	}
}




/*
 * Affix and center
 */
 @media (min-width: 640px) {
 	 img#no-member{
 	width:86%;
 	}
}

@media (min-width: 768px) {
	
	.masthead nav i {
	    background-size: 50px auto;  
	    height: 50px;   
	    width: 50px;
	}
	.inner {
	    padding: 7px 22px;
	}
	img.img-logo{	
	margin: -40px auto 0;	
	}
	h3#header-newsdetail {
    font-size: 24px;
	}
	input {    
    height: 80px !important;
     font-size: 48px !important;
	}
	.form-group {
    margin: auto;
    padding: 20px;
  
	}
	.btn {
		font-size: 24px;
		padding: 15px 47px;	
	}
	
  /* Pull out the header and footer */
  .masthead {
    position: fixed;
    top: 0;
  }
 .site-wrapper-inner {
    display: block;
    margin-top: 44px;
    
}
  /* Start the vertical centering */
  .site-wrapper-inner {
  /*  vertical-align: middle;*/
   vertical-align: top;
  }
  /* Handle the widths */
  .masthead,
  .mastfoot,
  .cover-container {
    width: 100%; /* Must be percentage or pixels for horizontal alignment */
  }
}

@media (min-width: 992px) {
  .masthead,
  .mastfoot,
  .cover-container {
    width: 960px;
  }
}

/*
 * button back
 */
 .pager li > a, .pager li > span {
    background: none;
    border:0;
    border-radius: 0;    
}
ul.pager li i[class^='btn']{
	width:95px;	
}
.mastfoot  nav i{
	background-repeat: no-repeat;
	background-size: 90px auto;
    display: block;
    height: 38px;
    padding: 0;
    top: 4px;
    width: 38px;
}
i.btn-back{
	background-image:url(images/btn_back.png);
}
i.btn-next{
	background-image:url(images/btn_next.png);
}
 .pager li > a:hover, .pager li > span { 
    background: none;
 }
 .pager .disabled > a, .pager .disabled > a:hover, .pager .disabled > a:focus, .pager .disabled > span {
    background: none;
    cursor: not-allowed;
}
 /*
 .pager li > a, .pager li > span { 
 border: 1px solid #6c6c6c!important;
 }*/
/* .pager a{
 font-weight: bold;
 ackground: rgb(76,76,76); 
background: -moz-linear-gradient(top, rgba(76,76,76,1) 0%, rgba(89,89,89,1) 12%, 
rgba(102,102,102,1) 25%, rgba(71,71,71,1) 39%, 
rgba(44,44,44,1) 50%, rgba(17,17,17,1) 60%, 
rgba(0,0,0,1) 72%, rgba(28,28,28,1) 91%, 
rgba(43,43,43,1) 100%, rgba(19,19,19,1) 100%); 

background: -webkit-gradient(linear, left top, left bottom, 
color-stop(0%,rgba(76,76,76,1)), 
color-stop(12%,rgba(89,89,89,1)), 
color-stop(25%,rgba(102,102,102,1)), 
color-stop(39%,rgba(71,71,71,1)), 
color-stop(50%,rgba(44,44,44,1)), 
color-stop(60%,rgba(17,17,17,1)), 
color-stop(72%,rgba(0,0,0,1)), 
color-stop(91%,rgba(28,28,28,1)), 
color-stop(100%,rgba(43,43,43,1)), 
color-stop(100%,rgba(19,19,19,1))); 

background: -webkit-linear-gradient(top, rgba(76,76,76,1) 0%,rgba(89,89,89,1) 12%,rgba(102,102,102,1) 25%,rgba(71,71,71,1) 39%,rgba(44,44,44,1) 50%,rgba(17,17,17,1) 60%,rgba(0,0,0,1) 72%,rgba(28,28,28,1) 91%,rgba(43,43,43,1) 100%,rgba(19,19,19,1) 100%); 

background: -o-linear-gradient(top, rgba(76,76,76,1) 0%,rgba(89,89,89,1) 12%,rgba(102,102,102,1) 25%,rgba(71,71,71,1) 39%,rgba(44,44,44,1) 50%,rgba(17,17,17,1) 60%,rgba(0,0,0,1) 72%,rgba(28,28,28,1) 91%,rgba(43,43,43,1) 100%,rgba(19,19,19,1) 100%); 

background: -ms-linear-gradient(top, rgba(76,76,76,1) 0%,rgba(89,89,89,1) 12%,rgba(102,102,102,1) 25%,rgba(71,71,71,1) 39%,rgba(44,44,44,1) 50%,rgba(17,17,17,1) 60%,rgba(0,0,0,1) 72%,rgba(28,28,28,1) 91%,rgba(43,43,43,1) 100%,rgba(19,19,19,1) 100%); 

background: linear-gradient(to bottom, rgba(76,76,76,1) 0%,rgba(89,89,89,1) 12%,rgba(102,102,102,1) 25%,rgba(71,71,71,1) 39%,rgba(44,44,44,1) 50%,rgba(17,17,17,1) 60%,rgba(0,0,0,1) 72%,rgba(28,28,28,1) 91%,rgba(43,43,43,1) 100%,rgba(19,19,19,1) 100%); 

filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#4c4c4c', endColorstr='#131313',GradientType=0 ); 
 }*/
 .pager {
    bottom: 0;
     margin: 10px 0;
    width: 100%;
    background-color: #000;
}

