.alsarhan-menu-lock {
    overflow: hidden;
}

.alsarhan-hamburger-menu-widget,
.alsarhan-hamburger-menu-widget * {
    box-sizing: border-box;
}

/*
 * The header navigation is intentionally hamburger/off-canvas at every
 * Elementor breakpoint. There is no desktop/tablet horizontal-menu mode.
 */
.alsarhan-hamburger-menu-widget {
    display: block;
}

.alsarhan-hamburger-menu-widget .alsarhan-menu-toggle {
    display: inline-flex !important;
}

.alsarhan-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    color: #1f2937;
    min-height: 44px;
    cursor: pointer;
    line-height: 1;
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.alsarhan-menu-toggle:hover,
.alsarhan-menu-toggle:focus {
    transform: translateY(-1px);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
    outline: none;
}

.alsarhan-menu-toggle:focus-visible,
.alsarhan-menu-close:focus-visible,
.alsarhan-offcanvas-menu-list a:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

.alsarhan-hamburger-lines {
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
    width: 20px;
    flex: 0 0 20px;
}

.alsarhan-hamburger-lines span {
    display: block;
    height: 2px;
    width: 100%;
    border-radius: 999px;
    background-color: currentColor;
}

.alsarhan-menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 999998;
    background: rgba(15, 23, 42, 0.55);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 220ms ease, visibility 220ms ease;
}

.alsarhan-menu-panel {
    --alsarhan-panel-width: 380px;
    position: fixed;
    top: 0;
    bottom: 0;
    width: var(--alsarhan-panel-width);
    max-width: 88vw;
    z-index: 999999;
    background: #ffffff;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 24px;
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.28);
    opacity: 0;
    visibility: hidden;
    transition: transform 260ms ease, opacity 220ms ease, visibility 220ms ease;
}

.alsarhan-menu-side-right .alsarhan-menu-panel {
    right: 0;
    left: auto;
    transform: translateX(104%);
    border-radius: 24px 0 0 24px;
}

.alsarhan-menu-side-left .alsarhan-menu-panel {
    left: 0;
    right: auto;
    transform: translateX(-104%);
    border-radius: 0 24px 24px 0;
}

.alsarhan-hamburger-menu-widget.is-open .alsarhan-menu-overlay {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.alsarhan-hamburger-menu-widget.is-open .alsarhan-menu-panel {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
}

.alsarhan-menu-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 18px;
    margin-bottom: 10px;
    border-bottom: 1px solid #eef2f7;
}

.alsarhan-menu-panel-title {
    margin: 0;
    font-size: 22px;
    line-height: 1.35;
    color: #111827;
    font-weight: 800;
}

.alsarhan-menu-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    background: #ffffff;
    color: #111827;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    transition: background-color 180ms ease, transform 180ms ease;
}

.alsarhan-menu-close:hover,
.alsarhan-menu-close:focus {
    background: #f9fafb;
    transform: rotate(90deg);
}

.alsarhan-offcanvas-nav {
    padding-top: 8px;
}

.alsarhan-offcanvas-menu-list,
.alsarhan-offcanvas-menu-list ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.alsarhan-offcanvas-menu-list li {
    margin: 0;
    padding: 0;
}

.alsarhan-offcanvas-menu-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    padding: 13px 14px;
    margin: 3px 0;
    border-radius: 14px;
    color: #1f2937;
    text-decoration: none;
    font-weight: 700;
    line-height: 1.55;
    transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.alsarhan-offcanvas-menu-list a:hover,
.alsarhan-offcanvas-menu-list a:focus {
    background: #f0f9ff;
    color: #0ea5e9;
    transform: translateX(2px);
    text-decoration: none;
}

.alsarhan-menu-panel[dir="rtl"] .alsarhan-offcanvas-menu-list a:hover,
.alsarhan-menu-panel[dir="rtl"] .alsarhan-offcanvas-menu-list a:focus {
    transform: translateX(-2px);
}

.alsarhan-offcanvas-menu-list .sub-menu {
    margin: 2px 16px 8px 0;
    padding-inline-start: 10px;
    border-inline-start: 2px solid #eef2f7;
}

.alsarhan-menu-panel[dir="ltr"] .alsarhan-offcanvas-menu-list .sub-menu {
    margin: 2px 0 8px 16px;
}

.alsarhan-offcanvas-menu-list .sub-menu a {
    font-size: 0.94em;
    font-weight: 600;
    opacity: 0.9;
    padding-top: 10px;
    padding-bottom: 10px;
}

.alsarhan-menu-editor-notice {
    padding: 14px 16px;
    border-radius: 14px;
    background: #fff7ed;
    color: #9a3412;
    line-height: 1.7;
    font-weight: 600;
}

/* --------------------------------------------------------------------------
 * Visual polish for the production off-canvas menu.
 * Keep this block after the base rules so theme/Elementor button defaults do
 * not leak pink/red close-button styling into the header drawer.
 * -------------------------------------------------------------------------- */

.alsarhan-menu-overlay {
    background: rgba(17, 35, 59, .56);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.alsarhan-menu-panel {
    border: 1px solid rgba(29, 78, 216, .07);
    background:
        radial-gradient(circle at 88% 6%, rgba(23, 105, 224, .07), transparent 30%),
        #ffffff;
    box-shadow: -24px 0 70px rgba(20, 42, 74, .18), 0 20px 70px rgba(20, 42, 74, .12);
    scrollbar-width: thin;
    scrollbar-color: #c9d8ef transparent;
}

.alsarhan-menu-side-left .alsarhan-menu-panel {
    box-shadow: 24px 0 70px rgba(20, 42, 74, .18), 0 20px 70px rgba(20, 42, 74, .12);
}

.alsarhan-menu-panel::-webkit-scrollbar {
    width: 6px;
}

.alsarhan-menu-panel::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: #c9d8ef;
}

