﻿
.slide-custom {
    position: relative;
    width: 100vw;
    height: 42.8751vw;
    overflow: hidden;
}

/* Cài đặt chung cho các hình ảnh */
.image {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 1; /* Ẩn các hình ảnh trước khi đến lượt */
    animation-duration: 30s; /* Tổng thời gian của một vòng lặp */
    animation-timing-function: ease;
    animation-fill-mode: forwards; /* Giữ trạng thái cuối */
    animation-iteration-count: infinite; /* Lặp lại vô hạn */
}

/* Animation cho từng hình ảnh với delay riêng biệt */

/* Hình ảnh 1: Từ trái qua phải */
.img1 {
    transform: translateX(0);
    z-index: 2;
    animation-name: moveRight;
}

/* Hình ảnh 2: Từ phải qua trái */
.img2 {
    transform: translateX(100%);
    z-index: 1;
    animation-name: moveLeft;
}

/* Hình ảnh 3: Từ trên xuống */
.img3 {
    transform: translateY(-100%);
    z-index: 1;
    animation-name: moveDown;
}

/* Hình ảnh 4: Từ dưới lên */
.img4 {
    transform: translateY(100%);
    z-index: 1;
    animation-name: moveUp;
}

/* Keyframes cho từng animation */

/* Animation của hình ảnh 1: Từ trái qua phải */
@keyframes moveRight {
    0%, 15% {
        transform: translateX(0);
    }

    20%, 90% {
        transform: translateX(-100%);
    }

    95%, 100% {
        transform: translateX(0);
    }
    
    /* Giữ hình ảnh ẩn sau 25% */
}

/* Animation của hình ảnh 2: Từ phải qua trái */
@keyframes moveLeft {
    0%, 15% {
        transform: translateX(100%);
    }

    20%, 40% {
        transform: translateX(0);
    }

    45%, 100% {
        transform: translateY(-100%);
    }
}

/* Animation của hình ảnh 3: Từ trên xuống */
@keyframes moveDown {
    0%, 40% {
        transform: translateY(-100%);
    }

    45%, 65% {
        transform: translateY(0);
    }

    70%, 100% {
        transform: translateY(100%);
    }
}

/* Animation của hình ảnh 4: Từ dưới lên */
@keyframes moveUp {
    0%, 65% {
        transform: translateY(100%);
    }

    70%, 90% {
        transform: translateY(0);
    }

    95%, 100% {
        transform: translateY(-100%);
    }
}

#banner .new_hcm_menu ul {
    background-image: none;
    width: 620px;
    position: relative;
}
#myNavbar ul > li > a {
    color: #bb6e17 !important;
}
#myNavbar ul > li:hover > a {
    color: #4baa58 !important;
}
#myNavbar ul > li > ul {
    background-color: #4baa58 !important;
}
    #myNavbar ul > li > ul > li > a {
        color: #fff !important;
    }

    #myNavbar ul > li > ul > li:hover > a {
        color: #4baa58 !important;
    }
#banner .new_hcm_menu ul li {
    background: linear-gradient(to right, #2c561d, #40971c);
    position: absolute;
    width: 180px;
    height: 37px;
    text-align: left;
    border-bottom-right-radius: 32px;
    transition: background 0.8s ease;
}
#banner .new_hcm_menu ul li:nth-of-type(1) {
    background-color: #4baa58;
    position: absolute;
    text-align: left;
    border-bottom-right-radius: 32px;
    z-index: 4;
    padding-left: 40px;
    border-top-left-radius: 16px;
}
#banner .new_hcm_menu ul li:nth-of-type(2) {
    background-color: #4baa58;
    position: absolute;
    left: 150px;
    text-align: left;
    border-bottom-right-radius: 32px;
    z-index: 3;
    padding-left: 65px;
}
#banner .new_hcm_menu ul li:nth-of-type(3) {
    background-color: #4baa58;
    position: absolute;
    left: 300px;
    text-align: left;
    border-bottom-right-radius: 32px;
    z-index: 2;
    padding-left: 55px;
}
#banner .new_hcm_menu ul li:nth-of-type(4) {
    background-color: #4baa58;
    position: absolute;
    left: 450px;
    text-align: left;
    border-bottom-right-radius: 32px;
    z-index: 1;
    padding-left: 50px;
}

