/* قوانین عمومی برای همه دستگاه‌ها */
.pymslidblog-container .swiper-slide.pymslidblog-slide {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
}

.pymslidblog-image {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

/* تنظیمات Responsive برای تصویر */
@media (max-width: 767px) {
    .pymslidblog-image-link {
        height: 100%;
    }
    
    .pymslidblog-overlay {
        background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.3));
    }
}




.pymslidblog-container {
    width: 869px !important;
    height: 511px !important;
    position: relative;
    direction: rtl;
    overflow: hidden;
    border-radius: 16px;
    margin: 0 auto;
}

.pymslidblog-container .swiper.pymslidblog-slider {
    width: 100% !important;
    height: 100% !important;
}

.pymslidblog-container .swiper-slide.pymslidblog-slide {
    width: 869px !important;
    height: 511px !important;
    position: relative;
    display: block !important;
    overflow: hidden;
}

.pymslidblog-image-link {
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.pymslidblog-image {
    width: 100%;
    height: 100%;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

.pymslidblog-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    z-index: 2;
    pointer-events: none; /* اوورلی رو از کلیک‌پذیری خارج می‌کنه */
}

.pymslidblog-category {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #fff;
    padding: 6px 8px;
    border-radius: 4px;
    z-index: 10;
}

.pymslidblog-category-link {
    color: #010D0A !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    text-decoration: none;
}

.pymslidblog-category-link:hover {
    color: #010D0A;
}

.pymslidblog-content {
    position: absolute;
    bottom: 12px;
    right: 20px;
    color: #fff;
    text-align: right;
    z-index: 10; /* بالاتر از اوورلی و تصویر */
    gap: 0px;
    display: flex;
    flex-direction: column;
}

.pymslidblog-date {
    font-size: 12px;
    font-weight: 400;
    margin-bottom: 8px;
}

.pymslidblog-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #fff !important;
}

.pymslidblog-title-link {
    color: inherit !important;
    text-decoration: none !important;
}

.pymslidblog-title-link:hover {
    text-decoration: none;
}

.pymslidblog-excerpt {
    font-size: 14px;
    font-weight: 400;
    line-height: 28px;
    max-width: 500px;
}

.pymslidblog-pagination {
    position: absolute;
    bottom: 0px !important;
    left: 40px;
    right: unset !important;
    display: flex;
    gap: 15px;
    width: unset !important;
    z-index: 10;
}

.pymslidblog-pagination .swiper-pagination-bullet {
    width: 30px;
    height: 30px;
    background: transparent;
    border-radius: 7px 7px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: #fff !important;
    opacity: 1 !important;
}

.pymslidblog-pagination .swiper-pagination-bullet-active {
    background: #066737;
    opacity: 1 !important;
    height: 46px;
    width: 40px;
}

.pymslidblog-error {
    color: #fff;
    text-align: center;
    padding: 20px;
    background: #333;
}

.pymslidblog-slider .swiper-wrapper {
    margin: 0 !important;
}

.pymslidblog-slider .swiper-slide {
    margin: 0 !important;
}

/* تبلت */
@media (min-width: 768px) and (max-width: 1024px) {
    .pymslidblog-container {
        width: 100% !important;
        max-width: 700px !important;
        height: 450px !important;
        margin: 0 auto !important;
    }

    .pymslidblog-container .swiper.pymslidblog-slider {
        width: 100% !important;
        height: 100% !important;
    }

    .pymslidblog-container .swiper-slide.pymslidblog-slide {
        width: 100% !important;
        max-width: 700px !important;
        height: 450px !important;
    }

    .pymslidblog-date {
        font-size: 12px;
    }

    .pymslidblog-title {
        font-size: 22px !important;
        margin-bottom: 15px;
    }

    .pymslidblog-excerpt {
        font-size: 14px;
        max-width: 400px;
    }

    .pymslidblog-pagination {
        bottom: 0px !important;
        left: 40px;
        right: unset !important;
        gap: 15px;
        width: unset !important;
    }

    .pymslidblog-pagination .swiper-pagination-bullet {
        width: 30px;
        height: 30px;
        font-size: 20px;
    }

    .pymslidblog-pagination .swiper-pagination-bullet-active {
        height: 46px;
        width: 40px;
    }
}

/* موبایل */
@media (max-width: 767px) {
    .pymslidblog-container {
        width: 95% !important;
        max-width: 100% !important;
        height: 50vh !important;
        min-height: 350px;
        margin: 0 auto !important;
    }

    .pymslidblog-container .swiper-slide.pymslidblog-slide {
        width: 100% !important;
        max-width: 100% !important;
        height: 50vh !important;
        min-height: 350px;
    }

    .pymslidblog-date {
        font-size: 12px;
    }

    .pymslidblog-title {
        font-size: 16px !important;
        margin-bottom: 15px;
    }

    .pymslidblog-excerpt {
        font-size: 12px;
        max-width: 300px;
    }

    .pymslidblog-pagination {
        bottom: 10px !important;
        left: 10px !important;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 4px;
        padding: 4px 8px;
        gap: 4px;
        width: 50px;
        height: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .pymslidblog-pagination .swiper-pagination-bullet {
        width: 6px;
        height: 6px;
        background: #D9D9D9 !important;
        border-radius: 50%;
        margin: 0 auto !important;
        font-size: 0;
    }

    .pymslidblog-pagination .swiper-pagination-bullet-active {
        background: #066737 !important;
        width: 6px;
        height: 6px;
    }

    .elementor-shortcode {
        padding: 0 !important;
        margin: 0 !important;
    }
}