/* إعدادات الخطوط الأساسية والصفحة */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* خلفية متدرجة رائعة للقسم باللون الأزرق */
.team-section {
    padding: 30px 0;
    color: #ffffff;
    overflow: hidden;
    position: relative;
		width: 100%;

}

.containertm {
	width:95%;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
	    color: #ffffff;
    margin-bottom: 10px;
    font-weight: 700;
    letter-spacing: 1px;
}

.section-subtitle {
    font-size: 1.1rem;
	font-weight:700;
    color: #ffffff;
    margin-bottom: 50px;
}

/* حاوية السلايدر وهيكل التنقل */
.slider-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.slider-container {
    display: flex;
    gap: 25px;
    overflow-x: hidden;
    scroll-behavior: smooth;
    width: 100%;
    padding: 20px 0; /* تم إلغاء الـ 5px الجانبية لمنع قص الكرت الرابع */
}

/* تصميم الكارت وتأثير البروز */
.team-card {
    flex: 0 0 calc((100% - 75px) / 4); /* تقسيم المساحة الصافية بدقة على 4 كروت */
    max-width: calc((100% - 75px) / 4);
    transition: transform 0.4s ease;
}

@media (max-width: 1200px) {
    .team-card { 
        flex: 0 0 calc((100% - 50px) / 3); 
        max-width: calc((100% - 50px) / 3);
    }
}

@media (max-width: 992px) {
    .team-card { 
        flex: 0 0 calc((100% - 25px) / 2); 
        max-width: calc((100% - 25px) / 2);
    }
}

@media (max-width: 600px) {
    .team-card { 
        flex: 0 0 100%; 
        max-width: 100%;
    }
}

.card-inner {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    background-color: #1a3644;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    aspect-ratio: 3/4;
    border: 2px solid rgba(0, 122, 255, 0.2);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* تأثير التفاعل عند تمرير الماوس فوق الكارت */
.team-card:hover .card-inner {
    border-color: #0040fe;
    box-shadow: 
        inset 0 0 15px rgba(0, 64, 254, 0.3),
        0 0 20px rgba(0, 64, 254, 0.6),
        0 0 40px rgba(0, 64, 254, 0.2);
}

.member-img {
    width: 100%;
    height: 610px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.team-card:hover .member-img {
    transform: scale(1.1) blur(2px);
}

/* الطبقة المخفية التي تظهر من أسفل لأعلى لتغطي الصورة بالكامل */
.member-info-overlay {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(15, 32, 39, 0.95), rgba(32, 58, 67, 0.9));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
    transition: bottom 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
}

.team-card:hover .member-info-overlay {
    bottom: 0;
}

.member-name {
    font-size: 2.2rem;
    font-weight: 700;
    color: #e0e0e0 !important;
    margin-bottom: 15px;
    transform: translateY(20px);
    transition: transform 0.4s ease 0.1s;
}

.member-position {
    font-size: 1.15rem;
    color: #0040fe;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    background: rgba(0, 122, 255, 0.1);
    padding: 3px 12px;
    border-radius: 20px;
    transform: translateY(20px);
    transition: transform 0.4s ease 0.15s;
}

.member-details {
    font-size: 0.9rem;
    color: #e0e0e0;
    line-height: 1.6;
    margin-bottom: 25px;
    transform: translateY(20px);
    transition: transform 0.4s ease 0.2s;
}

/* عند فتح الكارت، تتحرك النصوص لأماكنها بسلاسة */
.team-card:hover .member-name,
.team-card:hover .member-position,
.team-card:hover .member-details,
.team-card:hover .linkedin-icontm {
    transform: translateY(0);
}

/* تصميم أيقونة لينكد إن التفاعلية الرائعة */
.linkedin-icontm {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    background-color: #ffffff;
    color: #0077b5; /* لون لينكد إن الأصلي */
    border-radius: 50%;
    font-size: 1.25rem;
    text-decoration: none !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transform: translateY(10px) rotate(0deg) !important;
    transition: transform 0.4s ease 0.25s, background-color 0.3s ease, color 0.3s ease !important;
}

.linkedin-icontm:hover {
    background-color: #0040fe;
    color: #ffffff;
    transform: scale(1.15) rotate(360deg) !important; /* دوران كامل وتكبير جذاب */
	    box-shadow: 0 0 15px rgba(0, 64, 254, 0.8);
}

/* أزرار التحكم اليمين واليسار */
.slide-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 122, 255, 0.2);
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.3s, transform 0.2s;
    backdrop-filter: blur(5px);
}

.slide-btn:hover {
    background: #0040fe;
}

.slide-btn:active {
    transform: translateY(-50%) scale(0.9);
}

.prev-btntm { right: -25px; }
.next-btntm { left: -25px; }

/* إخفاء الأزرار خارج الحاوية في الشاشات الصغيرة جداً للحفاظ على المظهر */
@media (max-width: 768px) {
    .prev-btntm { right: 5px; }
    .next-btntm { left: 5px; }
    .slide-btn { width: 40px; height: 40px; font-size: 1.2rem; }
}

/* نقاط المؤشر السفلي */
.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: background-color 0.3s ease, width 0.3s ease;
}

.dot.active {
    background-color: #0040fe;
    width: 25px; /* تصبح مستطيلة انسيابية عند التفعيل */
    border-radius: 5px;
}
.section-title {
	font-family: Cairo;
    font-weight: 800; /* تجعل العنوان عريضاً وقوياً */
}
.member-name {
		font-family: Cairo;
		color: #ffffff !important;
    font-weight: 700; /* تبرز اسم الموظف */
	background-color:#ffffff;
}
.member-position {
    font-weight: 600; /* وزن متوسط للوظيفة */
}
.member-details {
		font-family: Cairo;
    font-weight: 400 !important; /* وزن خفيف ومريح للقراءة للتفاصيل */
}