/* @import url(../fonts/thsarabunnew.css); */
@import 'https://fonts.googleapis.com/css?family=Kanit|Prompt';
/* 
body{
 font-family: 'ชื่อฟ้อนต์อังกฤษ', 'ชื่อฟ้อนต์ไทย', sans-serif; 
 font-family: 'THSarabunNew';
}
*/

/* ติดริบบิ้นเว็บ 
.black-ribbon {
  position: fixed;
  z-index: 9999;
  width: 70px;
}
@media only all and (min-width: 768px) {
  .black-ribbon {
    width: auto;
  }
}

.stick-left { left: 0; }
.stick-right { right: 0; }
.stick-top { top: 0; }
.stick-bottom { bottom: 0; }
*/

.btn-scroll-up{
  right: 20px;
  bottom: 20px;
  position: fixed;
  z-index: 99999;
 }

body{
  font-family: 'Kanit', sans-serif;
}

h1,h2,h3,h4{
  font-family: 'Prompt', sans-serif;
}

.bg-blue{
  /*background-color: rgba(25,25,112,0.7);   */
  background-color:#1A237E;
}

/* MegaMenu หลายคอลัมน์ */
@media screen and (min-width: 768px) {
  .megamenu ul {
    padding-bottom: 20px;
  }
  .megamenu>.dropdown-menu {
    left: -100%;
    min-width: 900px;
  }
}

.dropdown-md>.dropdown-menu {
  min-width: 550px;
}
.dropdown-lg>.dropdown-menu {
  min-width: 950px;
}

/* responsive nav stacked liked 3.x */
@media(max-width:48em) {
  .navbar .navbar-nav>.nav-item {
    float: none;
    margin-left: .1rem;
  }
  .navbar .navbar-nav,
  .navbar .navbar-brand {
    float: none !important;
  }
}


/* DropdownSubMenu แนวตั้ง */
.dropdown-submenu {
  position: relative;
}
.dropdown-submenu a::after {
  transform: rotate(-90deg);
  position: absolute;
  right: 6px;
  top: .8em;
}
.dropdown-submenu .dropdown-menu {
  top: 0;
  left: 100%;
  margin-left: .1rem;
  margin-right: .1rem;
}

/* dropdown-menu */
.dropdown-menu {
  margin-top: 0;
}
.dropdown-menu .dropdown-toggle::after {
  vertical-align: middle;
  border-left: 4px solid;
  border-bottom: 4px solid transparent;
  border-top: 4px solid transparent;
}
.dropdown-menu .dropdown .dropdown-menu {
  left: 100%;
  top: 0%;
  margin:0 20px;
  border-width: 0;
}
.dropdown-menu > li a:hover,
.dropdown-menu > li.show {
background: #007bff;
color: white;
}
.dropdown-menu > li.show > a{
color: white;
}
@media (min-width: 768px) {
  .dropdown-menu .dropdown .dropdown-menu {
      margin:0;
      border-width: 1px;
  }
}

/* Pagination ลำดับแสดงผล */
.pagination {
  display: inline-block;
  padding-left: 0;
  margin: 20px 0;
  border-radius: 4px;
}
.pagination > li {
  display: inline;
}
.pagination > li > a,
.pagination > li > span {
  position: relative;
  float: left;
  padding: 6px 12px;
  margin-left: -1px;
  line-height: 1.42857143;
  color: #337ab7;
  text-decoration: none;
  background-color: #FFFFFF;
  border: 1px solid #DDDDDD;
}
.pagination > li:first-child > a,
.pagination > li:first-child > span {
  margin-left: 0;
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
}
.pagination > li:last-child > a,
.pagination > li:last-child > span {
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
}
.pagination > li > a:hover,
.pagination > li > span:hover,
.pagination > li > a:focus,
.pagination > li > span:focus {
  z-index: 2;
  color: #23527c;
  background-color: #EEEEEE;
  border-color: #DDDDDD;
}
.pagination > .active > a,
.pagination > .active > span,
.pagination > .active > a:hover,
.pagination > .active > span:hover,
.pagination > .active > a:focus,
.pagination > .active > span:focus {
  z-index: 3;
  color: #fff;
  cursor: default;
  background-color: #337ab7;
  border-color: #337ab7;
}
.pagination > .disabled > span,
.pagination > .disabled > span:hover,
.pagination > .disabled > span:focus,
.pagination > .disabled > a,
.pagination > .disabled > a:hover,
.pagination > .disabled > a:focus {
  color: #777;
  cursor: not-allowed;
  background-color: #fff;
  border-color: #ddd;
}
.pagination-lg > li > a,
.pagination-lg > li > span {
  padding: 10px 16px;
  font-size: 18px;
  line-height: 1.3333333;
}
.pagination-lg > li:first-child > a,
.pagination-lg > li:first-child > span {
  border-top-left-radius: 6px;
  border-bottom-left-radius: 6px;
}
.pagination-lg > li:last-child > a,
.pagination-lg > li:last-child > span {
  border-top-right-radius: 6px;
  border-bottom-right-radius: 6px;
}
.pagination-sm > li > a,
.pagination-sm > li > span {
  padding: 5px 10px;
  font-size: 12px;
  line-height: 1.5;
}
.pagination-sm > li:first-child > a,
.pagination-sm > li:first-child > span {
  border-top-left-radius: 3px;
  border-bottom-left-radius: 3px;
}
.pagination-sm > li:last-child > a,
.pagination-sm > li:last-child > span {
  border-top-right-radius: 3px;
  border-bottom-right-radius: 3px;
}

