.elementor-widget-charsoo-exact-header {
    width: 100%;
}

.ceh-header,
.ceh-header * {
    box-sizing: border-box;
}

.ceh-header {
    --ceh-purple: #6500e8;
    --ceh-text: #a8a8a8;
    --ceh-animation-duration: 500ms;
    position: relative;
    width: 100%;
    direction: rtl;
    background: #fff;
    color: var(--ceh-text);
    font-family: "IRANSansX", "Vazirmatn", Tahoma, Arial, sans-serif;
    box-shadow: 0 12px 28px rgba(28, 12, 58, .045);
    isolation: isolate;
}

.ceh-header.is-sticky {
    position: sticky;
}

.ceh-header__inner {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 1370px;
    min-height: 74px;
    margin-inline: auto;
    padding-inline: 48px;
    gap: 38px;
}

.ceh-header__logo {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    line-height: 0;
    text-decoration: none;
}

.ceh-header__logo img {
    display: block;
    width: 82px;
    max-width: 100%;
    height: auto;
    max-height: 64px;
    object-fit: contain;
    transition: transform .28s ease, filter .28s ease, opacity .28s ease;
}

.ceh-header__nav {
    display: flex;
    align-self: stretch;
    flex: 0 1 auto;
    align-items: stretch;
    min-width: 0;
}

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

.ceh-menu {
    display: flex;
    align-items: stretch;
    gap: 27px;
    white-space: nowrap;
}

.ceh-menu > li {
    position: relative;
    display: flex;
    align-items: stretch;
}

.ceh-menu > li > a {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 25px 0;
    color: #a8a8a8;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    text-decoration: none;
    transition: color .25s ease, transform .25s ease;
}

.ceh-menu > li > a::before {
    content: "";
    position: absolute;
    right: 50%;
    bottom: 7px;
    width: 90px;
    height: 3px;
    border-radius: 999px;
    background: #e1c9ff;
    opacity: 0;
    transform: translateX(50%) scaleX(.45);
    transform-origin: center;
    transition: opacity .25s ease, transform .25s ease;
}

.ceh-menu > li.is-active > a,
.ceh-menu > li.current-menu-item > a,
.ceh-menu > li.current_page_item > a,
.ceh-menu > li.current-menu-ancestor > a {
    color: var(--ceh-purple);
}

.ceh-menu > li.is-active > a::before,
.ceh-menu > li.current-menu-item > a::before,
.ceh-menu > li.current_page_item > a::before,
.ceh-menu > li.current-menu-ancestor > a::before {
    opacity: 1;
    transform: translateX(50%) scaleX(1);
}

.ceh-menu__arrow,
.ceh-menu > .menu-item-has-children > a::after {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-top: -4px;
    border-right: 1.5px solid #a8a8a8;
    border-bottom: 1.5px solid #a8a8a8;
    transform: rotate(45deg);
    transition: transform .25s ease, border-color .25s ease;
}

.ceh-menu > li:hover .ceh-menu__arrow,
.ceh-menu > .menu-item-has-children:hover > a::after {
    transform: rotate(225deg) translate(-2px, -2px);
}

.ceh-menu .sub-menu {
    position: absolute;
    z-index: 20;
    top: calc(100% - 3px);
    right: -18px;
    min-width: 210px;
    padding: 10px;
    border: 1px solid rgba(40, 30, 60, .06);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 16px 40px rgba(31, 18, 57, .11);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity .22s ease, visibility .22s ease, transform .22s ease;
}

.ceh-menu li:hover > .sub-menu,
.ceh-menu li:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.ceh-menu .sub-menu .sub-menu {
    top: 0;
    right: calc(100% + 8px);
}

.ceh-menu .sub-menu a {
    display: flex;
    padding: 10px 12px;
    border-radius: 7px;
    color: #777;
    font-size: 14px;
    text-decoration: none;
    transition: color .2s ease, background-color .2s ease;
}

.ceh-menu .sub-menu a:hover {
    color: var(--ceh-purple);
    background: rgba(101, 0, 232, .055);
}

.ceh-header__actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 34px;
    margin-right: auto;
    direction: rtl;
}

.ceh-search-toggle,
.ceh-search-form__submit,
.ceh-search-close,
.ceh-mobile-toggle {
    appearance: none;
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    background: none;
    box-shadow: none;
    cursor: pointer;
}

.ceh-search-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    color: var(--ceh-purple);
    line-height: 0;
    transition: color .25s ease, transform .25s ease;
}

.ceh-search-toggle svg,
.ceh-search-form__submit svg {
    display: block;
    width: 32px;
    height: 32px;
    overflow: visible;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
}

.ceh-social {
    display: inline-flex;
    align-items: center;
    min-height: 47px;
    padding: 12px 10px;
    border-radius: 5px;
    background: #fafafa;
    color: #737373;
    direction: ltr;
    line-height: 1;
    transition: background-color .25s ease, transform .25s ease, box-shadow .25s ease;
}

.ceh-social__icons {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.ceh-social__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 19px;
    min-width: 19px;
    height: 24px;
    color: #737373;
    font-size: 19px;
    line-height: 1;
    text-decoration: none;
    transition: color .2s ease, transform .2s ease;
}

.ceh-social__link svg {
    display: block;
    width: 19px;
    height: 19px;
    fill: currentColor;
}

.ceh-social__link:hover {
    color: var(--ceh-purple);
    transform: translateY(-2px);
}

