_carousel.scss 8.27 KB
.swiper-pagination-bullet {
  background: #fff !important;
  border: 2px solid #2c2c2c !important;
  height: 13px !important;
  width: 13px !important;
  opacity: 1 !important;
}
.swiper-pagination-bullet-active {
  background: #3f9c35 !important;
  border: 2px solid #3f9c35 !important;
}

//  carousel css
.carousel:not(.is-admin) {
  background-color: transparent !important;
  left: -20px;
  width: 100vw;
  margin-top: 30px;
  margin-bottom: 30px;
}

.carousel-items {
  list-style: none;
  margin-block-start: 0em;
  margin-block-end: 0em;
  margin-inline-start: 0px;
  margin-inline-end: 0px;
  padding-inline-start: 20px;
  background-color: transparent !important;
  @media only screen and (max-width: 768px) {
    padding-inline-start: 0px;
  }
}

.swiper-button-next.swiper-button-disabled,
.swiper-button-prev.swiper-button-disabled {
  pointer-events: all !important;
}

.carousel-items.slick-initialized.slick-slider {
  margin-right: 15px; //for the scroll bar
}

.carousel {
  width: 100vw;
  margin-left: calc((100% - 100vw) / 2);
  margin-right: calc((100% - 100vw) / 2);
  @media only screen and (max-width: 768px) {
    width: 95%;
    margin-left: 0px;
    margin-right: 0px;
  }
  left: 0 !important;
  min-height: 340px !important;
  .swiper-button-next {
    right: 8px !important;
  }
  .swiper-button-prev {
    left: 7px !important;
    @media only screen and (max-width: 768px) {
      left: -13px !important;
    }
  }
  .swiper-pagination {
    bottom: -20px !important;
  }
  .carousel-items {
 
  }
  .swiper-wrapper {
    gap: 1rem;
   
  }
}

.cert-cont {
  background-color: #e2f2f9;
  margin: 40px -50%  0px -50%;
  padding: 40px 50%;
}