#banner .new_hcm_menu ul li:hover {
    background: linear-gradient(to right, #72b71d, #398549);
}
#banner .new_hcm_menu ul li a {
    background: transparent;
    color: #fff;
    font-size: 1.4rem;
    padding: 0;
    margin: 0;
}
#banner .new_hcm_menu ul li span {
    background: transparent;
    color: #fff;
    font-size: 1.4rem;
    padding: 0;
    margin: 0;
}
#banner .new_hcm_menu ul li:hover span {
    background: transparent;
    color: #fff;
    font-size: 1.4rem;
    padding: 0;
    margin: 0;
}
#banner .new_hcm_menu ul li:hover a {
    background: transparent;
    color: #fff;
    font-size: 1.4rem;
    padding: 0;
    margin: 0;
}

h2 {
    color: #4baa58 !important;
}
.custom-li {
    position: absolute !important;
    right: 90px;
    height: 50px;
    display: flex !important;
    align-items: center;
    top: 0px !important;
}
#login-system {
    top: 0!important;
}
#login-btn {
    color: #bb6e17;
}
#login-system .custom-dropdown-toggle {
    color: #bb6e17;
    background: #fff;
    border: 1px #bb6e17 solid;
    border-radius: 8px;
    padding: 4px;
}
#login-system .dropdown-toggle {
    color: #bb6e17;
}
#dropdownMenuButtonSearchFunc button {
    height: 100% !important;
}

#login-system .nav-user .dropdown-menu.menu_login {
    background: #4baa58 !important;
    color: #fff !important;
}
#login-system ul > li > a {
    color: #fff !important;
}
    #login-system ul > li:hover > a {
        color: #4baa58;
    }

#notification-badges ul > li {
    background-color: #fff !important;
}
#notification-badges ul.dropdown-menu {
    border-radius: 8px;
}
    #notification-badges ul.dropdown-menu ul.menu {
        border-top-left-radius: 8px;
        border-top-right-radius: 8px;
    }
    #notification-badges ul.dropdown-menu .footer {
        border-bottom-left-radius: 8px;
        border-bottom-right-radius: 8px;
    }
#login-btn {
    display: inline-block;
    height: 25px;
    position: relative;
}
#login-system .nav-user {
    width: 90px !important;
    position: absolute;
    top: 8px;
}
#login-system .nav-user .dropdown-toggle {
    display: block;
    width: 100% !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
}
    #login-system .nav-user .dropdown-toggle:after {
        display: block;
        position: absolute;
        right: 0;
        top: 7px;
    }

.card-lichtrinh .card-body {
    background-image: url(/Content/images/bg-dd1.png) !important;
    background-repeat: no-repeat; /* Không lặp lại hình nền */
    background-size: cover; /* Đảm bảo hình nền hiển thị đầy đủ hoặc bạn có thể dùng "cover" */
}

.card-lichtrinh .card-body a {
    color: #fff;
}

.card-lichtrinh .padding-10 {
    padding: 0;
}

.card-lichtrinh .padding-10 .margin-bottom-0 {
    padding: 10px;
    border-left: 3px solid #4baa58;
    text-transform: uppercase;
}
.card-lichtrinh .padding-10 {
    position: absolute;
    bottom: 0;
    width: 100%;
}

.card-lichtrinh .catnoidung {
    display: none;
}
.custom-list-flex {
    padding-top: 32px;
}

.custom-list-flex .data_tour_default .card-cover-lichtrinh {
    height: 100%;
}
.list-flex {
    height: 100%;
    padding-top: 32px;
}
.banner-thumbs-res {
    padding-top: 32px !important;
}
.custom-list-flex .data_tour_default {
    width: 35%;
    padding-top: 19%;
    margin-bottom: 1%;
    float: right;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}
.custom-list-flex .data_tour_default img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover; /* Để hình lấp đầy không gian mà không bị biến dạng */
    transition: transform 0.3s ease; /* Hiệu ứng chuyển đổi mượt khi phóng to */
}
.custom-list-flex .data_tour_default:hover img {
    transform: translate(-50%, -50%) scale(1.1);
}
.custom-list-flex .data_tour_default .card-lichtrinh {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
   
}
.custom-list-flex .data_tour_default:first-of-type {
    width: 60%;
    float: left;
    padding-top: 59%;
}
.custom-list-flex .data_tour_default:first-of-type img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 105%;
    height: 105%;
    transform: translate(-50%, -50%);
    object-fit: cover; /* Để hình lấp đầy không gian mà không bị biến dạng */
    transition: transform 0.3s ease; /* Hiệu ứng chuyển đổi mượt khi phóng to */
}
.custom-list-flex .data_tour_default:first-of-type:hover img {
    transform: translate(-50%, -50%) scale(0.99);
}
.card-lichtrinh {
    position: relative;
}
.card-lichtrinh .card-body {
    position: absolute;
    bottom: 0px;
    width: 100%;
    height: 80%;
    color: #fff;
}
.canh-trai {
    width: 35%;
    float: right;
}

