/* TWB Slider — alan yüksekliği görselin oranından gelir (aspect-ratio). */
.twbs {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #0d0d0d;
    aspect-ratio: var(--twbs-ratio, 2.56);
    -webkit-user-select: none;
    user-select: none;
    touch-action: pan-y;
}
@media (max-width: 767px) {
    .twbs { aspect-ratio: var(--twbs-ratio-m, var(--twbs-ratio, 2.56)); }
}

.twbs__track,
.twbs__slide,
.twbs__link,
.twbs picture { position: absolute; inset: 0; display: block; }

.twbs__slide {
    opacity: 0;
    visibility: hidden;
    transition: opacity .7s ease, visibility 0s linear .7s;
}
.twbs__slide.is-active {
    opacity: 1;
    visibility: visible;
    transition: opacity .7s ease, visibility 0s;
    z-index: 1;
}

.twbs__img {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 0 !important;
}

.twbs__arrow {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 48px;
    height: 48px;
    margin-top: -24px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, .28);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .25s ease, background .25s ease;
}
.twbs:hover .twbs__arrow,
.twbs__arrow:focus-visible { opacity: 1; }
.twbs__arrow:hover { background: rgba(0, 0, 0, .55); }
.twbs__arrow svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.twbs__arrow--prev { left: 20px; }
.twbs__arrow--next { right: 20px; }

.twbs__dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 18px;
    z-index: 3;
    display: flex;
    justify-content: center;
    gap: 8px;
}
.twbs__dot {
    width: 28px;
    height: 3px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: rgba(255, 255, 255, .45);
    cursor: pointer;
    transition: background .25s ease;
}
.twbs__dot.is-active { background: #fff; }
/* Dokunma hedefi büyük, çizgi ince kalsın */
.twbs__dot { position: relative; }
.twbs__dot::before { content: ""; position: absolute; inset: -10px -2px; }

@media (max-width: 767px) {
    .twbs__arrow { display: none; }
    .twbs__dots { bottom: 12px; gap: 6px; }
    .twbs__dot { width: 18px; }
}

@media (prefers-reduced-motion: reduce) {
    .twbs__slide, .twbs__slide.is-active { transition: none; }
}

/* Elementor Slides widget'ının yerini aldığında: flex kapsayıcıda (özellikle mobilde) widget'ın genişliği
   belirsiz kalınca oran 0 yükseklik üretiyor ve alttaki bölüm slaytın üstüne biniyor; tam genişlik ver. */
.elementor-widget.twbs-replaced {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 auto !important;
    align-self: stretch !important;
}
.twbs-replaced .elementor-widget-container { width: 100%; height: auto !important; min-height: 0 !important; }
