/*Dịch vụ*/
* {
    padding: 0;
    margin: 0;
}

#img-serviceAds {
    width: auto;
    height: 100vh;
    background-image: url(../images/service-background.JPG);
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-top: 65px;
}

#img-agencyAds {
    width: auto;
    height: 100vh;
    background-image: url(../images/agency-background.JPG);
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-top: 65px;
}

.row {
    margin: 0;
}

.list-service {
    height: auto;
    overflow: hidden;
    background-color: white;
    box-shadow: 0 5px 40px 0px rgba(0, 0, 0, 0.2);
    padding: 0;
    margin-bottom: 30px;
    border-color: white;
    transition: all 0.2s linear;
    -webkit-transition: all 0.2s linear;
    overflow: hidden;
    border-radius: 5px;
}

.list-img-service {
    overflow: hidden;
    padding: 0;
    margin: 0;
}

.list-img-service>a>img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: all 0.2s linear;
    -webkit-transition: all 0.2s linear;
}

/*Dành cho đại lý*/
.list-img-service .carousel-inner img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: all 0.2s linear;
    -webkit-transition: all 0.2s linear;
}

/*-----------------------------------------*/
.list-img-service>iframe {
    margin-bottom: -5px;

}

.list-content-service {
    margin: auto;
    display: inline-block;
    padding: 8%;
}

.list-content-service div {
    width: 100%;
}

.list-content-service div>a {
    color: rgba(0, 0, 0, 0.8);
    text-decoration: none;

}

.list-content-service div>a>h2 {
    font-weight: 600;
}

.list-content-service div>p {
    color: #333333;
    font-size: 14px;
    /*Dùng JS để giới hạn độ dài của nội dung*/
}

/*Kéo bức ảnh qua bên phải nếu bài post có số thứ tự là lẻ*/
.pull-right {
    float: right;
}

/*Hiệu ứng*/
.list-service:hover {
    transform: translateY(5px);
    box-shadow: none;
    border: solid 1px rgba(0, 0, 0, 0.1);
}

.list-content-service div>a:hover {
    color: #043882;
}

.list-img-service>a>img:hover {
    transform: scale(1.03);
    opacity: 0.6;
}

@media (max-width: 600px) {
    .list-service {
        margin-left: 12%;
        margin-right: 12%;
    }

    .list-img-service>a>img {
        height: 200px;
    }

    /*Đại lý*/
    .list-img-service .carousel-inner img {
        height: 200px;
    }

    .list-content-service {
        padding: 10%;
    }

    iframe {
        height: 200px;
    }
}
@media (max-width: 600px) {
    #img-serviceAds {
        background-attachment: scroll;
    }
    
    #img-agencyAds {
        background-attachment: scroll;
    }
}

/*Nội dung riêng của từng dịch vụ*/
.each-service img {
    max-width: 100%;
    height: auto;
}

.each-service>h3 {
    text-transform: uppercase;
    text-align: left;
    font-weight: 700;
    font-style: italic;
    color: black;
}

.each-service>p {
    line-height: 2;
    font-size: 16px;
    color: rgba(0, 0, 0, 0.8);
}

.each-service>figure>img {
    display: block;
    margin-left: auto;
    margin-right: auto;
    object-fit: contain;
    height: auto;
    max-width: 100%;
    margin-bottom: 20px;
    margin-top: 20px;
}

/*Chia sẽ facebook*/
#share-facebook {
    padding: 10px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    margin-bottom: 20px;
}