﻿.top-home-service h5 {
    margin: 0;
    font-family: 'Montserrat-Bold';
    font-size: 36px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    text-transform: uppercase;
    background: linear-gradient(270deg, #D28C2A 0%, #E3B051 43.36%, #5F3328 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.top-home-service {
    text-align: center;
    margin-bottom: 30px;
}

.b-home-service {
    padding: 0 35px;
}

.top-home-service section {
    position: relative;
    margin: auto;
    color: #BE090E;
    text-align: center;
    font-family: 'MonteCarlo-Regular';
    font-size: 40px;
    font-style: normal;
    font-weight: 400;
    line-height: 115%; /* 60px */
    padding-bottom: 6px;
}

.title-home-service img {
    margin: auto;
}

.w-home-service {
    position: relative;
}

.tree-service-home {
    position: absolute;
    z-index: 1;
    top: -80px;
    right: 0;
}

img.imgdecorback {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
}

.w-home-service .grid.wide {
    position: relative;
}

.w-home-service {
    padding-top: 0;
    padding-bottom: 62px;
}

li.item-home-service {
    list-style: none;
}

ul.list-home-service {
    display: grid;
    grid-auto-rows: minmax(min-content, max-content);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 45px;
    row-gap: 45px;
}

.img-item-home-service {
    position: relative;
    overflow: hidden;
}

    .img-item-home-service::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.4);
        box-shadow: 0 0 30px 10px rgba(255, 255, 255, 0.2);
        opacity: 0;
        transform: translate(-50%, -50%);
        z-index: 2;
        pointer-events: none;
    }

li.item-home-service:hover .img-item-home-service::before {
    animation: ripple-flash 1.1s ease-out forwards;
}

@keyframes ripple-flash {
    0% {
        width: 0;
        height: 0;
        opacity: 0.5;
        box-shadow: 0 0 30px 10px rgba(255, 255, 255, 0.3);
    }

    40% {
        opacity: 0.8;
        box-shadow: 0 0 40px 20px rgba(255, 255, 255, 0.25);
    }

    100% {
        width: 220%;
        height: 220%;
        opacity: 0;
        box-shadow: 0 0 60px 30px rgba(255, 255, 255, 0);
    }
}

.content-item-home-service h3 {
    position: relative;
    width: max-content;
    margin: 0;
    color: #1F1917;
    text-align: center;
    font-family: 'Inter_24pt-Bold';
    font-size: 24px;
    font-style: normal;
    font-weight: 700;
    line-height: 155%; /* 33.6px */
    text-transform: uppercase;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    display: -webkit-box;
}

