﻿ul.p-service-list__type2 {
    display: grid;
    grid-auto-rows: minmax(min-content, max-content);
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 20px;
    row-gap: 25px;
}

.my-news {
    background: url(/Design/img/ttQueenSpa/s.png) no-repeat;
    background-size: cover;
}

li.p-service-item__type2 {
    border-radius: 8px;
}

a.p-service-link__type2 {
    display: block;
    width: 100%;
    height: 100%;
}

.p-service-img__type2 img {
    overflow: hidden;
    transition: all 0.5s ease-out;
    border-radius: 8px;
}

.item-top-content-service-child {
    position: relative;
    border-radius: 8px;
}

.des-service-child-item span {
    position: relative;
    margin-top: 7px;
    padding: 0 46px;
    padding-top: 11px;
    color: #D28C2A;
    text-align: center;
    font-family: 'InterM';
    font-size: 20px;
    font-style: italic;
    font-weight: 500;
    line-height: 140%;
    text-transform: capitalize;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    display: -webkit-box;
}

.w-detail-view-service-child {
    display: flex;
    align-items: center;
    margin-top: 10px;
    border-top: 1px solid #E8DEDE;
    padding-top: 10px;
    padding-left: 10px;
    justify-content: center;
}

.view-service-child-item {
    display: flex;
    align-items: center;
    margin-left: 15px;
    display: none;
}

    .view-service-child-item span {
        padding-left: 4px;
        padding-right: 18px;
        color: #4D4D4D;
        font-family: 'InterR';
        font-size: 14px;
        font-style: normal;
        font-weight: 400;
        line-height: 138.688%;
    }

.detail-service-link {
    position: relative;
    color: #FFF;
    text-align: center;
    font-family: 'InterM';
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    width: 197px;
    height: 44px;
    line-height: 140%;
    text-transform: capitalize;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-transition: .3s ease-in-out;
    transition: .3s ease-in-out;
}

li.p-service-item__type2:hover .detail-service-link {
    transform: scale(1.05);
}

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

.p-service-img__type2 {
    overflow: hidden;
    border-radius: 8px;
}

li.p-service-item__type2:hover .p-service-img__type2 img {
    transform: scale(1.2);
}

.p-service-content__type2 {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.item-top-content-service-child:before {
    content: "";
    position: absolute;
    z-index: 1;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, .5);
    -webkit-transition: background-color .3s ease;
    -ms-transition: background-color .3s ease;
    transition: background-color .3s ease;
    border-radius: 8px;
}

.p-service-img__type2 {
    height: 285px;
}

li.p-service-item__type2:hover .decor-view-ser svg {
    animation: toBottomFromTop 0.5s forwards;
    transition: all 0.5s ease-out;
}

h3.title-ser-item {
    position: relative;
    margin: 0;
    color: #fff;
    text-align: center;
    font-family: 'InterSB';
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    text-transform: capitalize;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    display: -webkit-box;
}

.decor-view-ser svg {
    width: 48px;
    height: auto;
}

.decor-view-ser {
    display: flex;
    align-items: center;
    width: 55px;
    height: 55px;
    border-radius: 50px;
    justify-content: center;
    background: #fff;
    margin: auto;
    margin-bottom: 10px;
    box-shadow: 0.835px 5.942px 24px 0px rgba(0, 0, 0, 0.23);
    transition: all 0.5s ease-out;
    overflow: hidden;
}

    .decor-view-ser img {
        width: 67%;
        height: auto;
    }

.decor-title-svg-ser {
    text-align: center;
    display: flex;
    flex-direction: column-reverse;
}

li.p-service-item__type2:hover .decor-view-ser {
    background: #1b1b1b;
}

.decor-view-ser svg path {
    transition: all 0.5s ease-out;
}

li.p-service-item__type2:hover .decor-view-ser svg path {
    fill: #fff;
}

@-webkit-keyframes toBottomFromTop {
    49% {
        -webkit-transform: translateY(-100%);
        transform: translateY(-100%);
    }

    50% {
        opacity: 0;
        -webkit-transform: translateY(100%);
        transform: translateY(100%);
    }

    51% {
        opacity: 1;
    }
}

@keyframes toBottomFromTop {
    49% {
        -webkit-transform: translateY(-100%);
        transform: translateY(-100%);
    }

    50% {
        opacity: 0;
        -webkit-transform: translateY(100%);
        transform: translateY(100%);
    }

    51% {
        opacity: 1;
    }
}

@media(max-width:1023px) {
    ul.p-service-list__type2 {
        display: grid;
        grid-auto-rows: minmax(min-content, max-content);
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 15px;
        row-gap: 15px;
    }

    .des-service-child-item span {
        font-size: 14px;
        padding: 0 5px;
    }

    .w-detail-view-service-child {
        padding-left: 0;
    }

    .detail-service-link: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;
    }

    .detail-service-link {
        width: 135px;
        height: 30px;
        font-size: 13px;
    }

    .p-service-img__type2 {
        height: 190px;
    }

    h3.title-ser-item {
        font-size: 14px;
        padding: 0 15px;
        overflow: hidden;
        text-overflow: ellipsis;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        display: -webkit-box;
    }

    .decor-view-ser svg {
        width: 33px;
    }

    .decor-view-ser {
        width: 45px;
        height: 45px;
    }
}