@font-face {
    font-family: 'myb';
    src: url(../fonts/myb.ttf)
}

@font-face {
    font-family: 'myr';
    src: url(../fonts/myr.ttf)
}

@media only screen and (max-width: 480px) {
    #sp-header {
    height: 86px !important;}
    
    .article-list .article .article-intro-image{margin-top:60px !important; padding-top:4px !important;}
    .rssocial-icons {
        display: none;
    }
    .logo-image {
        margin-right: 55px !important;
    }
    .rssocial-icons ul {
        padding-top: 0px !important;
    }
    .article-details .article-header h1,
    .article-details .article-header h2 {
        font-size: 22px !important;
        line-height: 35px !important;
    }
    .col-lg-12 .article-details {
        padding: 6px 13px !important;
    }
    .form-control{
        font-size: 12px !important;
    }
    #sp-bottom .sp-module ul > li > a {
        padding: 13px 0px !important;
        line-height:34px !important;
    }
    .sp-slider .sp-item .sp-background {
        background-size: 127% !important;
        background-repeat: no-repeat;
        top: 44px;
    }
    .readalso h3 {
        color: #00C1D4 !important;
    }
    .readalso {
        padding: 22px 0px !important;
    }
    .pager {
        margin: 2rem 0 42px 0 !important;
    }

/* SLIDESHOW CSS*/

.sp-slider-content-align-left, .sp-slider-image-align-left {
    padding-top: 70px !important;
}    
    .tags {
    margin:10px 0 !important;
}

.article-details .article-header h1,
.article-details .article-header h2 {
    padding-top: 80px !important;
}
.tags > li a{margin:4px !important;}

}

/* End mobile CSS*/

html {
    --scrollbarBG: rgba(199, 199, 199, 0.38);
    --thumbBG: #00C1D4;
}

body::-webkit-scrollbar {
    width: 11px;
}

body {
    scrollbar-width: thin;
    scrollbar-color: var(--thumbBG) var(--scrollbarBG);
}

body::-webkit-scrollbar-track {
    background: var(--scrollbarBG);
}


/* ------------------------- menu mobile ---------------------------*/
.offcanvas-menu .offcanvas-inner .sp-module ul > li a, .offcanvas-menu .offcanvas-inner .sp-module ul > li span{
    padding: 10px 18px; !important;}

.offcanvas-menu .offcanvas-inner .sp-module ul > li.menu-parent > a > .menu-toggler:after, .offcanvas-menu .offcanvas-inner .sp-module ul > li.menu-parent > .menu-separator > .menu-toggler:after {
    right: 16px;
}
.offcanvas-menu .offcanvas-inner .sp-module ul > li ul li {
    background-color: #none !important;
}
/* -------------------------End menu mobile ---------------------------*/

body.rtl.offcanvs-position-left .body-wrapper {
    right: 0 !important;
    overflow: hidden !important;
    position: initial !important;
}

.offcanvas-menu .offcanvas-inner .sp-module ul > li a, .offcanvas-menu .offcanvas-inner .sp-module ul > li span{
    border-bottom:none !important;
    
}
.offcanvas-menu .offcanvas-inner .sp-module ul > li{
    border-bottom: 1px solid rgba(166, 167, 179, 0.5) !important;
}

}


/*menu*/
/* .offcanvas-menu .offcanvas-inner .sp-module ul > li.menu-parent > a > .menu-toggler:after, .offcanvas-menu .offcanvas-inner .sp-module ul > li.menu-parent > .menu-separator > .menu-toggler:after {

    right: 16px;}

body.rtl .close-offcanvas {
    top: 33px;
}

.offcanvas-menu .offcanvas-inner .sp-module ul>li a,
.offcanvas-menu .offcanvas-inner .sp-module ul>li span {
    padding-left: 33px !important;
    padding-right: 44px !important;
}
*/


body::-webkit-scrollbar-thumb {
    background-color: var(--thumbBG);
    border-radius: 3px;
    border: 3px solid var(--scrollbarBG);
}

.col-lg-12 .article-details {
    padding: 0 200px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'myb' !important;
}

p,
body {
    font-family: 'myr'!important;
}

.sp-slider-content-align-left, .sp-slider-image-align-left {
    padding-top: 180px ;
}

.article-info span.reading-time-wrap {
    display: none;
}

.view-category .container .blog {
    padding-right: 20px
}

.readalso h3 {
    color: #00C1D4;
}

.readalso {
    padding: 0px 15%;
}

.pager {
    margin: 2rem 0 0px 0;
}

.logo-image {
    width: 220px !important
}

#sp-main-body {
    padding: 110px 0px 90px 99px
}

#sp-bottom {
    padding: 50px 0 50px
}

.body-innerwrapper:after {
    content: "";
    position: absolute;
    top: 70px;
    left: 0;
    right: 0px;
    height: 550px;
    background: linear-gradient(180deg, #DAE1E7 0%, #fff 100%);
    z-index: -1;
}


/*Menu main & sub*/

.sp-megamenu-parent .sp-dropdown li.sp-menu-item {
    background-color: rgba(240, 240, 240, 0.8);
    padding-right: 6px;
    margin: 2px;
    line-height: 34px;
}

.sp-megamenu-parent .sp-dropdown li.sp-menu-item:hover {
    border-right: solid #EE2375 5px;
    transition: 0.7s;
}

.radius {
    border-radius: 10px
}

#sp-main-body {
    padding: 110px 0px 90px 90px
}


/*search compnent */

.form-check-inline .form-check-input {
    margin-left: 9px;
}

input[type=checkbox], input[type=radio] {
    margin-left: 7px;
}

/*Menu main & sub*/

.article-list.articles-leading .article a .article-intro-image > img {
    border-radius: 0 9px 9px 0
}

.blog .items-row .item .newsberg-article-content .newsberg-article-introtext > p {}

.article-list.articles-leading .article .article-body .article-header > h2 {
    line-height: 26px;
}

.article-list .article .article-introtext > p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
}

.article-list .article .article-header h2 a {
    font-size: 22px;
    line-height: 36px
}

.article-details .article-header h1 {
    font-size: 28px;
    line-height: 46px
}

.article-list .article .article-header h1 a,
.article-list .article .article-header h2 a {
    font-size: 22px;
    line-height: 36px
}

.article-list .article:hover .article-intro-image > img {
    filter: contrast(112.2%);
}

.left-radious {
    border-radius: 0px 9px 9px 0px;
}

.right-radious {
    border-radius: 9px 0px 0px 9px;
}

.scrollable-element {
    scrollbar-color: #00C1D4;
}

.fortune-article-list .sppb-addon-article .sppb-article-img-wrap img {
    border-radius: 0px 7px 7px 0px;
    padding-left: 10px;
}

.fortune-article-list .sppb-addon-article {
    padding: 20px 10px 20px 20px;
}

.sp-megamenu-parent > li.active > a,
.sp-megamenu-parent > li.active:hover > a {
    font-family: 'myr';
}

.newss .acym_module_form input[type="email"]:not(.form-control) {
    padding: 12px 20px 12px 20px;
    border-radius: 0px;
    background-color: #414850;
    color: rgba(131, 131, 131, 1.00);
    direction: rtl;
    text-align: left;
}

.newss .acym_module_form .btn.btn-primary {
    border-radius: 0px;
    padding: 16px 30px 16px 30px;
    margin-right: 0px !important;
}

