.megamenu_template_3 {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: var(--margin-2);
    align-items: center;
    font-size: 14px;
}

.megamenu_template_3 .menu_wrapper {
    direction: rtl;
    position: absolute;
    top: 140px;
    display: none;
    width: 100%;
    height: 480px;
    list-style: none;
    overflow: hidden;
    z-index: 10;
    background: var(--box_bg_0);
    right: 0;
    border-top: 4px solid;
}
.megamenu_template_3 .content {
    width: 1320px;
    height: 100%;
    line-height: 26px;
    position: relative;
    margin: 0 auto;
    background-color: var(--box_bg_3);
    border-radius: 0 0 var(--border-radius_2) var(--border-radius_2);
    overflow: hidden;
}

.megamenu_template_3 .sub_menu_1 {
    position: absolute;
    right: 0;
    width: 250px;
    height: 100%;
    padding: 0;
    border-left: 10px solid var(--border_color_3);
    background: var(--primary_1);
}
.megamenu_template_3 .sub_menu_1 > li {
    display: block;
    break-inside: avoid;
}

.megamenu_template_3 .sub_menu_1 > li > a:before {
    position: absolute;
    top: 36%;
    left: 10px;
    content: "";
    width: 16px;
    height: 16px;
    background-image: var(--svg_arrow_left_light);
    background-repeat: no-repeat;
}

.megamenu_template_3 .sub_menu_1 > li > a {
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--margin-2);
    width: 100%;
    padding: 15px var(--margin);
    font-size: var(--text-size-5);
    color: var(--text-color-light-1);
    border-bottom: 1px solid #10273b;
}

.megamenu_template_3 .sub_menu_1 > * > a:hover {
    background: var(--primary_2);
}

.megamenu_template_3 > li {
    display: flex;
    align-items: center;
    min-height: 100px;
    padding: var(--margin) 0;
    z-index: 1000;
    margin-right: 2rem;
}

.megamenu_template_3 .nav_item {
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: var(--margin-2);
    width: 190px;
    height: 5rem;
    line-height: 100%;
    padding: 0 var(--margin-2);
    border: 1px solid #ededed;
    font-size: 16px;
    font-weight: bold;
    border-radius: var(--border-radius_2);
    background: unset;
    color: var(--text-color-light-1);
    transition: all 0.2s ease-in-out 0s;
}

.megamenu_template_3 .menu_main_content > ul {
    display: flex;
    flex-wrap: wrap;          
    align-content: flex-start;
    width: 100%;
    height: 100%;
    gap: var(--margin);
    list-style: none;
    margin: 0;
    padding: 0;
}

.megamenu_template_3 .menu_main_content .item_level_2.col-1 {
    flex: 1 1 calc(8.33333333% - var(--margin));
    
    max-width: 8.33333333%;
}

.megamenu_template_3 .menu_main_content .item_level_2.col-2 {
    flex: 1 1 calc(8.16.66666667% - var(--margin));
    
    max-width: 16.66666667%;
}

.megamenu_template_3 .menu_main_content .item_level_2.col-3 {
    flex: 1 1 calc(25% - var(--margin));
    
    max-width: 25%;
}

.megamenu_template_3 .menu_main_content .item_level_2.col-4 {
    flex: 1 1 calc(33.33333333% - var(--margin));
    
    max-width: 33.33333333%;
}

.megamenu_template_3 .menu_main_content .item_level_2.col-5 {
    flex: 1 1 calc(41.66666667% - var(--margin));
    
    max-width: 41.66666667%;
}

.megamenu_template_3 .menu_main_content .item_level_2.col-6 {
    flex: 1 1 calc(50% - var(--margin));
    
    max-width: 50%;
}

.megamenu_template_3 .menu_main_content .item_level_2.col-7 {
    flex: 1 1 calc(58.33333333% - var(--margin));
    
    max-width: 58.33333333%;
}

.megamenu_template_3 .menu_main_content .item_level_2.col-8 {
    flex: 1 1 calc(66.66666667% - var(--margin));
    
    max-width: 66.66666667%;
}

.megamenu_template_3 .menu_main_content .item_level_2.col-9 {
    flex: 1 1 calc(75% - var(--margin));
    
    max-width: 75%;
}

.megamenu_template_3 .menu_main_content .item_level_2.col-10 {
    flex: 1 1 calc(83.33333333% - var(--margin));
    
    max-width: 83.33333333%;
}

.megamenu_template_3 .menu_main_content .item_level_2.col-11 {
    flex: 1 1 calc(91.66666667% - var(--margin));
    
    max-width: 91.66666667%;
}

