body.type-category #content .subcategories.with-image {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 14px;
  margin: 0 0 24px;
  padding: 0;
}

body.type-category #content .subcategories.with-image > li {
  float: none;
  width: auto;
  min-width: 0;
  margin: 0;
  padding: 0;
}

body.type-category #content .subcategories.with-image > li > a {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  height: 100%;
  padding: 0;
  overflow: hidden;
  border: 1px solid #E7ECEE;
  border-radius: 5px;
  background: #FFFFFF;
  color: #0B171B;
  text-decoration: none;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

body.type-category #content .subcategories.with-image > li > a:is(:hover, :focus-visible) {
  border-color: #BFCBCC;
  box-shadow: 0 5px 18px rgba(11, 23, 27, .08);
  color: #0B171B;
  transform: translateY(-2px);
}

body.type-category #content .subcategories.with-image > li > a:focus-visible {
  outline: 2px solid #0B8577;
  outline-offset: 2px;
}

body.type-category #content .subcategories.with-image > li > a::before {
  content: none;
}

body.type-category #content .subcategories.with-image > li > a::after {
  content: "→";
  position: absolute;
  top: auto;
  right: 13px;
  bottom: 13px;
  left: auto;
  width: auto;
  height: auto;
  background: none;
  color: #0B8577;
  font-size: 20px;
  line-height: 1;
}

body.type-category #content .subcategories.with-image .image {
  display: block;
  width: 100%;
  margin: 0;
  padding: 4px;
}

body.type-category #content .subcategories.with-image .image img {
  content: normal;
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  aspect-ratio: 4 / 3;
  object-fit: contain;
}

body.type-category #content .subcategories.with-image .text {
  display: block;
  flex: 1;
  width: 100%;
  min-height: 66px;
  max-height: none;
  padding: 12px 36px 14px 14px;
  overflow: visible;
  color: #0B171B;
  font-size: 15px;
  font-weight: 700;
  line-height: 20px;
  text-overflow: clip;
}

@media (min-width: 1200px) {
  body.type-category #content .subcategories.with-image {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1440px) {
  body.type-category #content .subcategories.with-image {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  body.type-category #content .subcategories.with-image {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  body.type-category #content .subcategories.with-image .text {
    min-height: 60px;
    padding: 10px 30px 12px 10px;
    font-size: 14px;
    line-height: 18px;
  }
}
