section.about-category-card-section {
  position: relative;
  overflow: hidden;
}
section.about-category-card-section .category-card-wrapper {
  column-gap: 55px;
  row-gap: 105px;
  padding-top: 80px;
  display: flex;
  flex-wrap: wrap;
}
.category-card-wrapper .category-card:nth-child(1),
.category-card-wrapper .category-card:nth-child(3),
.category-card-wrapper .category-card:nth-child(4),
.category-card-wrapper .category-card:nth-child(6) {
  margin-top: -80px;
}
.category-card-wrapper .category-card {
  position: relative;
  overflow: hidden;
  width: calc(33.33% - 37px);
  transition: all 0.3s ease-in;
  height: 600px;
}
section.about-category-card-section .category-card-wrapper.two-columns {
  width: 100%;
  max-width: 1200px;
  margin: auto;
}
.category-card-wrapper.two-columns .category-card {
  width: calc(50% - 28px);
  margin: 0;
}
.category-card-wrapper.two-columns .category-card:nth-child(odd) {
  margin-top: -80px;
}
.category-card-wrapper .category-card a {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 991;
}
.category-card-wrapper .category-card .image {
  width: 100%;
  height: 100%;
}
.category-card-wrapper .category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.3s ease-in;
}
.category-card-wrapper .category-card:hover img {
  transform: scale(1.1);
}
.category-card-wrapper .category-card .content-wrap {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 0 30px 50px;
  z-index: 99;
}
.category-card-wrapper .category-card .inner {
  position: relative;
  overflow: hidden;
  display: flex;
  height: 100%;
}
.category-card-wrapper .category-card .headline {
  font-weight: 700;
  line-height: 129%;
  color: var(--card-text-color, #fff);
  transition: all 0.3s ease-in;
  padding-bottom: 20px;
  margin: 0;
}
.category-card-wrapper .category-card .description {
  font-size: 27px;
  font-weight: 400;
  line-height: 118%;
  color: var(--card-text-color, #fff);
  padding-top: 20px;
  padding-bottom: 30px;
  margin: 0;
}
.category-card-wrapper .category-card .inner::before {
  position: absolute;
  content: '';
  height: 100%;
  width: 100%;
  background: linear-gradient(
    26deg,
    var(--primary-color) 0%,
    rgba(27, 78, 160, 0) 54%
  );
  transition: all 0.3s ease-in;
  z-index: 1;
}
.category-card-wrapper .category-card:hover .inner::before {
  opacity: 0;
}
.category-card-wrapper .category-card .inner::after {
  background: linear-gradient(
    26deg,
    var(--primary-color) 0%,
    rgba(27, 78, 160, 0) 75%
  );
  position: absolute;
  content: '';
  height: 100%;
  width: 100%;
  opacity: 0;
  transition: all 0.3s ease-in;
  z-index: 1;
}
.category-card-wrapper .category-card:hover .inner::after {
  opacity: 1;
}
.category-card-wrapper .category-card .category-card-description-wrap {
  transition: all 0.3s ease-in;
  opacity: 0;
}
.category-card-wrapper .category-card:hover .category-card-description-wrap {
  margin-bottom: 0 !important;
  opacity: 1;
}
.category-card-wrapper .category-card:hover .headline {
  padding-bottom: 0;
}
.category-card-wrapper .category-card .category-card-description-wrap .btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 18px;
  line-height: normal;
  color: var(--card-text-color, #fff);
  font-weight: 400;
}
.category-card-wrapper .category-card.style-2 {
  background-color: var(--primary-color, #1b4ea0);
  box-shadow: 10px 10px 0 0 #97ca3e;
  height: 328px;
}
.category-card-wrapper .category-card.style-2 .inner::before {
  opacity: 0;
}
.category-card-wrapper .category-card.style-2 .inner::after {
  opacity: 0;
}
.category-card-wrapper .category-card.style-2 .icon {
  position: absolute;
  right: 40px;
  top: 30px;
}
.category-card-wrapper .category-card.style-2 .icon img {
  transform: scale(1);
  width: auto;
  max-height: 84px;
}
@media screen and (max-width: 1399px) {
  section.about-category-card-section .category-card-wrapper {
    row-gap: 50px;
    padding-top: 60px;
    column-gap: 36px;
    row-gap: 36px;
  }
  section.about-category-card-section .category-card-wrapper.style-2-wrap {
    row-gap: 48px;
  }
  .category-card-wrapper .category-card:nth-child(1),
  .category-card-wrapper .category-card:nth-child(3),
  .category-card-wrapper .category-card:nth-child(4),
  .category-card-wrapper .category-card:nth-child(6) {
    margin-top: -60px;
  }
  /* .category-card-wrapper .category-card .headline {
    font-size: 38px;
  } */
  .category-card-wrapper .category-card .content-wrap {
    padding: 0 25px 30px;
  }
  .category-card-wrapper .category-card .description {
    font-size: 20px;
    padding-bottom: 22px;
  }
  .category-card-wrapper .category-card {
    height: 450px;
  }
  .category-card-wrapper.two-columns .category-card {
    width: calc(50% - 18px);
    margin: 0;
  }
}
@media screen and (max-width: 1279px) {
  .category-card-wrapper .category-card {
    width: calc(50% - 18px);
    margin: 0;
  }
  .category-card-wrapper .category-card:nth-child(1),
  .category-card-wrapper .category-card:nth-child(3),
  .category-card-wrapper .category-card:nth-child(4),
  .category-card-wrapper .category-card:nth-child(6) {
    margin: 0;
  }
  .category-card-wrapper .category-card:nth-child(odd) {
    margin-top: -60px;
  }
}
@media screen and (max-width: 1023px) {
  .category-card-wrapper .category-card .inner::before {
    opacity: 0;
  }
  .category-card-wrapper .category-card .inner::after {
    opacity: 1;
    background: linear-gradient(
      26deg,
      var(--primary-color) 0%,
      rgba(27, 78, 160, 0.4) 75%
    );
  }
  .category-card-wrapper .category-card .content-wrap {
    padding: 0 20px 20px;
  }
  .category-card-wrapper .category-card .category-card-description-wrap {
    opacity: 1;
    margin: 0 !important;
  }
  .category-card-wrapper .category-card .headline {
    font-size: 28px;
  }
  .category-card-wrapper .category-card .description {
    padding: 10px 0 16px;
    font-size: 18px;
    font-weight: 500;
  }
  section.about-category-card-section {
    padding-top: 10px;
  }
  .category-card-wrapper .category-card .description {
    font-size: 22px;
  }
  .category-card-wrapper .category-card.style-2 {
    height: 272px;
  }
  .category-card-wrapper .category-card.style-2 .icon img {
    width: 64px;
  }
  .category-card-wrapper .category-card.style-2 .icon {
    right: 30px;
  }
}
@media screen and (max-width: 767px) {
  section.about-category-card-section .category-card-wrapper {
    column-gap: 20px;
    row-gap: 20px;
  }
  .category-card-wrapper .category-card {
    width: calc(50% - 10px);
  }
  .category-card-wrapper .category-card .description {
    font-size: 20px;
  }
}
@media screen and (max-width: 640px) {
  section.about-category-card-section .category-card-wrapper {
    padding: 0;
  }
  .category-card-wrapper .category-card,
  .category-card-wrapper.two-columns .category-card {
    width: 100%;
    margin: 0 !important;
    height: 430px;
  }
  .category-card-wrapper .category-card.style-2 {
    height: 250px;
  }
}
