.card {
  background: $tertiary-color;

  .gradient-overlay:before {
    background: transparent linear-gradient(180deg, #00000000 0%, #000000 100%)
      0% 0% no-repeat padding-box;
  }

  .gradient-overlay-left:before {
    background: transparent linear-gradient(-90deg, #00000000 0%, #000000 100%)
      0% 0% no-repeat padding-box;
  }

  .figure {
    background: $primary-color;
  }

  .content {
    padding-bottom: 50px;
    @include media-breakpoint-down(md) {
      padding-bottom: 10px;
    }

    .price-wrap .items-aside {
      gap: inherit;

      .price {
        text-align: center;
      }
    }

    .title {
      h3 {
        font-family: $font-family-tertiary;
        font-weight: $font-weight-normal;
        letter-spacing: 0px;
        text-transform: none;
        line-height: $line-height-32;
        color: $primary-bg;          
      }

      p,
      .subtitle {
        line-height: $line-height-24;
        text-transform: none;
        color: $primary-bg;
      }
      .subtitle {
        font-size: $font-size-18;

      }
    }
  }

  &.img-left,
  &.img-right {
    background: transparent;
    .content {
      justify-content: center;
      .title {
        * {
          color: $primary-color;
        }
        h3 {
          font-family: $font-family-secondary;
          line-height: 1.2;
        }
      }
    }

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

  &.content-on-image-bottom,
  &.content-on-image {
    .content .title {
      h3 {
        text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.75);
      }

      * {
        color: $primary-color;
      }
      p {
        text-align: right;
        @include media-breakpoint-down(md) {
          text-align: center;
        }
      }
    }
  }
}

@include media-breakpoint-only(md) {
  .content-on-image-bottom .figure {
    min-height: 400px;
  }
}

a.content-on-image-bottom {
  .content {
    .title {
      max-width: 85%;
      &:after {
        /*content: "\f061";*/
        font-weight: $font-weight-normal;
        top: unset;
        /*right: 0;*/
        bottom: 30px;
        transform: translate(-50%, -50%);
        @include media-breakpoint-down(md) {
          font-size: $font-size-32;
          right: 10px;
          bottom: 0;
          transform: translate(-50%, -50%);
        }
      }
    }
  }
}

.content-on-image {
  .content {
    padding: 50px 30px;
    justify-content: space-between;
    height: 100%;
    @include media-breakpoint-down(md) {
      width: 100%;
    }
  }
}

@include media-breakpoint-down(md) {
  .content-on-image-bottom {
    .figure img {
      height: 275px;
    }

    .content {
      justify-content: space-between;
    }
  }
}

/*Special Cards on Homepage*/
.cta-card {
  //padding: 0;

  @include media-breakpoint-down(md) {
    .row > * {
      padding: 0;
    }
  }

  .row .item {
    padding-bottom: 10px;
  }

  .card {
    transition: all 0.25s;
    &:hover {
      filter: brightness(1.25);
    }
    .figure {
      img {
        aspect-ratio: 2.5;
      }

      .icon {
        top: 0px;
        left: 0px;
        width: 270px;
        height: auto;
        @include media-breakpoint-down(md) {
          width: 175px;
        }

        img {
          object-fit: contain;
          object-position: top;
        }
      }
    }
    .content {
      height: auto;

      .title h3 {
        font-family: $font-family-tertiary;
        padding-bottom: 5px;
        font-weight: $font-weight-normal;
      }
    }
  }
}

.news {
  .card {
    background-color: $green;
    .gradient-overlay:before {
      background: transparent
        linear-gradient(180deg, #00000000 0%, #000000 100%) 0% 0% no-repeat
        padding-box;
    }
    .content {
      .title h3 {
        padding-bottom: 30px;
        color: $white;
        a:hover {
          color: $white;
          text-decoration: underline;
        }
      }

      .subtitle {
        @include media-breakpoint-down(sm) {
          text-align: right;
        }
        color: $white;
      }
    }
    .content .btn {
      color: #f7f7f7;
      background: $green;
      border: 2px solid #f7f7f7;

      &:hover {
        background: #f7f7f7;
        border: 2px solid $green;
        color: $green;
      }
    }
  }

  .mosaic .card {
    .content {
      padding-bottom: 40px;
    }

    &.content-on-image-bottom .content .title *,
    &.content-on-image .content .title {
      text-align: left;
      padding-bottom: 0;
    }
  }

  .gradient-overlay:before {
    background: none;
  }
}

.grid .row > * {
  .item:nth-child(1) {
    .card .content {
      flex-direction: row;
      justify-content: space-between;

      .btn-inn {
        width: auto;
      }
    }
  }
}

@include media-breakpoint-down(lg) {
  .col-6 {
    .content-on-image-bottom .content,
    .content-on-image .content {
      padding: 10px;
      justify-content: center;

    }
  }
}

.owl-carousel .owl-stage .card {
  .content,
  .figure {
    flex: 1 1 0%;
  }
}

.col-12 {
  @include media-breakpoint-down(sm) {
    margin-bottom: 5px;
  }
}

.card {
  &.zoom-in {
    .content {
      .btn-out {
        .btn {
          &.btn-primary {
            @include media-breakpoint-down(sm) {
              min-width: 150px;
            }
          }
        }
      }
    }
  }
}

.iconbox {
  @include media-breakpoint-down(sm) {
    padding-top: 0;
    padding-bottom: 0;
  }
}
