﻿.Slid-slider-wrapper {
    position: relative;
    width: 100%;
    margin-top: 20px; /* فاصله از بالا */
    margin-bottom: 20px;
    overflow: hidden;
}


.Slid-slider-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 5; /* نسبت ثابت */
    overflow: hidden;
    border-radius: 10px;
    background: #f5f5f5;
}


.Slid-slider-track {
    display: flex;
    direction: ltr !important;
    transition: transform 0.5s ease-in-out;
    height: 100%; /* اضافه شد */
}

.Slid-slide {
    flex: 0 0 100%;
    min-width: 100%; /* تغییر از width به min-width */
    height: 100%; /* اضافه شد */
    position: relative;
}

    .Slid-slide a {
        display: block;
        width: 100%;
        height: 100%;
        text-decoration: none;
    }

    .Slid-slide img {
        width: 100%;
        height: 100%;
        object-fit: fill; /* تغییر از cover به fill */
        display: block;
    }


.Slid-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .Slid-nav:hover {
        background: rgba(0, 0, 0, 0.7);
    }

.Slid-prev {
    left: 10px;
}

.Slid-next {
    right: 10px;
}

.Slid-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.Slid-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

    .Slid-dot:hover {
        background: rgba(255, 255, 255, 0.8);
        transform: scale(1.2);
    }

    .Slid-dot.Slid-active {
        background: #fff;
        transform: scale(1.2);
    }

/* Responsive برای موبایل */
@media (max-width: 768px) {
    .Slid-slider-container {
        aspect-ratio: 16 / 9; /* نسبت متفاوت برای موبایل */
    }

    .Slid-nav {
        width: 30px !important;
        height: 30px !important;
        font-size: 16px !important;
    }

    .Slid-prev {
        left: 5px !important;
    }

    .Slid-next {
        right: 5px !important;
    }

    .Slid-dots {
        bottom: 5px !important;
    }

    .Slid-dot {
        width: 6px !important;
        height: 6px !important;
    }
}

@media (max-width: 480px) {
    .Slid-slider-container {
        height: 180px !important;
    }

    .Slid-nav {
        width: 25px !important;
        height: 25px !important;
        font-size: 14px !important;
    }
}
