/* ==========================================================================
   Ana sayfa kapak slider'ı
   ========================================================================== */

#header-home.hero-slider {
    display: block;
    position: relative;
    overflow: hidden;
    background: #0c2830;
}

/* Şablonun hero karartması yazıların da üstüne çiziliyordu; kapatıp her slaydın içine taşıdık */
#header-home.hero-slider:before {
    display: none !important;
}

.hero-swiper {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Karartma: görselin üstünde, yazının altında */
.hero-media:after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(to bottom, rgba(0, 0, 0, .4) 0%, rgba(0, 0, 0, 0) 22%),
        radial-gradient(ellipse 70% 55% at 50% 62%, rgba(7, 26, 32, .45) 0%, rgba(7, 26, 32, 0) 70%),
        linear-gradient(to top, rgba(7, 26, 32, .6) 0%, rgba(7, 26, 32, 0) 45%);
}

/* Slayt konumlarını fade efekti için Swiper yönetir; yalnızca yükseklik veriyoruz */
.hero-swiper .swiper-wrapper,
.hero-swiper .swiper-slide {
    height: 100%;
}

.hero-swiper .swiper-slide {
    position: relative;
    overflow: hidden;
}

.hero-media,
.hero-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-media img {
    object-fit: cover;
    transform: scale(1.001);
    transition: transform 8s linear;
}

/* Aktif slaytta yavaş yakınlaşma */
.hero-swiper .swiper-slide-active .hero-media img {
    transform: scale(1.08);
}

/* Başlık */
.hero-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 22%;
    z-index: 3;
    padding: 0 8vw;
    color: #fff;
    text-align: center;
}

.hero-caption.mobile-only {
    display: none;
}

.hero-pre,
.hero-title,
.hero-btn {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .9s ease, transform .9s ease;
}

.swiper-slide-active .hero-pre { transition-delay: .3s; }
.swiper-slide-active .hero-title { transition-delay: .5s; }
.swiper-slide-active .hero-btn { transition-delay: .75s; }

.swiper-slide-active .hero-pre,
.swiper-slide-active .hero-title,
.swiper-slide-active .hero-btn {
    opacity: 1;
    transform: none;
}

.hero-pre {
    font-family: indivisible, Montserrat, Arial, sans-serif;
    font-size: 13px;
    letter-spacing: .3rem;
    text-transform: uppercase;
    margin: 0 0 16px;
    color: #f3e2c6;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .55), 0 2px 14px rgba(0, 0, 0, .45);
}

.hero-title {
    font-family: mixta-pro, serif;
    font-weight: 400;
    font-size: clamp(2.6rem, 5vw, 5rem);
    line-height: 1.05;
    margin: 0 0 30px;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, .35), 0 6px 34px rgba(0, 0, 0, .5);
}

.hero-title em {
    font-style: italic;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 28px;
    border: 1px solid rgba(255, 255, 255, .85);
    border-radius: 3px;
    color: #fff !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .4);
    font-family: indivisible, Montserrat, Arial, sans-serif;
    font-size: 12px;
    letter-spacing: .2rem;
    text-transform: uppercase;
    backdrop-filter: blur(6px);
    background: rgba(7, 26, 32, .35);
}

.hero-btn:hover {
    background: #d7a360;
    border-color: #d7a360;
    gap: 18px;
}

/* Oklar: alt kontrol çubuğunda (sağdaki sabit iletişim butonlarıyla çakışmasın diye) */
.hero-arrow {
    flex: 0 0 auto;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .55);
    background: rgba(12, 40, 48, .25);
    backdrop-filter: blur(6px);
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: background .25s ease, border-color .25s ease, transform .25s ease;
}

.hero-arrow:hover {
    background: #d7a360;
    border-color: #d7a360;
}

.hero-prev:hover {
    transform: translateX(-3px);
}

.hero-next:hover {
    transform: translateX(3px);
}

/* Alt kontroller: sayaç + ilerleme çubukları */
.hero-controls {
    position: absolute;
    left: 50%;
    bottom: 36px;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 22px;
    color: #fff;
}

.hero-counter {
    font-family: indivisible, Montserrat, Arial, sans-serif;
    font-size: 13px;
    letter-spacing: .12rem;
    white-space: nowrap;
}

.hero-counter strong {
    font-weight: 500;
}

.hero-counter span {
    opacity: .6;
}

.hero-bullets {
    display: flex;
    gap: 8px;
}

.hero-bullet {
    position: relative;
    width: 46px;
    height: 3px;
    padding: 10px 0;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.hero-bullet:before,
.hero-bullet i {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    height: 2px;
    margin-top: -1px;
    border-radius: 2px;
}

.hero-bullet:before {
    width: 100%;
    background: rgba(255, 255, 255, .35);
}

.hero-bullet i {
    width: 0;
    background: #fff;
}

.hero-bullet.done i {
    width: 100%;
}

.hero-bullet.active i {
    animation: hero-fill var(--hero-delay, 6000ms) linear forwards;
}

.hero-slider.paused .hero-bullet.active i {
    animation-play-state: paused;
}

@keyframes hero-fill {
    from { width: 0; }
    to { width: 100%; }
}

@media (max-width: 820px) {
    .hero-caption {
        bottom: 150px;
        padding: 0 28px;
    }

    .hero-caption.mobile-only {
        display: block;
    }

    .hero-pre {
        font-size: 11px;
        letter-spacing: .22rem;
    }

    .hero-title {
        font-size: 2.4rem;
        margin-bottom: 22px;
    }

    .hero-arrow {
        width: 42px;
        height: 42px;
        font-size: 13px;
    }

    .hero-controls {
        bottom: 70px;
        gap: 16px;
    }

    .hero-bullet {
        width: 30px;
    }
}

@media (max-width: 360px) {
    .hero-controls {
        gap: 10px;
    }

    .hero-bullet {
        width: 24px;
    }
}
