/* ---------- modal ---------- */

.fade-custom {
  opacity: 0;
  -webkit-transition: opacity 6s linear;
  -moz-transition: opacity 6s linear;
  -ms-transition: opacity 6s linear;
  -o-transition: opacity 6s linear;
  transition: opacity 6s linear;
}
.modal.custom {
  display: none;
  overflow: auto;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1050;
  -webkit-overflow-scrolling: touch;
  outline: 0;
}
.modal.custom .modal-dialog {
  position: relative;
  width: 90%;
  margin: auto;
}
.modal.custom .modal-backdrop {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1040;
  background-color: #000000;              6f4f1e

}
.modal-backdrop.in {
  opacity: 1;
}
.modal.custom .modal-content {
  position: relative;
  background-color: #000000;
  border: 1px solid #999999;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 0px;
  -webkit-box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5);
  box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5);
  background-clip: padding-box;
  outline: 0;
}
.modal.custom .modal-body {
  position: relative;
  padding: 40px 20px 20px;
}
.modal.custom .modal-body :not(.img) {
  filter: grayscale(0%) !important;
}
.modal.custom .modal-footer {
  padding: 0px 20px 20px;
  text-align: center;
  border-top: none;
}



.features-intro.style-1 li strong {
    background-color: #909090;
    border-radius: 50%;
    color: #fff;
    font-size: 24px;
    display: block;
    height: 48px;
    line-height: 51px !important;
    position: absolute;
    top: 6px;
    left: 0;
    text-align: center;
    width: 48px;
}

.features-intro.style-1 li {
    margin-bottom: 36px;
    padding-left: 72px;
    position: relative;
    padding-top: 15px;
}

.features-intro.style-1 li .line-icon {
    background: #e0e0e0;
    display: block;
    width: 5px;
    height: 100%;
    position: absolute;
    top: 53px;
    left: 23px;
}




/*---------------- procurement ------------------*/

.features-intro.style-2 .module-title {
    color: #ffffff;
    font-size: 18px;
    font-weight: bold;
}
.features-intro.style-2 .mod-articles-category-title {
    font-size: 16px;
}
.features-intro.style-2 .mod-articles-category-readmore {
	float: right;
}
.features-intro.style-2 .category-module {
    background: #ffffff;
}
.features-intro.style-2 {
	border-radius: 5px;
	background: #113f6e;
	padding:10px 10px 10px 10px;
}
.features-intro.style-2 .row-fluid {
	margin-bottom:48px;
}
.features-intro.style-2 .row-fluid:last-child {
	margin-bottom:0;
}
.features-intro.style-2 .row-fluid .feature-item {
	border:1px solid #e0e0e0;
	border-radius:2px;
	min-height:300px;
	margin-bottom:24px;
	padding:24px;
	-webkit-transition:all 0.35s;
	-moz-transition:all 0.35s;
	-o-transition:all 0.35s;
	transition:all 0.35s;
}
@media screen and (min-width:992px){.features-intro.style-2 .row-fluid .feature-item{margin-bottom:0}}.features-intro.style-2 .row-fluid .feature-item:hover {
	border-color:#909090;
}
.features-intro.style-2 .row-fluid .hilite {
	border:2px solid #3498db;
	-webkit-box-shadow:5px 5px 0 rgba(0, 0, 0, 0.08);
	box-shadow:5px 5px 0 rgba(0, 0, 0, 0.08);
}
.features-intro.style-2 .row-fluid .hilite .fa {
	color:#3498db;
}
.features-intro.style-2 .row-fluid .fa {
	color:#606060;
	font-size:40px;
}
.features-intro.style-2 .row-fluid .badge-new {
	background-color:#008c31;
	color:#fff;
	display:inline-block;
	font-weight:normal;
	margin-top:-10px
}

/*---------------- social-links ------------------*/

.social-links {
 list-style:none;
 margin:24px 0 0;
 padding:0;
 text-align:right
}
.social-links li {
 display:inline-block
}
.social-links li a {
 background-color:rgba(0, 0, 0, 0.1);
 border-radius:2px;
 display:inline-block;
 height:32px;
 line-height:32px;
 text-align:center;
 width:32px
}


