/*
Theme Name:		Thanh Hóa: Xây dựng
Theme URI:		http://x8media.vn
Author:			X8Media Team
Author URI:		http://x8media.vn
Description:            
Version:		1.0
Text Domain:            x8theme
*/

body {
    font: 14px/2 'Roboto', Arial, sans-serif;
}
a, input, button, .custom-ctrl, .gallery * {
    -webkit-transition: all .3s ease;
    -moz-transition: all .3s ease;
    -ms-transition: all .3s ease;
    -o-transition: all .3s ease;
    transition: all .3s ease;
}
a {
    color: #fff;
}
a:hover, a:focus {
    color: #ffe746;
}
a:visited, a:hover, a:active, a:focus {
    text-decoration: none;
    outline: none;
}
input, textarea, button {
    outline: none !important;
}
.owl-theme .owl-controls {
    margin: 0;
}
img{
    height: auto;
    max-width: 100%
}


/* =WordPress Core
-------------------------------------------------------------- */
.alignnone {margin: 5px 20px 20px 0}
.aligncenter,div.aligncenter {display: block;margin: 5px auto 5px auto}
.alignright {float:right;margin: 5px 0 20px 20px}
.alignleft {float: left;margin: 5px 20px 20px 0}
a img.alignright {float: right;margin: 5px 0 20px 20px}
a img.alignnone {margin: 5px 20px 20px 0}
a img.alignleft {float: left;margin: 5px 20px 20px 0}
a img.aligncenter {display: block;margin-left: auto;margin-right: auto}
.wp-caption {background: #fff;border: 1px solid #f0f0f0;max-width: 96%; /* Image does not overflow the content area */padding: 5px 3px 10px;text-align: center}
.wp-caption.alignnone {margin: 5px 20px 20px 0}
.wp-caption.alignleft {margin: 5px 20px 20px 0}
.wp-caption.alignright {margin: 5px 0 20px 20px}
.wp-caption img {border: 0 none;height: auto;margin: 0;max-width: 98.5%;padding: 0;width: auto}
.wp-caption p.wp-caption-text {font-size: 11px;line-height: 17px;margin: 0;padding: 0 4px 5px}
/* Text meant only for screen readers. */
.screen-reader-text {clip: rect(1px, 1px, 1px, 1px);position: absolute !important;height: 1px;width: 1px;overflow: hidden}
.screen-reader-text:focus {background-color: #f1f1f1;border-radius: 3px;box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);clip: auto !important;color: #21759b;display: block;font-size: 14px;font-size: 0.875rem;font-weight: bold;height: auto;left: 5px;line-height: normal;padding: 15px 23px 14px;text-decoration: none;top: 5px;width: auto;z-index: 100000; /* Above WP toolbar. */}


/**
 * 2.0 - Content
*/


/* 2.1 - Header */

header {
    background: url('images/banner-bg.jpg') no-repeat top center /cover;
}
.banner {
    background: url('images/building.png') no-repeat bottom -30px right 15px /contain;
}
.layer-logo {
    padding-top: 50px;
    padding-bottom: 50px;
}
.layer-logo img {
    margin-bottom: 3px;
}
.company-name {
    color: #fff;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 24px;
}
.banner-text {
    font-size: 42px;
    line-height: 50px;
    font-weight: 900;
    letter-spacing: 4px;
    color: #c91417;
    text-shadow: 1px 0px #fff, 1px 1px #fff, 1px 2px #fff, 1px -1px #fff, 1px -2px #fff, -1px 0px #fff, -1px 1px #fff, -1px 2px #fff, -1px -1px #fff, -1px -2px #fff, 2px 0px #fff, 2px 1px #fff, 2px 2px #fff, 2px -1px #fff, 2px -2px #fff, -2px 0px #fff, -2px 1px #fff, -2px 2px #fff, -2px -1px #fff, -2px -2px #fff, 0px 1px #fff, 0px 2px #fff, 0px -1px #fff, 0px -2px #fff, 3px 4px 16px #000;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -o-user-select: none;
    user-select: none;
    pointer-events: none;
}
.main-navigation {
    border: 0;
    border-radius: 0;
    margin: 0;
    width: 100%;
    z-index: 9999;
}
.affix {
    top: 0;
    box-shadow: 0px -10px 100px #000;
    background-color: #c91417;
}
.affix + .space {
    height: 50px;
}
.menu-wrapper {
    background-color: #c91417;
}
form.search {
    position: relative;
    float: right;
    z-index: 1;
}
form.search input, form.search button {
    border: 0;
    padding: 8px 10px;
    line-height: 24px;
    position: absolute;
    top: 5px;
    right: 15px;
    background-color: transparent;
}
form.search input {
    width: 100px;
    background: #fff
}
form.search input:focus {
    width: 240px;
    background-color: #fff;
    color: #000;
}
form.search input:focus + button {
    color: #333;
}
form.search button {
    width: 40px;
}

/* 2.1.1 Desktop Menu */

.desktop-menu>li {
    border-right: 1px solid rgba(0, 0, 0, .1);
}
.desktop-menu li a {
    padding-right: 30px;
    padding-left: 30px;
    color: #fff;
}
.desktop-menu li.current-menu-item > a, 
.desktop-menu li.current-menu-parent > a, 
.desktop-menu li a:focus, 
.desktop-menu li a:hover {
    background-color: rgba(0, 0, 0, .1);
    color: #ffe746;
}
.desktop-menu li.menu-item-has-children {
    position: relative
}
.desktop-menu li.menu-item-has-children:hover > .sub-menu {
    display: block;
    visibility: visible;
    z-index: 9999;
    opacity: 1;
    -webkit-transform: scale(1, 1);
    -moz-transform: scale(1, 1);
    -ms-transform: scale(1, 1);
    -o-transform: scale(1, 1);
    transform: scale(1, 1);
}
.desktop-menu .sub-menu {
    width: 220px;
    opacity: 0;
    position: absolute;
    -webkit-transform-origin: top;
    -moz-transform-origin: top;
    -ms-transform-origin: top;
    -o-transform-origin: top;
    transform-origin: top;
    -webkit-animation-fill-mode: forwards;
    -moz-animation-fill-mode: forwards;
    animation-fill-mode: forwards;
    -webkit-transform: scale(1, 0);
    -moz-transform: scale(1, 0);
    -ms-transform: scale(1, 0);
    -o-transform: scale(1, 0);
    transform: scale(1, 0);
    -webkit-transition: -webkit-transform .5s ease, opacity .2s ease;
    -moz-transition: -moz-transform .5s ease, opacity .2s ease;
    -o-transition: -o-transform .5s ease, opacity .2s ease;
    transition: transform .5s ease, opacity .2s ease;
}
.desktop-menu .sub-menu li {
    width: 100%;
    line-height: 20px;
    background: #fff;
    -webkit-transition: .2s;
    -moz-transition: .2s;
    -o-transition: .2s;
    transition: .2s;
}
.desktop-menu .sub-menu .sub-menu {
    left: 220px;
    top: 0;
    -webkit-transform-origin: left;
    -moz-transform-origin: left;
    -ms-transform-origin: left;
    -o-transform-origin: left;
    transform-origin: left;
    -webkit-transform: scale(0, 1);
    -moz-transform: scale(0, 1);
    -ms-transform: scale(0, 1);
    -o-transform: scale(0, 1);
    transform: scale(0, 1);
}
.desktop-menu .sub-menu li:hover {
    background: #055699;
}
.desktop-menu .sub-menu li:hover > a {
    color: #fff;
}
.desktop-menu .sub-menu li a {
    color: #055699;
    padding-top: 15px;
    padding-bottom: 15px;
    display: block;
}

/* 2.1.2 Mobile Menu */

.toggle-mobile-menu {
    display: none;
    width: 50px;
    font-size: 32px;
    line-height: 50px;
    text-align: center;
    float: right;
    color: #fff;
}
.toggle-mobile-menu:hover, .toggle-mobile-menu.active {
    color: #333;
}
body.menu-open .mobile-menu {
    z-index: 9999;
    visibility: visible;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-transform: translate3d(0, 0, 0);
    -moz-transform: translate3d(0, 0, 0);
    -ms-transform: translate3d(0, 0, 0);
    -o-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    -webkit-transition: -webkit-transform .4s ease, visibility 0s ease 0s, z-index 0s ease 0s;
    -moz-transition: -moz-transform .4s ease, visibility 0s ease .5s, z-index 0s ease 0s;
    -o-transition: -o-transform .4s ease, visibility 0s ease .5s, z-index 0s ease 0s;
    transition: transform .4s ease, visibility 0s ease 0s, z-index 0s ease 0s;
}
.mobile-menu {
    background: #222222;
    top: 0;
    bottom: 0;
    left: 0;
    height: 100%;
    overflow: hidden;
    position: fixed;
    visibility: hidden;
    z-index: -1;
    -webkit-transform: translate3d(-100%, 0, 0);
    -moz-transform: translate3d(-100%, 0, 0);
    -ms-transform: translate3d(-100%, 0, 0);
    -o-transform: translate3d(-100%, 0, 0);
    transform: translate3d(-100%, 0, 0);
    -webkit-transition: -webkit-transform .4s ease, visibility 0s ease .5s, z-index 0s ease .5s;
    -moz-transition: -moz-transform .4s ease, visibility 0s ease .5s, z-index 0s ease .5s;
    -o-transition: -o-transform .4s ease, visibility 0s ease .5s, z-index 0s ease .5s;
    transition: transform .4s ease, visibility 0s ease .5s, z-index 0s ease .5s;
}
.mobile-menu ul {
    width: 320px;
    text-align: initial;
}
.mobile-menu ul > li:last-child {
    border-bottom: none;
}
.mobile-menu ul li {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    position: relative;
}
.mobile-menu ul li.menu-item-has-children::after {
    content: '\f078';
    position: absolute;
    font: 16px/46px 'FontAwesome';
    top: 0;
    right: 40px;
    pointer-events: none;
    -webkit-transition: -webkit-transform .5s ease-in-out;
    -moz-transition: -moz-transform .5s ease-in-out;
    -o-transition: -o-transform .5s ease-in-out;
    transition: transform .5s ease-in-out;
}
.mobile-menu ul li.menu-item-has-children.active::after {
    -webkit-transform: rotate(540deg);
    -moz-transform: rotate(540deg);
    -ms-transform: rotate(540deg);
    -o-transform: rotate(540deg);
    transform: rotate(540deg);
}
.mobile-menu ul li a {
    padding: 1em;
    margin: 0;
    display: block;
    color: #f2f2f2;
    font-size: 12px;
    text-transform: uppercase;
    line-height: 20px;
    border-left: 3px solid transparent;
}
.mobile-menu ul li:hover > a, .mobile-menu ul li.active > a, .mobile-menu ul li.current-menu-item > a {
    border-color: #32a22b;
}
.mobile-menu ul li.menu-item-has-children > a {
    display: inline-block;
}
.mobile-menu .sub-menu {
    display: none;
}
.mobile-menu .sub-menu a {
    padding-left: 20px;
}
.mobile-menu .sub-menu a::before {
    content: '-';
    display: inline-block;
    font-family: 'FontAwesome';
    color: #999;
    margin: 0 5px 0 0;
}
.mobile-menu .sub-menu .sub-menu a::before {
    content: '--';
}
.mobile-menu .close-menu {
    text-align: center;
    display: block;
    color: #32a22b;
    font-size: 28px;
    line-height: 50px;
}

/**
 * 2.2 - Sidebar
*/

.sidebar .widget {
    margin-bottom: 30px;
}
.sidebar .hot-news .widget-title {
    margin-bottom: 0;
}
.sidebar .hot-news ul li {
    border: 2px solid #eaeaea;
    border-top: 0;
    padding: 15px;
    margin-bottom: 0;
}
.sidebar .other-news ul {
    padding: 0 10px;
}
.sidebar .other-news li {
    list-style: disc inside;
    color: #c91417;
}
.sidebar .other-news li::before, .sidebar .other-news li::after{
    display: inline !important
}
.sidebar .other-news li a {
    color: #333;
    font-size: 16px;
    line-height: 1;
    display: inline !important;
    text-transform: none !important;
}

/**
 * 2.3 - Footer
*/

footer {
    background-color: #e9e9e9;
    padding-top: 30px;
}
footer #partner-slider {
    position: relative;
    overflow-x: hidden;
    padding-bottom: 30px;
}
footer #partner-slider .item {
    height: 50px;
    display: table-cell;
    vertical-align: middle;
}
footer address {
    color: #666;
    margin-bottom: 30px;
}
footer .copyright {
    height: 50px;
    line-height: 50px;
    background-color: #c91417;
}
footer .copyright span {
    color: #fff;
    margin-right: 10px;
}
footer .copyright img {
    vertical-align: middle;
}
.social-links{
    margin: 0;
    padding: 0;
    display: inline-block
}
.social-links li{
    list-style: none;
    display: inline;
    margin-right: 10px
}
.social-links li a{
    width: 25px;
    height: 25px;
    border-radius: 50%;
    -moz-border-radius: 50%;
    -webkit-border-radius: 50%;
    display: inline-block;
    line-height: 25px;
}
.social-links li i{
    font-size: 12px;
    color: #fff;
    
}

