/* --------------------------------------------------
   Root Variables (Colors, Sizes, Spacing)
-------------------------------------------------- */
@import url('../fonts/farhang/Webfonts/fontiran.css');

:root {
    /*font-size: clamp(12px, calc(1rem + 0.5vw), 22px);*/
    font-size: clamp(12px, 1.5vw, 22px);
    --default-font: "FarhangDot1", sans-serif;
    --default-font-number: "Farhang2FaNum", sans-serif;
    --body-padding: clamp(20px, 3vh, 90px);
    --color-bg-light: #f0f0f0;
    --font-color: white;
    --black-color: #212121;
    /* رنگ اصلی تیره */
    --white-color: #ffffff;
    /* رنگ اصلی روشن */
    --text-gray: rgb(156 156 156);
    --text-black: #000000;

}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* General Styles */
a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}



/* padding margin*/
.my1-bottom {
    margin-bottom: 1rem;
}

/* layout.css*-----------------*/

body {
    direction: rtl;
    /* min-height: 100vh; */
    overflow: hidden;
    position: relative;
    overflow-x: hidden;
    font-family: var(--default-font);
    -moz-font-feature-settings: "ss02";
    -webkit-font-feature-settings: "ss02";
    font-feature-settings: "ss02";
    /*display:flex;*/
    align-content: center;
}

.background-left,
.background-right {
    position: fixed;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    z-index: -1;
    /*background-color: lightblue; */
}

.background-right {
    left: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(12px);
}

.container {
    display: grid;
    z-index: 1;
    /* margin:1.5rem; */
    height: 100vh;
    align-self: center;

}


/*main-page.css-----------------*/
/*style.css--------------------*/
.center-line-icon {
    display: none;
}

.circle-cell {
    align-self: start;
}

.circle-items {
    display: grid;
    grid-template-columns: 9% 13.75% 9% 13.75% 9% 13.75% 9% 13.75% 9%;
    /*grid-template-rows: 50% 50%;    */
    /* gap: 2rem; */
    padding-inline: 1rem;
    justify-content: center;
    align-items: center;
}

.gap {
    aspect-ratio: 1 / 1;

}

.circle-items .circle-item {
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    aspect-ratio: 1 / 1;
    text-align: center;
    width: 100%;
    overflow: hidden;

}


.circle-item h5 {
    text-align: center;
}

.counter {
    font-weight: bold;

}

.circle-text {
    white-space: nowrap;
}

.under-text {
    color: var(--font-color);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;

}

.lable-item {
    display: grid;
    grid-template-columns: 75% 25%;
    color: var(--font-color);
}

.lable-item h1 {
    font-weight: bold;

}

.lable-text {
    /* padding-right: 1.5rm; */
    align-items: center;

}

.lable-item p {
    align-items: center;

}

hr {
    height: 0.5px;
    border: none;
    background-color: var(--font-color);

}

.slider-items {
    display: grid;
    grid-template-columns: 2fr 2fr 2fr 2fr 1fr;
}


.items-imag {
    position: relative;
    height: 100%;
    width: 100%;
    z-index: 5;
}

.items-imag img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.text-items {
    position: relative;
    height: 100%;
    /* width: 100%; */
    z-index: 10;
    top: -100%;
    box-shadow: inset 0px 60px 40px -8px #000000c2;
    padding: 0.25rem;
}

.article-items {
    display: grid;
    align-self: center;
}

.container-main-link {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.container-main-link a {
    background-color: var(--color-bg-light);
    text-decoration: none;
    color: inherit;
    width: 100%;
    max-width: 100%;
    color: #888;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.filter-light {
    filter: brightness(0) invert(1);
}

/*mobile.css-------------*/
/*@media (min-width: 320px) and (max-width: 480px) and (orientation: landscape) {*/


.background-left,
.background-right {
    display: none;
}

.container {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 2fr 6fr 2fr 5fr 3fr 4fr 2fr 3fr 2fr;
    padding: var(--body-padding);

}

/*menu*/
.container-logo {
    display: none;
}

/* Header Styles */
.site-header {
    position: relative;
    z-index: 1000;
    color: var(--white-color);
    /*padding: 10px 15px;*/
}

/* Mobile Header */
.mobile-header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding-bottom: clamp(15px, 2.5vw, 20px);
}

.mobile-header-container .container-logo {
    height: clamp(25px, 4vw, 40px);
    display: block;
}

.mobile-header-container .container-logo img {
    height: 100%;
}

.text-menu {
    display: flex;
    justify-content: space-between;
    gap: 5px;
    padding-bottom: 15px;
}

.text-menu>hr {
    /*height: 1px;*/
    border: none;
    background-color: var(--text-black);
    width: stretch;
    align-self: center;
    opacity: 0.3;
}

.text-menu>p {
    color: var(--text-black);
    font-size: clamp(10px, 2.5vw, 15px);
    font-weight: 600;
}

.header-left-mobile,
.header-right-mobile {
    display: flex;
    align-items: center;
    gap: 15px;
    /* فاصله بین آیکون‌ها */
}

.header-right-mobile .container-language {
    color: var(--white-color);
    border: 1px solid #fffdfd82;
}

.header-left-mobile>.container-language>p {
    color: var(--white-color);
}



.container-language {
    /*width: clamp(15px, 7vw, 34px);*/
    /*height: clamp(15px, 7vw, 34px);*/
    width: clamp(25px, 2.3vw, 120px);
    height: clamp(25px, 2.3vw, 120px);
    border-radius: 50%;
    border: 1px solid #8080803d;
    /*background-color: var(--white-color);*/
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--black-color);
    font-size: 10px;
    cursor: pointer;
    overflow: hidden;

}

