﻿/* ---------------------------- */
/* Hero Slider Temel Ayarlar */
/* ---------------------------- */
.hero-slider {
    width: 100%;
    position: relative;
    overflow: hidden;
    font-family: Arial, sans-serif;
    margin-top: 80px;
}

.hero-slider-wrapper {
    width: 100%;
    position: relative;
}

.hero-slider-inner {
    display: flex;
    transition: transform 0.7s ease-in-out;
    height: 80vh; /* desktop yüksekliği */
}

/* Her slide */
.hero-slide {
    flex: 0 0 100%;
    display: flex;
    width: 100%;
    height: 100%;
}

/* Desktop: Resim %60, Yazı %40 */
.hero-slide-img {
    flex: 0 0 60%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .hero-slide-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        max-width: none;
        max-height: none;
    }

.hero-slide-text {
    flex: 0 0 40%;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #f5f5f5;
    color: #333;
}

    .hero-slide-text h1 {
        font-size: 36px;
        margin-bottom: 60px;
    }

    .hero-slide-text p {
        font-size: 18px;
        margin-bottom: 60px;
    }

    .hero-slide-text .btn {
        padding: 12px 25px;
        background: #007bff;
        color: #fff;
        text-decoration: none;
        border-radius: 6px;
        width: fit-content;
        transition: background 0.3s ease;
    }

        .hero-slide-text .btn:hover {
            background: #0056b3;
        }

/* Slider Butonları */
.hero-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    font-size: 40px;
    width: 60px;
    height: 80px;
    cursor: pointer;
    z-index: 100;
    border-radius: 6px;
    transition: background 0.3s ease;
}

    .hero-slider-btn.prev {
        left: 10px;
    }

    .hero-slider-btn.next {
        right: 10px;
    }

    .hero-slider-btn:hover {
        background: rgba(0,0,0,0.8);
    }
/* Tablet / Mobil Responsive */
@media (max-width: 992px) {
    .hero-slider-inner {
        flex-direction: row; /* slider kaydırma mantığı için row */
        height: 100%; /* slider container yüksekliği tüm slide için */
    }

    .hero-slide {
        flex: 0 0 100%; /* her slide ekranın tamamı */
        flex-direction: column; /* resim üstte, yazı altta */
        min-height: auto; /* artık 80vh yerine otomatik yükseklik */
    }

    .hero-slide-img {
        flex: 0 0 auto;
        height: 40vh; /* mobilde slider yüksekliği %40 civarına düşürüldü */
        background: #f5f5f5; /* boş alan arka plan rengi */
        display: flex;
        justify-content: center;
        align-items: center;
        overflow: hidden;
    }

        .hero-slide-img img {
            width: 100%;
            height: auto;
            object-fit: cover; /* resim kırpılmadan gösterilsin */
        }

    .hero-slide-text {
        display: flex;
        flex-direction: column;
        justify-content: center; /* dikey ortala (isteğe bağlı) */
        align-items: center; /* yatay ortala tüm içerik */
        text-align: center;
    }

        .hero-slide-text h1 {
            font-size: 24px;
            margin-bottom: 15px; /* üst-alt boşluk */
        }

        .hero-slide-text p {
            font-size: 16px;
            margin-bottom: 15px;
        }

        .hero-slide-text .btn {
            padding: 10px 20px;
            font-size: 14px;
        }


    .hero-slider-btn {
        width: 40px;
        height: 60px;
        font-size: 28px;
    }
}

@media (max-width: 576px) {
    .hero-slide-img {
        height: 35vh; /* çok dar ekranda biraz daha düşürdük */
    }

    .hero-slide-text {
        padding: 10px 15px;
    }

        .hero-slide-text h1 {
            font-size: 18px;
            margin-bottom: 10px;
        }

        .hero-slide-text p {
            font-size: 14px;
            margin-bottom: 15px;
        }

        .hero-slide-text .btn {
            padding: 8px 16px;
            font-size: 12px;
        }
}



