﻿.home-cam-nang {
    padding: 50px 0;
}

    .home-cam-nang .grid.wide {
    }

.home-cam-nang-container {
}

.home-cam-nang-list {
    display: flex;
    gap: 20px;
}

.home-cam-nang-left {
    flex: 1;
}

.home-cam-nang-left-top::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(0 0 0 / 3%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.home-cam-nang-left-top:hover img {
    transform: scale(1.07);
}

.home-cam-nang-left-top:hover::after {
    opacity: 1;
}

.home-cam-nang-left-bottom-title,
.home-cam-nang-left-bottom-descript {
    transition: color 0.3s ease;
}

.home-cam-nang-left:hover .home-cam-nang-left-bottom-title {
    color: var(--default-color-2); /* màu đỏ nổi bật khi hover */
}

.home-cam-nang-left:hover .home-cam-nang-left-bottom-descript {
    color: #111;
}

.home-cam-nang-left-top {
    width: 100%;
    height: 389px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.btn-cam-nang-left {
    padding-top: 20px;
}

    .btn-cam-nang-left a {
        display: inline-block;
        text-align: center;
        font-family: ''monM'';
        color: #333;
        border: 1px solid #5d5d5d;
        border-radius: 33px;
        padding: 8px 25px;
        transition: all 0.3s ease;
    }

        .btn-cam-nang-left a:hover {
            border-color: #f3872d;
            color: #f3872d;
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        }

.home-cam-nang-left-top img {
    =: 100%;
    transition: transform 0.5s ease;
}

.home-cam-nang-left-bottom {
}

.home-cam-nang-left-bottom-title {
    font-size: 22px;
    font-family: 'monB';
    padding-top: 15px;
}

.home-cam-nang-left-bottom-descript {
    font-size: 16px;
    font-family: 'monM';
    color: #333333;
    padding-top: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    display: -webkit-box;
}

.btn-cam-nang-left {
}

    .btn-cam-nang-left a {
    }

.home-cam-nang-right {
    flex: 1;
}

.home-cam-nang-right-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Hiệu ứng hover */
.home-cam-nang-right-item:hover {
    transform: translateY(-3px);
    background-color: #fafafa;
}

    .home-cam-nang-right-item:hover img {
        transform: scale(1.05);
    }

.home-cam-nang-right-right-title {
    font-size: 18px;
    font-family: 'monB';
    color: #222;
    transition: color 0.3s ease;
}

/* Mô tả */
.home-cam-nang-right-right-descript {
    color: #555;
    font-family: 'monM';
    font-size: 15px;
    transition: color 0.3s ease;
}

/* Khi hover, mô tả đậm màu hơn nhẹ */
.home-cam-nang-right-item:hover .home-cam-nang-right-right-descript {
    color: #111;
}

.home-cam-nang-right-item:hover .home-cam-nang-right-right-title {
    color: var(--default-color-2); /* Màu nổi bật khi hover */
}

.home-cam-nang-right-item {
    display: flex;
    align-items: center;
    border-radius: 8px;
    transition: all 0.4s ease;
    background-color: #fff;
}

.home-cam-nang-right-left {
    width: 45%;
    168 contain-intrinsic-block-size: auto 100px;
    height: 100%;
    border-radius: 5px;
    overflow: hidden;
}

    .home-cam-nang-right-left img {
        height: 136px;
        transition: transform 0.4s ease;
    }

.home-cam-nang-right-right {
    padding: 9px;
    width: 100%;
}

.home-cam-nang-right-right-title {
    font-size: 18px;
    font-family: 'monB';
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    display: -webkit-box;
}

.home-cam-nang-right-right-descript {
    168 contain-intrinsic-block-size: auto 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    display: -webkit-box;
    padding-top: 10px;
    font-size: 16px;
    font-family: 'monM';
    color: #333333;
}

/* ===================== TABLET ===================== */
@media (min-width: 740px) and (max-width: 1023px) {

    .home-cam-nang {
        padding: 40px 0;
    }

    .home-cam-nang-list {
        flex-direction: column;
        gap: 30px;
    }

    .home-cam-nang-left-top {
        height: 320px;
    }

    .home-cam-nang-left-bottom-title {
        font-size: 20px;
    }

    .home-cam-nang-left-bottom-descript {
        font-size: 15px;
    }

    .home-cam-nang-right-list {
        flex-direction: column;
        gap: 16px;
    }

    .home-cam-nang-right-item {
        align-items: flex-start;
        padding: 8px;
    }

    .home-cam-nang-right-left img {
        width: 150px;
        height: 120px;
    }

    .home-cam-nang-right-right-title {
        font-size: 17px;
    }

    .home-cam-nang-right-right-descript {
        font-size: 14px;
    }
}


/* ===================== MOBILE ===================== */
@media (max-width: 739px) {

    .home-cam-nang {
        padding: 30px 0;
    }

    .home-cam-nang-list {
        flex-direction: column;
        gap: 20px;
    }

    .home-cam-nang-left-top {
        height: 240px;
    }

    .home-cam-nang-left-bottom-title {
        font-size: 18px;
        padding-top: 10px;
    }

    .home-cam-nang-left-bottom-descript {
        font-size: 14px;
        padding-top: 8px;
    }

    .btn-cam-nang-left {
        text-align: center;
    }

        .btn-cam-nang-left a {
            width: auto;
            font-size: 14px;
            padding: 6px 18px;
        }

    .home-cam-nang-right-list {
        gap: 14px;
        display: grid;
        grid-auto-rows: minmax(min-content,max-content);
        grid-template-columns: repeat(2,minmax(0,1fr));
        column-gap: 10px;
        row-gap: 10px;
    }

    .home-cam-nang-right-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .home-cam-nang-right-left {
        width: 100%;
        height: 140px;
    }

        .home-cam-nang-right-left img {
            width: 100%;
            height: auto;
            border-radius: 6px;
        }

    .home-cam-nang-right-right {
        padding: 6px 0 0 0;
    }

    .home-cam-nang-right-right-title {
        font-size: 16px;
        line-height: 1.4;
        overflow: hidden;
        text-overflow: ellipsis;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
        display: -webkit-box;
    }

    .home-cam-nang-right-right-descript {
        font-size: 14px;
        -webkit-line-clamp: 2;
    }
}
