/* أنماط الموديول الثاني - سلايدر متحرك */
.samposts-module-2 {
    position: relative;
    max-width: 1400px;
    margin: 30px auto;
    padding: 20px;
    overflow: hidden;
}

/* الحاوية الرئيسية */
.samposts-module-2 .slider-container {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    background: linear-gradient(145deg, #ffffff, #f5f7fa);
    padding: 20px;
}

/* المسار المتحرك */
.samposts-module-2 .slider-wrapper {
    overflow: hidden;
    padding: 10px;
}

.samposts-module-2 .slider-track {
    display: flex;
    transition: transform 0.8s cubic-bezier(0.645, 0.045, 0.355, 1);
    gap: 20px;
}

/* العناصر الفردية */
.samposts-module-2 .slider-item {
    flex: 0 0 calc(20% - 16px); /* 5 عناصر للابتوب (100/5 = 20%) */
    min-width: 0;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: white;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.08),
        0 5px 15px rgba(0, 0, 0, 0.04);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
    perspective: 1000px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.samposts-module-2 .slider-item:hover {
    transform: translateY(-10px) scale(1.03) rotateX(2deg);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.15),
        0 15px 35px rgba(0, 115, 170, 0.1);
    z-index: 10;
}

/* الصورة */
.samposts-module-2 .slider-image {
    position: relative;
    height: 220px;
    background-size: cover;
    background-position: center;
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.samposts-module-2 .slider-item:hover .slider-image {
    height: 230px;
    transform: scale(1.1);
}

.samposts-module-2 .image-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 40%, rgba(0, 0, 0, 0.7) 100%);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.samposts-module-2 .slider-item:hover .image-gradient {
    opacity: 0.9;
}

.samposts-module-2 .image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0, 115, 170, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.samposts-module-2 .slider-item:hover .image-overlay {
    opacity: 1;
}

/* بدون صورة */
.samposts-module-2 .no-image {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.samposts-module-2 .no-image-icon {
    font-size: 48px;
    color: white;
    opacity: 0.7;
    z-index: 2;
    position: relative;
    transition: all 0.3s ease;
}

.samposts-module-2 .slider-item:hover .no-image-icon {
    transform: scale(1.2) rotate(15deg);
    opacity: 1;
}

/* المحتوى */
.samposts-module-2 .slider-content {
    padding: 20px;
    position: relative;
    z-index: 2;
    background: white;
}

.samposts-module-2 .slider-title {
    margin: 0 0 15px 0;
    font-size: 18px;
    line-height: 1.4;
    color: #333;
    font-weight: 600;
    transition: color 0.3s ease;
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.samposts-module-2 .slider-item:hover .slider-title {
    color: #0073aa;
}

.samposts-module-2 .slider-indicator {
    height: 3px;
    background: linear-gradient(to right, #0073aa, #00a8ff);
    border-radius: 2px;
    transform: scaleX(0);
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-origin: left;
}

.samposts-module-2 .slider-item:hover .slider-indicator {
    transform: scaleX(1);
}

/* تأثيرات الـ Hover */
.samposts-module-2 .slider-hover-effect {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.15) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
    pointer-events: none;
    z-index: 3;
}

.samposts-module-2 .slider-item:hover .slider-hover-effect {
    transform: translateX(100%);
}

/* أزرار التنقل */
.samposts-module-2 .slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: white;
    border: none;
    border-radius: 50%;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0073aa;
}

.samposts-module-2 .slider-nav:hover {
    background: #0073aa;
    color: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 115, 170, 0.3);
}

.samposts-module-2 .slider-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.samposts-module-2 .slider-nav.prev {
    left: -25px;
}

.samposts-module-2 .slider-nav.next {
    right: -25px;
}

.samposts-module-2 .slider-nav svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* نقاط التنقل */
.samposts-module-2 .slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.samposts-module-2 .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    padding: 0;
    position: relative;
    overflow: hidden;
}

.samposts-module-2 .dot::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #0073aa;
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.3s ease;
}

.samposts-module-2 .dot.active::before {
    transform: scale(1);
}

.samposts-module-2 .dot.active {
    background: transparent;
    transform: scale(1.2);
}

.samposts-module-2 .dot:hover {
    transform: scale(1.2);
    background: #ccc;
}

.samposts-module-2 .dot:hover::before {
    transform: scale(0.5);
}

/* تحكمات المؤشر */
.samposts-module-2 .slider-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
}

.samposts-module-2 .slider-pause {
    background: #0073aa;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.samposts-module-2 .slider-pause:hover {
    background: #005a87;
    transform: translateY(-2px);
}

/* تصميم متجاوب */
@media (max-width: 1200px) {
    .samposts-module-2 .slider-item {
        flex: 0 0 calc(33.333% - 13.33px); /* 3 عناصر للتابلت */
    }
    
    .samposts-module-2 .slider-image {
        height: 200px;
    }
}

@media (max-width: 768px) {
    .samposts-module-2 .slider-item {
        flex: 0 0 calc(50% - 10px); /* عنصرين للموبايل */
    }
    
    .samposts-module-2 .slider-image {
        height: 180px;
    }
    
    .samposts-module-2 .slider-nav {
        width: 40px;
        height: 40px;
    }
    
    .samposts-module-2 .slider-nav.prev {
        left: -20px;
    }
    
    .samposts-module-2 .slider-nav.next {
        right: -20px;
    }
    
    .samposts-module-2 .slider-title {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .samposts-module-2 {
        padding: 10px;
    }
    
    .samposts-module-2 .slider-item {
        flex: 0 0 calc(50% - 10px); /* عنصرين للموبايل الصغير */
    }
    
    .samposts-module-2 .slider-image {
        height: 150px;
    }
    
    .samposts-module-2 .slider-content {
        padding: 15px;
    }
    
    .samposts-module-2 .slider-title {
        font-size: 14px;
        -webkit-line-clamp: 3;
    }
}

/* رسوميات متحركة */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.samposts-module-2 .slider-item {
    animation: slideIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    opacity: 0;
}

.samposts-module-2 .slider-item:nth-child(1) { animation-delay: 0.1s; }
.samposts-module-2 .slider-item:nth-child(2) { animation-delay: 0.2s; }
.samposts-module-2 .slider-item:nth-child(3) { animation-delay: 0.3s; }
.samposts-module-2 .slider-item:nth-child(4) { animation-delay: 0.4s; }
.samposts-module-2 .slider-item:nth-child(5) { animation-delay: 0.5s; }

/* تأثيرات الضوء */
.samposts-module-2 .slider-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, #0073aa, #00a8ff, #0073aa);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.samposts-module-2 .slider-item:hover::before {
    opacity: 1;
}