// Single Case Study Area

.single-case-study-item-list {
  &.style-01 {
    padding: 0;
    margin-left: -15px;
    margin-right: -15px;
    list-style: none;
    display: flex;
    flex-wrap: wrap;

    li {
      width: calc(100% / 3);
    }
  }

}

.cs-outer-wrap {
  padding: 0 15px;
}

.single-case-study-item {
  &:hover {
    .content-wrap {
      transform: translateX(0%);
    }
  }

  &.bg-image {
    position: relative;
    overflow: hidden;
    min-height: 345px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;

    &:hover {
      img {
        transform: scale(1.1);
        transition: 0.5s;
      }
    }
  }

  .content-wrap {
    position: absolute;
    height: 100%;
    top: 0;
    left: 0;
    width: 100%;
    transform: translateX(-100%);
    transition: 0.5s all;
    display: grid;
    padding-left: 30px;
    align-items: center;
    z-index: 0;

    &:before {
      content: '';
      background-color: #13202b;
      opacity: 0.9;
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      z-index: -1;
    }

    .content {

      p {
        color: $white;
      }

      .title {
        color: $white;
        transition: all 500ms ease-in;

        span {
          color: var(--main-color-one);
        }

        &:hover {
          color: var(--main-color-one);
        }
      }
    }

    .btn-wrapper {
      .read-btn {
        color: $white;
        font-weight: 500;
        transition: all 500ms ease-in;

        &:hover {
          color: var(--main-color-one);
        }
      }
    }
  }
}

.single-case-study-item-02 {
  &:hover {
    .content-wrap {
      transform: translateX(0%);
    }
  }

  &.bg-image {
    position: relative;
    overflow: hidden;
    min-height: 345px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;

    &:hover {
      img {
        transform: scale(1.1);
        transition: 0.5s;
      }
    }
  }

  .content-wrap {
    position: absolute;
    height: 100%;
    top: 0;
    left: 0;
    width: 100%;
    transform: translateX(-100%);
    transition: 0.5s all;
    padding-right: 20px;
    padding-top: 30px;
    padding-left: 35px;
    align-items: center;
    z-index: 0;

    &:before {
      content: '';
      background-color: #13202b;
      opacity: 0.9;
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      z-index: -1;
    }

    .content {
      ul {
        padding: 0;
        margin: 0;
        list-style: none;
        margin-bottom: 5px;

        li {
          display: inline-block;
          color: var(--main-color-one);
          text-transform: capitalize;

        }
      }

      p {
        color: $white;
      }

      .title {
        color: $white;
        font-weight: 600;
        font-size: 26px;
        transition: all 500ms ease-in;

        span {
          color: var(--main-color-one);
        }

        &:hover {
          color: var(--main-color-one);
        }
      }
    }

    .btn-wrapper {
      .read-btn {
        color: $white;
        font-weight: 500;
        font-size: 14px;
        position: absolute;
        bottom: 30px;
        transition: all 500ms ease-in;
        margin-bottom: 0;

        &:hover {
          color: var(--main-color-one);
        }
      }
    }
  }
}

.single-case-study-item-03 {
  overflow: hidden;
  border: 1px solid #efefef;

  .thumb {
    position: relative;

    img {
      width: 100%;
    }
  }

  &:hover {
    box-shadow: 0px 1px 10px 0px #00000017;

    .content-wrap {
      transform: translateX(0);
    }
  }

  .content-wrap {
    position: absolute;
    height: 100%;
    top: 0;
    left: 0;
    width: 100%;
    transform: translateX(-100%);
    transition: 0.5s all;
    display: grid;
    align-items: center;
    z-index: 0;

    &:before {
      content: '';
      background-color: #13202b;
      opacity: 0.9;
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      z-index: -1;
    }

    .btn-wrapper {
      text-align: center;

      .boxed-btn {
        &:hover {
          background-color: var(--secondary-color);
        }
      }
    }
  }

  .content {
    padding: 15px 25px;

    ul {
      padding: 0;
      margin: 0;
      list-style: none;
      margin-bottom: 10px;

      li {
        display: inline-block;
        color: $white;
        text-transform: capitalize;

      }
    }

    p {
      color: var(--heading-color);
    }

    .title {
      font-size: 20px;
      line-height: 30px;
      margin-bottom: 15px;
      font-weight: 600;
      color: var(--heading-color);
      transition: all 500ms ease-in;

      &:hover {
        color: var(--main-color-one);
      }
    }
  }
}

