/* ===========================================
   Featured News Slider Styles
   =========================================== */

.sd-featured-slider {
    position: relative;
    width: 100%;
    height: 450px;
    border-radius: 12px;
    overflow: hidden;
    direction: rtl;
}

.sd-featured-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.sd-featured-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s ease;
    z-index: 1;
}

.sd-featured-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

/* اوورلی */
.sd-featured-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.3) 50%, transparent 100%);
    display: flex;
    align-items: flex-end;
    padding: 30px;
    z-index: 3;
}

.sd-featured-content {
    width: 100%;
    max-width: 80%;
}

/* دسته‌بندی */
.sd-featured-category {
    display: inline-block;
    background-color: #e74c3c;
    color: #ffffff;
    padding: 4px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.6;
}

/* تاریخ */
.sd-featured-date {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #e0e0e0;
    font-size: 13px;
    margin-bottom: 8px;
    margin-right: 12px;
}

.sd-featured-date svg {
    flex-shrink: 0;
}

/* عنوان */
.sd-featured-title {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.7;
}

.sd-featured-title a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.sd-featured-title a:hover {
    color: #60a5fa;
}

/* خلاصه */
.sd-featured-excerpt {
    font-size: 14px;
    color: #cbd5e1;
    line-height: 1.8;
}

/* فلش‌های ناوبری */
.sd-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0;
}

.sd-featured-slider:hover .sd-slider-arrow {
    opacity: 1;
}

.sd-slider-arrow:hover {
    background-color: rgba(255, 255, 255, 0.35);
    transform: translateY(-50%) scale(1.08);
}

.sd-slider-prev {
    left: 15px;
}

.sd-slider-next {
    right: 15px;
}

/* نقاط ناوبری */
.sd-slider-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 8px;
    align-items: center;
}

.sd-slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.sd-slider-dot.active {
    background-color: #ffffff;
    width: 28px;
    border-radius: 5px;
}

.sd-slider-dot:hover {
    background-color: rgba(255, 255, 255, 0.7);
}

/* متا */
.sd-featured-meta {
    color: #e0e0e0;
}

/* پیام خطا */
.sd-no-posts {
    text-align: center;
    padding: 40px 20px;
    color: #94a3b8;
    font-size: 14px;
    background: #f8fafc;
    border-radius: 12px;
    border: 2px dashed #e2e8f0;
}

/* ============ ریسپانسیو ============ */
@media (max-width: 768px) {
    .sd-featured-slider {
        height: 320px;
    }

    .sd-featured-overlay {
        padding: 20px;
    }

    .sd-featured-content {
        max-width: 100%;
    }

    .sd-featured-title {
        font-size: 16px;
    }

    .sd-featured-excerpt {
        display: none;
    }

    .sd-slider-arrow {
        width: 34px;
        height: 34px;
    }
}

@media (max-width: 480px) {
    .sd-featured-slider {
        height: 260px;
        border-radius: 8px;
    }

    .sd-featured-title {
        font-size: 14px;
    }

    .sd-featured-category {
        font-size: 11px;
        padding: 3px 10px;
    }
}
