﻿.index-duyuru {
    overflow: hidden;
}

/* Resimleri hizalamak için ortak ayar */
.slider-img {
    width: 100%;
    aspect-ratio: 16 / 9; /* ekran genişliğine göre orantılı yükseklik */
    object-fit: cover; /* resmi orantılı kırparak doldurur */
    border-radius: 6px; /* köşeler hafif yuvarlak (opsiyonel) */
    display: block;
}

.surgu-wrapper {
    overflow: hidden; /* sadece 4 kutu görünür */
    width: 100%;
}

.slider-img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 6px;
}

/* Sabit gri placeholder; animasyonlu GIF yok — spinner .lazy-ph ::after */
img.lazy {
    background-color: #e9ecef;
    transition: opacity 0.35s ease;
    opacity: 0.85;
}

    img.lazy.loaded {
        background-color: transparent;
        opacity: 1;
    }

    /* 1x1 placeholder boyut çökmesin (CLS) */
    img.card-img-top.lazy:not(.loaded),
    img.img-thumbnail.lazy:not(.loaded):not(.etkinlik-img) {
        width: 100%;
        aspect-ratio: 4 / 3;
        object-fit: cover;
    }

    /* Etkinlik: mevcut clamp genişliği korunmalı — width:100% flex içinde sıfırlar */
    img.etkinlik-img.lazy:not(.loaded) {
        width: clamp(15rem, 20rem, 25rem);
        aspect-ratio: 4 / 3;
        object-fit: cover;
        min-height: 11rem;
        background-color: #e9ecef;
    }

.lazy-ph {
    position: relative;
    display: block;
}

    /*
     * Kurumsal spinner: çift halka
     * Haber kartlarında .menu-link > a:after alt çizgisi ::after'ı eziyordu —
     * bu yüzden .menu-link > a.lazy-ph ile daha yüksek özgüllük + alt çizgiyi sıfırla.
     */
    .lazy-ph::before,
    .menu-link > a.lazy-ph::before {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        width: 2rem;
        height: 2rem;
        margin: -1rem 0 0 -1rem;
        border: 2px solid rgba(147, 22, 3, 0.18);
        border-radius: 50%;
        border-bottom-color: rgba(147, 22, 3, 0.18);
        box-sizing: border-box;
        pointer-events: none;
        z-index: 2;
        display: block;
        padding-top: 0;
        transition: none;
    }

    .lazy-ph::after,
    .menu-link > a.lazy-ph::after,
    .menu-link > a.lazy-ph:hover::after {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        width: 2rem;
        height: 2rem;
        margin: -1rem 0 0 -1rem;
        border: 2px solid transparent;
        border-top-color: #931603;
        border-right-color: #931603;
        border-bottom-color: transparent;
        border-radius: 50%;
        box-sizing: border-box;
        animation: lazy-ph-spin 0.85s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
        pointer-events: none;
        z-index: 3;
        display: block;
        padding-top: 0;
        transition: none;
    }

    .lazy-ph:has(> img.loaded)::before,
    .lazy-ph:has(> img.loaded)::after,
    .lazy-ph.is-loaded::before,
    .lazy-ph.is-loaded::after,
    .menu-link > a.lazy-ph:has(> img.loaded)::before,
    .menu-link > a.lazy-ph:has(> img.loaded)::after,
    .menu-link > a.lazy-ph.is-loaded::before,
    .menu-link > a.lazy-ph.is-loaded::after,
    .menu-link > a.lazy-ph.is-loaded:hover::after {
        display: none;
        width: 0;
        border: none;
        animation: none;
    }

@keyframes lazy-ph-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .lazy-ph::after,
    .menu-link > a.lazy-ph::after,
    .menu-link > a.lazy-ph:hover::after {
        animation: none;
        border-color: rgba(147, 22, 3, 0.35);
        opacity: 0.7;
    }
}

