.slider {
    width: 900px;
    height: 450px;
    margin: 40px auto; /* Ortaya alır */
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.slides {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

    .slide.active {
        opacity: 1;
        z-index: 2;
    }

    .slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* KARARTMA */
    .slide::before {
        content: "";
        position: absolute;
        inset: 0;
        background: rgba(0,0,0,0.5);
        z-index: 1;
    }

/* YAZI ALANI */
.slide-text {
    position: absolute;
    bottom: 20px; /* Alttan mesafe */
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: #fff;
    z-index: 3;
    width: 90%;
}

    /* BAŞLIK */
    .slide-text h2 {
        font-size: 42px;
        margin-bottom: 15px;
    }

    /* ALT BAŞLIK */
    .slide-text p {
        font-size: 18px;
        margin-bottom: 20px;
    }

/* BUTON */
.btnbak {
    background: #3b82f6; /* Daha canlı mavi */
    padding: 12px 25px;
    border-radius: 8px; /* Hafif daha yuvarlak */
    color: #fff;
    font-weight: 700;
    text-transform: uppercase; /* Daha dikkat çekici */
    letter-spacing: 0.5px;
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.4); /* Hafif gölge */
    transition: all 0.3s ease-out;
    display: inline-block;
}

    .btnbak:hover {
        background: #1d4ed8; /* Hoverda daha koyu ve canlı */
        transform: translateY(-2px); /* Hover efekti ile hafif yukarı kaydırma */
        box-shadow: 0 8px 20px rgba(59, 130, 246, 0.5);
    }

/* OK BUTONLARI */
.slider-buttons span {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 30px;
    color: white;
    cursor: pointer;
    padding: 10px;
    background: rgba(0,0,0,0.4);
    border-radius: 50%;
    z-index: 4;
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

/* MOBİL */
@media(max-width:820px) {

    .slider {
        width: 95%;
        height: auto;
        aspect-ratio: 16/9;
    }

    .slide-text h2 {
        font-size: 22px;
    }

    .slide-text p {
        font-size: 14px;
    }
}