.ceh-social__separator {
    margin: 0 7px 0 5px;
    color: #737373;
    font-size: 17px;
}

.ceh-social__username {
    color: #6f6f6f;
    font-size: 17px;
    font-weight: 400;
    line-height: 1;
    white-space: nowrap;
}

.ceh-search-panel {
    position: absolute;
    z-index: 30;
    inset: 0;
    display: flex;
    align-items: center;
    padding-inline: 48px;
    background: #fff;
    opacity: 0;
    visibility: hidden;
    transform: scaleX(.97);
    transform-origin: left center;
    transition: opacity .22s ease, visibility .22s ease, transform .22s ease;
}

.ceh-header.is-search-open .ceh-search-panel {
    opacity: 1;
    visibility: visible;
    transform: scaleX(1);
}

.ceh-search-form {
    display: flex;
    align-items: center;
    width: 100%;
    height: 48px;
    border-bottom: 1px solid rgba(101, 0, 232, .26);
    direction: rtl;
}

.ceh-search-form__input {
    flex: 1 1 auto;
    height: 100%;
    padding: 0 4px;
    border: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #555;
    font: inherit;
    font-size: 17px;
}

.ceh-search-form__submit {
    display: inline-flex;
    color: var(--ceh-purple);
}

.ceh-search-form__submit svg {
    width: 26px;
    height: 26px;
}

.ceh-search-close {
    width: 38px;
    margin-right: 18px;
    color: #888;
    font-family: Arial, sans-serif;
    font-size: 32px;
    font-weight: 300;
    line-height: 1;
}

.ceh-mobile-toggle {
    display: none;
    align-items: center;
    gap: 8px;
    color: var(--ceh-purple);
}

.ceh-mobile-toggle__lines {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 23px;
}

.ceh-mobile-toggle__lines i {
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: transform .25s ease, opacity .2s ease;
}

.ceh-mobile-toggle__label {
    font: inherit;
    font-size: 13px;
}

.ceh-effect-fade {
    animation: cehFade var(--ceh-animation-duration) ease both;
}

.ceh-effect-slide {
    animation: cehSlide var(--ceh-animation-duration) cubic-bezier(.22, .75, .25, 1) both;
}

@keyframes cehFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes cehSlide {
    from { opacity: 0; transform: translateY(-18px); }
    to { opacity: 1; transform: translateY(0); }
}

.ceh-header.ceh-compact .ceh-header__inner {
    min-height: 68px;
    padding-inline: 24px;
    gap: 18px;
}

.ceh-header.ceh-compact .ceh-header__logo img {
    width: 112px;
}

.ceh-header.ceh-compact .ceh-mobile-toggle {
    display: inline-flex;
    order: 3;
    margin-right: auto;
}

.ceh-header.ceh-compact .ceh-header__actions {
    order: 2;
    margin-right: 0;
}

.ceh-header.ceh-compact .ceh-header__logo {
    order: 1;
}

.ceh-header.ceh-compact .ceh-header__nav {
    position: absolute;
    z-index: 25;
    top: 100%;
    right: 16px;
    left: 16px;
    display: block;
    max-height: min(72vh, 620px);
    padding: 10px;
    border: 1px solid rgba(40, 30, 60, .06);
    border-radius: 0 0 14px 14px;
    background: #fff;
    box-shadow: 0 18px 35px rgba(31, 18, 57, .11);
    opacity: 0;
    overflow: auto;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .23s ease, visibility .23s ease, transform .23s ease;
}

.ceh-header.ceh-compact.is-menu-open .ceh-header__nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.ceh-header.ceh-compact .ceh-menu {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    white-space: normal;
}

.ceh-header.ceh-compact .ceh-menu > li,
.ceh-header.ceh-compact .ceh-menu > li > a {
    display: flex;
    width: 100%;
}

.ceh-header.ceh-compact .ceh-menu > li > a {
    justify-content: flex-start;
    padding: 12px 14px;
    border-radius: 8px;
}

.ceh-header.ceh-compact .ceh-menu > li > a::before {
    right: 14px;
    bottom: 5px;
    width: 38px;
    transform: none;
}

.ceh-header.ceh-compact .ceh-menu .sub-menu,
.ceh-header.ceh-compact .ceh-menu .sub-menu .sub-menu {
    position: static;
    display: block;
    margin: 0 14px 6px;
    padding: 4px;
    border: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
}

.ceh-header.ceh-compact.is-menu-open .ceh-mobile-toggle__lines i:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.ceh-header.ceh-compact.is-menu-open .ceh-mobile-toggle__lines i:nth-child(2) {
    opacity: 0;
}

.ceh-header.ceh-compact.is-menu-open .ceh-mobile-toggle__lines i:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 767px) {
    .ceh-header.ceh-compact .ceh-header__inner {
        min-height: 62px;
        padding-inline: 14px;
        gap: 13px;
    }

    .ceh-header.ceh-compact .ceh-header__logo img {
        width: 88px;
        max-height: 50px;
    }

    .ceh-header.ceh-compact .ceh-social {
        display: none;
    }

    .ceh-header.ceh-compact .ceh-search-toggle svg {
        width: 27px;
        height: 27px;
    }

    .ceh-header.ceh-compact .ceh-mobile-toggle__label {
        display: none;
    }

    .ceh-header.ceh-compact .ceh-search-panel {
        padding-inline: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ceh-header,
    .ceh-header * {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}