.acym_introtext {
    font-size: 14px !important;
    padding-bottom: 12px;
    text-align: right;
    color: #a2a2a2;
}

.article-details .article-info {
    padding-right: 30px;
}

#sp-top-bar {
    display: none;
}

#sp-header {
    padding-bottom: 44px;
    background-color: #fff !important;
    background: #fff !important;
}

.body-innerwrapper {
    padding-top: 0px;
}

.sp-page-title {
    padding-top: 55px;
}

.article-details .article-header h1,
.article-details .article-header h2 {
    padding-top: 70px;
    padding-bottom: 30px;
    width: 100%;
}

.fortune-feature-article .sppb-addon-article .sppb-article-info-wrap h3 a {
    font-size: 20px;
}

#sp-left .sp-module ul > li, #sp-right .sp-module ul > li {
    margin: 8px 6px;
    border-bottom: #ccc dotted 1px;
}

#sp-left .sp-module ul > li, #sp-right .sp-module ul > li:hover {
    background-color:#e4e2e2;
}
#sp-left .sp-module, #sp-right .sp-module {
    padding: 22px 0;}

#sppb-addon-1606122520751 .sp-slider.dot-controller-line .sp-dots ul li {
    color: rgba(255, 255, 255, 0.28);
}

#sp-bottom {
    line-height: 12px;
}

.sppb-form-group label,
.form-group label {
    font-size: 17px;
}

.view-article #sp-right,
.view-article #sp-left {
    display: initial !important;
}

.article-details #sp-right,
.article-details #sp-left {
    display: initial !important;
}

.input-group>.input-group-append>.btn,
.input-group > .form-control:not(:last-child) {
    height: 44px;
    margin-left: 5px;
    margin-right: 5px;
    margin-top: 33px;
    border-radius: 0px;
}

select.form-control:not([multiple]),
select:not(.form-control):not([multiple]),
select.inputbox:not([multiple]) {
    padding: 7px;
    margin-top: 20px;
    border-radius: 0px;
}

.list-group-item-action a {
    font-size: 18px;
}

.article-list.articles-leading .article p {
    display: none;
    padding: 16px
}

span.published {
    display: block;
}

.sp-module ul > li > a{ line-height:34px !important;}
#sp-bottom .sp-module ul > li > a {
    font-size: 14px;
    padding: 4px 0px;
    line-height:34px !important;
}


/*serach*/

.search img {
    height: 33px;
    padding-top: 12px;
}


/*social media*/

.rssocial-icons ul {
    padding-top: 550% !important;
}


/*menu*/


/*---------------------------------------------------------------------*/



/*--------------------------------------------------------------------*/


/*left bad color solve*/


select:not(.form-control):not([multiple]),
select.inputbox:not([multiple]),
select:not([multiple]) {
    -webkit-appearance: none;
    padding: 10px 20px 10px 20px;
    background-position: 1% 15px;
    background-size: 14px;
    border-radius: 3px;
}

.convertforms.cf-success .cf-response {
    background-color: #00C1D4;
}

.sp-scroll-up {
    background: rgba(0, 193, 212, 0.60);
}

.owl-carousel .owl-nav .owl-prev,
.owl-carousel .owl-nav .owl-next {
    top: 55px !important;
    border: none;
}

.owl-carousel .owl-stage-outer {
    position: initial;
}

.sppb-addon-accordion .sppb-panel .sppb-panel-title {
    font-weight: bold;
    font-size: 16px;
    line-height: 23px;
}

.sppb-addon-accordion .sppb-panel .sppb-panel-heading {
    padding: 20px;
}

.fa-chevron-right:before {
    color: #00C1D4;
    font-size: 12px;
}

.fa-angle-right:before {
    display: none;
}

.sppb-panel-info>.sppb-panel-heading {
    background: #f7f7f7 !important;
    color: #00C1D4;
}

.tags {
    margin:30px 0;
}

/* =========================================================
   Human Access - News / Blog Article List Cards
   Add this at the very end of Custom CSS
========================================================= */

.view-category .article-list .article,
.article-list.articles-leading .article {
    background: #ffffff !important;
    border: 1px solid rgba(0, 193, 212, 0.16) !important;
    border-radius: 18px !important;
    overflow: hidden !important;
    margin-bottom: 30px !important;
    box-shadow: 0 8px 24px rgba(24, 102, 127, 0.07) !important;
    transition: box-shadow 0.30s ease, border-color 0.30s ease, transform 0.30s ease !important;
}

.view-category .article-list .article:hover,
.article-list.articles-leading .article:hover {
    transform: translateY(-4px) !important;
    border-color: rgba(0, 193, 212, 0.38) !important;
    box-shadow: 0 16px 38px rgba(24, 102, 127, 0.13) !important;
}

/* Image */
.view-category .article-list .article .article-intro-image,
.article-list.articles-leading .article .article-intro-image {
    margin-top: 0 !important;
    padding-top: 0 !important;
    overflow: hidden !important;
    background: #f6fafb !important;
}

.view-category .article-list .article .article-intro-image img,
.article-list.articles-leading .article .article-intro-image img {
    width: 100% !important;
    display: block !important;
    border-radius: 0 !important;
    transition: transform 0.40s ease, filter 0.40s ease !important;
  margin-bottom: 20px
}

.view-category .article-list .article:hover .article-intro-image img,
.article-list.articles-leading .article:hover .article-intro-image img {
    transform: scale(1.045) !important;
    filter: brightness(0.97) contrast(108%) !important;
}

/* Content Area */
.view-category .article-list .article .article-body,
.article-list.articles-leading .article .article-body {
    padding: 22px 24px 24px !important;
    text-align: right !important;
    direction: rtl !important;
}

/* Meta Info */
.view-category .article-list .article .article-info,
.article-list.articles-leading .article .article-info {
    margin-bottom: 10px !important;
    color: #69757D !important;
    font-size: 13px !important;
}

.view-category .article-list .article .article-info span,
.article-list.articles-leading .article .article-info span {
    color: #69757D !important;
    font-size: 13px !important;
}

/* Category Badge */
.view-category .article-list .article .category-name,
.article-list.articles-leading .article .category-name {
    display: inline-block !important;
    margin-left: 8px !important;
}

.view-category .article-list .article .category-name a,
.article-list.articles-leading .article .category-name a {
    display: inline-block !important;
    padding: 4px 12px !important;
    border-radius: 50px !important;
    background: rgba(0, 193, 212, 0.12) !important;
    color: #008FA0 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    transition: all 0.25s ease !important;
}

.view-category .article-list .article:hover .category-name a,
.article-list.articles-leading .article:hover .category-name a {
    background: #00C1D4 !important;
    color: #ffffff !important;
}

/* Title */
.view-category .article-list .article .article-header h1,
.view-category .article-list .article .article-header h2,
.article-list.articles-leading .article .article-header h1,
.article-list.articles-leading .article .article-header h2 {
    margin: 0 !important;
    padding: 0 !important;
}

.view-category .article-list .article .article-header h1 a,
.view-category .article-list .article .article-header h2 a,
.article-list.articles-leading .article .article-header h1 a,
.article-list.articles-leading .article .article-header h2 a {
    color: #263238 !important;
    font-size: 19px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    transition: color 0.25s ease !important;
}

.view-category .article-list .article:hover .article-header h1 a,
.view-category .article-list .article:hover .article-header h2 a,
.article-list.articles-leading .article:hover .article-header h1 a,
.article-list.articles-leading .article:hover .article-header h2 a {
    color: #00C1D4 !important;
}