.surgu-container {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.surgu-track {
    display: flex;
    align-items: flex-start;
    transition: transform 0.75s ease;
    will-change: transform;
}

.slider-item {
    flex: 0 0 auto;
    box-sizing: border-box;
    padding: 5px;
    display: flex;
}

    .slider-item > a {
        text-decoration: none;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
    }

    /*
     * Görünür adet (data-visible: 3, 4, …) kadar kolon; genişlik JS ile ayarlanır.
     * Genişlik %100, yükseklik otomatik → en-boy oranı korunur, kırpma yok.
     */
    .slider-item img {
        width: 100%;
        height: auto;
        display: block;
        border-radius: 6px;
        object-fit: contain;
        object-position: center center;
        background: transparent;
    }

    .slider-item a {
        text-decoration: none;
    }


/* Modül slider: haber alanı dışındaki hover zoom yok */
.modul-slider img,
.modul-slider img:hover,
.modul-slider a:hover img,
.slider-item img,
.slider-item img:hover,
.slider-item a:hover img {
    transform: none !important;
}

.modul-slider {
    position: relative;
    width: 100%;
    line-height: 0; /* img altındaki satır boşluğunu kaldır */
    overflow: hidden;
}

    .modul-slider a {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        opacity: 0;
        transition: opacity 0.5s ease;
        z-index: 1;
        border-radius: 6px;
        display: block;
        margin: 0;
        padding: 0;
        background: transparent;
        line-height: 0;
    }

        .modul-slider a.active {
            opacity: 1;
            z-index: 2;
            position: relative; /* aktif olan yükseklik versin */
        }

    .modul-slider img {
        width: auto;
        height: auto;
        max-width: 100%;
        /* Yanındaki çoklu slider görsel yüksekliğini aşmasın (JS --modul-tekli-max-h) */
        max-height: var(--modul-tekli-max-h, none);
        display: block;
        vertical-align: top;
        object-fit: contain;
        object-position: center center;
        border-radius: 6px;
        background: transparent;
        margin: 0 auto;
        padding: 0;
    }

/* Modül grubunda çoklu + tekli yan yana üstten hizalı */
.modul-grup .row {
    align-items: flex-start;
}

.modul-grup .surgu-container,
.modul-grup .slider-container {
    width: 100%;
}

/* Tekli slider: resim altında boşluk bırakma */
.modul-grup .slider-container {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    align-items: flex-start !important;
}

.modul-grup .modul-slider {
    margin-bottom: 0;
    padding-bottom: 0;
}


/* Mobil */
@media (max-width: 768px) {
    .slider-item {
        flex: 0 0 100% !important;
    }
    
}







/* Küçük ekranlarda farklı oran kullanmak istersen */
@media (max-width: 767.98px) {
    .slider-img {
        aspect-ratio: 4 / 3; /* mobilde biraz daha dikdörtgen olabilir */
    }
}

/* Kaydırma okları: resmi kaplayan katmanda yanlarda dikey ortalı (transform kullanma) */
.controls {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: none;
    z-index: 3;
    transform: none;
}

    .controls button {
        background-color: rgba(0, 0, 0, 0.5);
        color: #fff;
        border: none;
        width: 61px;
        height: 61px;
        border-radius: 50%;
        cursor: pointer;
        opacity: 0;
        transition: opacity 0.3s;
        pointer-events: auto;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 18px;
    }

        .controls button:hover {
            background-color: rgba(0, 0, 0, 0.7);
        }

.surgu-dis-kutu {
    /*width: 1614px;*/
    transition-duration: 10ms;
    transform: translate3d(0px, 0px, 0px);
    /* transition-delay: 0ms; */
    /*  transition-timing-function: ease-out; */
}



.surgu-eleman {
    /*   min-height: clamp(25vh,28vh,32vh);*/
    font-weight: bold;
    /* background: rgba(5,5,5,0.8); */
    color: white;
    min-width: 21rem;
    user-select: none;
    -ms-user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    /* width: clamp(13rem,15rem 17rem); */
}

    .surgu-eleman > div {
        /*   height: clamp(30vh,35vh,38vh); */
        font-weight: bold;
        height: auto;
        /* background: rgba(5,5,5,0.8); */
        /* color: white;
        min-width: 20vw;
        user-select: none;
        -ms-user-select: none;
        -moz-user-select: none;
        -webkit-user-select: none; */
        /*width: clamp(20rem,25rem 28rem);*/
        /*    height: clamp(28rem,24vw,34rem);*/
        /*min-height: 24rem;*/
    }

        .surgu-eleman > div > div {
            max-width: 19rem;
        }


            .surgu-eleman > div > div > a {
                overflow: hidden;
                display: block;
                position: relative;
                min-height: 11rem;
            }

            .surgu-eleman > div > div > a.lazy-ph:not(.is-loaded)::before,
            .surgu-eleman > div > div > a.lazy-ph:not(.is-loaded)::after {
                /* overflow:hidden altında ortada kalsın */
                z-index: 5;
            }

            .surgu-eleman > div > div > a > img,
            .surgu-eleman > div > div > a > img.etkinlik-img {
                /*  min-height: 15rem;
                min-width: 10rem; */
                user-select: none;
                -ms-user-select: none;
                -moz-user-select: none;
                -webkit-user-select: none;
                width: clamp(15rem,20rem,25rem);
                object-fit: cover;
                transition: opacity 0.4s ease;
            }

.surgu-eleman-tarih {
    font-weight: bold;
    font-family: 'Montserrat-Bold';
}

.etkinlik-grup {
    /* transition: left 1s;  */
}

.etkinlik-tarih {
    font-size: clamp(1rem,1rem,3rem);
    font-weight: bold;
}

.etkinlik-tarih-ay {
    font-size: clamp(0.3rem,0.5rem,1rem);
}

.kayan-kutu {
    overflow: hidden;
    transition: margin-left 0.5s ease-out;
    /*width:100%;*/
}

.etkinlik-link {
    color: var(--tema-yazi-rengi);
}

    .etkinlik-link:hover {
        text-decoration: none;
        color: var(--tema-koyu-renk-tonu);
    }


.img-dikey {
    width: clamp(5rem,25vw,28rem);
    height: auto;
    /* height: 100px; */
    margin-right: 10px;
    cursor: pointer;
    opacity: 1 !important;
    position: relative !important;
    top: 0;
    left: 0;
    z-index: 1;
    transition: opacity 0.6s ease-out;
}

.surgu-container {
    /*  width: clamp(15rem,65vw,100%);*/
    overflow: hidden;
    position: relative;
    /* margin-bottom: 20px;*/
    height: auto;
    position: relative;
    max-width: 75vw;
}

.surgu {
    display: flex;
    transition: transform 0.75s ease;
    padding-bottom: 2rem;
    /*  animation: scroll 15s linear infinite; */
    /*  max-height:25vh;*/
}


    .surgu img {
        /* width: 100%; */
        /*  max-width: 20rem;*/
        height: auto;
        flex-shrink: 0;
        position: relative;
    }


.slider-container:hover .controls button,
.surgu-dis-kutu:hover .controls button,
.surgu-container:hover .controls button {
    opacity: 0.85;
    color: #fff;
}

.resim-alti-yazi {
    width: 100%;
    max-width: 100%;
    /*  margin-right:0.5rem;
    margin-left:0.5rem;*/
    position: relative;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px;
    color: #fff;
    font-size: 18px;
    text-align: center;
    margin-top: -7rem;
    height: 7rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.3));
    z-index: 1;
    bottom: 0;
    font-size: small;
    border-radius: 0 0 5px 5px;
}