/*------------ หน้าหลัก ------------*/
/*-- font weight ของ Intro Text --*/
.magazine-item .page-header h2 {
    font-weight: 500 !important;
}


/* ระยะ padding บนสุดของเพจ (ทุกหน้า) */
body {
    padding: 0px !important; 
}

/*------------ ขนาด font ของ Main Menu ------------*/

.navbar-default .navbar-nav > li > a, .navbar-default .navbar-nav > li > span {
 
    font-size: 17px !important;
}




/** MORE NEWS */

.magazine-links::before {
 	content: "เรื่องน่าสนใจ" !important;
	padding: 10px !important;
  	font-size: 16px
}



/*------- ขนาดของรูป Intro Image -------*/
/*article img, .article-intro img {
    display: block;
    max-width: 260px;
    height: auto;
  	margin-right: 10px;
}*/

/*------------ รูปบุคลากร ------------*/
/*.img-responsive, .thumbnail > img, .thumbnail a > img, .carousel-inner > .item > img, .carousel-inner > .item > a > img {
    display: block;
    max-width: 180px;
    height: 180px;
}*/




/** ระยะห่างเหนือชื่อบทความ */

.corporate .items-row {
    margin-bottom: 10px;
}

/** ระยะห่างใต้ชื่อบทความ + font size ของชื่อบทความ */

.article-title, .article-header h1 {
  	font-size: 30px;
    margin-bottom:20px;
    line-height: 1.3;
}

/** ระยะห่างใต้ชื่อผู้เขียน+วันที่เผยแพร่ */

.article-header + .article-aside {
    margin-bottom: 20px;
}

/** กำหนด font ในบทความ แบบมีหัว */
/*p {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    margin: 0 0 10px;
}*/



/** หน้า Magazine Category */

.page-subtitle, .page-subheader h2 {
    font-size: 25px;
}

.magazine-intro .magazine-item .item-image {
    max-height: 100% !important;
}

/*------------ Search box ------------*/

.head-search form {
  margin-top: 5px;
  padding-right: 10px;
}
.head-search .search {
  -webkit-box-shadow: 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 2px rgba(0, 0, 0, 0.2) inset;
  -moz-box-shadow: 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 2px rgba(0, 0, 0, 0.2) inset;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 2px rgba(0, 0, 0, 0.2) inset;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  border-radius: 5px;
  background: #ffffff;
  border-left: 0px solid #4c3e2d;
  border-right: 0px solid #4c3e2d;
  padding: 0px 0px 0px 0px;
  position: relative;
}
.head-search .form-control {
  border: 0;
  background: transparent;
  color: #0e3c5d;
  height: 45px;
  line-height: 45px;
  position: relative;
  margin: 10;
  padding: 0 15px 0 40px;
  width: 0;
  -webkit-transition: width 0.2s;
  -o-transition: width 0.2s;
  transition: width 0.2s;
}
@media screen and (min-width: 991px) {
  .head-search .form-control {
    height: 46px;
  }
}


/** แว่นขยายสีน้ำเงิน */
.fa-search {
  color: darkblue !important;
}


/** ขอบรูปอยู่ภายใน frame */

.row {
    margin-left: -15px;
    margin-right: 0px;
}
.col-xs-1, .col-sm-1, .col-md-1, .col-lg-1, .col-xs-2, .col-sm-2, .col-md-2, .col-lg-2, .col-xs-3, .col-sm-3, .col-md-3, .col-lg-3, .col-xs-4, .col-sm-4, .col-md-4, .col-lg-4, .col-xs-5, .col-sm-5, .col-md-5, .col-lg-5, .col-xs-6, .col-sm-6, .col-md-6, .col-lg-6, .col-xs-7, .col-sm-7, .col-md-7, .col-lg-7, .col-xs-8, .col-sm-8, .col-md-8, .col-lg-8, .col-xs-9, .col-sm-9, .col-md-9, .col-lg-9, .col-xs-10, .col-sm-10, .col-md-10, .col-lg-10, .col-xs-11, .col-sm-11, .col-md-11, .col-lg-11, .col-xs-12, .col-sm-12, .col-md-12, .col-lg-12 {
    position: relative;
    min-height: 1px;
    padding-left: 15px;
    padding-right: 0px;
}