.title-ser-home {
    position: absolute;
    left: 0;
    top: -21px;
    right: 0;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

li.item-home-service:hover .content-item-home-service .title-ser-home:before {
    transform: scale(1.05);
}

.title-ser-home:before {
    content: "";
    position: absolute;
    background: url(/Design/img/MyVienThaoNguyen/decor/btn1.png) no-repeat;
    background-size: cover;
    left: 0;
    top: 0;
    width: 418px;
    height: 78px;
    right: 0;
    bottom: 0;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-transition: .3s ease-in-out;
    transition: .3s ease-in-out;
}

.content-item-home-service section {
    position: relative;
    padding: 0 44px;
    padding-top: 55px;
    color: #212529;
    text-align: center;
    font-family: 'Inter_24pt-Regular';
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: 140%; /* 28px */
    text-transform: capitalize;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    display: -webkit-box;
}

.content-item-home-service span {
    position: relative;
    margin: auto;
    color: #DC0D15;
    font-family: Inter_24pt-SemiBold;
    font-size: 20px;
    font-style: normal;
    font-weight: 600;
    line-height: 150%; /* 30px */
    text-transform: capitalize;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 11px;
    -webkit-transition: .3s ease-in-out;
    transition: .3s ease-in-out;
}

li.item-home-service:hover .content-item-home-service span {
    transform: scale(1.05);
}

li.item-home-service:hover img {
    transform: scale(1.03);
    filter: brightness(1.1) contrast(1.1);
    transition: all 0.4s ease;
}

li.item-home-service:hover .content-item-home-service h3 {
    color: #D28C2A;
}

.img-item-home-service {
    position: relative;
    width: 100%;
    height: 345px;
    border-radius: 19px;
    overflow: hidden;
}

li.item-home-service:hover .img-item-home-service img {
    transform: scale(1.06);
}

.img-item-home-service > img {
    transition: all .5s;
    border-radius: 19px;
}

.content-item-home-service {
    margin-top: 0;
    text-align: center;
    position: relative;
    padding: 0 12px;
}

.title-service-top-hh h2 {
    margin: 0;
    color: #574848;
    text-align: center;
    font-family: 'BeautiqueDisplay-Bold';
    font-size: 30px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    text-transform: capitalize;
    margin-bottom: 16px;
    margin-top: 15px;
}

.bb-home-service {
    margin-top: 130px;
}

.title-service-top-hh {
    margin-bottom: 35px;
}

.bb-home-service ul.list-home-service {
    display: grid;
    grid-auto-rows: minmax(min-content, max-content);
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 30px;
    row-gap: 113px;
}

.bb-home-service .img-item-home-service {
    height: 301px;
}

.bb-home-service .content-item-home-service h3 {
    font-size: 16px;
}

@media(min-width:1400px) {
}

@media(max-width: 1023px) {
    .tree-service-home img {
        width: 100%;
    }

    li.item-home-service:hover .img-item-home-service:before {
        opacity: 1;
        visibility: visible;
    }

    li.item-home-service:hover .decor-service-bunkhoang {
        display: none;
    }

    ul.list-home-service {
        display: grid;
        grid-auto-rows: minmax(min-content, max-content);
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 20px;
        row-gap: 18px;
    }

    .title-ser-home:before {
        content: "";
        position: absolute;
        background: url(/Design/img/MyVienThaoNguyen/decor/btn1.png) no-repeat;
        background-size: cover;
        left: 0;
        top: 0;
        width: 158px;
        height: 29px;
        right: 0;
        bottom: 0;
        margin: auto;
        display: flex;
        align-items: center;
        justify-content: center;
        -webkit-transition: .3s ease-in-out;
        transition: .3s ease-in-out;
    }

    .bb-home-service ul.list-home-service {
        display: grid;
        grid-auto-rows: minmax(min-content, max-content);
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 27px;
        row-gap: 40px;
    }

    .img-item-home-service {
        height: 410px;
    }

    .bb-home-service .img-item-home-service {
        height: 410px;
    }

    .content-item-home-service h3 {
        font-size: 10px;
    }

    .content-item-home-service {
        margin-top: 10px;
    }

    .bb-home-service .content-item-home-service h3 {
        font-size: 14px;
    }

    .content-item-home-service section {
        font-size: 14px;
        padding: 0;
        padding-top: 13px;
    }

        .content-item-home-service section:before {
            display: none;
        }

    .content-item-home-service span {
        font-size: 13px;
        margin-top: 9px;
    }

        .content-item-home-service span:before {
            content: "";
            position: absolute;
            left: 0;
            top: 0;
            background: url(/Design/img/ttQueenSpa/btn.png) no-repeat;
            background-size: cover;
            width: 135px;
            height: 30px;
            right: 0;
            bottom: 0;
            margin: auto;
            text-align: center;
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: -1;
        }

    .w-home-service {
        padding-top: 5px;
        padding-bottom: 47px;
    }

    .b-home-service {
        padding: 0;
    }

    li.item-home-service:hover .content-item-home-service span {
    }

    .top-home-service h5 {
        font-size: 20px;
        margin-top: 13px;
    }

    img.imgdecorback {
        background-size: cover;
        object-fit: cover;
    }

    .top-home-service section {
        width: 100%;
        font-size: 27px;
    }

        .top-home-service section:after {
            content: "";
            position: absolute;
            background: #AB7C50;
            left: 0;
            bottom: 0;
            right: 0;
            text-align: center;
            margin: auto;
            width: 125px;
            height: 1px;
        }

    .top-home-service {
        margin-bottom: 25px;
    }

    .tree-service-home {
        width: 27%;
        top: -39px;
    }

    .bb-home-service {
        margin-top: 65px;
    }

    .title-service-top-hh h2 {
        font-size: 16px;
    }
}

@media(max-width:739px) {
    .img-item-home-service {
        height: 160px;
    }

        .img-item-home-service > img {
            border-radius: 10px;
        }

    .bb-home-service .img-item-home-service {
        height: 190px;
    }
}