/* ==============================================
   🌟 1. خلفية الفوتر الفنية (الرتوش المتلاشية) 🌟
   ============================================== */
.premium-site-footer {
    direction: rtl;
    text-align: right;
    position: relative;
    overflow: hidden;
    background-color: var(--footer-secondary) !important; 
    
    /* إزالة اللمعة القديمة والأنيميشن من الأساس */
    background-image: none !important;
    animation: none !important; 
}

/* 🌟 طبقة الرتوش مع حماية الحافة العلوية (التركاية السحرية) 🌟 */
.premium-site-footer::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none; /* عشان متمنعش الماوس من الضغط على الروابط */
    
    /* الرتوش المتلاشية من اليمين، اليسار، والأسفل بنفس لون الموقع */
    background-image: 
        linear-gradient(90deg, rgba(var(--footer-primary-rgb), 0.12) 0%, transparent 35%),
        linear-gradient(-90deg, rgba(var(--footer-primary-rgb), 0.12) 0%, transparent 35%),
        linear-gradient(0deg, rgba(var(--footer-primary-rgb), 0.08) 0%, transparent 70%) !important;
        
    /* قناع الشفافية الذكي: بيمسح الرتوش من أعلى 15% لضمان وضوح الحافة */
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, transparent 15%, black 35%);
    mask-image: linear-gradient(180deg, transparent 0%, transparent 15%, black 35%);
}

.premium-site-footer .site-footer__bg { display: none !important; }

/* 🌟 العناصر الهندسية المتحركة 🌟 */
.footer-bg-elements { position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 0; pointer-events: none; overflow: hidden; }

/* 🌟 العناصر الهندسية المتحركة 🌟 */
.footer-bg-elements { position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 0; pointer-events: none; overflow: hidden; }

.footer-shape { 
    position: absolute; 
    color: var(--footer-primary) !important; 
    opacity: 0.12; 
}

/* توزيع الأيقونات في الأركان لمنع التداخل */
.f-shape-1 { font-size: 200px; bottom: 5%; right: 5%; animation: floatEng 12s ease-in-out infinite alternate; }
.f-shape-2 { font-size: 180px; top: 15%; left: 5%; animation: floatHelmet 10s ease-in-out infinite alternate-reverse; transform: rotate(-15deg); }
.f-shape-3 { font-size: 190px; bottom: 10%; left: 25%; animation: spinCompass 30s linear infinite; opacity: 0.08; }
.f-shape-4 { font-size: 140px; top: 10%; right: 25%; animation: floatEng 15s ease-in-out infinite alternate; }

/* 🌟 الخوذة العملاقة في المنتصف بالظبط 🌟 */
.f-shape-5 { 
    font-size: 300px; 
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%); 
    animation: pulseCenter 10s ease-in-out infinite alternate; 
    opacity: 0.06; 
}

@keyframes floatEng { 0% { transform: translateY(0) rotate(0deg); } 100% { transform: translateY(-30px) rotate(15deg); } }
@keyframes floatHelmet { 0% { transform: translateY(0) rotate(-15deg); } 100% { transform: translateY(20px) rotate(-5deg); } }
@keyframes spinCompass { 100% { transform: rotate(360deg); } }
@keyframes pulseCenter { 
    0% { transform: translate(-50%, -50%) scale(1); } 
    100% { transform: translate(-50%, -50%) scale(1.08); } 
}

.site-footer__top, .site-footer__bottom { position: relative; z-index: 2; }

/* ==============================================
   2. قسم النشرة البريدية (Subscribe Section)
   ============================================== */
.subscribe-rtl { direction: rtl; text-align: right; }
.subscribe-rtl .subscribe-one__content { padding-right: 0; padding-left: 50px; }
.subscribe-rtl .subscribe-form { display: flex; flex-direction: row; }
.subscribe-rtl .subscribe-form input { border-radius: 0 8px 8px 0 !important; padding: 0 25px 0 0 !important; border-left: none !important; }
.subscribe-rtl .subscribe-form button { border-radius: 8px 0 0 8px !important; background-color: var(--footer-primary) !important; } 
.subscribe-rtl .subscribe-form button i { margin-right: 8px; margin-left: 0; transform: rotate(180deg); }

/* ==============================================
   3. تنسيقات أعمدة الفوتر
   ============================================== */