/* Hide reading time if present */
.view-category .article-list .article .reading-time-wrap,
.article-list.articles-leading .article .reading-time-wrap {
    display: none !important;
}


/* Mobile */
@media only screen and (max-width: 480px) {
    .view-category .article-list .article,
    .article-list.articles-leading .article {
        border-radius: 15px !important;
        margin-bottom: 22px !important;
    }

    .view-category .article-list .article .article-intro-image,
    .article-list.articles-leading .article .article-intro-image {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    .view-category .article-list .article .article-body,
    .article-list.articles-leading .article .article-body {
        padding: 17px 16px 19px !important;
    }

    .view-category .article-list .article .article-header h1 a,
    .view-category .article-list .article .article-header h2 a,
    .article-list.articles-leading .article .article-header h1 a,
    .article-list.articles-leading .article .article-header h2 a {
        font-size: 18px !important;
        line-height: 1.25 !important;
    }

    .view-category .article-list .article .article-info,
    .article-list.articles-leading .article .article-info {
        font-size: 12px !important;
    }
}

/* Remove unwanted gap under article images */
/* Human Access - Fix article image bottom gap */
.article-list .article .article-intro-image {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    overflow: hidden !important;
}

.article-list .article .article-intro-image img,
.article-list .article .article-featured-video img,
.article-list .article .article-featured-audio img,
.article-list .article .article-feature-gallery img {
    margin-bottom: 0 !important;
    display: block !important;
    width: 100% !important;
    border-radius: 0 !important;
}
.article-list .article .article-intro-image .img {
    margin-bottom: 0px !important;
}

/* Mobile only - Category and Article details */
@media only screen and (max-width: 480px) {

    .view-category .container .blog {
        padding-right: 0 !important;
        margin-top: 90px !important;
    }

    .article-details .article-header h1,
    .article-details .article-header h2 {
        padding-top: 10px !important;
        font-size: 16px !important;
        line-height: 27px !important;
    }

    .article-details .article-info {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        gap: 20px !important;
        margin: 0 !important;
        border-bottom: 1px solid #edf2f7 !important;
        padding-bottom: 6px !important;
    }

    .col-lg-12 .article-details {
        margin: 70px 10px 0px 0px !important
    }

    .article-details h1 {
        margin-bottom: .1rem !important;
    }
  .article-details .article-info {
    padding-right: 0px !important;
}
.article-details .article-info {
    margin: 0 0 0 0 !important;
}
}
.article-details .article-full-image img {
    width: 1111px;
}

/* Human Access Page Loader */
html.ha-loader-active,
html.ha-loader-active body {
    overflow: hidden;
}

/* الطبقة الشفافة */
html.ha-loader-active::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    background: rgba(0, 193, 212, 0.14);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    opacity: 1;
    visibility: visible;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    pointer-events: none;
}

/* الشعار الدائري */
html.ha-loader-active::after {
    content: "";
    position: fixed;
    top: 50%;
    left: 50%;
    width: 74px;
    height: 74px;
    transform: translate(-50%, -50%);
    z-index: 2147483002;
    border-radius: 50%;
    background-color: #ffffff;
    background-image: url("https://humanaccess.org/a/images/banners/favicon.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    box-shadow: 0 12px 35px rgba(0, 105, 116, 0.22);
    opacity: 1;
    visibility: visible;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    pointer-events: none;
}

/* دائرة اللودينق حول الشعار */
html.ha-loader-active body::after {
    content: "";
    position: fixed;
    top: 50%;
    left: 50%;
    width: 112px;
    height: 112px;
    margin-top: -56px;
    margin-left: -56px;
    z-index: 2147483001;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.85);
    border-top-color: #00C1D4;
    border-inline-end-color: rgba(0, 193, 212, 0.45);
    animation: haLoaderSpin 0.85s linear infinite;
    box-shadow: 0 14px 45px rgba(0, 105, 116, 0.16);
    opacity: 1;
    visibility: visible;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    pointer-events: none;
}

/* إخفاء اللودينق */
html.ha-loader-hiding::before,
html.ha-loader-hiding::after,
html.ha-loader-hiding body::after {
    opacity: 0;
    visibility: hidden;
}

@keyframes haLoaderSpin {
    to {
        transform: rotate(360deg);
    }
}

/* احترام إعدادات تقليل الحركة */
@media (prefers-reduced-motion: reduce) {
    html.ha-loader-active body::after {
        animation: none;
    }
}

/* تصغير بسيط للجوال */
@media (max-width: 480px) {
    html.ha-loader-active::after {
        width: 64px;
        height: 64px;
    }

    html.ha-loader-active body::after {
        width: 98px;
        height: 98px;
        margin-top: -49px;
        margin-left: -49px;
    }
}

/* =========================================================
   Human Access - Creative Mobile Offcanvas Menu RTL
   Updated version
   ========================================================= */
:root {
    --ha-brand: #00C1D4;
    --ha-brand-dark: #008FA0;
    --ha-brand-deep: #006F7C;
    --ha-ink: #394049;
    --ha-muted: rgba(57, 64, 73, 0.62);
    --ha-soft: rgba(0, 193, 212, 0.08);
    --ha-soft-strong: rgba(0, 193, 212, 0.16);
    --ha-shadow: 0 24px 70px rgba(0, 111, 124, 0.24);
    --ha-radius: 8px;
    --ha-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

#offcanvas-toggler {
    margin-top: 25px !important;
    margin-right: 20px !important;
}

