    .header-mobile-center {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        z-index: 5;
        max-width: 62%;
        pointer-events: auto;
    }

    .mobile-all-courses-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 10px 16px;
        border-radius: 999px;
        background: #0694D1;
        color: #ffffff !important;
        font-weight: 700;
        text-decoration: none !important;
        border: 0;
        white-space: nowrap;
        line-height: 1;
        max-width: 100%;
        font-size: 14px;
    }

    .mobile-all-courses-btn .chev {
        display: inline-block;
        width: 0;
        height: 0;
        border-left: 6px solid transparent;
        border-right: 6px solid transparent;
        border-top: 7px solid #ffffff;
        margin-top: 2px;
    }

    @media (max-width: 360px) {
        .header-mobile-center { max-width: 58%; }
        .mobile-all-courses-btn { padding: 9px 12px; font-size: 13px; }
    }

    @media (max-width: 991.98px) {
        header .container-xxl { padding-top: 8px; padding-bottom: 8px; }
        header .header_rgt { align-items: center !important; gap: 10px; }
        header .srch_sect { align-items: center !important; }
        header .menu { display: flex; align-items: center; }

        header .navbar { padding: 0 !important; margin: 0 !important; }
        header .navbar > div { display: flex; align-items: center; }

        header .navbar-toggler {
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
            width: 42px;
            height: 42px;
            margin: 0 !important;
            padding: 0 !important;
        }

        header .navbar-toggler-icon {
            width: 28px;
            height: 28px;
        }

        header .logo img {
            width: 92px;
            height: auto;
        }

        header .top_srch {
            margin: 0 !important;
        }
    }

    .mobile-courses-offcanvas .offcanvas-header {
        background: #0b7aa5;
        color: #ffffff;
    }
    .mobile-courses-offcanvas .offcanvas-title {
        font-size: 18px;
        font-weight: 800;
    }
    .mobile-courses-offcanvas .btn-close {
        filter: invert(1);
        opacity: 1;
    }

    .mobile-courses-offcanvas .accordion-button {
        font-weight: 800;
        font-size: 16px;
        padding-top: 14px;
        padding-bottom: 14px;
    }

    .mobile-courses-offcanvas .accordion-button:not(.collapsed) {
        color: #0b7aa5;
        background: #f2fbff;
    }

    .mobile-courses-offcanvas .course-link {
        display: block;
        padding: 10px 12px;
        border-bottom: 1px solid #f0f0f0;
        text-decoration: none !important;
        color: #111;
        font-weight: 600;
        font-size: 14px;
        line-height: 1.35;
    }
    .mobile-courses-offcanvas .course-link:last-child {
        border-bottom: 0;
    }

    @media (max-width: 480px) {
        .mobile-courses-offcanvas .accordion-button { font-size: 15px; }
        .mobile-courses-offcanvas .offcanvas-title { font-size: 17px; }
    }
    @media (max-width: 360px) {
        .mobile-courses-offcanvas .accordion-button { font-size: 14px; }
        .mobile-courses-offcanvas .course-link { font-size: 13px; }
    }

    .masar-topbar {
        background: #0b3a55;
        color: #ffffff;
        font-size: 14px;
        line-height: 1.2;
    }
    .masar-topbar a {
        color: #ffffff;
        text-decoration: none !important;
        font-weight: 700;
    }
    .masar-topbar .tb-wrap {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 18px;
        padding: 10px 0;
        flex-wrap: wrap;
    }
    .masar-topbar .tb-item {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        white-space: nowrap;
    }
    .masar-topbar .tb-item img {
        width: 16px;
        height: 16px;
        display: inline-block;
        flex: 0 0 auto;
    }

    @media (max-width: 767px) {
        .masar-topbar { font-size: 16px; }
        .masar-topbar .tb-email { display: none !important; }
    }

    @media (max-width: 575.98px) {
        .masar-topbar .tb-wrap { gap: 12px; padding: 9px 0; }
    }

    header.sticky-top {
        padding: 0 !important;
    }

    .masar-header-main {
        padding: 16px 0;
    }

    @media (max-width: 767px) {
        .masar-header-main {
            padding: 8px 0;
        }
    }

.header-search-box {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 8px;
}

.header-search-box .top_srch {
    margin-bottom: 0 !important;
}

.header-search-box .top_srch:hover,
.header-search-box .top_srch:focus,
.header-search-box .top_srch:active {
    transform: none !important;
    box-shadow: none !important;
}

.header-search-box .srch_area {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: 560px;
    max-width: calc(100vw - 32px);
    z-index: 99999;
    display: none;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}

.header-search-box.search-open .srch_area {
    display: block !important;
}

.header-search-box #searchForm {
    margin: 0 !important;
}

.header-search-box .custom-header-search-bar {
    display: flex !important;
    align-items: stretch !important;
    direction: ltr !important;
    width: 100% !important;
    min-height: 56px !important;
    background: #ffffff !important;
    border: 0 !important;
    outline: none !important;
    box-shadow: 0 12px 30px rgba(0,0,0,0.12) !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
}

.header-search-box .custom-header-search-submit,
.header-search-box .custom-header-search-category,
.header-search-box .custom-header-search-input {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    background: #ffffff !important;
}

.header-search-box .custom-header-search-submit {
    order: 1;
    flex: 0 0 58px !important;
    width: 58px !important;
    min-width: 58px !important;
    max-width: 58px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-right: 1px solid #e9e9e9 !important;
    cursor: pointer !important;
    background: #ffffff !important;
    background-image: none !important;
    color: inherit !important;
}

