/*
Theme Name: WDI
Theme URI: http://www.wdi.co.th
Description: Wordpress theme for wdi.co.th.
Author: oboun
Author URI: http://www.facebook.com/oboun
Version: 0.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

/* CSS */

html,
body {
    height: 100%;
    width: 100%;
    font-family: 'Barlow', sans-serif;
}

body {
    overflow-y: scroll !important;
}

/* general settings */

a,
a:visited,
a:hover,
a:active,
a:link {
    text-decoration: none;
}

.btn {
    border: 0;
    border-radius: 0;
}

.dl-horizontal dt {
    width: 70px;
}

.dl-horizontal dd {
    margin-left: 90px;
    width: auto;
}

@media screen and (max-width: 767px) {
    .dl-horizontal dd {
        margin-left: 0;
    }
}

.clearfix {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
}

.sep-line {
    width: 100%;
    height: 1px;
    border-bottom: solid 1px white;
}

.sep-dotted {
    clear: both;
    padding-top: 15px;
    margin-bottom: 15px;
    width: 100%;
    height: 1px;
    border-bottom: dotted 1px grey;
}

/* navbar */

.navbar {
    margin-bottom: 0;
    border-bottom: solid 4px #DD1706;
}

.navbar-brand {
    margin-right: 47px !important;
    padding: 0;
}

#menu-main-nav {
    margin: 0 60px 0 0;
    padding: 0;
}

#menu-main-nav>li {
    display: inline-block;
    width: 170px;
    text-align: center;
}

#menu-main-nav>li:first-child {
    border-left: none;
}

#menu-main-nav>li:last-child {
    padding-right: 0;
}

#menu-main-nav>li {
    transition: all 0.5s;
    color: white;
    padding: 5px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
}

#menu-main-nav>li>a {
    color: white;
}


.badge {
    background-color: #DD1706;
}

.menu-main-nav-container {
    float: right;
    margin-top: 18px;
}

#menu-main-nav>li>ul.sub-menu {
    display: none;
    position: absolute;
    margin: 5px 0 0 -10px;
    padding: 0;
    width: 180px;
}

#menu-main-nav>li:hover>ul.sub-menu {
    display: block;
}

#menu-main-nav>li>ul.sub-menu>li {
    float: none;
    list-style: none;
    padding: 5px 10px;
    background: black;
    border-top: solid 1px grey;
    text-align: center;
    font-size: 14px;
    font-weight: 400;
    text-transform: capitalize;
}

#menu-main-nav>li>ul.sub-menu>li:hover {
    background: black;
}

#menu-main-nav>li>ul.sub-menu>li:first-child {
    border-top: none;
}

#menu-main-nav>li>ul>li>a {
    transition: all 0.5s;
    color: white;
    text-decoration: none;
}

#menu-main-nav>li>ul.sub-menu>li>a {
    transition: all 0.5s;
    color: white;
    text-decoration: none;
}

/* #menu-main-nav>li>ul.sub-menu>li:hover>a {
    transition: all 0.5s;
    color: #DD1706;
    text-decoration: none;
} */

.mobile-menu {
    margin: 0;
    padding: 0;
    background-color: #222;
}

.mobile-menu li {
    list-style: none;
}

@media screen and (max-width:1199px) {
    #menu-main-nav>li {
        width: 130px;
    }
    #menu-main-nav>li>a {
        margin: 0 10px;
        font-size: 15px;
    }
    #menu-main-nav>li>ul.sub-menu {
        margin: 0 0 0 -30px;
    }
    #menu-main-nav>li>ul.sub-menu>li {
        width: 100%;
        padding: 5px 0;
    }
}

@media screen and (max-width:991px) {
    .navbar-brand {
        margin: 5px 0 0 40px !important;
    }
    #menu-main-nav {
        margin: 0 40px 0 0;
    }
    #menu-main-nav>li {
        width: 100px;
    }
    #menu-main-nav>li>a {
        margin: 0 4px;
        font-size: 12px;
    }
    #menu-main-nav>li>ul.sub-menu {
        margin: 0 0 0 -45px;
    }
}