.cert-carousel {
  @media only screen and (max-width: 768px) {
    width: calc(100% - 2rem) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  .swiper-slide {
    width: calc(33% - 40px) !important;
    @media only screen and (max-width: 768px) {
      width:  calc(100% - 0rem) !important;
      padding-left: 0px;
    }
    .cert_link {
      display: block;
      width: 100%;
      height: auto;
      background-size: contain;
      text-decoration: none;
      font-size: 10px;
      margin: auto;
      text-align: center;
      position:relative;
      color: #156570;
      img{
        opacity: 0;
        width: 100%;
        height: auto;
      }
      .cert-text{
        position: absolute;
        top: 50%;
        width: 100%;
      }
      p {
        line-height: 10px;
        color: #156570;
        strong {
          color: #156570;
        }
      }
    }
  }
  .swiper-button-next {
    right: 30px !important;
  }
  .swiper-button-prev {
    left: 7px !important;
  }
  .swiper-pagination {
    bottom: -25px !important;
  }
}

// testimonials carousel css
.testimonials-carousel {
  @media only screen and (max-width: 768px) {
    width: calc(100% - 2rem) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  .swiper-slide {
    width: 890px !important;
    @media only screen and (max-width: 768px) {
      width: calc(100% - 1rem) !important;
      padding-left: 0px;
    }
    .testimonials {
      width: 890px;
      background: #e5f2f8;
      border-radius: 25px 25px 0px 0px;
      
      margin-right: 20px;
      @media only screen and (max-width: 768px) {
        width: 100% !important;
        margin-right: auto;
        margin-left: auto;
        border-radius: 25px 25px 0px 0px;
      }
      .row {
        margin-right: 0rem !important;
        border-bottom: 20px solid #ffa300;
        margin-left: -15px !important;
        min-height: 316px !important;
        @media only screen and (max-width: 768px) {
          margin-left: 0px !important;
        }
      }

      .col-md-1 {
        background-size: cover;
        @media only screen and (max-width: 768px) {
          padding-left: 0px;
          height: auto;
        }
      }

      .testimonial-text {
        padding: 30px 50px;
      }
      .testimonial-image{
        border-radius: 25px 0px 0px 0px;
        @media only screen and (max-width: 768px) {
        height: 300px;
        border-radius: 25px 25px 0px 0px;
        background-size: cover;
        background-position: center;
        }
      }
      p {
        font-size: 16px !important;
        line-height: 24px !important;
        color: #2c2c2c;
      }

      .testimonials_image {
        width: 100%;
      }
    }
  }

  .swiper-slide:nth-of-type(2) {
    .testimonials {
      .row {
        border-bottom: 20px solid #3f9c35;
      }
    }
    .promo-img img {
      border-bottom: 20px solid #3f9c35;
    }
  }
  .swiper-slide:nth-of-type(3) {
    .testimonials {
      .row {
        border-bottom: 20px solid #0484b8;
      }
    }
    .promo-img img {
      border-bottom: 20px solid #0484b8;
    }
  }
  .swiper-slide:nth-of-type(4) {
    .testimonials {
      .row {
        border-bottom: 20px solid #e04e39;
      }
    }
    .promo-img img {
      border-bottom: 20px solid #e04e39;
    }
  }
  .swiper-pagination {
    @media only screen and (max-width: 768px) {
    bottom: -45px !important;
    margin-left: -20px;
    }
  }
}


.promo-carousel {
  width: 100% !important;
  margin-left: 0px !important;
  padding-left: 0px;
  position: relative;

  @media only screen and (max-width: 768px) {
    width: calc(100% - 0rem) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  .swiper-wrapper {
    gap: 1rem;
    @media only screen and (max-width: 768px) {
      gap: 0rem;
    }
  }
  .swiper-slide {
    margin-left: 0px !important;
    max-width: 100% !important;
    @media only screen and (max-width: 1400px) {
      width: 100% !important;
    }
    @media only screen and (max-width: 1000px) {
     
    }
    @media only screen and (max-width: 768px) {
      padding-left: 0px;
      //width: 80% !important;
    }
    .promo-img {
      max-height: 264px;
      max-width: 372px;
      overflow: hidden;
      border-bottom: 20px solid #ffa300;
      @media only screen and (max-width: 768px) {
        max-width: 100%;
      }
    }
    .promo-img img {
      max-width: 372px;
      border-radius: 25px 25px 0px 0px;
      @media only screen and (max-width: 768px) {
        max-width: 100%;
      }
    }
    .promo.row {
      width: 100%;
      border-top: 1px solid #ffa300;
      border-bottom: 1px solid #ffa300;
      @media only screen and (min-width: 1400px) {
        max-width: 1344px;
      }
      @media only screen and (max-width: 768px) {
        width: 100%;
      }
      margin: 40px auto;
      padding: 50px 0px;
    }
    .promo_content {
      max-width: 760px;
      h3 {
        font-size: 22px;
        line-height: 33px;
        font-weight: 700;     
       }
      p {
        font-size: 16px;
        line-height: 22px;
      }
    }
  }
  .swiper-button-next {
    right: 30px !important;
    @media only screen and (max-width: 768px) {
      right: 10px !important;
    }
  }
  .swiper-button-prev {
    left: 7px !important;
    @media only screen and (max-width: 768px) {
      left: -13px !important;
    }
  }
  .swiper-pagination {
    bottom: 65px !important;
    @media only screen and (max-width: 768px) {
      bottom: 25px !important;
      margin-left: -20px;
    }
  }

  .swiper-slide:nth-of-type(2) {
    .promo-img {
      border-bottom: 20px solid #3f9c35;
    }
  }
  .swiper-slide:nth-of-type(3) {
    .promo-img {
      border-bottom: 20px solid #0484b8;
    }
  }
  .swiper-slide:nth-of-type(4) {
    .promo-img {
      border-bottom: 20px solid #e04e39;
    }
  }
}

.course-carousel {
  width: 100% !important;
  position: relative;
  overflow: hidden;
  margin: auto;
  @media only screen and (max-width: 768px) {
    width: calc(100% - 1rem) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  .swiper-wrapper {
    gap: 1rem;
    margin: auto;
    min-height: 620px;
    @media only screen and (max-width: 768px) {
    
    }
  }
  .swiper-slide {
    width: calc(33.33% - 30px) !important;
    @media only screen and (max-width: 1000px) {
      width: calc(50% - 30px) !important;
    }
    @media only screen and (max-width: 768px) {
      width: calc(100% - 0px) !important;
    }
  }
  .card {
    min-height: 540px;
  }
  .swiper-button-next {
    right: 30px !important;
  }
  .swiper-button-prev {
    left: 7px !important;
  }
  .swiper-pagination {
    bottom: 0px !important;
  }
}