.site-header{
position:relative;
z-index:9999;
width:100%;
background:#fff;
font-family:'Rubik',sans-serif;
}

.container{
max-width:1280px;
margin:0 auto;
padding:0 20px;
}


/* TOPBAR */
.topbar {
    background: #1f1f1f;
    border-top: 1px solid #b7d6de;
    border-bottom: 8px solid #ffffff;
    color: #fff;
    font-size: 16px;
}

.topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 58px;
    gap: 20px;
}

.topbar-left,
.topbar-right {
    display: flex;
    align-items: center;
    gap: 28px;
}

.topbar a,
.topbar button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    padding: 0;
}

.topbar a:hover,
.topbar button:hover {
    color: #d9d9d9;
}

.topbar ion-icon {
    font-size: 19px;
}

.topbar-search-btn {
    line-height: 1;
}

.topbar-lang-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
    width: auto;
    overflow: visible;
}

.topbar-lang-current {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 20px;
    transition: 0.25s ease;
}

.topbar-lang-current:hover {
    background: rgba(255,255,255,0.08);
}

.lang-flag-img {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    flex-shrink: 0;
    border: 1px solid rgba(255,255,255,0.25);
}

.lang-arrow {
    font-size: 14px;
    transition: transform 0.25s ease;
}

.topbar-lang-dropdown.open .lang-arrow {
    transform: rotate(180deg);
}

.topbar-lang-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: auto;
    min-width: 140px;
    background: #1f1f1f;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 12px 28px rgba(0,0,0,0.22);
    display: none;
    z-index: 10000;
}

.topbar-lang-dropdown.open .topbar-lang-menu {
    display: block !important;
}

.topbar-lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    padding: 9px 10px;
    border-radius: 8px;
    transition: 0.2s ease;
}

.topbar-lang-option:hover {
    background: rgba(255,255,255,0.08);
    color: #fff;
}

.topbar-lang-option.active {
    background: rgba(255,255,255,0.10);
}

.topbar,
.topbar-inner,
.topbar-left,
.topbar-right {
    overflow: visible;
}

@media (max-width: 991px) {
    .topbar-lang-dropdown {
        width: auto !important;
    }

    .topbar-lang-menu {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }
}

/* إعادة تحسين إعدادات الخطوط للأجهزة الصغيرة */

/* ===== MOBILE / TABLET TOPBAR ===== */
@media (max-width: 991px) {
    .topbar {
        font-size: 13px;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }

    .topbar-inner {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
        min-height: auto;
        padding: 10px 0;
    }

    .topbar-left,
    .topbar-right {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 8px;
    }

    .topbar a,
    .topbar button,
    .topbar-lang-current {
        height: 34px;
        padding: 0 12px;
        border-radius: 999px;
        background: rgba(255,255,255,0.06);
        font-size: 13px;
        line-height: 1;
    }

    .topbar ion-icon {
        font-size: 15px;
    }

    .topbar-left a:first-child {
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .topbar-lang-dropdown {
        width: auto;
    }

    .topbar-lang-menu {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        min-width: 130px;
    }

    .topbar-search-btn {
        width: 34px;
        justify-content: center;
        padding: 0;
    }
}

@media (max-width: 480px) {
    .topbar-inner {
        gap: 6px;
        padding: 8px 0;
    }

    .topbar-left,
    .topbar-right {
        gap: 6px;
    }

    .topbar a,
    .topbar button,
    .topbar-lang-current {
        height: 32px;
        padding: 0 10px;
        font-size: 12px;
    }

    .topbar ion-icon {
        font-size: 14px;
    }
}

/* إعادة تصغير الأيقونات للأجهزة الصغيرة */
@media (max-width: 768px) {
    .topbar ion-icon {
        font-size: 16px; /* تقليص حجم الأيقونات للأجهزة الصغيرة */
    }
}

/* MAINBAR */

.mainbar {
    background: #faf7ff;
    border-bottom: 1px solid #eaeaea;
}

.mainbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 88px;
}

.logo-wrap {
    flex: 0 0 auto;
}

.main-logo img {
    height: 100px;
}

