﻿.home-noi-that {
    background: url(../../../Design/img/Home-CTTC.png) no-repeat;
    background-size: 100% 100%;
    padding-bottom: 115px;
}

.home-noithat-container {
}
/* Container chính */
.home-noithat-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.mySwiper {
    padding: 20px 0;
}

.homenoithat {
    width: 100%;
    overflow: hidden;
}

    .homenoithat .swiper-wrapper {
        display: flex;
        transition: transform 0.3s ease;
    }

    .homenoithat .swiper-slide {
        flex-shrink: 0;
        width: auto; /* hoặc width: calc((100% - 60px) / 4) nếu muốn 4 slide */
    }

.swiper-slide {
    /* display: flex; */
    /* justify-content: center; */
}

.noithat-item {
    cursor: pointer;
    text-align: center;
    transition: transform 0.3s, border 0.3s;
}

    .noithat-item img {
        width: 100%;
        border-radius: 8px;
    }

    .noithat-item.active {
        border: 2px solid #008bbc;
        border-radius: 10px;
        transform: scale(1.05);
    }

.noithat-info {
}

    .noithat-info img {
        max-width: 100%;
        border-radius: 12px;
        margin-bottom: 15px;
        width: 734px;
        height: 419.715px;
        border: 1.506px solid #FFF;
    }


/* Danh sách ảnh nhỏ */
.noithat-bottom {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.noithat-item {
    width: 100%;
    height: 166px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

    .noithat-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    /* Hiệu ứng hover + active */
    .noithat-item:hover {
        transform: scale(1.05);
        box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    }

    .noithat-item.active {
        border: 3px solid #ff5722;
        transform: scale(0.95);
    }

/* Box thông tin hiển thị chi tiết */
.noithat-info {
    text-align: left;
    animation: fadeIn 0.5s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.swiper-button-next:after, .swiper-rtl .swiper-button-prev:after, .swiper-button-prev:after, .swiper-rtl .swiper-button-next:after {
    display: none
}

.noithat-info h3 {
    margin-bottom: 10px;
    color: #FFF;
    font-family: 'interR';
    font-size: 23px;
    font-style: normal;
    font-weight: 700;
    line-height: 30px; /* 130.556% */
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    display: -webkit-box;
    margin-bottom: 12px;
    margin-top: 15px;
}

.noithat-info p {
    margin-bottom: 15px;
    color: #FFF;
    font-family: 'interR';
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px; /* 100% */
    margin: 0;
    /* padding-bottom: 22px; */
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    display: -webkit-box;
}

.noithat-info .btn-detail {
    display: inline-block;
    background: #ff5722;
    color: #fff;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.3s ease;
    border: 1px solid;
    margin-top: 11px;
}

    .noithat-info .btn-detail:hover {
        background: #e64a19;
    }

/* Hiệu ứng fade */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .noithat-bottom {
        justify-content: center;
    }

    .noithat-item {
        width: 45%;
    }

    .noithat-info {
        max-width: 100%;
    }
}

.noithat-top {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 111px;
}




.top-left:before {
    content: "";
    position: absolute;
    width: 100vw;
    height: 230%;
    right: -79px;
    top: -6px;
    background: #EDEDED;
    clip-path: polygon(0 0, 100% 0%, 94% 100%, 0% 100%);
}

.top-left {
    position: relative;
    z-index: 0;
    top: -21px;
}

.kjx21v {
    color: #F38218;
    font-family: 'KanB';
    font-size: 36px;
    font-style: normal;
    font-weight: 700;
    line-height: 117.2%; /* 42.192px */
    text-transform: uppercase;
    white-space: nowrap;
    position: relative;
    z-index: 1;
    padding: 21px 0px;
    top: 22px;
}

.top-right {
    margin-top: 23px;
}

.vkxc {
    color: #FFF;
    font-family: 'interR';
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px; /* 150% */
}

.hjjbv:hover {
    background: var(--default-color-2); /* tối màu nền */
    transform: translateY(-3px); /* nhô lên */
    box-shadow: 0 4px 10px rgba(0,0,0,0.2); /* đổ bóng */
}

.kcvj:hover {
    letter-spacing: 1px; /* giãn chữ nhẹ */
    color: #FFF; /* đổi màu chữ */
}

.hjjbv {
    border-radius: 7px;
    border: 1px solid #FFF;
    background: #00A651;
    width: 18%;
    margin-top: 13px;
    transition: all 0.3s ease;
}

.kcvj {
    color: #FFF;
    text-align: center;
    font-family: 'interR';
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px; /* 150% */
    padding: 10px 0;
}


.noithat-bottom {
    display: flex;
    justify-content: center;
    flex-direction: column;
}

.noithat-info-left {
    width: 754px;
    height: 419.715px;
}

.klvx {
    color: #FFF;
    font-family: 'interR';
    font-size: 19px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px; /* 100% */
    text-decoration-line: underline;
    text-decoration-style: solid;
    text-decoration-skip-ink: none;
    text-decoration-thickness: auto;
    text-underline-offset: auto;
    text-underline-position: from-font;
    text-transform: capitalize;
}

.kbjkvc {
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgb(0 0 0 / 10%);
}

.noithat-info-right {
    width: 33%;
}
/* Hover nổi bật hơn */
.kbjkvc:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgb(0 0 0 / 56%);
}

.home-noi-that .swiper-wrapper {
    padding: 40px 0px;
    width: 1px;
    padding-top: 10px;
}
/* Ảnh sản phẩm */
.bjhvc img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}

