/* swiper */
.swiper-wrapper {
  margin-bottom: 0% !important;
}

.swiper-container {
  height: auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  background-repeat: no-repeat;
  background-size: cover;
  /* CT : change for bottom space of slider */
  /* margin-bottom: -10%; */
  /* CT : End change for bottom space of slider */
}

.slide-ratio {
  padding-top: 56.25%;
}

@media screen and (max-width: 768px) {
  .slide-ratio {
    padding-top: 82%;
  }
}

.swiper-slide {
  width: 100%;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.swiper-slide:after {
  content: "";
  background-image: linear-gradient(
      0deg,
      black,
      rgba(0, 0, 0, 0.4),
      rgba(0, 0, 0, 0)
  );
  position: absolute;
  width: 100%;
  height: 300px;
  bottom: 0;
  z-index: 1;
}

.swiper-gradient-layout {
  background-image: linear-gradient(
      0deg,
      black,
      rgba(0, 0, 0, 0.3),
      rgba(0, 0, 0, 0.1)
  );
  position: absolute;
  width: 100%;
  bottom: 0;
  z-index: 1;
  opacity: 0.3;
}

.swiper-slide:before {
  content: "";
  /* background-color: ;
  background-image: ; */
  position: absolute;
  width: 100%;
  height: 100%;
  bottom: 0;
  z-index: 1;
}

/* swiper arrows */
.swiper-button-prev,
.swiper-button-next {
  width: 50px;
  height: 50px;
  background-image: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.swiper-button-prev {
  left: 30px;
}

.swiper-button-next {
  right: 30px;
}

.swiper-button-prev span,
.swiper-button-next span {
  width: 10px;
  height: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  position: absolute;
  border: solid 2px white;
  border-left: 0;
  border-bottom: 0;
  transition: all 0.3s ease;
}

/* Number 2 */
.swiper-button-prev span {
  transform: rotate(45deg);
  left: 50%;
}

.swiper-button-next span {
  transform: rotate(-135deg);
  right: 50%;
}

/* End Number 2 */

.swiper-button-prev span:after,
.swiper-button-next span:after {
  content: "";
  position: absolute;
  background-color: white;
  width: 0px;
  height: 2px;
  transition: all 0.3s ease;
  transform: rotate(-45deg);
}

.swiper-button-prev:hover span {
  left: 30%;
}

.swiper-button-next:hover span {
  right: 30%;
}

.swiper-button-prev:hover span:after,
.swiper-button-next:hover span:after {
  width: calc(20px - 4px);
}

/* swiper arrows mobile */
@media screen and (max-width: 768px) {
  .swiper-button-prev {
    left: 0px;
  }

  .swiper-button-next {
    right: 0px;
  }

  .swiper-button-prev:hover span {
    left: 50%;
  }

  .swiper-button-next:hover span {
    right: 50%;
  }

  .swiper-button-prev:hover span:after,
  .swiper-button-next:hover span:after {
    display: none;
  }
}

/* swiper pagination */
.swiper-pagination {
  height: 15px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  margin-bottom: 10px;
}

.swiper-pagination-bullet {
  background-color: transparent;
  border: solid 1px white;
  opacity: 1;
  transition: all 0.3s ease-in-out;
}

.swiper-pagination-bullet:hover {
  background-color: white;
}

.swiper-pagination-bullet-active {
  width: 20px;
  border-radius: 50px;
  transition: all 0.3s ease-in-out;
  left: 0;
  background-color: #fdd922;
  border: solid 1px white;
}

/* text content */
.slide-text {
  text-align: center;
  color: white;
  opacity: 1;
  z-index: 2;
  font-family: IRANSans, sans-serif;
  width: 30%;
  max-width: 500px;
  position: absolute;
  right: 0px;
  top: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.77);
  padding-top: 20%;
  display: block;
  align-items: center;
}

.slide-text h3 {
  font-family: IRANSans !important;
  letter-spacing: 0.03em;
  padding: 10px;
  border-radius: 5px;
  color: #fdd922;
}

.slide-text p {
  font-size: 16px;
  padding: 0 20px 0 20px;
  font-family: IRANSans !important;
  color: white;
  word-break: break-word;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  max-height: 100px; /* fallback */
  -webkit-line-clamp: 3; /* number of lines to show */
  -webkit-box-orient: vertical;
}

@media screen and (max-width: 1024px) {
  .slide-text {
    padding-top: 12.5%;
  }
}

/* text mobile */
@media screen and (min-width: 1410px) {
  .slide-text {
    padding-top: 20%;
  }
}

@media screen and (max-width: 768px) {
  .slide-text {
    left: 0;
    top: auto;
    max-width: 100%;
    width: 100%;
    height: 66%;
    padding-top: 0px;
    background-color: transparent;
    background: linear-gradient(to top, rgb(15, 17, 19), rgba(0, 0, 0, 0));
  }

  .slide-text h3 {
    color: white;
  }

  .year-tag {
    bottom: 0;
  }

  .slide-text br {
    display: none;
  }

  .slide-text p {
    font-size: 14px;
    display: none;
  }
}

/* button */
/* .slide-text .btn {
  font-family: ;
  background-color: transparent;
  border: solid 1px white;
  padding: 15px 30px;
  min-width: 100px;
  width: fit-content;
  font-size: 14px;
  letter-spacing: 0px;
  color: white;
  position: relative;
  border-radius: 5px;
  transition: all 0.3s ease-in-out;
  cursor: pointer;
  margin-top: 20px;
} */

/* .slide-text .btn:after {
  content: "";
  background-color: rgba(255, 255, 255, 0.1);
  width: 100%;
  height: 100%;
  display: block;
  position: absolute;
  z-index: 2;
  left: 0px;
  top: 0px;
  border-radius: inherit;
  transition: all 0.3s ease-in-out;
} */

.slide-text .btn:hover::after {
  left: 4px;
  top: 5px;
  background-color: rgba(255, 255, 255, 0.3);
}

@media screen and (max-width: 768px) {
  .slide-text .btn:hover::after {
    left: 0px;
    top: 0px;
    background-color: rgba(255, 255, 255, 0.1);
  }
}

button:focus {
  outline: 0;
}

/* CT : End all for change design */

/************************************************************************************************************************/

@media screen and (max-width: 1599px) {
  .slider-content {
    height: 355px;
  }

  /*#slider {
        width: 890px
    }*/
}

@media screen and (max-width: 1325px) {
  /*#slider {
        width: 820px
    }*/
  #slider .slide-caption {
    width: 320px;
  }

  #slider:hover .slide-caption {
    left: auto;
    right: 0;
    opacity: 1;
  }
}