.desktop-nav {
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 34px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-item > a {
    font-weight: 600;
    font-size: 17px;
    text-decoration: none;
    color: #222;
    padding: 32px 0;
}

.nav-item > a:hover {
    color: #6d3df2;
}

.header-action {
    flex: 0 0 auto;
}

.header-btn {
    background: #6d3df2;
    color: #fff;
    padding: 12px 22px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
}

.header-btn:hover {
    background: #532ac8;
}

/* التعديلات للأجهزة الصغيرة */




/* SUBBAR */
/* ===================== SUBBAR / TRACKING ===================== */

/* ===================== TRACKING BAR ===================== */

.subbar {
    background: #faf7ff;
    border-top: 1px solid #eaeaea;
    border-bottom: 1px solid #eaeaea;
    padding: 18px 0 24px;
}

.subbar-top {
    margin-bottom: 18px;
    font-size: 15px;
    font-weight: 600;
}

.subbar-top a {
    text-decoration: none;
    color: #222;
}

.subbar-top a:hover {
    color: #6d3df2;
}

.subbar-bottom {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.containertrack {
    width: 100%;
    max-width: 1040px;
    margin: 0 auto;
    display: grid !important;
    grid-template-columns: 180px 1fr 120px !important;
    align-items: center !important;
    column-gap: 28px !important;
}

.track-col {
    display: flex;
    align-items: center;
}

.track-left {
    justify-content: flex-start;
}

.track-center {
    justify-content: center;
}

.track-right {
    justify-content: flex-end;
}

.dropdown {
    width: 180px !important;
    height: 56px !important;
    padding: 0 18px !important;
    border: none !important;
    border-radius: 30px !important;
    outline: none !important;
    background: #6d3df2 !important;
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    font-family: 'Rubik', sans-serif !important;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    box-sizing: border-box;
}

.search-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.search-modal.active {
    display: flex;
}

.search-modal-box {
    width: 90%;
    max-width: 520px;
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    position: relative;
}

.search-modal-box form {
    display: flex;
    gap: 10px;
}

.search-modal-box input {
    flex: 1;
    height: 46px;
    border: 1px solid #ccc;
    padding: 0 14px;
}

.search-modal-box button[type="submit"] {
    height: 46px;
    padding: 0 18px;
    background: #be1026;
    color: #fff;
    border: none;
    cursor: pointer;
}

.close-search {
    position: absolute;
    top: 8px;
    right: 12px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
}

.searchbox12 {
    width: 100% !important;
    min-width: 0 !important;
    height: 56px !important;
    padding: 0 24px !important;
    border: 1px solid #d9dbe3 !important;
    border-radius: 30px !important;
    outline: none !important;
    background: #fff !important;
    color: #111 !important;
    font-size: 17px !important;
    font-family: 'Rubik', sans-serif !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.10) !important;
    box-sizing: border-box;
}

.searchbox12:focus {
    border-color: #6d3df2 !important;
    box-shadow: 0 0 0 4px rgba(109, 61, 242, 0.12) !important;
}

.trackButton {
    width: 120px !important;
    height: 56px !important;
    border: none !important;
    border-radius: 30px !important;
    outline: none !important;
    background: #6d3df2 !important;
    color: #fff !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    font-family: 'Rubik', sans-serif !important;
    cursor: pointer;
    white-space: nowrap;
    box-sizing: border-box;
}

.trackButton:hover,
.dropdown:hover {
    background: #532ac8 !important;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .containertrack {
        grid-template-columns: 1fr !important; /* Single column layout */
        row-gap: 14px !important; /* Gap between rows */
    }

    .track-left,
    .track-center,
    .track-right {
        justify-content: stretch !important; /* Stretch to full width */
    }

    .dropdown,
    .trackButton {
        width: 100% !important; /* Full width for buttons */
    }
}
/* MEGA MENU */
.has-mega-menu {
    position: relative;
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 680px;                    /* Tightened — most 2-col menus are 650–720px */
    background: #fff;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s;
    font-size: 1rem;                 /* Base size fix */
}

.has-mega-menu:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.mega-menu-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;                       /* This is the column gap — 20px is visible but not "big" */
    padding: 24px 28px;              /* Reduced outer padding → less overall stretch */
    align-items: start;              /* Prevents stretching if one side is shorter */
}

.mega-col {
    min-width: 0;                    /* Prevents columns from forcing extra width */
}

.mega-col h4 {
    margin: 0 0 14px 0;              /* Tighter heading spacing */
    font-size: 1.12rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #222;
}

