﻿/*!
 * home.css
 * Version - 1.0
 * Website: uscom.com
 * Author: Ghida
 * Copyright (c) 2020 bicweb.com
 */
 .logo h1 {
    margin: 0;
    font-size: 1rem;
}

.gd_box__title {
    text-align: left;
}

.gd_box__title .gd_text {
    color: #222;
    font-size: 1.2rem;
    font-weight: 600;
    display: block;
    margin-bottom: 0rem;
    line-height: 1.42;
    text-align: left;
    padding-bottom: 1rem;
    position: relative;
    text-transform: uppercase;
}

.gd_box__title .gd_text::after {
    content: "";
    width: 60px;
    height: 2px;
    background-color: #7b9fd3;
    position: static;
    left: 0;
    bottom: 0;
    transform: none;
    display: inline-block;
    margin-left: 5px;
}

.gd_module {
    padding: 40px 0 30px;
}
.gd_module .gd_link {
    margin-top: 30px;
}
/*********************************************
    1. Banner
    **********************************************/
    .gd_banner {
        clear: both;
    }

    .gd_banner img.bg_slider {
    }

    .gd_banner_image {
        margin: 0;
    }

    .gd_banner .owl-nav [class^="owl-"] {
        color: #fff;
        line-height: 1;
        opacity: 0;
        position: absolute;
        text-align: center;
        top: 50%;
        -moz-transform: translateY(-50%);
        -ms-transform: translateY(-50%);
        -o-transform: translateY(-50%);
        -webkit-transform: translateY(-50%);
        transform: translateY(-50%);
        transition: all 0.3s ease-in 0s;
        visibility: hidden;
        z-index: 100;
        height: 65px;
        width: 40px;
        cursor: pointer;
        font-size: 48px;
    }

    .gd_banner .owl-prev {
        left: 40px;
    }

    .gd_banner .owl-next {
        right: 40px;
    }

    .gd_banner:hover .owl-nav [class^="owl-"] {
        opacity: 1;
        visibility: visible;
    }

    .gd_banner .owl-nav.disabled {
        display: none;
    }


    .gd_banner .owl-dots {
        position: absolute;
        bottom: 25px;
        left: calc((100vw - var(--content-size)) / 2);
        display: flex;
        padding: 3px 10px;
        border-radius: 5px 5px 0 0;
    }

    .gd_banner .owl-dots::after, .gd_banner .owl-dots:before {
        content: "";
        bottom: 0;
        position: absolute;
        display: none;
    }

    .gd_banner .owl-dots::after {
        border-left: 0px solid transparent;
        border-right: 15px solid transparent;
        right: -14px;
        border-bottom: 24px solid #fff;
    }

    .gd_banner .owl-dots::before {
        border-left: 15px solid transparent;
        border-top: 0px solid transparent;
        border-bottom: 24px solid #fff;
        left: -14px;
    }

    .gd_banner .owl-dot {
        padding: 5px;
    }

    .gd_banner .owl-dots .owl-dot span {
        display: block;
        width: 10px;
        height: 10px;
        border-radius: 5px;
        background: #fff;
        transition: all 300ms ease-in 0ms;
    }

    .gd_banner .owl-dot.active span {
        width: 50px;
    }

    .gd_box_testimonial .owl-dots {
        background: none;
        bottom: -20px;
    }

    .owl-nav.disabled {
        display: none;
    }
/*********************************************
    2. Module dịch vụ
    **********************************************/
    .gd_chooses {
        padding: 10px 0;
    }
    .gd_choose__item {
    }

    .gd_choose__inner {
        transition: .2s border-color;
        padding: 20px;
        text-align: left;
        display: flex;
        background-color: var(--color-primary);
        border-radius: 5px;
    }

    .choose_icon {
        max-height: 120px;
        overflow: hidden;
        margin-bottom: 0;
        display: flex;
        justify-content: center;
        align-items: center;
        margin-right: 15px;
    }
    .choose_desc {
        font-size: 15px;
    }
    .choose_title {
        font-size: 1rem;
        margin-bottom: 0;
        display: block;
        text-transform: uppercase;
        color: #fff;
        font-weight: 600;
    }
    .gd_choose__item:last-child {
        border-right: none;
    }