/**
 * 2.4 - Page
*/


/* 2.4.1 Index */

.home section {
    padding-top: 50px;
    padding-bottom: 20px;
}
.about-block {
    margin-bottom: 30px;
}
.about-block .company-name {
    color: #c91417;
}
.about-map {
    background-color: #e8e8e8;
}
.section-product {
    background-color: #c91417;
}
.section-header {
    border-bottom: 2px solid rgba(255, 255, 255, .2);
    margin-bottom: 30px;
}
.section-header a {
    padding: 4px 0;
}
.section-title {
    color: #ffe746;
    font-size: 18px;
    margin-bottom: -2px;
    border-bottom: 2px solid #ffe746;
}
.home-product {
    position: relative;
    overflow-x: hidden;
    margin-bottom: 30px;
}
.home-product h4{
    color: #fff;
    margin-top: 10px
}

/* 2.4.2 About */

.content {
    padding-bottom: 50px;
}
.content h1 {
    font-size: 24px;
    color: #c91417;
    line-height: 30px;
    margin-bottom: 30px;
}
.content img {
    max-width: 100%;
    height: auto;
    margin: 0 auto 10px;
}
.content p {
    text-align: justify;
    line-height: 24px;
    margin-bottom: 5px;
}

/* 2.4.3 Product */

