﻿.slider {
    position: relative;
    overflow: hidden;
    max-width: 100%;
    height: 400px;
    background-color: #eee; /* Resim yüklenene kadar alan belli olsun */
}

.slides {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.slide {
    min-width: 100%; /* Her slaytın tam genişlik almasını sağlar */
    height: 100%;
    position: relative;
    flex-shrink: 0;
}

    .slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    /* Yazı alanı */
    .slide .text {
        position: absolute;
        bottom: 30px;
        left: 30px;
        background: rgba(0, 0, 0, 0.6);
        padding: 20px;
        border-radius: 8px;
        color: #fff;
        max-width: 50%;
        z-index: 2;
    }

        .slide .text h2 {
            font-size: 1.8rem;
            margin: 0 0 10px 0;
        }

/* Butonlar */
.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 2rem;
    padding: 15px;
    cursor: pointer;
    border-radius: 50%;
    z-index: 10;
    transition: 0.3s;
}

    .prev:hover, .next:hover {
        background-color: rgba(0, 0, 0, 0.8);
    }

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

/* Noktalar */
.dots {
    position: absolute;
    bottom: 20px;
    width: 100%;
    text-align: center;
    z-index: 10;
}

.dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
}

    .dot.active {
        background-color: #fff;
        transform: scale(1.2);
    }

/* Mobil Uyumluluk */
@media (max-width: 768px) {
    .slider {
        height: 300px;
    }

    .slide .text {
        bottom: 10px;
        left: 10px;
        max-width: 85%;
    }

        .slide .text h2 {
            font-size: 1.2rem;
        }
}
