/* ============================================
   HERO SLIDER (mevcut hero görünümünü genişletir)
   ============================================ */
.hero-slider-section {
    position: relative;
    background: #fff;
}

    /* Görsel kart gölgelerini ve gri panel arka planını kaldır */
    .hero-slider-section .hero-carousel-card,
    .hero-slider-section .hero-image-container:hover .hero-carousel-card {
        box-shadow: none;
    }

    .hero-slider-section .carousel-item::after {
        display: none;
    }

    /* Hero kartı rotateY ile sağa taşıyor; clipping olmasın */
    .hero-slider-section .carousel,
    .hero-slider-section .carousel-inner {
        overflow: visible;
    }

    .hero-slider-section .hero-mobile-link {
        display: contents;
    }

@media (max-width: 991.98px) {
    .hero-slider-section .hero-badge,
    .hero-slider-section .hero-text,
    .hero-slider-section .hero-content-wrapper .d-flex {
        display: none !important;
    }

    .hero-slider-section .hero-content-wrapper {
        text-align: center;
        margin-top: 0 !important;
        padding: 0 12px;
    }

    .hero-slider-section .hero-title {
        font-size: 1.5rem;
        line-height: 1.3;
        margin: 0 0 16px 0;
    }

    .hero-slider-section .hero-carousel-card {
        cursor: pointer;
    }

    .hero-slider-section .carousel-item .row {
        row-gap: 0;
    }

    .hero-slider-section .hero-image-container {
        margin-top: 0;
    }
}

@media (max-width: 480px) {
    .hero-slider-section .hero-title {
        font-size: 1.25rem;
        margin-bottom: 12px;
    }
}

/* Fade geçişi */
.hero-slider-section.carousel-fade .carousel-item,
.hero-slider-section .carousel-fade .carousel-item {
    transition: opacity .8s ease-in-out;
    transform: none !important;
}

    .hero-slider-section .carousel-fade .carousel-item.active,
    .hero-slider-section .carousel-fade .carousel-item-next.carousel-item-start,
    .hero-slider-section .carousel-fade .carousel-item-prev.carousel-item-end {
        opacity: 1;
    }

.hero-slider-section .carousel-fade .active.carousel-item-start,
.hero-slider-section .carousel-fade .active.carousel-item-end {
    opacity: 0;
}

/* Slide içeriklerinin yüksekliği eşit kalsın */
.hero-slider-section .carousel-item .row {
    min-height: 480px;
}

/* Kontrol barı */
.hero-slider-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

    .hero-slider-controls .hero-slider-btn {
        position: static;
        transform: none;
        width: 44px;
        height: 44px;
        border-radius: 50%;
        background: #fff;
        border: 1.5px solid var(--gsb-border);
        color: var(--gsb-dark);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        box-shadow: none;
        transition: .25s;
    }

        .hero-slider-controls .hero-slider-btn:hover {
            background: var(--gsb-red);
            color: #fff;
            border-color: var(--gsb-red);
        }

