/* أنماط أساسية */
.fullscreen-slider {
    position: relative;
    width: 100%;
    height: 115vh;
    overflow: hidden;
}

.slider-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

/* صورة الخلفية */
.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.slide-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* حاوية المحتوى (التعديل الرئيسي هنا) */
.slide-container {
    position: relative;
    height: 100%;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

/* قالب المنتج */
.product-template {
    width: 450px;
    max-width: 100%;
    z-index: 10;
    margin-right: 0%;
    margin-left: 66%;
}

.product-cardd {
    background: rgb(255 255 255 / 0%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 55px;
    padding: 2.5rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.8s ease;
    transition-delay: 0.3s;
}
.slide.active .product-cardd {
    transform: translateY(0);
    opacity: 1;
}

.product-image {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 50%;
    /* border: 9px solid #ffffff00; */
    display: block;
    /* margin: -100px auto 1.5rem; */
    box-shadow: 0 10px 30px rgb(0 0 0 / 0%);
}

.about-experience-content {
    color: #ffffff;
    background-color: white;
    border: 17px solid;
    border-radius: 14px;
}

.product-titlee {
    font-size: 2rem;
    color: #333;
    margin-bottom: 1rem;
    text-align: center;
    font-weight: 700;
}

.product-description {
    font-size: 1rem;
    color: #f8f9fa;
    line-height: 1.8;
    text-align: center;
    margin-bottom: 1.5rem;
}

.product-meta {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.product-meta span {
    background: rgba(139, 90, 43, 0.1);
    color: #8B5A2B;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.product-meta i {
    font-size: 0.8rem;
}

/* زر الفيديو */
.video-btn {
    position: absolute;
    bottom: 5%;
    right: 5%;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 12px 25px;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 10;
    transition: all 0.3s ease;
}

.video-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.05);
}

.video-btn i {
    font-size: 1.2rem;
}

/* عناصر التحكم */
.slider-controls {
    position: absolute;
    bottom: 3%;
    left: -60%;
    transform: scale(1.5);
    display: -webkit-inline-box;
    align-items: center;
    gap: 2rem;
    z-index: 10;
}

.control-prev, .control-next {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.control-prev:hover, .control-next:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.slider-pagination {
    display: flex;
    gap: 0.8rem;
}

.pagination-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.pagination-dot.active {
    background: white;
    transform: scale(1.3);
}

/* نافذة الفيديو */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 900px;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    z-index: 1001;
}

.product-titlee {
    color: #f8f9fa;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* نسبة 16:9 */
    height: 0;
    overflow: hidden;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* التصميم للهواتف */
@media (max-width: 768px) {
    .slide-container {
        flex-direction: column; /* تغيير اتجاه العناصر إلى عمودي */
        justify-content: flex-start; /* المحاذاة من الأعلى */
        align-items: center; /* توسيط العناصر أفقيًا */
        padding-top: 60vh; /* إبعاد القالب عن الجزء العلوي */
        padding-bottom: 2rem;
    }
  
    
    .fullscreen-slider {
        position: relative;
        width: 100%;
        height: 142vh;
        overflow: hidden;
    }


    .product-template {
        width: 90%;
        margin: 2rem 0 0 0; /* إزالة الهامش الجانبي */
        order: 2; /* جعل القالب يأتي بعد الصورة */
    }
    
    .slide-bg {
        height: 60vh; /* تقليل ارتفاع الصورة الخلفية */
    }
    
    .product-cardd {
        margin-top: 0; /* إزالة الهامش العلوي */
    }
    
    /* .product-image {
        margin-top: -70px; 
    }
     */
    .product-titlee {
        font-size: 1.5rem;
        color: #8b5a2b;
    }
    
    .product-description {
        font-size: 0.9rem;
        color: black;
    }
    
    .video-btn {
        bottom: 68%;
        right: 59%;
        transform: rotateY(45deg);
        width: max-content;
    }
    
    .slider-controls {
        bottom: 56%;
        left: -35%;
        transform: scale(1.5);
        display: -webkit-inline-box;
    }
    
    .control-prev, .control-next {
        width: 40px;
        height: 40px;
    }
}

/* Clients / Brands section - match home page card methodology */
.clients-section,
.brands-section {
	background: #ffffff;
	border: 1px solid #e0e0e0;
	border-radius: 16px;
	padding: 24px 16px;
}

.clients-section .section-header, .brands-section .section-header {
	margin-bottom: 1.25rem;
	text-align: center;
}

.clients-section .section-subtitle, .brands-section .section-subtitle {
	display: block;
	color: #8b5a2b;
	font-size: 1.1rem;
	margin-bottom: 0.25rem;
	font-weight: 600;
}

.clients-section .section-title, .brands-section .section-title {
	color: #3a2c1a;
	font-size: 2rem;
	margin: 0;
	position: relative;
}

.clients-section .section-title::after, .brands-section .section-title::after {
	content: '';
	display: block;
	width: 50px;
	height: 3px;
	background: #8b5a2b;
	margin: 10px auto 0;
	border-radius: 2px;
}

/* Grid */
.clients-grid, .brands-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 16px;
}

/* Card */
.client-card, .brand-card {
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 12px;
	padding: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 90px;
	transition: none; /* no animations */
	box-shadow: none; /* no shadows */
}

.client-card:hover, .brand-card:hover {
	border-color: #c8c8c8; /* subtle only */
}

.client-logo, .brand-logo {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	display: block;
	filter: none;
	opacity: 1;
	transition: none;
}

/* Compact row scroller for phones (optional) */
@media (max-width: 768px) {
	.clients-grid, .brands-grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 12px;
	}
	.client-card, .brand-card { height: 80px; padding: 10px; }
	.clients-section, .brands-section { padding: 18px 12px; }
	.clients-section .section-title, .brands-section .section-title { font-size: 1.6rem; }
}