/* --------------------
   header
-------------------- */
#header {
    position: sticky;
    width: 100%;
    z-index: 20;
    top: 0;
    right: 0;
    transition: transform 0.6s;
    background: rgba(217, 234, 253, 0.72);
    backdrop-filter: blur(56px);
}

.websima-header.container-fluid, .websima-top-header .container-fluid{
    padding-right: 40px;
    padding-left: 40px;
}


.header-mese {
    display: flex;
    align-items: center;
    gap: 40px;
}

:root {
    --pl-bg: #fff;
    --pl-fg: #0D3853;

    /* ابعاد viewBox */
    --vb-w: 1440;
    --vb-h: 800;
    --hole-cx: 720;
    --hole-cy: 400;
    --align-x: calc(50vw - (var(--hole-cx) / var(--vb-w) * 100vw));
    --align-y: calc(50vh - (var(--hole-cy) / var(--vb-h) * 100vh));
    --scale-x: 100;
    --scale-y: 100;
}

#preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    overflow: hidden;
    opacity: 1;
    visibility: visible;
    transition: opacity .8s ease, visibility .8s ease;
}

#preloader.hide {
    opacity: 0;
    visibility: hidden;
}

#preloader.is-exiting {
    pointer-events: none;
}

#preloader.hide {
    display: none;
}

.main-menu-ul>.menu-item-has-children::after {
    content: "\e902";
    transition: 0.3s;
    color: rgba(77, 83, 89, 1);
    display: block;
    font-family: 'icomoon' !important;
    transform: rotate(270deg);
    font-size: 12px;
}
.main-menu-ul>.menu-item-has-children:hover::after{
	color: #1d6794;
}
.main-menu-ul ul.sub-menu li.menu-item-has-children > a:after {
    content: "\e902";
    font-family: 'icomoon' !important;
    display: block;
    position: absolute;
    left: 10px;
    font-size: 12px;
    top: 12px;
}
.main-menu-ul>.menu-item-has-children {
    gap: 9px;
}

.main-menu-ul li {
    position: relative;
    transition: 0.3s;
}
.main-menu-ul > li {
    display: flex;
    align-items: center;
}
.main-menu-ul .sub-menu {
    display: flex;
    position: absolute;
    top: 100%;
    flex-direction: column;
    background: rgba(248, 250, 252, 1);
    min-width: 12rem;
    padding: 0;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    right: 0;
    gap: 0;
}
.main-menu-ul .sub-menu li > ul {
    right: 100%;
    left: 0;
    top: 0;
    transform: none;
}
.main-menu-ul .sub-menu li {
    display: block;
    width: 100%;
    text-align: center;
}

.main-menu-ul .sub-menu li a {
    display: block;
    text-align: right;
    padding: 12px;
}

.main-menu-ul .menu-item-has-children:hover>.sub-menu {
    opacity: 1;
    visibility: visible;
}

/* .main-menu-ul>li>.sub-menu::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 20px;
    top: -18px;
    right: 0px;
} */

.nav-up #header {
    transform: translateY(-150px);
}

.pl-svg {
    position: absolute;
    inset: 0;
    width: 100vw;
    height: 100vh;
    display: block;
    color: var(--pl-fg);
}

.pl-center {
    position: absolute;
    inset: 0;
    transform: translate(var(--align-x), var(--align-y));
    /* فقط وسط‌چین کردن حفره */
    will-change: transform;
}

.pl-zoom {
    position: absolute;
    inset: 0;
    transform-origin: 50% 50%;
    /* اسکیل از وسط ویوپورت → خروجِ متقارنِ چپ/راست */
    animation: pl-breathe 2.5s ease-in-out infinite;
    will-change: transform, opacity;
    backface-visibility: hidden;
}

@keyframes pl-breathe {
    0% {
        transform: scale3d(1, 1, 1)
    }

    50% {
        transform: scale3d(1.02, 1.02, 1)
    }

    /* کمی‌تر برای لطافت */
    100% {
        transform: scale3d(1, 1, 1)
    }
}

/* --------------------
    Menu Mobile
-------------------- */
#mask {
    position: fixed;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.5);
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: none;
}