.alsarhan-menu-panel-header {
    min-height: 66px;
    padding-bottom: 16px;
    margin-bottom: 18px;
    border-bottom-color: #e8eef7;
}

.alsarhan-menu-panel-title {
    position: relative;
    color: #132238;
    letter-spacing: -.01em;
}

.alsarhan-menu-panel-title::after {
    content: "";
    display: block;
    width: 34px;
    height: 3px;
    margin-top: 8px;
    border-radius: 999px;
    background: #1769e0;
}

.alsarhan-menu-panel[dir="rtl"] .alsarhan-menu-panel-title::after {
    margin-inline-start: 0;
    margin-inline-end: 0;
}

.alsarhan-menu-close,
.alsarhan-menu-close:hover,
.alsarhan-menu-close:focus,
.alsarhan-menu-close:active {
    -webkit-appearance: none !important;
    appearance: none !important;
    text-decoration: none !important;
}

.alsarhan-menu-close {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    padding: 0 !important;
    border: 1px solid #dbe7f6 !important;
    border-radius: 14px !important;
    background: #f7faff !important;
    color: #1769e0 !important;
    font-size: 24px !important;
    font-weight: 500 !important;
    line-height: 1 !important;
    box-shadow: 0 8px 18px rgba(33, 83, 150, .10) !important;
    outline: none;
    transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.alsarhan-menu-close:hover,
.alsarhan-menu-close:focus {
    border-color: #1769e0 !important;
    background: #1769e0 !important;
    color: #ffffff !important;
    box-shadow: 0 10px 22px rgba(23, 105, 224, .24) !important;
    transform: rotate(90deg) scale(1.04);
}

.alsarhan-menu-close:focus-visible {
    outline: 3px solid rgba(23, 105, 224, .22) !important;
    outline-offset: 3px !important;
}

.alsarhan-offcanvas-nav {
    padding-top: 0;
}

.alsarhan-offcanvas-menu-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.alsarhan-offcanvas-menu-list a {
    position: relative;
    min-height: 50px;
    padding: 13px 15px;
    margin: 0;
    border: 1px solid transparent;
    border-radius: 13px;
    color: #22324a;
    background: transparent;
    font-weight: 750;
    box-shadow: none;
}

.alsarhan-offcanvas-menu-list a::before {
    content: "";
    position: absolute;
    inset-block: 11px;
    inset-inline-start: 0;
    width: 3px;
    border-radius: 999px;
    background: #1769e0;
    opacity: 0;
    transform: scaleY(.35);
    transition: opacity 180ms ease, transform 180ms ease;
}

.alsarhan-offcanvas-menu-list a:hover,
.alsarhan-offcanvas-menu-list a:focus {
    border-color: #dce8f7;
    background: #f6faff;
    color: #1769e0;
    box-shadow: 0 8px 20px rgba(33, 83, 150, .06);
}

.alsarhan-offcanvas-menu-list a:hover::before,
.alsarhan-offcanvas-menu-list a:focus::before,
.alsarhan-offcanvas-menu-list .current-menu-item > a::before,
.alsarhan-offcanvas-menu-list .current_page_item > a::before {
    opacity: 1;
    transform: scaleY(1);
}

.alsarhan-offcanvas-menu-list .current-menu-item > a,
.alsarhan-offcanvas-menu-list .current_page_item > a,
.alsarhan-offcanvas-menu-list .current-menu-ancestor > a {
    border-color: #d8e6f8;
    background: linear-gradient(135deg, #f4f9ff 0%, #edf5ff 100%);
    color: #1769e0;
}

.alsarhan-offcanvas-menu-list .sub-menu {
    margin-top: 4px;
    margin-bottom: 6px;
    border-inline-start-color: #dce8f7;
}

.alsarhan-offcanvas-menu-list .sub-menu a {
    min-height: 42px;
    color: #52647c;
    font-weight: 650;
}

@media (min-width: 768px) {
    .alsarhan-hamburger-menu-widget .alsarhan-menu-toggle {
        display: inline-flex !important;
    }
}

@media (min-width: 1025px) {
    .alsarhan-hamburger-menu-widget .alsarhan-menu-toggle {
        display: inline-flex !important;
    }
}

@media (max-width: 767px) {
    .alsarhan-hamburger-menu-widget .alsarhan-menu-toggle {
        display: inline-flex !important;
    }

    .alsarhan-menu-panel {
        width: min(var(--alsarhan-panel-width), 92vw);
        max-width: 92vw;
        padding: 20px;
    }

    .alsarhan-menu-panel-title {
        font-size: 20px;
    }

    .alsarhan-menu-side-right .alsarhan-menu-panel,
    .alsarhan-menu-side-left .alsarhan-menu-panel {
        border-radius: 0;
    }

    .alsarhan-menu-panel-header {
        min-height: 60px;
        margin-bottom: 14px;
    }

    .alsarhan-menu-close {
        width: 42px !important;
        height: 42px !important;
        min-width: 42px !important;
        min-height: 42px !important;
        border-radius: 12px !important;
    }

    .alsarhan-offcanvas-menu-list a {
        min-height: 48px;
        padding: 12px 13px;
    }
}
