
.slider-container {
    width: 100%;
    /* Sabit 100vh yerine bir aralık belirliyoruz */
    height: auto;
    aspect-ratio: 16 / 9;
    /* Veya fotoğraflarının oranı neyse (Örn: 1920/1080) */
    min-height: 300px;
    /* Mobilde çok fazla küçülüp kaybolmaması için */
    max-height: calc(100vh - 80px);
    /* Masaüstünde ekrandan taşmaması için */

    margin-top: 80px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.slider-inner {
    display: block;
    /* Flex'i iptal ettik */
    width: 100%;
    height: 100%;
    position: relative;
}

.slider-item {
    width: 100% !important;
    /* Her biri tam genişlik */
    height: 100%;
    position: absolute;
    /* Üst üste binmeleri için */
    top: 0;
    left: 0;
    opacity: 0;
    /* Hepsi başlangıçta görünmez */
    transition: opacity 1.5s ease-in-out;
    /* Fade efekti süresi */
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Aktif olan slayt görünür olur */
.slider-item.active {
    opacity: 1;
    z-index: 2;
}

/* Mevcut görsel ayarlarını koruyoruz */
.slider-item img:not(.overlay-image) {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Resmi kapsayıcıya sığdırır */
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}
.slider-item img:not(.overlay-image) {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Resmi bozmadan alanı doldurur */
    position: absolute;
    top: 0;
    left: 0;
}
.slider-content {
    position: absolute;
    z-index: 10;
    bottom: 100px;
    left: 50px;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 20px 20px;
    border-radius: 10px;
    max-width: 40%;
}

.slider-content h2 {
    font-size: 3em;
    margin-bottom: 15px;
    color: aliceblue;
}

.slider-content p {
    font-size: 1.5em;
    line-height: 1.5;
    color: aliceblue;
}

/* SIPARIS slaytı için özel stil */
.slider-item-siparis {
    position: relative;
}

/* 1. Mutfak görselinin başlangıç pozisyonu (Sol üst dışı ve şeffaf) */
.slider-item-siparis .overlay-image {
    position: absolute;
    width: 30vw;
    /* Biraz küçülttüm sol üstte daha şık durması için */
    max-width: 600px;
    height: auto;
    top: 50px;
    /* Sol üst boşluk */
    left: 50px;
    /* Sol üst boşluk */
    transform: translateX(-100px) scale(0.8);
    /* Soldan içeri girecek şekilde */
    z-index: 3;
    opacity: 0;
    /* transition-delay eklendi: Slayt kaydıktan 0.5s sonra başlar */
    transition: all 1.8s ease-out 0.5s;
    pointer-events: none;
}

/* 2. Aktif olduğunda geleceği son nokta (Tam yerine oturma) */
.slider-item-siparis.active .overlay-image {
    opacity: 1;
    transform: translateX(0) scale(1);
}


/* Navigasyon Butonları */
.slider-nav button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 15px 20px;
    font-size: 2em;
    cursor: pointer;
    z-index: 10;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.slider-nav button:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.slider-nav .prev {
    left: 20px;
}

.slider-nav .next {
    right: 20px;
}

/* Noktalar (Dots) */
.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.dot.active {
    background-color: white;
    transform: scale(1.2);
}
@media (max-width: 1280px) {
    .slider-container {
        margin-top: 64px;
    }
}
@media (max-width: 750px) {
.slider-content {
        bottom: 10%;
        left: 10%;
        padding: 5px 5px;
        border-radius: 10px;
        max-width: 70%;
    }

    .slider-content h2 {
        font-size: 1.2em;
        margin-bottom: 5px;
        color: aliceblue;
    }

    .slider-content p {
        font-size: 0.8em;
        line-height: 1.5;
        color: aliceblue;
    }
}