.surgu a {
    text-decoration: none;
}

.slider img {
    /*     width: clamp(20rem,27vw,100%);*/
    width: 100%;
    max-width: 26rem;
    height: auto;
    margin-right: 0px;
    cursor: pointer;
    opacity: 1;
    position: absolute;
    /*   top: 0.5rem;*/
    /* left: 0;*/
    z-index: 1;
    transition: opacity 0.6s ease-out;
    margin: 0 auto;
}

.modul-slider.slider img {
    /*  width: clamp(20rem,26vw,35rem);*/
    /* height: 100px; */
    margin-right: 0px;
    cursor: pointer;
    opacity: 1;
    position: absolute;
    top: 0rem;
    /*  left: 0;*/
    z-index: 1;
    transition: opacity 0.6s ease-out;
    /*    max-width: 100%;*/
    margin: 0 auto;
    border-radius: 5px;
    /*display: flex;
    align-items: center;*/ /* Y ekseninde ortalar */
}

.modul-slider img.active {
    position: relative;
    opacity: 1;
}

.slider img.active {
    opacity: 1;
    /*position: relative;*/
}


.slider-container {
    margin-bottom: 0;
    height: auto;
    overflow: hidden;
    position: relative;
}

.surgu-dis-kutu {
    /*width: clamp(15rem,100vw,100%);*/
    height: auto;
    overflow: hidden;
    position: relative;
}