@media only screen and (max-width: 991.98px) {

    #offcanvas-toggler {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        line-height: 1 !important;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        position: relative;
        border-radius: 15px;
        background:
            radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.35), transparent 34%), linear-gradient(338deg, #00c1d44a, #00cae385);
        box-shadow:
            0 12px 28px rgba(0, 193, 212, 0.28),
            inset 0 1px 0 rgba(255, 255, 255, 0.35);
        overflow: hidden;
        isolation: isolate;
        transition: transform 0.35s var(--ha-ease), box-shadow 0.35s var(--ha-ease);
    }

    #offcanvas-toggler::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 1;
        border-radius: inherit;
        padding: 1px;
        background:
            conic-gradient(
                from 180deg,
                rgba(255, 255, 255, 0),
                rgba(255, 255, 255, 0.72),
                rgba(0, 193, 212, 0.34),
                rgba(255, 255, 255, 0)
            );
        -webkit-mask:
            linear-gradient(#000 0 0) content-box,
            linear-gradient(#000 0 0);
        -webkit-mask-composite: xor;
        mask-composite: exclude;
        pointer-events: none;
        animation: haBurgerPremiumSweep 4.2s var(--ha-ease) 0.9s 3 both;
    }

    #offcanvas-toggler:hover {
        transform: translateY(-2px);
        box-shadow:
            0 16px 34px rgba(0, 193, 212, 0.34),
            inset 0 1px 0 rgba(255, 255, 255, 0.38);
    }

    #offcanvas-toggler .burger-icon {
        width: 20px;
        height: 15px;
        position: relative;
        display: block;
        z-index: 2;
    }

    #offcanvas-toggler .burger-icon::before {
        content: none !important;
        display: none !important;
    }

    #offcanvas-toggler .burger-icon span {
        position: absolute;
        right: 0;
        width: 20px;
        height: 2px;
        border-radius: 99px;
        background: #fff;
        box-shadow: 0 1px 6px rgba(0, 0, 0, 0.13);
        animation: haBurgerLineReveal 4.2s var(--ha-ease) 0.9s 3 both;
        transition: transform 0.45s var(--ha-ease), opacity 0.28s ease, width 0.35s ease;
    }

    #offcanvas-toggler .burger-icon span:nth-child(1) {
        top: 0;
        animation-delay: 0.95s;
    }

    #offcanvas-toggler .burger-icon span:nth-child(2) {
        top: 6.5px;
        width: 16px;
        animation-delay: 1.08s;
    }

    #offcanvas-toggler .burger-icon span:nth-child(3) {
        bottom: 0;
        width: 11px;
        animation-delay: 1.21s;
    }

    #offcanvas-toggler:hover .burger-icon span:nth-child(2),
    #offcanvas-toggler:hover .burger-icon span:nth-child(3) {
        width: 20px;
    }

    body.offcanvas-active #offcanvas-toggler .burger-icon span:nth-child(1) {
        transform: translateY(6.5px) rotate(45deg);
    }

    body.offcanvas-active #offcanvas-toggler .burger-icon span:nth-child(2) {
        opacity: 0;
        transform: scaleX(0.2);
    }

    body.offcanvas-active #offcanvas-toggler .burger-icon span:nth-child(3) {
        width: 20px;
        transform: translateY(-6.5px) rotate(-45deg);
    }

    @keyframes haBurgerPremiumSweep {
        0% {
            opacity: 0;
            transform: rotate(0deg) scale(0.94);
        }

        24% {
            opacity: 0.7;
            transform: rotate(120deg) scale(1);
        }

        58% {
            opacity: 0.42;
            transform: rotate(280deg) scale(1);
        }

        100% {
            opacity: 0;
            transform: rotate(360deg) scale(1.02);
        }
    }

    @keyframes haBurgerLineReveal {
        0% {
            opacity: 0.28;
            transform: translateX(5px) scaleX(0.42);
        }

        36% {
            opacity: 1;
            transform: translateX(0) scaleX(1);
        }

        70% {
            opacity: 1;
            transform: translateX(-1px) scaleX(0.96);
        }

        100% {
            opacity: 1;
            transform: translateX(0) scaleX(1);
        }
    }

    #offcanvas-toggler i.fa,
    #offcanvas-toggler .fa {
        font-size: 0 !important;
        width: 20px;
        height: 15px;
        position: relative;
        z-index: 2;
    }

    #offcanvas-toggler i.fa::before,
    #offcanvas-toggler .fa::before {
        content: "";
        position: absolute;
        top: 6.5px;
        right: 0;
        width: 20px;
        height: 2px;
        border-radius: 99px;
        background: #fff;
        box-shadow: 0 -6.5px 0 #fff, 0 6.5px 0 #fff;
        animation: haBurgerLineReveal 4.2s var(--ha-ease) 1s 3 both;
        transition: 0.4s var(--ha-ease);
    }

    .offcanvas-overlay {
        position: fixed !important;
        background:
            radial-gradient(circle at 78% 14%, rgba(0, 193, 212, 0.24), transparent 32%),
            rgba(9, 22, 27, 0.54) !important;
        backdrop-filter: blur(7px);
        -webkit-backdrop-filter: blur(7px);
        transition: opacity 0.55s ease, visibility 0.55s ease !important;
    }

    .offcanvas-active .offcanvas-overlay {
        opacity: 1 !important;
        visibility: visible !important;
    }

    body.rtl.offcanvas-active,
    html[dir="rtl"] body.offcanvas-active {
        overflow: hidden;
    }

    body.rtl .offcanvas-menu,
    html[dir="rtl"] .offcanvas-menu {
        width: min(86vw, 350px) !important;
        height: calc(100vh - 22px) !important;
        top: 11px !important;
        right: 11px !important;
        left: auto !important;
        border-radius: 26px 0 0 26px;
        overflow: hidden !important;
        color: var(--ha-ink);
        background:
            radial-gradient(circle at 100% 0%, rgba(0, 193, 212, 0.18), transparent 34%),
            linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 252, 253, 0.96));
        border: 0 !important;
        box-shadow: var(--ha-shadow);
        transform: translateX(112%) scale(0.96);
        opacity: 0;
        visibility: hidden;
        clip-path: circle(0% at 94% 46px);
        transition:
            transform 1.15s var(--ha-ease) 0.45s,
            clip-path 1.15s var(--ha-ease) 0.45s,
            opacity 0.78s ease 0.45s,
            visibility 0.78s ease 0.45s !important;
        z-index: 10000 !important;
    }

    body.rtl.offcanvas-active .offcanvas-menu,
    body.rtl.offcanvs-position-left.offcanvas-active .offcanvas-menu,
    html[dir="rtl"] body.offcanvas-active .offcanvas-menu {
        transform: translateX(0) scale(1);
        opacity: 1;
        visibility: visible;
        clip-path: circle(145% at 94% 46px);
        transition:
            transform 0.92s var(--ha-ease),
            clip-path 0.98s var(--ha-ease),
            opacity 0.48s ease,
            visibility 0.48s ease !important;
    }

    .offcanvas-menu::before {
        content: "";
        position: absolute;
        width: 210px;
        height: 210px;
        top: -105px;
        right: -82px;
        border-radius: 50%;
        background:
            radial-gradient(circle, rgba(0, 193, 212, 0.30), rgba(0, 193, 212, 0.04) 64%, transparent 70%);
        pointer-events: none;
    }

    .offcanvas-menu::after {
        content: "";
        position: absolute;
        width: 170px;
        height: 170px;
        left: -90px;
        bottom: -90px;
        border-radius: 50%;
        background:
            radial-gradient(circle, rgba(0, 143, 160, 0.15), transparent 70%);
        pointer-events: none;
    }

    .offcanvas-menu .offcanvas-inner {
    position: relative;
    z-index: 2;
    height: auto;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 2px 5px 24px !important;
    scrollbar-width: thin;
    scrollbar-color: var(--ha-brand) transparent;
    opacity: 0;
    transform: translateX(-12px);
    transition:
        opacity 0.42s ease,
        transform 0.55s var(--ha-ease);
}

    body.rtl.offcanvas-active .offcanvas-menu .offcanvas-inner,
    html[dir="rtl"] body.offcanvas-active .offcanvas-menu .offcanvas-inner {
        opacity: 1;
        transform: translateX(0);
        transition:
            opacity 0.62s ease 0.22s,
            transform 0.72s var(--ha-ease) 0.22s;
    }

    .offcanvas-menu .offcanvas-inner::-webkit-scrollbar {
        width: 5px;
    }

    .offcanvas-menu .offcanvas-inner::-webkit-scrollbar-thumb {
        background: var(--ha-brand);
        border-radius: 99px;
    }

    body.rtl .close-offcanvas,
    html[dir="rtl"] .close-offcanvas {
        top: 15px !important;
        left: 15px !important;
        right: auto !important;
        width: 34px;
        height: 34px;
        line-height: 34px;
        border-radius: 50%;
        color: var(--ha-brand-deep) !important;
        background: rgba(255, 255, 255, 0.82);
        border: 0 !important;
        box-shadow: 0 10px 24px rgba(0, 111, 124, 0.13);
        opacity: 0;
        transform: translateX(-8px);
        transition:
            opacity 0.36s ease,
            transform 0.46s var(--ha-ease),
            background 0.35s var(--ha-ease),
            color 0.35s var(--ha-ease);
    }

    body.rtl.offcanvas-active .close-offcanvas,
    html[dir="rtl"] body.offcanvas-active .close-offcanvas {
        opacity: 1;
        transform: translateX(0);
        transition:
            opacity 0.5s ease 0.28s,
            transform 0.58s var(--ha-ease) 0.28s,
            background 0.35s var(--ha-ease),
            color 0.35s var(--ha-ease);
    }

    body.rtl .close-offcanvas:hover,
    html[dir="rtl"] .close-offcanvas:hover {
        color: #fff !important;
        background: var(--ha-brand);
        transform: rotate(90deg) scale(1.04);
    }

    .offcanvas-menu .offcanvas-inner .sp-module,
    .offcanvas-menu .offcanvas-inner .sp-module ul {
        margin: 0 !important;
        padding: 0 !important;
    }

    .offcanvas-menu .offcanvas-inner .sp-module ul {
        list-style: none;
    }

    .offcanvas-menu .offcanvas-inner .sp-module ul > li {
        border-bottom: none !important;
    }

    .offcanvas-menu .offcanvas-inner .sp-module > ul > li,
    .offcanvas-menu .offcanvas-inner .sp-module ul.menu > li {
        position: relative;
        margin: 2px 0 !important;
        border: 0 !important;
        opacity: 0 !important;
        transform: translateX(-28px) !important;
        transition:
            opacity 0.62s ease,
            transform 0.82s var(--ha-ease);
    }

    body.offcanvas-active .offcanvas-menu .offcanvas-inner .sp-module > ul > li,
    body.offcanvas-active .offcanvas-menu .offcanvas-inner .sp-module ul.menu > li {
        opacity: 1 !important;
        transform: translateX(0) !important;
    }

    body.offcanvas-active .offcanvas-menu .offcanvas-inner .sp-module > ul > li:nth-child(1),
    body.offcanvas-active .offcanvas-menu .offcanvas-inner .sp-module ul.menu > li:nth-child(1) { transition-delay: 0.18s; }

    body.offcanvas-active .offcanvas-menu .offcanvas-inner .sp-module > ul > li:nth-child(2),
    body.offcanvas-active .offcanvas-menu .offcanvas-inner .sp-module ul.menu > li:nth-child(2) { transition-delay: 0.28s; }

    body.offcanvas-active .offcanvas-menu .offcanvas-inner .sp-module > ul > li:nth-child(3),
    body.offcanvas-active .offcanvas-menu .offcanvas-inner .sp-module ul.menu > li:nth-child(3) { transition-delay: 0.38s; }

    body.offcanvas-active .offcanvas-menu .offcanvas-inner .sp-module > ul > li:nth-child(4),
    body.offcanvas-active .offcanvas-menu .offcanvas-inner .sp-module ul.menu > li:nth-child(4) { transition-delay: 0.48s; }

    body.offcanvas-active .offcanvas-menu .offcanvas-inner .sp-module > ul > li:nth-child(5),
    body.offcanvas-active .offcanvas-menu .offcanvas-inner .sp-module ul.menu > li:nth-child(5) { transition-delay: 0.58s; }

    body.offcanvas-active .offcanvas-menu .offcanvas-inner .sp-module > ul > li:nth-child(6),
    body.offcanvas-active .offcanvas-menu .offcanvas-inner .sp-module ul.menu > li:nth-child(6) { transition-delay: 0.68s; }

    body.offcanvas-active .offcanvas-menu .offcanvas-inner .sp-module > ul > li:nth-child(7),
    body.offcanvas-active .offcanvas-menu .offcanvas-inner .sp-module ul.menu > li:nth-child(7) { transition-delay: 0.78s; }

    body.offcanvas-active .offcanvas-menu .offcanvas-inner .sp-module > ul > li:nth-child(8),
    body.offcanvas-active .offcanvas-menu .offcanvas-inner .sp-module ul.menu > li:nth-child(8) { transition-delay: 0.88s; }

    body.offcanvas-active .offcanvas-menu .offcanvas-inner .sp-module > ul > li:nth-child(9),
    body.offcanvas-active .offcanvas-menu .offcanvas-inner .sp-module ul.menu > li:nth-child(9) { transition-delay: 0.98s; }

    body.offcanvas-active .offcanvas-menu .offcanvas-inner .sp-module > ul > li:nth-child(10),
    body.offcanvas-active .offcanvas-menu .offcanvas-inner .sp-module ul.menu > li:nth-child(10) { transition-delay: 1.08s; }

    .offcanvas-menu .offcanvas-inner .sp-module ul > li a,
    .offcanvas-menu .offcanvas-inner .sp-module ul > li span {
        padding: 7px 33px 7px 2px !important;
        border-bottom: 0 !important;
        color: var(--text-dark, var(--ha-ink)) !important;
        font-size: 15px;
        line-height: 1.6;
    }

    .offcanvas-menu .offcanvas-inner .sp-module ul > li > a,
    .offcanvas-menu .offcanvas-inner .sp-module ul > li > span,
    .offcanvas-menu .offcanvas-inner .sp-module ul > li > .menu-separator {
        position: relative;
        display: flex !important;
        align-items: center;
        min-height: 48px;
        padding: 6px 36px 6px 30px !important;
        border: 0 !important;
        border-radius: 22px;
        color: var(--ha-ink) !important;
        background:
            linear-gradient(135deg, rgba(0, 193, 212, 0.09), rgba(255, 255, 255, 0.62));
        box-shadow:
            inset 0 0 0 1px rgba(0, 193, 212, 0.10),
            0 3px 8px rgba(0, 111, 124, 0.018);
        text-align: right;
        font-size: 15px;
        font-weight: 500;
        line-height: 1.55;
        text-transform: none !important;
        transition:
            transform 0.35s var(--ha-ease),
            color 0.28s ease,
            background 0.35s ease,
            box-shadow 0.35s ease;
        width: 312px;
        max-width: calc(100vw - 38px);
        margin-right: auto !important;
        margin-left: auto !important;
    }

    html[dir="rtl"] .offcanvas-menu .offcanvas-inner .sp-module ul > li.menu-parent > a,
    html[dir="rtl"] .offcanvas-menu .offcanvas-inner .sp-module ul > li.menu-parent > .menu-separator,
    body.rtl .offcanvas-menu .offcanvas-inner .sp-module ul > li.menu-parent > a,
    body.rtl .offcanvas-menu .offcanvas-inner .sp-module ul > li.menu-parent > .menu-separator {
        padding-right: 33px !important;
        padding-left: 22px !important;
        cursor: pointer;
    }

    .offcanvas-menu .offcanvas-inner .sp-module ul > li > a::before,
    .offcanvas-menu .offcanvas-inner .sp-module ul > li > span::before,
    .offcanvas-menu .offcanvas-inner .sp-module ul > li > .menu-separator::before {
        content: "";
        position: absolute;
        right: 15px;
        top: 50%;
        width: 7px;
        height: 7px;
        border-radius: 50%;
        border: 2px solid var(--ha-brand);
        background: rgba(255, 255, 255, 0.9);
        transform: translateY(-50%);
        transition: 0.3s ease;
    }

    .offcanvas-menu .offcanvas-inner .sp-module ul > li:hover > a,
    .offcanvas-menu .offcanvas-inner .sp-module ul > li:hover > span,
    .offcanvas-menu .offcanvas-inner .sp-module ul > li.active > a,
    .offcanvas-menu .offcanvas-inner .sp-module ul > li.active > span {
        color: var(--ha-brand-deep) !important;
        background:
            linear-gradient(135deg, rgba(0, 193, 212, 0.18), rgba(0, 193, 212, 0.07));
        box-shadow:
            inset 0 0 0 1px rgba(0, 193, 212, 0.22),
            0 6px 14px rgba(0, 143, 160, 0.055);
        transform: translateX(-4px);
    }

    .offcanvas-menu .offcanvas-inner .sp-module ul > li.active > a,
    .offcanvas-menu .offcanvas-inner .sp-module ul > li.active > span {
        background:
            linear-gradient(90deg, rgba(0, 193, 212, 0.24), rgba(0, 193, 212, 0.06)) right / 0% 100% no-repeat,
            linear-gradient(135deg, rgba(0, 193, 212, 0.18), rgba(0, 193, 212, 0.07));
        animation: haActiveMenuFill 12s ease-in-out 2;
    }

    @keyframes haActiveMenuFill {
        0% {
            background-size: 0% 100%, 100% 100%;
        }

        52% {
            background-size: 100% 100%, 100% 100%;
        }

        100% {
            background-size: 0% 100%, 100% 100%;
        }
    }

    .offcanvas-menu .offcanvas-inner .sp-module ul > li:hover > a::before,
    .offcanvas-menu .offcanvas-inner .sp-module ul > li.active > a::before {
        background: var(--ha-brand);
        box-shadow: 0 0 0 5px rgba(0, 193, 212, 0.12);
    }

    .offcanvas-menu .offcanvas-inner .sp-module ul > li.menu-parent > a > .menu-toggler,
    .offcanvas-menu .offcanvas-inner .sp-module ul > li.menu-parent > .menu-separator > .menu-toggler,
    html[dir="rtl"] .offcanvas-menu .offcanvas-inner .sp-module ul > li.menu-parent > a > .menu-toggler,
    html[dir="rtl"] .offcanvas-menu .offcanvas-inner .sp-module ul > li.menu-parent > .menu-separator > .menu-toggler,
    body.rtl .offcanvas-menu .offcanvas-inner .sp-module ul > li.menu-parent > a > .menu-toggler,
    body.rtl .offcanvas-menu .offcanvas-inner .sp-module ul > li.menu-parent > .menu-separator > .menu-toggler {
        position: absolute !important;
        left: 0 !important;
        right: auto !important;
        top: 0 !important;
        width: 100% !important;
        height: 100% !important;
        display: block !important;
        background: transparent !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin: 0 !important;
        transform: none;
        line-height: 1 !important;
        cursor: pointer;
        z-index: 5;
    }

    .offcanvas-menu .offcanvas-inner .sp-module ul > li.menu-parent > a > .menu-toggler::before,
    .offcanvas-menu .offcanvas-inner .sp-module ul > li.menu-parent > .menu-separator > .menu-toggler::before {
        content: none !important;
        display: none !important;
    }

    .offcanvas-menu .offcanvas-inner .sp-module ul > li.menu-parent > a > .menu-toggler::after,
    .offcanvas-menu .offcanvas-inner .sp-module ul > li.menu-parent > .menu-separator > .menu-toggler::after,
    html[dir="rtl"] .offcanvas-menu .offcanvas-inner .sp-module ul > li.menu-parent > a > .menu-toggler::after,
    html[dir="rtl"] .offcanvas-menu .offcanvas-inner .sp-module ul > li.menu-parent > .menu-separator > .menu-toggler::after,
    body.rtl .offcanvas-menu .offcanvas-inner .sp-module ul > li.menu-parent > a > .menu-toggler::after,
    body.rtl .offcanvas-menu .offcanvas-inner .sp-module ul > li.menu-parent > .menu-separator > .menu-toggler::after {
        content: "" !important;
        position: absolute !important;
        display: block !important;
        width: 14px !important;
        height: 14px !important;
        left: 22px !important;
        right: auto !important;
        top: 50% !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 2 L12 8 L4 14 Z' fill='none' stroke='%23006F7C' stroke-width='2' stroke-linejoin='round' stroke-linecap='round'/%3E%3C/svg%3E") center / 13px 13px no-repeat !important;
        transform: translateY(-50%) rotate(0deg);
        transform-origin: center;
        transition: transform 0.34s var(--ha-ease), background 0.25s ease;
    }

    .offcanvas-menu .offcanvas-inner .sp-module ul > li.menu-parent:hover > a > .menu-toggler::after,
    .offcanvas-menu .offcanvas-inner .sp-module ul > li.menu-parent.open > a > .menu-toggler::after,
    .offcanvas-menu .offcanvas-inner .sp-module ul > li.menu-parent.menu-parent-open > a > .menu-toggler::after {
        background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 2 L12 8 L4 14 Z' fill='none' stroke='%2300C1D4' stroke-width='2' stroke-linejoin='round' stroke-linecap='round'/%3E%3C/svg%3E") center / 13px 13px no-repeat !important;
    }

    .offcanvas-menu .offcanvas-inner .sp-module ul > li.menu-parent.open > a > .menu-toggler::after,
    .offcanvas-menu .offcanvas-inner .sp-module ul > li.menu-parent.menu-parent-open > a > .menu-toggler::after,
    .offcanvas-menu .offcanvas-inner .sp-module ul > li.menu-parent > a[aria-expanded="true"] > .menu-toggler::after,
    .offcanvas-menu .offcanvas-inner .sp-module ul > li.menu-parent:has(> a[aria-expanded="true"]) > a > .menu-toggler::after {
        transform: translateY(-50%) rotate(90deg);
    }

    .offcanvas-menu .offcanvas-inner .sp-module ul ul {
        margin: 2px 10px 3px 0 !important;
        padding: 2px 6px 2px 0 !important;
        border: 0 !important;
        border-radius: 22px;
        overflow: hidden;
        display: block !important;
        max-height: 0 !important;
        opacity: 0 !important;
        visibility: hidden;
        transform: translateX(-12px);
        pointer-events: none;
        transition:
            max-height 1.08s var(--ha-ease),
            opacity 0.68s ease,
            transform 0.88s var(--ha-ease),
            visibility 0s linear 1.08s;
    }

    .offcanvas-menu .offcanvas-inner .sp-module ul > li.menu-parent.open > ul,
    .offcanvas-menu .offcanvas-inner .sp-module ul > li.menu-parent.menu-parent-open > ul,
    .offcanvas-menu .offcanvas-inner .sp-module ul > li.menu-parent > ul.show,
    .offcanvas-menu .offcanvas-inner .sp-module ul > li.menu-parent > ul[aria-hidden="false"],
    .offcanvas-menu .offcanvas-inner .sp-module ul > li.menu-parent:has(> a[aria-expanded="true"]) > ul {
        max-height: 680px !important;
        opacity: 1 !important;
        visibility: visible;
        transform: translateX(0);
        pointer-events: auto;
        transition:
            max-height 1.08s var(--ha-ease),
            opacity 0.68s ease,
            transform 0.88s var(--ha-ease),
            visibility 0s linear 0s;
    }

    .offcanvas-menu .offcanvas-inner .sp-module ul ul > li {
        margin: 2px 0 !important;
        opacity: 0 !important;
        transform: translateX(-26px) !important;
        transition:
            opacity 0.64s ease,
            transform 0.86s var(--ha-ease) !important;
    }

    .offcanvas-menu .offcanvas-inner .sp-module ul ul > li:nth-child(1) { transition-delay: 0.42s !important; }
    .offcanvas-menu .offcanvas-inner .sp-module ul ul > li:nth-child(2) { transition-delay: 0.35s !important; }
    .offcanvas-menu .offcanvas-inner .sp-module ul ul > li:nth-child(3) { transition-delay: 0.28s !important; }
    .offcanvas-menu .offcanvas-inner .sp-module ul ul > li:nth-child(4) { transition-delay: 0.21s !important; }
    .offcanvas-menu .offcanvas-inner .sp-module ul ul > li:nth-child(5) { transition-delay: 0.14s !important; }
    .offcanvas-menu .offcanvas-inner .sp-module ul ul > li:nth-child(6) { transition-delay: 0.07s !important; }

    .offcanvas-menu .offcanvas-inner .sp-module ul > li.menu-parent.open > ul > li,
    .offcanvas-menu .offcanvas-inner .sp-module ul > li.menu-parent.menu-parent-open > ul > li,
    .offcanvas-menu .offcanvas-inner .sp-module ul > li.menu-parent > ul.show > li,
    .offcanvas-menu .offcanvas-inner .sp-module ul > li.menu-parent > ul[aria-hidden="false"] > li,
    .offcanvas-menu .offcanvas-inner .sp-module ul > li.menu-parent:has(> a[aria-expanded="true"]) > ul > li {
        opacity: 1 !important;
        transform: translateX(0) !important;
    }

    .offcanvas-menu .offcanvas-inner .sp-module ul > li.menu-parent.open > ul > li:nth-child(1),
    .offcanvas-menu .offcanvas-inner .sp-module ul > li.menu-parent.menu-parent-open > ul > li:nth-child(1),
    .offcanvas-menu .offcanvas-inner .sp-module ul > li.menu-parent > ul.show > li:nth-child(1),
    .offcanvas-menu .offcanvas-inner .sp-module ul > li.menu-parent > ul[aria-hidden="false"] > li:nth-child(1),
    .offcanvas-menu .offcanvas-inner .sp-module ul > li.menu-parent:has(> a[aria-expanded="true"]) > ul > li:nth-child(1) { transition-delay: 0.16s !important; }

    .offcanvas-menu .offcanvas-inner .sp-module ul > li.menu-parent.open > ul > li:nth-child(2),
    .offcanvas-menu .offcanvas-inner .sp-module ul > li.menu-parent.menu-parent-open > ul > li:nth-child(2),
    .offcanvas-menu .offcanvas-inner .sp-module ul > li.menu-parent > ul.show > li:nth-child(2),
    .offcanvas-menu .offcanvas-inner .sp-module ul > li.menu-parent > ul[aria-hidden="false"] > li:nth-child(2),
    .offcanvas-menu .offcanvas-inner .sp-module ul > li.menu-parent:has(> a[aria-expanded="true"]) > ul > li:nth-child(2) { transition-delay: 0.32s !important; }

    .offcanvas-menu .offcanvas-inner .sp-module ul > li.menu-parent.open > ul > li:nth-child(3),
    .offcanvas-menu .offcanvas-inner .sp-module ul > li.menu-parent.menu-parent-open > ul > li:nth-child(3),
    .offcanvas-menu .offcanvas-inner .sp-module ul > li.menu-parent > ul.show > li:nth-child(3),
    .offcanvas-menu .offcanvas-inner .sp-module ul > li.menu-parent > ul[aria-hidden="false"] > li:nth-child(3),
    .offcanvas-menu .offcanvas-inner .sp-module ul > li.menu-parent:has(> a[aria-expanded="true"]) > ul > li:nth-child(3) { transition-delay: 0.48s !important; }

    .offcanvas-menu .offcanvas-inner .sp-module ul > li.menu-parent.open > ul > li:nth-child(4),
    .offcanvas-menu .offcanvas-inner .sp-module ul > li.menu-parent.menu-parent-open > ul > li:nth-child(4),
    .offcanvas-menu .offcanvas-inner .sp-module ul > li.menu-parent > ul.show > li:nth-child(4),
    .offcanvas-menu .offcanvas-inner .sp-module ul > li.menu-parent > ul[aria-hidden="false"] > li:nth-child(4),
    .offcanvas-menu .offcanvas-inner .sp-module ul > li.menu-parent:has(> a[aria-expanded="true"]) > ul > li:nth-child(4) { transition-delay: 0.64s !important; }

    .offcanvas-menu .offcanvas-inner .sp-module ul > li.menu-parent.open > ul > li:nth-child(5),
    .offcanvas-menu .offcanvas-inner .sp-module ul > li.menu-parent.menu-parent-open > ul > li:nth-child(5),
    .offcanvas-menu .offcanvas-inner .sp-module ul > li.menu-parent > ul.show > li:nth-child(5),
    .offcanvas-menu .offcanvas-inner .sp-module ul > li.menu-parent > ul[aria-hidden="false"] > li:nth-child(5),
    .offcanvas-menu .offcanvas-inner .sp-module ul > li.menu-parent:has(> a[aria-expanded="true"]) > ul > li:nth-child(5) { transition-delay: 0.80s !important; }

    .offcanvas-menu .offcanvas-inner .sp-module ul > li.menu-parent.open > ul > li:nth-child(6),
    .offcanvas-menu .offcanvas-inner .sp-module ul > li.menu-parent.menu-parent-open > ul > li:nth-child(6),
    .offcanvas-menu .offcanvas-inner .sp-module ul > li.menu-parent > ul.show > li:nth-child(6),
    .offcanvas-menu .offcanvas-inner .sp-module ul > li.menu-parent > ul[aria-hidden="false"] > li:nth-child(6),
    .offcanvas-menu .offcanvas-inner .sp-module ul > li.menu-parent:has(> a[aria-expanded="true"]) > ul > li:nth-child(6) { transition-delay: 0.96s !important; }

    .offcanvas-menu .offcanvas-inner .sp-module ul ul > li > a,
    .offcanvas-menu .offcanvas-inner .sp-module ul ul > li > span {
        min-height: 38px;
        width: 268px;
        max-width: calc(100vw - 58px);
        padding: 9px 30px 9px 12px !important;
        border-radius: 22px;
        font-size: 14px;
        font-weight: 500;
        color: var(--ha-muted) !important;
        background: rgba(255, 255, 255, 0.62);
        box-shadow: inset 0 0 0 1px rgba(0, 193, 212, 0.07);
        margin-right: auto !important;
        margin-left: auto !important;
    }

    .offcanvas-menu .offcanvas-inner .sp-module ul ul > li > a::before,
    .offcanvas-menu .offcanvas-inner .sp-module ul ul > li > span::before {
        right: 13px;
        width: 5px;
        height: 5px;
        border-width: 1.5px;
        background: transparent;
    }

    .offcanvas-menu .offcanvas-inner .sp-module ul ul > li:hover > a,
    .offcanvas-menu .offcanvas-inner .sp-module ul ul > li.active > a {
        color: var(--ha-brand-deep) !important;
        background: rgba(0, 193, 212, 0.12);
        transform: translateX(-3px);
    }

    .offcanvas-menu .offcanvas-inner .sp-module ul ul > li.active > a,
    .offcanvas-menu .offcanvas-inner .sp-module ul ul > li.active > span {
        background:
            linear-gradient(90deg, rgba(0, 193, 212, 0.22), rgba(0, 193, 212, 0.05)) right / 0% 100% no-repeat,
            rgba(0, 193, 212, 0.12);
        animation: haActiveMenuFill 12s ease-in-out 2;
    }

    @media (prefers-reduced-motion: reduce) {
        #offcanvas-toggler,
        #offcanvas-toggler *,
        .offcanvas-menu,
        .offcanvas-menu *,
        .offcanvas-overlay {
            animation: none !important;
            transition-duration: 0.01ms !important;
        }
    }
}