.product:nth-child(2n+1) {
    clear: both;
}
.product .thumbnail img {
    width: 100%;
}
.product .caption {
    font-size: 16px;
    font-weight: bold;
}
.product .caption a:hover {
    color: #333;
    text-decoration: underline;
}

/* 2.4.4 Contact */

#map {
    margin-bottom: 20px;
}
address h3 {
    margin-bottom: 10px;
}
.contact label {
    display: block;
    margin-bottom: 10px;
}
.contact input, .contact textarea {
    padding: 5px 10px;
    border: 1px solid #ccc;
    font-weight: normal;
    margin-bottom: 20px
}
.contact input {
    font-size: 13px;
}
.contact textarea {
    height: 96px;
    max-width: 360px;
}
.contact button {
    float: right;
    border: none;
    background-color: #c91417;
    color: #fff;
    padding: 6px 24px;
    font-weight: bold;
}
div.wpcf7-response-output{clear:both;color:#666;font-size:12px!important;border:0;display:none!important}
.wpcf7-not-valid-tip{font-size:12px!important}

/* 2.4.5 Gallery */

.gallery {
    margin-bottom: 30px;
    overflow: hidden;
}
.gallery:hover .mask .expand-button {
    top: 50%;
}
.gallery:hover .mask .caption {
    bottom: 0;
}
.gallery .thumbnail, .gallery .thumbnail img {
    margin-bottom: 0;
}
.gallery .mask .expand-button {
    font-size: 18px;
    border: 3px solid #fff;
    padding: 10px;
    border-radius: 50%;
    position: absolute;
    top: -50%;
    margin-top: -22px;
    left: 50%;
    margin-left: -22px;
    cursor: pointer;
    background: rgba(0, 0, 0, .5);
    box-shadow: -2px 2px 10px #000;
    color: #fff;
}
.gallery .mask .caption {
    background: rgba(0, 0, 0, .6);
    position: absolute;
    left: 15px;
    right: 15px;
    line-height: 24px;
    padding: 6px 12px;
    font-size: 13px;
    bottom: -50%;
    margin-bottom: 0;
    color: #fff;
}
.gallery .mask .caption .gallery-title {
    font-weight: bold;
    text-transform: uppercase;
}
.gallery .mask .caption .gallery-title small {
    line-height: 24px;
    font-size: 13px;
    text-transform: initial;
    color: #fff;
}

/* 2.4.6 Archive */

.news ul li {
    list-style: none;
    margin-bottom: 10px;
}
.news .thumbnail {
    float: left;
    margin-right: 15px;
    width: 26.027397%;
}
.news .thumbnail img {
    min-height: 120px;
}
.news .thumbnail .layer-mask {
    border-bottom: 0;
}
.news .caption {
    margin-bottom: 20px;
}
.top-news {
    border: 1px solid #ddd;
    margin-bottom: 30px;
}
.top-news .thumbnail img{
    width: 100%
}
.widget-title {
    font-size: 16px;
    padding: 10px 20px;
    background: #c91417;
    color: #fff;
    margin-bottom: 30px;
}
.widget-title h2 {
    line-height: 20px;
}

/* 2.4.7 Single */

.post-header {
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid #c91417;
}
.post-header h1 {
    margin-bottom: 10px;
}
.post-body {
    margin-bottom: 20px;
}
.post-body .excerpt {
    font-weight: bold;
}
.post-body img {
    max-width: 100%;
    height: auto;
    margin: 0 auto 10px;
}
.post-footer .facebook {
    padding: 10px 20px;
    border: 1px solid #ddd;
    margin-bottom: 20px;
}
.post-footer .related {
    margin-bottom: 20px;
}
.post-footer .related h5 {
    color: #c91417;
    font-size: 18px;
    padding-bottom: 20px;
    margin-bottom: 10px;
    border-bottom: 1px solid #ddd;
}
.post-footer .related ul li {
    list-style-position: inside;
    color: #c91417;
}
.post-footer .related ul li a {
    color: #333;
}

/**
 * 3.0 - Custom
*/


/* 3.1 Slider */

.custom-ctrl {
    position: absolute;
    font-size: 30px;
    top: 50%;
    line-height: 50px;
    margin-top: -36px;
    width: 50px;
    cursor: pointer;
    text-align: center;
    z-index: 99;
    color: #fff;
}
.custom-ctrl.prev {
    left: -50px;
}
.custom-ctrl.next {
    right: -50px;
}
.product-ctrl {
    background-color: #055699;
    opacity: 0.5;
}
.product-ctrl:hover {
    opacity: 1;
}
.home-product:hover .product-ctrl.prev {
    left: 20px;
}
.home-product:hover .product-ctrl.next {
    right: 20px;
}
#partner-slider-ctrl {
    top: 0;
    margin-top: 0;
}