@media screen and (max-width: 767px) {
    #navbar {
        margin: 10px -15px;
        padding: 0;
    }
    .navbar {
        padding-top: 5px;
        height: 70px;
    }
    
    .navbar-toggle {
        margin-right: 40px;
    }
    .menu-main-nav-container {
        margin-top: 0;
        width: 100%;
    }
    #menu-main-nav {
        margin: 0;
        background-color: black;
    }
    #menu-main-nav>li {
        width: 100%;
        border-top: solid 1px grey;
        border-left: 0;
    }
    #menu-main-nav>li:first-child {
        border-top: 0;
    }
    #menu-main-nav>li>ul.sub-menu {
        margin: 0;
        width: 100%;
        position: relative;
        display: block;
        background-color: #222;
        left: 0;
    }
    #menu-main-nav>li>ul.sub-menu>li {
        background: #222;
    }
    #menu-main-nav>li>ul.sub-menu>li:first-child {
        border-top: solid 1px grey;
    }
}

/* search */

#search-result {
    margin-bottom: 40px;
}

form {
    margin: 0 auto;
}

.navbar-search input {
    padding: 6px 15px 6px 30px;
    margin: 3px;
    background: url('images/search.png') no-repeat 8px 8px;
}

input[type=text] {
    color: black;
}

.navbar-search {
    height: 50px;
    margin: 0;
    padding: 5px 5px 5px 5px;
}

.navbar-search input[type=text] {
    border: none;
    background-color: black;
    color: #bcbcbc
}

.search-result a {
    color: black;
}

.search-result:hover a {
    color: #DD1706;
}

/* language */

.language {
    margin-right: 70px;
}

.language ul {
    margin: 0;
    padding: 0;
}

.language ul li {
    width: 40px;
    list-style: none;
    float: left;
    margin: 13px 5px;
}

.language ul li img {
    width: 100%;
}

.language ul li {
    filter: grayscale(100%);
    -webkit-filter: grayscale(100%);
}

.language ul li.active {
    filter: none;
    -webkit-filter: none;
}

.mobile-language ul {
    margin: 0;
    padding: 0;
}

.mobile-language ul li {
    display: inline-block;
}

/* slider */

.slider {
    width: 100%;
}

.tp-bullet:hover,
.tp-bullet.selected {
    background-color: #DD1706 !important;
}

.tp-bullet {
    border-radius: 50%;
    background-color: rgba(66, 66, 66, 1) !important;
}

/* content */

.shortcut-container {
    padding: 0 5px;
    overflow: hidden;
}

.shortcut {
    margin: 10px 0;
    padding: 0;
    height: 490px;
    background-color: #424242;
    color: white;
}

.shortcut-item {
    display: none;
}

.active-item {
    display: block;
}

.shortcut-name {
    font-size: 30px;
    line-height: 40px;
    padding: 0 10px;
}

.shortcut-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.shortcut-image img {
    margin-left: -10%;
    width: 120%;
    height: auto;
}

.shortcut-content {
    font-family: 'Open Sans', sans-serif;
    margin: 0 10px;
    height: 160px;
    overflow: hidden;
}

.archive-content {
    font-family: 'Open Sans', sans-serif;
}

.post-date {
    margin: 5px 0;
    color: white;
    font-size: 75%;
    font-family: 'Open Sans', sans-serif;
}

.carousel-indicators {
    bottom: 10px;
}

.carousel-release {
    bottom: 65px;
}

.carousel-indicators li {
    background-color: white;
    border: 0;
}

.carousel-release li {
    background-color: grey;
}

.carousel-indicators .active {
    background-color: #DD1706;
    width: 10px;
    height: 10px;
    margin: 1px;
}

.shortcut-content h3 {
    margin-top: 10px;
    font-size: 20px;
}

.shortcut-content p {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    font-family: 'Open Sans', sans-serif;
    font-size: 13px;
}

.panel-group .panel {
    border-radius: 0;
}

.panel-wdi {
    color: white;
    border-color: grey;
}

.panel-heading {
    padding: 0 15px;
    border-top: solid 1px black;
    border-radius: 0;
    transition: all 0.3s;
}

.panel-heading:hover,
.panel-active {
    background-color: #DD1706;
    transition: all 0.3s;
}

.panel-heading a {
    color: white;
}

.panel-title {
    line-height: 30px;
}

.panel-collapse {
    height: 325px;
}

.panel-body {
    margin: 0;
    padding: 0;
    height: 325px;
    background-color: white;
}

.panel-group .panel-heading+.panel-collapse>.list-group,
.panel-group .panel-heading+.panel-collapse>.panel-body {
    border: 0;
}

.release-shortcut-image {
    height: 325px;
    overflow: hidden;
}

.release-shortcut-image img {
    width: 100%;
    height: auto;
}

