/* copyright 2024 Bahmanpc.com */

/*=============== VARIABLES CSS ===============*/



/* carousel */
.carousel{
  padding-top: 50px;
  width: 100%;
  overflow: hidden;
background-color: var(--background-secondary);
  position: static;
}

.carousel .list{
  background-color: var(--background-secondary);
  width: 100%;
 overflow: hidden;
 position: absolute;
 box-shadow:0 5px 7px rgb(0, 15, 125);
}

.carousel .list .item{
  width: 100%;
overflow: hidden;
  position: absolute;
  inset: 0 0 0 0;
}

.carousel .list .item img{
  object-fit: cover;
overflow: hidden;
width: 100%;
}

.carousel .list .item .content{
  transition: all .2s ;
  position: absolute;
  top: 15%;
  width: 100%;
  max-width: 70%;
  left: 42%;
  transform: translateX(-50%);
  padding-right: 30%;
  box-sizing: border-box;
  color: var(--foreground-secondary);
  margin-top: -50px;
  text-shadow: 0 0 12px var(--foreground-primary);
}


.carousel .list .item .author{
  letter-spacing: 10px;
  font-weight: bold;

}

.carousel .list .item .topic{
  font-size: 1.8rem;
  font-weight: bold;
  line-height: 1.3em;

}

.carousel .list .item .title {
  line-height: 1.3em;
  font-weight: bold;
  font-size: 2.5rem;
  font-family:"PT Serif", serif;
   color: hsl(190, 100%, 47%);
   text-shadow: -1px 3px 5px rgb(0, 20, 205);
}


.carousel .list .item .des {
  text-shadow: 0 5px 10px var(--foreground-primary);
z-index: 10;
}

.carousel .list .item .buttons button{
  display: none;
}

/* thumbail */

.thumbnail .item{
  display: none;
}

/* arrows */
.arrows{
  position: absolute;
  left: 10%;
  top: 500px;
  z-index: 100;
  width: 300px;
  max-width: 30%;
  display: flex;
  gap: 10px;
  align-items: center;
}

.arrows button{
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: hsl(190, 100%, 50%);
  border: none;
  color: #fff;
  font-family: monospace;
  font-weight: bold;
  transition: .5s;
}

.arrows button:hover{
  background-color: #006eff;
  color: #fff;
}

/* animation */
.carousel .list .item:nth-child(1){
  z-index: 1;
}

/* animation text in first item */

.carousel .list .item:nth-child(1) .content .author,
.carousel .list .item:nth-child(1) .content .title,
.carousel .list .item:nth-child(1) .content .topic,
.carousel .list .item:nth-child(1) .content .des,
.carousel .list .item:nth-child(1) .content .buttons
{
  transform: translateY(50px);
  filter: blur(20px);
  opacity: 0;
  animation: showContent .5s 1s linear 1 forwards;
}
@keyframes showContent{
  to{
      transform: translateY(0px);
      filter: blur(0px);
      opacity: 1;
  }
}
.carousel .list .item:nth-child(1) .content .title{
  animation-delay: 1.2s!important;
}
.carousel .list .item:nth-child(1) .content .topic{
  animation-delay: 1.4s!important;
}
.carousel .list .item:nth-child(1) .content .des{
  animation-delay: 1.6s!important;
}
.carousel .list .item:nth-child(1) .content .buttons{
  animation-delay: 1.8s!important;
}
/* create animation when next click */
.carousel.next .list .item:nth-child(1) img{
  width: 150px;
  height: 220px;
  position: absolute;
  bottom: 50px;
  left: 50%;
  border-radius: 30px;
  animation: showImage .5s linear 1 forwards;
}
@keyframes showImage{
  to{
      bottom: 0;
      left: 0;
      width: 100%;
      height: 750px;
      border-radius: 0;
      overflow: hidden;
  }
}

.carousel.next .thumbnail .item:nth-last-child(1){
  overflow: hidden;
  animation: showThumbnail .5s linear 1 forwards;
}
.carousel.prev .list .item img{
  z-index: 100;
}
@keyframes showThumbnail{
  from{
      width: 0;
      height: 0;
      opacity: 0;
  }
}
.carousel.next .thumbnail{
  animation: effectNext .5s linear 1 forwards;
}

@keyframes effectNext{
  from{
      transform: translateX(150px);
  }
}


/* prev click */
.carousel.prev .list .item:nth-child(2){
  z-index: 2;
}

.carousel.prev .list .item:nth-child(2) img{
  animation: outFrame 0.5s linear 1 forwards;
  position: absolute;
  bottom: 0;
  left: 0;
}
@keyframes outFrame{
  to{
      width: 150px;
      height: 220px;
      bottom: 50px;
      left: 50%;
      border-radius: 20px;
  }
}

.carousel.prev .thumbnail .item:nth-child(1){
  overflow: hidden;
  opacity: 0;
  animation: showThumbnail .5s linear 1 forwards;
}
.carousel.next .arrows button,
.carousel.prev .arrows button{
  pointer-events: none;
}
.carousel.prev .list .item:nth-child(2) .content .author,
.carousel.prev .list .item:nth-child(2) .content .title,
.carousel.prev .list .item:nth-child(2) .content .topic,
.carousel.prev .list .item:nth-child(2) .content .des,
.carousel.prev .list .item:nth-child(2) .content .buttons
{
  animation: contentOut 1.5s linear 1 forwards!important;
}

@keyframes contentOut{
  to{
      transform: translateY(-150px);
      filter: blur(20px);
      opacity: 0;
  }
}
@media screen and (max-width: 678px) {
  .carousel .list .item .content{
      padding-right: 0;
  }
  .carousel .list .item .content .title{
      font-size: 30px;
  }
}

  .company{
    width: 100%;
    margin-top: 25px;
    background-color: var(--background-secondary);
    padding: 20px 7px 7px 7px;
  }
  
  .company .company-tit {
    justify-content: center;
    text-align: center;
    align-items: center;
  }
  
  .company .company-tit .persian{
    width: 130px;
    margin: 10px 20px -10px -15px;
  }
  
  .company .company-tit .english-img img{
    right: 40%;
    justify-content: center;
    text-align: center;
    align-items: center;
    margin-left: 5px;
    margin-top: -38px;
  }
  
  .company .company-tit .english-img {
    justify-content: center;
    text-align: center;
    align-items: center;
    display: flex;
    color: var(--foreground-primary);
    font-family:"PT Serif", serif;
    display: flex;
    font-weight: 400;
    font-size: 0.75rem;
  }
  
  .company-tit .english-img span {
    padding-right: 3px;
    color: hsl(189, 100%, 50%);
  }
  

  .company .company-title{
  font-size: large;
  }
  
  .company .company-text {
    text-align: justify;
    direction: rtl;
    width: 94%;
    margin-right: 3%;
    margin-left: 3%;
    padding: 10px 3px;
    color: var(--foreground-primary);
  }