/* // My Theme */

body {
  font-family: 'Sarabun', sans-serif;
  font-weight: 200;
  line-height: 1.54;
  background-color: #4b76a5;
}

/* แก้ปัญหา dropdown caret ไม่แสดงผล กรณีใช้ apple iso เช่น ipad iphone */
/* Credit : https://github.com/twbs/bootstrap/issues/17644 */
.caret {
  border-top: 4px solid;
}

.g-ff-navbar {
  font-family: Roboto,Prompt,sans-serif!important;
  font-weight: 400!important;
  font-size: 16px;
}
.g-ff-navbar--sub {
  font-family: Roboto,Prompt,sans-serif!important;
  font-weight: 300!important;
  font-size: 14.5px;
  color: #666;
}
@media only screen and (min-width: 768px) and (max-width: 1199px) {
  /* .g-ff-navbar {
    font-size: 13.5px!important;
    font-size: 14.5px!important;
  }
  .g-ff-navbar--sub {
    font-size: 12.5px!important;
    font-size: 13.5px!important;
  } */
}

/* // Custom Margin Bottom Paragraph <p> ให้เหมาะสมกับภาษาไทยที่มีสระและวรรณยุกต์ */
p {
  margin-bottom: 14px;
}

/* --------------------------------------------------------------- */
/* อ้างอิงจาก GOOGLE REFERENCE THAI FONT BODY  14px */
/* --------------------------------------------------------------- */
h1 {
  color: #edff02;
  font-size: 24px;
  font-weight: 400;
}
h2 {
  color: #edff02;
  font-size: 20px;
  font-weight: 400;
}
h3 {
  color: #edff02;
  font-size: 18px;
  font-weight: 400;
}
h1, h2, h3 {
  line-height: 1.29;
}
h1, h2, h3, h4, h5, h6 {
  margin: 1.236em 0 .618em;
}

h1, h2, h3, h4 {
  font-family: 'Roboto', 'Pridi', sans-serif;
}
strong, b {
  font-weight: 500;
}
@media (min-width: 768px) {
  .lead {
    font-size: 18px;
  }
}

/* ========================================================================================= */
/* // Custom Navbar Hover.CSS effect */
/* ========================================================================================= */
.hvr-shutter-out-horizontal:before {
  background: #0f5e9c;
}
.hvr-shutter-out-horizontal {
  background: none;
}

/* ========================================================================================= */
/* actual dropdown animation (Speed Change)*/
/* ง่ายๆ ไม่ต้องไปปรับแต่ง js */
/* Credit : https://stackoverflow.com/questions/12115833/adding-a-slide-effect-to-bootstrap-dropdown */
.dropdown .dropdown-menu {
  -webkit-transition: all 0.3s;
  -moz-transition: all 0.3s;
  -ms-transition: all 0.3s;
  -o-transition: all 0.3s;
  transition: all 0.3s;

  max-height: 0;
  /* display: block; */
  overflow: hidden;
  opacity: 0;
}

.dropdown.open .dropdown-menu {
  max-height: 200px;
  opacity: 1;
}


/* ========================================================================================= */
/* // Custom Navbar */
/* ========================================================================================= */
.navbar {
  margin-bottom: 1px;
  border: 0;
  /* ปรับความสูงให้สวยงาม */
  min-height: 65px;
  padding-top: 8px;
}
.navbar-inverse {
  background-color: #413380;
  border-color: #080808;
}
.navbar-inverse .navbar-brand {
  color: #fbf005;
}
.navbar-inverse .navbar-nav>li>a {
  color: #f5f5f5;
}
.navbar-inverse .navbar-nav>li>a:focus, .navbar-inverse .navbar-nav>li>a:hover {
  color: #444;
  background-color: transparent;
  background-color: #fef102;
}
.navbar-inverse .navbar-nav>.active>a, .navbar-inverse .navbar-nav>.active>a:focus, .navbar-inverse .navbar-nav>.active>a:hover {
  color: #b11e21;
  background-color: #fff;
  background-color: rgba(255,255,255,0.3);
}
.navbar-brand {
  margin-right: 15px;
  font-size: 18px;
  text-shadow: 2px 2px 2px #6b1014
  /* letter-spacing: -1px; */
}
.navbar-inverse .navbar-brand:focus, .navbar-inverse .navbar-brand:hover {
  /* color: #888; */
  color: #e8de06;
}