/* 3.2 Breadcrumb */

.breadcrumb {}
.breadcrumb a {
    color: #999;
}

/* 3.3 News */

.news-list {
    list-style: none;
}
.news-list.shortened {
    margin-bottom: 30px;
}
.news-list.shortened li {
    border: 2px solid #eaeaea;
    border-bottom: 0;
    padding: 15px;
}
.thumbnail {
    padding: 0;
    border: 0;
    border-radius: 0;
    position: relative;
}
.thumbnail img {
    margin-bottom: 0;
}
.thumbnail [class^=layer] {
    position: absolute;
}
.thumbnail .timestamp {
    color: #fff;
}
.layer-mask {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, .8);
    border-bottom: 3px solid #c91417;
}
.layer-mask:hover {
    background-color: transparent;
}
.layer-timestamp {
    background-color: #c91417;
    padding: 5px 10px;
    color: #fff;
    bottom: -13px;
    left: 15px;
}
.timestamp {
    color: #999;
}
.caption .timestamp {
    height: 20px;
    line-height: 20px;
    margin-bottom: 3px;
}
.timestamp::before {
    content: '\f017';
    font-family: 'FontAwesome';
    margin-right: 10px;
}
.caption {
    padding-left: 15px;
    padding-right: 15px;
    margin-bottom: 30px;
}
.news-title {
    font-size: 16px;
    line-height: 20px;
    margin-bottom: 5px;
}
.news-title a {
    color: #333;
}
.excerpt {
    line-height: 20px;
    color: #666;
}
.see-more a {
    color: #055699;
    font-weight: bold;
    display: block;
    width: 100%;
    position: relative;
}
.see-more a::after {
    content: '\f105';
    font-family: 'FontAwesome';
    position: absolute;
    top: 0;
    right: 0;
}

