.threecol-33-33-33 .card .figure {
  max-height: 240px;
}

.fourcol-25-25-25-25 .card .figure {
  max-height: 185px;
}
.force-col-12 .card .figure {
  max-height: 207px;
}

.content-on-image {
  @include media-breakpoint-down(xl) {
    .content {
      width: 100%;
    }
  }
}

.card .gradient-overlay-left:before {
  background: transparent linear-gradient(-90deg, transparent 0%, #3f3027 100%)
    0% 0%;
}

.cta-cont .newsletter {
  @include media-breakpoint-down(md) {
    padding: 25px 25px;

    .heading-txt {
      margin-bottom: 20px;
    }
  }
}

.card {
  padding: 0 !important;
  &.img-top {
    .gradient-overlay:before {
      display: none;
      //background: transparent linear-gradient(180deg, transparent 0%, $secondary-bg 100%) 0% 0%;
    }

    .content {
      flex: 0 1 0%;
    }
  }

  .content {
    font-family: $font-family-primary;
    font-size: $font-size-16;
    line-height: $line-height-18;
    font-weight: 400;
    text-transform: none;
    width: 100%;
    @include media-breakpoint-down(sm) {
      padding: 10px 20px 20px 20px !important;
    }

    .title {
      h3 {
        margin-bottom: 30px;
        text-transform: none;
        line-height: 1.15;

        @include media-breakpoint-down(md) {
          font-size: 1.5rem !important;
          margin-bottom: 10px;
        }
        @include media-breakpoint-down(sm) {
          text-align: left !important;
          font-size: 20px !important;
          font-style: normal;
          font-weight: 700;
          line-height: 30px;
          padding: 0;
          margin-bottom: 0;
        }
      }

      .subtitle {
        text-transform: none;
        font-weight: 400;
        color: #444444;
        font-size: $font-size-16;
        line-height: 1.25;

        a {
          color: #444444;
          text-decoration: underline;
          text-underline-offset: 1px;
        }
        p {
          @include media-breakpoint-down(sm) {
            text-align: left !important;
          }
        }
      }

      ul {
        padding-left: 20px;

        li {
          list-style: disc;
          padding: 0;

          &:before {
            display: none;
          }
        }
      }
    }

    .price-wrap {
      .items-below {
        padding-bottom: 0;
        @include media-breakpoint-down(sm) {
          padding-top: 20px;
        }

        li {
          background-color: $primary-bg;
          @include media-breakpoint-down(sm) {
            padding: 5px 10px;
          }

          &:last-child {
            @include media-breakpoint-down(sm) {
              margin: 0px;
            }
          }

          .title {
            width: 47%;

            @include media-breakpoint-down(md) {
              width: 45%;
            }
            @include media-breakpoint-down(sm) {
              justify-content: left;
            }
          }

          .price {
            white-space: inherit;

            @include media-breakpoint-down(xxl) {
              font-size: 1.1rem;
            }
          }
        }
      }
    }

    @include media-breakpoint-down(md) {
      .btn-inn {
        text-align: center;
      }
    }
  }

  &.transparent.img-left .content {
    padding-left: 30px !important;
  }

  &.img-left {
    flex-direction: row !important;
    padding: 0 !important;
    align-items: inherit !important;
  }

  //&.img-left:not(.transparent) {
  //  background: $white;
  //
  //  .content {
  //    .title {
  //      h3 {
  //        color: $quaternary-color;
  //        margin-bottom: 0px;
  //        //font-size: 24px;
  //      }
  //
  //      .subtitle {
  //        color: $quaternary-color;
  //      }
  //    }
  //  }
  //
  //  p {
  //    //color: $secondary-color;
  //  }
  //}

  &.content-on-image-bottom,
  &.content-on-image {
    .figure img {
      @include media-breakpoint-down(md) {
        aspect-ratio: 4/3;
      }
    }

    .content .title {

      // h3{
      //   font-size: $font-size-24;
      // }
      * {
        color: $white;
      }

      p {
        font-weight: 300;
      }
    }

    a {
      text-decoration: none;
    }
  }

  &.content-on-image-bottom {
    .content {
      padding: 40px;
      .title h3 {
        margin-bottom: 0;
      }

      .inside {
        margin-top: 30px;
        @include media-breakpoint-down(sm) {
          margin: auto;
        }
      }
    }
  }

  &.no-pic {
    //background-color: $quaternary-color;
    border-radius: 14px;

    @include media-breakpoint-down(lg) {
      border-radius: 0;
    }

    .content {
      flex-direction: row;

      @include media-breakpoint-down(lg) {
        flex-direction: column;
      }

      .title {
        flex-grow: 2;

        >h2,
        >h3 {
          display: none;
        }
      }

      .subtitle {

        h2,
        h3 {
          margin-bottom: 0;
          color: $white;
        }
      }

      .btn-inn {
        flex-shrink: 3;
        text-align: right;
        padding-top: 0px;
        margin: auto 0px;

        @include media-breakpoint-down(lg) {
          text-align: center;
        }

        a {
          background-color: $tertiary-bg;
          border: none;
        }
      }
    }
  }
}

.secondary-bg {
  .card {
    background: $primary-bg;

    .content .title * {
      color: #444444;
    }
  }
}

.card.img-top {
  justify-content: flex-start !important;
}

.owl-carousel .card .content .subtitle,
.owl-carousel .card .content .subtitle li,
.owl-carousel .card .content .price-style1 .title p {
  @include media-breakpoint-down(sm) {
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px;
  }
}

@media screen and (max-width: 767.98px) {
  .owl-carousel.image-round .owl-stage .card img {
    border-radius: 12px 12px 0 0;
  }
  .owl-carousel .card {
    border-radius: 12px;
    height: 100%;
  }
  .owl-carousel .owl-stage .card .figure img {
    border-radius: 12px 12px 0 0;
  }

  .owl-carousel .owl-stage .card .content {
    flex: 1 0 auto;
  }
  .owl-carousel .owl-stage .card .content p {
    text-align: left;
  }
  .owl-carousel .owl-stage .cardtype-price {
    position: relative;
    margin-top: 24px !important;
  }
  .owl-carousel .owl-stage .cardtype-price .content .title .price-wrap {
    height: auto !important;
  }
  .owl-carousel .owl-stage .cardtype-price .btn-inn {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -30px;
  }
  .cardtype-price {
    position: relative;
    margin-top: 24px !important;
  }
  .cardtype-price .content .title .price-wrap {
    height: auto !important;
  }
  .cardtype-price .btn-inn {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -30px;
  }
}
.owl-carousel {
  .content-on-image-bottom,
  .content-on-image {
    .content {
      .title {
        h3 {
          @include media-breakpoint-down(sm) {
            text-align: center !important;
          }
        }
      }
    }
  }
}

.owl-carousel {
  .owl-stage {
    .owl-item {
      .item {
        @include media-breakpoint-down(md) {
          align-content: center;
          padding-bottom: 50px;
        }
      }
    }
  }
}

.card {
  &.content-on-image-bottom {
    .content {
      @include media-breakpoint-down(sm) {
        padding: 24px;
      }

      .title {
        &:after {
          @include media-breakpoint-down(sm) {
            content: "\f061";
            font-family: "Font Awesome 5 Pro";
            font-weight: normal;
            font-size: 23.34px;
            position: absolute;
            top: 50%;
            right: 0px;
            transform: translate(0, -50%);
          }
        }
      }
    }
  }
}