@media only screen and (max-width: 991.98px) {

    body.rtl .offcanvas-menu,
    html[dir="rtl"] .offcanvas-menu {
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        scrollbar-width: thin;
        scrollbar-color: var(--ha-brand) transparent;
    }

    body.rtl .offcanvas-menu::-webkit-scrollbar,
    html[dir="rtl"] .offcanvas-menu::-webkit-scrollbar {
        width: 5px;
    }

    body.rtl .offcanvas-menu::-webkit-scrollbar-thumb,
    html[dir="rtl"] .offcanvas-menu::-webkit-scrollbar-thumb {
        background: var(--ha-brand);
        border-radius: 99px;
    }

    .offcanvas-menu .offcanvas-inner {
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        padding-bottom: 40px !important;
    }

    .offcanvas-menu .offcanvas-inner .sp-module ul > li.menu-parent.open > ul,
    .offcanvas-menu .offcanvas-inner .sp-module ul > li.menu-parent.menu-parent-open > ul,
    .offcanvas-menu .offcanvas-inner .sp-module ul > li.menu-parent > ul.show,
    .offcanvas-menu .offcanvas-inner .sp-module ul > li.menu-parent > ul[aria-hidden="false"],
    .offcanvas-menu .offcanvas-inner .sp-module ul > li.menu-parent:has(> a[aria-expanded="true"]) > ul {
        max-height: 1600px !important;
    }
}
/* ==========================================
   Desktop / Laptop Logo Switch Only
   Home Normal: White Logo
   Home Sticky + Other Pages: Original Logo
========================================== */

