/*
 * Ana sayfa slider'ı: yükseklik baştan bellidir, sayfa kaymaz.
 * Burada overflow veya contain kullanılmaz: üst menünün taşan float'ı yanında daralır.
 */
.main-slider {
    position: relative;
    height: min(800px, 66.667vw);
    min-height: 360px;
    background: #1d2b22;
}

.hero-slide {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0;
    visibility: hidden;
}

/* Yeni slayt eskisinin üstünde belirir; eski slayt geçiş bitene kadar altta tam görünür kalır. */
.hero-slide.is-prev {
    z-index: 1;
    opacity: 1;
    visibility: visible;
}

.hero-slide.is-active {
    z-index: 2;
    opacity: 1;
    visibility: visible;
    transition: opacity 1s ease;
}

.hero-slide > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center top;
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, .5) 0%, rgba(0, 0, 0, .15) 60%, rgba(0, 0, 0, 0) 100%);
}

.hero-caption {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
}

.hero-caption .auto-container {
    width: 100%;
}

.main-slider h2 {
    margin: 0 0 20px;
    font-size: clamp(26px, 5vw, 64px);
    line-height: 1.1;
}

.main-slider .text {
    margin-bottom: 26px;
    font-size: clamp(15px, 2vw, 24px);
}

.hero-caption h2,
.hero-caption .text,
.hero-caption .theme-btn {
    opacity: 0;
    transform: translateX(-40px);
}

.hero-slide.is-prev .hero-caption h2,
.hero-slide.is-prev .hero-caption .text,
.hero-slide.is-prev .hero-caption .theme-btn {
    transition: opacity .4s ease;
}

.hero-slide.is-active .hero-caption h2,
.hero-slide.is-active .hero-caption .text,
.hero-slide.is-active .hero-caption .theme-btn {
    opacity: 1;
    transform: none;
    transition: opacity .9s ease, transform .9s cubic-bezier(.19, 1, .22, 1);
}

.hero-slide.is-active .hero-caption .text {
    transition-delay: .25s;
}

.hero-slide.is-active .hero-caption .theme-btn {
    transition-delay: .5s, .5s;
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 50px;
    height: 50px;
    margin-top: -25px;
    padding: 0;
    color: #fff;
    font-size: 16px;
    line-height: 46px;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, .5);
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    transition: opacity .3s ease, background-color .3s ease, border-color .3s ease;
}

.hero-arrow:hover,
.hero-arrow:focus-visible {
    background-color: #93dc15;
    border-color: #93dc15;
}

.main-slider:hover .hero-arrow,
.hero-arrow:focus-visible {
    opacity: 1;
}

.hero-arrow--prev {
    left: 30px;
}

.hero-arrow--next {
    right: 30px;
}

@media (hover: none), (max-width: 767px) {
    .hero-arrow {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-slide.is-active,
    .hero-slide.is-active .hero-caption h2,
    .hero-slide.is-active .hero-caption .text,
    .hero-slide.is-active .hero-caption .theme-btn {
        transition: none;
    }
}