/* // Custom Navbar on Mobile Device */
.navbar-inverse .navbar-toggle {
  border-color: #3498db;
}
.navbar-inverse .navbar-toggle:focus, .navbar-inverse .navbar-toggle:hover {
  background-color: rgba(255,255,255,0.3);
}
.navbar-inverse .navbar-toggle:active {
  border-radius: 50%;
  background-color: rgba(255,255,255,0.3);
}
.navbar-inverse .navbar-nav>.open>a, .navbar-inverse .navbar-nav>.open>a:focus, .navbar-inverse .navbar-nav>.open>a:hover {
  color: #fff;
  background-color: #567cb7;
}

/* .navbar-inverse .navbar-toggle .icon-bar {
  background-color: #f5ea08;
} */

@media (max-width: 767px) {
  .navbar-inverse .navbar-nav .open .dropdown-menu>li>a {
    color: #fff;
  }
  .navbar-inverse .navbar-nav>li>a {
    color: #fff;
  }
  .navbar-inverse .navbar-nav>li>a:focus, .navbar-inverse .navbar-nav>li>a:hover {
    color: #fff;
    background-color: #1871c5;
  }
}


@media (max-width: 767px) {
  .dropdown-menu>li>a {
    white-space: unset;
  }
}
/* แก้ปัญหา Dropdown ใน Mobile มีความสูงไม่พอ */
@media (max-width: 767px) {
  .dropdown.open .dropdown-menu {
    max-height: 350px !important;
    background-color: #6086c1;
  }
}
/* เพิ่มตวามสวยงามการแสดงผล Navbar Brand */
@media (max-width: 767px) {
  .navbar-brand {
    margin-left: -15px;
    margin-right: unset;
  }
}


/* ========================================================================================= */
/* Navbar fixed-top-mobile-only */
/* ========================================================================================= */
.fixed-top-mobile-only {
  position: absolute;
  background-color: transparent;
}
@media (max-width: 767px) {
  .fixed-top-mobile-only {
    position: fixed;
    border-bottom: 2px solid #133353;
    background-color: #7d9fc1;
    background-image: url(../images/bg-header-bar-xs.png);
    background-repeat: no-repeat;
  }
}



/* ========================================================================================= */
/* // Custom Header */
/* ========================================================================================= */
.my-container-fluid-max-width {
  max-width: 1680px;
  width: 96%;
  padding-top: 15px;
  padding-bottom: 15px;
}
@media (max-width: 767px) {
  .my-container-fluid-max-width {
    padding-top: unset;
    padding-bottom: unset;
  }
}

/* ------------------------------------------------ */
/* ปรับให้ Tablet Mode มีเมนูที่สวยงาม */
@media only screen and (min-width: 768px) and (max-width: 1239px) {
  .nav.navbar-nav.navbar-right {
    float: left !important;
    /* padding-top: 15px; */
  }
}
/* ------------------------------------------------ */



/* ========================================================================================= */
/* Hero Container */
/* ========================================================================================= */
.hero-container{
  background: #3498db;
}
.hero-wrapper {
  /* padding: 120px 15px 50px 15px; */
  padding-left: 15px;
  padding-right: 15px;
  margin: auto;
  /* max-width: 765px; */
  max-width: 900px;
  text-align: center;
}
.hero-text-scale-h1 {
  font-family: Roboto,Prompt,sans-serif!important;
  font-size: 56px;
  font-weight: 700;
  color: #fff;
}
.hero-text-scale-h2 {
  font-family: Roboto,Prompt,sans-serif!important;
  font-size: 24px;
  font-weight: 400;
  color: #fff;
}