@media screen and (max-width: 1199px) {
  .slider-content {
    height: 245px;
  }

  /*#slider {
        width: 660px
    }*/
  #slider:hover .slide-caption {
    right: 0;
  }

  #slider .slide-caption {
    right: -270px;
  }

  .slide-caption p {
    font-size: 12px;
  }

  #slider .slide-caption h2 {
    font-size: 18px;
    direction: rtl;
  }

  #slider .slide-caption .slide-caption-info {
    display: none;
  }

  #slider .slide-caption {
    padding: 15px 20px;
    width: 280px;
  }

  .slide-caption .mt20 {
    margin-slider: 10px !important;
  }
}

.slider-content {
  height: 405px;
  position: relative;
  top: -100px;
}

#slider {
  height: 100%;
  overflow: hidden;
  position: relative;
  display: block;
  padding-right: 0;
  /*width: 1170px*/
}

#slider .swiper-slide {
  background-position: 50% 25%;
  background-size: cover;
  position: relative;
  width: 100% !important;
  overflow: hidden;
}

#slider .swiper-slide .slide-link {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 9;
}

#slider .slide-caption {
  position: absolute;
  left: -380px;
  slider: 0;
  opacity: 0;
  height: 100%;
  width: 380px;
  padding: 20px 30px;
  color: #fff;
  background: rgba(27, 33, 46, 0.9);
  transition: all 0.3s ease 0s;
  -webkit-transition: all 0.3s ease 0s;
}

#slider:hover .slide-caption {
  left: auto;
  left: 0;
  opacity: 1;
}

#slider .slide-caption h2 {
  margin: 100px 0 10px;
  font-size: 24px;
  color: var(--primary-color);
  direction: rtl;
}

#slider .slide-caption .slide-caption-info {
  background: rgba(0, 0, 0, 0.5);
  color: #ccc;
  border-radius: 4px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin-slider: 15px;
  font-size: 12px;
}

#slider .slide-caption .slide-caption-info .block {
  margin: 10px 15px;
  line-height: 1em;
}

#slider .slide-caption .slide-caption-info .block strong {
  display: inline-block;
  width: 80px;
}

.swiper-container-horizontal > .swiper-pagination {
  left: auto !important;
}

.swiper-pagination.swiper-pagination-clickable.swiper-pagination-bullets {
  bottom: 0;
}

@media screen and (max-width: 768px) {
  .swiper-pagination.swiper-pagination-clickable.swiper-pagination-bullets {
    bottom: 0;
  }
}

.swiper-pagination-bullet {
  margin: 0 5px;
}

.swiper-slide-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
}
