﻿.p-ct-list {
    display: grid;
    grid-auto-rows: minmax(min-content,max-content);
    grid-template-columns: repeat(2,minmax(0,1fr));
    column-gap: 22px;
    row-gap: 122px;
}

.p-ct-item {
    height: 340px;
    position: relative;
    border-radius: 10px;
}

.p-ct-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 10px;
}

.home-ct {
    background: url(/Design/img/DienQuocHung/c.png) no-repeat;
    background-size: cover;
    padding-top: 36px;
    padding-bottom: 125px;
}

.top-contrus-homee {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 34px;
}

.l-new-homee {
    width: 75%;
}

.r-project-homee {
    flex: 1 1 0;
    text-align: right;
}

.project-link-homee a {
    color: #FFF;
    text-align: center;
    font-family: 'Inter_24pt-Regular';
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px;
    display: flex;
    width: 174px;
    height: 50px;
    justify-content: center;
    align-items: center;
    border-radius: 7px;
    border: 1px solid #FFF;
    background: #F7981D;
}

.p-ct-item:hover .p-ct-name h3 {
    color: #f7981d;
}

.project-link-homee a:hover {
    background: #0067B9;
}

.project-link-homee {
    text-align: right;
    display: flex;
    justify-content: end;
    -webkit-justify-content: flex-end;
}

.p-ct-img img {
    border-top: 4px solid #F7981D;
    border-radius: 10px;
}

.p-ct-item:hover .p-ct-name {
    /* opacity: 0; */
    /* transform: translateY(10px); */
}

.p-ct-item:hover .p-ct-overlay {
    opacity: 1;
    transition-delay: .1s;
}

    .p-ct-item:hover .p-ct-overlay h3 {
        transform: translateY(0);
        opacity: 1;
        transition: 0.8s cubic-bezier(.3,2.2,.3,1);
        transition-delay: .1s;
    }

    .p-ct-item:hover .p-ct-overlay span {
        transform: translateY(0);
        opacity: 1;
        transition: 0.8s cubic-bezier(.3,2.2,.3,1);
        transition-delay: .2s;
    }

    .p-ct-item:hover .p-ct-overlay .options {
        transform: translateY(0);
        opacity: 1;
        transition: 0.8s cubic-bezier(.3,2.2,.3,1);
        transition-delay: .3s;
    }

.p-ct-name {
    position: unset;
    display: flex;
    color: #fff;
    font-weight: 100;
    max-width: 72%;
    padding: 20px 17px;
    z-index: 3;
    transition: all .3s;
    left: 0;
    right: 0;
    margin: auto;
}

    .p-ct-name .icon {
    }

        .p-ct-name .icon img {
            width: 35px;
            display: none;
        }

    .p-ct-name h3 {
        margin: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        display: -webkit-box;
        color: #FFF;
        text-align: center;
        font-family: 'Inter_24pt-SemiBold';
        font-size: 26px;
        font-style: normal;
        font-weight: 600;
        line-height: 150%; /* 39px */
    }

.p-ct-overlay .btns {
    background-color: var(--default-color-2);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    color: #fff;
    font-size: 20px;
    position: absolute;
    bottom: 25px;
    right: 25px;
}

    .p-ct-overlay .btns:hover i {
        transform: rotate(0);
    }

    .p-ct-overlay .btns i {
        transform: rotate(-45deg);
        transition: 0.6s cubic-bezier(.3,2.2,.3,1);
    }

.p-ct-overlay {
    position: relative;
    z-index: 2;
    background-color: #000000a1;
    height: 100%;
    width: 100%;
    padding: 35px 25px;
    opacity: 0;
    transition: all .3s;
    border-radius: 10px;
}

    .p-ct-overlay h3 {
        margin: 0;
        color: #fff;
        font-family: 'Inter_24pt-SemiBold';
        font-weight: 100;
        font-size: 22px;
        overflow: hidden;
        text-overflow: ellipsis;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        display: -webkit-box;
        line-height: 149%;
        transition: all .3s;
        transform: translateY(15px);
        opacity: 0;
        display: none;
    }

    .p-ct-overlay span {
        color: #fff;
        font-family: 'Inter_24pt-Regular';
        overflow: hidden;
        text-overflow: ellipsis;
        -webkit-line-clamp: 5;
        -webkit-box-orient: vertical;
        display: -webkit-box;
        font-size: 16px;
        line-height: 154%;
        margin: 10px 0;
        text-align: justify;
        transition: all .3s;
        transform: translateY(15px);
        opacity: 0;
        text-align: justify;
        margin-top: 0;
    }

    .p-ct-overlay .options {
        padding-top: 1px;
        transition: all .3s;
        transform: translateY(15px);
        opacity: 0;
    }

    .p-ct-overlay .options-item {
        position: relative;
        color: #fff;
        font-size: 16px;
        margin: 10px 0;
        line-height: 152%;
        padding-left: 12px;
        display: flex;
        align-items: center;
    }

        .p-ct-overlay .options-item::before {
            content: '';
            position: absolute;
            width: 5px;
            height: 5px;
            border-radius: 50%;
            background-color: #fff;
            left: 0;
            top: 9px;
        }

/*RS*/
@media(max-width:1023px) {
    .p-ct-list {
        grid-template-columns: repeat(1, minmax(0, 1fr));
        column-gap: 15px;
        row-gap: 98px;
    }

    .p-ct-item {
        height: 250px;
    }
}

@media(max-width:739px) {
    .p-ct-overlay span {
        -webkit-line-clamp: 3;
        font-size: 15px;
        line-height: 154%;
        margin: 8px 0;
    }

    .p-ct-overlay .btns {
        width: 43px;
        height: 43px;
        font-size: 14px;
        bottom: 7px;
    }

    .home-ct {
        padding-bottom: 100px;
    }

    .p-ct-overlay {
        padding: 20px;
    }

    .top-contrus-homee {
        flex-direction: column;
        align-items: unset;
    }

    .l-new-homee .p-title {
        justify-content: unset;
        text-align: left;
        font-size: 23px;
    }

    .l-new-homee {
        width: 100%;
    }

        .l-new-homee .p-descript {
            font-size: 14px;
            text-align: justify;
        }

        .l-new-homee .p-title-cate {
            font-size: 18px;
        }

    .project-link-homee {
        justify-content: unset;
        margin-top: 15px;
    }

        .project-link-homee a {
            width: 128px;
            padding: 0;
            height: 38px;
            line-height: normal;
            font-size: 15px;
        }

    .p-ct-overlay .options-item {
        font-size: 15px;
    }

    .p-ct-overlay h3 {
        font-size: 22px;
    }

    .p-ct-name {
        max-width: 79%;
    }

        .p-ct-name h3 {
            font-size: 16px;
        }
}