/* Links & spans — consistent tight look */
.mega-links a,
.network-grid span {
    display: flex;
    align-items: center;
    gap: 10px;                       /* Slightly tighter icon-text gap */
    padding: 7px 0;                  /* Less vertical padding per item */
    font-size: 1rem;
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
}

.mega-links a:hover,
.network-grid span:hover {
    color: #6d3df2;
}

/* Icons */
.mega-links a i,
.network-grid span i {
    font-size: 1.08rem;
    width: 22px;
    text-align: center;
    flex-shrink: 0;
    color: #6d3df2;
}

.network-grid span i.fa-map-marker-alt {
    color: #e74c3c;                  /* Red pin */
    font-size: 1.22rem;
}

/* Network grid — compact */
.network-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px 18px;                  /* Tighter within network */
}

.mega-services{
    width: 980px;
    left: 50%;
    transform: translateX(-50%);
    border-top: 4px solid #6d3df2;
    border-radius: 0 0 10px 10px;
    overflow: hidden;
}

.mega-services .mega-menu-inner{
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 0;
    padding: 0;
}

.services-links-col{
    padding: 34px 34px 26px;
    border-right: 1px solid #ececec;
    background: #fff;
}

.services-links-col h4{
    margin: 0 0 22px;
    font-size: 20px;
    font-weight: 800;
    color: #111;
}

.services-links-col a{
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    text-decoration: none;
    color: #222;
    font-size: 20px;
    font-weight: 500;
    transition: 0.2s ease;
}

.services-links-col a:hover{
    color: #6d3df2;
    padding-left: 4px;
}

.services-links-col .mega-icon{
    width: 28px;
    min-width: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 23px;
    color: #6d3df2;
}

.services-feature-box{
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    align-items: center;
    padding: 34px;
    background: #fafafa;
}

.services-feature-content h4{
    margin: 0 0 18px;
    font-size: 26px;
    line-height: 1.35;
    font-weight: 800;
    color: #111;
}

.services-feature-content p{
    margin: 0 0 22px;
    font-size: 17px;
    line-height: 1.9;
    color: #444;
    max-width: 420px;
}

.services-feature-visual{
    display: flex;
    align-items: center;
    justify-content: center;
}

.services-illustration-box{
    width: 150px;
    height: 150px;
    border-radius: 24px;
    background: linear-gradient(135deg, #f2ecff 0%, #ffffff 100%);
    border: 1px solid #ece6ff;
    box-shadow: 0 12px 30px rgba(109,61,242,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}

.services-illustration-box ion-icon{
    font-size: 68px;
    color: #6d3df2;
}

.mega-services .mega-btn{
    min-width: 150px;
    height: 48px;
    padding: 0 20px;
    border-radius: 8px;
    background: #6d3df2;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s ease;
}

.mega-services .mega-btn:hover{
    background: #532ac8;
}


/* ===== Company Mega Menu ===== */
.has-mega-menu {
    position: relative;
}

.company-mega-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.company-mega-link ion-icon {
    font-size: 14px;
    transition: transform 0.25s ease;
}

.company-mega-item:hover .company-mega-link ion-icon {
    transform: rotate(180deg);
}

.mega-company-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 1000px;
    max-width: calc(100vw - 80px);
    background: #fff;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0,0,0,0.05);
    z-index: 9999;
    overflow: hidden;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .25s ease, visibility .25s ease;
}

.company-mega-item:hover .mega-company-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.mega-company-top-line {
    height: 4px;
    background: #6f2cff;
    width: 100%;
}

.mega-company-inner {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 28px;
    padding: 28px 28px 20px;
    width: 100%;
    align-items: start;
}

.mega-company-left,
.mega-company-right {
    min-width: 0;
}

.mega-company-left h4,
.mega-network-head h4 {
    margin: 0 0 26px;
    font-size: 22px;
    font-weight: 700;
    color: #1c2435;
}

.mega-company-item {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    color: #2a3142;
    font-size: 19px;
    font-weight: 500;
    margin-bottom: 28px;
    transition: 0.22s ease;
}

.mega-company-item:hover {
    color: #be1026;
}

.mega-company-icon {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #6f2cff;
    font-size: 28px;
    flex-shrink: 0;
}

.mega-company-item:hover .mega-company-icon {
    color: #be1026;
}

.mega-network-box {
    background: #f6f7f8;
    padding: 22px 24px 18px;
    min-height: 150px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.mega-network-head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 22px;
}

.mega-network-head h4 {
    margin: 0;
}

.mega-network-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 24px;
    row-gap: 14px;
    width: 100%;
}

