* {margin: 0 auto;}
/* @font-face {
	font-family: 'Aarial';
	src: url('fonts/arial.eot');
	src: local(''), url('fonts/arial.woff') format('woff'), url('fonts/arial.ttf') format('truetype'), url('fonts/arial.svg') format('svg');
	font-weight: normal;
	font-style: normal;
} */
@font-face {
	font-family: 'KittithadaMedium65PRegular';
	src: url('../fonts/kit65p.eot');
	src: url('../fonts/kit65p.eot?#iefix') format('embedded-opentype'),  url('../fonts/kit65p.woff') format('woff'),  url('../fonts/kit65p.ttf') format('truetype'),  url('fonts/kit65p.svg#KittithadaMedium65PRegular') format('svg');
	font-weight: normal;
	font-style: normal;
}
@font-face {
 font-family: '04b08';
 src: url('../fonts/04B08.eot') ;/* EOT file for IE */
 src: url('../fonts/04B08.eot?#iefix') format('embedded-opentype'),  url('../fonts/04B08.woff') format('woff'),  url('../fonts/04B08.ttf') format('truetype'),  url('fonts/04B08.svg#KittithadaMedium65PRegular') format('svg');
	font-weight: normal;
	font-style: normal;
}

body{
	font-family: 'Arial';
	color: #000000;
	width: 100%;
	padding: 0;
    margin: 0;
	background-color:#F2F0E8;
}

a {text-decoration: none; color:#000; cursor: pointer;}
p {line-height: 150%;}
ul li{list-style-type:none; line-height: 150%;}
ol li{list-style-type:disc; line-height: 150%;}
#wrapper{
	clear: both;
	overflow: hidden;
	position: relative;
}	
header{
	width: 96%;
	margin: 0 2%;
	color: #fff;
	background: #fff;
	position: relative;
	float: left;
	display: block;
}	
header h1{
	font-size: 48px;
	margin: 5% 0 5% 2%;
	width: 48%;
	float: left;
}
header h1 img{
	width: 100%;	
}
header h2{
	color: #fff;
	text-align: right;
	position: relative;
	float: right;
	margin: 10px 50px 0 0;
	display: none;
}

#mini-nav {
	position: absolute;
	top: 13px;
	right: 10px;
	float: right;
	width: 15%;
}	
#mini-nav a{
	float: left;
	text-align: center;
	line-height: 28px;
	color: #000;
}
#mini-nav a img{
	width: 100%;
}
#mini-nav a.active  {
	position: absolute;
	top: -5px;
	right: 0;
}
#mini-nav a.active img{
	/*width: 30px*/
}
#nav-wrapper{
	
}
#main-nav.inactive {
	display: none;
}
#main-nav.active {
	display: block;
	margin: 4px 0 10px;
	padding: 0 0 0 0;
	clear: both;
	font-family: "Arial";
	
	position: absolute;
	width: 99.5%;
	left: 0;
	z-index: 999;
	
	-webkit-transition: top .5s cubic-bezier(.10,.10,.25,.90);
	-moz-transition: top .5s cubic-bezier(.10,.10,.25,.90);
	-o-transition: top .5s cubic-bezier(.10,.10,.25,.90);
	transition: top .5s cubic-bezier(.10,.10,.25,.90);
	background: #fff;
	border: 1px solid #bebebe;
	box-shadow: 0px 0px 10px #D1D1D1;
}
#main-nav.active h4{
	padding: 10px 10px 10px 5px;
	color: #000;
	font-size: 30px;
	font-weight: normal;
}
#main-nav.active ul {
	list-style: none;
	margin: 0;
	overflow: hidden;
}
#main-nav.active ul li {
	border-top: 1px solid #bebebe;
	width: 50%;
	float: left;
}
#main-nav.active ul li .right {
	border-right: 1px solid #bebebe;
}
#main-nav.active ul li a {
	color: #000;
	padding: 14px 0 14px 14px;
	display: block;
	font-size: 18px;
	font-weight: normal;
	position: relative;
}
#main-nav.active ul li a:hover {
	color: #b9b9b9;
	background: rgba(255,255,255,0.1);
}
#main-nav.active ul li a span{
	position: absolute;
	top: 6px;
	font-size: 12px;
	color: #b9b9b9;
}
#main-nav.active p.website {
	border-top: 1px solid #bebebe;
	color: #b9b9b9;
	text-align: right;
	text-transform: uppercase;
	font-weight: normal;
	font-size: 13px;
	font-family: '04b08';
	padding: 1% 1%;
}
body.fix{ position: fixed;}

