﻿h3.top-train-title {
    margin: 0;
    color: #000;
    margin-bottom: 5px;
    position: relative;
    display: block;
    font-family: Playball;
    font-size: 54px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    text-transform: capitalize;
    background: linear-gradient(180deg, #FF353E 0%, #C90009 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
    padding-top: 10px;
}

.p-banner img {
    display: block;
    width: 100%;
    height: 633px;
}

span.top-train-descript:after {
    content: "";
    position: absolute;
    background: url(/Design/img/nhh/tt.png) no-repeat;
    background-size: cover;
    top: 0;
    left: 0;
    width: 294px;
    height: 13px;
    right: 0;
    margin: auto;
}

.home-train-top {
    padding-bottom: 22px;
}

.content-train h3.title-train {
    margin: 0;
    text-align: center;
    font-family: 'Quicksand-Bold';
    font-size: 23px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    text-transform: capitalize;
    background: linear-gradient(180deg, #36A6FF 0%, #005AA2 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    padding: 0 98px;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    display: -webkit-box;
}

span.btn-train:hover:before {
    height: 560%;
}

span.btn-train:before {
    content: "";
    position: absolute;
    height: 0%;
    left: 50%;
    top: 50%;
    width: 600%;
    background: linear-gradient(180deg, #36A6FF 0%, #005AA2 100%);
    -webkit-transform: translateX(-50%) translateY(-50%) rotate(60deg);
    -ms-transform: translateX(-50%) translateY(-50%) rotate(60deg);
    transform: translateX(-50%) translateY(-50%) rotate(60deg);
    z-index: -1;
    -webkit-transition: 0.7s ease;
    transition: 0.7s ease;
}

.home-train-item:hover .content-train h3.title-train {
    background: linear-gradient(180deg, #FF353E 0%, #C90009 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.content-train span.descript-train {
    display: block;
    color: #4D4D4D;
    text-align: center;
    font-family: 'Quicksand-Regular';
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 138.688%; /* 24.964px */
    margin-top: 8px;
    padding-top: 13px;
    border-top: 1px dashed #999999;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    display: -webkit-box;
}

.content-train span.btn-train {
    position: absolute;
    bottom: -20px;
    left: 0;
    right: 0;
    margin: auto;
    color: #FFF;
    font-family: 'Quicksand-Bold';
    font-size: 18px;
    font-style: normal;
    font-weight: 700;
    line-height: 120%; /* 21.6px */
    border-radius: 40px;
    display: flex;
    width: max-content;
    height: 45px;
    padding: 12px 24px;
    justify-content: center;
    align-items: center;
    border: 1px solid #FFF;
    background: linear-gradient(180deg, #FF353E 0%, #C90009 100%), linear-gradient(180deg, #BB0119 0%, #871620 100%);
    box-shadow: 3px 0px 7px 0px rgba(178, 178, 178, 0.30) inset;
    /* transition: all .5s ease-out 0s; */
    overflow: hidden;
    z-index: 2;
}

.img-item-service-hh img {
    display: block;
    width: 100%;
    height: 370px;
    border-radius: 16px;
    object-fit: cover;
}

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

.content-train {
    padding: 15px 12px;
    padding-bottom: 22px;
}

.home-train-item {
    padding: 17px;
    border-radius: 20px;
    background: #F4F4F4;
    box-shadow: 0px 4px 34.6px 0px rgba(128, 78, 78, 0.30);
}

.img-item-service-hh:before {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    content: "";
    background: #ffffff1a;
    opacity: 0;
    z-index: 1;
    transition: all .5s ease-out 0s;
}

.home-train-item:hover .img-item-service-hh:before {
    opacity: 1;
    top: 50%;
    bottom: 50%;
}

.img-item-service-hh {
    position: relative;
}

    .img-item-service-hh:after {
        position: absolute;
        top: 0;
        left: 0;
        bottom: 0;
        right: 0;
        content: "";
        background: #ffffff1a;
        opacity: 0;
        z-index: 1;
        transition: all .5s ease-out 0s;
    }

.home-train-item:hover .img-item-service-hh:after {
    opacity: 1;
    left: 50%;
    right: 50%;
}

span.top-train-descript {
    position: relative;
    display: block;
    padding-top: 24px;
    font-family: 'QUICKSAND-MEDIUM';
    font-size: 19.096px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    text-transform: capitalize;
    text-align: center;
}

.home-train:before {
    content: "";
    position: absolute;
    background: url(/Design/img/nhh/bb1.png) no-repeat;
    background-size: 100% 100%;
    left: 0;
    top: -130px;
    width: 100%;
    height: 190px;
}

.home-train-top .top-left {
    text-align: center;
}

.home-train {
    padding-top: 0;
    position: relative;
    background: #ffe9f1;
    padding-bottom: 100px;
}

.img-item-decor-b-hh {
    position: absolute;
    right: -81px;
    bottom: 44px;
    z-index: 0;
    pointer-events: none;
}

.home-train-container {
    position: relative;
    z-index: 1;
}

.img-item-decor-t-hh {
    position: absolute;
    left: 0;
    top: 0;
    pointer-events: none;
}

.img-item-sen-t-hh {
    position: absolute;
    right: -241px;
    top: 0;
    animation: spin 10s infinite alternate-reverse;
    pointer-events: none;
}

@media(min-width:1390px) {
    .home-train:before {
        content: "";
        position: absolute;
        background: url(/Design/img/nhh/bb1.png) no-repeat;
        background-size: 100% 100%;
        left: 0;
        top: -147px;
        width: 100%;
        height: 282px;
    }

    .img-item-sen-t-hh {
        position: absolute;
        right: 110px;
        top: 0;
        animation: spin 10s infinite alternate-reverse;
    }
}

@media(max-width:1023px) {
    h3.wrap-team-title {
        margin: 0;
        color: #000;
        font-family: 'Quicksand-Medium';
        font-size: 21.096px;
    }

    .img-item-decor-t-hh {
        display: none;
    }

    .p-banner img {
        display: block;
        width: 100%;
        height: 100%;
    }

    .img-item-decor-t-hh img {
        width: 100%;
    }

    .img-item-decor-t-hh img {
        width: 100%;
    }

    .img-item-decor-b-hh img {
        width: 100%;
        right: 0;
        bottom: 0;
    }

    .content-train span.btn-train {
        font-size: 15px;
        height: 38px;
        padding: 8px 16px;
    }

    span.top-train-descript {
        position: relative;
        display: block;
        font-size: 16px;
    }

    .home-train-item {
        padding: 10px;
    }

    .img-item-service-hh img {
        height: 125px;
    }

    .content-train {
        padding: 10px 3px;
        padding-bottom: 21px;
    }

        .content-train h3.title-train {
            font-size: 16px;
            padding: 0;
        }

        .content-train span.descript-train {
            font-size: 15px;
        }

    h3.top-train-title {
        font-size: 34.096px;
    }

    .img-item-sen-t-hh img {
        width: 100px;
    }

    .img-item-sen-t-hh {
        right: 34px;
    }

    .home-train:before {
        background-size: contain;
        top: -50px;
    }

    .home-train {
        padding-top: 20px;
        padding-bottom: 50px;
    }

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

    span.wrap-team-descript:after {
        content: "";
        position: absolute;
        background: url(/Design/img/nhh/tt.png) no-repeat;
        background-size: cover;
        top: 0;
        left: 0;
        width: 190px;
        height: 8px;
    }

    span.top-train-descript:after {
        content: "";
        position: absolute;
        background: url(/Design/img/nhh/tt.png) no-repeat;
        background-size: cover;
        top: 0;
        left: 0;
        width: 179px;
        height: 8px;
        right: 0;
        margin: auto;
    }

    .c-team-item-h h3 {
        font-size: 16px;
        width: 141px;
    }

    .c-team-item-h p {
        width: 176px;
        margin-top: 10px;
        font-size: 14px;
    }

    .decor-banner-svg-h img {
        display: block;
        width: 100%;
        height: 100%;
    }

    .decor-banner-svg-h {
        width: 35%;
        top: -53px;
    }

    .wrap-team-list {
        display: grid;
        grid-auto-rows: minmax(min-content, max-content);
        grid-template-columns: repeat(1, minmax(0, 1fr));
        column-gap: 70px;
        row-gap: 30px;
        position: relative;
        z-index: 1;
    }

    span.wrap-team-descript {
        font-size: 35px;
    }
}