/* Vodovoz-like category cards — v20260921b */
.vv-cat-banners .vv-cat-grid {
  --gap: 16px;
  padding-top: 48px;
}

/* Desktop: allow photo to stick out above the card */
@media (min-width: 768px) {
  .drag-block.MIDDLE_ADV,
  .drag-block.MIDDLE_ADV .index-block,
  .vv-cat-banners,
  .vv-cat-banners .maxwidth-theme,
  .vv-cat-banners .vv-cat-grid,
  .vv-cat-banners .vv-cat-grid.mobile-scrolled,
  .vv-cat-banners .vv-cat-grid.mobile-offset,
  .vv-cat-banners .ui-cards {
    overflow: visible !important;
  }
}

.vv-cat-card {
  position: relative;
  min-width: 0;
  overflow: visible !important;
  font-family: var(--theme-font-family, inherit);
}

.vv-cat-card__link {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 16px;
}

.vv-cat-card__inner {
  position: relative;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 12px;
  min-height: 300px;
  height: 100%;
  padding: 24px 8px 18px 22px;
  border-radius: 16px;
  overflow: visible !important;
  background: #eff5fb;
  transition: transform .2s ease, box-shadow .2s ease;
}

.vv-cat-card:hover .vv-cat-card__inner {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(30, 110, 170, 0.18);
}

.vv-cat-card__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 52.9%;
  padding-right: 4px;
}

.vv-cat-card__top {
  color: #222228;
  opacity: 0.85;
  font-size: 13px;
}

.vv-cat-card__title {
  position: relative;
  z-index: 3;
  display: block;
  margin: 0;
  color: #222228;
  text-decoration: none;
  max-width: 100%;
  font-family: inherit;
  font-size: 17px;
}

.vv-cat-card__title:hover {
  color: var(--theme-base-color, #1a7fc1);
}

/* Tags right under the title */
.vv-cat-card__tags {
  position: relative;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.vv-cat-card__tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: var(--theme-button-border-radius, 6px);
  background: rgba(255, 255, 255, 0.78);
  color: var(--white_text_black, #222228);
  text-decoration: none;
  font-family: inherit;
  font-size: 13px;
  backdrop-filter: blur(4px);
  transition: background .15s ease, color .15s ease;
}

.vv-cat-card__tag:hover {
  background: #fff;
  color: var(--theme-base-color, #1a7fc1);
}

.vv-cat-card__image {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  width: 48%;
  max-width: 280px !important;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  align-self: flex-end;
  pointer-events: none;
  margin-bottom: -8px;
}

.vv-cat-card__image img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-width: 280px !important;
  max-height: 350px !important;
  object-fit: contain;
  object-position: bottom center;
  margin-top: -56px !important;
  transform: translateY(0);
}

.vv-cat-card__placeholder {
  display: block;
  width: 100%;
  height: 280px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.35);
  margin-top: -32px;
}

@media (max-width: 1199px) {
  .vv-cat-banners .vv-cat-grid {
    padding-top: 36px;
  }
  .vv-cat-card__inner {
    min-height: 280px;
  }
  .vv-cat-card__image {
    max-width: 230px !important;
  }
  .vv-cat-card__image img {
    max-width: 230px !important;
    max-height: 280px !important;
    margin-top: -44px !important;
  }
}

@media (max-width: 991px) {
  .vv-cat-card__inner {
    min-height: 260px;
    padding: 18px 14px 14px 18px;
  }
  .vv-cat-card__image {
    max-width: 200px !important;
  }
  .vv-cat-card__image img {
    max-width: 200px !important;
    max-height: 250px !important;
    margin-top: -36px !important;
  }
}

/* Mobile: photo under title and tags */
@media (max-width: 767px) {
  .vv-cat-banners .vv-cat-grid {
    padding-top: 0;
  }

  .vv-cat-card__inner {
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
    gap: 12px;
    overflow: hidden !important;
    padding: 18px 14px 14px 18px;
  }

  .vv-cat-card__content {
    max-width: 100%;
    flex: 0 0 auto;
    padding-right: 0;
  }

  .vv-cat-card__tags {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  .vv-cat-card__image {
    flex: 0 0 auto;
    max-width: none !important;
    width: 100%;
    align-self: center;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
  }

  .vv-cat-card__image img {
    max-width: 200px !important;
    max-height: 220px !important;
    margin: 0 auto !important;
  }

  .vv-cat-card__placeholder {
    height: 160px;
    max-width: 200px;
    margin: 0 auto;
  }
}

.vv-cat-card--extra[hidden] {
  display: none !important;
}

@media (max-width: 767px) {
  .vv-cat-card--mob-extra {
    display: none !important;
  }
}

.vv-cat-more--mobile {
  display: none !important;
}

@media (max-width: 767px) {
  .vv-cat-more--mobile {
    display: flex !important;
  }
}

.vv-cat-banners .vv-cat-more {
  display: flex;
  justify-content: center;
}

.vv-cat-banners .vv-cat-more .btn {
  max-width: 320px;
}
