﻿/* =========================================================
   اسلایدر گشسجو (gshsjwo)
   تمام کلاس‌ها با پیشوند gshsjwo- نام‌گذاری شده‌اند
   تا با استایل‌های دیگر سایت شما تداخل پیدا نکنند.
   ========================================================= */

.gshsjwo-slider {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    aspect-ratio: 16 / 7;
    background: #111;
    font-family: "Vazirmatn", Tahoma, Arial, sans-serif;
    direction: ltr;
    user-select: none;
    touch-action: pan-y;
}

/* روی موبایل نسبت تصویر بلندتر می‌شود تا عکس بهتر دیده شود */
@media (max-width: 768px) {
    .gshsjwo-slider {
        aspect-ratio: 4 / 5;
    }
}

@media (max-width: 480px) {
    .gshsjwo-slider {
        aspect-ratio: 3 / 4;
    }
}

.gshsjwo-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1);
    will-change: transform;
}

.gshsjwo-slide {
    position: relative;
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
}

.gshsjwo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
    -webkit-user-drag: none;
}

/* گرادیان تیره پشت متن برای خوانایی بهتر */
.gshsjwo-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0) 35%, rgba(0,0,0,0.55) 100%);
    pointer-events: none;
}

/* متن سمت راست روی عکس */
.gshsjwo-caption {
    position: absolute;
    top: 50%;
    right: 5%;
    transform: translateY(-50%);
    z-index: 2;
    max-width: 46%;
    text-align: right;
    color: #fff;
    animation: gshsjwo-fade-up 0.7s ease both;
}

.gshsjwo-title {
    font-size: clamp(1.25rem, 3vw, 2.4rem);
    font-weight: 700;
    margin: 0 0 0.5rem;
    line-height: 1.3;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.gshsjwo-text {
    font-size: clamp(0.85rem, 1.6vw, 1.15rem);
    margin: 0;
    line-height: 1.6;
    opacity: 0.92;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

@media (max-width: 600px) {
    .gshsjwo-caption {
        max-width: 60%;
        right: 6%;
    }

    .gshsjwo-title {
        margin-bottom: 0.3rem;
    }
}

@keyframes gshsjwo-fade-up {
    from {
        opacity: 0;
        transform: translateY(-40%);
    }

    to {
        opacity: 1;
        transform: translateY(-50%);
    }
}

/* دکمه‌های فلش چپ/راست */
.gshsjwo-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(6px);
    color: #fff;
    font-size: 1.6rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s ease;
}

    .gshsjwo-arrow:hover {
        background: rgba(255, 255, 255, 0.32);
        transform: translateY(-50%) scale(1.08);
    }

    .gshsjwo-arrow:active {
        transform: translateY(-50%) scale(0.96);
    }

.gshsjwo-arrow-prev {
    left: 16px;
}

.gshsjwo-arrow-next {
    right: 16px;
}

@media (max-width: 600px) {
    .gshsjwo-arrow {
        width: 36px;
        height: 36px;
        font-size: 1.3rem;
    }

    .gshsjwo-arrow-prev {
        left: 8px;
    }

    .gshsjwo-arrow-next {
        right: 8px;
    }
}

/* نقطه‌های پایین اسلایدر */
.gshsjwo-dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 8px;
}

.gshsjwo-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s ease;
}

    .gshsjwo-dot.gshsjwo-dot-active {
        background: #ffffff;
        transform: scale(1.25);
    }