.header-left-mobile>.container-language {
    border: 1px solid #ffffffb0;
}

.container-language p {
    margin: 1px 0;
    line-height: 1.1;
}

.farsi {
    font-weight: 900;
    font-size: clamp(7px, 0.7vw, 42px);
}

.english {
    font-size: clamp(7px, 0.6vw, 32px);
}


.container-logo {
    /*height: 35px;*/
    width: auto;
}

.logo-mobile {
    height: 100%;
    width: auto;
}

.hamburger-menu {
    background: none;
    border: none;
    color: white;
    font-size: clamp(10px, 5vw, 24px);
    cursor: pointer;
    /*padding: 5px;*/
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Navigation Menu (Mobile) */
.container-menu {
    display: none;
    position: fixed;
    right: -100%;
    top: 0;
    width: 100%;
    /*max-width: 350px;*/
    height: 100vh;
    background-color: var(--white-color);
    color: var(--white-color);
    flex-direction: column;
    transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    padding: 20px;
    overflow-y: auto;
    box-shadow: -4px 0 10px rgba(0, 0, 0, 0.2);
}

.container-menu.active {
    display: flex;
    right: 0;
}

.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /*margin-bottom: 25px;*/
    /*padding-bottom: 15px;*/
    border-bottom: 1px solid var(--secondary-color);
    padding-bottom: clamp(10px, 2vw, 16px);

}

.logo-mobile-nav {
    height: clamp(25px, 4vw, 40px);
}

.logo-mobile-nav img {
    height: 100%;

}

.close-menu-btn {
    background: none;
    border: none;
    color: var(--white-color);
    /*font-size: 30px; */
    cursor: pointer;
    /*padding: 5px;*/
    line-height: 1;
    width: clamp(15px, 7vw, 34px);
    height: clamp(15px, 7vw, 34px);
    border-radius: 50%;
    background-color: #424040;
    display: flex;
    /* justify-content: center; */
    align-items: center;
}

.menu {
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex-grow: 1;
}

.menu>li>a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0px;
    font-size: clamp(16px, 5vw, 27px);
    font-weight: 800;
    position: relative;
    color: var(--text-gray);
    /*padding-bottom: 8px;*/
}

.menu>li>a:hover {
    color: var(--text-black);
}

.menu-footer {
    display: flex;
    height: clamp(20px, 5vw, 40px);
    width: 55%;
    margin: auto;
    justify-content: space-between;
    /*margin-bottom: var(--body-padding);*/
    margin-bottom: calc(var(--body-padding) + 1rem);
}

.menu-footer a img {
    height: 100%;
}

/* Submenu Styles (Mobile with Animation) */
.submenu {
    display: none;
    list-style: none;
    /*padding-right: 20px; */
    /*margin-top: 10px;*/
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.35s ease, opacity 0.25s ease, padding 0.35s ease;
    /* اضافه شدن padding به transition */
}

.line-vr-hover {
    display: none;
}

.submenu li a {
    /*padding: 10px 0; */
    font-size: 15px;
    color: var(--text-black);
    font-weight: 300;
    opacity: 0.8;
}

/*.submenu li a:hover {*/
/*    color: var(--white-color);*/
/*}*/

/* Arrow Icon for Submenus */
.has-submenu>a::after {
    font-family: 'bootstrap-icons';
    font-weight: normal;
    font-size: 14px;
    margin-left: 10px;
    transition: transform 0.3s ease;
    line-height: 1;
    color: var(--text-gray);
}

.has-submenu.open>a {
    padding-bottom: 8px;
}