@media (min-width: 992px) {

    /* الرئيسية فقط: الهيدر العادي يستخدم الشعار الأبيض */
    body.ha-home-page #sp-header:not(.header-sticky) .logo img.logo-image {
        content: url("/a/images/banners/logoaWhite.png") !important;
        animation: haLogoFade 0.35s ease both;
    }

    /* الرئيسية فقط: عند Sticky يرجع الشعار الأصلي */
    body.ha-home-page #sp-header.header-sticky .logo img.logo-image {
        content: url("/a/images/banners/logoaf.png") !important;
        animation: haLogoFade 0.35s ease both;
    }

    /* باقي الصفحات: الشعار الأصلي دائماً */
    body:not(.ha-home-page) #sp-header .logo img.logo-image {
        content: url("/a/images/banners/logoaf.png") !important;
    }

    #sp-header,
    #sp-header .logo,
    #sp-header .logo img.logo-image,
    #sp-header .sp-module,
    #sp-header .sp-megamenu-parent > li > a,
    #sp-header .ha-header-tools a,
    #sp-header .ha-header-tools i {
        transition:
            background-color 0.45s ease,
            box-shadow 0.45s ease,
            color 0.35s ease,
            border-color 0.35s ease,
            height 0.45s ease,
            padding 0.45s ease,
            opacity 0.35s ease,
            transform 0.45s ease !important;
    }

    #sp-header.header-sticky {
        transition:
            background-color 0.45s ease,
            box-shadow 0.45s ease,
            height 0.45s ease,
            padding 0.45s ease !important;
    }

    @keyframes haLogoFade {
        from {
            opacity: 0.35;
        }
        to {
            opacity: 1;
        }
    }
}

