/* ========== CƠ BẢN ========== */
.main-menu-pc {
    position: relative;
}

.main-menu-pc .menu-level-1 {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 30px;
    align-items: center;
}

.main-menu-pc .menu-item-lv1 {
    position: relative;
}
.stuck .main-menu-pc .menu-popup {
    top: 150px;
}
/* ========== POPUP TOÀN BỘ ========== */
.main-menu-pc .menu-popup {
    position: fixed;
    left: 50%;
    top: 150px;
    transform: translateX(-50%);
    width: 70vw;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    display: none;
    z-index: 999;
    margin-top: 85px;
    border: 2px solid #2c3e50;
}

/* ========== HIỂN THỊ POPUP KHI HOVER ========== */
/* .main-menu-pc .menu-item-lv1:hover>.menu-popup {
    display: block;
} */

/* ========== ARROW TRỎ XUỐNG MENU ========== */
.main-menu-pc .menu-item-lv1:hover::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -8px;
    transform: translateX(-50%);
    border-width: 8px;
    border-style: solid;
    border-color: transparent transparent #fff transparent;
    z-index: 1000;
}

/* ========== BỐ CỤC NỘI DUNG POPUP ========== */
.main-menu-pc .menu-popup-inner {
    display: flex;
    gap: 24px;
    padding: 18px 24px;
    align-items: flex-start;
    margin-left: 0 !important;
}

/* ========== CỘT TRÁI (15%) ========== */
.main-menu-pc .menu-left {
    flex: 0 0 20%;
    max-height: 215px;
    overflow-y: auto;
    overflow-x: hidden;
}


/* ===== Chrome / Edge / Safari ===== */
.main-menu-pc .menu-left::-webkit-scrollbar {
    width: 6px;               /* nhỏ lại */
}

.main-menu-pc .menu-left::-webkit-scrollbar-track {
    background: transparent;  /* nền */
}

.main-menu-pc .menu-left::-webkit-scrollbar-thumb {
    background-color: #2c3e50;
    border-radius: 10px;
}

.main-menu-pc .menu-left::-webkit-scrollbar-thumb:hover {
    background-color: #1f2f3a;
}

/* ===== Firefox ===== */
/* .main-menu-pc .menu-left {
    scrollbar-width: thin;            
    scrollbar-color: #2c3e50 transparent;
} */

.main-menu-pc .menu-left .menu-level-2 {
    list-style: none;
    margin: 0;
    padding: 0;
    display: block;
}

.main-menu-pc .menu-left .menu-level-2 .menu-item-lv2 {
    margin-bottom: 8px;
    position: relative;
    text-wrap: nowrap;
}

.main-menu-pc .menu-left .menu-level-2 .menu-item-lv2 .menu-lv2-link {
    display: block;
    padding: 10px 20px !important;
    border-radius: 4px;
    text-decoration: none;
    font-size: 13px;
    color: #333;
    /* box-shadow: 0 1px 3px rgba(255, 197, 223, 0.6),
                0 4px 6px rgba(209, 206, 232, 0.5),
                0 7px 10px rgba(254, 248, 249, 0.8); */
    background: #5c666e;

}

/* ========== MŨI TÊN CHỈ BÊN PHẢI (LV2) ========== */
.main-menu-pc .menu-left .menu-level-2 .menu-item-lv2::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%) translateX(5px);
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-right: 5px solid #fff;
    opacity: 0;
    transition: all 0.25s ease-in-out;
}