.main-visual .visual-rolling {
    height: auto;
}

.klk-button-outlined-brown {
    color: #4baa58 !important;
    border-color: #4baa58 !important;
}

.klk-button-outlined-brown:hover {
    color: #fff !important;
    border-color: #4baa58 !important;
    background-color: #4baa58 !important;
}

.tao-lich-trinh {
    background: url(https://media.cantho.gov.vn/resources/portal/Images/HGI/superadminportal.hgi/tao_lich_trinh_593089538_194158201.png) !important;
    height: 22vw;
    background-size: cover !important;
}

.tao-lich-trinh .container, .tao-lich-trinh .col-md-16, .tao-lich-trinh .book_tour_home {
    height: 100%;
}

    .tao-lich-trinh .book_tour_home_info {
        font-size: 1.4rem;
    }
    .tao-lich-trinh .book_tour_home_info h2 {
        font-size: 2.8rem;
    }

    .tao-lich-trinh .book_tour_home_href {
        top: 70% !important;
        text-transform: none !important;
        padding: 8px 20px 8px 8px !important;
        border-radius: 8px !important;
        width: auto !important;
    }

#search-tab-toppage, #toggle_form_search {
    display: none!important;
}

.home-news {
    min-height: 1px !important;
    margin-bottom: 16px;
}

.home-news .info_sub_date {
    display: -webkit-box; /* Sử dụng flexbox đặc biệt */
    -webkit-box-orient: vertical; /* Thiết lập hướng dọc */
    overflow: hidden; /* Ẩn phần nội dung thừa */
    text-overflow: ellipsis; /* Hiển thị "..." nếu bị cắt */
    -webkit-line-clamp: 2; /* Giới hạn số dòng hiển thị */
    max-height: 3em; /* Đặt chiều cao tối đa tương ứng số dòng */
    line-height: 1.5em; /* Điều chỉnh khoảng cách giữa các dòng */
}

.new-style-box {
    width: calc(25% - 8px);
    margin-right: 10px;
    padding-top: 16%;
    position: relative;
    overflow: hidden;
    float: left;
    border-radius: 16px;
}
.home-news .new-style-box:last-of-type {
    margin-right: 0;
}
.new-style-box .content {
    position: absolute;
    width: 100%;
    height: 100px;
    bottom: 0;
    left: 0;
    background-image: url(/Content/images/bg-dd1.png);
    background-size: cover;
    text-align: left;
    padding: 5px;
    padding-top: 65px;
}
.new-style-box .content p {
    margin-bottom: 4px;
    font-size: 1.4rem;
}
.new-style-box .content p.info_sub {
    margin: 0;
}
 .new-style-box .image {
    position: absolute;
    width: 100%;
    height:100%;
    top: 0;
    left: 0;
}

.new-style-box img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 105%;
    height: 105%;
    transform: translate(-50%, -50%);
    object-fit: cover; /* Để hình lấp đầy không gian mà không bị biến dạng */
    transition: transform 0.3s ease; /* Hiệu ứng chuyển đổi mượt khi phóng to */
}

    .new-style-box:hover img {
        transform: translate(-50%, -50%) scale(1.5);
    }

.info_title_small a, .info_sub_date {
    color: #fff !important;
}