/* Logic for opening submenus */
.has-submenu.open>.submenu {
    max-height: 500px;
    opacity: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Media Queries */
/* Mobile Styles are default */
.desktop-header-container {
    display: none;
}

.list-icon-svg {
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-left: 8px;
    background-image: url(../image/img/flsh.svg);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    /* mask-image: url('path/to/your-icon.svg'); */
    /* mask-repeat: no-repeat; */
    /* mask-size: contain; */
    /* mask-position: center; */
    /* background-color: #007BFF; */
}

/* end-menu*/


.circle-items {
    padding-inline: 1rem;
}

.circle-items .circle-item {
    border: 1px solid var(--font-color);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(12px);

}

.circle-item h5 {
    color: var(--font-color);
    line-height: 1;
    margin: 0.3rem;
}

.counter {
    font-size: clamp(8px, 2.5vw, 24px);

}

.circle-text {
    font-size: clamp(10px, 3vw, 24px);
    font-weight: 100;
}

.under-text {
    font-size: clamp(8px, 3vw, 24px);
    font-weight: 300;
}

.lable-item {
    line-height: 1;
    margin-right: 1rem;
}

.lable-item h1 {
    font-size: clamp(29px, 7vw, 90px);
    padding-bottom: 0.5rem;
    padding-top: 0.5rem;
    overflow-wrap: anywhere;
}


.lable-item p {
    font-size: clamp(8px, 1.5vw, 18px);
    font-weight: 100;
    margin-top: clamp(1px, 0.5vw, 15px);
    margin-bottom: clamp(1px, 0.5vw, 15px);

}

.main-slider-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-slider-link .list-icon-svg {
    display: inline-block;
    width: clamp(5px, 0.4vw, 18px);
    height: clamp(5px, 0.4vw, 18px);
    margin-left: 4px;
    background-image: none;
    mask-image: url(../image/img/flsh.svg);
    mask-repeat: no-repeat;
    mask-size: contain;
    mask-position: center;
    background-color: white;
    transform: rotate(316deg);
    transform-origin: center;

}

/* hr {
  height: 0.5px;

} */

.slider-items {
    gap: 1rem;
    margin-left: clamp(-90px, -3vh, -20px);
    margin-right: 1rem;
    /* height: 100%; */
    /* overflow: clip; */
    display: flex;
    align-self: end;
    aspect-ratio: 10.8 / 2.8;
    overflow: clip;
}

.slider-items .items {
    aspect-ratio: 3 / 4;
    /*flex-basis:100px;*/
    height: 100%;
    color: var(--font-color);
}

.slider-items .items1 {
    /*padding: 0.25rem;*/
    /*box-shadow: inset 0px 30px 20px -8px rgb(0 0 0 / 86%);*/
    aspect-ratio: 3 / 4;
    flex-basis: 100px;
    height: 100%;

}

.slider-items .items h3 {
    padding-left: 0.5rem;
    font-size: clamp(7px, 1.5vw, 18px);
    font-weight: 900;
    padding-top: 0.2rem;
    padding-bottom: 0.2rem;
    overflow-wrap: anywhere;

}

.slider-items .items p {
    padding-left: 0.5rem;
    font-size: clamp(6px, 1.5vw, 18px);
    font-weight: 100;
    padding-top: 0.2rem;
    overflow-wrap: anywhere;


}

.slider-counter {
    display: none;
}

.article-items {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding-inline: 2rem;
}


.container-main-link a {
    font-weight: 200;
    font-size: clamp(10px, 3vw, 14px);
    border-radius: 18px;
    padding-top: clamp(4px, 1vw, 18px);
    padding-bottom: clamp(4px, 1vw, 18px);
}

.hidden-responsive {
    display: none;
}

.lable-item .lable-text.first-load h1,
.lable-item .lable-text.first-load p {
    transform: translateY(50px);
    filter: blur(20px);
    opacity: 0;
    animation: showContent 0.5s 1s linear forwards;
}

@keyframes showContent {
    to {
        transform: translateY(0px);
        filter: blur(0px);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0) translateY(0);
        /* ریست کامل */

        opacity: 1;
    }

    to {
        transform: translateX(100%) translateY(0);
        opacity: 0;
    }

}

.clone-zoom {
    position: fixed;
    z-index: 1;
    animation: zoomClone 2s ease-in-out forwards;
    object-fit: cover;
    pointer-events: none;
}

.clone-text {
    position: fixed;
    z-index: 1;
    pointer-events: none;
    box-shadow: 0 0 !important;
    padding: 0.25rem;


}

.clone-text {
    color: var(--font-color);
}

.clone-text h3 {
    padding-left: 0.5rem;
    font-size: clamp(7px, 1.5vw, 18px);
    font-weight: 900;
    padding-top: 0.2rem;
    padding-bottom: 0.2rem;
    overflow-wrap: anywhere;


}

.clone-text h1 {
    font-size: clamp(29px, 7vw, 90px);
    padding-bottom: 0.5rem;
    padding-top: 0.5rem;
    overflow-wrap: anywhere;

}

.clone-text p {
    padding-left: 0.5rem;
    font-size: clamp(6px, 1.5vw, 18px);
    font-weight: 100;
    padding-top: 0.2rem;
    overflow-wrap: anywhere;

}

.hr-fade-out {
    transform-origin: left center;
    animation: removeHr 0.5s linear forwards;
}

@keyframes removeHr {
    0% {
        transform: scaleX(1);
        /* مقیاس کامل */
        opacity: 1;
    }

    100% {
        transform: scaleX(0);
        /* مقیاس صفر (ناپدید شدن) */
        opacity: 0;
    }
}

.hr-fade-in {
    transform-origin: left center;
    animation: addHr 0.1s ease-in-out forwards;
}