@media (prefers-reduced-motion: reduce) {
    #sp-header,
    #sp-header * {
        transition: none !important;
        animation: none !important;
    }
}

/* Header State Scope */

/* الرئيسية فقط: الهيدر العادي */
body.ha-home-page #sp-header:not(.header-sticky) {
    background: transparent !important;
    box-shadow: none !important;
}

/* الرئيسية فقط: ألوان القائمة في الهيدر العادي */
body.ha-home-page #sp-header:not(.header-sticky) .sp-megamenu-parent > li > a,
body.ha-home-page #sp-header:not(.header-sticky) .sp-megamenu-parent > li > span {
    color: rgba(255, 255, 255, 0.88) !important;
}

/* الرئيسية فقط: روابط العربية والإنجليزية في الهيدر العادي */
body.ha-home-page #sp-header:not(.header-sticky) .ha-header-tools .ha-lang-link {
    color: rgba(255, 255, 255, 0.86) !important;
    border-color: #00C1D4 !important;
    background: transparent !important;
}

/* الرئيسية عند Sticky */
body.ha-home-page #sp-header.header-sticky {
    background-color: rgba(255, 255, 255, 0.92) !important;
}

/* باقي الصفحات: نفس شكل Sticky دائماً */
body:not(.ha-home-page) #sp-header {
    background-color: rgba(255, 255, 255, 0.92) !important;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08) !important;
}

