/* <--========== body ==========--> */

.zigzag-bg {
  position: fixed;
  top: 0vh;
  left: calc(50% - 105px);
  width: 100%;
  height: 60vh;
  pointer-events: none;
  /* اگر نیاز به کلیک نداری */
  z-index: 100;
  overflow: hidden;
}

svg {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

path {
  stroke: var(--action-tertiary);
  stroke-width: 10;
  height: 100%;
  fill: none;
  overflow: hidden;
}

main {
  position: relative;
  width: 100%;
  height: 100vh;
  z-index: 250;
  box-shadow: 0 3px 4px black;
  z-index: 105;
}

main .overlay-main {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100%;
  background: linear-gradient(to bottom,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, .2) 35%,
      rgba(0, 0, 0, 0.6) 100%);
  z-index: 150;
}

main .mobile {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 100vh;
}

main .content {
  position: absolute;
  text-align: center;
  top: 60vh;
  width: 100vw;
  color: var(--white);
  direction: rtl;
  z-index: 9999;
  text-shadow: 0 0 3px black;
}

main .content .a-content {
  background-color: var(--action-primary-hover);
  color: var(--background-primary);
  padding: 5px 20px 10px 20px;
  border-radius: 5px;
  font-size: var(--fs-base-li);
  transition: all 0.2s ease-in-out;
  text-shadow: 0 0 0;
}

main .content .a-content:hover {
  background-color: var(--background-primary);
  color: var(--action-primary-hover);
}

main .content .em {
  color: var(--white);
  font-size: var(--fs-base);
  font-weight: 700;
  margin-top: 10px;
  padding: 0;
}

main .content .p-content {
  font-size: var(--fs-4);
  font-weight: 800;
  margin: 40px 0 0 0;
  padding: 0;
}

main .content h2 {
  font-size: var(--fs-1);
  font-weight: 900;
  margin: 0;
  padding: 0;
}

main .content .scroll-down {
  position: relative;
  display: grid;
  height: 45px;
  width: 45px;
  background-color: var(--background-primary);
  border-radius: 50%;
  color: var(--white);
  margin-right: calc(50vw - 30px);
  animation: alternate .8s infinite;
  animation-name: scroll-down;
}

@keyframes scroll-down {
  from{
    margin-top: 0;
    opacity: 1;
  }
  to{
    margin-top: 10px;
    opacity: .2;
  }
}

main .content .scroll-down i {
  font-size: 20px;
  display: grid;
  align-items: center;
}

.masir {
  position: relative;
  direction: rtl;
  margin-top: 20px;
  width: 100%;
  background-color: var(--background-tertiary);
  color: var(--foreground-primary);
  z-index: 105;
}

.masir h2 {
  position: relative;
  background-color: var(--background-tertiary);
  padding: 50px;
}

.masir img {
  width: 90%;
  margin-right: 5%;
  height: 65vh;
}

.masir .content {
  text-align: right;
  padding: 30px 10px 50px 10px;
  background-color: var(--background-tertiary);
}

.gam {
  direction: rtl;
  width: 100%;
  background-color: var(--background-secondary);
}

.gam .content {
  text-align: center;
  position: relative;
  z-index: 105;
  padding: 40px 5px;
  background-color: var(--background-secondary);
}

.content {
  text-align: center;
}

.content .em {
  font-size: var(--fs-1);
  font-weight: 400;
  color: #b97bff;
  direction: rtl;
  padding-top: 20px;
}

.gam img {
  position: relative;
  width: 100%;
  height: 50vh;
  z-index: 5;
}

.sorat {
  position: relative;
  background-color: var(--background-primary);
  width: 100%;
}

.sorat .content {
  position: relative;
  direction: rtl;
  background-color: var(--background-primary);
  color: var(--white);
  text-align: center;
  padding: 30px 15px;
  z-index: 105;
}

.sorat .content h2 {
  padding: 0 20px 20px 20px;
}

.sorat .content .em {
  color: var(--action-primary-hover);
}

.sorat img {
  position: relative;
  height: 50vh;
  z-index: 10;
}

.khas {
  position: relative;
  direction: rtl;
  width: 100vw;
  background-color: var(--background-tertiary);
}

