/*
Theme Name: Theme Luvista
Theme URI: https://nguyenphudung.com/
Author: Nguyen Phu Dung
Author URI: https://nguyenphudung.com/
Description: Theme Wordpress Luvista
Template: flatsome
Version: 1.0.0
*/

/*************** ADD CUSTOM CSS HERE.   ***************/
#logo {
    width: 50px !important;
}

#footer {
    display: none;
}
/* .is-full-height {
    height: auto;
}
@media (min-width: 850px) {
    .is-full-height {
        height: 100vh !important;
    }
} */

/* Premium Readmore Button Style - FIXED Overlap */
.btn-readmore-premium {
    position: relative;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    /* Static padding is default, hover state swaps it */
    padding:15px 25px 15px 52px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-color) 100%);
    color: #ffffff !important;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    overflow: hidden;
    border: none;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 10px 20px -10px rgba(79, 70, 229, 0.5);
    text-decoration: none;
}

.btn-readmore-premium:hover {
    box-shadow: 0 15px 30px -10px rgba(79, 70, 229, 0.6);
    transform: translateY(-3px);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-color) 100%);
    padding: 15px 52px 15px 25px;
}

.btn-readmore-premium:active {
    transform: translateY(-1px);
}

.btn-readmore-premium .btn-icon {
    position: absolute;
    left: 10px; /* Position to the left by default */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: #ffffff;
    color: var(--primary-color);
    border-radius: 50%;
    transition: all 0.6s cubic-bezier(0.76, 0, 0.24, 1);
    z-index: 2;
}

.btn-readmore-premium .btn-text {
    transition: all 0.6s cubic-bezier(0.76, 0, 0.24, 1);
    position: relative;
    z-index: 2;
    white-space: nowrap;
}


.btn-readmore-premium:hover .btn-icon {
    left: calc(100% - 42px); /* Moves icon to the right side */
}

.btn-readmore-premium:hover .btn-text {
    transform: translateX(0);  /* Subtle nudge to the left */
}

/* Optional: Add a subtle shine effect */
.btn-readmore-premium::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(45deg);
    transition: 0.5s;
    pointer-events: none;
    opacity: 0;
}

.btn-readmore-premium:hover::after {
    opacity: 1;
    transform: rotate(45deg) translate(20%, 20%);
}

/* custom header mega menu */


.off-canvas-center .mfp-content {
    padding-top: 0px;
    max-width: 100%;
}



.ct-header-mega-menu ul {
    display: flex !important;
    flex-wrap: wrap;
    flex-direction: row !important;
    list-style: none;
    margin: 0;
    padding: 20px 0;
    width: 100%;
}

.ct-header-mega-menu ul li {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 12px 10px; 
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    color: #ffffff; 
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    transition: transform 0.3s ease;
    transform-origin: left center;
    cursor: pointer;
}

.ct-header-mega-menu ul li::before {
    content: "\f219";
    font-family: "Font Awesome 7 Free";
    font-weight: 900; 
    margin-right: 10px; 
    font-size: 0.8rem; 
    color: #ffffff;
    transition: transform 0.3s ease;
}

.ct-header-mega-menu ul li a {
    color: inherit !important;
    text-decoration: none;
    position: relative;
    display: inline-flex;
    padding-bottom: 2px;
}

.ct-header-mega-menu ul li a::after,
.ct-header-mega-menu ul li:not(:has(a))::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #ffffff;
    transition: width 0.3s ease-in-out;
}

.ct-header-mega-menu ul li:hover {
    transform: scale(1.08); 
}

.ct-header-mega-menu ul li:hover a::after,
.ct-header-mega-menu ul li:hover::after {
    width: 100%;
}

.ct-header-mega-menu ul li:hover::before {
    transform: rotate(15deg); 
    color: #f1f1f1;
}


.ct-logo-menu img {
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1); 
    transform: scale(0.6); 
    display: inline-block;
    will-change: transform; 
}


/* --- Mobile Responsive --- */
@media (max-width: 767px) {
    .ct-header-mega-menu ul li {
        flex: 0 0 100%;
        max-width: 100%;
        font-size: 1.3rem;
    }
}



.header-button-newsletter {
    display: flex !important;
    align-items: center !important;
    gap: .625rem;
    font-size: 16px !important;
    color: #fff !important;
}

.header-button-newsletter .circle-down {
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid hsla(37, 71%, 69%, 0);
    border-radius: 9999px;
    width: 2.5rem;
    height: 2.5rem;
}

.header-button-newsletter .circle-down svg:first-child {
    height: 1.09375rem;
}

.header-button-newsletter .circle-down .svg-circle-down {
    position: absolute;
    width: 2.5rem;
    height: 2.5rem;
}