.mega-network-grid span {
    display: block;
    font-size: 18px;
    color: #555f71;
    padding-bottom: 10px;
    border-bottom: 1px solid #ececec;
    transition: color 0.22s ease;
    white-space: normal;
    overflow-wrap: anywhere;
}

.mega-network-grid span:hover {
    color: #be1026;
}


/* تحسين الأيقونات لتناسب الهواتف */
.mega-links a i,
.network-grid span i {
    font-size: 1rem; /* تقليل حجم الأيقونات لتناسب الهاتف */
    width: 20px;
}
/* في حالة الهواتف */
@media (max-width: 768px) {
    .mega-company-menu {
        position: static;
        transform: none;
        width: 100%;
        margin-top: 10px;
    }

    .mega-company-inner {
        padding: 22px 18px;
    }

    .mega-network-grid {
        grid-template-columns: 1fr; /* عمود واحد في الشبكة */
    }

    .mega-company-item {
        min-height: 58px;
        font-size: 16px;
        padding: 0 18px;
    }
}

/* ===== Contact simple dropdown ===== */
.has-contact-dropdown {
    position: relative;
}

/* هذا الجسر يمنع انقطاع الهوفر أثناء نزول المؤشر */
.has-contact-dropdown::after {
    content: "";
    position: absolute;
    left: 0;
    top: 100%;
    width: 100%;
    height: 18px;
}

.contact-dropdown-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    cursor: pointer;
}

.contact-dropdown-link ion-icon {
    font-size: 14px;
    transition: transform 0.25s ease;
}

.has-contact-dropdown:hover .contact-dropdown-link ion-icon {
    transform: rotate(180deg);
}

.contact-dropdown-menu {
    position: absolute;
    top: calc(100% + 18px);
    left: 50%;
    transform: translateX(-50%);
    width: 390px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0,0,0,0.05);
    display: none;
    z-index: 9999;
    overflow: hidden;
}

/* هنا الفتح بالهوفر مثل البقية */
.has-contact-dropdown:hover .contact-dropdown-menu {
    display: block;
}

.contact-dropdown-item {
    display: flex;
    align-items: center;
    min-height: 74px;
    padding: 0 26px;
    text-decoration: none;
    color: #1f2738;
    font-size: 18px;
    font-weight: 500;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.22s ease, color 0.22s ease;
}

.contact-dropdown-item:last-child {
    border-bottom: none;
}
.contact-dropdown-top-line {
    height: 4px;
    width: 100%;
    background: #6f2cff;
}
.contact-dropdown-item:hover {
    background: #fafafa;
    color: #be1026;
}


/* تعديل لعرض القوائم المنسدلة */
@media (max-width: 768px) {
    .contact-dropdown-menu {
        position: static;
        transform: none;
        width: 100%;
        margin-top: 10px;
    }

    .contact-dropdown-item {
        min-height: 58px;
        font-size: 16px;
        padding: 0 18px;
    }
}


/* ===== HAMBURGER / RESPONSIVE HEADER ===== */

.menu-toggle {
    display: none;
    width: 46px;
    height: 46px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 10px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #222;
    border-radius: 2px;
    transition: 0.25s ease;
}

.header-menu-wrap {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    justify-content: space-between;
}

