/* ==============================================
   1. الإعدادات الأساسية لصفحة تفاصيل المشروع (RTL)
   ============================================== */
.premium-project-details {
    background-color: #fcfcfc;
    padding: 80px 0;
    direction: rtl;
    text-align: right;
}

.premium-project-details .fas, .premium-project-details .fa, .page-header .fas {
    font-family: "Font Awesome 5 Free" !important;
    font-weight: 900 !important;
}


.premium-title-reveal { display: inline-block; overflow: hidden; vertical-align: top; }
.premium-title-reveal span { display: inline-block; transform: translateY(100%); opacity: 0; animation: slideUpReveal 1.2s cubic-bezier(0.25, 1, 0.2, 1) forwards; animation-delay: 0.2s; color: #ffffff; font-weight: 900; text-shadow: 0px 5px 15px rgba(0,0,0,0.3); }
@keyframes slideUpReveal { 0% { transform: translateY(100%); opacity: 0; } 100% { transform: translateY(0); opacity: 1; } }

/* ==============================================
   🌟 تنسيق مسار الصفحة (Breadcrumb) 🌟
   ============================================== */
.thm-breadcrumb { display: flex; align-items: center; justify-content: center; gap: 15px; margin: 0; padding: 0; }
.thm-breadcrumb li { color: #ffffff; font-weight: 600; font-size: 18px; }
.thm-breadcrumb li a { color: #ffffff; transition: 0.3s; text-decoration: none; }
.thm-breadcrumb li a:hover { color: var(--primary-color); }

.thm-breadcrumb li:last-child { color: var(--primary-color) !important; font-weight: 900; font-size: 20px; margin-right: 5px; }
.thm-breadcrumb li .fas { color: rgba(255, 255, 255, 0.8); font-size: 16px; margin: 0 5px; }

/* ==============================================
   🌟 3. تنسيق العنوان والبادج في جسم الصفحة (تم التوسيط) 🌟
   ============================================== */
.premium-sec-top { margin-bottom: 50px; position: relative; z-index: 2; text-align: center; }
.premium-badge { display: inline-flex; align-items: center; background: rgba(var(--primary-rgb), 0.1); color: var(--primary-color); padding: 8px 25px; border-radius: 30px; font-weight: 800; font-size: 14px; margin-bottom: 15px; border: 1px solid rgba(var(--primary-rgb), 0.2); }
.body-title-animated { color: var(--primary-color) !important; font-size: 32px; font-weight: 900; margin: 0 auto; display: block; position: relative; animation: titleEntrance 1.5s ease-out forwards, softPulse 3s infinite 1.5s; }
@keyframes titleEntrance { 0% { opacity: 0; transform: translateY(30px); } 100% { opacity: 1; transform: translateY(0); } }
@keyframes softPulse { 0% { text-shadow: 0 0 0px rgba(var(--primary-rgb), 0); } 50% { text-shadow: 0 0 15px rgba(var(--primary-rgb), 0.4); } 100% { text-shadow: 0 0 0px rgba(var(--primary-rgb), 0); } }

/* ==============================================
   🌟 4. معرض الصور الاحترافي (بديناميكية اللون) 🌟
   ============================================== */
.project-slider-wrapper { background: #ffffff; border-radius: 18px; padding: 15px; box-shadow: 0 10px 40px rgba(0,0,0,0.05); margin-bottom: 40px; }
.master-image-box { position: relative; height: 450px; border-radius: 12px; overflow: hidden; box-shadow: inset 0 0 20px rgba(0,0,0,0.1); background: #f8f9fa; }
.master-image-box img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.3s ease-in-out; }

.lightbox-inner a {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0.5);
    width: 60px; height: 60px; background: rgba(var(--primary-rgb), 0.9); color: #fff;
    border-radius: 50%; display: flex; justify-content: center; align-items: center;
    font-size: 22px; opacity: 0; transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.master-image-box:hover .lightbox-inner a { opacity: 1; transform: translate(-50%, -50%) scale(1); }

.project-thumbnails { display: flex; gap: 15px; margin-top: 20px; overflow-x: auto; padding-bottom: 10px; scroll-behavior: smooth; }
.project-thumbnails::-webkit-scrollbar { height: 6px; }
.project-thumbnails::-webkit-scrollbar-thumb { background: rgba(var(--primary-rgb), 0.4); border-radius: 10px; }
.thumb-item { min-width: 120px; height: 80px; border-radius: 8px; overflow: hidden; border: 2px solid transparent; opacity: 0.6; transition: all 0.3s ease; cursor: pointer; }
.thumb-item img { width: 100%; height: 100%; object-fit: cover; }
.thumb-item.active, .thumb-item:hover { opacity: 1; border-color: var(--primary-color); transform: translateY(-3px); }

/* ==============================================
   🌟 5. محتوى المشروع (النصوص والوصف) 🌟
   ============================================== */
.project-content-box { background: #ffffff; border-radius: 18px; padding: 40px; box-shadow: 0 10px 40px rgba(0,0,0,0.03); margin-bottom: 40px; }
.project-content-box h4 { font-size: 24px; font-weight: 800; color: #1a1a1a; margin-bottom: 20px; position: relative; padding-bottom: 15px; }
.project-content-box h4::after { content: ''; position: absolute; bottom: 0; right: 0; width: 50px; height: 3px; background: var(--primary-color); border-radius: 5px; }
.project-content-box p { font-size: 16px; line-height: 1.9; color: #666; }

/* ==============================================
   🌟 6. تفاصيل المشروع (CSS Grid Widgets) 🌟
   ============================================== */
.project-details-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-top: 30px; }
.detail-widget { background: #f8f9fa; border: 1px solid #f0f0f0; border-radius: 12px; padding: 20px; display: flex; align-items: center; gap: 15px; transition: all 0.3s ease; }
.detail-widget:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(var(--primary-rgb), 0.08); border-color: rgba(var(--primary-rgb), 0.2); background: #ffffff; }

.detail-icon { width: 50px; height: 50px; background: rgba(var(--primary-rgb), 0.1); color: var(--primary-color); border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 20px; transition: all 0.3s ease; }
.detail-widget:hover .detail-icon { background: var(--primary-color); color: #ffffff; }

.detail-text h5 { font-size: 13px; color: #888; margin: 0 0 5px 0; font-weight: 600; }
.detail-text span { font-size: 15px; color: #1a1a1a; font-weight: 700; }

/* ==============================================
   🌟 7. فقاعة تعليق العميل (Review Bubble) 🌟
   ============================================== */
.client-review-bubble { background: #f4f7f6; padding: 30px 40px; border-radius: 20px 0 20px 20px; border-right: 4px solid var(--primary-color); position: relative; margin-top: 20px; transition: all 0.3s ease; }
.client-review-bubble:hover { background: #ffffff; box-shadow: 0 15px 30px rgba(0,0,0,0.05); }
.client-review-bubble::before { content: '\f10e'; font-family: 'Font Awesome 5 Free'; font-weight: 900; position: absolute; top: 20px; left: 30px; font-size: 40px; color: rgba(var(--primary-rgb), 0.1); }
.client-review-bubble p { font-size: 16px; font-style: italic; color: #555; margin: 0; line-height: 1.8; }

/* ==============================================
   🌟 8. الشريط الجانبي (Sidebar) - إبادة وتوحيد 🌟
   ============================================== */
.premium-sidebar { background: #ffffff; border-radius: 18px; padding: 30px; box-shadow: 0 10px 40px rgba(0,0,0,0.03); }
.premium-sidebar h3 { font-size: 20px; font-weight: 800; color: #1a1a1a; margin-bottom: 25px; padding-bottom: 15px; border-bottom: 2px solid #f0f0f0; position: relative; }
.premium-sidebar h3::after { content: ''; position: absolute; bottom: -2px; right: 0; width: 40px; height: 2px; background: var(--primary-color); }

.premium-sidebar ul { list-style: none !important; padding: 0 !important; margin: 0 !important; }
.premium-sidebar ul li { margin-bottom: 15px !important; position: relative !important; display: block !important; border-radius: 8px !important; }

.premium-sidebar ul li::before, .premium-sidebar ul li::after, .premium-sidebar ul li a::before { display: none !important; content: none !important; background: none !important; }

/* 🟢 الحالة العادية للزرار */
.premium-sidebar ul li a {
    display: flex !important; align-items: center !important; justify-content: space-between !important;
    padding: 15px 25px !important; background-color: #ffffff !important; color: #1a1a1a !important;
    font-weight: 700 !important; font-size: 14px !important; border-radius: 8px !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03) !important; text-decoration: none !important;
    border: none !important; border-left: 8px solid transparent !important; z-index: 5 !important;
}

/* 🟢 السهم جهة اليسار */
.premium-sidebar ul li a::after {
    content: '\f104' !important; /* fa-angle-left */
    font-family: 'Font Awesome 5 Free' !important; font-weight: 900 !important;
    color: inherit !important; transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important; display: block !important;
}

/* 🟢 حالة النشط (Active) والهوفر (Hover) */
.premium-sidebar ul li.active a,
.premium-sidebar ul li:hover a {
    background-color: var(--primary-color) !important; color: #ffffff !important;
    border-left: 8px solid #ffffff !important; transform: translateY(-5px) scale(1.02) !important;
    box-shadow: 0 15px 35px rgba(var(--primary-rgb), 0.35) !important;
}

.premium-sidebar ul li:hover a::after { transform: translateX(-6px) scale(1.2) !important; }

/* ==========================================
   🌟 شريط المشاريع المتحرك بديناميكية 🌟
   ========================================== */
.premium-sliding-bar { background-color: transparent; padding: 30px 0; overflow: hidden; display: flex; white-space: nowrap; position: relative; z-index: 50; direction: ltr; }
.premium-sliding-track { display: flex; align-items: center; animation: marquee-horizontal-bar 35s linear infinite; }
.premium-sliding-track:hover { animation-play-state: paused; }
.premium-sliding-item { display: flex; align-items: center; padding: 0 30px; }
.premium-sliding-item h4 { color: rgba(var(--primary-rgb), 0.5); font-size: 35px; font-weight: 900; margin: 0; font-family: 'Tajawal', sans-serif; text-transform: uppercase; transition: all 0.4s ease; cursor: pointer; }
.premium-sliding-item h4:hover { color: var(--primary-color); text-shadow: 0 0 15px rgba(var(--primary-rgb), 0.6); transform: scale(1.05); }
.premium-sliding-icon { display: flex; align-items: center; justify-content: center; margin-left: 30px; animation: spin-star 10s linear infinite; }
.premium-sliding-icon svg { width: 35px; height: 35px; stroke: rgba(var(--primary-rgb), 0.6); }
@keyframes marquee-horizontal-bar { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@keyframes spin-star { 100% { transform: rotate(360deg); } }
@media (max-width: 768px) { .premium-sliding-bar { padding: 20px 0; } .premium-sliding-item h4 { font-size: 24px; } .premium-sliding-item { padding: 0 20px; } .premium-sliding-icon { margin-left: 20px; } .premium-sliding-icon svg { width: 28px; height: 28px; } }