/* ================================================
   MEGA MENU 2 CỘT — FULL WIDTH BACKGROUND
   ================================================ */

/* --- Dropdown container - Thêm class .mega-menu-custom để tránh xung đột --- */
.mega-menu-custom ul.sub-menu.nav-dropdown.nav-dropdown-default.nav-dropdown-full{
        width: 100vw  !important;
        left: 0 !important;
        max-width: unset !important;
        right: 0 !important;
         transform: translateX(0%) !important;
}
.mega-menu-custom:before,.mega-menu-custom:after{
    display: none;
}
li.mega-menu-custom {
    position: static !important; /* Quan trọng để dropdown full width */
}
span.mega-col-heading {
    display: none !important;
}
/* Đảm bảo chỉ áp dụng cho li có class mega-menu-custom */
.mega-menu-custom > .nav-dropdown,
li.mega-menu-custom > .nav-dropdown {
    display: none;
    position: absolute;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    padding: 0;
    margin: 0;
    border-radius: 0;
    border: none;
    border-top: 1px solid rgba(0, 0, 0, .08);
    box-shadow: 0 12px 40px rgba(0, 0, 0, .12);
    overflow: visible;
    background: transparent; /* Nền trong suốt, để lớp bg bên trong xử lý */
}

/* Hover state */
.mega-menu-custom:hover > .nav-dropdown,
.mega-menu-custom.is-active > .nav-dropdown,
li.mega-menu-custom:hover > .nav-dropdown,
li.mega-menu-custom.is-active > .nav-dropdown {
    display: block;
}

/* --- Full width background wrapper --- */
.mega-menu-custom .mega-fullwidth-bg,
li.mega-menu-custom .mega-fullwidth-bg {
    width: 100vw;
    background: #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, .08);
}

/* --- Container giới hạn nội dung theo Flatsome --- */
.mega-menu-custom .mega-container-inner,
li.mega-menu-custom .mega-container-inner {
    max-width: 1200px; /* Hoặc giá trị container của Flatsome */
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    padding: 0 20px; /* Padding ngang để nội dung không sát mép */
}

/* Nếu Flatsome dùng class .container hoặc .row, có thể kế thừa */
/* Hoặc lấy giá trị từ theme: */
@media (min-width: 850px) {
    .mega-menu-custom .mega-container-inner,
    li.mega-menu-custom .mega-container-inner {
        max-width: 1200px;
        width: 100%;
    }
}

@media (min-width: 1280px) {
    .mega-menu-custom .mega-container-inner,
    li.mega-menu-custom .mega-container-inner {
        max-width: 1200px !important;
    }
}

/* --- CỘT TRÁI --- */
.mega-menu-custom .mega-col-left,
li.mega-menu-custom .mega-col-left {
    width: 40%;
    flex-shrink: 0;
    background: #fff;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0;
}

.mega-menu-custom .mega-cat-eyebrow,
li.mega-menu-custom .mega-cat-eyebrow {
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #9ca3af;
    margin-bottom: 8px;
}

.mega-menu-custom .mega-cat-title,
li.mega-menu-custom .mega-cat-title {
    display: block;
    line-height: 1.3;
    margin-bottom: 8px;
    
/* Đầu tư */
    

/* Tieu de 2_ Manrope_ 40 px_ Semibold */
    font-style: normal;
    font-weight: 600;
    font-size: 40px;
    
/* identical to box height, or 125% */
    color: #1AAA49;
}

.mega-menu-custom .mega-cat-inner,
li.mega-menu-custom .mega-cat-inner {
    text-decoration: none !important;
}

.mega-menu-custom .mega-cat-inner:hover .mega-cat-title,
li.mega-menu-custom .mega-cat-inner:hover .mega-cat-title {
    color: #1ea948;
}

.mega-menu-custom .mega-cat-desc,
li.mega-menu-custom .mega-cat-desc {
    display: block;
    font-size: 13px;
    color: #6b7280;
    line-height: 1.55;
}

/* --- CỘT PHẢI --- */
.mega-menu-custom .mega-col-right,
li.mega-menu-custom .mega-col-right {
    flex: 1;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: #ffffff;
}

.mega-menu-custom .mega-col-heading,
li.mega-menu-custom .mega-col-heading {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #9ca3af;
    padding: 4px 12px 12px;
}