@keyframes addHr {
    0% {
        transform: scaleX(0);
        opacity: 0;
    }

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



@keyframes zoomClone {
    0% {
        top: var(--start-top);
        left: var(--start-left);
        width: var(--start-width);
        height: var(--start-height);
        z-index: 1;
    }

    18% {
        z-index: -2;
        /* هنوز روی همه چیز */
    }

    50% {
        z-index: -2;
        /* همینجا میره زیر UI */
    }

    100% {
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        z-index: -2;
    }
}


.clone-stay {
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    opacity: 1 !important;
    z-index: -2 !important;
}

.clone-text.clone-leave {
    animation: cloneSlideOut 0.6s ease forwards;
}

@keyframes cloneSlideOut {
    from {
        transform: translateX(0) translateY(0);
        opacity: 1;
        filter: blur(0px);
        /* یا می‌توانی کمی blur بدهی مثل متن اصلی */
    }

    to {
        transform: translateX(150%) translateY(0);
        opacity: 0;
        /* محوشدگی */
        filter: blur(2px);
        /* کمی blur در طول انیمیشن */
    }
}

/* متن خارج‌شونده */
.leave {
    animation: slideOutRight 0.6s ease forwards;
}

/*} */

/* mobile-landscape--------------------*/
@media (min-width: 320px) and (orientation: landscape) {

    body {

        overflow: auto;
        height: 100%;
    }

    /*.container {*/
    /*margin:1.5rem; */
    /*height: 100%;*/

    /*}*/
}

@media (orientation: portrait) {

    .container {
        overflow: scroll;
        /*برای فایرفاکس */
        scrollbar-width: none;
        /*برای IE/Edge */
        -ms-overflow-style: none;

    }



    .slider-items {
        margin-bottom: 1rem;
        margin-top: 1rem;
    }

    .circle-items {
        margin-top: 1rem;

    }

    .lable-item {

        margin-top: 1rem;
    }

    .lable-item h1 {
        font-size: clamp(15px, 7vw, 90px);
        padding-bottom: 0.5rem;
        padding-top: 0.5rem;


    }


    .slider-items .items h3 {
        font-size: clamp(6px, 1.8vw, 18px);
        padding: 0.2rem;
    }



    .slider-items .items p {
        font-size: clamp(5px, 1.5vw, 18px);
        padding: 0.1rem;
    }

    .clone-text h3 {
        font-size: clamp(6px, 1.8vw, 18px);
        padding: 0.2rem;


    }

    .clone-text h1 {
        font-size: clamp(15px, 7vw, 90px);
        padding-bottom: 0.5rem;
        padding-top: 0.5rem;

    }

    .clone-text p {
        font-size: clamp(5px, 1.5vw, 18px);
        padding: 0.1rem;

    }


}

@media (max-aspect-ratio: 1/1.6) and (orientation: portrait) {

    .slider-items {
        overflow: hidden;
    }

}

/*desktop-media-query(small-screen)---------*/
/*@media (min-width: 768px) and (orientation: landscape) {*/
@media (orientation: landscape) {


    :root {
        --body-padding: clamp(20px, 4.5vh, 90px);
    }

    body {
        box-shadow: inset 0 0 300px 100px rgba(0, 0, 0, 0.2);
        overflow: hidden;
        height: 100vh;
    }

    .background-left,
    .background-right {
        display: block;
    }


    .container {
        grid-template-columns: 50% 50%;
        grid-template-rows: 3fr 5fr 6fr 2fr 1fr;
        /*grid-template-rows: 18.75% 31.25% 37.5% 6.25% 6.25%;*/
        height: auto;
        aspect-ratio: 2 / 1.2;
        padding: var(--body-padding);
        grid-template-areas:
            "header header"
            "circle-items lable-item"
            "circle-items slider-items"
            "article-items slider-counter"
            "footer footer";
        position: relative;
    }

    .spacer {
        display: none;
    }

    .center-line-icon {
        display: block;
        width: clamp(6px, 0.5vw, 8px);
        margin: 0 auto;
        background-image: url(../image/img/center-line.svg);
        background-repeat: no-repeat;
        background-size: contain;
        background-position: center;
        position: absolute;
        height: 70%;
        /* right: calc(50.5% - var(--body-padding)); */
        /* margin: auto; */
        display: flex;
        justify-self: center;
        align-self: center;
    }

    .site-header {
        all: unset;
        grid-area: header;
        display: flex;
        align-items: start;
        justify-content: space-between;


    }

    .mobile-header-top {
        display: none;
    }

    .text-menu {
        display: none;
    }

    .menu-header {
        display: none;
    }


    .container-logo {
        all: unset;
        display: block;
        flex: 1;
        display: flex;
        justify-content: flex-start;
        /* لوگو به راست بچسبد */
        align-items: center;
        /*height: clamp(60px,5vw,200px);*/
        position: relative;

    }


    .container-logo img {
        /* height: 120px; */
        /* filter: brightness(0) invert(1); */
        /* position: relative; */
        /* z-index: 10; */
        height: 120px;
        filter: brightness(0) invert(1);
        position: absolute;
        z-index: 10;
        /* width: 250px; */
        height: clamp(40px, 5vw, 300px);
        top: 0;
        /* left: -50px; */
        transform: scale(1.2);
        /* padding-top: clac(var(--body-padding) / 2); */
    }

    /* تقسیم مساوی بین لوگو و منو */
    /*.container-logo, .container-menu {*/
    /*  display:block;*/
    /*  flex: 1;*/
    /*}*/


    .logo {
        height: 50px;
        width: auto;

    }

    .container-menu {
        all: unset;
        margin-right: 4.5vh;
        flex: 1;
    }

    .menu>li>a {
        all: unset;
    }

    .menu>li>a:hover {
        color: var(--white-color);
    }

    .menu {
        all: unset;
        display: flex;
        justify-content: space-around;
        list-style: none;
        /*gap: 2rem;*/
        margin: 0;
        padding: 0;
    }

    .menu li {
        /*all: unset;*/
        position: relative;
    }

    .menu li a {
        /*all: unset;*/
        text-decoration: none;
        color: var(--font-color);
        font-weight: 300;
        /*padding: 0.5rem 0;*/
        font-size: clamp(10px, 1.1vw, 60px);

    }

    .menu-footer {
        display: none;
    }

    .submenu li a .list-icon-svg {
        all: unset;
    }

    .menu li.has-submenu {
        /*all: unset;*/
        position: relative;
    }

    .submenu {
        all: unset;
        position: absolute;
        top: 100%;
        left: 50%;
        background-color: white;
        box-shadow:
            /* سایه راست */
            1px 0 1px rgba(0, 0, 0, 0.1),
            /* سایه پایین */
            0 1px 1px rgba(0, 0, 0, 0.1);
        list-style: none;
        margin: 0;
        padding: 0.5rem 0;
        min-width: clamp(90px, 7vw, 500px);
        display: none;
        transform: translateX(-50%);
        text-align: center;

    }

    .submenu::before {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        width: 100%;
        height: clamp(3px, 0.3vw, 30px);
        background-image: linear-gradient(to right, #d33636, #d33636);
        animation: borderFill 1s ease forwards;
    }

    @keyframes borderFill {
        0% {
            width: 0%;
        }

        100% {
            width: 100%;
        }
    }

    @keyframes fadeIn {
        0% {
            opacity: 0;
        }

        100% {
            opacity: 1;
        }
    }

    .line-vr-hover {
        position: relative;
        display: inline-block;
        width: 2px;
        height: 15px;
        vertical-align: middle;
        opacity: 0;
    }

    .line-vr-hover::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: currentColor;
        transform: scaleX(0.5);
        transform-origin: left center;
    }

    .hover-link:hover .line-vr-hover {
        opacity: 1;
    }

    .hover-link:hover .line-vr {
        opacity: 0;
    }

    .submenu li {
        /*all: unset;*/
        display: flex;
        padding: 0;
        height: auto;
        justify-content: center;
        align-content: center;
        /* gap: 10px;*/
        margin: 2px 0;
    }

    .submenu li a {
        /*all: unset;*/
        color: #515151;
        font-size: clamp(8px, 0.7vw, 42px)
    }


    /* نمایش زیرمنو هنگام hover */
    .menu li.has-submenu:hover>.submenu {
        /*all: unset;*/
        display: block;
        z-index: 2;
    }

    .submenu li:hover {
        background-color: #ebebeb;

    }

    .submenu li a:hover {
        color: var(--text-black);
        font-weight: 500;
    }



    .circle-items {
        grid-row: 2 / 4;
        /* از ردیف 2 شروع شده و تا قبل از ردیف 4 ادامه پیدا می کند (یعنی ردیف 2 و 3 را پوشش می دهد) */
        grid-column: 1 / 2;
        grid-template-columns: 0% 15% 13.25% 15% 13.25% 15% 13.25% 15% 0%;
        grid-template-rows: 50% 50%;
        padding-inline: 0px;
        margin-right: 0.5rem;
        margin-left: calc(var(--body-padding) + 0.5rem);
        /*row-gap:3rem;*/

    }

    .circle-cell {
        align-self: start;
    }

    .my1-bottom {
        margin-bottom: 0px;
        /*padding-top: 3rem;*/
        align-self: start;
        padding-top: 2rem;
    }

    .circle-items .circle-item {
        grid-area: circle-items;
        border: 1px solid var(--font-color);
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(1px);
        -webkit-backdrop-filter: blur(12px);

    }

    .circle-item h5 {
        color: var(--font-color);
        line-height: 1;
        margin: 0.3rem;
    }

    .counter {
        font-size: clamp(8px, 1.25vw, 24px);

    }

    .circle-text {
        font-size: clamp(10px, 1.75vw, 24px);
        font-weight: 100;
    }

    .under-text {
        font-size: clamp(8px, 1.5vw, 24px);
        font-weight: 300;
    }



    .lable-item {
        grid-area: lable-item;
        padding-top: 1rem;
        margin-right: var(--body-padding);
    }

    .lable-item h1 {
        font-size: clamp(29px, 3.6vw, 164px);
        padding-bottom: 0.5rem;
        padding-top: 0.5rem;
    }


    .lable-item p {
        font-size: clamp(8px, 1vw, 18px);
        font-weight: 100;
        margin-top: clamp(1.5px, 0.2vw, 15px);
        margin-bottom: clamp(1.8px, 0.2vw, 15px);

    }


    .slider-items {
        grid-area: slider-items;
        display: flex;
        overflow: clip;
        margin-top: 1rem;
        margin-bottom: 0.5rem;
        column-gap: 1rem;
        margin-left: clamp(-90px, -4.5vh, -10px);
        aspect-ratio: 15.5 / 4;
        align-self: flex-end;
        margin-right: var(--body-padding);
    }

    .slider-items .items {
        aspect-ratio: 3 / 4;
        /*padding: 0.25rem;*/
        /*box-shadow: inset 0px 40px 20px -8px rgb(0 0 0 / 86%);*/
        box-shadow: inset 0px 40px 40px -5px rgb(0 0 0 / 80%);
        flex-basis: 100px;

    }

    .next .slider-items {
        animation: effectNext .5s linear 1 forwards;
        z-index: -1;
    }

    @keyframes effectNext {
        from {
            transform: translateX(-15%);
        }
    }

    .prev .slider-items {
        animation: effectPrev .5s linear 1 forwards;
    }

    @keyframes effectPrev {
        0% {
            transform: translateX(5%);
            opacity: 0.4;
        }

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

        }
    }


    .slider-items .items h3 {
        padding-left: 0.5rem;
        font-size: clamp(5px, 0.9vw, 54px);
        font-weight: 900;

    }

    .slider-items .items p {
        padding-left: 0.5rem;
        font-size: clamp(3px, 0.8vw, 18px);
        font-weight: 100;

    }


    .slider-counter {
        display: block;
        grid-area: slider-counter;
        margin-right: var(--body-padding);
        display: flex;
        /* flex-direction: column; */
        gap: 10px;
    }

    .slider-btn {
        display: flex;
        flex: none;
        color: #ffffff78;
        font-size: medium;
        /* border: 1px solid gray; */
        border-radius: 50%;
        /* margin: 10px; */
        padding: clamp(4px, 0.3vw, 20px);
        align-self: center;
        border: 1px solid #ffffff8f;
    }

    /*.bi bi-chevron-right .bi bi-chevron-left{*/
    /*    align-self: center;*/
    /*    display: flex;*/
    /*}*/

    .progress-line {
        flex: auto;
        align-self: center;
    }

    .slide-number p {
        color: var(--white-color);
        font-size: clamp(32px, 4vw, 120px);
        font-weight: 200;
    }



    .article-items {
        grid-area: article-items;
        grid-template-columns: 1fr 1fr 1fr 1fr;
        grid-template-rows: 1fr;
        gap: 1rem;
        padding-inline: 0rem;
        margin-left: var(--body-padding);
        align-items: start;

    }


    .container-main-link a {
        font-weight: 200;
        font-size: clamp(4px, 0.9vw, 48px);
        border-radius: clamp(18px, 2vw, 50px);
        padding-top: clamp(2px, 0.2vw, 8px);
        padding-bottom: clamp(2px, 0.2vw, 8px);
    }


    .hidden-responsive {
        display: block;
        grid-area: footer;
        /*background-color: aliceblue;*/

    }

    .footer-contact {
        display: flex;
        justify-content: space-between;
        width: 100%;
        align-items: center;
        color: white;
    }

    .footer-right {
        width: 15%;
    }

    .footer-left {
        width: 15%;
    }


    .footer-icons {
        display: flex;
        height: clamp(15px, 1.4vw, 80px);
        justify-content: space-around;
    }

    .footer-center {
        display: flex;
        flex-direction: column;

    }

    .footer-center .container-language {
        border: 1px solid #ffffff54;
        color: var(--white-color);
        margin-inline: auto;
        margin-bottom: clamp(5px, 0.8vw, 10px);
    }




    .farsi {
        font-weight: 100;
        font-size: clamp(7px, 0.7vw, 42px);
    }

    .english {
        font-size: clamp(7px, 0.6vw, 32px);
    }

    #listLanguage a.active {
        font-weight: 900;
    }

    .english a.active {
        font-size: clamp(6px, 0.55vw, 32px);
    }

    .add_hover_top_persian {
        animation: hoverTextTopPersian 0.3s linear forwards;
    }

    .add_hover_top_english {
        animation: hoverTextTopEnglish 0.4s linear forwards;
    }

    .add_hover_top_english a {
        animation: hoverTextTopEnglish 0.4s linear forwards;

    }

    .add_hover_bottom_top_persian {
        animation: hoverTextBottomTopPersian 0.4s linear forwards;

    }

    .end_hover_top_bottom_persian {
        animation: EndHoverTextTopBottomPersian 0.3s linear forwards;

    }

    .end_hover_top_bottom_english {
        animation: EndHoverTextTopBottomEnglish 0.3s linear forwards;

    }

    .end_hover_top_persian {
        animation: EndHoverTopPersian 0.7s linear forwards;

    }



    @keyframes hoverTextTopPersian {
        from {
            transform: translateY(0%);
        }

        to {
            transform: translateY(-60%);
            opacity: 0;
        }

    }

    @keyframes hoverTextTopEnglish {
        from {
            transform: translateY(0%);
        }

        to {
            transform: translateY(28%);

        }
    }

    @keyframes hoverTextBottomTopPersian {
        from {
            transform: translateY(20%);
            opacity: 0;
        }

        to {
            transform: translateY(-2%);
            opacity: 1;


        }

    }

    @keyframes hoverTextBottomEnglish {
        from {
            transform: translateY(-70%);
        }

        to {
            transform: translateY(0);
        }
    }

    @keyframes EndHoverTextTopBottomPersian {
        from {
            transform: translateY(10%);
        }

        to {
            transform: translateY(0%);
        }
    }

    @keyframes EndHoverTextTopBottomEnglish {
        from {
            transform: translateY(-125%);
        }

        to {
            transform: translateY(0);
        }
    }

    @keyframes EndHoverTopPersian {
        from {
            transform: translateY(-60%);
            opacity: 0;
        }

        to {
            transform: translateY(0);
            opacity: 1;
        }
    }

    .footer-center .center-text {
        position: relative;
        display: inline-block;
        overflow: hidden;
    }

    .footer-center .center-text p {
        font-size: clamp(8px, 0.8vw, 58px);
        font-weight: 100;
        padding-left: 0.2rem;
        padding-right: 0.2rem;
    }

    .footer-center .center-text a {
        font-size: clamp(8px, 0.8vw, 58px);
        font-weight: 500;
    }

    .center-text p {
        opacity: 0;
        transition: opacity 1s ease-in-out;
    }


    /* پرده‌ها حالت اولیه بسته */
    .curtain {
        position: absolute;
        top: 0;
        height: 100%;
        width: 50%;
        background: rgba(101, 101, 101, 0.1);
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(12px);
        opacity: 0;
        /* ← قبل از ورود ماوس مخفی */
        pointer-events: none;
        transition: opacity 0.25s linear;
        /* محو/ظاهر شدن نرم */
    }

    .curtain.visible {
        opacity: 1;
    }

    .curtain-left {
        right: 0;
        opacity: 0;
    }

    .curtain-right {
        left: 0;
        opacity: 0;
    }

    /* انیمیشن باز شدن */
    .center-text.animate p {
        opacity: 1;

    }

    .curtain-left.with-border {
        border-left: 1px solid #fff;
    }

    .curtain-right.with-border {
        border-right: 1px solid #fff;
    }

    .center-text.animate .curtain-left {
        border-left: 1px solid #fff;
        animation: curtainOpenLeft 1.5s forwards;
    }

    .center-text.animate .curtain-right {
        border-right: 1px solid #fff;
        animation: curtainOpenRight 1.5s forwards;
    }

    /* انیمیشن بسته شدن */
    .center-text.closing p {
        opacity: 0;
    }

    .center-text.closing .curtain-left {
        border-left: 1px solid #fff;
        animation: curtainCloseLeft 1.5s forwards;
    }

    .center-text.closing .curtain-right {
        border-right: 1px solid #fff;
        animation: curtainCloseRight 1.5s forwards;
    }

    @keyframes curtainOpenLeft {
        0% {
            width: 50%;
        }

        100% {
            width: 0;
        }
    }

    @keyframes curtainOpenRight {
        0% {
            width: 50%;
        }

        100% {
            width: 0;
        }
    }

    @keyframes curtainCloseLeft {
        0% {
            width: 0;
        }

        100% {
            width: 50%;
        }
    }


    @keyframes curtainCloseRight {
        0% {
            width: 0;
        }

        100% {
            width: 50%;
        }
    }

    .custom-tooltip {
        font-size: clamp(8px, 0.8vw, 52px);
        font-weight: 100;
    }

    .custom-tooltip a {
        font-weight: 600;
    }

    .tooltip-container {
        position: relative;
        display: inline-block;
    }

    .tooltip-text {
        visibility: hidden;
        width: max-content;
        background-color: var(--white-color);
        color: var(--text-black);
        text-align: center;
        /* border-radius: 6px; */
        padding: 5px 5px;
        position: absolute;
        z-index: 1;
        bottom: 125%;
        left: 50%;
        margin-left: -60px;
        /* opacity: 0; */
        /* transition: opacity 0.3s; */
        border-right: clamp(3px, 0.3vw, 30px) solid #d33636;
        opacity: 0;
        transition: opacity 0.3s;
    }


    .tooltip-container:hover .tooltip-text {
        visibility: visible;
        opacity: 1;
    }


    .tooltip-container .tooltip-text {
        bottom: auto;
        top: 110%;
        right: 0;
        margin-left: 0;
    }

    .address-1,
    .address-2 {
        position: relative;
    }




    .image-wrapper {
        position: relative;
        display: inline-block;
        text-align: center;
    }

    .image-wrapper img {
        display: block;
        height: 100%;
    }

    .caption {
        /*display: none; */
        position: absolute;
        bottom: -160%;
        left: 50%;
        transform: translateX(-50%);
        color: var(--text-black);
        font-size: clamp(7px, 0.6vw, 58px);
        white-space: nowrap;
        z-index: 10;
        opacity: 0;
        animation: endTextHover .4s ease forwards;
    }

    @keyframes textHover {
        0% {
            opacity: 0;
            bottom: -160%;
        }

        100% {
            opacity: 1;
            bottom: -100%;

        }
    }

    @keyframes endTextHover {
        0% {
            opacity: 1;
            bottom: -100%;

        }

        100% {
            opacity: 0;
            bottom: -160%;
        }
    }


    .image-wrapper:hover .caption {
        animation: textHover .4s ease forwards;
    }

    /* .image-wrapper:hover .caption {
  display: block;
} */

    .progress-line {
        height: 1px;
        background: rgba(255, 255, 255, 0.4);
        position: relative;
        overflow: hidden;
    }

    .progress-fill {
        position: absolute;
        left: 0;
        top: 0;
        height: 100%;
        width: 0%;
        background: var(--font-color);
        transition: width 0.4s ease;
    }

    .clone-text {
        color: var(--font-color);
    }

    .clone-text h3 {
        padding-left: 0.5rem;
        font-size: clamp(5px, 0.9vw, 54px);
        font-weight: 900;

    }

    .clone-text h1 {
        font-size: clamp(29px, 3.6vw, 164px);
         padding-bottom: 0.5rem;
        padding-top: 0.5rem;

    }


    .clone-text p {
        padding-left: 0.5rem;
        font-size: clamp(3px, 0.8vw, 18px);
        font-weight: 100;

    }
}

