/* Ẩn banner-menu mặc định */
.banner-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 9999;
    width: 100%;
    max-width: 100vw;
    margin-top: 0;
    background-color: #fff; /* Đảm bảo menu có background */
}

/* Hiển thị banner-menu khi có class active */
.banner-menu.active {
    display: block;
}

/* Đảm bảo main-menu-btn có position relative để banner-menu có thể định vị tương đối */
.main-menu-btn {
    position: relative;
    z-index: 10000;
}

/* Đảm bảo header và menu luôn ở trên overlay */
header .elementor-container,
header .elementor-row {
    position: relative;
    z-index: 10000;
}

/* Header mặc định - không fixed khi ở đầu trang */
#masthead,
.site-header,
.elementor-location-header,
.elementor-section.elementor-location-header,
header#masthead {
	position: relative;
	transition: all 0.3s ease;
	z-index: 999;
}

/* Header fixed khi scroll xuống - chỉ áp dụng khi có class header-fixed */
#masthead.header-fixed,
.site-header.header-fixed,
.elementor-location-header.header-fixed,
.elementor-section.elementor-location-header.header-fixed,
header#masthead.header-fixed {
	box-shadow: 0 2px 5px #252A3625 !important;
	position: fixed !important;
	top: 0 !important;
	left: 0 !important;
	right: 0 !important;
	transition: all 0.3s ease !important;
	z-index: 999 !important;
}

/* Overlay màn hình khi menu hiển thị */
.banner-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Hiển thị overlay khi menu active */
.banner-menu-overlay.active {
    display: block;
    opacity: 1;
}

.button-menu-parent .elementor-button {
    text-align: start;
}

.button-menu-child .elementor-button {
    text-align: start;
}

/* Responsive: trên mobile có thể cần điều chỉnh */
@media (max-width: 768px) {
    .banner-menu {
        width: 100vw;
        left: 0;
        right: 0;
    }
}
