/*--------------------------------------------------------------
# denta-2 Hero (Swiper) — yumuşak çapraz geçişli slider
--------------------------------------------------------------*/

#k3hero {
    position: relative;
    width: 100%;
    height: 100vh;
    margin-top: -40px;            /* eski hero ile aynı üst bindirme (header overlay) */
    overflow: hidden;
    background-color: #0b0f17;
    box-shadow: rgba(0, 0, 0, 0.45) 0 25px 20px -20px;
    isolation: isolate;
}

#k3hero .k3hero-swiper,
#k3hero .swiper-wrapper,
#k3hero .swiper-slide {
    height: 100%;
}

#k3hero .swiper-slide {
    position: relative;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
}

/* Sol ağırlıklı koyu degrade (yazı okunurluğu) */
#k3hero .swiper-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, rgba(7, 13, 27, 0.78) 0%, rgba(7, 13, 27, 0.52) 40%, rgba(7, 13, 27, 0.18) 100%);
}

#k3hero .k3hero-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 clamp(24px, 4vw, 72px);
}

#k3hero .k3hero-content {
    width: 100%;
}

/* Tipografi */
#k3hero .k3hero-title {
    color: #fff;
    font-family: var(--heading-font-family, "Outfit", "Segoe UI", sans-serif);
    font-weight: 700;
    font-size: clamp(2.4rem, 4.6vw, 4.6rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin: 0 0 1.1rem;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.34);
}

#k3hero .k3hero-sub {
    color: rgba(255, 255, 255, 0.94);
    font-size: clamp(1rem, 1.2vw, 1.12rem);
    line-height: 1.7;
    margin: 0 0 1.8rem;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.28);
}

#k3hero .k3hero-btn {
    display: inline-block;
    padding: 13px 32px;
    border-radius: 50px;
    border: 2px solid var(--color-primary, #eb1f41);
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    line-height: 1;
    transition: background-color 0.35s ease, color 0.35s ease;
}

#k3hero .k3hero-btn:hover {
    background: var(--color-primary, #eb1f41);
    color: #fff;
}

/*--------------------------------------------------------------
# Konumlandırma — yalnızca tablet ve üzeri slayt ayarına uyar
--------------------------------------------------------------*/
@media (min-width: 768px) {
    #k3hero .k3hero-content {
        max-width: 70%;
    }

    #k3hero .k3hero-pos-left .k3hero-content {
        margin-left: 0;
        margin-right: auto;
    }

    #k3hero .k3hero-pos-right .k3hero-content {
        margin-left: auto;
        margin-right: 0;
    }

    #k3hero .k3hero-pos-center .k3hero-content {
        margin-left: auto;
        margin-right: auto;
    }
}

/* Masaüstü: metin alanı sliderın ~%50'sini kaplasın */
@media (min-width: 992px) {
    #k3hero .k3hero-content {
        max-width: 50%;
    }
}

/*--------------------------------------------------------------
# Küçük ekranlar (telefon): slayt ayarından BAĞIMSIZ her zaman
# ortalı, yarım ekran yükseklik ve küçük başlık
--------------------------------------------------------------*/
@media (max-width: 767.98px) {
    #k3hero {
        height: 50vh;
    }

    #k3hero .k3hero-content,
    #k3hero .k3hero-pos-left .k3hero-content,
    #k3hero .k3hero-pos-right .k3hero-content,
    #k3hero .k3hero-pos-center .k3hero-content {
        width: 100%;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
        text-align: center !important;   /* slayttaki inline text-align'i ez */
    }

    #k3hero .k3hero-title {
        font-size: clamp(1.5rem, 6.5vw, 2.1rem);
        margin-bottom: 0.7rem;
    }

    #k3hero .k3hero-sub {
        font-size: 0.95rem;
        margin-bottom: 1.1rem;
    }

    /* Metin-odaklı slaytta (kendi görseli yok) alt başlık mobilde gizli */
    #k3hero .k3hero-textonly .k3hero-sub {
        display: none;
    }

    /* Mobilde daha dengeli (üst-alt) degrade */
    #k3hero .swiper-slide::before {
        background: linear-gradient(180deg, rgba(7, 13, 27, 0.55) 0%, rgba(7, 13, 27, 0.32) 50%, rgba(7, 13, 27, 0.58) 100%);
    }
}

/*--------------------------------------------------------------
# Navigasyon okları
--------------------------------------------------------------*/
#k3hero .swiper-button-prev,
#k3hero .swiper-button-next {
    z-index: 5;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    transition: background-color 0.3s ease;
}

#k3hero .swiper-button-prev:hover,
#k3hero .swiper-button-next:hover {
    background: rgba(255, 255, 255, 0.32);
}

#k3hero .swiper-button-prev::after,
#k3hero .swiper-button-next::after {
    font-size: 20px;
    font-weight: 700;
}

/*--------------------------------------------------------------
# Sayfalama (noktalar)
--------------------------------------------------------------*/
#k3hero .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
    transition: background-color 0.3s ease, width 0.3s ease;
}

#k3hero .swiper-pagination-bullet-active {
    background: #fff;
    width: 26px;
    border-radius: 6px;
}

@media (max-width: 767.98px) {
    #k3hero .swiper-button-prev,
    #k3hero .swiper-button-next {
        width: 40px;
        height: 40px;
    }

    #k3hero .swiper-button-prev::after,
    #k3hero .swiper-button-next::after {
        font-size: 16px;
    }
}

/*--------------------------------------------------------------
# Aktif slayt içerik giriş animasyonu (yumuşaklığı pekiştirir)
--------------------------------------------------------------*/
#k3hero .swiper-slide .k3hero-title,
#k3hero .swiper-slide .k3hero-sub,
#k3hero .swiper-slide .k3hero-btn {
    opacity: 0;
    transform: translateY(22px);
}

#k3hero .swiper-slide-active .k3hero-title,
#k3hero .swiper-slide-active .k3hero-sub,
#k3hero .swiper-slide-active .k3hero-btn {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

#k3hero .swiper-slide-active .k3hero-sub {
    transition-delay: 0.15s;
}

#k3hero .swiper-slide-active .k3hero-btn {
    transition-delay: 0.3s;
}

/* Hareket azaltma tercihi */
@media (prefers-reduced-motion: reduce) {
    #k3hero .swiper-slide .k3hero-title,
    #k3hero .swiper-slide .k3hero-sub,
    #k3hero .swiper-slide .k3hero-btn {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