.header-search-box .custom-header-search-submit:hover,
.header-search-box .custom-header-search-submit:focus,
.header-search-box .custom-header-search-submit:active {
    background: #ffffff !important;
    background-image: none !important;
    color: inherit !important;
}

.header-search-box .custom-header-search-submit::before,
.header-search-box .custom-header-search-submit::after {
    display: none !important;
    content: none !important;
}

.header-search-box .custom-header-search-category {
    order: 2;
    flex: 0 0 170px !important;
    width: 170px !important;
    min-width: 170px !important;
    max-width: 170px !important;
    display: flex !important;
    align-items: stretch !important;
    border-right: 1px solid #e9e9e9 !important;
}

.header-search-box .custom-header-search-input {
    order: 3;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    display: flex !important;
    align-items: stretch !important;
}

.header-search-box .custom-header-search-input input,
.header-search-box .custom-header-search-category select,
.header-search-box .custom-header-search-submit {
    height: 56px !important;
    min-height: 56px !important;
    border: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    background: #ffffff !important;
    color: #333 !important;
}

.header-search-box .custom-header-search-input input {
    width: 100% !important;
    padding: 0 18px !important;
    text-align: right !important;
    direction: rtl !important;
    font-size: 15px !important;
}

.header-search-box .custom-header-search-category select {
    width: 100% !important;
    padding: 0 14px !important;
    text-align: center !important;
    text-align-last: center !important;
    direction: rtl !important;
    font-size: 14px !important;
    cursor: pointer !important;
    appearance: none !important;
    -webkit-appearance: none !important;
}

.header-search-box .custom-header-search-submit:hover,
.header-search-box .custom-header-search-submit:focus,
.header-search-box .custom-header-search-submit:active,
.header-search-box .custom-header-search-input input:focus,
.header-search-box .custom-header-search-input input:active,
.header-search-box .custom-header-search-category select:focus,
.header-search-box .custom-header-search-category select:active {
    border: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    background: #ffffff !important;
}

.header-search-box .custom-header-search-submit img {
    width: 22px !important;
    height: 22px !important;
    display: block !important;
}

