/* Different first-child */
#dichvu .article-custom:first-of-type {
    background-color: var(--theme-bhdoanhnghiep);
    color: white;
}

#dichvu .article-custom:first-of-type .heading {
    width: 50%;
}

#dichvu .article-custom:first-of-type .body {
    width: 100%;
}

#dichvu .article-custom:first-of-type .sub-heading {
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    padding: 1rem 2rem;
}

/* Different last-child */
#dichvu .article-custom:last-of-type {
    /*background-color: var(--dark-blue);*/
    color: var(--dark-blue);
}

#dichvu .article-custom:last-of-type .heading {
    left: 0;
    justify-content: center;

    right: unset;
}

#dichvu .article-custom:last-of-type .body {
    width: 50%;
    text-align: left;
}

#dichvu .article-custom:last-of-type .sub-heading {
    width: fit-content;
    margin-right: auto;
    margin-left: 8rem;
    padding: 1rem 2rem;
}

#dichvu .carousel .media-frame img,#dichvu .carousel .media-frame video{
    position: static;
    transform: none;
}

#dichvu .carousel-inner,#dichvu .carousel-item, #dichvu .carousel .media-frame{
    position: static;
}

#dichvu .carousel-caption{
    top: auto;
    bottom: -7%;
    transform: none;
    margin-right: 0;
    text-align: right;
    width: 50%;
    background: #fff;
    padding: 1rem 2rem;
    opacity: .9;
}

#dichvu .carousel-caption h4{
    background-color: transparent;
    padding: 0;
    font-size: calc(1.325rem + .9vw);
}

#dichvu .container.pt5{
    padding-top: 145px !important;
}

/* Different 3rd article */
#dichvu .article-custom:nth-of-type(3) .sub-heading {
    background-color: var(--dark-gray);
    color: white;
    margin-top: 0;
}

@media (min-width: 1700px){
    #dichvu .carousel-caption{
        padding: 2rem 3rem;
        bottom: -10%;
    }
    
    #dichvu .carousel-caption h4{
        font-size: var(--fontsize-h1);
    }
}

@media (max-width: 1399.98px){
    #dichvu .article-custom:last-of-type {
        background-color: var(--dark-blue);
        color: white;
    }
    #dichvu .article-custom:last-of-type .body {
        width: 100%;
    }
    #dichvu .carousel-caption{
        bottom: -12%;
    }
}

@media (max-width: 991.98px){
    #dichvu .carousel-caption{
        top: auto;
        bottom: -14%;
    }
}

@media (max-width: 575.98px){
    #dichvu .carousel-caption{
        bottom: -13%;
    }
}