@media (max-width: 991px) {
    .mainbar-inner {
        min-height: 84px;
        flex-wrap: wrap;
        gap: 12px;
        padding: 12px 0;
    }

    

    .menu-toggle {
        display: inline-flex;
        order: 2;
        margin-left: auto;
    }

    .header-menu-wrap {
        order: 3;
        width: 100%;
        display: none;
        flex-direction: column;
        align-items: stretch;
        background: #fff;
        border-top: 1px solid #ececec;
        padding: 10px 0 16px;
    }

    .header-menu-wrap.active {
        display: flex;
    }

    .desktop-nav {
        width: 100%;
        display: block;
    }

    .nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        width: 100%;
    }

    .nav-item {
        width: 100%;
    }

    .nav-item > a {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 16px 8px;
        border-bottom: 1px solid #f1f1f1;
        font-size: 16px;
    }

    .header-action {
        width: 100%;
        margin-top: 14px;
    }

    .header-btn {
        display: flex;
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    /* إخفاء القوائم المنسدلة افتراضياً في الموبايل */
    .mega-menu,
    .mega-company-menu,
    .mega-services,
    .contact-dropdown-menu {
        position: static !important;
        transform: none !important;
        width: 100% !important;
        max-width: 100% !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        box-shadow: none !important;
        border: 1px solid #ececec !important;
        margin-top: 0 !important;
        display: none;
        left: auto !important;
        top: auto !important;
    }

    .nav-item.open > .mega-menu,
    .nav-item.open > .contact-dropdown-menu {
        display: block !important;
    }

    .mega-company-inner,
    .mega-menu-inner,
    .mega-services .mega-menu-inner,
    .services-feature-box {
        grid-template-columns: 1fr !important;
    }

    .services-links-col,
    .services-feature-box,
    .mega-company-inner {
        padding: 18px !important;
    }

    .services-links-col {
        border-right: none !important;
        border-bottom: 1px solid #ececec;
    }

    .mega-network-grid {
        grid-template-columns: 1fr !important;
    }

    .contact-dropdown-item {
        min-height: 56px;
        font-size: 16px;
        padding: 0 18px;
    }

    .subbar {
        padding-top: 14px;
    }
}

@media (min-width: 992px) {
    .header-menu-wrap {
        display: flex !important;
    }
}



@media (min-width: 992px) {
    .mainbar-inner {
        justify-content: center;
        gap: 36px;
    }

    .logo-wrap,
    .header-menu-wrap,
    .desktop-nav,
    .header-action {
        flex: 0 0 auto !important;
    }

    .header-menu-wrap {
        width: auto !important;
        justify-content: center !important;
        gap: 28px;
    }

    .desktop-nav {
        width: auto !important;
        
    }

    .nav-list {
        justify-content: center;;
        gap: 30px;
    }
}
/* ===== DESKTOP ===== */
@media (min-width: 992px) {
    .mainbar-inner {
        display: flex;
        align-items: center;
        justify-content: center !important;
        gap: 24px;
        flex-wrap: nowrap;
    }

    .logo-wrap {
        flex: 0 0 auto;
        order: 1;
    }

    .menu-toggle {
        display: none !important;
    }

    .header-menu-wrap {
        flex: 1 1 auto;
        order: 2;
        display: flex !important;
        align-items: center;
        justify-content:center !important;
        min-width: 0;
        width: auto !important;
    }

    .desktop-nav {
        flex: 1 1 auto;
        display: flex;
        justify-content: center;
        width: auto !important;
    }

    .nav-list {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 28px;
        width: auto;
    }

    .header-action {
        flex: 0 0 auto;
        margin-left: 22px;
        width: auto;
        margin-top: 0;
    }

    .header-btn {
        width: auto;
        display: inline-flex;
    }
}
/* ===== MOBILE / TABLET الطبقة الثانية ===== */
/* ===== MOBILE / TABLET ===== */
@media (max-width: 991px) {
    .mainbar-inner {
        display: flex;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between;
        flex-wrap: nowrap !important;
        min-height: 84px;
        gap: 12px;
        padding: 12px 0;
        position: relative;
    }

    .logo-wrap {
        flex: 0 0 auto;
        min-width: 0;
        margin: 0;
        align-self: center;
    }

    .main-logo {
        display: inline-flex;
        align-items: center;
    }

    .main-logo img {
        display: block;
        height: 48px;
        width: auto;
        max-width: 160px;
    }

    .menu-toggle {
        display: inline-flex;
        flex: 0 0 auto;
        margin-left: auto;
        align-self: center;
    }

    .header-menu-wrap {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        display: none;
        flex-direction: column;
        align-items: stretch;
        background: #fff;
        border-top: 1px solid #ececec;
        padding: 10px 0 16px;
        z-index: 999;
    }

    .header-menu-wrap.active {
        display: flex;
    }

    .desktop-nav {
        width: 100%;
        display: block;
    }

    .nav-list {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        width: 100%;
    }

    .nav-item {
        width: 100%;
    }

    .nav-item > a {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 16px 8px;
        border-bottom: 1px solid #f1f1f1;
        font-size: 16px;
    }

    .header-action {
        width: 100%;
        margin-top: 14px;
    }

    .header-btn {
        display: flex;
        width: 100%;
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .main-logo img {
        height: 42px;
        max-width: 135px;
    }

    .menu-toggle {
        width: 42px;
        height: 42px;
    }
}