/* ====================================
   Trust Badges Section - قسم علامات الثقة
   ==================================== */

.trust-badges-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    overflow: hidden;
    position: relative;
}

.trust-badges-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(74, 144, 226, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(74, 144, 226, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

/* Section Header */
.trust-badges-section .section-header {
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.trust-badges-section .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.trust-badges-section .section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #4a90e2, #357abd);
    border-radius: 2px;
}

.trust-badges-section .section-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-top: 20px;
}

/* Slider Wrapper */
.trust-slider-wrapper {
    margin: 30px 0;
    position: relative;
    overflow: hidden;
}

.trust-slider {
    display: flex;
    width: 100%;
    position: relative;
}

.trust-slider-track {
    display: flex;
    gap: 30px;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    will-change: transform;
}

/* Animation للسلايدر العلوي - يتحرك لليسار */
.trust-slider-top .trust-slider-track {
    animation: slideLeft 40s linear infinite;
}

/* Animation للسلايدر السفلي - يتحرك لليمين */
.trust-slider-bottom .trust-slider-track {
    animation: slideRight 40s linear infinite;
}

@keyframes slideLeft {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-33.333%);
    }
}

@keyframes slideRight {
    0% {
        transform: translateX(-33.333%);
    }
    100% {
        transform: translateX(0);
    }
}

/* Pause on Hover */
.trust-slider:hover .trust-slider-track {
    animation-play-state: paused;
}

/* Trust Badge Item */
.trust-badge-item {
    flex: 0 0 auto;
    width: 200px;
    padding: 10px;
}

.trust-badge-card {
    background: #ffffff;
    border-radius: 15px;
    padding: 30px 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    position: relative;
    overflow: hidden;
}

.trust-badge-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.trust-badge-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(74, 144, 226, 0.2);
}

.trust-badge-card:hover::before {
    opacity: 1;
}

.trust-badge-card img {
    max-width: 100%;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.trust-badge-card:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .trust-badge-item {
        width: 180px;
    }
    
    .trust-slider-track {
        gap: 25px;
    }
}

@media (max-width: 992px) {
    .trust-badges-section {
        padding: 60px 0;
    }
    
    .trust-badges-section .section-title {
        font-size: 2rem;
    }
    
    .trust-badge-item {
        width: 160px;
    }
    
    .trust-slider-track {
        gap: 20px;
    }
    
    .trust-badge-card {
        padding: 25px 15px;
        min-height: 100px;
    }
    
    .trust-badge-card img {
        max-height: 60px;
    }
}

@media (max-width: 768px) {
    .trust-badges-section {
        padding: 50px 0;
    }
    
    .trust-badges-section .section-header {
        margin-bottom: 40px;
    }
    
    .trust-badges-section .section-title {
        font-size: 1.75rem;
    }
    
    .trust-badges-section .section-subtitle {
        font-size: 1rem;
    }
    
    .trust-badge-item {
        width: 140px;
    }
    
    .trust-slider-track {
        gap: 15px;
    }
    
    .trust-badge-card {
        padding: 20px 10px;
        min-height: 90px;
    }
    
    .trust-badge-card img {
        max-height: 50px;
    }
    
    /* سرعة أسرع للشاشات الصغيرة */
    .trust-slider-top .trust-slider-track {
        animation-duration: 30s;
    }
    
    .trust-slider-bottom .trust-slider-track {
        animation-duration: 30s;
    }
}

@media (max-width: 480px) {
    .trust-badges-section {
        padding: 40px 0;
    }
    
    .trust-badge-item {
        width: 120px;
    }
    
    .trust-slider-track {
        gap: 12px;
    }
    
    .trust-badge-card {
        padding: 15px 8px;
        min-height: 80px;
        border-radius: 12px;
    }
    
    .trust-badge-card img {
        max-height: 40px;
    }
}

/* RTL Support */
[dir="rtl"] .trust-slider-top .trust-slider-track {
    animation-name: slideRight;
}

[dir="rtl"] .trust-slider-bottom .trust-slider-track {
    animation-name: slideLeft;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .trust-slider-track {
        animation: none !important;
    }
    
    .trust-slider {
        overflow-x: auto;
        scroll-behavior: smooth;
    }
}

/* Print Styles */
@media print {
    .trust-badges-section {
        page-break-inside: avoid;
    }
    
    .trust-slider-track {
        animation: none;
        flex-wrap: wrap;
    }
}
