﻿.top-project-h .top-cef-home {
    text-align: left;
    margin: 0;
    margin-left: 41px;
}

.top-project-h {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
    padding-bottom: 58px;
}

.r-project-link-h a {
    display: flex;
    align-items: center;
    color: #fff;
    font-family: 'Inter_24pt-Regular';
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    cursor: pointer;
    pointer-events: all;
    padding: 15px 29px;
    padding-right: 0;
    transition: all 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50px;
}

    .r-project-link-h a:hover {
        background: #035B8F;
        color: #ffffff;
        box-shadow: 0 12px 30px rgba(3, 91, 143, 0.35);
        padding-right: 36px;
    }

.top-project-h .top-cef-home h3 {
    color: #FFFFFF;
}

.home-project-w {
    background: url(/Design/img/DongXuyen/d-a.png) no-repeat;
    background-size: cover;
    margin-top: -3px;
    padding-top: 91px;
    padding-bottom: 60px;
}

.top-project-h .top-cef-home h2 {
    color: #fff;
}

.r-project-link-h a svg path {
    fill: #fff;
}

ul.p-project-list.rs {
    display: grid;
    grid-auto-rows: minmax(min-content, max-content);
    column-gap: 16px;
    row-gap: 28px;
    grid-template-columns: repeat(3, minmax(0px, 1fr));
}

.p-project-img:before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 90, 130, 0.15), rgba(0, 0, 0, 0.45));
    opacity: 0;
    transition: opacity 0.8s ease;
    z-index: 1;
}

li.p-project-item:hover .p-project-img:before {
    opacity: 1;
}

.p-project-img:after {
    content: "";
    position: absolute;
    top: -120%;
    left: -120%;
    width: 300%;
    height: 300%;
    background: repeating-linear-gradient(120deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.18) 10%, rgba(255, 255, 255, 0) 20%);
    opacity: 0;
    transition: all 1.6s ease;
    z-index: 2;
}

li.p-project-item:hover .p-project-img:after {
    top: 0;
    left: 0;
    opacity: 1;
}

li.p-project-item:hover .p-project-img img {
    transform: scale(1.08);
}

.p-project-img img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    transition: all .5s ease-out 0s;
}

.p-project-img {
    height: 265px;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

span.detail-view-project {
    position: relative;
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    height: 49px;
    color: #FFF;
    font-family: 'Inter_24pt-Medium';
    font-size: 20px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    text-transform: uppercase;
    border-radius: 10px;
    border: 1px solid #FFF;
    overflow: hidden;
}

    span.detail-view-project:after {
        content: "";
        position: absolute;
        top: 0;
        left: -156%;
        width: 50%;
        height: 100%;
        background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.4), transparent);
        transition: all 0.6s ease;
    }

li.p-project-item:hover span.detail-view-project:after {
    left: 112%;
}

span.detail-view-project:hover {
    background: #333;
}

li.p-project-item:hover .item-t-project h3 {
    color: #000;
}

.item-t-project h3 {
    margin: 0;
    color: #FFF;
    font-family: 'Inter_24pt-Medium';
    font-size: 20px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    display: -webkit-box;
    -webkit-line-clamp: 2;
}

.decor-title-project {
    margin-top: 14px;
}

.item-add-cus-project span {
    color: #FFF;
    font-family: 'Inter_24pt-Regular';
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    margin-top: 4px;
    line-height: 150%;
    display: inline-flex;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    display: -webkit-box;
    -webkit-line-clamp: 1;
}

    .item-add-cus-project span svg {
        margin-right: 5px;
    }

.item-add-cus-project {
    margin-top: 12px;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
}

.top-project-h .svg-decor-cer {
    top: -34px;
}

.r-project-link-h a svg {
    margin-right: 9px;
}

@media (max-width: 992px) {
    ul.p-project-list.rs {
        display: grid;
        grid-auto-rows: minmax(min-content, max-content);
        column-gap: 16px;
        row-gap: 20px;
        grid-template-columns: repeat(2, minmax(0px, 1fr));
    }

    .r-project-link-h a {
        display: none;
    }

    .home-project-w {
        background-position: center;
    }

    .p-project-img {
        height: 135px;
    }

    span.detail-view-project {
        font-size: 15px;
        height: 43px;
    }

    .item-t-project h3 {
        margin: 0;
        color: #FFF;
        font-family: 'Inter_24pt-Medium';
        font-size: 15px;
        font-style: normal;
        font-weight: 500;
        line-height: 150%;
    }

    .item-add-cus-project span:nth-child(1) svg {
        margin-right: 5px;
        width: 10px;
        height: auto;
    }

    .item-add-cus-project span:nth-child(2) svg {
        margin-right: 5px;
        width: 13px;
        height: auto;
    }

    .item-add-cus-project span {
        color: #FFF;
        font-size: 12px;
        align-items: flex-start;
        display: -webkit-box;
        overflow: hidden;
        text-overflow: ellipsis;
        -webkit-box-orient: vertical;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        margin-top: 7px;
    }
}