.release-shortcut-content {
    position: relative;
    bottom: 66px;
    padding: 1px 15px;
    background-color: rgba(0, 0, 0, 0.5);
}

a.readmore {
    color: #DD1706;
    margin-left: 15px;
}

.vehicle-shortcut-image {
    width: 100%;
    height: 450px;
    overflow: hidden;
}

.vehicle-shortcut-image img {
    width: 120%;
}

.vehicle-shortcut-name {
    font-size: 32px;
    padding: 0;
    line-height: 95px;
    text-align: center;
}

.vehicle-shortcut-name a {
    color: white;
}

.modal-header {
    height: 35px;
    padding: 5px 10px;
}

.modal-content {
    border-radius: 0;
    color: white;
    background-color: #222;
}

.modal-title {
    font-size: 22px;
}

.close {
    font-weight: 400;
    text-shadow: none;
    color: white;
    opacity: 1;
}

.close:hover {
    color: #DD1706;
    opacity: 1;
}

.modal-image {
    padding: 0;
    height: 450px;
    overflow: hidden;
}

.modal-image img {
    width: 100%;
    height: auto;
}

.modal-detail {
    padding: 20px 10px 40px;
}

.modal-detail p {
    font-family: 'Open Sans', sans-serif;
    font-size: 13px;
}

.modal-button-container {
    margin-top: -40px;
    padding: 0;
    bottom: 0;
}

.modal-button {
    transition: all 0.5s;
    padding: 10px;
    margin: 0;
    text-align: center;
}

.modal-button:hover {
    transition: all 0.5s;
    background-color: #DD1706;
}

.modal-button a {
    color: white;
}

.modal-backdrop {
    background-color: white;
}

.vehicle-search {
    padding: 20px;
    text-align: center;
}

.vehicle-search .btn,
.form-control {
    border-radius: 0;
}

.vehicle-search .btn,
.btn:hover {
    color: white;
    background-color: #DD1706;
    border: 0;
}

.vehicle-search select,
.vehicle-search input {
    margin: 5px 0;
    padding-left: 15px;
    padding-right: 15px;
}

@media screen and (max-width: 1199px) {
    .vehicle-shortcut-image img {
        width: 120%;
    }
}

/* partners */

.partners {
    margin: 20px 0;
    padding: 0;
    font-size: 32px;
    text-align: center;
}

.partner-logo {
    margin: 10px;
    width: 150px;
    display: inline-block;
}

.partner-logo img {
    width: 100%;
    height: auto;
}

/* footer */

.footer {
    padding: 10px 0 30px;
    width: 100%;
    background: #333;
    color: white;
}

.footer ul {
    margin: 0;
    padding: 0;
}

.footer ul li {
    list-style: none;
}

.footer ul li a {
    color: white;
}

.footer ul.sub-menu li a {
    color: grey;
}

.foot-menu {
    margin-top: 15px;
    margin-bottom: 15px;
}

.foot-menu .sub-menu li {
    margin: 5px 0;
}

.foot-menu .sub-menu .menu-item {
    line-height: 12px;
}

.social ul {
    margin: 0;
    padding: 0;
}

.social ul li {
    list-style: none;
    display: inline-block;
}

/* product category */

.product-cat h3 {
    display: none;
}

.product-cat-container,
.product-container {
    margin: 10px auto;
}

.product-cat,
.product-subcat,
.product-catalog {
    margin: 0;
    padding: 0;
}

.product-cat li {
    float: left;
    width: 50%;
    height: auto;
    overflow: hidden;
    padding: 10px;
    list-style: none;
}

@media screen and (max-width: 767px) {
    .product-cat li {
        width: 100%;
    }
}

.product-cat li img {
    width: 100%;
    height: auto;
}

.product-subcat li {
    float: left;
    width: 33.33%;
    height: 300px;
    padding: 10px;
    list-style: none;
    overflow: hidden;
}

.product-catalog li {
  position: relative; /* ต้องมีสำหรับ ::before ::after */
  float: left;
  width: 32%;
  margin: 4px;
  list-style: none;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 8px;
  background-color: #fff;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);

}

