/*
========================================
General Menu
========================================
*/

.snm-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.snm-menu li {
    position: relative;
}

.snm-menu a {
    display: block;
    text-decoration: none;
    transition: 0.3s ease;
}

/*
========================================
Default Menu
========================================
*/

.snm-menu--default {
    display: flex;
    align-items: center;
    gap: 20px;
}

.snm-menu--default a {
    color: #222;
    padding: 10px 0;
}

/*
========================================
Sidebar Menu
========================================
*/
/* ================================
   SNM Sidebar Menu
================================ */

.snm-sidebar-menu,
.snm-sidebar-menu ul,
.snm-sidebar-menu li,
.snm-sidebar-item,
.snm-sub-menu {
    margin: 0;
    padding: 0;
    list-style: none;
}

.snm-sidebar-menu {
    max-width: 100%;
    background: #1d2f4f;
    font-family: "Poppins", "Arial", sans-serif;
    overflow: hidden;
}

/* ================================
   Parent Accordion Items
================================ */

.snm-menu--sidebar > li > a, .snm-menu--sidebar > li > .snm-accordion-toggle {
    width: 100%;
    min-height: 49px;
    padding: 0 14px 0 10px;
    border: 0;
    outline: 0;
    background: #1d2f4f;
    color: #ffffff;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    font-size: 16px;
    font-weight: 500;
    line-height: 1.2;
    text-align: left;
    border-bottom: 2px solid #ffffff;
}

.snm-sidebar-item.has-children > .snm-accordion-toggle span:first-child {
    display: block;
    color: #ffffff;
}

/* Chevron icon instead of ugly + */
.snm-accordion-icon {
    width: 12px;
    height: 12px;
    position: relative;
    flex: 0 0 12px;
    font-size: 0;
}

.snm-accordion-icon::before {
    content: "";
    position: absolute;
    top: 2px;
    left: 1px;
    width: 7px;
    height: 7px;
    border-right: 2px solid #ffffff;
    border-bottom: 2px solid #ffffff;
    transform: rotate(45deg);
}

/* ================================
   Submenu Area
================================ */

.snm-sub-menu {
    display: none;
    background: #e5e5e5;
    padding: 12px 8px 14px 8px;
}

.snm-sidebar-item.active > .snm-sub-menu,
.snm-sidebar-item.current-menu-parent > .snm-sub-menu,
.snm-sidebar-item.current-menu-ancestor > .snm-sub-menu {
    display: block;
}

/* ================================
   Submenu Items
================================ */

.snm-sub-menu > .snm-sidebar-item {
    background: transparent;
    border-bottom: 1px dotted #8c8c8c;
}

.snm-sub-menu > .snm-sidebar-item:last-child {
    border-bottom: 0;
}

.snm-sub-menu > .snm-sidebar-item > a {
    position: relative;
    min-height: 32px;
    padding: 8px 4px 8px 28px;

    display: flex;
    align-items: center;

    color: #25324a;
    text-decoration: none;

    font-size: 12px;
    font-weight: 400;
    line-height: 1.25;
}

.snm-sub-menu > .snm-sidebar-item > a::before {
    content: '\f138';
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: #192B45 !important;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

.snm-sub-menu > .snm-sidebar-item > a:hover {
    color: #1d2f4f;
    font-weight: 500;
}

/* ================================
   Normal Links If Any Top-Level Item
   Has No Children
================================ */

.snm-sidebar-menu > .snm-sidebar-item:not(.has-children) {
    background: #1d2f4f;
    border-bottom: 2px solid #ffffff;
}

.snm-sidebar-menu > li:not(.has-children) > a {
    width: 100%;
    min-height: 49px;
    padding: 0 14px 0 10px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    background: #1d2f4f;
    color: #ffffff;
    text-decoration: none;

    font-size: 16px;
    font-weight: 500;
    line-height: 1.2;

    box-sizing: border-box;
}

/* ================================
   RTL Support
================================ */

html[dir="rtl"] .snm-sidebar-item.has-children > .snm-accordion-toggle {
    text-align: right;
}

html[dir="rtl"] .snm-sub-menu > .snm-sidebar-item > a {
    padding: 8px 28px 8px 4px;
    text-align: right;
}

html[dir="rtl"] .snm-sub-menu > .snm-sidebar-item > a::before {
    content: '\f137';
    right: 0;
}
/* ========================================
Burger Menu (CLEAN VERSION)
======================================== */

/* Lock scroll when menu open */
body.menu-open {
    overflow: hidden;
    height: 100vh;
    position: fixed;
    width: 100%;
}

/* Wrapper */
.burger-menu {
    position: relative;
    display: none;
}

/* Show only mobile */
@media (max-width: 1024px) {
    .burger-menu {
        display: block;
    }
}

/* Divider */
.burger-menu hr {
    margin: 0 !important;
    border-top: 0.1px solid #e9e9e9;
}

/* Burger icon */
.burger-icon {
    cursor: pointer;
    position: fixed;
    background: #192B45;
    height: 48px;
    left: 0;
    top: 50px;
    z-index: 1100;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease-in-out, left 0.3s ease-in-out;
    transform: translateX(0);
    filter: none !important;
}

.burger-icon.active {
    transform: translateX(80vw);
    filter: none !important;
}

.burger-icon i {
    color: #fff;
    font-size: 28px;
    filter: none !important;
}

/* Slide menu */
/* ✅ ONLY TRANSFORM (no left animation) */
.slide-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 80vw;
    height: 100vh;
    background-color: #333;
    padding: 20px;
    z-index: 1050;

    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;

    filter: none !important;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.slide-menu.active {
    transform: translateX(0);
}

/* Search */
.burger-search-bar {
    margin-bottom: 20px;
    background-color: #fff;
}

.burger-search-bar-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.burger-search-bar-input::placeholder {
    font-size: 14px;
}

/* Menu */
.menu-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-items li {
    margin: 15px 0;
}

.menu-items li a {
    text-decoration: none;
    color: #fff;
    font-size: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 100;
}

/* Submenu */
.menu-items .snm-submenu {
    list-style: none;
    padding: 0 20px;
    display: none;
    margin-top: 10px;
}

.snm-submenu li a {
    font-size: 1.5rem !important;
}

/* Dropdown arrow */
.menu-items .arrow {
    font-size: 14px;
    margin-left: 10px;
    transition: transform 0.3s;
}

.menu-items .arrow.active {
    transform: rotate(180deg);
}

/* Social icons */
.burger-social-icons {
    display: flex;
    gap: 10px;
    margin-top: 70px;
    justify-content: flex-end;
}

html[lang="ar"] .burger-social-icons {
    justify-content: flex-start;
}

.burger-social-icons a {
    color: #fff;
    padding:8px;
}

.burger-social-icons i {
    font-size: 2.5rem;
}

/* Language switcher */
.burger-language-switcher {
    display: flex;
    flex-direction: row;
    margin-top: 40px;
}

.burger-language-switcher a, 
.burger-language-switcher p {
    font-size: 2rem;
    font-weight: 400;
    color: #fff;
}

.burger-language-options {
    display: flex;
}

.language-option {
    margin: 0 15px;
}

/* Page blur */
.filter-active {
    filter: brightness(50%) blur(2px);
}


/*
========================================
No Menu
========================================
*/

.snm-no-menu {
    padding: 20px;
    background: #f5f5f5;
    border-radius: 8px;
}

/*
========================================
Responsive
========================================
*/

@media (min-width: 769px) {

    .snm-burger-wrapper {
        display: none;
    }
}