.recent-business-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.recent-business-grid--home {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.recent-business-grid--home.owl-carousel {
  display: block;
}

.recent-business-grid--home.owl-carousel .owl-stage {
  justify-content: center;
  margin-right: auto;
  margin-left: auto;
}

.recent-business-grid--home .recent-business-card {
  flex: 0 1 calc((100% - 72px) / 4);
}

.home-card-carousel.owl-carousel .owl-stage {
  display: flex;
}

.home-card-carousel.owl-carousel .owl-item {
  display: flex;
  min-width: 0;
}

.home-card-carousel.owl-carousel .owl-item > .recent-business-card,
.home-card-carousel.owl-carousel .owl-item > .product-box {
  flex: 1 1 auto;
  width: 100%;
}

.home-card-carousel.owl-carousel .recent-business-card {
  height: 100%;
}

.home-card-carousel.owl-carousel .recent-business-card > a {
  display: flex;
  flex-direction: column;
}

.home-card-carousel.owl-carousel .recent-business-card__content {
  flex: 1;
}

.recent-business-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #dfe7ef;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(7, 30, 66, 0.09);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.recent-business-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 17px 38px rgba(7, 30, 66, 0.15);
}

.recent-business-card > a {
  position: relative;
  display: block;
  height: 100%;
  color: #20314d;
}

.recent-business-card > a:hover {
  color: #20314d;
}

.recent-business-card > a:focus-visible {
  outline: 3px solid rgba(57, 191, 254, 0.65);
  outline-offset: -3px;
}

.recent-business-card__cover {
  position: relative;
  height: 164px;
  overflow: hidden;
  background:
    radial-gradient(circle at 75% 30%, rgba(57, 191, 254, 0.48), transparent 34%),
    linear-gradient(125deg, #071e42, #154e72);
}

.recent-business-card__cover--lake {
  background: radial-gradient(circle at 25% 30%, rgba(255, 255, 255, 0.34), transparent 30%), linear-gradient(135deg, #0b607d, #39bffe);
}

.recent-business-card__cover--sunrise {
  background: radial-gradient(circle at 78% 24%, rgba(255, 214, 138, 0.76), transparent 28%), linear-gradient(135deg, #071e42, #f26649);
}

.recent-business-card__cover--evergreen {
  background: radial-gradient(circle at 72% 26%, rgba(111, 217, 181, 0.38), transparent 30%), linear-gradient(135deg, #073f46, #1688cc);
}

.recent-business-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.recent-business-card__cover--image::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(7, 30, 66, 0.02), rgba(7, 30, 66, 0.28));
}

.recent-business-card__logo {
  position: absolute;
  top: 124px;
  left: 18px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(190px, calc(100% - 36px));
  height: 78px;
  padding: 10px 15px;
  border: 4px solid #fff;
  border-radius: 9px;
  box-shadow: 0 7px 18px rgba(7, 30, 66, 0.19);
}

.recent-business-card__logo--white {
  background: #fff;
}

.recent-business-card__logo--soft {
  background: #edf1f5;
}

.recent-business-card__logo--navy {
  background: #071e42;
}

.recent-business-card__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.recent-business-card__initials {
  position: absolute;
  top: 126px;
  left: 18px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 74px;
  height: 74px;
  border: 4px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: #071e42;
  box-shadow: 0 7px 18px rgba(7, 30, 66, 0.19);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.06em;
}

.recent-business-card__content {
  display: flex;
  min-height: 238px;
  flex-direction: column;
  padding: 52px 20px 20px;
}

.recent-business-card__category {
  margin-bottom: 7px;
  color: #1688cc;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.recent-business-card__content h3 {
  margin: 0 0 9px;
  color: #071e42;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.4;
}

.recent-business-card__content p {
  display: -webkit-box;
  margin: 0 0 18px;
  overflow: hidden;
  color: #617087;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.recent-business-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  color: #1688cc;
  font-size: 14px;
  font-weight: 800;
}

.recent-business-more {
  margin-top: 34px;
  text-align: center;
}

.recent-business-more a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border: 1px solid #1688cc;
  border-radius: 5px;
  color: #1688cc;
  font-weight: 800;
}

.recent-business-more a:hover {
  color: #fff;
  background: #1688cc;
}

.recent-business-empty {
  padding: 38px 24px;
  border: 1px dashed #bfcbd6;
  border-radius: 12px;
  color: #617087;
  background: #fff;
  text-align: center;
}

.recent-business-empty i {
  margin-bottom: 12px;
  color: #1688cc;
  font-size: 30px;
}

.recent-business-empty h3 {
  margin: 0 0 7px;
  color: #071e42;
}

.recent-business-empty p {
  margin: 0;
}

.recent-business-directory {
  padding: 82px 0;
  background: #f3f7fa;
}

.recent-business-directory__intro {
  max-width: 720px;
  margin: 0 auto 38px;
  color: #617087;
  text-align: center;
}

@media (max-width: 991px) {
  .recent-business-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .recent-business-grid--home .recent-business-card {
    flex-basis: calc((100% - 24px) / 2);
  }
}

@media (max-width: 575px) {
  .recent-business-grid {
    grid-template-columns: 1fr;
  }

  .recent-business-grid--home .recent-business-card {
    flex-basis: 100%;
  }

  .recent-business-card__cover {
    height: 180px;
  }

  .recent-business-card__logo {
    top: 139px;
  }

  .recent-business-card__initials {
    top: 142px;
  }
}

@media (max-width: 767px) {
  .home-card-carousel.owl-carousel {
    touch-action: pan-y pinch-zoom;
  }

  .home-card-carousel.owl-carousel .owl-stage-outer {
    cursor: grab;
  }

  .home-card-carousel.owl-carousel .owl-nav {
    display: none;
  }

  .home-card-carousel.owl-carousel .product-box,
  .home-card-carousel.owl-carousel .recent-business-card {
    margin-bottom: 18px;
  }
}