@media (max-width:739px) {
    .bjhvc img {
        width: 100% !important;
        height: 162px;
    }

    .kxjcv {
        font-size: 14px;
        text-align: left;
    }

    .kxcjvcx {
        padding: 5px;
    }

    .bkvc {
        font-size: 11px;
        padding: 5px;
        border-radius: 3px;
    }

    .kvxjc {
        font-size: 12px
    }

    .xvccv {
        font-size: 14px
    }

    .top-right {
        margin-top: 40px;
    }
}

@media (max-width: 739px) {
    .home-noi-that {
         /* Use cover to prevent distortion */
        padding-bottom: 50px; /* Reduce padding for mobile */
    }

    .home-noithat-container {
        gap: 20px; /* Reduce gap between sections */
    }

    .noithat-top {
        flex-direction: column; /* Stack top-left and top-right vertically */
        gap: 20px; /* Reduce gap */
        align-items: center; /* Center content */
    }

    .kjx21v {
        font-size: 24px; /* Reduce font size */
        line-height: 28px; /* Adjust line height */
        padding: 10px 0; /* Reduce padding */
        white-space: normal; /* Allow text wrapping */
        /* top: 0; */ /* Reset top positioning */
    }

        .kjx21v:after {
            right: 0; /* Adjust background image positioning */
            background-size: contain; /* Scale background image */
            z-index: -1; /* Ensure it stays behind content */
            content: unset;
        }

    .top-left:before {
        height: 150%; /* Reduce height of decorative background */
        top: 0; /* Adjust positioning */
        content: unset;
    }

    .top-right {
        margin-top: 20px; /* Adjust from 40px for consistency */
    }

    .vkxc {
        font-size: 14px; /* Reduce font size */
        line-height: 20px; /* Adjust line height */
    }

    .hjjbv {
        width: 40%; /* Wider button for touch interaction */
        padding: 8px 0; /* Adjust padding */
    }

    .kcvj {
        font-size: 14px; /* Reduce font size */
    }

    .noithat-bottom {
        flex-direction: column; /* Already column, reinforcing for clarity */
        gap: 10px; /* Reduce gap */
    }

    .noithat-item {
        width: 100%; /* Full width for items (override 45% from 768px) */
        height: 167px; /* Reduce height */
    }

        .noithat-item img {
            height: 100%; /* Ensure image fills container */
            object-fit: cover; /* Prevent distortion */
        }

    .noithat-info {
        flex-direction: column; /* Stack image and text */
        gap: 15px; /* Add spacing */
        max-width: 100%; /* Retained from 768px */
    }

        .noithat-info img {
            width: 100%; /* Full width */
            height: 242px; /* Maintain aspect ratio */
            max-height: 300px; /* Limit height */
            margin-bottom: 10px; /* Reduce margin */
        }

        .noithat-info h3 {
            font-size: 22px; /* Reduce font size */
            line-height: 30px; /* Adjust line height */
             /* Reduce padding */
            -webkit-line-clamp: 1;
        }

        .noithat-info p {
            font-size: 16px; /* Reduce font size */
            line-height: 20px; /* Adjust line height */
             /* Reduce padding */
            -webkit-line-clamp: 2;
        }

        .noithat-info .btn-detail {
            padding: 6px 12px; /* Smaller padding */
            font-size: 14px; /* Reduce font size */
        }

    .noithat-info-left {
        width: 100%; /* Full width */
        height: auto; /* Adjust height */
        max-height: 300px; /* Limit height */
    }

    .noithat-info-right {
        width: 100%; /* Full width */
    }

    .kbjkvc {
        border-radius: 8px; /* Slightly smaller border radius */
    }

    .klvx {
        font-size: 16px; /* Reduce font size */
        line-height: 20px; /* Adjust line height */
    }

    .mySwiper {
        padding: 10px 0; /* Reduce padding */
    }

    .homenoithat .swiper-slide {
        width: 100%; /* Full width for each slide */
    }

    .home-noi-that .swiper-wrapper {
        padding: 20px 0; /* Reduce padding */
    }

    .top-left {
        top: 0;
    }
}
