/* ============================================
   SINGLE PROJECTS PAGE - FINAL CLEAN VERSION
   ============================================ */

/* ===== PAGE LAYOUT ===== */
.single-project-clean {
    background-color: #edeeee !important;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Elementor Container */
.e-con-inner {
    max-width: 1300px;
    margin: 0 auto;
    padding: 24px 8px 8px !important;
    width: 100%;
}

/* ===== PROJECT HEADER ===== */
.project-top-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    padding-bottom: 8px;
}

.project-categories {
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #666;
    font-weight: 500;
}

.project-scope {
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #000;
    font-weight: 600;
}

/* ===== PROJECT INFO ===== */
.project-main-info {
    margin-bottom: 0px;
}



.project-top-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.project-categories {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 400;
    color: #666;
}

.title-scope-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0px;
}

.project-title {
    margin: 0;
    font-size: 42px;
    font-weight: 400;
}

.project-scope-wrapper {
    text-align: right;
}

.project-scope-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #666;
    font-weight: 400;
}

.project-description {
    font-size: 16px;
    line-height: 1.6;
    color: #444;
    margin-bottom: 20px;
    max-width: 800px;
}

.project-location-year {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: #888;
    margin-bottom: 0px;
}

@media (max-width: 768px) {
    .title-scope-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }
    
    .project-scope-wrapper {
        text-align: left;
    }
    
    .project-title {
        font-size: 32px;
    }
}

.project-title {
    font-size: 20px;
    font-weight: 500;
    margin: 0px 0 8px 0;
    color: #000;
    letter-spacing: 0;
    font-family: montserrat;
    text-transform: uppercase;
}

.project-description {
    font-size: 16px;
    font-weight: 400;
    color: #444;
    margin: 0 0 8px 0;
    max-width: 600px;
    font-family: montserrat;
    font-style: normal !important;
}

.project-location-year {
    font-size: 14px;
    color: #555;
    display: block;
}

.project-location {
    display: block;
    margin-bottom: 0px;
    font-family: montserrat;
    text-transform: capitalize;
}

.project-year {
    display: block;
}

/* ===== GALLERY CONTAINER ===== */
.project-gallery-clean {
    width: 100%;
    position: relative;
}

.project-gallery-clean .e-con-inner {
    padding: 0 8px !important;
    overflow: visible !important;
}

/* ===== GALLERY TRACK (MAIN FIX) ===== */
.gallery-track-clean {
    display: flex;
    gap: 8px;
    cursor: grab;
    
    /* إخفاء scrollbar نهائياً */
    scrollbar-width: none !important; /* Firefox */
    -ms-overflow-style: none !important; /* IE/Edge */
    
    /* تمكين السحب */
    user-select: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    
    /* Scroll behavior */
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-behavior: smooth;
    
    /* للأجهزة اللوحية */
    -webkit-overflow-scrolling: touch;
    
    /* إجبار التوسع */
    width: fit-content !important;
    min-width: 100% !important;
    
    padding: 10px 0 8px;
}

/* إخفاء scrollbar في Chrome/Safari */
.gallery-track-clean::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

/* حالة السحب النشط */
.gallery-track-clean.grabbing {
    cursor: grabbing !important;
    scroll-behavior: auto !important;
}

/* ===== GALLERY SLIDES (2.5 IMAGES VIEW) ===== */
.gallery-slide-clean {
    flex: 0 0 38% !important;
    min-width: 38% !important;
    height: 65vh;
    min-height: 420px;
    flex-shrink: 0 !important;
    
    /* Scroll snapping */
    scroll-snap-align: start;
    scroll-margin: 0 10px;
    
    /* Design */
    overflow: hidden;
    border-radius: 0px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    
    /* Enable dragging over images */
    pointer-events: none;
}

/* الصورة الثالثة نصف عرض (لإظهار 2.5 صورة) */
.gallery-slide-clean:nth-child(3) { 
    flex: 0 0 20% !important;
    min-width: 20% !important;
    opacity: 0.9;
}