/* Indicator çizgileri - minimal */
.hero-slider-indicators {
    position: static;
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hero-slider-section .hero-slider-indicators button {
    width: 30px;
    height: 3px;
    border-radius: 2px;
    background: #9ca3af;
    border: none;
    opacity: 1;
    transition: .25s;
    text-indent: 0;
    margin: 0;
}

    .hero-slider-section .hero-slider-indicators button:hover {
        background: #6b7280;
    }

    .hero-slider-section .hero-slider-indicators button.active {
        background: var(--gsb-red);
    }

@media (max-width: 991px) {
    .hero-slider-section .carousel-item .row {
        min-height: auto;
    }

    .hero-slider-controls {
        margin-top: 18px;
    }
}



/* GM Hero Slider - sabit yükseklik */
.hero-slider-fixed {
    height: 670px !important;
    min-height: 670px !important;
    max-height: 670px !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
}

    .hero-slider-fixed > .container {
        height: 100% !important;
    }

    .hero-slider-fixed .carousel {
        height: 100% !important;
    }

    .hero-slider-fixed .carousel-inner {
        height: 100% !important;
        min-height: 100% !important;
        overflow: hidden !important;
    }

    .hero-slider-fixed .carousel-item {
        height: 100% !important;
        min-height: 100% !important;
    }

        .hero-slider-fixed .carousel-item.active,
        .hero-slider-fixed .carousel-item-next,
        .hero-slider-fixed .carousel-item-prev {
            display: block !important;
        }

        .hero-slider-fixed .carousel-item > .row,
        .hero-slider-fixed .carousel-item .row {
            height: 100% !important;
            min-height: 100% !important;
            align-items: center !important;
        }

    .hero-slider-fixed .hero-content-wrapper {
        max-height: 500px !important;
        overflow: hidden !important;
    }

    .hero-slider-fixed .hero-image-col {
        height: 500px !important;
        min-height: 500px !important;
        max-height: 500px !important;
        /* Kenarlarda olusan kirpilmayi onlemek icin gorsel alani hafif kucultulur */
        transform: scale(0.98);
    }

    .hero-slider-fixed .hero-image-container {
        width: 100% !important;
        height: 100% !important;
    }

    /* Görsel kart - oval köşe burada sabitleniyor */
    .hero-slider-fixed .hero-carousel-card {
        width: 100% !important;
        height: 500px !important;
        min-height: 500px !important;
        max-height: 500px !important;
        overflow: hidden !important;
        position: relative !important;
        border-radius: 28px !important;
        /*background: #f3f4f6 !important;*/
        box-shadow: none !important;
        isolation: isolate !important;
        /* ::before katmani filter+transform tasidigi icin bazi tarayicilarda
           overflow:hidden + border-radius kirpimi kacirilabiliyor, koseler
           kare gorunuyordu. clip-path bunu kesin olarak kirpar. */
        clip-path: inset(0 round 28px);
    }

        /* Resim - kutu içinde ortalı, oranı bozmadan göster */
        .hero-slider-fixed .hero-carousel-card img, .hero-slider-fixed .hero-carousel-img {
            position: absolute !important;
            inset: 0 !important;
            width: 100% !important;
            height: 100% !important;
            max-width: none !important;
            max-height: none !important;
            display: block !important;
            object-fit: contain !important;
            object-position: 50% 50% !important;
            border-radius: inherit !important;
        }

        /* Contain kullanildiginda bos alanlar kotu gorunmesin:
           ayni gorsel arkada cover + blur olarak durur, boylece kart tamamen
           dolar ama on plandaki resim kirpilmadan (contain) gorunur.
           Gorsel URL'i karta inline --hero-bg degiskeniyle gelir. */
        .hero-slider-fixed .hero-carousel-card::before {
            content: "";
            position: absolute;
            inset: 0;
            z-index: 0;
            border-radius: inherit;
            background-color: #f3f4f6;
            /* Gorsel karta inline background-image olarak veriliyor (Razor: heroBg);
               burada devralinir. var() kullanilmiyor cunku custom property icindeki
               goreli URL, HTML'e degil CSS dosyasinin konumuna gore cozuluyor. */
            background-image: inherit;
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
            filter: blur(24px) saturate(1.15);
            /* blur kenarda seffaf halka birakir, hafif buyuterek gizlenir */
            transform: scale(1.12);
        }

        .hero-slider-fixed .hero-carousel-card img,
        .hero-slider-fixed .hero-carousel-img {
            z-index: 1;
        }

    /* Metin çok uzun gelirse sliderı büyütmesin */
    .hero-slider-fixed .hero-title {
        display: -webkit-box !important;
        -webkit-line-clamp: 4;
        -webkit-box-orient: vertical;
        overflow: hidden !important;
        /* Turkce alt uzantilar (g, y, s, c) son satirda kesilmesin.
           overflow:hidden padding kenarindan kirptigi icin bu bosluk ise yarar. */
        padding-bottom: 0.12em;
    }

    .hero-slider-fixed .hero-text {
        display: -webkit-box !important;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden !important;
    }

    /* Hero slider kontrollerini resimden ayır */
    .hero-slider-fixed .hero-slider-controls {
        position: relative !important;
        left: auto !important;
        bottom: auto !important;
        transform: none !important;
        z-index: 5 !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 14px !important;
        margin-top: 26px !important;
        padding-bottom: 4px !important;
    }

    /* Ok butonları sabit ve düzgün dursun */
    .hero-slider-fixed .hero-slider-btn {
        width: 42px !important;
        height: 42px !important;
        min-width: 42px !important;
        border-radius: 50% !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* Indicator alanı da butonlarla ortalansın */
    .hero-slider-fixed .hero-slider-indicators {
        position: static !important;
        margin: 0 !important;
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
    }

/* Tablet */
@media (max-width: 991.98px) {
    .hero-slider-fixed {
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
        padding-top: 120px;
        padding-bottom: 70px;
    }

        .hero-slider-fixed .carousel,
        .hero-slider-fixed .carousel-inner,
        .hero-slider-fixed .carousel-item {
            height: auto !important;
            min-height: auto !important;
        }

            .hero-slider-fixed .carousel-item > .row,
            .hero-slider-fixed .carousel-item .row {
                height: auto !important;
                min-height: auto !important;
            }

        .hero-slider-fixed .hero-image-col {
            height: 360px !important;
            min-height: 360px !important;
            max-height: 360px !important;
        }

        .hero-slider-fixed .hero-carousel-card {
            height: 360px !important;
            min-height: 360px !important;
            max-height: 360px !important;
            border-radius: 22px !important;
        }

        .hero-slider-fixed .hero-slider-controls {
            margin-top: 20px !important;
        }
}

/* Mobil */
@media (max-width: 575.98px) {
    .hero-slider-fixed {
        padding-top: 105px;
        padding-bottom: 50px;
    }

        .hero-slider-fixed .hero-image-col {
            height: 240px !important;
            min-height: 240px !important;
            max-height: 240px !important;
        }

        .hero-slider-fixed .hero-carousel-card {
            height: 240px !important;
            min-height: 240px !important;
            max-height: 240px !important;
            border-radius: 18px !important;
        }

        .hero-slider-fixed .hero-title {
            -webkit-line-clamp: 2;
        }

        .hero-slider-fixed .hero-text {
            -webkit-line-clamp: 2;
        }

        .hero-slider-fixed .hero-slider-controls {
            margin-top: 18px !important;
            gap: 10px !important;
        }

        .hero-slider-fixed .hero-slider-btn {
            width: 38px !important;
            height: 38px !important;
            min-width: 38px !important;
        }
}

/* --------------------------------------------------------------------------
   Mobil / tablet duzeni: gorsel ustte, baslik altta, bosluklar sikilastirildi.
   Header icin bosluk body'de (padding-top) zaten var; hero'nun kendi 105-120px
   ust boslugu bunun ustune ekleniyor, basligin ustunde bos alan kaliyordu.
   Yukaridaki kurallar !important kullandigi icin burada da gerekiyor.
   -------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
    .hero-slider-fixed {
        padding-top: 20px;
        padding-bottom: 24px;
    }

        /* HTML'de metin once geliyor; mobilde gorsel uste alinir */
        .hero-slider-fixed .hero-image-col {
            order: -1;
            height: auto !important;
            min-height: 0 !important;
            max-height: none !important;
            margin-bottom: 14px !important;
            transform: none;
        }

        /* Kart gorselle ayni oranda (16:9): ustte/altta bulanik serit kalmaz */
        .hero-slider-fixed .hero-carousel-card {
            height: auto !important;
            min-height: 0 !important;
            max-height: none !important;
            aspect-ratio: 16 / 9;
        }

        /* Aciklamasi olan ve olmayan slaytlar arasinda kayma olmasin: metin
           alani hep en uzun hal kadar (baslik + aciklama, satir sinirlariyla)
           yer kaplar. Aciklamasi olmayan slaytta alan bos kalir; gorsel,
           kontroller ve alttaki sayfa ziplamaz.
           Not: yukaridaki "display:none" aciklamayi mobilde gizlemek icin
           yazilmisti ama ".hero-slider-fixed .hero-text" kurali onu eziyor;
           aciklama mobilde gorunuyor, burada buna gore yer ayrildi. */
        .hero-slider-fixed {
            --hv1m-baslik-fs: 1.5rem;
            --hv1m-baslik-lh: 1.3;
            --hv1m-baslik-satir: 2;
            --hv1m-metin-fs: 1rem;
            --hv1m-metin-lh: 1.55;
            --hv1m-metin-satir: 2;
        }

            .hero-slider-fixed .hero-content-wrapper {
                min-height: calc((var(--hv1m-baslik-satir) * var(--hv1m-baslik-lh) + .12) * var(--hv1m-baslik-fs) + 8px + var(--hv1m-metin-satir) * var(--hv1m-metin-lh) * var(--hv1m-metin-fs));
            }

            .hero-slider-fixed .hero-title {
                font-size: var(--hv1m-baslik-fs);
                line-height: var(--hv1m-baslik-lh);
                -webkit-line-clamp: var(--hv1m-baslik-satir);
                margin-bottom: 0;
            }

            .hero-slider-fixed .hero-text {
                font-size: var(--hv1m-metin-fs);
                line-height: var(--hv1m-metin-lh);
                -webkit-line-clamp: var(--hv1m-metin-satir);
                margin: 8px auto 0;
            }

        .hero-slider-fixed .hero-slider-controls {
            margin-top: 14px !important;
            padding-bottom: 0 !important;
        }
}

/* Telefonda yazilar bir kademe kucuk */
@media (max-width: 575.98px) {
    .hero-slider-fixed {
        --hv1m-baslik-fs: 1.25rem;
        --hv1m-metin-fs: .95rem;
    }
}

/* --------------------------------------------------------------------------
   Masaustu: aciklamasi olan ve olmayan slaytlar arasinda kayma olmasin.
   Metin blogu gorselin yaninda dikey ortalandigi icin blok boyu slayttan
   slayda degisince baslik/buton yukari asagi ziplıyordu. Blok en uzun
   hale (4 satir baslik + 3 satir aciklama + buton) gore sabit yukseklik alir
   ve icerik uste dayanir: baslik hep ayni yerden baslar. Buton metnin hemen
   altinda durur; aciklama yoksa basligin altina gelir, bos alan blogun
   altinda kalir.
   Baslik boyutu burada acikca veriliyor; onceden hero-news.css'teki genel
   .hero-title kuralindan (V2 hero) geliyordu.
   -------------------------------------------------------------------------- */
@media (min-width: 992px) {
    .hero-slider-fixed {
        --hv1-baslik-fs: clamp(1.7rem, 3vw, 2.6rem);
        --hv1-baslik-lh: 1.25;
        --hv1-metin-fs: 1.15rem;
        --hv1-metin-lh: 1.7;
        --hv1-buton-h: 46px;
    }

        .hero-slider-fixed .hero-title {
            font-size: var(--hv1-baslik-fs);
            line-height: var(--hv1-baslik-lh);
            margin-bottom: 14px;
        }

        .hero-slider-fixed .hero-text {
            font-size: var(--hv1-metin-fs);
            line-height: var(--hv1-metin-lh);
        }

        /* 4 satir baslik (+ alt uzanti payi) + 3 satir aciklama + buton */
        .hero-slider-fixed .hero-content-wrapper {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            min-height: calc((4 * var(--hv1-baslik-lh) + .12) * var(--hv1-baslik-fs) + 14px + 3 * var(--hv1-metin-lh) * var(--hv1-metin-fs) + 35px + 8px + var(--hv1-buton-h));
        }

            .hero-slider-fixed .hero-content-wrapper > .d-flex {
                margin-top: 8px;
            }
}