#search{
	width: 94%;
	clear: both;
	background: #e3e3e3;
	overflow: hidden;
	padding: 3% 3%;
}
#search form{
	background: #fff;
	width: 100%;
	overflow: hidden;
	position: relative;
}	

#search form  input[type="text"]{
	padding: 1% 1%;
	background: #fff;
	border: none;
	border-bottom: 1px solid #bebebe;
	margin: 1% 0 1% 2%;
	position: absolute;
	bottom: 5px;
	left: 0;
	width: 72%;
	vertical-align: bottom;
	border-radius: 0;
	font-size: 27px;
}
#search form .input_img{
	width: 22%;
	float: right;
	border-left: 1px solid #e3e3e3;
}
#search form .input_img input[type="image"]{
	vertical-align: bottom;
	width: 100%;
}


/************* nav slide  **********/
#slide_wrapper {
  position: relative;
  width: 100%;
  }
  
  .rslides_nav {
  position: absolute;
  -webkit-tap-highlight-color: rgba(0,0,0,0);
  top: 0;
  left: 0;
  opacity: 0.7;
  z-index: 3;
  text-indent: -9999px;
  overflow: hidden;
  text-decoration: none;
  height: 86%;
  width: 50%;
  }
  
.rslides_nav:active {
  opacity: 1.0;
  }

.rslides_nav.next {
  left: auto;
  background-position: right top;
  right: 0;
  }
 
/************* end nav slide  **********/
  
#nav {
	width: 100%;
	overflow: hidden;
	margin: 0 0 2% 0;
	box-shadow: 0px 1px 2px #DADADA;
	font-family: 'KittithadaMedium65PRegular';
}
#nav ul {
	width:100%;
	padding: 0;
}
#nav ul li{
	width: 49.7%;
	display: block;
	background: #ffffff;
	text-align: center;
	margin: 1% 0;
	padding: 1% 0;
	float: left;
}	
#nav ul li.first a{
	border-right: 1px solid #bebebe;
}
#nav ul li a{
	color : #000;
	font-size: 38px;
	display: block;
	padding: 6% 0;
}

#news {
	width: 100%;
	background: #E8E8E8;
	clear: both;
}
#news h3{
	width: 96%;
	color: #fff;
	background: #990000;
	padding: 3% 2%;
	font-size: 35px;
	font-weight: normal;
}

#news .news_inner{
	margin: 2% auto 0;
	width: 96%;
	border: 1px solid #ccc;
	background: #fff;
	border-radius: 5px 5px;
	-moz-border-radius: 5px 5px;
	-webkit-border-radius: 5px 5px;
	box-shadow: 0px 0px 3px #ccc;
}

#item_wrapper{
	padding: 1% 1%;
	overflow: hidden;
	clear: both;
	border-bottom: 1px solid #ddd;
	position: relative;
	display: block;
	min-height: 90px;
}
#item_wrapper:after {
	content: '›';
	width: 22px;
	height: 150px;
	vertical-align: middle;
	font-size: 30px;
	line-height: 86px;
	font-family: Futura, "Futura Condensed", Helvetica, Arial, sans-serif;
	font-weight: bold;
	filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=60);
	opacity: 0.6;
	position: absolute;
	right: 0;
	top: 0;
	pointer-events: none;
	z-index: 10;
}
#item_wrapper .thumb{
	width: 30%;
	float: left;
}
#item_wrapper .thumb img{
	width: 80%;
	border-radius: 4px;
	-webkit-border-radius: 4px;
	-moz-border-radius: 4px;
}
#item_wrapper .thumb .thumbbadge {
	background-color: rgba(49, 80, 50, 0.6);
	border-radius: 2px 2px 2px 2px;
	bottom: 4%;
	color: #FFFFFF;
	display: block;
	float: right;
	font-size: 10px;
	padding: 1px 4px;
	position: absolute;
	width: 22%;
	text-align: right;
	line-height: 16px;
}
#item_wrapper .thumb .thumbbadge .view {
	/*-webkit-box-flex: 1;
	-moz-box-flex: 1;
	box-flex: 1;*/
	border-right: 1px solid rgba(0, 0, 0, 0.1);
    padding-right: 3px;
}
#item_wrapper .thumb .thumbbadge .comment {
	/*-webkit-box-flex: 1;
	-moz-box-flex: 1;
	box-flex: 1;*/
	border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding-left: 3px;
}
#item_wrapper .content{
	width: 60%;
	margin: 0 5% 0 0;
	float: left;
	display: block;
}

#item_wrapper .content a {
	font-weight: bold;
	color: #3B5998;
	width: 95%;
	margin: 0;
}
#item_wrapper .content span {
    font-size: 10px;
	position: absolute;
    right: 10px;
    top: 7px;
}
.rslides_tabs .rslides_here a {
	background: #969696;
  }

