body .dialog-message {
   width:100%!important;
    margin: 0 auto!important;
}
body .content-popup {
	max-width:90%;
	margin:0 auto;
	background:transparent!important;
}
body .elementor-location-popup {
	 
}
body .elementor-location-popup >div {
	padding-top:70px!important;
}
body .dialog-close-button {
	top:70px!important;
	right:70px!important;
	width:30px;
	height:30px;
}
body .dialog-close-button svg {
	width:25px!important;
	height:25px!important;
}
body .dialog-close-button svg use {
	fill:#fff;
}
/* 1. Khung bao ngoài slider */
.wrap-posts-news {
    padding: 40px 0;
    background-color: #000; /* Nền đen tổng thể */
}
.top-list-post {
	display: flex;
    justify-content: space-between;
    align-items: center;
}
.box-right ul{
	margin:0;
	padding:0;
	display:flex;
	align-items:center;
}
.box-right ul li {
	list-style:none;
	margin-left:15px;
	cursor:pointer;
}
.box-left h2 {
	font-size:36px;
	color:#E5E4E2;
}
/* 2. Cấu trúc danh sách các box */
.inner-list-post {
    display: flex;
    gap: 20px;
    overflow: hidden;
    padding-top: 20px;
}

/* 3. Style cho từng Box (Trạng thái bình thường) */
.inner-list-post .box {
    position: relative;
    flex: 1;
    min-height: 450px;
    background-color: #8b7157; /* Màu nâu đất mặc định */
    background-size: cover;
    background-position: center;
    padding: 40px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border-top: 2px solid #555; /* Đường line xám mặc định */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    overflow: hidden; 
}

/* Lớp phủ để làm mờ ảnh nền khi hover */
.inner-list-post .box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: #8A7156;
    opacity: 1;
    transition: opacity 0.5s ease;
    z-index: 1; 
	-webkit-transition: 0.4s ease-in-out !important;
        -o-transition: 0.4s ease-in-out !important;
        transition: 0.4s ease-in-out !important;
}
.inner-list-post .box::before:hover {
	background:transparent;
}
/* 4. Hiệu ứng khi HOVER */
.inner-list-post .box:hover {
    border-top-color: #ffffff;  
}

.inner-list-post .box:hover::before {
    opacity: 1;
    background-color: rgb(0 0 0 / 40%);
	-webkit-transition: 0.4s ease-in-out !important;
        -o-transition: 0.4s ease-in-out !important;
        transition: 0.4s ease-in-out !important;
}

/* 5. Nội dung bên trong box (Text & Icon) */
.box-content-inner {
    position: relative;
    z-index: 2; /* Luôn nằm trên lớp phủ */
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Icon Play */
.play-btn {
    margin-bottom: auto;
    display: inline-block;
    width: 50px;
    height: 50px;
    transition: transform 0.3s ease;
}

.play-btn:hover {
    transform: scale(1.1);
}

/* Typography */
.text-wrap {
    margin-top: 40px;
}

.description {
    color: #ffffff;
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 30px;
    font-weight: 300;
}

.tag-name {
    color: #c5a47e; /* Màu vàng nhạt cho tag */
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
/*****/
/* 1. Cấu trúc cha (Label) */
.tnp-field.tnp-privacy-field label {
    position: relative;
    padding-left: 30px; /* Chừa chỗ cho ô tròn */
    cursor: pointer;
    display: inline-block;
    min-height: 20px;
    color: #ffffff !important;
    font-size: 14px;
    user-select: none; /* Ngăn bôi đen chữ khi click nhiều lần */
}

/* 2. Ẩn input gốc nhưng vẫn phủ lên toàn bộ label để có thể click */
.tnp-field.tnp-privacy-field label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 100%; /* Phủ kín chiều cao label để click đâu cũng ăn */
    width: 100%;  /* Phủ kín chiều rộng label */
    left: 0;
    top: 0;
    margin: 0;
    z-index: 2;   /* Nằm trên cùng để nhận sự kiện click */
}

/* 3. Tạo ô tròn (Trước khi tích) */
.tnp-field.tnp-privacy-field label::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 18px;
    width: 18px;
    border: 1.5px solid #8A7156;
    border-radius: 50%;
    background-color: transparent;
    z-index: 1; /* Nằm dưới input ẩn */
}