.t3-footer {
    color: #999999;
}

/*---------- Read more... ---------*/

.readmore .btn-default {
	border: 0;
	color: #999999;
	line-height: 1;
	float: right;
}

/**
 * Nested numbered list with correct indentation.
 *
 * Tested on Firefox 32, Chromium 37, IE 9 and Android Browser. Doesn't work on IE 7 and previous.
 * Source: https://gist.github.com/jirutka/32049196ab75547b7f47
 */

ol.a {
  list-style-type: none;
  counter-reset: item;
  margin: 0;
  padding: 0;
}

ol.a > li {
  display: table;
  counter-increment: item;
}

ol.a > li:before {
  content: counters(item, ".") ". ";
  display: table-cell;
  padding-right: 0.6em;    
}

li ol.a > li {
  margin: 0;
}

li ol.a > li:before {
  content: counters(item, ".") " ";
}

ol.a > li.parent:before {
  content: "";
  position: absolute;
}

/*
ol.a {
  list-style-type: none;
  counter-reset: section;
  margin: 0;
  padding: 0;
}

ol.a > li {
  display: table;
  counter-increment: section;
  margin-bottom: 0.6em;
}

ol.a > li:before {
  content: counters(section, ".") ". ";
  display: table-cell;
  padding-right: 0.6em;    
}

li ol.a > li {
  margin: 0;
}

li ol.a > li:before {
  content: counters(section, ".") " ";
}
*/


/**
 * Ordered list (HTML) lower-alpha with right parentheses?
 *
 * Source: http://stackoverflow.com/questions/1632005/ordered-list-html-lower-alpha-with-right-parentheses
 */
ol.b {
    counter-reset: list;
  	margin: 0;
  	padding: 0;
}
ol.b > li {
  	display: table;
    list-style: none;
    position: relative;
}
ol.b > li:before {
    counter-increment: list;
    content: counter(list) ") ";
  	display: table-cell;
	padding-right: 0.6em;
}


/* ---------- bullet แบบ hyphen ---------- */
ul.dash {
    list-style: none;
    margin-left: 0;
}

ul.dash > li:before {
    display: inline-block;
    content: "-";
    width: 1em;
    margin-left: -1em;
}

/*-------------- footer -----------------*/

/*-----เปลี่ยนโลโก้ T3 Framework เป็น Hoover Effect-----*/

.t3-logo-light {
	opacity: 0.4;
    filter: alpha(opacity=40); 
}

.t3-logo:hover, .t3-logo:active, .t3-logo:focus {
    opacity: 1.0;
    filter: alpha(opacity=100); 
}

.features-intro.style-1 li strong {
    background-color: #909090;
    border-radius: 50%;
    color: #fff;
    font-size: 24px;
    display: block;
    height: 48px;
    line-height: 48px;
    position: absolute;
    top: 6px;
    left: 0;
    text-align: center;
    width: 48px;
}

.features-intro.style-1 li .line-icon {
    background: #e0e0e0;
    display: block;
    width: 1px;
    height: 100%;
    position: absolute;
    top: 54px;
    left: 23px;
}

.features-intro.style-1 li {
    margin-bottom: 36px;
    padding-left: 72px;
    position: relative;
}

.features-intro.style-1 ul {
    list-style: none;
}

li {
    line-height: 1.5;
}

.features-intro.style-1 {
    list-style: none;
}

.features-intro.style-1 ul {
    list-style: none;
    margin: 0;
    padding: 0;
}








/*.logo a {
background: none;
}*/

.logo a {
    color: #ffffff;
}

/*------- กำหนด litebox ให้แสดงรูปเต็ม  -------*/
.litebox-overlay .litebox-container {
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
  	z-index: 9999;
	overflow-y: scroll !important;
	scrollbar-width: none;  /* Firefox */
	-ms-overflow-style: none;  /* Internet Explorer 10+ */
}

.litebox-overlay iframe, .litebox-overlay img {
  	position: inherit;
  	top: 3% !important;
  	padding: 20px !important;
    max-width: 100% !important;
    max-height: none !important;
}

.litebox-overlay .litebox-close {
    top: 10px !important;
  	right: 25px !important;
}