/* Footer */
.footer {
  background: #283593; 
  padding-top: 40px;
  padding-right: 0;
  padding-bottom: 20px;
  color: #222;
  padding-left: 0;     /* border-top-width: 4px;
  border-top-style: solid;
  border-top-color: #003;*/
}
.footer a{
  color:#FFFFFF;
}
.title-widget {
  color: #898989;
  font-size: 16px; 
  font-weight: 400;
  line-height: 1;
  position: relative;
  text-transform: uppercase;
  /*  font-family: 'Fjalla One', sans-serif; */
  margin-top: 0;
  margin-right: 0;
  margin-bottom: 25px;
  margin-left: 0;
  padding-left: 15px;
}
.title-widget::before {
  background-color: #ea5644;
  content: "";
  height: 22px;
  left: 0px;
  position: absolute;
  top: -2px;
  width: 5px;
}
.widget_nav_menu ul {
  list-style: outside none none;
  padding-left: 0;
}
.widget_archive ul li {
  background-color: rgba(0, 0, 0, 0.3);
  content: "";
  height: 3px;
  left: 0;
  position: absolute;
  top: 7px;
  width: 3px;
}
.widget_nav_menu ul li {
 /* font-size: 13px; */
  font-weight: 500;
  line-height: 20px;
  position: relative;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  margin-bottom: 7px;
  padding-bottom: 7px;
  width:95%;
}
.title-median {
  color: #636363;
  font-size: 20px;
  line-height: 20px;
  margin: 0 0 15px;
  text-transform: uppercase;
  /*  font-family: 'Fjalla One', sans-serif; */
}

#social:hover {
  -webkit-transform:scale(1.1); 
  -moz-transform:scale(1.1); 
  -o-transform:scale(1.1); 
}
#social {
  -webkit-transform:scale(0.8);
  /* Browser Variations: */
  -moz-transform:scale(0.8);
  -o-transform:scale(0.8); 
  -webkit-transition-duration: 0.5s; 
  -moz-transition-duration: 0.5s;
  -o-transition-duration: 0.5s;
}           
/* 
  Only Needed in Multi-Coloured Variation 
*/
.social-fb:hover {
  color: #3B5998;
}
.social-tw:hover {
  color: #4099FF;
}
.social-gp:hover {
  color: #d34836;
}
.social-em:hover {
  color: #f39c12;
}
.social-youtube:hover {
  color: red;
}
.nomargin { 
  margin: 0px; 
  padding: 0px;
}

.footer-bottom {
  background-color: #1A237E;
  min-height: 30px;
  width: 100%;
}
.copyright {
  color: #FFFFFF;
  line-height: 30px;
  min-height: 30px;
  padding: 7px 0;
}
.design {
  color: #FFFFFF;
  line-height: 30px;
  min-height: 30px;
  padding: 7px 0;
  text-align: right;
}
.design a {
  color: #FFFFFF;
}

/* well from bootstrap3 */
.well {
  min-height: 20px;
  padding: 19px;
  margin-bottom: 20px;
  background-color: #f5f5f5;
  border: 1px solid #e3e3e3;
  border-radius: 4px;
  -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .05);
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, .05);
}

.well blockquote {
  border-color: #ddd;
  border-color: rgba(0, 0, 0, .15);
}

.well-lg {
  padding: 24px;
  border-radius: 6px;
}

.well-sm {
  padding: 9px;
  border-radius: 3px;
}

/*--ViewPDF --*/
* {
  box-sizing: border-box;
}

.wrapper {
  margin: 0 auto;
  width: 960px;
}

.pdf-controls {
  width: 100%;
  display: block;
  background: #eee;
  padding: 1em;
}

.rotate0 {
  -webkit-transform: rotate(0deg);
  transform: rotate(0deg);
}

.rotate90 {
  -webkit-transform: rotate(90deg);
  transform: rotate(90deg);
}

.rotate180 {
  -webkit-transform: rotate(180deg);
  transform: rotate(180deg);
}

.rotate270 {
  -webkit-transform: rotate(270deg);
  transform: rotate(270deg);
}

.fixed {
  position: fixed;
  top: 0;
  left: calc(50% - 480px);
  z-index: 100;
  width: 100%;
  padding: 1em;
  background: rgba(238, 238, 238, .9);
  width: 960px;
}

.toolbar {
  background: #303030;
  padding: 10px;
  /*position: fixed;*/
  left: 0;
  right: 0;
  top: 0;
  z-index: 9999;
}

.toolbar span {
  color: white;
}

.my-icon {
  margin: 0 7px;
  cursor: pointer;
}

.my-icon:hover {
  opacity: 0.5;
}

.my-icon.active {
  opacity: 0.5;
}

.my-icon.active:hover {
  opacity: 1;
}

.page-num {
  width: 50px;
  border: 0;
  margin-right: 2px;
  text-align: center;
}

.searchbox {
  width: 0;
  opacity: 0;
  transition: all 0.3s ease-out;
  border: 0px;
  padding: 0 3px;
}

.searchbox:focus,
.searchbox:active {
  outline: 0;
  box-shadow: none;
}

.searchbox:focus {
  opacity: 1;
  width: 200px;
}

.pdf-body {
  margin-top: 5px;
}

input:focus,
input:active {
  outline: 0;
  box-shadow: none;
}

.outline {
  position: fixed;
  left: 0;
  top: 0;
  padding: 60px 5px 5px;
  height: 100vh;
  width: 250px;
  z-index: 9000;
  box-shadow: 3px 0px 5px 0px rgba(0, 0, 0, 0.75);
  background: white;
}

.outline ul {
  padding-left: 25px;
}