.megamenu_template_2 {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: var(--margin-2);
    align-items: center;
    font-size: 14px;
}

.megamenu_template_2 .menu_main_content {
    direction: rtl;
    position: absolute;
    top: 100px;
    right: 0;
    display: none;
    width: 100%;
    height: 470px;
    padding: var(--margin) 0;
    border-top: 2px solid var(--box_bg_2);
    line-height: 26px;
    background: var(--box_bg_0);
    box-shadow: 0 16px 16px 0 rgba(24, 32, 8, .08);
    list-style: none;
    overflow: hidden;
    z-index: 10;
}

.megamenu_template_2 .sub_menu_1 {
    height: 100%;
    column-gap: var(--margin);
    overflow: hidden;
}

.megamenu_template_2 .sub_menu_1 > li {
    break-inside: avoid;
    margin-bottom: var(--margin);
    display: block;
}

.megamenu_template_2 > li {
    min-height: 100px;
    display: flex;
    align-items: center;
}

.megamenu_template_2 > li > .nav_item {
    border-radius: 12px;
    color: var(--primary_2);
    background: var(--box_bg_2);
    display: flex;
    flex-direction: row;
}

.megamenu_template_2 > li > .nav_item:hover {
    color: var(--text-color-light-1);
    background: var(--primary_1);
}

.megamenu_template_2 .sub_menu_1 > li > .nav_item {
    flex-direction: row;
    justify-content: start;
    padding: 0;
    font-size: 18px;
}

.megamenu_template_2 .nav_item {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    gap: var(--margin-2);
    line-height: 100%;
    height: auto;
    min-height: 5rem;
    background: unset;
    border: unset;
    transition: all 0.2s ease-in-out 0s;
    text-shadow: unset;
    color: var(--text-color-dark-1);
    font-weight: bold;
    font-size: 16px;
    padding: 0 var(--margin-1);
    border-radius: 1rem;
    position: relative;
}

.megamenu_template_2 .sub_menu_2  {
    display: flex;
    flex-direction: column;
}

.megamenu_template_2 .sub_menu_2 > li {
    position: relative;
    padding-right: var(--margin);
}

.megamenu_template_2 .sub_menu_2 > li a:hover {
    color: var(--primary_2);
    font-weight: bold;
    -webkit-transition: all 0.2s ease-in-out 0s;
}

.megamenu_template_2 .sub_menu_2 > li.has_icon {
    padding-right: 0;
}

.megamenu_template_2 .sub_menu_2 > li:not(.has_icon):after {
    content: '';
    display: inline-block;
    position: absolute;
    right: 0;
    top: calc(50% - 4px);
    width: 8px;
    height: 8px;
    background: var(--primary_1);
    border-radius: 2px;
}

.megamenu_template_2 .sub_menu_1 > li:first-child > ul {
  opacity: 1;
  visibility: visible;
}

.megamenu_template_2 .nav_item img {
    height: 36px;
    width: 36px;
    vertical-align: middle;
    object-fit: contain;
    opacity: 0.7;
    transition: all 0.2s ease-in-out 0s;
}

.megamenu_template_2 > li:hover > .menu_main_content {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.megamenu_template_2 .menu_main_content > li {
    flex: 1 1 45%;
}

.megamenu_template_2 .menu_main_content > li > a {
    display: flex;
    align-items: center;
    font-weight: 600;
    text-decoration: none;
    color: #333;
    margin-bottom: 8px;
}

.megamenu_template_2 .menu_main_content > li > a:hover {
    color: #007bff;
}

.megamenu_template_2 .sub_menu_2 {
    list-style: none;
    padding-right: var(--margin);
}

.megamenu_template_2 .sub_menu_2 > li {
    
}

.megamenu_template_2 .sub_menu_2 > li > a {
    display: flex;
    align-items: center;
    font-weight: normal;
}

.megamenu_template_2 .sub_menu_2 > li > a:hover {
    color: #007bff;
}

.megamenu_template_2 .menu_main_content img,
.megamenu_template_2 .sub_menu_2 img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 5px;
    margin-left: 10px;
}

.megamenu_template_2 svg {
    width: 24px;
    height: 24px;
}