.header-button-newsletter:hover .circle-down .svg-circle-down .stop-1, .header-button-newsletter:hover .circle-down .svg-circle-down .stop-2 {
    stop-opacity: 1;
}

.header-button-newsletter:hover {
    transform: scale(1.08); 
}

.ct-override-header .header-bg-color {
    background-color: transparent !important;
}

.ct-override-header .header-wrapper.stuck {
    box-shadow: none;
}

.ct-override-header .logo img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(162deg, #ebba80 -12.55%, #fff 109.45%);
    padding: .41667rem !important;
}


.ct-override-header {
    z-index: 3001;
}

   /* CSS nội bộ để đảm bảo Modal hoạt động đúng */
        .fullscreen-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: #fff;
            z-index: 1999;
            display: flex;
            flex-direction: column;
            align-items: center;
            opacity: 0;
            visibility: hidden;
            transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
            overflow-y: auto;
        }

        #custom-contact-modal {
            z-index: 4000;
        }

        .modal-close-button {
            position: absolute;
            top: 40px;
            right: 40px;
            font-size: 2rem;
            color: #333;
            z-index: 100000;
            cursor: pointer;
            transition: transform 0.3s ease;
        }

        .modal-close-button:hover {
            transform: scale(1.1);
        }

        .modal-inner-block {
            opacity: 0;
            transform: translateY(30px);
            transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.8s ease;
            width: 100%;
        }


        .fullscreen-overlay.is-open {
            opacity: 1;
            visibility: visible;
        }

        .fullscreen-overlay.is-open .modal-inner-block {
            opacity: 1;
            transform: translateY(0);
        
            transition-delay: 0.2s; 
        }

        .overlay-content {
            width: 100%;
        }

        body.modal-open {
            overflow: hidden;
        }

        #menu-toggle-trigger {
            display: inline-flex;
            padding: 10px;
            z-index: 100000;
            position: relative;
            cursor: pointer;
            border-radius: 50%;
            border: 2px solid #fff;
        }

        .hamburger-box {
            width: 30px;
            height: 30px;
            display: inline-block;
            position: relative;
        }

        .hamburger-inner, 
        .hamburger-inner::before, 
        .hamburger-inner::after {
            width: 30px;
            height: 3px;
            background-color: #fff; 
            position: absolute;
            transition: all 0.3s cubic-bezier(0.075, 0.82, 0.165, 1);
            border-radius: 4px;
        }

        .hamburger-inner {
            top: 50%;
            transform: translateY(-50%);
        }

        .hamburger-inner::before {
            content: "";
            top: -10px;
        }

        .hamburger-inner::after {
            content: "";
            bottom: -10px;
        }

        #menu-toggle-trigger.is-active .hamburger-inner {
            background-color: transparent !important; 
        }

        #menu-toggle-trigger.is-active .hamburger-inner::before {
            top: 0;
            transform: rotate(45deg);
        }

        #menu-toggle-trigger.is-active .hamburger-inner::after {
            bottom: 0;
            transform: rotate(-45deg);
        }


/* Custom UX Builder - Property Features */

.property-feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.property-feature-list li {
    display: flex;
    align-items: center;
    padding: 15px 0;
    position: relative; /* Bắt buộc để line chạy theo item này */
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Tạo đường line ẩn mặc định */
.property-feature-list li::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0; /* Bắt đầu với độ dài bằng 0 */
    height: 1px;
    background-color: #ffffff; /* Màu trắng khi chạy ra */
    transition: width 0.4s ease; /* Hiệu ứng chạy từ trái sang phải */
}

/* Border mặc định khi chưa hover (mờ) */
.property-feature-list li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Khi hover: đường line chạy dài ra 100% */
.property-feature-list li:hover::after {
    width: 100%;
}

/* Tùy chỉnh Icon hình tròn màu trắng */
.property-feature-list li i {
    width: 35px;
    height: 35px;
    margin-right: 15px;
    color: #ffffff;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ffffff;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 2;
}

/* Tùy chỉnh văn bản */
.property-feature-list li span {
    font-size: 1rem;
    color: #ffffff;
    font-weight: 400;
    transition: all 0.3s ease;
}

/* Hiệu ứng tổng thể khi hover vào li */
.property-feature-list li:hover {
    padding-left: 8px; /* Nhích nhẹ sang phải cho tinh tế */
}

.property-feature-list li:hover i {
    background-color: #ffffff;
    color: #000000; /* Icon đổi màu nền trắng chữ đen */
    transform: rotate(360deg); /* Thêm hiệu ứng xoay icon cho "ngầu" */
}