/* 4. Hiệu ứng khi được Tích (Sử dụng bộ chọn :has để nhận biết input bên trong đã check) */
.tnp-field.tnp-privacy-field label:has(input:checked)::before {
    background-color: #8A7156;
}

/* 5. Tạo dấu tích trắng (Khi đã check) */
.tnp-field.tnp-privacy-field label::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 3px;
    width: 5px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    display: none;
    z-index: 1;
}

/* 6. Hiển thị dấu tích khi input bên trong đã check */
.tnp-field.tnp-privacy-field label:has(input:checked)::after {
    display: block;
}

/* 7. Màu sắc cho Link chính sách */
.tnp-field.tnp-privacy-field label a {
    color: #8A7156 !important;
    text-decoration: underline;
    position: relative;
    z-index: 3; /* Đưa link lên trên cùng để click chuyển trang được */
}

/**********/
.custom-badge {
	display: inline-block;
    font-size: 0.75rem;
    padding: 0.5rem 1rem;
    color: #E5E4E2;
    border-radius: 22px;
    letter-spacing: 0.06rem;
	background-color: #B48A71;
	text-transform: uppercase;
	margin-bottom:10px;
}
.custom-sub-line .c-date,
.custom-sub-line .c-tag {
	display:block;
	font-size:12px;
	color: #B48A71;
	margin-bottom:10px; 
}
.custom-sub-line .c-tag {
	text-transform: uppercase;
}
.custom-tags-group {
	display:flex;
	flex-wrap:wrap;
}
.custom-tags-group span {
	margin-right:10px;
}
/*****/
.wrap-slider .elementor-posts--skin-cards {
	display:block!important;
}
.wrap-slider .slick-prev:before,
.wrap-slider .slick-next:before {
	display:none;
}
.wrap-slider .slick-prev,
.wrap-slider .slick-next {
	background: url(../images/arrow-left1.png) center center no-repeat;
    width: 42px;
    height: 42px;
    border-radius: 50%;
	z-index:999;
}
.wrap-slider .slick-next {
	background: url(../images/arrow-right1.png) center center no-repeat;
    width: 42px;
    height: 42px;
    border-radius: 50%;
}
.wrap-slider .slick-prev {
	left:20px;
}
.wrap-slider .slick-next {
	right:20px;
}
/********/
/* 1. Cấu trúc cha - Đảm bảo label không chặn click */
.elementor-field-type-acceptance .elementor-field-option label,
.elementor-field-type-checkbox .elementor-field-option label {
    position: relative;
    padding-left: 30px !important;
    cursor: pointer;
    display: flex !important; /* Dùng flex để dễ căn chỉnh hàng */
    align-items: flex-start;
    color: #ffffff !important;
    font-size: 14px;
    line-height: 20px;
}

/* 2. Sửa lỗi click: Đưa input lên trên cùng và khớp vị trí với ô tròn */
.elementor-field-type-acceptance input[type="checkbox"],
.elementor-field-type-checkbox input[type="checkbox"] {
    position: absolute !important;
    opacity: 0 !important;
    cursor: pointer;
    z-index: 10 !important; /* Số lớn để chắc chắn nằm trên cùng */
    margin: 0 !important;
    left: 0 !important;
    top: 0 !important;
    width: 18px !important; /* Khớp với kích thước ô tròn ::before */
    height: 18px !important;
    pointer-events: all !important; /* Đảm bảo nhận sự kiện click */
}

/* 3. Ô tròn trang trí - Tắt nhận sự kiện click để không cản trở input */
.elementor-field-option label::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 18px;
    width: 18px;
    border: 1.5px solid #8A7156;
    border-radius: 50%;
    background-color: transparent;
    z-index: 1;
    pointer-events: none; /* Quan trọng: Click sẽ xuyên qua thẻ này để vào input */
    transition: all 0.2s ease;
}

/* 4. Trạng thái Checked (Sử dụng selector trực tiếp thay vì :has để tương thích tốt hơn) */
.elementor-field-type-acceptance input[type="checkbox"]:checked + label::before,
.elementor-field-type-checkbox input[type="checkbox"]:checked + label::before {
    background-color: #8A7156;
}

/* 5. Dấu tích trắng */
.elementor-field-option label::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 4px;
    width: 4px;
    height: 7px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    z-index: 2;
    opacity: 0; /* Ẩn thay vì display:none để transition mượt */
    pointer-events: none;
    transition: opacity 0.2s ease;
}

