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

.solution {
  min-height: 100vh;
  width: 100vw;
  text-align: center;
  margin-top: 10rem;
}
.container {
  display: flex;
  justify-content: center;
  font-family: sans-serif;
  background: white;
  margin: 5rem 0;
}
.card {
  background: #ffffff;
  border-radius: 15px;
  box-shadow: 0 2px 15px #0b395d61;
  cursor: pointer;
  max-height: 285px;
  height: auto;
  margin: 20px 2vw;
  padding: 0 20px;
  position: relative;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0.025);
  text-align: center;
  transform: translate(0px);
  transition: transform 300ms, height 1s;
  width: clamp(25vw, 0%, 40vw);
  opacity: 0.65;
}
.card:hover{
  box-shadow: 0 0px 16px rgb(230 9 9 / 50%);
  opacity: 1;
  transform: translate(0px,-8px);
  transition: transform 300ms;
}

.card.expanded {
  opacity: 1;
  max-height: fit-content;
  height: auto;
  box-shadow: 0 0px 10px rgb(230 9 9 / 50%);
  transform: translate(0px,-8px);
  transition:  transform 300ms, height 1s;
}
.text1 {
  clip-path: polygon(0% 100%, 0 -90%, 50% -5%, 100% -90%, 100% 100%);
  -webkit-clip-path: polygon(0% 100%, 0 -90%, 50% -5%, 100% -90%, 100% 100%);
  transition: clip-path 200ms;
}
.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 {
    
  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 200ms;
}
.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 {
  visibility: hidden;
  opacity: 0;
  transition: visibility 0s, opacity 0s linear;
}
.card.expanded .text-content {
  visibility: visible;
  opacity: 1;
  transition: visibility 0s, opacity 0.2s linear;
}
.chevron {
  position: absolute;
  bottom: 20px;
  left: calc(50% - 15px);
  transform-origin: 50%;
  transform: rotate(180deg);
  transition: transform 350ms;
}
.card.expanded .chevron {
  transform: rotate(0deg);
}

.solution-title {
  font-family: "Alegreya Sans", sans-serif;
  font-weight: 600;
  margin: 35px 0 12px;
  font-size: 26px;
  color: #0b395d;
}
.body-text {
  padding: 0;
  font-size: 14px;
  text-align: left;
}
.body-text p{
  font-family: system-ui;
  font-weight: 600;
  margin-bottom: 2rem;
}
.list{
  font-size: 13px;
  padding-left: 16px;
  margin-bottom: 2rem;
  text-align: left;
}
.list li{
  padding-bottom: 7px;
  font-weight: 500;
}
.list li a{
  text-decoration: none;
  color: #ff4f1f;
  font-size: 15px;
  font-weight: 600;
}
.list li a:hover{
  color: #bd330d;
}
.arrow {
  color: #ff4f1f;
  margin: 1em 0;
}
.arrow::after {
  display: inline-block;
  padding-left: 5px;
  content: "➞";
  transition: transform 0.3s ease-out;
}
.arrow:hover {
  color: #bd330d;
}
.arrow:hover::after {
  transform: translateX(6px);
}

@media (max-width: 965px) {
  .card {
    left: calc(50% - 20px);
    transform: translateX(-50%);
    transform: translate(-50%) !important;
    height: 33rem;
    width: clamp(300px, 50%, 360px);
    margin: 20px 8vw !important;
  }
  .container {
    display: flex;
    justify-content: center;
    background: white;
    flex-direction: column;
    margin: 3rem 3vw 21rem 0 !important;
  }
  .card.expanded {
    min-height: 80rem !important;
  }
  .card.crm.expanded {
    min-height: 85rem !important;
  }
  .body-text p{
    font-family: unset;
    font-weight: 500;
    margin-bottom: 2rem;
  }
  .list{
    font-size: 13px;
    padding-left: 16px;
    text-align: left;
  }
  .list li{
    padding-bottom: 7px;
    font-family: unset;
    font-family: unset;
  }
  #last-list{
    padding-bottom: 25px;
  }
}