@media (min-width: 1200px) {
  .hero-text-scale-h1 {
    font-size: 60px!important;
  }
  .hero-text-scale-h2 {
    font-size: 24px!important;
  }
}
@media only screen and (max-width: 1199px) {
  .hero-text-scale-h1 {
    font-size: 56px!important;
  }
  .hero-text-scale-h2 {
    font-size: 22px!important;
  }
}
@media only screen and (max-width: 991px) {
  .hero-text-scale-h1 {
    font-size: 50px!important;
  }
  .hero-text-scale-h2 {
    font-size: 20px!important;
  }
}
@media only screen and (max-width: 767px) {
  .hero-text-scale-h1 {
    font-size: 44px!important;
  }
  .hero-text-scale-h2 {
    font-size: 22px!important;
  }
}
@media only screen and (max-width: 479px) {
  .hero-text-scale-h1 {
    font-size: 30px!important;
  }
  .hero-text-scale-h2 {
    font-size: 16px!important;
  }
}


.home-hero--shadows {
    background-color: #055aaa;
    background-repeat: repeat-x;
    background-position: bottom;
    background-position-y: 101%;
    background-position-y: calc(100% + 2px);
    background-size: 554px 180px;
}
.home-hero--shadows, .home-hero--illustrations {
    display: -webkit-box;
    display: -moz-box;
    display: box;
    display: -webkit-flex;
    display: -moz-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -moz-box-align: center;
    box-align: center;
    -webkit-align-items: center;
    -moz-align-items: center;
    -ms-align-items: center;
    -o-align-items: center;
    align-items: center;
    -ms-flex-align: center;
    height: 100vh;
    min-height: 650px;
}
@media only screen and (max-width: 511px) {
  .home-hero--shadows, .home-hero--illustrations {
    min-height: unset;
  }
}
.home-hero--illustrations {
    background-image: url(../images/Hero-Hydraulic-BB.jpg);
    background-repeat: no-repeat;
    /* background-position: bottom; */
    background-position: center;
    /* background-size: 707px 173px; */
    background-size: cover;
}
.home-hero {
    position: relative;
    width: 100%;
    overflow: hidden;
}


.hero-button {
  padding: 17px 20px;
  min-width: 270px;
  font-size: 20px;
  font-weight: 500 !important;
  font-family: Roboto,Prompt,sans-serif!important;
}
@media all and (max-width:767px) {
  .hero-button { 
    width: 100%;
    display:block;
    margin-bottom: 15px;
    font-size: 22px;
  }
}
@media all and (max-width:480px) {
  .hero-button {
    font-size: 18px;
  }
}
.hero-button.btn-success {
  border-width: 3px;
  border-color: #6cce6c;
  background-color:#c5bb02
  /* opacity: .9; */
}
.hero-button.btn-success:hover {
  background-color:#e0d500;
}
.hero-button.btn-info {
  border-width: 3px;
  border-color: #fff;
  background-color: #3498db;
  /* opacity: .9; */
}
.hero-button.btn-info:hover {
  color: #555;
  background-color: #fff;
  border-color: #fff;
}


/* ========================================================================================= */
/* SIDEBAR */
/* ========================================================================================= */
.sideBar {
  margin-bottom: 20px;
}
.sideBar .navMenu {
  padding-bottom: 20px;
  /* border: 1px solid #ccc; */
  border: 1px solid #d67073;
  /* background-color: #fff; */
  background-color: #6b0709;
  -webkit-box-shadow: 0px 3px 9px 0px rgba(0,0,0,0.2);
  -moz-box-shadow: 0px 3px 9px 0px rgba(0,0,0,0.2);
  box-shadow: 0px 3px 9px 0px rgba(0,0,0,0.2);
}
.sideBar .navMenu h4 {
  font-size: 20px;
  /* color: $company_primary_color_darker; */
  /* color: #008c83; */
  color: #fffefe;
}
.sideBar .navMenu ul>li>a {
  /* color: $company_primary_color_dark; */
  /* color: #00a69b; */
  /* color: #185d8c; */
  color: #eee;
  font-size: 16px;
  font-weight: 400;
}

.sideBar .nav>li>a:hover, 
.sideBar .nav>li>a:focus {
  background-color: #9b9ba7;
  color: #fff !important;
  border-radius: 0;
}