.premium-site-footer .footer-widget__title { font-size: 22px; font-weight: 800; margin-bottom: 30px; position: relative; padding-bottom: 15px; }
.premium-site-footer .footer-widget__title::after { content: ''; position: absolute; bottom: 0; right: 0; width: 40px; height: 3px; background: var(--footer-primary) !important; border-radius: 5px; }

.premium-site-footer .footer-widget__links-list li { display: flex; align-items: center; margin-bottom: 15px; }
.premium-site-footer .footer-widget__links-list li .icon-right { margin-left: 10px; margin-right: 0; font-size: 12px; color: var(--footer-primary) !important; transform: rotate(180deg); }

.premium-site-footer .footer-widget__links-list li a { transition: all 0.3s ease; color: #b0b0b0; }
.premium-site-footer .footer-widget__links-list li:hover a { color: var(--footer-primary) !important; transform: translateX(-8px); }

.premium-site-footer .footer-widget__contact-list li { display: flex; align-items: flex-start; margin-bottom: 25px; }
.premium-site-footer .footer-widget__contact-list li .icon { margin-left: 20px; margin-right: 0; background: rgba(var(--footer-primary-rgb), 0.1) !important; width: 45px; height: 45px; display: flex; justify-content: center; align-items: center; border-radius: 50%; color: var(--footer-primary) !important; transition: all 0.3s ease; }
.premium-site-footer .footer-widget__contact-list li:hover .icon { background: var(--footer-primary) !important; color: #ffffff !important; }

/* ===================================================================
   🎮 لوحة التحكم الاحترافية: أيقونات التواصل 🎮
   =================================================================== */
.footer-widget__social a {
    display: inline-flex !important; 
    justify-content: center !important; 
    align-items: center !important; 
    width: 45px !important;       
    height: 45px !important;      
    background-color: var(--footer-primary) !important; 
    border-radius: 50% !important; 
    border: 1px solid #ffffff !important; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.15) !important; 
    margin-left: 10px !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    text-decoration: none !important;
    position: relative;
    overflow: hidden !important;
}

.footer-widget__social a i, 
.footer-widget__social a span {
    font-family: "Font Awesome 5 Brands", "Font Awesome 5 Free" !important;
    font-weight: 900 !important; 
    color: #ffffff !important; 
    font-size: 18px !important;   
    display: inline-block !important;
    line-height: 1 !important;
    transition: all 0.3s ease !important;
}

.footer-widget__social a:hover {
    transform: translateY(-5px) scale(1.1) !important; 
    background-color: #ffffff !important; 
    border-color: #ffffff !important;
    box-shadow: 0 12px 25px rgba(0,0,0,0.3) !important;
}

.footer-widget__social a:hover i {
    color: var(--footer-primary) !important;
    transform: rotate(360deg); 
}

.footer-widget__social a::before,
.footer-widget__social a::after {
    display: none !important;
    content: none !important;
}

/* ==============================================
   🌟 5. الشريط السفلي (حقوق النشر والروابط السفلية) 🌟
   ============================================== */
.premium-site-footer .site-footer__bottom-inner { flex-direction: row-reverse; }
.premium-site-footer .site-footer__bottom-menu { display: flex; gap: 20px; }
.site-footer__bottom-menu li a { transition: all 0.3s ease; color: #b0b0b0; }
.site-footer__bottom-menu li a:hover { color: var(--footer-primary) !important; }

/* ==============================================
   🌟 6. زر العودة للأعلى (Scroll to Top) 🌟
   ============================================== */
.scroll-to-top__text { color: var(--footer-primary) !important; transition: all 0.3s ease; }
.scroll-to-top__inner, .scroll-to-top__wrapper { background-color: var(--footer-primary) !important; }
.scroll-to-top:hover .scroll-to-top__text { color: #ffffff !important; }

/* ===================================================================
   🎮 لوحة تحكم تنسيق وحركة الصورة (شريكي المحترف) 🎮
   =================================================================== */
.premium-img-style {
    display: block;              
    margin: 0 auto;               
    max-width: 100% !important;   
    height: auto !important;       
    border-radius: 20px !important; 
    border: 0px solid #ffffff !important; 
    box-shadow: 0 10px 30px 0px rgba(0, 0, 0, 0.1) !important; 
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
}

.premium-img-style:hover {
    transform: translateY(-8px) scale(1.02) !important; 
    box-shadow: 0 20px 50px 0px rgba(0, 0, 0, 0.2) !important; 
}