/* Instructors Section */
.instructors {
    padding: 6rem 0;
    background-color: var(--bg-light); /* خلفية خفيفة للقسم */
}

.instructors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.instructor-card {
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    text-align: center;
    border: 1px solid rgba(0,0,0,0.05);
    position: relative; /* عشان العناصر المطلقة جواه */
    display: flex;
    flex-direction: column; /* عشان نضمن توزيع المحتوى صح */
}

.instructor-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.instructor-image {
    position: relative;
    height: 300px;
    width: 100%;
    overflow: hidden;
    background-color: #f0f0f0; /* لون خلفية لو مفيش صورة */
}

.instructor-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.instructor-card:hover .instructor-image img {
    transform: scale(1.05); /* زوم خفيف عند الهوفر */
}

/* السوشيال ميديا: تظهر بس عند الهوفر بشكل انسيابي */
.instructor-social {
    position: absolute;
    bottom: -50px; /* مخفية تحت الصورة مبدئياً */
    left: 0;
    width: 100%;
    padding: 1rem 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    display: flex;
    justify-content: center;
    gap: 1rem;
    transition: bottom 0.3s ease-in-out;
    opacity: 0;
}

.instructor-card:hover .instructor-social {
    bottom: 0; /* تطلع لفوق عند الهوفر */
    opacity: 1;
}

.instructor-social a {
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: all 0.3s ease;
    font-size: 1rem;
}

.instructor-social a:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
}

.instructor-info {
    padding: 1.5rem;
    flex-grow: 1; /* ياخد المساحة المتبقية */
    display: flex;
    flex-direction: column;
}

.instructor-info h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.instructor-title {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    min-height: 1.5em; /* يحافظ على مكان العنوان حتى لو فاضي */
}

.instructor-description {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* يظهر 3 أسطر بس */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* فاصل خطي قبل الإحصائيات */
.instructor-stats {
    margin-top: auto; /* يزق الإحصائيات لآخر الكارت */
    padding-top: 1rem;
    border-top: 1px solid rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.instructor-stats .stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.instructor-stats .instructor-stat-num{
    display: block;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-dark); /* لون واضح للأرقام */
}

.instructor-stats .stat-label {
    font-size: 0.8rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* زر عرض جميع المدربين */
.instructors-cta {
    margin-top: 3rem;
    text-align: center;
}
