.board-slider {
    width: 100%;
    min-width: 0;
}

.featured-slider {
    width: 100%;
    direction: rtl;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 10px;
}

.slides-container {
    position: relative;
    width: 100%;
}

.slide {
    display: none;
    width: 100%;
    animation: fadeIn 0.6s ease-in-out;
}

.slide.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.slide-link {
    display: block;
    text-decoration: none;
    color: inherit;
    position: relative;
}

.slide-link:hover {
    background: transparent;
    margin-right: 0;
}

.slide-image {
    width: 100%;
    height: var(--slider-height, 300px);
    overflow: hidden;
}

.slide-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.slide-image .no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 1.2rem;
}

.slide-content {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    padding: 20px 25px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
}

.slide-title {
    font-size: 1.1rem;
    margin: 0 0 5px;
    line-height: 1.8;
    font-family: Vazir, sans-serif;
}

.slide-category {
    font-size: 0.8rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 3px 10px;
    border-radius: 15px;
    display: inline-block;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    z-index: 10;
}

.slider-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.slider-btn.prev {
    right: 10px;
}

.slider-btn.next {
    left: 10px;
}

.slider-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid white;
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: background 0.3s;
}

.dot.active {
    background: white;
}

.dot:hover {
    background: rgba(255, 255, 255, 0.6);
}

/* Responsive */
@media (max-width: 768px) {
    
    .slide-title {
        font-size: 0.95rem;
    }
    
    .slider-btn {
        width: 30px;
        height: 30px;
        font-size: 0.85rem;
    }
}
