.slider {
    position: relative;
    width: 100%;
    height: 70vh; /* Ekran yüksekliğinin %70'i */
    max-height: 600px;
    min-height: 400px;
    overflow: hidden;
    margin-top: 0;
}

.slides {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.8s ease-in-out;
}

.slide {
    width: 100%;
    height: 100%;
    position: relative;
    flex-shrink: 0;
}

.slide-img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Resmi kapsayacak şekilde boyutlandır */
    object-position: top;
}

.slide-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.4); /* Yarı saydam siyah arkaplan */
    color: white;
    padding: 40px;
    text-align: center;
}

.slide-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(238, 241, 13, 0.993);
}

.slide-content p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    text-shadow: 1px 1px 3px rgb(255, 0, 0);
}

.slider-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 20px;
    z-index: 10;
}

.slider-nav button {
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-nav button:hover {
    background: rgba(0,0,0,0.8);
    transform: scale(1.1);
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 15px;
    z-index: 10;
}

.slider-dots .dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dots .dot.active {
    background: white;
    transform: scale(1.2);
}

.slider-dots .dot:hover {
    background: rgba(255,255,255,0.8);
    transform: scale(1.1);
}

/* Responsive Tasarım */
@media (max-width: 1200px) {
    .slider {
        height: 60vh;
        max-height: 500px;
    }
    
    .slide-content h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 992px) {
    .slider {
        height: 50vh;
        max-height: 450px;
    }
    
    .slide-content {
        padding: 30px;
    }
    
    .slide-content h2 {
        font-size: 2rem;
    }
    
    .slide-content p {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .slider {
        height: 45vh;
        max-height: 400px;
        min-height: 300px;
    }
    
    .slide-content {
        padding: 20px;
    }
    
    .slide-content h2 {
        font-size: 1.8rem;
    }
    
    .slide-content p {
        font-size: 1rem;
    }
    
    .slider-nav button {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .slider {
        height: 40vh;
        max-height: 350px;
        min-height: 250px;
    }
    
    .slide-content h2 {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }
    
    .slide-content p {
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    .slider-dots {
        bottom: 20px;
    }
    
    .slider-dots .dot {
        width: 12px;
        height: 12px;
    }
}

@media (max-width: 400px) {
    .slider {
        height: 35vh;
        min-height: 200px;
    }
    
    .slide-content h2 {
        font-size: 1.3rem;
    }
    
    .slide-content p {
        font-size: 0.85rem;
    }
}