#footer{
	width: 100%;
	padding: 0 0 2% 0;
	background: #000;
	text-align: center;
	color: #fff;
	font-size: 12px;
}
#footer .banner img{
	width: 100%;
}
#footer p, #footer a{
	color: #fff;
	line-height: 30px;
}
#footer h4{
	font-size: 12px;
	font-weight: bold;
}
 #footer a{
	text-decoration: underline;
 }



/* iPhone 5 PORTRAIT */
@media only screen and (min-width : 320px) and (max-width : 568px) { 
	#search {background: ;}
	#item_wrapper .thumb {width: 30%;}
	#item_wrapper .thumb .thumbbadge {width: 21%;bottom: 4%;line-height: 130%;}
	#item_wrapper .content {width: 60%;}
	
}

/* iPhone 5 LANDSCAPE */
@media only screen and (min-width : 320px) and (max-width : 568px) {
	@-ms-viewport { 
        width: device-width; 
    }
	
	header {max-width: 568px;}
	header h1 {margin: 2% 0 2% 2%;}
	header h1 img{width: 143px;}
	#mini-nav {top: 10px;right: 10px;width: 10%;}
	#mini-nav a img {width: 80%;}
	#mini-nav a.active {top: -2px;}
	#search {background: ; paddign: 2% 2%;}
	#search form input[type="text"] {width: 82%;}
	#search form .input_img input[type="image"]{width: 65px;}
	#search form .input_img {text-align: right; width: 13%}
		img.rsImg {
			max-width: none;
			width: 90% !important;
			height: auto !important;
			margin-top: 2% !important;
			margin-left: 0% !important;
		}
	#item_wrapper .thumb .thumbbadge {line-height: 130%;bottom: 4%;}
	#item_wrapper .content a {font-size:18px;}

}

/* iPad */
@media only screen and (min-width : 768px) and (max-width : 1024px) {
	#search {background: #ff0000 ;}
	
	header h1 {margin: 2% 0 2% 2%;}
	header h1 img {width: 200px;}
	#mini-nav {right: -11px;}
	#mini-nav a img  {width: 50%;}
	#mini-nav a.active {width: 65%;}
	
	#main-nav.active {width: 100%;}
	#main-nav.active h4{border-bottom: 2px solid #fff;}
	#main-nav.active ul {
		overflow: hidden;
		width: 101%;
		margin: 0 auto
	}
	#main-nav.active ul li {
		width: 32.95%;
		float: left;
		border-right: 1px solid #bebebe;
	}
	#main-nav.active ul li .right{border-right: none;}
	#main-nav.active ul li.none_right{	border-right: none;}
	
	
	#search {width: 96%; padding: 2% 2%;}
	#search form input[type="text"] {width: 81%;}
	#search form .input_img {width: 12%;}
	#nav ul li a {padding: 3% 0;}
	
	#item_wrapper {min-height: 0;}
	#item_wrapper .thumb {width: 10%;}
	#item_wrapper .thumb .thumbbadge {width: 7%;bottom: 10%; line-height: 120%;}
	#item_wrapper .content {width: 80%;}
	
	#footer .banner img {width: 50%;}
}

@media only screen and (min-width : 1025px)  {
	body {width: 1025px;margin: 0 auto;}
	body.fix {position: relative;}
	
	#mini-nav {width: 4%;right: 22px;}
	header h1 {margin: 2% 0 2% 2%;}
	header h1 img {width: 200px;}
	
	#mini-nav {top: 36px;}
	#mini-nav a img  {width: 100%;}
	#mini-nav a.active {top: -27px;}
	
	#main-nav.active {width: 100%;}
	#main-nav.active h4{border-bottom: 2px solid #fff;}
	#main-nav.active ul {
		overflow: hidden;
		width: 101%;
		margin: 0 auto
	}

	#main-nav.active ul li {
		width: 32.95%;
		float: left;
		border-right: 1px solid #bebebe;
	}
	#main-nav.active ul li .right{border-right: none;}
	#main-nav.active ul li.none_right{	border-right: none;}
	
	#search {width: 96%; padding: 2% 2%;}
	#search form input[type="text"] {width: 86%;font-size: 14px;}
	#search form .input_img {width: 8%;}
	#nav ul li a {padding: 2% 0;}
	#nav ul li {margin: 0;}
	#nav {border: 1px solid #bebebe; width: 99.8%;}
	#item_wrapper .thumb {width: 11%;}
	#item_wrapper .thumb .thumbbadge {width: 8%;line-height: 16px; bottom: 15%;}
	
	#footer .banner img {width: 50%;}
}
