/* Overview */
.card_list {
  display: flex;
  flex-wrap: wrap;
  font-family: unset !important;
}

/* Alternating Layout */
.card_wrapper:nth-child(1n) {
  margin: 0 8% 88px 0;
}
.card_wrapper:nth-child(2n) {
  margin: 88px 0 0 0;
}

/* Single Card */
.card_wrapper a {
  text-decoration: none !important;
}
.card_wrapper {
  position: relative;
  display: flex;
  flex-flow: column;
  width: 46%;
  height: 430px;
  box-shadow: 0px 7px 22px -6px rgba(0, 0, 0, 0.09);
  text-decoration: none;
  transition: all 0.3s ease-in-out;
}
.card_wrapper:hover {
  background: #f3f3f3;
  box-shadow: 0px 7px 22px -6px rgba(0, 0, 0, 0.2);
}
.card_link {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Card Top */
.card_top {
  height: 100%;
  background-color: #325472;
  background-size: cover;
  transition: all 0.3s ease-in-out;
  background-position: center !important;
}
.card_wrapper:hover .card_top_height {
  height: 52%;
}
.card_top:before {
  content: "";
  display: flex;
  width: 100%;
  height: 100%;
  background-color: black;
  background: linear-gradient(
    158deg,
    rgba(0, 0, 0, 0.16) 19.97%,
    rgba(0, 0, 0, 0) 42.9%
  );
}
.card_logo {
  object-fit: contain;
  position: absolute;
  top: 24px;
  left: 24px;
  max-height: 90px;
  max-width: 136px !important;
}

/* Card Bottom */
.card_bot {
  padding: 16px 24px 16px 24px;
}
.card_heading {
  font-size: 36px;
  font-weight: 600;
  color: #325472;
  @media (max-width: 600px) {
    font-size: 26px;
  }
}
.card_text {
  height: 0px;
  opacity: 0;
  font-size: 20px;
  font-weight: 300;
  color: #1b2326;
  transition: opacity 0.1s ease-in-out 0s, height 0.3s ease-in-out;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  @media (max-width: 600px) {
    font-size: 18px;
  }
}
.card_wrapper:hover .card_text {
  height: 90px;
  opacity: 1;
  transition: opacity 0.3s ease-in-out 0.2s, height 0.3s ease-in-out;
}
.card_cta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 10px;
}
.card_cta_line {
  width: 64px;
  border-width: 1px;
  border-color: #e73a3b;
  transition: all 0.2s ease-in-out;
}
.card_wrapper:hover .card_cta_line {
  width: 90px;
  transition: all 0.2s ease-in-out;
}
.card_cta_text {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.96px;
  color: #e73a3b;
}

/* Media Querries */
@media (max-width: 1024px) {
  .card_wrapper {
    height: unset;
  }
  .card_top {
    height: 312px !important;
  }
  .card_link {
    justify-content: space-evenly;
  }
  .card_text {
    height: unset !important;
    opacity: unset;
  }
}
@media (max-width: 980px) {
  .card_list {
    align-items: center;
    flex-direction: column;
    row-gap: 64px;
  }
  .card_wrapper {
    width: 80%;
    margin: 0 !important;
  }
}
@media (max-width: 500px) {
  .card_wrapper {
    width: 95%;
    margin: 0 !important;
  }
}