.sideBar .nav>li.active>a, 
.sideBar .nav>li.active>a:hover, 
.sideBar .nav>li.active>a:focus {
  background-color: #9cccbc;
  color: #fff !important;
  border-radius: 0;
}

.dropdown-toggle .fa--caret {
  margin-top: 4px;
  float: right;
  opacity: 0.7;
}

.dropdown-menu.dropdown-menu--relative {
  position: relative;
  margin-bottom: 15px;
  padding-top: 10px;
  padding-bottom: 20px;
  width: 100%;
  border: 0;
  box-shadow: none;
  border-bottom: 1px solid #ccc;
}

.dropdown-menu.dropdown-menu--relative > li > a {
  word-wrap: break-word;
  white-space: normal;
}


/* // MEDIUM SCREEN UP (md) */
@media screen and (min-width: 992px) {
  .caret {
    margin-top: 4px;
    float: right;
    opacity: 0.7;
  }
  .caret.caret--right {
    border-bottom: 4px solid transparent;
    border-top: 4px solid transparent;
    border-left: 4px solid;
    border-right: 0;
  }
  .dropdown-menu.dropdown-menu--right {
    top: 0;
    left: 98%;
  }
}


.widget {
  margin-bottom: 20px;
  padding: 10px;
  border: 1px solid #ccc;
  min-height: 80px;
  background-color: #f5f5f5;
  opacity: .8;
  -webkit-box-shadow: 0px 3px 9px 0px rgba(0,0,0,0.2);
  -moz-box-shadow: 0px 3px 9px 0px rgba(0,0,0,0.2);
  box-shadow: 0px 3px 9px 0px rgba(0,0,0,0.2);
}
.widget:hover {
  opacity: 1;
}



/* ========================================================================================= */
/* MAIN CONTENT */
/* ========================================================================================= */
.mainContent {
  padding: 35px 15px 15px 15px;
  margin-bottom: 20px;
  border: 1px solid #ccc;
  /* background-color: #fff; */
  background-color: #6390c1;
  color: #f5f5f5;
  -webkit-box-shadow: 0px 3px 9px 0px rgba(0,0,0,0.2);
  -moz-box-shadow: 0px 3px 9px 0px rgba(0,0,0,0.2);
  box-shadow: 0px 3px 9px 0px rgba(0,0,0,0.2);
}

.mainContent h1 {
  margin-top: 0;
  border-color: #ccc;
}

.mainContent img.pull-right {
  margin-bottom: 15px;
}

/* // MEDIUM SCREEN UP (md) */
@media screen and (min-width: 992px) {
  .mainContent {
    padding: 35px 35px 35px 35px;
    margin-bottom: 50px;
    min-height: 1290px;
  }
  .mainContent img.pull-right {
    margin-left: 15px;
  }
  .mainContent img.pull-left {
    margin-right: 15px;
  }
}

/* // LARGE SCREEN UP (lg) */
@media screen and (min-width: 1200px) {
  .mainContent {
    min-height: 1350px;
  }
}

.fa-anchor {
  color: #ccc;
}


/* ========================================================================================= */
/* FOOTER */
/* ========================================================================================= */
footer .footer-link {
  font-size: 15px;
  color: #ac97ff;
}
footer .footer-link a {
  color: #ac97ff;
  text-decoration: none;
}
footer .footer-link a:hover {
  color: #ccc;
}
footer .footer-social-icon a {
  opacity: 0.7;
  -webkit-transition: all .3s ease;
  -o-transition: all .3s ease;
     transition: all .3s ease;
}
footer .footer-social-icon a:hover {
  opacity: 1;
}
footer .footer-mini-map a {
  opacity: 0.7;
  -webkit-transition: all .3s ease;
  -o-transition: all .3s ease;
     transition: all .3s ease;
}
footer .footer-mini-map a:hover {
  opacity: 1;
}


/* Custom Contact From ของ Bootstrap 3.3.7*/
.input-group-addon {
  font-size: 16px;
  color: #8fb5de;
  background-color: #1a283a;
  border: 1px solid #000;
}
.form-control {
  font-size: 16px;
  color: #fff;
  background-color: #2b3d52;
  border: 1px solid #000;
}