.info_title_small {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.info_sub_date {
    display: -webkit-box; /* Sử dụng flexbox đặc biệt */
    -webkit-box-orient: vertical; /* Thiết lập hướng dọc */
    overflow: hidden; /* Ẩn phần nội dung thừa */
    text-overflow: ellipsis; /* Hiển thị "..." nếu bị cắt */
    -webkit-line-clamp: 2; /* Giới hạn số dòng hiển thị */
    max-height: 3em; /* Đặt chiều cao tối đa tương ứng số dòng */
    line-height: 1.5em; /* Điều chỉnh khoảng cách giữa các dòng */
}

.section-news .xemthem, .section-er .xemthem, .luutru-section .xemthem {
    background: #fff;
    color: #4baa58;
    border: 1px solid #4baa58;
    border-radius: 4px;
    font-weight: bold;
}
    .section-news .xemthem:hover, .section-er .xemthem:hover {
        background: #4baa58;
        color: #fff;
        border: 1px solid #4baa58;
        border-radius: 4px;
    }

.luutru-section {
    background: none!important;
}

.luutru-section {
    background: none !important;
}

.mg-bot30, .pos-relative, .pos-relative img {
    border-radius: 8px;
}

.mg-bot30 {
    margin-bottom: 0 !important;
}

.frame-destination.d1 {
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.pos-relative {
    overflow: hidden;
}
.pos-relative img {
    transition: transform 0.3s ease !important; /* Hiệu ứng chuyển đổi mượt khi phóng to */
}

.pos-relative:hover img {
    transform: scale(1.2);
}

.pos-relative .destination-name {
    transition: transform 0.3s ease; /* Hiệu ứng mượt */
}
.pos-relative:hover .destination-name {
    transform: translateY(-10px);
}

.item-er {
    position: relative;
    padding-top: 60%;
    overflow: hidden;
    margin-bottom: 45px;
    border-radius: 16px;
}
    .item-er .image {
        position: absolute;
        width: 100%;
        height: 100%;
        top: 0;
    }
    .item-er .content {
        position: absolute;
        width: 100%;
        bottom: 0;
    }
    .item-er .catnoidung {
        display: -webkit-box; /* Sử dụng flexbox đặc biệt */
        -webkit-box-orient: vertical; /* Thiết lập hướng dọc */
        overflow: hidden; /* Ẩn phần nội dung thừa */
        text-overflow: ellipsis; /* Hiển thị "..." nếu bị cắt */
        -webkit-line-clamp: 2; /* Giới hạn số dòng hiển thị */
        max-height: 3em; /* Đặt chiều cao tối đa tương ứng số dòng */
        min-height: unset;
        line-height: 1.5em; /* Điều chỉnh khoảng cách giữa các dòng */
    }

    .item-er .info_sub {
        display: none;
    }

.item-er .image img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 105%;
    height: 105%;
    transform: translate(-50%, -50%);
    object-fit: cover; /* Để hình lấp đầy không gian mà không bị biến dạng */
    transition: transform 0.3s ease; /* Hiệu ứng chuyển đổi mượt khi phóng to */
}

    .item-er:hover .image img {
        transform: translate(-50%, -50%) scale(1.5);
    }

    .item-er .content {
        position: absolute;
        width: 100%;
        height: 171px;
        bottom: 0;
        left: 0;
        background-image: url(/Content/images/bg-dd1.png);
        background-size: cover;
        text-align: left;
        padding: 5px;
        padding-top: 70px;
    }
    .item-er .content a, .item-er .content .catnoidung {
        color: #fff;
    }

.text-ceter .item-er:last-of-type {
    margin-bottom: 16px;
}
.header-custom-it3 {
    display: none;
}

.hidden-sm {
    display: inline-block;
}

.hidden-767 {
    display: block;
}
.appear-767 {
    display: none;
}
.map-container {
    padding-top: 17px;
}
.user-profile-page {
    padding-top: 40px !important;
}
@media screen and (max-width: 767px) {
    #show_download_my_app.show_popup {
        display: none!important;
    }
    .map-container {
        padding-top: 0;
    }
    .hidden-sm {
        display: none !important;
    }
    .hidden-767 {
        display: none;
    }
    .appear-767 {
        display: block;
    }
    .appear-767 .dropdown-content {
        display: block;
        position: unset;
        background-color: #fff;
        box-shadow: none;
    }

        .appear-767 .navbar-nav {
            padding-top: 80px;
        }
        .appear-767 .d-none {
            display: none !important;
        }
    .appear-767 li.divider {
        height: 1px;
        background-color: #dadada;
    }
        .appear-767 .normalizebtn {
            border: none;
            padding-bottom: 5px;
            background: #fff;
            padding: 10px 15px;
            font-weight:bold;
        }
        .appear-767 .btn-dropdown {
            width: 30px;
            height: 30px;
            position: absolute;
            right: 0;
            top: 0;
            background-color: #dadada;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .appear-767 .hideNavbarBtn {
            width: 50px;
            color: #d08025 !important;
            font-size: 28px;
            color: #333;
            position: absolute;
            right: 0;
            z-index: 100;
        }
    #myNavbar2 {
        position: fixed;
        top: 0;
        left: 0;
        z-index: 99;
        width: 70%;
        height: 100%;
        background: #fff;
    }
    .main-visual {
        height: auto;
        position: relative;
        padding-top: 27px;
    }

        .main-visual .visual-rolling {
            position: relative;
            height: auto;
        }

    #search-tab-toppage {
        display: none !important;
    }

    .new_hcm_menu {
        display: none;
    }
    

        .custom-list-flex {
            padding-left: 12px;
            padding-right: 12px;
        }

        .custom-list-flex .data_tour_default {
            width: calc(50% - 16px);
            margin-left: 8px;
            margin-right: 8px;
            padding-top: 60%;
            margin-bottom: 16px;
            float: left;
            position: relative;
            overflow: hidden;
            border-radius: 8px;
        }

            .custom-list-flex .data_tour_default img {
                position: absolute;
                top: 50%;
                left: 50%;
                width: 100%;
                height: 100%;
                transform: translate(-50%, -50%);
                object-fit: cover; /* Để hình lấp đầy không gian mà không bị biến dạng */
                transition: transform 0.3s ease; /* Hiệu ứng chuyển đổi mượt khi phóng to */
            }

            .custom-list-flex .data_tour_default:hover img {
                transform: translate(-50%, -50%) scale(1.1);
            }

            .custom-list-flex .data_tour_default .card-lichtrinh {
                position: absolute;
                width: 100%;
                height: 100%;
                top: 0;
            }

            .custom-list-flex .data_tour_default:first-of-type {
                width: calc(50% - 16px);
                margin-left: 8px;
                margin-right: 8px;
                padding-top: 60%;
                margin-bottom: 16px;
                float: left;
                position: relative;
                overflow: hidden;
                border-radius: 8px;
            }

                .custom-list-flex .data_tour_default:first-of-type img {
                    position: absolute;
                    top: 50%;
                    left: 50%;
                    width: 100%;
                    height: 100%;
                    transform: translate(-50%, -50%);
                    object-fit: cover; /* Để hình lấp đầy không gian mà không bị biến dạng */
                    transition: transform 0.3s ease; /* Hiệu ứng chuyển đổi mượt khi phóng to */
                }

                .custom-list-flex .data_tour_default:first-of-type:hover img {
                    transform: translate(-50%, -50%) scale(1.1);
                }

        .custom-list-flex .info_title {
            position: absolute;
            bottom: 0;
            margin-bottom: 0;
        }

    .margin-bottom-0 {
        position: absolute;
        bottom: 10px;
    }

    .canh-trai {
        width: 100%;
        float: none;
    }

    .book_tour_home .book_tour_home_href {
        top: 45% !important;
    }

    .home-news {
        padding: 64px;
        padding-bottom: 16px;
        margin-bottom: 0;
    }

        .home-news .new-style-box:last-of-type {
            margin-bottom: 0;
        }

    .new-style-box {
        width: 100%;
        padding-top: 70%;
        margin-bottom: 32px;
    }

    .luutru-section .list-flex .data_tour_default:last-of-type {
        display: none;
    }

    .xemthem {
        margin-bottom: 32px;
    }
}

@media screen and (max-width: 991px) {
    .book_tour_des {
        display: -webkit-box; /* Sử dụng flexbox đặc biệt */
        -webkit-box-orient: vertical; /* Thiết lập hướng dọc */
        overflow: hidden; /* Ẩn phần nội dung thừa */
        text-overflow: ellipsis; /* Hiển thị "..." nếu bị cắt */
        -webkit-line-clamp: 2; /* Giới hạn số dòng hiển thị */
        max-height: 3em; /* Đặt chiều cao tối đa tương ứng số dòng */
        line-height: 1.5em; /* Điều chỉnh khoảng cách giữa các dòng */
    }
}
@media screen and (min-width: 768px) and (max-width: 991px) {
    #menu-home #m-menubar {
        padding-left: 11rem !important;
    }
    .custom-li {
        right: 83px !important;
    }
    #login-system .nav-user {
        width: 83px !important;
    }
}