/*********************************************
    3. Module giới thiệu
    **********************************************/
    .gd_module__about {
        padding: 0;
        position: relative;
        clear: both;
    }

    .gd_module__about .video-about {
        height: 100%;
        display: flex;
        align-items: center;
        margin: 0;
    }

    .gd_module__about .video-about img {
        display: block;
    }

    .gd_module__about .video-wrap {
        border: none;
        margin: 0;
        border-radius: 0;
    }

    .gd_module__about .gd_closed {
        position: absolute;
        color: #fff;
        top: 0px;
        right: 10px;
    }

    .gd_module__about .video-link {
        position: absolute;
        width: 100px;
        height: 100px;
        top: 50%;
        color: white;
        right: 0;
        z-index: 1;
        line-height: 100px;
        text-align: center;
        margin-right: -60px;
        border-radius: 50%;
        background: #263d84;
        font-size: 35px;
        border: 8px solid #ebebeb;
        cursor: pointer;
        box-sizing: content-box;
        margin-top: -60px;
    }

    .gd_module__about .video-link i.fas.fa-play {
        margin-left: 14px;
        transition: 0.9s;
        transform-origin: 40% 50%;
    }

    .gd_module__about .video-link:hover i.fas.fa-play {
        transform: rotateZ(360deg);
    }

    .gd_module__about .gd_box__title .gd_text {
        text-align: left;
    }

    .gd_about_content .gd_desc {
        padding-top: 50px;
        padding-bottom: 35px;
    }

    .gd_about_content .gd_desc h1, .gd_about_content .gd_desc h2 {
        font-size: 30px;
        color: #083190;
        font-family: 'Open Sans', sans-serif;
        font-weight: bold;
        margin-bottom: 1rem;
        position: relative;
    }

    .gd_about_content .gd_desc blockquote {
        font-weight: 600;
        padding-left: 15px;
        border-left: 2px solid #008ed4;
    }

    .gd_about_content .gd_desc ol {
        list-style: none;
        padding: 0;
    }

    .gd_about_content .gd_desc li {
        position: relative;
        margin-bottom: 1.5rem;
        padding-left: 50px;
        padding-top: 10px;
    }

    .gd_about_content .gd_desc li::before {
        content: attr(data-index);
        position: absolute;
        width: 40px;
        height: 40px;
        background-color: #263d84;
        color: #fff;
        border-radius: 50%;
        text-align: center;
        line-height: 40px;
        font-weight: bold;
        font-size: 16px;
        left: 0;
        top: 0;
    }

    .gd_about_content .gd_desc a {
        display: inline-block;
        color: #fff;
        background-color: #263d84;
        padding: .5rem 1.5rem;
        margin: 1rem 10px 0;
        text-transform: uppercase;
        transition: all 300ms ease-in 0ms;
    }

    .gd_about_content .gd_desc a:first-child {
        margin-left: 0px;
    }

    .gd_about_content .gd_desc a:hover {
        box-shadow: 0 10px 15px rgba(0,0,0,0.25);
        transform: translateY(-0.75rem);
    }