.product-catalog li:hover {
  transform: scale(1.05) translateY(-5px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
  z-index: 1;
}

/* สร้างแถบสีไล่โทนด้านซ้าย */
.product-catalog li:hover::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 8px; /* ความกว้างแถบซ้าย */
  background: linear-gradient(135deg, #b9b9b9, #cacaca);
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
}

/* สร้างแถบสีไล่โทนด้านขวา */
.product-catalog li:hover::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 8px; /* ความกว้างแถบขวา */
  background: linear-gradient(135deg, #d7d7d7, #cacaca);
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
}


.product-catalog h4 {
    margin: 0;
    padding: 5px;
    height: 75px;
    font-size: 105%;
    color: black;
    background-color: lightgrey;
    transition: all 0.3s;
}

.product-catalog li:hover h4 {
    color: rgb(209, 18, 18);
    background-color: #a8a8a8;
}

.product-cat li img,
.product-subcat li img {
    width: 100%;
}

.product-subcat li img {
    border: solid 1px rgba(0, 0, 0, 0.3);
}

.product-cat li:hover img,
.product-subcat li:hover img {
    transition: all 0.5s;
}

.product-cat h3 {
    position: absolute;
    color: white;
    z-index: 1;
    padding: 0 20px 0;
}

.product-subcat h3 {
    display: none;
    position: absolute;
    color: white;
    z-index: 1;
    margin: 0;
    font-size: 20px;
    padding: 10px;
    width: 286px;
    background-color: rgba(0, 0, 0, .5);
}

.product-catalog-image {
    height: 215px;
    overflow: hidden;
}

.product-catalog-image img {
    width: 100%;
    height: 95%;
    object-fit: scale-down;
}


.sidebar-cat ul {
    margin: 0;
    padding: 0;
}

.sidebar-cat ul li {
    list-style: none;
    padding: 5px 0;
    cursor: pointer;
}

.sidebar-cat ul li a {
    font-size: 14px;
    font-weight: 700;
    color: black;
}

.sidebar-cat ul li:hover>a,
.sidebar-cat ul li.current-cat>a,
.sidebar-cat .current-cat-parent>a {
    color: #DD1706;
}

.sidebar-cat ul.children {
    padding-left: 15px;
}

.sidebar-cat ul li ul li a {
    color: grey;
    font-weight: 400;
}

.cat-on-submenu {
    display: block !important;
}

.product-sub-cat {
    height: 260px;
}

.product-sub-cat img {
    width: 100%;
    margin: 0 auto;
}

.gallery {
    text-align: center;
    margin: 20px auto 0;
    border: solid 1px black;
    overflow: hidden;
}

.gallery img {
    width: 100%;
}

.gallery-video img {
    width: 140%;
    height: auto;
}

.play {
    background: url('images/play.png') center center no-repeat;
    margin: -97px 0 0 0;
    height: 97px;
    position: relative;
    z-index: 10;
}

#image-thumbnails {
    margin: 5px 0 15px;
    padding: 0;
}

#thumbnails {
    width: 100px;
}

#thumbnails img {
    transition: all 0.5s;
    opacity: 0.5;
}

#thumbnails .active img {
    transitions: all 0.5s;
    opacity: 1;
}

.thumb {
    border: solid 1px black;
}

.thumb-item {
    padding: 0;
    overflow: hidden;
}

.thumb-item img {
    width: 100%;
}

.pdf ul {
    margin: 15px 0 0 0;
    padding: 0;
}

.pdf ul li {
    padding: 5px 10px;
    border: solid 1px #DD1706;
    list-style: none;
    display: inline-block;
    transition: all 0.3s;
}

.pdf ul li:hover {
    background: #DD1706;
    transition: all 0.3s;
}

.pdf ul li:hover a {
    color: white;
    transition: all 0.3s;
}

.pdf-link {
    margin: 15px 0;
}

.pdf-link a {
    font-size: 16px;
    color: #DD1706;
}

@media screen and (max-width: 1199px) {
    .modal-lg {
        width: 600px;
    }
    .product-subcat li {
        height: 205px;
    }
    .product-subcat h3 {
        width: 204px;
        font-size: 20px;
    }
    .product-catalog h4 {
        font-size: 100%;
    }
    .product-catalog h4 {
        height: 85px;
    }
    .product-catalog-image {
        height: 155px;
    }
}

@media screen and (max-width: 991px) {
    .product-subcat li {
        width: 50%;
        height: 205px;
        padding: 10px;
    }
    .product-subcat h3 {
        width: 205px;
        font-size: 20px;
    }
    .product-catalog li {
        width: 48%;
        padding: 0;
    }
    .product-catalog h4 {
        height: 80px;
    }
    .product-catalog-image {
        height: 155px;
    }
}