#menumobile {
    position: fixed;
    top: 0;
    bottom: 0;
    right: -275px;
    width: 275px;
    background: #fff;
    z-index: 99991;
    transition: all 0.5s;
    box-sizing: border-box;
    overflow: hidden;
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .3) !important;
    overflow-y: auto;
}

#menumobile img {
    max-width: 130px;
}

#nomenumobile {
    cursor: pointer;
    transition: all 0.5s;
    width: 25px;
    height: 25px;
    background: transparent;
    text-align: center;
    display: inline-flex;
    color: var(--color1);
    font-size: 18px;
    align-items: center;
    justify-content: center;
}

.come-menumobile {
    right: 0 !important;
}

.websima-top-header {
    width: 100%;
    height: 55px;
}

.websima-header .container-fluid {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.websima-header>div {
    display: flex;
}

.header-before {
    background: #fff;
    position: relative;
    z-index: 1;
}

.header-before::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 100%;
    right: calc(50% - 50vw);
    background: #fff;
    pointer-events: none;
    z-index: -1;
}


.header-end {
    position: relative;
    background: #fff;
    backdrop-filter: blur(56px);
    -webkit-backdrop-filter: blur(56px);
    gap: 8px;
    width: 100%;
    justify-content: flex-end;
    z-index: 0;
}

.header-end::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: calc(50% - 50vw);
    width: calc(40vw - (50% - 50vw));
    background: linear-gradient(89.62deg, rgba(255, 255, 255, 0.3) 0%, #FFFFFF 27.61%);
    backdrop-filter: inherit;
    -webkit-backdrop-filter: inherit;
    pointer-events: none;
    z-index: -1;
}


.websima-button .quote-count {
    position: absolute;
    background: #122e59;
    color: #fff;
    top: -10px;
    right: 10px;
    padding: 0 5px;
    border-radius: 4px;
    font-size: 12px;
    line-height: 1;
    height: 20px;
    display: flex;
    align-items: center;
    padding-top: 3px;
}

.websima-menu ul {
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
}

.websima-menu ul li a {
    font-weight: 400;
    font-size: clamp(14px,2vw,16px);
    color: rgba(77, 83, 89, 1);
    transition: 0.3s;
}
.websima-menu ul li:hover > a{
    color: rgba(29, 103, 148, 1);
}
.header-logo {
    display: block;
    padding: 0 0 23px;
    position: relative;
    margin-top: -39px;
}

.header-start {
    width: 140px;
	flex:0 0 140px;
}

.header-start::before {
    content: '';
    clip-path: polygon(100% 0, 0% 100%, 100% 100%);
    background: #ffffff;
    position: absolute;
    width: 50%;
    height: 100%;
    display: block;
    right:0;
}

.header-start::after {
    content: '';
    clip-path: polygon(0 0, 0% 100%, 100% 100%);
    background: #ffffff;
    position: absolute;
    width: 50%;
    height: 100%;
    display: block;
    left: 0;
}

.header-logo img {
    width: 100px;
    height: 100px;
}

