﻿/* =========================
   HERO SLIDER
========================= */

.hero-slider {
    position: relative;
    width: 100%;
    height: 75vh;
    min-height: 600px;
    overflow: hidden;
    isolation: isolate;
}

/* Track */
.slider-track {
    width: 100%;
    height: 100%;
    position: relative;
}

/* Slide */
.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease, transform 7s ease;
    background-image: var(--bg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1.08);
}

    .slide.is-active {
        opacity: 1;
        transform: scale(1);
        z-index: 2;
    }
/* Overlay حرفه‌ای */
.slide-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* کلیک کامل */
.slide-link {
    position: absolute;
    inset: 0;
    z-index: 5;
}

/* محتوا */
.slide-content {
    position: absolute;
    bottom: 80px;
    right: 7%;
    z-index: 6;
    color: #fff;
    max-width: 650px;
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 992px) {

    .hero-slider {
        height: 75vh;
        min-height: 500px;
    }

    .slide-content {
        right: 24px;
        left: 24px;
        bottom: 50px;
    }
}

@media (max-width: 576px) {

    .hero-slider {
        height: 60vh;
        min-height: 420px;
    }
}
/* =========================
   DOTS
========================= */

.slider-dots {
    position: absolute;
    bottom: 35px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    gap: 12px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,.4);
    cursor: pointer;
    transition: all .35s ease;
}

    .slider-dot:hover {
        transform: scale(1.15);
    }

    .slider-dot.is-active {
        width: 34px;
        border-radius: 999px;
        background: #fff;
    }

/* =========================
   ARROWS
========================= */

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,.12);
    color: #fff;
    font-size: 38px;
    line-height: 1;
    cursor: pointer;
    z-index: 30;
    transition: all .3s ease;
}

    .slider-arrow:hover {
        background: rgba(255,255,255,.22);
        transform: translateY(-50%) scale(1.08);
    }

    .slider-arrow.prev {
        left: 28px;
    }

    .slider-arrow.next {
        right: 28px;
    }

    .slider-arrow:focus,
    .slider-dot:focus {
        outline: none;
        box-shadow: none;
    }
/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {

    .slider-arrow {
        width: 46px;
        height: 46px;
        font-size: 30px;
    }

        .slider-arrow.prev {
            left: 12px;
        }

        .slider-arrow.next {
            right: 12px;
        }

    .slider-dots {
        bottom: 20px;
    }
}

@media (max-width: 768px) {
    .hero-slider {
        height: 360px;
    }
}