@media screen and (max-width: 767px) {
    .sidebar-cat ul li {
        text-align: center;
        border-top: solid 1px lightgrey;
    }
    .sidebar-cat ul li:first-child {
        border: 0;
    }
    .product-subcat h3 {
        max-width: 205px;
        font-size: 18px;
    }
    .product-catalog-image {
        height: 180px;
    }
}

@media screen and (max-width: 460px) {
    .product-subcat li {
        width: 50%;
        height: 130px;
        padding: 5px;
    }
    .product-subcat h3 {
        margin: 0;
        padding: 5px;
        max-width: 120px;
        font-size: 16px;
    }
    .product-catalog li {
        width: 100%;
        padding: 0;
    }
    .product-catalog-image {
        height: auto;
    }
}

/* about */

/* #about {
    margin: 20px auto;
    padding: 0 20px 20px; //-webkit-box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.75);
    //-moz-box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.75);
    //box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.75);
} */

#about img {
    width: 100%;
    height: auto;
    margin-bottom: 10px;
}

.about {
    padding: 5px;
}

.video {
    margin-bottom: 15px;
}

/* contact */

#contact {
    margin: 20px auto;
    padding: 0 20px 20px;
}

#contact>.nav>li {
    padding: 0;
}

#contact>.nav>li>a {
    text-align: center;
    font-size: 16px;
    background-color: rgba(170, 168, 168, 1);
}

#contact>.nav>li>a {
    color: white;
}

#contact>.nav>li.active>a {
    background-color: white;
    color: black;
}

.captcha {
    float: right;
    margin-bottom: 10px;
}

.map-label,
.directions {
    margin-right: 10px;
    line-height: 30px;
}

.get-direction,
.contact-map {
    margin-top: 10px;
    font-size: 1.3em;
}

.contact-map img {
    width: 100%;
    height: auto;
}

.tab-content {
    padding: 20px;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
}

.nav-tabs>li>a {
    margin-right: 0;
    border-radius: 0;
}

a.wpsl-directions,
a.wpsl-back {
    font-size: 1.1em;
    color: blue;
}

a.wpsl-directions:hover,
a.wpsl-back:hover {
    color: #DD1706;
}

.wpsl-category {
    color: #DD1706
}

/* products */

.stars a {
    color: black;
}

.summary h1 {
    font-size: 28px;
}

.images img {
    border: solid 1px grey;
}

.zoom-btn {
    width: 24px !important;
    height: 24px !important;
    border: 0 !important;
    float: right;
    margin-top: -40px;
    margin-right: 15px;
    position: relative;
    z-index: 3;
    background: url("images/zoom.png");
}

.chart-zoom-btn {
    width: 24px !important;
    height: 24px !important;
    border: 0 !important;
    float: right;
    margin-top: -40px;
    margin-right: 60px;
    position: relative;
    z-index: 3;
    background: url("images/zoom.png");
}

.pdf a {
    color: #DD1706;
}

.icon {
    margin: 15px 0;
    padding: 0 5px;
}

.chart img {
    width: 90%;
}

/* Archive */

.archive {
    margin: 0 auto 50px;
}

.news-wrapper {
    margin: 10px 0;
    padding: 10px;
    width: 100%;
    background-color: rgba(66, 66, 66, 1);
}

.news-wrapper h1 {
    color: #DD1706;
}

.news-wrapper p,
.news-wrapper em {
    color: white;
}

.news-image {
    height: 250px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: auto;
    margin-top: -20%;
}

.single-news {
    margin: 25px auto;
}

.single-news img {
    margin-bottom: 15px;
    width: 100%;
    height: auto;
}

.pagination {
    clear: both;
    position: relative;
    font-size: 11px;
    line-height: 13px;
}

.pagination span,
.pagination a {
    display: block;
    float: left;
    margin: 2px 2px 2px 0;
    padding: 6px 9px 5px 9px;
    text-decoration: none;
    width: auto;
    color: #fff;
    background: grey;
}

.pagination a:hover {
    color: #fff;
    background: #3279BB;
}

.pagination .current {
    padding: 6px 9px 5px 9px;
    background: #DD1706;
    color: #fff;
}

.font_7 {
    margin-bottom: 25px;
}

.carousel-control {
    top: 40%;
}

.carousel-control .fa {
    font-size: 30px;
}

.carousel-control.left,
.carousel-control.right {
    background-image: none;
}

.dept {
    font-weight: bold;
}

.dept-desc p {
    margin: 0;
}

.dept-email {
    margin-bottom: 10px;
}