@media (max-width: 991.98px) {
    .header-search-box {
        position: static;
    }

    .header-search-box .srch_area {
        position: fixed;
        left: 12px;
        right: 12px;
        width: auto;
        max-width: none;
        top: auto;
    }

    .header-search-box .custom-header-search-submit {
        flex: 0 0 54px !important;
        width: 54px !important;
        min-width: 54px !important;
        max-width: 54px !important;
    }

    .header-search-box .custom-header-search-category {
        flex: 0 0 145px !important;
        width: 145px !important;
        min-width: 145px !important;
        max-width: 145px !important;
    }

    .header-search-box .custom-header-search-input input,
    .header-search-box .custom-header-search-category select,
    .header-search-box .custom-header-search-submit {
        height: 52px !important;
        min-height: 52px !important;
    }

    .header-search-box .custom-header-search-input input {
        font-size: 14px !important;
        padding: 0 14px !important;
    }

    .header-search-box .custom-header-search-category select {
        font-size: 13px !important;
        padding: 0 10px !important;
    }
}
    .header-cart {
        position: relative;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin: 0 8px 0 0;
    }

    .header-cart .cart-btn {
        width: 42px;
        height: 42px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        text-decoration: none !important;
        transition: all .2s ease-in-out;
    }

    .header-cart .cart-btn:hover {
        background: #f2fbff;
    }

    .header-cart .cart-btn img {
        width: 30px;
        height: 30px;
        display: block;
    }

    .header-cart .cart-badge {
        position: absolute;
        top: -6px;
        right: -6px;
        width: 20px;
        height: 20px;
        padding: 0;
        border-radius: 50%;
        background: #e11d48;
        color: #fff;
        font-size: 12px;
        font-weight: 800;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 2px solid #fff;
        z-index: 3;
        line-height: 1;
    }

    .header-cart .cart-dropdown {
        position: absolute;
        top: 46px;
        left: 0;
        right: auto;
        width: 320px;
        background: #ffffff;
        border: 1px solid #eaeaea;
        border-radius: 12px;
        box-shadow: 0 12px 30px rgba(0,0,0,0.10);
        padding: 10px 10px 8px 10px;
        display: none;
        z-index: 9999;
    }

    .header-cart:hover .cart-dropdown {
        display: block;
    }

    .header-cart .cart-dd-title {
        font-weight: 900;
        font-size: 14px;
        color: #0b3a55;
        margin: 2px 0 8px 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .header-cart .cart-dd-list {
        max-height: 260px;
        overflow: auto;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .header-cart .cart-dd-item {
        padding: 10px 8px;
        border-top: 1px solid #f0f0f0;
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .header-cart .cart-dd-item:first-child {
        border-top: 0;
    }

    .header-cart .cart-dd-name {
        font-weight: 800;
        font-size: 13px;
        color: #111;
        text-decoration: none !important;
        line-height: 1.35;
    }

    .header-cart .cart-dd-meta {
        font-size: 12px;
        color: #666;
        font-weight: 700;
        line-height: 1.2;
        display: flex;
        justify-content: space-between;
        gap: 10px;
    }

    .header-cart .cart-dd-empty {
        padding: 14px 8px;
        color: #666;
        font-weight: 700;
        font-size: 13px;
        text-align: center;
    }

    .header-cart .cart-dd-footer {
        border-top: 1px solid #f0f0f0;
        margin-top: 8px;
        padding-top: 10px;
        display: flex;
        gap: 8px;
    }

    .header-cart .cart-dd-footer a {
        flex: 1;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        height: 36px;
        border-radius: 10px;
        text-decoration: none !important;
        font-weight: 900;
        font-size: 13px;
        border: 1px solid #eaeaea;
        color: #0b3a55;
        background: #fff;
    }

    .header-cart .cart-dd-footer a.primary {
        background: #0694D1;
        color: #fff;
        border-color: #0694D1;
    }

    .desktop-main-menu {
        display: none;
    }

    @media (min-width: 992px) {
        .desktop-main-menu {
            display: block;
            margin-right: 24px;
        }

        .desktop-main-menu .navbar-nav {
            display: flex;
            align-items: center;
            gap: 10px;
            overflow: visible !important;
        }

        .desktop-main-menu .navbar,
        .desktop-main-menu .navbar-nav,
        .desktop-main-menu .nav-item {
            overflow: visible !important;
        }

        .desktop-main-menu .nav-link {
            color: #08364F !important;
            font-weight: 700;
            font-size: 16px;
            padding: 10px 14px !important;
            border-radius: 999px;
            transition: all .2s ease;
        }

        .desktop-main-menu .nav-link:hover,
        .desktop-main-menu .nav-link.active {
            background: #f2fbff;
            color: #0694D1 !important;
        }

        .desktop-main-menu .dropdown-menu {
            border: 1px solid #e5e7eb;
            border-radius: 14px;
            box-shadow: 0 12px 30px rgba(0,0,0,0.10);
            padding: 8px;
            min-width: 240px;
        }

        .desktop-main-menu .dropdown-item {
            border-radius: 10px;
            padding: 10px 12px;
            font-weight: 600;
        }

        .desktop-main-menu .dropdown-item:hover {
            background: #f2fbff;
            color: #0694D1;
        }

        .masar-courses-dropdown {
            position: relative;
        }

        .masar-courses-dropdown .masar-courses-toggle::after {
            display: inline-block;
            margin-right: 8px;
            margin-left: 0;
            vertical-align: middle;
        }

        .masar-courses-dropdown .masar-courses-box {
            position: absolute;
            top: calc(100% + 12px);
            right: -220px;
            width: 1080px;
            max-width: calc(100vw - 40px);
            padding: 0 !important;
            border: 1px solid #e5e7eb !important;
            border-radius: 18px !important;
            box-shadow: 0 18px 40px rgba(0,0,0,0.12) !important;
            overflow: hidden !important;
            direction: rtl;
            background: #ffffff !important;
            z-index: 99999 !important;
            display: none;
        }

        .masar-courses-dropdown.open .masar-courses-box {
            display: block;
        }

        .masar-courses-dropdown .masar-courses-box *,
        .masar-courses-dropdown .masar-courses-box *::before,
        .masar-courses-dropdown .masar-courses-box *::after {
            box-sizing: border-box;
        }

        .masar-courses-dropdown .masar-courses-wrap {
            display: flex;
            min-height: 380px;
            max-height: 460px;
            background: #ffffff !important;
        }

        .masar-courses-dropdown .masar-courses-right {
            width: 430px;
            border-left: 1px solid #eef2f7;
            background: #fbfdff !important;
            display: flex;
            flex-direction: column;
            flex-shrink: 0;
        }

        .masar-courses-dropdown.hide-left-panel .masar-courses-box {
            width: 430px !important;
            max-width: 430px !important;
        }

        .masar-courses-dropdown.hide-left-panel .masar-courses-left {
            display: none !important;
        }

        .masar-courses-dropdown.hide-left-panel .masar-courses-right {
            width: 430px !important;
            border-left: 0 !important;
        }

        .masar-courses-dropdown .masar-supported-btn {
            width: calc(100% - 24px);
            margin: 14px 12px 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            min-height: 46px;
            padding: 10px 16px;
            border-radius: 14px;
            background: #0694D1 !important;
            color: #ffffff !important;
            text-decoration: none !important;
            font-weight: 800;
            font-size: 15px;
            border: 1px solid #0694D1;
            transition: all .2s ease;
            position: static;
            top: auto;
            z-index: auto;
        }

        .masar-courses-dropdown .masar-supported-btn:hover {
            background: #0b7aa5 !important;
            border-color: #0b7aa5 !important;
            color: #ffffff !important;
        }

        .masar-courses-dropdown .masar-categories-scroll {
            overflow-y: auto;
            max-height: 380px;
            background: #fbfdff !important;
        }

        .masar-courses-dropdown .masar-category-trigger {
            width: 100%;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            padding: 12px 16px;
            color: #08364F !important;
            text-decoration: none !important;
            font-weight: 700;
            font-size: 15px;
            background: transparent !important;
            border-bottom: 1px solid #f1f5f9;
            transition: all .2s ease;
            cursor: pointer;
        }

        .masar-courses-dropdown .masar-category-trigger:hover,
        .masar-courses-dropdown .masar-category-trigger.active {
            background: #f2fbff !important;
            color: #0694D1 !important;
        }

        .masar-courses-dropdown .masar-category-arrow {
            font-size: 18px;
            line-height: 1;
            color: inherit;
            flex: 0 0 auto;
        }

        .masar-courses-dropdown .masar-courses-left {
            flex: 1;
            min-width: 0;
            background: #ffffff !important;
            position: relative;
        }

        .masar-courses-dropdown .masar-course-panel {
            display: none !important;
            height: 100%;
            padding: 20px 22px 78px;
            overflow-y: auto;
            max-height: 460px;
            background: #ffffff !important;
        }

        .masar-courses-dropdown .masar-course-panel.active {
            display: block !important;
        }

        .masar-courses-dropdown .masar-course-panel-title {
            font-size: 18px;
            font-weight: 800;
            color: #08364F !important;
            margin-bottom: 14px;
            background: #ffffff !important;
        }

        .masar-courses-dropdown .masar-course-link {
            display: block !important;
            width: 100%;
            padding: 12px 14px;
            margin-bottom: 10px;
            border: 1px solid #edf2f7;
            border-radius: 12px;
            text-decoration: none !important;
            color: #1f2937 !important;
            font-weight: 700;
            font-size: 15px;
            line-height: 1.6;
            transition: all .2s ease;
            background: #ffffff !important;
        }

        .masar-courses-dropdown .masar-course-link:hover {
            background: #f2fbff !important;
            color: #0694D1 !important;
            border-color: #cfeeff;
        }

        .masar-courses-dropdown .masar-course-empty {
            color: #64748b !important;
            font-size: 14px;
            font-weight: 700;
            padding: 10px 0;
            background: #ffffff !important;
        }

        .masar-courses-dropdown .masar-all-courses-wrap {
            position: static;
            right: auto;
            left: auto;
            bottom: auto;
            background: transparent !important;
            padding: 12px;
            margin-top: 10px;
        }

        .masar-courses-dropdown .masar-all-courses-btn {
            width: 100%;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-height: 48px;
            border-radius: 14px;
            background: #0694D1 !important;
            color: #ffffff !important;
            font-weight: 800;
            font-size: 15px;
            text-decoration: none !important;
            transition: all .2s ease;
        }

        .masar-courses-dropdown .masar-all-courses-btn:hover {
            background: #0b7aa5 !important;
            color: #ffffff !important;
        }
    }

    @media (max-width: 991.98px) {
        .mobile-menu-drawer.offcanvas.offcanvas-end {
            width: 92%;
            max-width: 360px;
            border: 0;
            background: #f8fafc;
            box-shadow: -18px 0 40px rgba(0, 0, 0, 0.18);
        }

        .mobile-menu-drawer .offcanvas-header {
            background: linear-gradient(135deg, #08364F 0%, #0694D1 100%);
            padding: 18px 16px;
            border-bottom: 0;
        }

        .mobile-menu-drawer .offcanvas-title {
            color: #ffffff;
            font-size: 18px;
            font-weight: 800;
            margin: 0;
        }

        .mobile-menu-drawer .btn-close {
            filter: invert(1);
            opacity: 1;
            box-shadow: none !important;
        }

        .mobile-menu-drawer .offcanvas-body {
            padding: 16px;
            background: #f8fafc;
        }

        .mobile-menu-list {
            list-style: none;
            margin: 0;
            padding: 0;
        }

        .mobile-menu-list > li {
            margin-bottom: 12px;
        }

        .mobile-menu-link,
        .mobile-menu-toggle {
            width: 100%;
            min-height: 52px;
            border: 1px solid #dbe4ee;
            border-radius: 16px;
            background: #ffffff;
            color: #0f172a;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            padding: 14px 16px;
            text-decoration: none !important;
            font-weight: 800;
            font-size: 15px;
            line-height: 1.3;
            transition: all .2s ease;
            box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
        }

        .mobile-menu-toggle {
            appearance: none;
            -webkit-appearance: none;
            cursor: pointer;
        }

        .mobile-menu-link:hover,
        .mobile-menu-toggle:hover,
        .mobile-menu-link.active {
            background: #08364F;
            color: #ffffff;
            border-color: #08364F;
        }

        .mobile-menu-arrow {
            flex: 0 0 auto;
            width: 10px;
            height: 10px;
            border-right: 2px solid currentColor;
            border-bottom: 2px solid currentColor;
            transform: rotate(45deg);
            transition: transform .2s ease;
            margin-top: -2px;
        }

        .mobile-menu-toggle[aria-expanded="true"] .mobile-menu-arrow {
            transform: rotate(225deg);
            margin-top: 4px;
        }

        .mobile-submenu {
            list-style: none;
            margin: 8px 0 0 0;
            padding: 8px;
            background: #eaf4fb;
            border: 1px solid #d3e6f4;
            border-radius: 16px;
        }

        .mobile-submenu li + li {
            margin-top: 8px;
        }

        .mobile-submenu a {
            display: block;
            padding: 12px 14px;
            border-radius: 12px;
            background: #ffffff;
            color: #334155;
            text-decoration: none !important;
            font-size: 14px;
            font-weight: 700;
            line-height: 1.4;
            border: 1px solid #dbe4ee;
            transition: all .2s ease;
        }

        .mobile-submenu a:hover {
            background: #08364F;
            color: #ffffff;
            border-color: #08364F;
        }

        .mobile-menu-auth {
            margin-top: 18px;
            padding: 14px;
            border-radius: 18px;
            background: #ffffff;
            border: 1px solid #dbe4ee;
            box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
        }

        .mobile-menu-auth .join_login {
            margin: 0;
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .mobile-menu-auth .join_login a {
            min-height: 46px;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            text-decoration: none !important;
            font-weight: 800;
            font-size: 14px;
            border: 1px solid #dbe4ee;
            background: #ffffff;
            color: #08364F;
            padding: 10px 14px;
        }

        .mobile-menu-auth .join_login a:last-child {
            background: #0694D1;
            color: #ffffff;
            border-color: #0694D1;
        }

        .header-cart:hover .cart-dropdown {
            display: none;
        }

        .header-cart.open .cart-dropdown {
            display: block;
            position: fixed;
            left: 12px;
            right: 12px;
            width: auto;
            max-width: none;
            top: 120px;
            z-index: 99999;
        }

        .header-cart .cart-dd-list {
            max-height: 55vh;
        }
    }
    .header-search-box .custom-header-search-submit,
.header-search-box .custom-header-search-submit:hover,
.header-search-box .custom-header-search-submit:focus,
.header-search-box .custom-header-search-submit:active,
.header-search-box .custom-header-search-submit:visited {
    background: #ffffff !important;
    background-color: #ffffff !important;
    background-image: none !important;
    color: transparent !important;
    border: 0 !important;
    outline: none !important;
    box-shadow: none !important;
}

.header-search-box .custom-header-search-submit::before,
.header-search-box .custom-header-search-submit::after,
.header-search-box .custom-header-search-submit:hover::before,
.header-search-box .custom-header-search-submit:hover::after,
.header-search-box .custom-header-search-submit:focus::before,
.header-search-box .custom-header-search-submit:focus::after,
.header-search-box .custom-header-search-submit:active::before,
.header-search-box .custom-header-search-submit:active::after {
    content: none !important;
    display: none !important;
    background: none !important;
}

.header-search-box .custom-header-search-submit img,
.header-search-box .custom-header-search-submit:hover img,
.header-search-box .custom-header-search-submit:focus img,
.header-search-box .custom-header-search-submit:active img {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    filter: none !important;
}

.header-search-box .custom-header-search-submit span,
.header-search-box .custom-header-search-submit i,
.header-search-box .custom-header-search-submit svg:not(img) {
    display: none !important;
}


@media (max-width: 767px) {
    html {
        scroll-padding-top: var(--masar-mobile-header-height, 150px);
    }

    body {
        padding-top: var(--masar-mobile-header-height, 150px);
    }

    header.sticky-top {
        position: fixed !important;
        top: 0;
        right: 0;
        left: 0;
        width: 100%;
        z-index: 9999;
        background: #ffffff;
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    }

    .masar-topbar {
        position: relative;
        z-index: 2;
    }

    .masar-header-main {
        position: relative;
        z-index: 2;
        background: #ffffff;
    }
}


/* ===== MasarTech mobile header final override ===== */
@media (max-width: 767px) {
    html {
        scroll-padding-top: var(--masar-mobile-header-height, 139px) !important;
    }

    body {
        padding-top: var(--masar-mobile-header-height, 139px) !important;
    }

    header.sticky-top {
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        left: 0 !important;
        width: 100% !important;
        background: #ffffff !important;
        box-shadow: 0 3px 10px rgba(15, 23, 42, 0.08) !important;
        z-index: 9999 !important;
    }

    .masar-topbar {
        background: #08364F !important;
        min-height: 57px !important;
        font-size: 18px !important;
        font-weight: 900 !important;
        line-height: 1 !important;
    }

    .masar-topbar .container-xxl {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    .masar-topbar .tb-wrap {
        height: 57px !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 22px !important;
        flex-wrap: nowrap !important;
        direction: ltr !important;
    }

    .masar-topbar .tb-email {
        display: none !important;
    }

    .masar-topbar .tb-item {
        gap: 7px !important;
        white-space: nowrap !important;
    }

    .masar-topbar .tb-item img {
        width: 19px !important;
        height: 19px !important;
    }

    .masar-topbar .tb-item a {
        color: #ffffff !important;
        font-size: 18px !important;
        font-weight: 900 !important;
        letter-spacing: .2px !important;
    }

    .masar-header-main {
        height: 82px !important;
        min-height: 82px !important;
        padding: 0 !important;
        background: #ffffff !important;
    }

    .masar-header-main .container-xxl {
        height: 82px !important;
        padding: 0 28px !important;
        display: flex !important;
        align-items: center !important;
    }

    .masar-header-main .container-xxl > .d-flex {
        width: 100% !important;
        height: 82px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
    }

    .header-mobile-center {
        display: none !important;
    }

    header .srch_sect {
        display: none !important;
    }

    header .header_rgt {
        width: 100% !important;
        height: 82px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        flex-direction: row !important;
        gap: 0 !important;
        direction: rtl !important;
    }

    header .logo {
        order: 1 !important;
        margin: 0 !important;
        padding: 0 !important;
        line-height: 1 !important;
    }

    header .logo a {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        line-height: 1 !important;
    }

    header .logo img {
        width: 113px !important;
        max-width: 113px !important;
        height: auto !important;
        display: block !important;
    }

    header .menu {
        order: 2 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    header .navbar {
        padding: 0 !important;
        margin: 0 !important;
    }

    header .navbar > div {
        display: flex !important;
        align-items: center !important;
    }

    header .navbar-toggler {
        width: 46px !important;
        height: 46px !important;
        padding: 0 !important;
        margin: 0 !important;
        border: 0 !important;
        outline: 0 !important;
        box-shadow: none !important;
        background: transparent !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    header .navbar-toggler-icon {
        position: relative !important;
        width: 34px !important;
        height: 28px !important;
        display: block !important;
        background-image: none !important;
        background: transparent !important;
    }

    header .navbar-toggler-icon::before {
        content: "" !important;
        position: absolute !important;
        right: 0 !important;
        top: 3px !important;
        width: 34px !important;
        height: 3px !important;
        border-radius: 999px !important;
        background: #111111 !important;
        box-shadow: 0 10px 0 #111111, 0 20px 0 #111111 !important;
    }
}

@media (max-width: 390px) {
    .masar-topbar {
        font-size: 16px !important;
    }

    .masar-topbar .tb-wrap {
        gap: 16px !important;
    }

    .masar-topbar .tb-item a {
        font-size: 16px !important;
    }

    .masar-header-main .container-xxl {
        padding: 0 22px !important;
    }

    header .logo img {
        width: 105px !important;
        max-width: 105px !important;
    }
}


/* ===== MasarTech desktop topbar final override ===== */
@media (min-width: 768px) {
    .masar-topbar {
        background: #08364F !important;
        min-height: 50px !important;
        height: 50px !important;
        color: #ffffff !important;
        font-size: 18px !important;
        font-weight: 900 !important;
        line-height: 1 !important;
    }

    .masar-topbar .container-xxl {
        height: 50px !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    .masar-topbar .tb-wrap {
        height: 50px !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 58px !important;
        flex-wrap: nowrap !important;
        line-height: 1 !important;
    }

    .masar-topbar .tb-item {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
        white-space: nowrap !important;
        line-height: 1 !important;
    }

    .masar-topbar .tb-item a {
        color: #ffffff !important;
        font-size: 18px !important;
        font-weight: 900 !important;
        line-height: 1 !important;
        letter-spacing: .15px !important;
        text-decoration: none !important;
    }

    .masar-topbar .tb-item img {
        width: 21px !important;
        height: 21px !important;
        display: inline-block !important;
        flex: 0 0 auto !important;
    }
}

@media (min-width: 768px) and (max-width: 1100px) {
    .masar-topbar .tb-wrap {
        gap: 34px !important;
    }

    .masar-topbar .tb-item a {
        font-size: 16px !important;
    }

    .masar-topbar .tb-item img {
        width: 19px !important;
        height: 19px !important;
    }
}


/* ===== MasarTech Figma mobile header override ===== */
@media (max-width: 767px) {
    html {
        scroll-padding-top: var(--masar-mobile-header-height, 100px) !important;
    }

    body {
        padding-top: var(--masar-mobile-header-height, 100px) !important;
    }

    header.sticky-top {
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        left: 0 !important;
        width: 100% !important;
        z-index: 9999 !important;
        padding: 0 !important;
        margin: 0 !important;
        background: #ffffff !important;
        box-shadow: none !important;
    }

    .masar-topbar {
        width: 100% !important;
        height: 40px !important;
        min-height: 40px !important;
        padding: 0 !important;
        margin: 0 !important;
        background: #08364F !important;
        color: #ffffff !important;
        line-height: 1 !important;
    }

    .masar-topbar .container-xxl {
        width: 100% !important;
        height: 40px !important;
        padding: 0 12px !important;
        margin: 0 auto !important;
    }

    .masar-topbar .tb-wrap {
        width: 100% !important;
        height: 40px !important;
        min-height: 40px !important;
        padding: 0 !important;
        margin: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 14px !important;
        flex-wrap: nowrap !important;
        direction: ltr !important;
    }

    .masar-topbar .tb-email {
        display: none !important;
    }

    .masar-topbar .tb-item {
        display: inline-flex !important;
        flex-direction: row-reverse !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 5px !important;
        margin: 0 !important;
        padding: 0 !important;
        white-space: nowrap !important;
        line-height: 1 !important;
    }

    .masar-topbar .tb-item a {
        margin: 0 !important;
        padding: 0 !important;
        color: #ffffff !important;
        font-size: 13px !important;
        font-weight: 800 !important;
        line-height: 1 !important;
        letter-spacing: 0 !important;
        text-decoration: none !important;
    }

    .masar-topbar .tb-item img {
        width: 15px !important;
        height: 15px !important;
        min-width: 15px !important;
        min-height: 15px !important;
        display: block !important;
        flex: 0 0 15px !important;
        margin: 0 !important;
    }

    .masar-header-main {
        width: 100% !important;
        height: 60px !important;
        min-height: 60px !important;
        padding: 0 !important;
        margin: 0 !important;
        background: #ffffff !important;
        border-bottom: 1px solid #eef2f6 !important;
        box-shadow: none !important;
    }

    .masar-header-main .container-xxl {
        width: 100% !important;
        height: 60px !important;
        padding: 0 16px !important;
        margin: 0 auto !important;
        display: flex !important;
        align-items: center !important;
    }

    .masar-header-main .container-xxl > .d-flex {
        width: 100% !important;
        height: 60px !important;
        margin: 0 !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
    }

    .header-mobile-center {
        display: none !important;
    }

    header .srch_sect {
        display: none !important;
    }

    header .header_rgt {
        width: 100% !important;
        height: 60px !important;
        margin: 0 !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        flex-direction: row !important;
        direction: rtl !important;
        gap: 0 !important;
    }

    header .logo {
        order: 1 !important;
        margin: 0 !important;
        padding: 0 !important;
        line-height: 1 !important;
    }

    header .logo a {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 !important;
        padding: 0 !important;
        line-height: 1 !important;
    }

    header .logo img {
        width: 86px !important;
        max-width: 86px !important;
        height: auto !important;
        max-height: 42px !important;
        display: block !important;
        object-fit: contain !important;
        margin: 0 !important;
    }

    header .menu {
        order: 2 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    header .navbar,
    header .navbar > div {
        margin: 0 !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
    }

    header .navbar-toggler {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        min-height: 36px !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        outline: 0 !important;
        box-shadow: none !important;
        background: transparent !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    header .navbar-toggler-icon {
        position: relative !important;
        width: 28px !important;
        height: 22px !important;
        display: block !important;
        margin: 0 !important;
        background: transparent !important;
        background-image: none !important;
    }

    header .navbar-toggler-icon::before {
        content: "" !important;
        position: absolute !important;
        top: 2px !important;
        right: 0 !important;
        width: 28px !important;
        height: 2px !important;
        border-radius: 999px !important;
        background: #111111 !important;
        box-shadow: 0 8px 0 #111111, 0 16px 0 #111111 !important;
    }
}

@media (max-width: 360px) {
    .masar-topbar .container-xxl {
        padding: 0 8px !important;
    }

    .masar-topbar .tb-wrap {
        gap: 9px !important;
    }

    .masar-topbar .tb-item {
        gap: 4px !important;
    }

    .masar-topbar .tb-item a {
        font-size: 11.5px !important;
    }

    .masar-topbar .tb-item img {
        width: 13px !important;
        height: 13px !important;
        min-width: 13px !important;
        min-height: 13px !important;
        flex-basis: 13px !important;
    }

    .masar-header-main .container-xxl {
        padding: 0 14px !important;
    }

    header .logo img {
        width: 80px !important;
        max-width: 80px !important;
    }

    header .navbar-toggler {
        width: 34px !important;
        height: 34px !important;
        min-width: 34px !important;
        min-height: 34px !important;
    }

    header .navbar-toggler-icon {
        width: 26px !important;
        height: 20px !important;
    }

    header .navbar-toggler-icon::before {
        width: 26px !important;
        box-shadow: 0 8px 0 #111111, 0 16px 0 #111111 !important;
    }
}

@media (max-width: 767.98px) {
    .masar-topbar .tb-email {
        display: none !important;
    }
}

@media (max-width: 767.98px) {
    header.sticky-top,
    header.sticky-top.fixed-top,
    .sticky-top {
        position: static !important;
        top: auto !important;
        right: auto !important;
        left: auto !important;
        width: 100% !important;
        z-index: auto !important;
    }

    body {
        padding-top: 0 !important;
    }
}

@media (max-width: 767.98px) {
    .masar-header-main {
        height: 38px !important;
        min-height: 38px !important;
        padding: 0 !important;
    }

    .masar-header-main .container-xxl,
    .masar-header-main .container-xxl > .d-flex,
    header .header_rgt {
        height: 38px !important;
        min-height: 38px !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        align-items: center !important;
    }

    header .logo img {
        width: 62px !important;
        max-width: 62px !important;
        max-height: 28px !important;
        object-fit: contain !important;
    }

    header .navbar-toggler {
        width: 27px !important;
        height: 27px !important;
        min-width: 27px !important;
        min-height: 27px !important;
        padding: 0 !important;
    }

    header .navbar-toggler-icon {
        width: 21px !important;
        height: 16px !important;
    }

    header .navbar-toggler-icon::before {
        width: 21px !important;
        height: 2px !important;
        top: 0 !important;
        box-shadow:
            0 6px 0 #111111,
            0 12px 0 #111111 !important;
    }
}

@media (max-width: 767.98px) {
    body {
        padding-top: 0 !important;
    }

    header,
    .masar-header-main {
        margin-bottom: 0 !important;
    }

    .banner_area,
    .fluid_container,
    #fluid_dg_wrap_1 {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    .header-spacer,
    .header-placeholder {
        display: none !important;
        height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }
}



/* ===== Desktop dropdown/search overflow fix only ===== */
@media (min-width: 992px) {
    header.sticky-top,
    header .masar-header-main,
    header .masar-header-main > .container-xxl,
    header .masar-header-main > .container-xxl > .d-flex,
    header .header_rgt,
    header .desktop-main-menu,
    header .desktop-main-menu .navbar,
    header .desktop-main-menu .navbar-nav,
    header .desktop-main-menu .nav-item,
    header .srch_sect,
    header .header-search-box {
        overflow: visible !important;
    }

    header .masar-courses-dropdown .masar-courses-box,
    header .header-search-box .srch_area {
        z-index: 100000 !important;
    }
}


@media (max-width: 767.98px) {
    header .menu .navbar > div {
        gap: 8px !important;
        direction: ltr !important;
    }

    .mobile-header-cart-btn {
        position: relative !important;
        width: 29px !important;
        height: 29px !important;
        min-width: 29px !important;
        min-height: 29px !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 50% !important;
        background: transparent !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-decoration: none !important;
        box-shadow: none !important;
    }

    .mobile-header-cart-btn img {
        width: 24px !important;
        height: 24px !important;
        display: block !important;
        object-fit: contain !important;
    }

    .mobile-header-cart-badge {
        position: absolute !important;
        top: -5px !important;
        right: -6px !important;
        width: 18px !important;
        height: 18px !important;
        padding: 0 !important;
        border: 2px solid #ffffff !important;
        border-radius: 50% !important;
        background: #e11d48 !important;
        color: #ffffff !important;
        font-size: 10px !important;
        font-weight: 800 !important;
        line-height: 1 !important;
        display: flex;
        align-items: center !important;
        justify-content: center !important;
        z-index: 3 !important;
    }
}


@media (max-width: 767.98px) {
    header .menu {
        width: auto !important;
        min-width: 66px !important;
        flex: 0 0 auto !important;
        overflow: visible !important;
    }

    header .menu .navbar {
        width: auto !important;
        min-width: 66px !important;
        overflow: visible !important;
    }

    header .menu .navbar > div {
        width: auto !important;
        min-width: 66px !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 10px !important;
        direction: ltr !important;
        overflow: visible !important;
    }

    header .menu .navbar-toggler {
        position: relative !important;
        inset: auto !important;
        flex: 0 0 27px !important;
        order: 1 !important;
    }

    header .menu .mobile-header-cart-btn {
        position: relative !important;
        inset: auto !important;
        flex: 0 0 29px !important;
        order: 2 !important;
        transform: none !important;
    }
}


@media (max-width: 767.98px) {
    header.sticky-top {
        position: relative !important;
        overflow: visible !important;
    }

    header .menu {
        min-width: 104px !important;
        overflow: visible !important;
    }

    header .menu .navbar {
        min-width: 104px !important;
        overflow: visible !important;
    }

    header .menu .navbar > div {
        min-width: 104px !important;
        gap: 8px !important;
        overflow: visible !important;
    }

    .mobile-header-search-btn {
        position: relative !important;
        width: 29px !important;
        height: 29px !important;
        min-width: 29px !important;
        min-height: 29px !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 50% !important;
        background: transparent !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-shadow: none !important;
        flex: 0 0 29px !important;
        order: 3 !important;
        cursor: pointer !important;
    }

    .mobile-header-search-btn {
        background-color: transparent !important;
        background-image: none !important;
        color: inherit !important;
        text-decoration: none !important;
        appearance: none !important;
        -webkit-appearance: none !important;
        overflow: visible !important;
    }

    .mobile-header-search-btn::before,
    .mobile-header-search-btn::after {
        content: none !important;
        display: none !important;
        background: none !important;
        box-shadow: none !important;
    }

    .mobile-header-search-btn img {
        width: 22px !important;
        height: 22px !important;
        min-width: 22px !important;
        min-height: 22px !important;
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        object-fit: contain !important;
        background: transparent !important;
        filter: none !important;
    }

    .mobile-header-search-panel {
        position: absolute !important;
        top: 100% !important;
        left: 12px !important;
        right: 12px !important;
        width: auto !important;
        z-index: 100000 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .mobile-header-search-panel form {
        margin: 0 !important;
        padding: 0 !important;
    }

    .mobile-header-search-bar {
        width: 100% !important;
        min-height: 50px !important;
        display: flex !important;
        align-items: stretch !important;
        direction: ltr !important;
        background: #ffffff !important;
        border: 1px solid #e5e7eb !important;
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16) !important;
        overflow: hidden !important;
    }

    .mobile-header-search-submit,
    .mobile-header-search-category,
    .mobile-header-search-input {
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        outline: 0 !important;
        box-shadow: none !important;
        background: #ffffff !important;
    }

    .mobile-header-search-submit {
        flex: 0 0 46px !important;
        width: 46px !important;
        min-width: 46px !important;
        max-width: 46px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-right: 1px solid #e9e9e9 !important;
        cursor: pointer !important;
    }

    .mobile-header-search-submit img {
        width: 18px !important;
        height: 18px !important;
        display: block !important;
    }

    .mobile-header-search-category {
        flex: 0 0 112px !important;
        width: 112px !important;
        min-width: 112px !important;
        max-width: 112px !important;
        display: flex !important;
        align-items: stretch !important;
        border-right: 1px solid #e9e9e9 !important;
    }

    .mobile-header-search-input {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        display: flex !important;
        align-items: stretch !important;
    }

    .mobile-header-search-submit,
    .mobile-header-search-category select,
    .mobile-header-search-input input {
        height: 50px !important;
        min-height: 50px !important;
        border: 0 !important;
        outline: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        background: #ffffff !important;
        color: #333333 !important;
    }

    .mobile-header-search-category select {
        width: 100% !important;
        padding: 0 8px !important;
        text-align: center !important;
        text-align-last: center !important;
        direction: rtl !important;
        font-size: 12px !important;
        appearance: none !important;
        -webkit-appearance: none !important;
        cursor: pointer !important;
    }

    .mobile-header-search-input input {
        width: 100% !important;
        min-width: 0 !important;
        padding: 0 10px !important;
        text-align: right !important;
        direction: rtl !important;
        font-size: 13px !important;
    }

    .mobile-header-search-submit:focus,
    .mobile-header-search-submit:active,
    .mobile-header-search-category select:focus,
    .mobile-header-search-category select:active,
    .mobile-header-search-input input:focus,
    .mobile-header-search-input input:active {
        outline: 0 !important;
        box-shadow: none !important;
    }
}

@media (max-width: 360px) {
    header .menu,
    header .menu .navbar,
    header .menu .navbar > div {
        min-width: 98px !important;
    }

    header .menu .navbar > div {
        gap: 6px !important;
    }

    .mobile-header-search-btn {
        width: 27px !important;
        height: 27px !important;
        min-width: 27px !important;
        min-height: 27px !important;
        flex-basis: 27px !important;
    }

    .mobile-header-search-btn img {
        width: 20px !important;
        height: 20px !important;
    }

    .mobile-header-search-panel {
        left: 8px !important;
        right: 8px !important;
    }

    .mobile-header-search-submit {
        flex-basis: 42px !important;
        width: 42px !important;
        min-width: 42px !important;
        max-width: 42px !important;
    }

    .mobile-header-search-category {
        flex-basis: 98px !important;
        width: 98px !important;
        min-width: 98px !important;
        max-width: 98px !important;
    }

    .mobile-header-search-category select {
        font-size: 11px !important;
        padding: 0 5px !important;
    }

    .mobile-header-search-input input {
        font-size: 12px !important;
        padding: 0 8px !important;
    }
}


/* ===== MasarTech tablet duplicate controls fix ===== */
@media (max-width: 991.98px) {
    header .srch_sect {
        display: none !important;
    }
}
