/* Container for dropdown positioning */
.es-menu-item {
    position: relative; /* This makes the .es-megamenu position correctly */
}

/* Dropdown panel */
.es-megamenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: none;
    box-sizing: border-box;
    font-family: sans-serif;
    z-index: 1000;
    display: none; /* Hidden by default */
}

@media(min-width: 1350px){
    .es-megamenu {
        min-width: 1000px;
    }
}

@media(min-width: 990px) and (max-width: 1349px) {
    .es-megamenu {
        min-width: 800px;
    }
}

@media(min-width: 768px) and (max-width: 989px) {
    .es-megamenu {
        min-width: 500px;
    }
}

/* Optional: show on hover of wrapper */
.es-menu-item:hover .es-megamenu {
    display: block;
}

.es-megamenu-inner {
    display: flex;
}

/* Left tabs */
.es-megamenu-tabs {
    flex: 0 0 200px;
    display: flex;
    flex-direction: column;
    background: #ee2424;
    min-height: 250px;
    max-height:100%;
    overflow-y: auto;
}

.es-megamenu-tab {
    padding: 15px 20px 15px 0;
    margin: 0;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s;
    color: white;
    font-size: 16px;
    text-align: center;
    font-weight: bold;
}

.es-megamenu-tab:hover,
.es-megamenu-tab.active {
    background: #c61f1f;
    font-weight: bolder;
}

.es-megamenu-tab a, .es-megamenu-tab strong {
    color: unset !important;
    line-height: unset !important;
    padding: unset !important;
    margin-bottom: unset !important;
}

/* Right content */
.es-megamenu-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 250px;
    overflow-y: auto;
    padding: 20px;
}

.es-tab-content {
    display: none;
    flex-wrap: wrap;
    gap: 20px;
}

.es-tab-content.active {
    display: flex;
}

.es-tab-content .column {
    flex: 1 1 100%;
    padding: 20px;
}

@media(min-width: 1100px){
    .es-tab-content .column {
        column-count: 2;
    }
}

.es-tab-link {
    margin: 0;
    padding: 0;
}

.es-tab-link a {
    color: #333 !important;
    text-decoration: none;
    transition: color 0.2s;
    line-height: 20px !important;
    font-size: 14px;
}

.es-tab-link a:hover {
    color: #ee2424 !important;
}