.khas img {
  position: relative;
  height: 50vh;
  width: 100%;
}

.khas .content {
  position: relative;
  padding: 10px;
  z-index: 105;
  background-color: var(--background-tertiary);
}

.bottom-wrapper {
  position: relative;
  background-color: var(--background-secondary);
  height: auto;
}

.bottom-wrapper img {
  position: relative;
  width: 100%;
  height: auto;
  z-index: 10;
}

.bottom-wrapper .content {
  position: relative;
  background-color: var(--background-secondary);
  width: 100%;
  direction: rtl;
  padding: 40px 10px;
  z-index: 110;
}

.bottom-wrapper .content :is(h2, p) {
  position: relative;
}

.jahan {
  background-color: var(--background-tertiary);
  position: static;
  width: 100%;
  height: auto;
}

.jahan .content {
  background-color: var(--background-tertiary);
  position: relative;
  padding: 20px 20px 50px 20px;
  z-index: 120;
}



.home {
  position: relative;
}


.carousel {
  position: relative;
  width: 100vw;
  height: 55vh;
  overflow: hidden;
  background-color: black;
  box-shadow: 0 1px 3px black;
}

.carousel .list {
  display: flex;
}

.carousel .list .item {
  min-width: 100%;
  position: relative;
}

.carousel .list .item img {
  width: 100%;
  height: 100%;
  bottom: 0;
  top: 0;
  display: block;
  object-fit: cover;
  will-change: transform, opacity;
}

/* ساده‌سازی انیمیشن نمایش عکس */
.carousel.next .list .item:nth-child(1) img,
.carousel.prev .list .item:nth-child(1) img {
  animation: showImage .3s ease-out forwards;
}

@keyframes showImage {
  from {
    opacity: .5;
  }

  to {
    opacity: 1;
  }
}

/* انیمیشن متن سبک‌تر */
.carousel .list .item .content {
  background-color: var(--action-primary-hover);
  position: absolute;
  top: 4vh;
  left: 6.5vh;
  max-width: 80%;
  text-align: right;
  padding: 30px;
  box-sizing: border-box;
  color: var(--black);
  z-index: 200;

}

/* ساده‌سازی انیمیشن نمایش عکس */


.carousel .list .item .author {
  font-weight: bold;
  letter-spacing: 10px;
  color: var(--action-primary);

}

.carousel .list .item .title {
  font-weight: bold;
}

.carousel .list .item .em {
  line-height: 1.3em;
}


/* body[lang="fa"] {
  direction: rtl;
  text-align: right;
  font-family: 'B Kamran', sans-serif;
}

body[lang="en"] {
  direction: ltr;
  text-align: left;
  font-family: Arial, sans-serif;
} */


@keyframes showContent {
  0% {
    opacity: .5;
  }

  100% {
    opacity: 1;
  }
}


/* دکمه‌ها */
#next,
#prev {
  position: absolute;
  color: var(--white);
  background-color: var(--action-primary-hover);
  border: none;
  font-size: 15px;
  font-weight: 900;
  height: 40px;
  width: 40px;
  cursor: pointer;
  z-index: 999;
}

#next {
  left: calc(6.5vw);
  bottom: calc(13vh + 41px);
}

#prev {
  left: calc(6.5vw);
  bottom: 13vh;
}

#next ion-icon,
#prev ion-icon {
  margin-bottom: -5px;
}


.background {
  position: relative;
}

.pish {
  background-color: var(--background-tertiary);
  position: relative;
  padding: 10vh 0 10vh 0;
}

.pish .content {
  padding: 20px;
}

.pish .content,
.pish img {
  background-color: var(--background-tertiary);
  position: relative;
  z-index: 120;
}

.background-image {
  position: sticky;
  top: 0px;
  width: 100%;
  transform: translateY(0);
  transition: all 0.1s linear;
  z-index: 101;
}

.background>.content {
  position: absolute;
  background-color: var(--action-primary-hover);
  color: var(--white);
  width: 90%;
  left: 5%;
  margin: 0 0 -30vh 0;
  z-index: 150;
}

.background>.content p {
  text-align: center;
  padding: 10px;
  font-size: 25px;
}