/* =========================================
   👨‍💼 التنسيقات المستقلة لبلوك فريق العمل
   ========================================= */

.premium-team-section { 
    padding: 100px 0; 
    position: relative; 
    direction: rtl; 
    overflow: hidden; 
    background-color: var(--team-secondary) !important;
    
    /* 🌟 1. إزالة اللمعة المتحركة القديمة تماماً 🌟 */
    background-image: none !important;
    animation: none !important; 
}

/* 🌟 2. طبقة الرتوش الفخمة مع حماية الحواف العلوية والسفلية 🌟 */
.premium-team-section::before { 
    content: ''; 
    position: absolute; 
    inset: 0; 
    z-index: 1; 
    pointer-events: none; /* لمنع إعاقة الضغط على عناصر الفريق */
    
    /* الرتوش المتلاشية من اليمين واليسار بنفس لون الموقع الأساسي */
    background-image: 
        linear-gradient(90deg, rgba(var(--team-primary-rgb), 0.12) 0%, transparent 35%),
        linear-gradient(-90deg, rgba(var(--team-primary-rgb), 0.12) 0%, transparent 35%) !important;
        
    /* 🎯 التركاية السحرية المزدوجة: قناع شفاف يمسح الرتوش من أول 15% فوق وآخر 15% تحت */
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, transparent 15%, black 30%, black 70%, transparent 85%, transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0%, transparent 15%, black 30%, black 70%, transparent 85%, transparent 100%);
}

/* إزالة التأثيرات القديمة تماماً لتنظيف الكود */
.premium-team-section::after { 
    display: none !important; 
}

.team-bg-elements { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.team-bg-elements { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.t-shape { position: absolute; color: var(--team-primary) !important; opacity: 0.12; }
.t-shape-1 { font-size: 180px; bottom: 5%; right: 5%; animation: tFloat 12s ease-in-out infinite alternate; }
.t-shape-2 { font-size: 150px; top: 15%; left: 5%; animation: tFloatRev 10s ease-in-out infinite alternate-reverse; transform: rotate(-15deg); }
.t-shape-3 { font-size: 190px; bottom: 10%; left: 25%; animation: tSpin 30s linear infinite; opacity: 0.08; }
.t-shape-4 { font-size: 140px; top: 10%; right: 25%; animation: tFloat 15s ease-in-out infinite alternate; }
.t-shape-5 { font-size: 300px; top: 50%; left: 50%; transform: translate(-50%, -50%); animation: tPulse 10s ease-in-out infinite alternate; opacity: 0.06; }

@keyframes tFloat { 0% { transform: translateY(0) rotate(0deg); } 100% { transform: translateY(-30px) rotate(15deg); } }
@keyframes tFloatRev { 0% { transform: translateY(0) rotate(-15deg); } 100% { transform: translateY(20px) rotate(-5deg); } }
@keyframes tSpin { 100% { transform: rotate(360deg); } }
@keyframes tPulse { 0% { transform: translate(-50%, -50%) scale(1); } 100% { transform: translate(-50%, -50%) scale(1.08); } }

html[dir="rtl"] .team-one__single-inner-shape { right: auto !important; left: -1px !important; transform: scaleX(-1); }
html[dir="rtl"] .team-one__social-list { right: auto !important; left: 265px !important; }
html[dir="rtl"] .team-one__social-list a span { font-family: "Font Awesome 5 Brands", "Font Awesome 5 Free" !important; font-weight: 900 !important; }
html[dir="rtl"] .team-one__content { padding-right: 20px !important; padding-left: 75px !important; text-align: right !important; }

.team-top-bar { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; margin-bottom: 50px; position: relative; z-index: 2; }
.team-badge { display: inline-flex; align-items: center; background: rgba(var(--team-primary-rgb), 0.15); color: var(--team-primary); padding: 8px 25px; border-radius: 30px; font-weight: 800; font-size: 14px; margin-bottom: 15px; border: 1px solid rgba(var(--team-primary-rgb), 0.3); }
.team-titles h2 { color: #ffffff; font-size: 40px; font-weight: 900; margin: 0; font-family: 'Tajawal', sans-serif; text-shadow: 0 5px 15px rgba(0,0,0,0.3); }

/* ألوان الفريق الديناميكية */
.team-one__sub-title { color: var(--team-primary) !important; }
.team-one__title a:hover { color: var(--team-primary) !important; }

.team-one__social-list a { background-color: var(--team-primary) !important; border: 1px solid var(--team-primary) !important; display: inline-flex !important; align-items: center; justify-content: center; transition: all 0.4s ease !important; }
.team-one__social-list a span, .team-one__social-list a i { color: #ffffff !important; transition: all 0.4s ease !important; }
.team-one__social-list a:hover { background-color: #ffffff !important; border-color: var(--team-primary) !important; box-shadow: 0 5px 15px rgba(var(--team-primary-rgb), 0.2); }
.team-one__social-list a:hover span, .team-one__social-list a:hover i { color: var(--team-primary) !important; }

.team-carousel .owl-dots { text-align: center; margin-top: 40px !important; display: block !important; position: relative; z-index: 2; }
.team-carousel .owl-dots .owl-dot span { width: 14px !important; height: 14px !important; margin: 5px 8px !important; background: rgba(var(--team-primary-rgb), 0.2) !important; transition: all 0.3s ease !important; border-radius: 50% !important; display: block !important; border: 2px solid transparent !important; }
.team-carousel .owl-dots .owl-dot.active span, .team-carousel .owl-dots .owl-dot:hover span { background: transparent !important; border-color: var(--team-primary) !important; transform: scale(1.3); position: relative; }
.team-carousel .owl-dots .owl-dot.active span::after { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 6px; height: 6px; background: var(--team-primary) !important; border-radius: 50%; }