/* باقي الصفحات عند النزول: يبقى نفس شكل Sticky */
body:not(.ha-home-page) #sp-header.header-sticky {
    background-color: rgba(255, 255, 255, 0.92) !important;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08) !important;
}

/* الرئيسية Sticky + باقي الصفحات: ألوان القائمة */
body.ha-home-page #sp-header.header-sticky .sp-megamenu-parent > li > a,
body.ha-home-page #sp-header.header-sticky .sp-megamenu-parent > li > span,
body:not(.ha-home-page) #sp-header .sp-megamenu-parent > li > a,
body:not(.ha-home-page) #sp-header .sp-megamenu-parent > li > span {
    color: #394049 !important;
}

/* الرئيسية Sticky + باقي الصفحات: روابط العربية والإنجليزية */
body.ha-home-page #sp-header.header-sticky .ha-header-tools .ha-lang-link,
body:not(.ha-home-page) #sp-header .ha-header-tools .ha-lang-link {
    color: #394049 !important;
    border-color: #00C1D4 !important;
    background: transparent !important;
}

/* Hover لروابط اللغة */
body.ha-home-page #sp-header.header-sticky .ha-header-tools .ha-lang-link:hover,
body.ha-home-page #sp-header.header-sticky .ha-header-tools .ha-lang-link:focus,
body:not(.ha-home-page) #sp-header .ha-header-tools .ha-lang-link:hover,
body:not(.ha-home-page) #sp-header .ha-header-tools .ha-lang-link:focus {
    color: #394049 !important;
    background: rgba(0, 193, 212, 0.10) !important;
    border-color: #00C1D4 !important;
}

/* أيقونة البحث ثابتة */
#sp-header .ha-header-tools .ha-search-link,
#sp-header .ha-header-tools .ha-search-link i {
    color: #00C1D4 !important;
}

/* إزالة خط أسفل الهيدر */
#sp-header > .container > div {
    border-bottom: none !important;
}

/* تعديل خلفية السلايدر في الجوال */
@media (max-width: 768px) {
    .sp-slider .sp-item .sp-background {
        background-size: 120% !important;
    }
}