/* Legacy: src/components/category-image-banner/category-image-banner.css (tek öğe kuralları).
   Parent ayarları CSS değişkeniyle gelir: --cib-default-ratio, --cib-scale, --cib-title-weight,
   --cib-btn-padding, --cib-btn-weight. */
.cc_JSJjCS0Xum_c67CLFdm0P .category-images-item a {
  display: block;
  text-decoration: none;
}

.cc_JSJjCS0Xum_c67CLFdm0P .category-images-item .category-image-banner-main__img {
  aspect-ratio: var(--cib-ratio-d, 1/1);
}

.cc_JSJjCS0Xum_c67CLFdm0P .category-images-item picture {
  display: contents;
}

.cc_JSJjCS0Xum_c67CLFdm0P .category-images-item .category-image-banner-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: var(--cib-fit, cover);
}

.cc_JSJjCS0Xum_c67CLFdm0P .category-images-item .category-image-banner-main .category-image-banner-title {
  position: absolute;
  bottom: 15%;
  display: flex;
  flex-direction: column;
  left: 50%;
  transform: translateX(-50%);
  align-items: center;
  width: 95%;
  text-align: center;
  /* Uzun metin kartın dışına taşmasın: blok kartın içinde kalır, metinler satır sınırıyla kısalır. */
  max-height: 85%;
  overflow: hidden;
  overflow-wrap: anywhere;
}

.cc_JSJjCS0Xum_c67CLFdm0P .category-images-item .category-image-banner-main .category-image-banner-title .top-title, .cc_JSJjCS0Xum_c67CLFdm0P .category-images-item .category-image-banner-main .category-image-banner-title .title, .cc_JSJjCS0Xum_c67CLFdm0P .category-images-item .category-image-banner-main .category-image-banner-title .sub-text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 0;
}

.cc_JSJjCS0Xum_c67CLFdm0P .category-images-item .category-image-banner-main .category-image-banner-title .top-title {
  -webkit-line-clamp: 3;
  line-clamp: 3;
}

.cc_JSJjCS0Xum_c67CLFdm0P .category-images-item .category-image-banner-main .category-image-banner-title .title {
  -webkit-line-clamp: 4;
  line-clamp: 4;
  flex-shrink: 0;
}

.cc_JSJjCS0Xum_c67CLFdm0P .category-images-item .category-image-banner-main .category-image-banner-title .sub-text {
  -webkit-line-clamp: 3;
  line-clamp: 3;
  flex-shrink: 0;
}

/* Düğme her zaman görünür kalır */
.cc_JSJjCS0Xum_c67CLFdm0P .category-images-item .category-image-banner-main .category-image-banner-title .link {
  flex-shrink: 0;
}

/* Dışarıdaki blok kartla birlikte büyür; kısaltma/kırpma uygulanmaz */
.cc_JSJjCS0Xum_c67CLFdm0P .category-images-item .category-image-banner-main .category-image-banner-title.outside .top-title, .cc_JSJjCS0Xum_c67CLFdm0P .category-images-item .category-image-banner-main .category-image-banner-title.outside .title, .cc_JSJjCS0Xum_c67CLFdm0P .category-images-item .category-image-banner-main .category-image-banner-title.outside .sub-text {
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset;
  line-clamp: unset;
}

.cc_JSJjCS0Xum_c67CLFdm0P .category-images-item .category-image-banner-main .category-image-banner-title.outside {
  max-height: none;
  overflow: visible;
  position: relative;
  bottom: unset;
  display: flex;
  top: unset;
  flex-direction: column;
  left: unset;
  transform: unset;
  align-items: center;
  width: 100%;
  text-align: center;
  margin-top: 16px;
}

.cc_JSJjCS0Xum_c67CLFdm0P .category-images-item .category-image-banner-main .category-image-banner-title.has-pos-d {
  top: var(--cib-top-d);
  bottom: unset;
  max-height: 100%;
  /* Blok kendi yüksekliğinin konum yüzdesi kadarı yukarı kayar: 0 = üstte, 100 = kartın en altında. */
  transform: translate(-50%, calc(var(--cib-pos-d, 0) * -1%));
}

.cc_JSJjCS0Xum_c67CLFdm0P .category-images-item .category-image-banner-main img {
  transition: 400ms all;
  overflow: hidden;
}

.cc_JSJjCS0Xum_c67CLFdm0P .category-images-item .category-image-banner-main:hover img {
  transform: scale(var(--cib-scale, 1));
  overflow: hidden;
}

.cc_JSJjCS0Xum_c67CLFdm0P .category-images-item .category-image-banner-main .category-image-banner-title .title {
  font-size: 2rem;
  color: #fff;
  font-weight: var(--cib-title-weight, 900);
  margin: 0;
}

.cc_JSJjCS0Xum_c67CLFdm0P .category-images-item .category-image-banner-main .category-image-banner-title .sub-text {
  font-size: 1rem;
  color: #fff;
  font-weight: 700;
}

.cc_JSJjCS0Xum_c67CLFdm0P .category-images-item .category-image-banner-main .category-image-banner-title .link {
  color: #000;
  padding: var(--cib-btn-padding, 11px);
  font-size: 14px;
  font-weight: var(--cib-btn-weight, 700);
  background-color: #fff;
  margin-top: 10px;
  min-width: 195px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 300ms all;
  letter-spacing: 0.05em;
}

.cc_JSJjCS0Xum_c67CLFdm0P .category-images-item .category-image-banner-main .category-image-banner-title .link:hover {
  color: #fff;
  background-color: var(--primary-color);
}

.cc_JSJjCS0Xum_c67CLFdm0P .category-images-item .category-image-banner-main .category-image-banner-title .link.has-hover:hover {
  background-color: var(--cib-hover-bg) !important;
}

.cc_JSJjCS0Xum_c67CLFdm0P .category-images-item .category-image-banner-main .category-image-banner-title .link.has-hover-text:hover {
  color: var(--cib-hover-color) !important;
}

/* Legacy isMob (genişlik < 700px) */
@media (max-width: 699px) {
  .cc_JSJjCS0Xum_c67CLFdm0P .category-images-item .category-image-banner-main__img {
    aspect-ratio: var(--cib-ratio-m, 1/1);
  }

  .cc_JSJjCS0Xum_c67CLFdm0P .category-images-item .category-image-banner-main .category-image-banner-title.has-pos-d:not(.has-pos-m) {
    top: auto;
    bottom: 15%;
    max-height: 85%;
    transform: translateX(-50%);
  }

  .cc_JSJjCS0Xum_c67CLFdm0P .category-images-item .category-image-banner-main .category-image-banner-title.outside.has-pos-d:not(.has-pos-m) {
    top: unset;
    bottom: unset;
  }

  .cc_JSJjCS0Xum_c67CLFdm0P .category-images-item .category-image-banner-main .category-image-banner-title.has-pos-m {
    top: var(--cib-top-m);
    bottom: unset;
    max-height: 100%;
    transform: translate(-50%, calc(var(--cib-pos-m, 0) * -1%));
  }
}

/* Dışarıdaki başlık bloğu kartla birlikte büyür; konum/mobil kurallarındaki max-height uygulanmaz */
.cc_JSJjCS0Xum_c67CLFdm0P .category-images-item .category-image-banner-main .category-image-banner-title.outside.outside {
  max-height: none;
  overflow: visible;
  transform: none;
}