.gallery-slide-clean:hover {
    pointer-events: auto;
}

.gallery-slide-clean:first-child { 
    margin-left: 0; 
}

.gallery-slide-clean:nth-child(2) { 
    opacity: 0.95; 
}

.gallery-image-clean {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
    
    /* Prevent image drag */
    pointer-events: none;
    user-drag: none;
    -webkit-user-drag: none;
}

.gallery-slide-clean:hover .gallery-image-clean {
    transform: scale(1.03);
    pointer-events: auto;
}

/* ===== RESPONSIVE DESIGN ===== */

/* للأجهزة المتوسطة */
@media (max-width: 1300px) {
    .e-con-inner {
        padding: 40px 5% !important;
    }
    
    .gallery-slide-clean {
        height: 60vh;
    }
    
    .project-gallery-clean .e-con-inner {
        padding: 0 5% !important;
    }
}

/* للأجهزة المحمولة */
@media (max-width: 768px) {
    .e-con-inner {
        padding: 30px 4% !important;
    }
    
    .project-title {
        font-size: 18px;
    }
    
    .project-description {
        font-size: 14px;
    }
    
    .gallery-slide-clean {
        flex: 0 0 85% !important;
        min-width: 85% !important;
        height: 50vh;
        min-height: 400px;
    }
	
    
    /* على الموبايل، الصورة الثالثة كاملة */
    .gallery-slide-clean:nth-child(3) { 
        flex: 0 0 85% !important;
        min-width: 85% !important;
        opacity: 1;
    }
    
    .project-top-bar {
        margin-bottom: 30px;
    }
    
    .gallery-track-clean {
        gap: 15px;
        padding: 10px 0 20px;
    }
    
    .project-gallery-clean .e-con-inner {
        padding: 0 4% !important;
    }
}

/* للأجهزة الصغيرة جداً */
@media (max-width: 480px) {
    .gallery-slide-clean {
        height: 45vh;
        min-height: 350px;
    }
    
    .project-title {
        font-size: 16px;
    }
    
    .project-categories,
    .project-scope {
        font-size: 11px;
        letter-spacing: 1px;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(10px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

.project-top-bar,
.project-main-info,
.gallery-slide-clean {
    animation: fadeIn 0.6s ease-out;
}

/* ===== HIDE ALL PROGRESS BARS ===== */
.gallery-progress,
.gallery-progress-bar,
.scroll-progress,
.progress-bar,
[class*="progress"],
[class*="Progress"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
}


/* ========== موبايل - سنجل بروجيكت ========== */
@media only screen and (max-width: 767px) {
    
    .single-project-clean .project-main-info {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: 100%;
    }
    
    /* اللوكيشن بس فوق */
    .single-project-clean .project-location-year {
        order: 1;
        display: flex;
        justify-content: center;
        margin-bottom: 0px;
        width: 100%;
    }
    
    /* اخفاء السنة */
    .single-project-clean .project-year {
        display: none;
    }
    
    /* اسم المشروع في النص */
    .single-project-clean .project-title {
        order: 2;
        margin-bottom: 0px;
        font-size: 18px;
        width: 100%;
    }
    
    /* السكوب تحت */
    .single-project-clean .project-scope-wrapper {
        order: 3;
        text-align: center;
        margin-bottom: 0px;
        width: 100%;
    }
    
    /* الوصف تحت السكوب */
    .single-project-clean .project-description {
        order: 4;
        text-align: center;
        width: 100%;
    }
    
    /* إخفاء الكاتيجوري العلوي */
    .single-project-clean .project-top-bar {
        display: none;
    }
    
    /* إلغاء flex بتاع العنوان والسكوب */
    .single-project-clean .title-scope-wrapper {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    
    /* تعديلات عامة */
    .single-project-clean .project-location {
        font-size: 14px;
        color: #666;
        font-weight: 400;
    }
    
    .single-project-clean .project-scope-label {
        font-size: 13px;
        letter-spacing: 1px;
        color: #888;
        text-transform: uppercase;
    }
}