@media (min-aspect-ratio: 1.7/1) and (max-width: 1200px) {

    body {
        height: auto;
    }

    .container {
        height: 100vh;
        aspect-ratio: auto;
        overflow: scroll;

        /* یا auto */
        /* برای WebKit */
        &::-webkit-scrollbar {
            display: none;
        }

        /* برای فایرفاکس */
        scrollbar-width: none;
        /* برای IE/Edge */
        -ms-overflow-style: none;
    }

    .lable-item h1 {
        font-size: clamp(29px, 3vw, 64px);
        padding-bottom: 0.5rem;
        padding-top: 0.5rem;
    }

    .clone-text h1 {
        font-size: clamp(29px, 3vw, 64px);
        padding-bottom: 0.5rem;
        padding-top: 0.5rem;

    }

    .slider-items {
        grid-area: slider-items;
        display: flex;
        overflow: clip;
        margin-top: 2rem;
        margin-bottom: 0.5rem;
        column-gap: 1rem;
        margin-left: -4.5vh;
        aspect-ratio: 14 / 3.5;
        align-self: flex-end;
        padding-bottom: 0rem;
    }

    .circle-items {
        row-gap: 2rem;

    }

    .my1-bottom {
        margin-bottom: 0px;
        /* padding-top: 3rem; */
        align-self: start;
        padding-top: 4rem;
    }

}