/*********************************************
    4. Module tin tức
    **********************************************/
    .gd_module__article {
        background-color: #f5f5f5;
    }

    .gd_post__image {
        height: calc(185 / 330 * (var(--content-size) / 4.36 + 30px));
        background: -webkit-linear-gradient(45deg, #083190 0%, #008ed4 100%);
        background: linear-gradient(45deg, #083190 0%,#008ed4 100%);
        margin-bottom: 1rem;
    }

    .gd_post__image a {
        display: block;
        width: 100%;
        height: 100%;
        overflow: hidden;
        position: relative;
    }

    .gd_post__image a::before {
        position: absolute;
        top: 15px;
        right: 15px;
        bottom: 15px;
        left: 15px;
        border: 1px solid #fff;
        content: '';
        opacity: 0;
        filter: alpha(opacity=0);
        -webkit-transition: opacity 0.35s, -webkit-transform 0.45s;
        transition: opacity 0.35s, transform 0.45s;
        -webkit-transform: translate3d(-15px,0,0);
        transform: translate3d(-15px,0,0);
        z-index: 1;
        display: none;
    }

    .gd_post__image:hover a::before {
        opacity: 1;
        filter: alpha(opacity=100);
        -webkit-transform: translate3d(0,0,0);
        transform: translate3d(0,0,0);
    }

    .gd_post__image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        position: relative;
        max-width: none;
        width: 100%;
        -webkit-transition: opacity 0.35s, -webkit-transform 0.45s;
        transition: opacity 0.35s, transform 0.45s;
        border-radius: 5px;
    }

    .gd_post__image:hover img {
        opacity: 0.6;
        filter: alpha(opacity=60);
        -webkit-transform: translate3d(0,0,0);
        transform: translate3d(0,0,0);
    }
    .gd_meta .gd_bag {
        background-color:  #ff5f01;
        border-radius: 5px;
        padding: 3px 15px;
        color: #fff;
        display: inline-block;
        margin-right: 10px;
    }
    .gd_post__title .gd_text {
        font-size: 1rem;
        color: #222;
        font-weight: bold;
        display: -webkit-box !important;
        max-width: 100%;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .gd_post__title .gd_text:hover {
        color: #008ed4;
    }
    .gd_related__content .gd_absolute {
      position: absolute;
      bottom: 2rem;
      left: 0;
      width: 100%;
      line-height: 1.5rem;
  }
  .gd_related__content .gd_meta .gd_bag {
    background-color: #ff5f01;
}
.gd_related__content .gd_post__item {
}

.gd_related__content .gd_post__inner {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    margin-bottom: 30px;
}

.gd_related__content .gd_post__image {
    margin-bottom: 0px;
}

.gd_related__content .gd_post__image::before {
    content: "";
    background: linear-gradient(to top,rgba(0,0,0,0.5) 30%,rgba(0,0,0,0.15));
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    display: block;
    visibility: visible;
    opacity: 1;
    z-index: 1;
    border-radius: 5px;
}

.gd_related__content .gd_post__content {
    padding: 10px 15px;
    max-width: 100%;
    bottom: 0;
    color: #fff;
    z-index: 2;
    transition: all 300ms ease-in 0ms;
}
.gd_related__content .gd_post__content:hover{
    background: linear-gradient(to top,rgba(0,0,0,0.5) 30%,rgba(0,0,0,0));
}

.gd_related__content .gd_post__title .gd_text {
    font-size: 1rem;
    margin-bottom: 10px;
    -webkit-line-clamp: 3;
    color: #fff;
    text-transform: none;
    line-height: 1.42;
    font-weight: 500;
}


.gd_related__content .gd_post__excerpt {
    font-size: 15px;
}

/*********************************************
    5. Module product
    **********************************************/
    .gd__p_items {
        display: flex;
        flex-wrap: wrap;
        margin-left: -5px;
        margin-right: -5px;
    }
    .gd__p_item {
        flex: 0 0 20%;
        max-width: 20%;
        padding: 0 5px;
    }
    .gd__p_inner {
        border-radius: 5px;
        border: 1px solid #ccc;
        text-align: center;
        position: relative;
    }
    .gd__p_image {
        padding: 10px;
        margin-bottom: 0;
    }
    .gd__p_image .size-woocommerce_thumbnail {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
    .gd__p_content {
        padding: 15px;
    }
    .gd__p_content .gd_text {
        color: #222;
        font-size: 1rem;
    }
    .gd__p_content .woocommerce-Price-amount.amount {
        color: var(--red);
        font-weight: 500;
    }
    .gd__p_price .price {
        display: flex;
        justify-content: center;
        flex-flow: row-reverse;
    }
    .gd__p_price ins {
        text-decoration: none;
    }
    .gd__p_price del .woocommerce-Price-amount.amount {
        color: #abacad;
        text-decoration: line-through;
    }
    .onsale {
        position: absolute;
        right: 10px;
        top: 10px;
        z-index: 100;
        color: #fff;
        background-color: red;
        padding: 0 5px;
        border-radius: 3px;
        font-size: 12px;
        font-weight: 500;
    }
/*********************************************
    6. Module video
    **********************************************/
    .gd_module__video {
        background: #008ed4 url('../images/bg_video.jpg') no-repeat center center;
    }

    .gd_module__video .gd_box__title .gd_text {
        color: #fff;
    }

    .gd_module__video .gd_box__title .gd_text::after {
        background-color: #fff;
    }

    .gd_video__inner {
        position: relative;
        height: calc(300/450 * (var(--content-size)/3 - 30px));
        padding: 50px 0px 50px 150px;
        transition: all 300ms ease-in-out 0ms;
    }

    .gd_video__image {
        height: 100%;
    }

    .gd_video__item .owl-video-play-icon {
        background: transparent;
        border: 1px solid #fff;
        border-radius: 50%;
        width: 60px;
        height: 60px;
        margin-left: -30px;
        margin-top: -30px;
    }

    .gd_video__item .owl-video-play-icon::before {
        content: "\f04b";
        font-family: "Font Awesome 5 Pro";
        font-weight: bold;
        color: #fff;
        font-size: 26px;
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%,-50%);
        margin-left: 2px;
    }

    .gd_video__content {
        position: absolute;
        bottom: 65px;
    }

    .gd_video__title {
    }

    .gd_video__title .gd_text {
        font-size: 1rem;
        font-weight: 600;
        color: #fff;
    }

    .gd_video__title .gd_text::before {
        content: "";
        background-color: #fff;
        font-size: 1.25rem;
        width: 40px;
        height: 1px;
        display: inline-block;
        margin-right: 10px;
    }

    .owl-item.active.center .gd_video__inner {
        padding: 0;
    }

    .owl-item.active.center ~ .owl-item.active .gd_video__inner {
        padding-left: 0;
        padding-right: 150px;
    }

    .owl-item.active.center .gd_video__content {
        bottom: 15px;
    }

    .gd_module__video .owl-nav [class^="owl-"] {
        color: #fff;
        line-height: 1;
        opacity: 1;
        position: absolute;
        text-align: center;
        top: 50%;
        -moz-transform: translateY(-50%);
        -ms-transform: translateY(-50%);
        -o-transform: translateY(-50%);
        -webkit-transform: translateY(-50%);
        transform: translateY(-50%);
        transition: all 0.3s ease-in 0s;
        z-index: 100;
        height: 65px;
        width: 40px;
        cursor: pointer;
        font-size: 48px;
    }

    .gd_module__video .owl-prev {
        left: 0px;
    }

    .gd_module__video .owl-next {
        right: 0px;
    }
    .gd_link__detail {
        background-color: var(--color-primary);
        color: #fff;
        display: inline-block;
        padding: 2px;
        width: 160px;
        border-radius: 5px;
        height: 35px;
        line-height: 31px;
        text-align: center;
    }
    .gd_link__detail:hover{
        color: #fff;
    }
    .gd_link__detail i {
        background-color: #fff;
        color: var(--color-primary);
        height: 31px;
        width: 33px;
        position: relative;
        display: inline-block;
        font-size: 1.5rem;
        line-height: 31px;
        float: right;
        border-radius: 5px;
    }

    .widget_map .img_map img {
        max-width: 100%;
    }
    .widget_map .link_map {
        background-color: #f1f1f1;
        display: flex;
        align-items: center;
    }

    .widget_map .link_map .link_map__inner{
        padding: 1rem 2.5rem;
    }

/*********************************************
    7. Module XXX
    **********************************************/
    @media screen and (min-device-width: 1200px) and (max-device-width: 1440px) {
        .gd_services::before {
            width: calc(100% - 110px);
            left: 100px;
        }

        .choose_title {
            font-size: 1.25rem;
        }

        .gd_post__image {
            height: calc(30/45 * (var(--content-size)/3 - 30px));
        }
    }

    @media only screen and (max-width: 1024px) and (min-width: 768px) {
        .container {
            max-width: 100%;
            padding-left: 50px;
            padding-right: 50px;
        }
        .owl-item.active.center ~ .owl-item.active .gd_video__inner {
            padding-left: 0;
            padding-right: 90px;
        }
        .gd_module {
            padding: 0 0 40px;
        }
        .gd_choose__inner {
            flex-flow: column;
            text-align: center;
            padding: 0;
        }
        .choose_icon {
            margin-right: 0;
            margin-bottom: 10px;
        }
        .widget_map, .widget_qc {
            margin-bottom: 40px;
        }
        .widget_map .link_map img.img-fluid {
            height: 30px;
        }
        .widget_map .img_map img {
            height: 100%;
            object-fit: cover;
        }
        .gd__p_item:nth-child(6) {
            display: none;
        }
        .gd_chooses {
            border: none;
        }
    }


    @media screen and (max-device-width: 767px) {
        .cta_hotline {
            display: none;
        }

        .gd_services {
            padding: 0;
            background: none;
        }

        .gd_choose__item {
            margin-bottom: 30px;
        }

        .choose_title {
            font-size: 1.25rem;
        }

        .gd_module__about {
            padding: 30px 0 0;
        }


        .gd_module__about .video-link {
            margin-right: -50px;
            right: 50%;
            width: 80px;
            height: 80px;
            line-height: 80px;
        }

        .gd_about_content {
            margin-top: 30px;
        }

        .gd_module__about .video-about img {
            margin: auto;
        }

        .gd_about_content .gd_desc {
            padding: 0;
        }

        .gd_post__image {
            height: calc(30/45 * (var(--content-size)/2 - 30px));
        }

        .gd_service__image {
            height: calc(30/45 * (var(--content-size)/2));
        }

        .gd_service__item, .gd_post__item {
            margin-bottom: 30px;
        }
        .gd_video__inner {
            height: calc(300/450 * (var(--content-size)/2 - 30px));
            padding: 30px 0px 30px 90px;
        }
        .owl-item.active.center ~ .owl-item.active .gd_video__inner {
            padding-left: 0;
            padding-right: 90px;
        }
        .gd_video__content {
            bottom: 45px;
        }
    }

    @media only screen and (max-width: 767px) and (min-width: 577px) {
        .gd__p_item {
            flex: 0 0 33%;
            max-width: 33%;
            margin-bottom: 10px;
        }
        .gd__p_item:nth-child(10){
            display: none;
        }
        .gd__p_content {
            padding: 0 5px 5px;
        }
    }

    @media screen and (max-width: 576px) {
        .widget_map .link_map .link_map__inner {
            padding: 30px;
            width: 100%;
            text-align: center;
        }
        .gd__p_item {
            flex: 0 0 50%;
            max-width: 50%;
            margin-bottom: 10px;
        }
        .gd__p_content {
            padding: 0 5px 5px;
        }
        .gd_banner img.bg_slider {
            height: auto;
            width: 100%;
            max-width: none;
        }
        .gd_module {
            padding: 30px 0;
        }

        .gd_box__title .gd_text {
            font-size: 24px;
            margin-bottom: 1rem;
        }

        .gd_module__choose {
            background-size: cover;
        }

        .gd_module__choose .gd_box__title {
            background-size: 100% auto;
            padding-top: 85px;
        }

        .gd_module__choose .gd_box__title .gd_text {
            margin-bottom: 30px;
        }

        .gd_choose__item {
            padding: 0 15px;
            margin-bottom: 0px;
        }

        .gd_choose__inner {
            margin-bottom: 0px;
            height: 100% !important;
            padding: 10px;
            justify-content: flex-start;
        }
        .choose_icon {
            flex: 0 0 65px;
        }
        .gd_module__about {
            padding-bottom: 0;
        }

        .gd_module__about .video-link {
            left: 50%;
            transform: translate(-50%, -50%);
            top: 50%;
            margin: 0;
        }
        .gd_about_image {
            display: none;
        }
        .gd_about_content {
            margin-top: 0;
        }
        .gd_about_content .gd_desc {
            padding: 10px 0 0;
        }

        .gd_module__about .gd_box__title .gd_text {
            margin-bottom: 15px;
        }

        .video-about .img-fluid {
            max-width: 100%;
            margin: auto;
        }

        .gd_about_content .gd_desc li {
            padding-top: 0;
        }

        .gd_about_content .gd_desc a {
            margin-left: 0;
            text-align: center;
            width: 210px;
            float: left;
        }

        .gd_service__item {
            margin-bottom: 30px;
        }

        .gd_module__article .gd_post__title {
            margin-left: 15px;
        }

        .gd_module__article .gd_post__inner {
            display: flex;
            margin-bottom: 1rem;
            background: none !important;
        }

        .gd_module__article .gd_post__image {
            flex: 0 0 150px;
            height: 100px;
            margin: 0;
        }
    }

    @media screen and (max-device-width: 414px) {
        .module_article_tab .gd_post__excerpt {
            display: none;
        }
    }

    @media screen and (max-device-width: 375px) {
       .gd_choose__item {
        flex: 0 0 100%;
        max-width: 100%;
    }
}