/* Khi hover hoặc active thì hiện mũi tên */
.main-menu-pc .menu-left .menu-level-2 .menu-item-lv2:hover::after,
.main-menu-pc .menu-left .menu-level-2 .menu-item-lv2.active::after {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

/* ========== HIỆU ỨNG HOVER + ACTIVE ========== */
.main-menu-pc .menu-left .menu-level-2 .menu-item-lv2:hover .menu-lv2-link,
.main-menu-pc .menu-left .menu-level-2 .menu-item-lv2.active .menu-lv2-link {
    background: #2c3e50;
    color: #0D4E91;
}

/* ========== CỘT PHẢI (80%) ========== */
.main-menu-pc .menu-right {
    flex: 1 1 80%;
    border-left: 1px solid #eee;
    padding-left: 24px;
    min-height: 120px;
}

.main-menu-pc .menu-right-panels .panel {
    display: none;
}

.main-menu-pc .menu-right-panels .panel.active {
    display: block;
}

/* ========== LV3 TITLE + UNDERLINE ========== */
.main-menu-pc .lv3-block {
    margin-bottom: 18px;
}

.main-menu-pc .lv3-title {
    font-weight: 600;
    padding-bottom: 8px;
    border-bottom: 1px solid #e6e6e6;
    margin-bottom: 10px;
}

.main-menu-pc .lv3-title a {
    font-size: 16px;
    color: #0D4E91;
    font-weight: 500;
}

/* ========== LV4 GRID (3 CỘT) ========== */
.main-menu-pc .lv4-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    /* margin-top: 10px; */
    padding: 0 10px;
}

.main-menu-pc .lv4-item a {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    color: #333;
    border-radius: 4px;
    font-size: 11px;
}

/* .main-menu-pc .lv4-item a:hover {
    background: #ffe8f3;
    color: #0D4E91;
} */

/* ========== CANH GIỮA MENU ========== */
.header-bottom>.flex-row>.flex-col>.nav {
    justify-content: center;
}

.main-menu-pc .menu-item-lv1 {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 16px;
    /* font-family: 'Satoshi-Bold' !important; */
}

.main-menu-pc  .lv4-item {
    font-weight: unset !important;
}

#logo img {
    padding-bottom: 0 !important;
}

.main-menu-pc .lv4-item a {
    font-weight: 400;
    border: 2px solid #2c3e50;
    text-align: center;
}



.header-bottom li.active {
    border-bottom: none !important;
}

.main-menu-pc .lv4-item a {
    position: relative;
    display: block;
    padding: 11px 10px;
    text-align: center;
    font-weight: 500;

    background: #fff;
    border: 2px solid #2c3e50;
    border-radius: 6px;

    box-shadow:
        2px 2px 0 #2c3e50,
        5px 5px 0 #dfe6e9;

    transform: translate(0,0);

    transition:
        transform .25s cubic-bezier(.25,.8,.25,1),
        box-shadow .35s cubic-bezier(.22,.61,.36,1);
}

.main-menu-pc .lv4-item a:hover {
    transform: translate(-2px, -2px);

    box-shadow:
        3px 3px 0 #2c3e50,
        7px 7px 0 #dfe6e9;
}

/* ========== OVERLAY TOÀN MÀN HÌNH ========== */
.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 9990;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease;
}

.menu-overlay.overlay-open {
    opacity: 1;
    visibility: visible;
}

/* popup cao hơn overlay */
.main-menu-pc .menu-popup {
    z-index: 10000;
}

.menu-overlay {
    pointer-events: none; /* 👈 then chốt */
}

.main-menu-pc .menu-left::-webkit-scrollbar-thumb {
    border: 2px solid transparent;
    background-clip: content-box;
}


/* ===== Hover + Active cho LV2 (FINAL) ===== */
.main-menu-pc .menu-left .menu-lv2-link {
    background: #5c666e;
    color: #eaeaea;
    border-radius: 6px;

    transition:
        background .25s ease,
        color .25s ease,
        transform .25s cubic-bezier(.25,.8,.25,1);
}

.main-menu-pc .menu-left .menu-item-lv2:hover .menu-lv2-link {
    background: #2c3e50;
    color: #ffffff;
    transform: translateX(4px);
}

.main-menu-pc .menu-left .menu-item-lv2.active .menu-lv2-link {
    background: #2c3e50;
    color: #ffffff;
    transform: translateX(6px);
}

.main-menu-pc .menu-left .menu-item-lv2:hover .menu-lv2-link,
.main-menu-pc .menu-left .menu-item-lv2.active .menu-lv2-link {
    box-shadow: 2px 2px 0 rgba(44,62,80,.35);
}

.main-menu-pc .menu-left .menu-item-lv2::after {
    transition:
        opacity .2s ease,
        transform .25s cubic-bezier(.25,.8,.25,1);
}