_carousel.scss 5.84 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);
    @media only screen and (max-width: 768px) {
      width: 95%;
      margin-left: 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: -5px !important;
      }
    }
    .swiper-pagination {
      bottom: -20px !important;
    }
    .carousel-items {
      margin-left: 1.75rem;
    }
    .swiper-wrapper {
      gap: 1rem;
    }
  }
  
  // testimonials carousel css
  .testimonials-carousel {
    @media only screen and (max-width: 768px) {
      margin-left: 0px !important;
    }
    .swiper-slide {
      width: 890px !important;
      @media only screen and (max-width: 768px) {
        width: 100% !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: 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;
          }
        }
        .testimonial-text {
          padding: 30px 50px;
        }
  
        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;
      }
    }
  }
  
  .promo-carousel {
    width: 100% !important;
    margin-left: 0px !important;
    position: relative;
    @media only screen and (min-width: 1400px) {
      max-width: 100% !important;
    }
    .swiper-slide {
      margin-left: 0px !important;
      max-width: 100% !important;
      @media only screen and (min-width: 1400px) {
        width: 100% !important;
      }
      .promo-img {
        max-height: 264px;
        max-width: 372px;
        overflow: hidden;
        border-bottom: 20px solid #ffa300;
      }
      .promo-img img {
        max-width: 372px;
        border-radius: 25px 25px 0px 0px;
      }
      .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;
        }
        p {
          font-size: 16px;
          line-height: 22px;
        }
      }
    }
    .swiper-button-next {
      right: 30px !important;
    }
    .swiper-button-prev {
      left: 7px !important;
    }
    .swiper-pagination {
      bottom: 65px !important;
    }
  
    .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;
    margin-left: 0px !important;
    position: relative;
    @media only screen and (min-width: 1400px) {
      max-width: 100% !important;
    }
    .swiper-wrapper{
    //  max-width: 1344px;
      margin: auto;
    }
    .swiper-slide {
      margin-left: 0px !important;
      width: 333px !important;
    
    }
    .card{
      min-height: 540px;
    }
    .swiper-button-next {
      right: 30px !important;
    }
    .swiper-button-prev {
      left: 7px !important;
    }
    .swiper-pagination {
      bottom: -40px !important;
    }

  }