/* Bài viết chính */
.featured-img-border img {
    border: 2px solid #ffffff;
    border-radius: 4px;
    width: 100%;
    aspect-ratio: 16 / 9; /* Tỉ lệ vàng cho ảnh lớn */
    object-fit: cover;
}

/* Bài viết phụ - Chỉnh Full Width cột */
.full-width-img {
    width: 100%; /* Đảm bảo chiếm hết 100% chiều rộng của cột medium-6 */
    margin-bottom: 20px;
}

.full-width-img img {
    width: 100%;
    aspect-ratio: 16 / 10; /* Tỉ lệ ảnh phụ hơi khác một chút để tạo sự cân bằng */
    object-fit: cover;
    border-radius: 4px;
    display: block;
}

/* Hiệu ứng gạch chân chạy dưới Title */
.custom-post-title a {
    color: #ffffff;
    text-decoration: none;
    position: relative;
    padding-bottom: 5px;
    display: inline-block;
}

.custom-post-title a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #ffffff;
    transition: width 0.4s ease-in-out;
}

/* Hover toàn khối */

.custom-post-featured:hover .custom-post-title a::after,
.custom-post-item-sub:hover .custom-post-title a::after {
    width: 100%;
}

/* Layout Meta bài viết phụ */
.post-meta-flex {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.custom-post-date-v2 {
    display: flex;
    flex-direction: column;
    line-height: 1;
    margin-bottom: 15px;
    min-width: 90px;
    width: 90px;
    height: 90px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 13px 4px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    margin-right: 16px;
}

/* Tinh chỉnh size chữ ngày tháng */
.custom-post-date-v2 {
    color: var(--primary-color);
}

.custom-post-date-v2 .date-big {
    font-size: 2.2rem;
    font-weight: 800;
}

.custom-post-date-v2.is-small .date-big {
    font-size: 1.8rem;
}


.comp-signature {
    opacity: .6;
    pointer-events: none;
}

.comp-signature {
    color: #fff2da;
    font-size: 8.333333333333334rem;
    font-family: Mr Dafoe, cursive;
}

@media (min-width: 1200px) {
    .comp-signature {
        font-size: 15.208333333333334rem;
        line-height: 1.16781;
    }
}

.location-2-section .comp-signature {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: .1;
    z-index: -1;
    color: #fff2da;
}


/* form contact */

.form-lien-he {
    max-width: 500px;
    margin: 0 auto;
    padding: 60px 30px 0px 30px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}


.form-lien-he label {
    display: flex;
    align-items: center; 
    position: relative;
    margin-bottom: 20px;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    background-color: #f9f9f9;
    transition: all 0.3s ease;
}


.form-lien-he label i {
    padding: 0 15px;
    color: #999;
    min-width: 20px;
    text-align: center;
    transition: all 0.3s ease;
}


.form-lien-he input[type="text"],
.form-lien-he input[type="email"],
.form-lien-he input[type="tel"],
.form-lien-he textarea {
    border: none !important;
    background: transparent !important;
    padding: 12px 15px 12px 10px;
    font-size: 15px;
    color: #333;
    outline: none;
    margin: 0px;
    box-sizing: border-box;
    box-shadow: none;
}


.form-lien-he label:has(textarea) {
    align-items: flex-start;
}
.form-lien-he label:has(textarea) i {
    padding-top: 15px;
}
.form-lien-he textarea {
    height: 120px;
    resize: vertical;
}


.form-lien-he label:focus-within {
    background-color: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.1);
}

.form-lien-he label:focus-within i {
    color: var(--primary-color);
}

.submit-send-contact input[type="submit"] {
    width: 100%;
    padding: 15px 40px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
    

    background: linear-gradient(to right, var(--primary-color) 50%, var(--fs-color-secondary) 50%);
    background-size: 200% 100%;
    background-position: right bottom;
    
    transition: all 0.5s ease-out;
}

.submit-send-contact input[type="submit"]:hover {
    background-position: left bottom; 
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
    transform: translateY(-2px);
}


.wpcf7-form-control-wrap {
    width: 100%;
}


.about-1-section:before {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    background-image: url('asset/images/about-1-bg.png');
    background-position: 50%;
    background-size: cover;
    background-repeat: no-repeat;
    width: 100%;
    height: 100%;
    pointer-events: none;
    content: "";
}

.about-2-section:before {
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    background: linear-gradient(0deg, transparent, rgba(0, 0, 0, .2)), linear-gradient(270deg, transparent 59.5%, rgba(0, 0, 0, .38) 93.12%, rgba(0, 0, 0, .4));
    width: 100%;
    height: 100%;
    pointer-events: none;
    content: "";
}