.imgc {
  position: relative;
  margin-top: 7rem;
  margin-bottom: 7rem;
  padding-bottom: 3.125rem;
}

@media (max-width: 991.98px) {
  .imgc {
    margin-top: 5rem;
    margin-bottom: 5rem;
  }
}

.imgc::before {
  content: '';
  background-color: var(--yellow);
  height: 3.125rem;
  width: 41%;
  position: absolute;
  bottom: -5rem;
  left: 0;
  display: block;
  z-index: -1;
  border-bottom-right-radius: .9375rem;
  border-bottom-left-radius: .9375rem;
}

@media (max-width: 991.98px) {
  .imgc::before {
    bottom: -2rem;
  }
}

.imgc.right::before {
  left: auto;
  right: 0;
  background-color: var(--dark-blue);
}

.imgc::after {
  content: '';
  background-color: var(--yellow);
  height: 22.25rem;
  width: 60%;
  position: absolute;
  bottom: -3.125rem;
  left: 0;
  z-index: -1;
  display: block;
  border-top-left-radius: 1.25rem;
  border-top-right-radius: 1.25rem;
  border-bottom-right-radius: 1.25rem;
}

@media (max-width: 991.98px) {
  .imgc::after {
    width: 100%;
    bottom: 0;
    height: 26.25rem;
  }
}

.imgc.right::after {
  left: auto;
  right: 0;
  background-color: var(--dark-blue);
  border-bottom-left-radius: 1.25rem;
}

.imgc h2 {
  font-size: 2.125rem;
  margin-bottom: 3.375rem;
  color: var(--dark-blue);
  font-weight: 600;
  font-family: var(--body-font);
  margin-top: 5rem;
}

@media (min-width: 992px) {
  .imgc h2 {
    font-size: 2.5rem;
    margin-top: 7.3125rem;
  }
}

.imgc .row {
  -ms-flex-align: center;
      align-items: center;
  row-gap: 2.5rem;
}

.imgc-img {
  position: relative;
  padding: 1.625rem 1.375rem;
  border-radius: .9375rem;
  background-color: var(--white);
  z-index: 2;
}

.imgc-img-box {
  position: relative;
  padding-top: 59.284731774%;
}

.imgc-img-box img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: .9375rem;
}

.imgc-text {
  max-width: 19.375rem;
  width: 100%;
}

@media (max-width: 991.98px) {
  .imgc-text {
    max-width: 100%;
  }
}

@media (min-width: 992px) {
  .left .imgc-text {
    margin-left: 4rem;
  }
  .right .imgc-text {
    margin-left: 2rem;
  }
}

@media (min-width: 1200px) {
  .left .imgc-text {
    margin-left: 7rem;
  }
  .right .imgc-text {
    margin-left: 4rem;
  }
}

.imgc-text h3 {
  font-size: 2.25rem;
  margin-bottom: .9375rem;
  padding-bottom: .9375rem;
  line-height: 0.9;
  border-bottom: 1px solid var(--yellow);
  color: var(--blue);
}

@media (min-width: 992px) {
  .imgc-text h3 {
    font-size: 3.375rem;
  }
}

@media (max-width: 991.98px) {
  .imgc-text h3 {
    color: var(--white);
    border-color: var(--white);
  }
  .left .imgc-text h3 {
    color: var(--dark-blue);
    border-color: var(--dark-blue);
  }
}

.imgc-text p {
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.1;
  margin-bottom: 1.875rem;
  color: var(--blue);
}

@media (max-width: 991.98px) {
  .imgc-text p {
    color: var(--white);
  }
  .left .imgc-text p {
    color: var(--dark-blue);
  }
}

.imgc-text-btn {
  display: -ms-inline-flexbox;
  display: inline-flex;
  -ms-flex-align: center;
      align-items: center;
  font-size: 1.25rem;
  font-weight: 500;
  gap: .9375rem;
  color: var(--dark-blue);
  transition: all .3s ease;
}

.imgc-text-btn svg {
  margin-top: .1875rem;
}

.imgc-text-btn svg path {
  fill: var(--dark-blue);
  transition: all .3s ease;
}

.imgc-text-btn:hover {
  color: var(--yellow);
}

.imgc-text-btn:hover svg path {
  fill: var(--yellow);
}

@media (max-width: 991.98px) {
  .imgc-text-btn {
    color: var(--white);
  }
  .imgc-text-btn svg path {
    fill: var(--white);
  }
  .left .imgc-text-btn {
    color: var(--dark-blue);
  }
  .left .imgc-text-btn svg path {
    fill: var(--dark-blue);
  }
  .left .imgc-text-btn:hover {
    color: var(--white);
  }
  .left .imgc-text-btn:hover svg path {
    fill: var(--white);
  }
}
