/* PROJECTS PAGE STYLES */
body.projects-page {
    background-color: #EDEEEE !important;
}

.e-con-inner {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0px;
    font-family: 'Poppins', sans-serif;
}

.projects-layout {
    display: flex;
    gap: 60px;
    padding: 0;
    margin-top: 150px;
}

.filter-sidebar {
    width: 250px;
    flex-shrink: 0;
	padding-top: 4%;
}

.filter-group {
    margin-bottom: 30px;
}

.accordion-head h4 {
    font-size: 12px;
    margin-bottom: 0px;
    font-weight: 400;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 1px;
	font-family: 'Montserrat', sans-serif;
}

.filter-option {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    color: #333;
	text-transform: uppercase;
}

.filter-group .accordion{margin-bottom:8px;}


.filter-option input[type="radio"] {
    display: none;
}

.radio-custom {
    width: 16px;
    height: 16px;
    border: 2px solid #000;
    border-radius: 50%;
    margin-right: 10px;
    position: relative;
    flex-shrink: 0;
}

.filter-option input[type="radio"]:checked + .radio-custom {
    background: #000;
}

.filter-option input[type="radio"]:checked + .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
}

.accordion-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding-bottom: 0px;
    border-bottom: 1px solid #000;
    margin-bottom: 16px;
}

.acc-icon {
    font-size: 20px;
    transition: transform 0.3s ease;
    font-weight: 300;
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, margin-top 0.3s ease;
    padding-left: 0;
}

.accordion.active .accordion-body {
    max-height: 500px;
    margin-top: 8px;
}

.accordion.active .acc-icon {
    transform: rotate(45deg);
}

.projects-slider-container {
    flex: 1;
    position: relative;
    padding: 0 40px;
}

.projects-swiper {
    width: 100%;
    height: 400px;
}

.swiper-slide {
    width: 420px !important;
    height: 400px;
}

.project-card {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    display: block;
    text-decoration: none;
    border-radius: 0px;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    padding: 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.project-card:hover .overlay {
    opacity: 1;
    transform: translateY(0);
}

.project-card:hover .project-img {
    transform: scale(0);
}

.overlay h3 {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-location {
    color: #fff;
    font-size: 12px;
    text-align: center;
    margin: 5px 0 0;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}


.swiper-button-next,
.swiper-button-prev {
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 16px;
    color: #000;
    font-weight: bold;
}

.swiper-button-next {
    right: 0;
}

.swiper-button-prev {
    left: 0;
}


.swiper-button-next,
.swiper-button-prev {
    display: none !important;
}

@media (max-width: 992px) {
    .projects-layout {
        flex-direction: column;
        gap: 40px;
        margin-top: 120px;
    }
    
    .filter-sidebar {
        width: 100%;
		padding: 0 16px;
    }
	
    
    .projects-slider-container {
        padding: 0 20px;
    }
    
    .swiper-button-next,
    .swiper-button-prev {
        display: none;
    }
}



/* MOUSEWHEEL FIX */
.projects-slider-container {
    cursor: grab !important;
    overflow: visible !important;
    position: relative !important;
}

.projects-slider-container:active {
    cursor: grabbing !important;
}

/* Ensure swiper container is visible for mousewheel */
.projects-swiper {
    touch-action: pan-y !important;
}

.swiper-wrapper {
    user-select: none !important;
    -webkit-user-select: none !important;
}

/* Fix for touch devices */
@media (hover: hover) and (pointer: fine) {
    .projects-slider-container:hover {
        cursor: grab;
    }
}

/* Make sure nothing is blocking the wheel events */
.projects-slider-container * {
    pointer-events: auto !important;
}

/* Prevent text selection during scroll */
.projects-slider-container {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}


/* الأسهم */
.projects-arrows {
    display: flex;
    gap: 15px;
    margin-top: 40px;
}
.arrow-left, .arrow-right {
    cursor: pointer;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #000;
    border-radius: 50%;
    transition: all 0.3s ease;
}
.arrow-left img, .arrow-right img {
    width: 20px;
    height: auto;
}
.arrow-left:hover, .arrow-right:hover {
    background: #000;
}
.arrow-left:hover img, .arrow-right:hover img {
    filter: brightness(0) invert(1);
}
@media (max-width: 992px) {
    .projects-arrows {
        justify-content: center;
    }
}

/* ============================================
   URGENT FIX: PREVENT SLIDE CONTENT FROM OVERLAYING FILTER
   ============================================ */

/* 1. خفض z-index لكل العناصر داخل السلايدر */
.swiper-slide,
.project-card,
.project-img,
.overlay {

    z-index: 1 !important; /* قيمة منخفضة جداً */
    transform: translateZ(0) !important; /* Force GPU rendering */
}

/* 2. رفع z-index للفلتر */
.filter-sidebar,
.filter-group,
.accordion,
.accordion-head,
.accordion-body,
.filter-option,
.radio-custom,
.option-label {
    position: relative !important;
    z-index: 1000 !important; /* قيمة عالية جداً */
}

/* 3. إضافة حاجز أمام السلايدر */
.projects-slider-container::before {
    content: '';
    background-color: transparent !important;
    z-index: 999 !important; /* بين الفلتر والسلايدر */
    pointer-events: none !important;
}

/* 4. تقليل حجم السلايدر بشكل إضافي */
.projects-slider-container {
    width: auto !important; /* زيادة المسافة */
    margin-left: 0px !important; /* تحريك لليمين أكثر */
}

/* 5. منع أي hover effects ترفع z-index */
.project-card:hover {
    z-index: 2 !important; /* زيادة بسيطة فقط */
    transform: scale(1) !important; /* تقليل تأثير الـ hover */
}

/* 6. حل جذري: clip-path يقص أي جزء يخرج */
.projects-slider-container {
    clip-path: polygon(20px 0, 100% 0, 100% 100%, 20px 100%) !important;
    -webkit-clip-path: polygon(20px 0, 100% 0, 100% 100%, 20px 100%) !important;
}

/* 7. للموبايل: إرجاع كل شيء طبيعي */
@media (max-width: 992px) {
    .projects-slider-container {
        width: 100% !important;
        margin-left: 0 !important;
        clip-path: none !important;
        -webkit-clip-path: none !important;
    }
    
    .projects-slider-container::before {
        display: none;
    }
}

/* منع المسافة البيضاء نهائياً */
.projects-slider-container {
    max-width: 100%;
}

.projects-swiper {
}

.swiper-wrapper {
    display: flex;
    flex-wrap: nowrap;
}

.swiper-slide {
    width: 420px !important;
    flex-shrink: 0;
	margin-right: 16px !important;
}

/* منع السكرول الأفقي للصفحة */
body {
    overflow-x: hidden;
}