/* Slayt carousel — sabit yukseklik + picture/img object-fit:cover */

.theme-premium #header-carousel,
.theme-premium #header-carousel .carousel-inner {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    margin-left: 0 !important;
    padding: 0 !important;
}

.theme-premium #header-carousel .carousel-item {
    position: relative;
    overflow: hidden;
    padding: 0 !important;
    /* margin-right'a dokunma — Bootstrap gecis icin -100% sart */
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    margin-left: 0 !important;
    border: 0 !important;
    background-color: #0f172a;
}

@media (min-width: 992px) {
    .theme-premium #header-carousel .carousel-item {
        height: var(--slide-carousel-height-desktop, 620px);
    }
}

@media (max-width: 991.98px) {
    .theme-premium #header-carousel .carousel-item {
        height: var(--slide-carousel-height-mobile, 420px);
    }
}

.theme-premium #header-carousel .carousel-item > picture,
.theme-premium #header-carousel .kobi-slide-placeholder {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    z-index: 0;
}

.theme-premium #header-carousel .kobi-slide-placeholder {
    background-color: #0f172a;
}

.theme-premium #header-carousel .kobi-slide-img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    object-fit: cover;
    object-position: center center;
}

/* Yazı bloğu slaytın tam yüksekliğinde dikey+yatay ortada kalsın (metin uzayınca yukarı kaymasın) */
.theme-premium #header-carousel .carousel-caption {
    position: absolute !important;
    inset: 0 !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100%;
    height: 100%;
    margin: 0;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1.25rem !important;
    box-sizing: border-box;
    transform: none;
    pointer-events: none;
}

.theme-premium #header-carousel .carousel-caption > * {
    pointer-events: auto;
}

/* Menü slaytın üstündeyse görünür alanın ortasına al */
body.theme-premium .header-theme-nav-over-hero #header-carousel .carousel-caption {
    padding-top: 5.25rem !important;
    padding-bottom: 1.5rem !important;
}

@media (min-width: 992px) {
    body.theme-premium .header-theme-nav-over-hero #header-carousel .carousel-caption {
        padding-top: 6rem !important;
    }
}

/* Menü arkasi: ana bar slaytin ustunde (mobil+masaüstü) */
body.theme-premium .header-theme-nav-over-hero > nav.header-theme-main-bar {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 1040;
    border-bottom: none !important;
}