.megamenu_template_3 .menu_main_content .item_level_2.col-12 {
    flex: 1 1 calc(100% - var(--margin));
    max-width: 100%;
}

.megamenu_template_3 .menu_main_content .item_level_2.col-12 .sub_menu_3.category_submenu {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    width: 100%;
    height: 100%;
    gap: var(--margin);
    list-style: none;
    margin: 0;
    padding: 0;
}
.megamenu_template_3 .menu_main_content .item_level_2.col-12 .sub_menu_3.category_submenu > li {
    flex: 1 1 calc(25% - var(--margin));
    max-width: 25%;    
}

.megamenu_template_3 .menu_main_content .nav_title_2 {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-bottom: var(--margin-3);
    font-size: var(--h4);
    font-weight: bold;
    color: var(--primary_2);
}

.megamenu_template_3 .menu_main_content .nav_title_2 img {
    width: 30px;
    height: 30px;
}

.megamenu_template_3 .menu_main_content .nav_title_2:before {
    position: absolute;
    top: 4px;
    left: -20px;
    content: "";
    width: 16px;
    height: 16px;
    background-image: var(--svg_arrow_left_dark);
    background-repeat: no-repeat;
}

.megamenu_template_3 .menu_main_content a {
    display: flex;
    align-items: center;
    font-size: var(--text-size-8);
    color: var(--text-color-dark-1);
    width: fit-content;
}

.megamenu_template_3 .menu_main_content a:hover {
    font-weight: bold;
}

.megamenu_template_3 .menu_main_content > li a:hover {
    color: var(--primary_2);
    font-weight: bold;
    -webkit-transition: all 0.2s ease-in-out 0s;
}

.megamenu_template_3 .menu_main_content > li.has_icon {
    padding-right: 0;
}


.megamenu_template_3 .sub_menu_1 > li:first-child > ul {
  opacity: 1;
  visibility: visible;
}

.megamenu_template_3 > li:hover > .menu_wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.megamenu_template_3 .menu_main_content {
    position: absolute;
    top: 0;
    right: 100%;
    display: none;
    width: 70vw;
    height: 100%;
    padding: var(--margin);
}

.megamenu_template_3 .menu_main_content .accordion-button::after {
    display: block;
    flex-shrink: 0;
    width: 1.4rem;
    height: 1.4rem;
    margin-right: auto;
    content: "";
    background-repeat: no-repeat;
    background-size: 1.4rem;
    transition: transform .2s ease-in-out;
    background-color: var(--primary_2);
    border-radius: 3px; 
}

.megamenu_template_3 .accordion-button::after {
    background-image: var(--svg_minus_light);
}

.megamenu_template_3 .accordion-button:not(.collapsed)::after {
    background-image: var(--svg_minus_light);
}

.menu_category_item_accordion .accordion-collapse {
    padding-bottom: var(--margin-3);
}

.megamenu_template_3 .menu_wrapper > li {
    flex: 1 1 45%;
}

.megamenu_template_3 .menu_wrapper > li > a {
    display: flex;
    align-items: center;
    font-weight: 600;
    text-decoration: none;
    color: #333;
    margin-bottom: 8px;
}

.megamenu_template_3 .menu_wrapper > li > a:hover {
    color: #007bff;
}

.sub_menu_1 > li:hover .megamenu_template_3 .menu_main_content{
      display: flex;
}
.megamenu_template_3 .menu_main_content > li > a {
    display: flex;
    align-items: center;
    font-weight: normal;
}

.megamenu_template_3 .menu_main_content > li > a:hover {
    color: #007bff;
}

.megamenu_template_3 .menu_main_content > ul > li li {
    margin-bottom: 5px;
    line-height: 20px;
}

.megamenu_template_3 .menu_wrapper img,
.megamenu_template_3 .menu_main_content img {
    width: 26px;
    height: 26px;
    object-fit: cover;
    border-radius: 5px;
    margin-left: 10px;
}

.megamenu_template_3 svg {
    width: 24px;
    height: 24px;
}

.menu_main_content .item_level_2 ul {
    padding-right: 15px;
    list-style: disc;
    color: var(--text-color-dark-1);
}

.menu_main_content.show {
    display: flex;
    flex-direction: row;
}
.nav_title_1.show {
    
    background: var(--primary_2);
}
.megamenu_template_3 .sub_menu_1 > li:last-child > a{
    border-bottom:0;
}
.header_middle:has(.megamenu_template_3 > li:hover) {
      border-bottom: none !important; 
}