.header-start,
.header-end {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.header-end {
    justify-content: flex-end;
}

.websima-menu {
    margin-left: auto;
}

.websima-account {
    padding: 10px;
    background: #0D3853;
    border: 1px solid #0D3853;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    color: #fff;
    & i{
        font-size: 24px;
    }
}
.websima-account:hover {
   background-color: transparent;
   color: rgba(18, 46, 89, 1);
}
.websima-top-header-end {
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-header-button {
    padding: 7px 20px;
    background: rgb(166 180 194 / 44%);
    border: 1px solid rgba(255, 255, 255, 1);
    border-radius: 6px;
}


.top-header-button img {
    max-width: 34px;
}

.websima-icon-search {
    margin-inline-start: 150px;
    display: flex;
    align-items: center;
    width: max-content;
    gap: 4px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 6px;
    padding: 7px 12px;
    min-width: 269px;
}

.websima-icon-search span {
    font-weight: 400;
    font-size: 13px;
    line-height: 20px;
    color: rgba(110, 119, 128, 1);

}

.websima-top-header .container-fluid {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.top-header-button:hover {
    background: rgba(18, 46, 89, 1);
}

.websima-lang {
    padding: 6px 8px;
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 1);
    border-radius: 6px;
    min-height: 35px;
    position: relative;
    border: none;
}

.websima-lang.has-lang-link::before {
    content: "\e911";
    display: inline-block;
    transition: 0.3s;
    font-family: 'icomoon' !important;
    color: rgba(77, 83, 89, 1);
    font-size: 6px;
    cursor: pointer;
}

.websima-lang .icon-lang {
    font-size: 18px;
}

.websima-lang span {
    font-weight: 400;
    font-size: 13px;
    line-height: 16.36px;
    color: rgba(42, 45, 48, 1);
    margin-bottom: -5px;
}

.websima-lang:hover ul {
    opacity: 1;
    visibility: visible;
}

.websima-lang ul::before {
    content: '';
    position: absolute;
    width: 100%;
    background: transparent;
    height: 4px;
    top: -4px;
    left: 0;
}

.websima-lang ul {
    position: absolute;
    top: 105%;
    z-index: 2;
    background: #fff;
    width: 100%;
    left: 0;
    padding: 4px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    border-radius: 6px;
    transition: 0.3s;
    opacity: 0;
    visibility: hidden;
}

.websima-lang ul a {
    font-size: 14px;
}

.websima-lang ul a:hover {
    color: rgba(18, 46, 89, 1);
}

.header-start-mobile {
    display: flex;
    gap: 9px;
}

.title-mm {
    padding: 20px 15px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.main-mm {
    padding: 5px 15px;
}

.main-mm ul li a {
    color: #222;
    display: block;
    padding: 8px 0;
    position: relative;
    font-family: var(--main_font);
}


.childer {
    position: absolute;
    left: 0;
    cursor: pointer;
    top: 10px;
    width: 25px;
    height: 25px;
    background: transparent;
    color: var(--color1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.5s;
}

.main-mm ul li>.sub-menu {
    z-index: 9;
}

.come-menumobile .childer.active i {
    transform: rotate(180deg);
}

.sub-menu {
    display: none;
    padding-left: 20px;
}
.come-menumobile .sub-menu li {
    margin-bottom: 6px;
}

.come-menumobile .sub-menu a {
    font-size: 14px;
    padding: 0;
}   

.come-menumobile .sub-menu {
    padding: 0 14px 0 0 !important;
}

.main-mm ul li i{
    font-size: 6px;
    transition: 0.3s;
}

:root {
    --vb-w: 1440;
    --vb-h: 800;
    --hole-cx: 720;
    /* مرکز حفره در مختصات SVG */
    --hole-cy: 400;

    /* وسط‌چین کردن حفره در ویوپورت با واحدهای پایدار موبایل */
    --align-x: calc(50svw - (var(--hole-cx) / var(--vb-w) * 100svw));
    --align-y: calc(50svh - (var(--hole-cy) / var(--vb-h) * 100svh));
}

@supports not (width: 100svw) {
    :root {
        --align-x: calc(50vw - (var(--hole-cx) / var(--vb-w) * 100vw));
        --align-y: calc(50vh - (var(--hole-cy) / var(--vb-h) * 100vh));
    }
}

@media screen and (min-width:576px) {

    #menumobile {
        width: 450px;
        right: -450px;
    }
}


.websima-mega-menu {
    position: absolute;
    background: rgba(248, 250, 252, 1);
    width: clamp(930px, 100%, 1100px);
    right: 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 32px 24px 24px;
    transition: 0.3s;
    opacity: 0;
    visibility: hidden;
    top: 100%;
}

.mega-menu-li:hover .websima-mega-menu {
    opacity: 1;
    visibility: visible;
}

.websima-mega-menu>ul {
    width: 75%;
    display: flex;
    flex-wrap: wrap;
    gap: 51px 0;
    padding-left: 48px;
    justify-content: space-between;
    align-items: flex-start;
}

.websima-mega-menu .intro-slide .websima-button{
    padding: 12px 20px !important;
    font-size: 12px;
    margin-top: 0;
}

.websima-mega-menu .intro-slide{
    width: 100%;
}

.websima-mega-menu .intro-slide img{
    height: 255px;
    object-fit: cover;
}

.mega-menu-li {
    position: unset !important;
}

.websima-mega-menu-image {
    width: 25%;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.websima-mega-menu-image a {
    padding: 0 !important;
}

.websima-mega-menu>ul li {
    width: 16%;
}

.websima-mega-menu>ul li ul li {
    display: block;
    width: 100%;
}

.websima-mega-menu>ul>li>a {
    font-weight: 600;
    font-size: clamp(14px,1vw,16px);
    color: #0D3853;
    display: block;
    margin-bottom: 18px;
    padding: 0;
}

.websima-mega-menu>ul>li>a::after {
    background-color: rgba(224, 179, 162, 1);
    width: 40px;
    height: 3px;
    border-radius: 8px;
    z-index: 2;
    opacity: 1;
    visibility: visible;
    right: 0;
    transform: unset;
    bottom: -5px;
}

.websima-mega-menu__list ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.websima-mega-menu__list ul li a {
    padding: 0;
    font-size: clamp(12px,1vw,14px);
    color: #6B677A;
	line-height:1.25;
}

.websima-mega-menu__list ul li a:hover {
    color: #0D3853;
}
.mega-menu-li li.menu-item-has-children::after{
    display: none !important;
}

.websima-mega-menu .intro-title a{
    font-weight: 700;
    font-style: Bold;
    font-size: 16px;
    line-height: 100%;
color: #0D3853;    
}
/* #wrapper {
    overflow: hidden;
} */
@media screen and (max-width:991px) {
    .websima-lang {
        border-radius: 10px;
    }

    .header-start .icon-menu-mobile,
    .header-start .lang-mobile {
        width: max-content;
    }

    .header-logo {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .header-before-center {
        width: 100%;
        background: #FFF;
    }
    .header-logo::before {
        content: "";
        position: absolute;
        top: auto;
        bottom: 0;
        right: 100%;
        left: calc(50% - 50vw);
        background: #fff;
        pointer-events: none;
        z-index: -1;
        height: 85px;
    }

    .header-start .lang-mobile {
        display: flex;
        justify-content: flex-end;
    }

    .icon-menu-mobile {
        display: flex;
    }

    .websima-top-header {
        height: 53px;
    }

    .header-mm {
        border: 1px solid #bcccdc;
        border-radius: 8px;
        width: 45px;
        height: 45px;
        background: #fff;
        display: flex;
        justify-content: center;
        align-items: center;
		cursor:pointer
    }

    #preloader {
        position: fixed;
        inset: 0;
        z-index: 9999;
        overflow: hidden;
        opacity: 1;
        visibility: visible;
        transition: opacity .8s ease, visibility .8s ease;
    }

    /* svg باید «cover» کنه ولی بدون کشیدگی (slice کارش رو انجام میده) */
    #preloader .pl-svg {
        position: absolute;
        inset: 0;
        width: 100svw;
        /* به‌جای 100vw */
        height: 100dvh;
        /* به‌جای 100vh */
        display: block;
        color: var(--pl-fg);
    }

    /* fallback برای مرورگرهایی که svw/dvh ندارند */
    @supports not (height: 100dvh) {
        #preloader .pl-svg {
            width: 100vw;
            height: 100vh;
        }
    }

    /* لایه‌های مرکز و زوم همان قبلی بمانند */
    .pl-center {
        position: absolute;
        inset: 0;
        transform: translate(var(--align-x), var(--align-y));
    }

    .pl-zoom {
        position: absolute;
        inset: 0;
        transform-origin: 50% 50%;
        will-change: transform, opacity;
    }

    .header-start {
        justify-content: space-between;
    }

    .websima-header>div {
        justify-content: space-between;
    }

    .header-before {
        display: flex;
        align-items: center;
    }
    .websima-header.container-fluid, .websima-top-header .container-fluid{
        padding-right: 20px;
        padding-left: 20px;
    }
}

@media (max-width: 768px){
    .header-start{
        height: 78px;
    }
    .header-logo::before{
        height: 78px;
        bottom: 3px;
    }
}