/*desktop-media-query(extra-large devices)---------*/
@media (min-width: 1200px) and (orientation: landscape) {

    :root {
        /*--body-padding: clamp(20px, 4.85vh, 90px);*/
        --body-padding: clamp(20px, 4.85vh, 120px);
        rem: 24px;

    }

    body {

        overflow: hidden;
        height: 100vh;
    }

    .background-left,
    .background-right {
        display: block;
    }


    .container {
        display: grid;
        grid-template-columns: 50% 50%;
        grid-template-rows: 3fr 5fr 6fr 2fr 1fr;
        /*grid-template-rows: 18.75% 31.25% 37.5% 6.25% 6.25%;*/
        height: auto;
        aspect-ratio: 2 / 1.05;
        padding: var(--body-padding);
        grid-template-areas:
            "header header"
            "circle-items lable-item"
            "circle-items slider-items"
            "article-items slider-counter"
            "footer footer";
    }


    hr {
        height: 1px;

    }

    .spacer {
        display: none;
    }



    header {
        grid-area: header;

    }

    .hidden-responsive {
        grid-area: footer;
        /*background-color: aliceblue;*/

    }

    .menu a {
        font-size: clamp(10px, 1vw, 64px);


    }

    .circle-items {
        grid-row: 2 / 4;
        grid-column: 1 / 2;
        grid-template-columns: 0% 15% 13.25% 15% 13.25% 15% 13.25% 15% 0%;
        grid-template-rows: 50% 50%;
        padding-inline: 0px;
        margin-right: 1rem;
        margin-left: calc(var(--body-padding) + 1rem);
        row-gap: 1rem;

    }

    .circle-cell {
        align-self: start;
    }

    .my1-bottom {
        margin-bottom: 0px;
        /*padding-top: 3rem;*/
        align-self: start;
        padding-top: 3rem;
    }

    .circle-items .circle-item {
        grid-area: circle-items;
        border: 1px solid var(--font-color);
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(1px);
        -webkit-backdrop-filter: blur(12px);
        margin-bottom: clamp(3px, 0.3vw, 16px);

    }

    .circle-item h5 {
        color: var(--font-color);
        line-height: 1;
        margin: 0.3rem;
    }

    .counter {
        font-size: clamp(8px, 1.25vw, 90px);

    }

    .circle-text {
        font-size: clamp(10px, 1.8vw, 90px);
        font-weight: 100;
    }

    .under-text {
        font-size: clamp(8px, 1.6vw, 90px);
        font-weight: 300;
    }



    .lable-item {
        grid-area: lable-item;
        padding-top: 1rem;
        padding-bottom: 7rem;
        margin-right: var(--body-padding);
    }

    .lable-item h1 {
        /*clamp(29px, 4.3vw, 90px)*/
        font-size: clamp(29px, 4vw, 164px);
        padding-bottom: 1rem;
        padding-top: 1rem;
    }


    .lable-item p {
        font-size: clamp(8px, 0.8vw, 28px);
        font-weight: 100;
        margin-top: clamp(1px, 0.2vw, 15px);
        margin-bottom: clamp(1px, 0.2vw, 15px);

    }

    .slider-items {
        grid-area: slider-items;
        gap: 1rem;
        display: flex;
        margin-left: -4.7vh;
        overflow: hidden;
        margin-right: var(--body-padding);
        margin-top: 4.5rem;
        padding-bottom: 1rem;
        /*width: 48vw;*/
        aspect-ratio: 8 / 2.3;
        align-self: flex-end;

    }

    .slider-items .items {
        aspect-ratio: 3 / 4;
        /*padding: 0.25rem;*/
        /*box-shadow: inset 0px 40px 20px -8px rgb(0 0 0 / 86%);*/
        flex-basis: 100px;

    }

    .text-items {
        position: relative;
        height: 100%;
        box-shadow: inset 0px 80px 40px -8px #000000c2;
        ;
    }


    .slider-items .items h3 {
        padding-left: 0.5rem;
        font-size: clamp(8px, 0.9vw, 54px);
        font-weight: 900;

    }

    .slider-items .items p {
        padding-left: 0.5rem;
        font-size: clamp(6px, 0.8vw, 18px);
        font-weight: 100;
    }

    .clone-text h3 {
        padding-left: 0.5rem;
        font-size: clamp(8px, 0.9vw, 54px);
        font-weight: 900;

    }

    .clone-text h1 {
        font-size: clamp(29px, 4vw, 164px);
        padding-bottom: 1rem;
        padding-top: 1rem;

    }

    .clone-text p {
        padding-left: 0.5rem;
        font-size: clamp(6px, 0.8vw, 18px);
        font-weight: 100;

    }



    .article-items {
        grid-area: article-items;
        grid-template-columns: 1fr 1fr 1fr 1fr;
        grid-template-rows: 1fr;
        gap: 2rem;
        padding-inline: 0px;
        margin-left: var(--body-padding);
        align-items: start;

    }

    .container-main-link a {
        font-weight: 200;
        font-size: clamp(10px, 0.9vw, 48px);
        border-radius: clamp(18px, 2vw, 50px);
        padding-top: clamp(2px, 0.2vw, 8px);
        padding-bottom: clamp(2px, 0.2vw, 8px);
    }

}

