#CTA {
  margin-top: 50px;
  background-image: url('https://www.virtru.com/hubfs/assets/images/backgrounds/homepage-mask1.webp');
  background-size: cover;
  background-position: center 120px;
  background-repeat: no-repeat;
}

#CTA h2 {
  font-size: 3rem;
  line-height: 3.88rem;
}
#CTA .container > .subtitle {
  margin-bottom: 75px;
  width: 50%;
}

.cta_resources {
  margin: 43px 0 96px;
  display: flex;
  gap: 22px;
}


.cr_card {
  position: relative;
  padding: 27px 45px;
  height: 435px;
  width: 50%;
  display: flex;
  flex-direction: column;
  justify-content: end;
  background-color: var(--dark-blue);
  border-radius: 10px;
  overflow: hidden;
}
.cr_card:hover {
  text-decoration: none !important;
}
.cr_bgimg {
  height: 100%;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  transition: 400ms ease;
}
.cr_bgimg::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0));   

  z-index: 1; /* Ensure the gradient is on top of the image */
}

.cr_card:hover .cr_bgimg {
  transform: scale(1.05);
}
.cr_bgimg img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}
.cr_bgimg img.left {
  object-position: left;
}


.cr_card h3, .cta_link {
  z-index: 2;
}
.cta_link {
  display: flex;
  gap: 8px;
  align-items: center;
  transition: 220ms ease-in-out;
}
.cr_card:hover .cta_link {
  gap: 14px;
  text-decoration: none !important;
  color: var (--virtru-blue);
  cursor: pointer;
  transition: 220ms ease-in-out;
}
.cta_link p {
  margin-bottom: 0px;
  width: fit-content;
  font-size: 1.5rem;
  line-height: 1;
  font-weight: 500;
  color: white;
}
.cta_link .arrow {
  height: 1rem;
}

.cta_cta {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta_awards {
  margin: 30px 0 200px;
  display: grid;
  grid-template-columns: repeat(4, 100px);
  gap: 90px;
}
.cta_awards img {
  margin: 0 auto;
  height: 100px;
  object-fit: contain;
  transition: 300ms ease;
}
.cta_awards img:hover {
  transform: scale(1.6);
}

@media (max-width: 1100px) {
  #CTA {
    background-position: center 200px;
  }
  
  #CTA h2 {
    text-align: center;
  }
  #CTA .container > .subtitle {
    margin-bottom: 75px;
    width: auto;
    max-width: 70ch;
    text-align: center;
  }
}

@media (max-width: 768px) {
  #CTA {
    background-position: center 300px;
  }
  #CTA h2 {
    font-size: 2.25rem;
    line-height: 2.95rem;
  }
  .cta_resources {
    flex-direction: column;
  }
  .cr_card {
    padding: 27px 45px;
    height: 350px;
    width: 100%;
  }
  .cta_awards {
    grid-template-columns: repeat(2, 100px);
    gap: 45px;
  }
}
