@import url('https://fonts.googleapis.com/css?family=Alegreya+Sans:900');

.card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23);
  cursor: pointer;
  height: 300px;
  margin: 20px;
  padding: 0 20px;
  position: relative;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0.025);
  text-align: center;
  transition: height 1000ms;
  width: 320px;
}

@media (max-width: 767px) {
  .card {
    left: calc(50% - 20px);
    transform: translateX(-50%);
  }
}

.card.expanded {
  height: 550px;
}

.label {
  margin-top: 30px;
  transform: translateY(10px);
  transition: transform 1000ms;
}

.card.expanded .label {
  transform: translateY(0);
}

.text1 {
  position: relative;
  top: 35px;
  clip-path: polygon(0 31%, 100% 31%, 100% 100%, 0% 100%);
  -webkit-clip-path: polygon(0 31%, 100% 31%, 100% 100%, 0% 100%);
  transition: clip-path 1000ms;
}

.card.expanded .text1 {
  clip-path: polygon(0% 100%, 0 -100%, 50% -15%, 100% -100%, 100% 100%);
  -webkit-clip-path: polygon(0% 100%, 0 -100%, 50% -15%, 100% -100%, 100% 100%);
}

.text2 {
  position: relative;
  top: 35px;
  clip-path: polygon(0% 100%, 0% -80%, 15% -70%, 17.23% -53.59%, 23% -40%, 27.23% -28.94%, 35% -20%, 41.09% -13.59%, 50% -10%, 58.91% -13.23%, 65% -20%, 72.77% -28.23%, 77% -40%, 82.77% -54.65%, 85% -70%, 100% -80%, 100% 100%);
  -webkit-clip-path: polygon(0% 100%, 0% -80%, 15% -70%, 17.23% -53.59%, 23% -40%, 27.23% -28.94%, 35% -20%, 41.09% -13.59%, 50% -10%, 58.91% -13.23%, 65% -20%, 72.77% -28.23%, 77% -40%, 82.77% -54.65%, 85% -70%, 100% -80%, 100% 100%);
  transition: clip-path 1000ms;
}

.card.expanded .text2 {
  clip-path: polygon(0% 100%, 0% -90%, 15% -80%, 17.23% -63.59%, 23% -50%, 27.23% -38.94%, 35% -30%, 41.09% -23.59%, 50% -20%, 58.91% -23.23%, 65% -30%, 72.77% -38.23%, 77% -50%, 82.77% -64.65%, 85% -80%, 100% -90%, 100% 100%);
  -webkit-clip-path: polygon(0% 100%, 0% -90%, 15% -80%, 17.23% -63.59%, 23% -50%, 27.23% -38.94%, 35% -30%, 41.09% -23.59%, 50% -20%, 58.91% -23.23%, 65% -30%, 72.77% -38.23%, 77% -50%, 82.77% -64.65%, 85% -80%, 100% -90%, 100% 100%);
}

.text-content {
  transform: translateY(-160px);
  transition: transform 1000ms;
}

.card.expanded .text-content {
  transform: translateY(-15px);
}

.chevron {
  position: absolute;
  bottom: 20px;
  color: white;
  left: calc(50% - 15px);
  transform-origin: 50%;
  transform: rotate(180deg);
  transition: transform 1000ms;
}

.card.expanded .chevron {
  transform: rotate(0deg);
}

.title {
  font-family: 'Alegreya Sans', sans-serif;
  font-weight: 800;
  font-size: 28px;
  margin: 20px 0 12px;
  background: #5192E1;
  background: linear-gradient(to top right, #5192E1 0%, #23CED5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.body-text {
  padding: 0 10px;
  font-size: 14px;
  color: grey;
  line-height: 1;
}

.card .text1 button {
  position: relative;
  display: inline-block;
  font-size: 15px;
  padding: .8rem 2.25rem;
  line-height: 1;
  text-transform: capitalize;
  text-align: center;
  font-weight: 500;
  z-index: 1;
  border: 1px solid transparent;
  -webkit-border-radius: 30px;
  border-radius: 30px;
  opacity: 0;
  transform: translateY(50px);
  transition: 0.5s;
}

.card.expanded .text1 button {
  opacity: 1;
  transform: translateY(0px);
  transition-delay: .15s;
  left: 5px;
}

.card-img {
  position: relative;
  height: 220px;
  width: 280px;
  top: 25px;
  border-radius: 10px;
}

i.fa.fa-chevron-left,
i.fa.fa-chevron-right {
  font-size: 32px;
  text-align: center;
}