@media (min-aspect-ratio: 2/1) and (min-width: 1200px) {

    body {
        height: auto;
    }

    .container {
        height: 100vh;
        aspect-ratio: auto;
        overflow: scroll;

        /* یا auto */
        /* برای WebKit */
        &::-webkit-scrollbar {
            display: none;
        }

        /* برای فایرفاکس */
        scrollbar-width: none;
        /* برای IE/Edge */
        -ms-overflow-style: none;
    }

    .lable-item {
        padding-bottom: 0rem;
    }

    .lable-item h1 {
        font-size: clamp(29px, 3vw, 164px);
        padding-bottom: 0.5rem;
        padding-top: 0.5rem;
    }
.clone-text h1 {
         font-size: clamp(29px, 3vw, 164px);
        padding-bottom: 0.5rem;
        padding-top: 0.5rem;

    }
    .text-clone h1 {
        font-size: clamp(29px, 3vw, 164px);
        padding-bottom: 0.5rem;
        padding-top: 0.5rem;
    }

    .slider-items {
        grid-area: slider-items;
        display: flex;
        overflow: clip;
        margin-top: 2rem;
        margin-bottom: 0.5rem;
        column-gap: 1.5rem;
        margin-left: -4.5vh;
        aspect-ratio: 4 / 1.05;
        align-self: flex-end;
        padding-bottom: 0rem;
    }

    .circle-items {
        row-gap: 2rem;

    }

    .under-text {
        font-size: clamp(8px, 1.4vw, 90px);
    }


}