/* Pagination */
.wp-pagenavi {margin: 20px 0;border-radius: 0;display: block;text-align: center;}
.wp-pagenavi > span, .wp-pagenavi > a {display: inline-block; font: 16px/36px 'Roboto';color: #999;padding: 2px;border: 1px solid #ccc;float: none;margin: 3px;padding: 0 15px}
.wp-pagenavi > .current,.wp-pagenavi a:hover{background-color: #C91417;border-color: #C91417;color: #fff;}

/**
 * 4.0 - Media Queries
*/

@media screen and (max-width:1199px) {
    .banner-text {
        font-size: 34px;
    }
}
@media screen and (max-width:991px) {
    .desktop-menu li a {
        padding-left: 15px;
        padding-right: 15px;
    }
}
@media screen and (max-width:767px) {
    .main-navigation {
        background-color: #c91417
    }
    .desktop-menu, .custom-ctrl {
        display: none;
    }
    .toggle-mobile-menu {
        display: block;
    }
    form.search input, form.search button {
        right: 50px;
    }
}
@media screen and (max-width:645px) {
    .banner {
        background-image: none;
    }
    .layer-logo {
        padding-top: 0;
        padding-bottom: 0;
        display: table-cell;
        vertical-align: middle;
        height: 300px;
    }
}
@media screen and (max-width:599px) {}
@media screen and (max-width:479px) {
    .banner-text {
        display: none;
    }
}
@media screen and (max-width:419px) {}
