﻿.home-new {
    padding-top: 80px;
}

.home-new-container h2 {
    margin-bottom: 42px;
    font-family: 'interB';
    font-size: 32px;
    color: var(--default-color-1);
}

.content-new {
    display: flex;
    gap: 20px;
}


.content-new-mobile {
    display: none;
}



.item-content-new {
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

    .item-content-new:hover {
        transform: translateY(-5px);
    }

/* Phóng ảnh khi hover */
.img-content-new {
    overflow: hidden;
    border-radius: inherit;
}

    .img-content-new:hover {
        border-radius: 13px;
    }

    .img-content-new img {
        width: 100%;
        height: auto;
        transition: transform 0.4s ease;
    }

.item-content-new:hover .img-content-new img {
    transform: scale(1.05);
}

/* Hiệu ứng chữ */
.item-title h2 {
    font-size: 18px;
    color: var(--default-color-1);
    transition: color 0.3s ease;
}

.item-content-new:hover .item-title h2 {
    color: #ff0000;
}

.item-descript span {
    color: #555;
    font-size: 15px;
    line-height: 1.6;
    display: block;
    /* margin-top: 8px; */
}







.img-content-new img {
    width: 590px;
    height: 403px;
    border-radius: 13px;
}

.img-content-new-right img {
    width: 167px;
    height: 166px;
}

.item-content-new-right {
    display: flex;
    /* gap: 16px; */
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .item-content-new-right:hover {
        transform: translateY(-6px);
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    }

/* Ảnh */
.img-content-new-right {
    flex-shrink: 0;
    width: 190px; /* hoặc auto */
    overflow: hidden;
    border-radius: 12px 0 0 12px;
}

    .img-content-new-right img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.4s ease;
        display: block;
        border-radius: 10px;
    }

.item-content-new-right:hover .img-content-new-right img {
    transform: scale(1.05);
}

/* Nội dung bên phải */
.content-new-right {
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Tiêu đề */
.item-title-right h2 {
    font-size: 18px;
    /* margin: 0; */
    /* color: #333; */
    transition: color 0.3s ease;
}

.item-content-new-right:hover .item-title-right h2 {
    color: #ff0000;
}

.item-content-new-right {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .item-content-new-right:hover {
        transform: translateY(-8px);
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    }
/* Mô tả */
.item-descript-right span {
    display: block;
    margin-top: 5px;
    font-size: 15px;
    color: #555;
    line-height: 1.6;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    display: -webkit-box;
}

.item-content-new-right {
    display: flex;
    justify-content: center;
    /* gap: 19px; */
    background: #FFF;
    box-shadow: 0 6px 20px rgb(0 0 0 / 26%);
    border-radius: 13px;
}

.content-new-right .item-title-right h2 {
    font-size: 20px;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    display: -webkit-box;
}

.item-descript-right {
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    display: -webkit-box;
    margin-top: 4px;
}

.item-content-new .item-descript {
    font-size: 17px;
    color: #000000db;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    display: -webkit-box;
}

.item-content-new .item-title h2 {
    font-size: 18px;
    margin-bottom: 4px;
    margin-top: 18px;
    font-family: 'monB';
}

.content-new-right-e {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.content-new-right {
    padding: 17px 13px;
}

@media(max-width: 739px) {
    .item-descript-mobile span {
        margin: 0 8px 12px !important;
        -webkit-line-clamp: 2 !important;
        font-size: 13px !important;
    }

    .home-new {
        padding-top: 0;
    }

    .home-new-container h2 {
        font-size: 25px;
        margin-top: 39px;
        text-align: center;
        -webkit-line-clamp: 1 !important;
    }

    .content-new {
        display: none
    }

    .content-new-mobile {
        display: block;
    }


    .content-new-mobile {
        display: grid;
        grid-auto-rows: minmax(min-content,max-content);
        grid-template-columns: repeat(2,minmax(0,1fr));
        column-gap: 10px;
        row-gap: 10px;
    }



    /* Container link */
    .home-news-item {
        display: block;
        text-decoration: none;
        color: inherit;
        border-radius: 12px;
        overflow: hidden;
        background: #fff;
        box-shadow: 0 1px 8px rgba(0, 0, 0, 0.08);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

        .home-news-item:hover .home-new-container h2 {
            color: #F4162F;
        }
        /* Hover hiệu ứng nhẹ nhàng */
        .home-news-item:hover {
            transform: translateY(-5px) !important;
            box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
        }

    /* Bố cục bên trong */
    .item-content-new-mobile {
        display: flex;
        flex-direction: column;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
}
/* Ảnh */
.img-content-new-mobile {
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}

    .img-content-new-mobile img {
        width: 100%;
        height: auto;
        display: block;
        transition: transform 0.3s ease;
        object-fit: cover;
    }

/* Hover ảnh phóng nhẹ */
.home-news-item:hover .img-content-new-mobile img {
    transform: scale(1.05);
}

/* Tiêu đề */
.item-title-mobile h2:hover {
    color: #F4162F;
}

.item-title-mobile h2 {
    font-size: 12px;
    margin: 11px 7px 8px;
    color: var(--default-color-1);
    line-height: 1.4;
    transition: color 0.3s ease;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    display: -webkit-box;
    text-align: left;
}

/* Mô tả */
.item-descript-mobile span {
    display: block;
    margin: 0 16px 16px;
    font-size: 11px;
    color: #555;
    line-height: 1.6;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    display: -webkit-box;
}

/* Đổi màu chữ khi hover */
.home-news-item:hover .item-title-mobile h2 {
    color: #F4162F;
}

.item-title-mobile h2 {
    margin-bottom: 0px;
    font-size: 14px;
}

.img-content-new-mobile img {
    height: 127px;
}
}