.slider {
    position: relative;
    transition: height 0.3s ease;
}

.slider > a {
    align-self: center;
}


.container-surgu {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(460px, 1fr));
    gap: 1rem;
}

/* Altına gölge */
.slider-eleman-div::after {
    content: "";
    position: absolute;
    /* bottom: -0.85rem;  resmin biraz altında */
    left: 50%;
    transform: translateX(-50%);
    width: 75%; /* gölge genişliği resmin %60’ı */
    height: 1rem; /* gölgenin kalınlığı */
    background: rgba(0, 0, 0, 0.4);
    border-radius: 50%; /* oval görünüm */
    filter: blur(6px); /* yumuşaklık */
    z-index: -1; /* gölge arkada kalsın */
}

.slider-eleman-div {
    flex: 1 1 30%;
    max-width: 26rem;
    margin-left: 0.75rem;
    margin-right: 0.75rem;
    position: relative;
    /*  min-width: 26rem;*/
}

    .slider-eleman-div img {
        width: 18vw;
        max-width: 26rem;
        border-radius: 5px;
    }

@media screen and (max-width:750px) {

    .slider-eleman-div {
        flex: 1 1 100%;
        min-width: 100%;
    }

    .surgu-container {
        width: clamp(100%,100%,100%);
        max-width: 100vw;
    }

    .resim-alti-yazi {
        width: clamp(5rem,85%,100%);
    }

    .img-dikey {
        width: clamp(5rem,100vw,100vw);
    }

    .surgu-eleman {
        min-width: 96vw;
    }

    .slider img {
        width: clamp(90vw,20vw,100vw);
    }

    .controls button {
        background-color: rgba(0, 0, 0, 0.7);
        opacity: 1;
    }

    .slider-eleman-div img {
        width: clamp(85%,85%,95%);
    }
}

@media screen and (max-width:460px) {


    .slider-eleman-div {
        flex: 1 1 100%;
        min-width: 100%;
    }

    .surgu-container {
        width: clamp(100%,100%,100%);
        max-width: 100vw;
    }

    .resim-alti-yazi {
        width: clamp(5rem,100vw,100%);
    }

    .img-dikey {
        width: clamp(5rem,100vw,100vw);
    }

    .surgu-eleman {
        min-width: 96vw;
    }

    .slider img {
        width: clamp(90vw,20vw,100vw);
    }

    .controls button {
        background-color: rgba(0, 0, 0, 0.7);
        opacity: 1;
    }

    .slider-eleman-div img {
        width: clamp(100%,100%,100%);
    }
}

@media screen and (max-width:360px) {

    .slider-eleman-div {
        min-width: 250px;
        background: #cceeff;
        padding: 1rem;
        text-align: center;
    }

    .surgu-container {
        width: clamp(15rem,100vw,100%);
    }

    .surgu-eleman {
        min-width: 96vw;
    }
    /*    .controls button {
        background-color: rgba(0, 0, 0, 0.7);
        opacity: 1;
    }*/

}
