﻿/* Genel Slider Görselleri İçin */

.cs_sliders {
    position: relative;
    width: 100%;
    min-height: 100vh; /* tam ekran yüksekliği */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #000; /* fallback rengi, isteğe bağlı */
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: 1;
}
.cs_slide img,
.slider-image {
    width: 100%;
    max-width: 1920px;
    object-fit: cover;
    display: block;
    padding:50px 1px;
    background-position: center center;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: high-quality;
    filter: brightness(1.05) contrast(1.05) saturate(1.1);
    transition: all 0.3s ease-in-out;
}

    /* Hover efekti */
    .cs_slide img:hover,
    .slider-image:hover {
        transform: scale(1.01);
        filter: brightness(1.08) contrast(1.05) saturate(1.1);
    }

/* Masaüstü slider */
@media (min-width: 1025px) {
    .desktop-slider {
        display: block;
    }

    .mobile-slider {
        display: none;
    }
}

/* Tabletler */
@media (max-width: 1024px) {
    .desktop-slider {
        display: none;
    }

    .mobile-slider {
        display: block;
    }

    .slider-image {
        max-width: 100%;
        height: auto;
    }
}

/* Mobil */
@media (max-width: 768px) {
    .desktop-slider {
        display: none;
    }

    .mobile-slider {
        display: block;
    }

        .mobile-slider .flickity-slider {
            display: flex;
            align-items: center;
            gap: 0;
        }

        .mobile-slider .js-slider {
            min-width: 100%;
            flex-shrink: 0;
        }

    .flickity-viewport {
        overflow: hidden !important;
    }
}

/* Küçük telefonlar */
@media (max-width: 600px) {
    .slider-image {
        filter: brightness(1) contrast(1);
    }

    .mobile-slider {
        padding: 10px;
    }
}

/* Flickity butonları */
.flickity-prev-next-button {
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
}

    .flickity-prev-next-button:hover {
        background-color: rgba(0, 0, 0, 0.8);
    }

/* .cs_hero arka planları data-src'den almak için */
.cs_hero[data-src] {
    background-image: url("assets/img/hero_bg_2.jpg"); /* js ile dinamik setlenmeli */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* İçerik hizalama */
.cs_hero_text {
    text-align: center;
    color: #fff;
    padding: 40px 20px;
    max-width: 900px;
    margin: 0 auto;
    z-index: 2;
    position: relative;
}

.cs_hero_title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
}

.cs_hero_subtitle {
    font-size: 18px;
    margin-bottom: 30px;
}

.cs_hero_btns {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.cs_hero_number {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
}

.cs_hero_number_icon {
    background-color: #ff2e2e;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .cs_hero_title {
        font-size: 28px;
    }

    .cs_hero_subtitle {
        font-size: 16px;
    }

    .cs_hero_text {
        padding: 20px;
    }

    .cs_hero_btns {
        flex-direction: column;
    }
}