/* Fund link item */
.mega-menu-custom .mega-fund-link,
li.mega-menu-custom .mega-fund-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 10px;
    border-radius: 7px;
    text-decoration: none;
    color: #000000;
    transition: background .2s, transform .12s;
    border: 1px solid transparent;
}

.mega-menu-custom .mega-fund-link:hover,
li.mega-menu-custom .mega-fund-link:hover {
    background: #f6f7ff;
    border-color: #eeecff;
    transform: translateX(4px);
    color: #1aaa49;
}
.mega-menu-custom .mega-fund-link:hover span,
li.mega-menu-custom .mega-fund-link:hover span{
     color: #1aaa49;
     font-weight: bold;
}
/* Icon badge */
.mega-menu-custom .mega-fund-icon,
li.mega-menu-custom .mega-fund-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mega-menu-custom .mega-fund-icon svg,
li.mega-menu-custom .mega-fund-icon svg {
    width: 20px;
    height: 20px;
}

.mega-menu-custom .mega-fund-icon.icon-blue,
li.mega-menu-custom .mega-fund-icon.icon-blue { 
    background: #e6f1fb; 
    color: #185fa5; 
}

.mega-menu-custom .mega-fund-icon.icon-teal,
li.mega-menu-custom .mega-fund-icon.icon-teal { 
    background: #e1f5ee; 
    color: #0f6e56; 
}

.mega-menu-custom .mega-fund-icon.icon-amber,
li.mega-menu-custom .mega-fund-icon.icon-amber { 
    background: #faeeda; 
    color: #854f0b; 
}

.mega-menu-custom .mega-fund-icon.icon-green,
li.mega-menu-custom .mega-fund-icon.icon-green { 
    background: #eaf3de; 
    color: #3b6d11; 
}

.mega-menu-custom .mega-fund-icon.icon-purple,
li.mega-menu-custom .mega-fund-icon.icon-purple { 
    background: #eeedfe; 
    color: #534ab7; 
}

.mega-menu-custom .mega-fund-icon.icon-coral,
li.mega-menu-custom .mega-fund-icon.icon-coral { 
    background: #faece7; 
    color: #993c1d; 
}

.mega-menu-custom .mega-fund-text,
li.mega-menu-custom .mega-fund-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mega-menu-custom .fund-name,
li.mega-menu-custom .fund-name {
    font-size: 16px;
    font-weight: 500;
    color: #000;
    line-height: 1.3;
}

.mega-menu-custom .fund-sub,
li.mega-menu-custom .fund-sub {
    font-size: 11px;
    color: #6b7280;
    line-height: 1.4;
}

/* ---- MOBILE ---- */
@media (max-width: 849px) {
    .mega-menu-custom > .nav-dropdown,
    li.mega-menu-custom > .nav-dropdown {
        position: relative;
        width: 100% !important;
        left: auto !important;
        right: auto !important;
    }
    
    .mega-menu-custom .mega-fullwidth-bg,
    li.mega-menu-custom .mega-fullwidth-bg {
        background: #ffffff;
    }
    
    .mega-menu-custom .mega-container-inner,
    li.mega-menu-custom .mega-container-inner {
        flex-direction: column !important;
        padding: 0 !important;
    }
    
    .mega-menu-custom .mega-col-left,
    li.mega-menu-custom .mega-col-left {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid rgba(0, 0, 0, .06);
        padding: 20px;
    }
    
    .mega-menu-custom .mega-col-right,
    li.mega-menu-custom .mega-col-right {
        padding: 12px 12px;
    }
    
    .mega-menu-custom .mega-fund-link:hover,
    li.mega-menu-custom .mega-fund-link:hover {
        transform: none;
    }
}

/* Optional: Thêm animation cho dropdown */
.mega-menu-custom > .nav-dropdown,
li.mega-menu-custom > .nav-dropdown {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.mega-menu-custom:hover > .nav-dropdown,
.mega-menu-custom.is-active > .nav-dropdown,
li.mega-menu-custom:hover > .nav-dropdown,
li.mega-menu-custom.is-active > .nav-dropdown {
    opacity: 1;
    visibility: visible;
    display: block;
}
span.mega-fund-icon.icon-blue{
    display:    none;
}
a.mega-fund-link.active span span {
    font-weight: bold;
    color: #1aaa49;
}