/* 6. Hiển thị dấu tích khi Checked */
.elementor-field-type-acceptance input[type="checkbox"]:checked + label::after,
.elementor-field-type-checkbox input[type="checkbox"]:checked + label::after {
    opacity: 1;
}

/* 7. Ưu tiên Link để có thể click chuyển trang */
.elementor-field-option label a {
    color: #8A7156 !important;
    position: relative;
    z-index: 11; /* Cao hơn cả input để click được link */
} 
.elementor-field-type-select {
	margin-bottom:60px!important;
}
.elementor-field-type-acceptance {
	margin-bottom:20px!important;
}
.elementor-field-type-submit {
	display:flex;
	justify-content:center;
}

#menu-item-5 + .e-n-menu-content .custom-header-mobile {
    background: #242427;
}

@media (max-width: 1024px) {
    /* Trạng thái mặc định: Nằm ngoài màn hình bên phải */
	.e-n-menu-content {
		position: fixed !important;
		margin-top: 110px;
		top: 0 !important;
		right: -100% !important;
		left: auto !important;
		width: 100% !important;
		height: calc(100vh - 135px) !important;
		background-color: #8a7156 !important;
		z-index: 999999 !important;
		display: block !important;
		visibility: hidden !important;
		overflow-y: auto !important;
		-webkit-transition: 0.4s ease-in-out !important;
		-o-transition: 0.4s ease-in-out !important;
		transition: 0.4s ease-in-out !important;
	}

    /* Trạng thái khi Click: Trượt vào màn hình */
    .e-n-menu-content.e-active,
.e-n-menu-content.active	{
        right: 0 !important; /* Kéo về vị trí hiển thị */
        visibility: visible !important;
        
        /* Đảm bảo transition vẫn áp dụng khi thêm class active */
        -webkit-transition: 0.4s ease-in-out !important;
        -o-transition: 0.4s ease-in-out !important;
        transition: 0.4s ease-in-out !important;
    } 
	.e-n-menu-content.e-active .e-child {
		display:block!important;
	}
	
    /* Định dạng Header Tầng 2 & 3 giống ảnh mẫu */
    .custom-header-mobile {
        padding: 10px 20px 20px 20px;
        color: #ffffff;
        background-color: #8a7156;
    }
	.btn-back-inner-tab {
		padding-left:10px;
	}
    .custom-header-mobile span,
	.btn-back-inner-tab	{
        font-size: 14px;
        cursor: pointer;
        display: block;
        margin-bottom: 8px;
        opacity: 0.8;
		color:#fff;
    }

    .custom-header-mobile h2 {
        font-size: 28px;
        margin: 0;
        font-weight: 500;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    /* Ẩn các phần tử mặc định không cần thiết của Elementor */
    .e-n-menu-content .e-n-menu-dropdown-icon,
    .e-n-menu-content > .e-con-inner > .e-n-menu-heading {
        display: none !important;
    }
	
	/* Ẩn vùng chứa nội dung mặc định */
    .e-n-menu .e-n-tabs-content >div {
        display: none!important; 
    } 
	.e-n-menu .e-n-tabs-content >div.e-active,
	.e-n-menu .e-n-tabs.e-activated {
		display:block!important;
	}
	

    /* Định dạng từng khối nội dung để sẵn sàng trượt */
    .e-n-menu .e-n-tabs-content > .e-child {
        position: fixed !important;
		margin-top: 110px;
        top: 0px !important; /* Dưới Header của bạn */
        right: -100% !important; /* Nằm ngoài bên phải */
        width: 100% !important;
        height: calc(100vh - 110px) !important;
        background: #8a7156 !important;
        display: block !important;
        z-index: 2000;
		overflow-y: auto;
        -webkit-transition: 0.4s ease-in-out !important;
        -o-transition: 0.4s ease-in-out !important;
        transition: 0.4s ease-in-out !important;
    }
	.e-n-menu .e-n-tabs-content >.e-child.e-active {
		right: 0% !important; 
		-webkit-transition: 0.4s ease-in-out !important;
        -o-transition: 0.4s ease-in-out !important;
        transition: 0.4s ease-in-out !important;
	} 
	.e-n-menu .e-n-tabs-content.e-active {
		display:none!important;  
	}

}

@media (max-width: 599px) {
	.inner-list-post .slick-list {
		padding-left: 0 !important;
	}
}