
/* ======= الكارد ======= */
.instructor-card {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.30);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    height: auto;
    box-sizing: border-box;
    margin-bottom: 0;
}

/* تنسيق التفاصيل الإضافية */
.instructor-details {
    display: flex;
    justify-content: space-between; /* توزيع العناصر في العرض */
    gap: 20px; /* المسافة بين العناصر */
    margin-top: 20px; /* المسافة بين هذه المنطقة والتقييم */
    flex-wrap: wrap; /* في حال كان العرض ضيقًا، سيقوم بتوزيع العناصر في صفوف جديدة */
}

.detail-item {
    text-align: center; /* محاذاة النص في وسط كل عنصر */
}

.detail-label {
    font-size: 14px;
    color: #666; /* لون فاتح للكلمة */
    font-weight: 600;
    margin-bottom: 5px; /* مسافة بين الكلمة والقيمة */
}

.detail-value {
    font-size: 16px;
    font-weight: bold;
    color: #378856; /* لون القيمة */
}

.tab-content {
    margin-top: 8px;
    max-height: auto;
    overflow-y: auto;
}

/* صورة المدرس */
.instructor-card img.img-cover {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 50%;
}

/* تقييم وعلامة التحقق */
.instructor-card__rate,
.instructor-card__verified-badge {
    position: absolute;
    z-index: 2;
}

/* السعر وخط الفاصل */
.instructor-card h6 {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding-bottom: 2px;
    margin-bottom: 2px;
    font-size: 24px !important;
}

.instructor-card-separator {
    border: 0;                /* إزالة الحدود الافتراضية */
    border-top: 1px solid #ddd; /* إضافة خط فاصل في الأعلى */
    margin: 10px 0;           /* إضافة هوامش أعلى وأسفل الخط */
}

/* تنسيق الـ Pill الخاصة بالتقييم */
/* تنسيق الـ Pill الخاصة بالتقييم */
.rating-pill {
    background-color: #f0faf0; /* خلفية فاتحة */
    border-radius: 50px; /* حواف دائرية مثل حبة الأيام */
    padding: 6px 14px; /* تباعد داخلي مناسب */
    font-size: 14px; /* حجم الخط */
    font-weight: bold; /* جعله بالخط العريض */
    color: #378856; /* لون النص */
    border: 1px solid #378856;
    display: inline-flex; /* عرض مناسب للنص فقط */
    align-items: center;
    justify-content: center; /* محاذاة المحتوى داخل الـ pill */
    margin-top: 10px; /* مسافة من العناصر الأخرى */
    height: 32px; /* تحديد ارتفاع ثابت للـ Pill */
    min-width: 80px; /* تحديد عرض الأدنى حسب النص */
    text-align: center; /* محاذاة النص في الوسط */
}

/* تنسيق الكلمة "تقييم" */
.pill-label {
    margin-left: 5px; /* يمكنك تعديل هذه القيمة لتحكم المسافة */
}

/* تنسيق الرقم الخاص بالتقييم */
.pill-value {
    color: #378856; /* لون الرقم (يمكن تغييره) */
}

.rating-pill-container {
    display: flex;
    justify-content: flex-end; /* يدفع الـ Pill إلى أقصى اليمين */
    width: 100%; /* تأكد من أن العنصر الأب يغطي العرض الكامل */
    padding-top: 10px; /* المسافة العليا */
}

/* التابات */
/* ===== Pills Container ===== */
.days-pills {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-top: 6px;
    padding-bottom: 6px;
    scrollbar-width: none; /* Firefox */
    margin-top: 0 !important;
}

.days-pills::-webkit-scrollbar {
    display: none; /* Chrome */
}

/* ===== Pill Item ===== */
.days-pills .nav-link {
    background-color: #f5fdf9;
    color: #2d9e7e !important;
    font-weight: 600;
    font-size: 13px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid #2d9e7e;
    white-space: nowrap;
    transition: all 0.2s ease;
    line-height: 1;
}

.days-pills .nav-link::before,
.days-pills .nav-link::after {
    display: none !important;
}

.days-pills .nav-link.active {
    background-color: #2d9e7e;
    color: #fff !important;
    border-color: #2d9e7e;
    box-shadow: 0 3px 8px rgba(0,0,0,0.12);
    transform: translateY(-1px);
}

.days-pills .nav-link:hover {
    background-color: #e6f4ef;
}

.days-pills-wrapper {
    margin-top: 14px;
    padding: 10px 4px 6px 4px;

    border-radius: 12px;
}

/* الأقسام */
.category-title {
    font-size: 12px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 4px;
}

.category-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.category-item {
    background-color: #e6f4ef;
    color: #000000;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

/* الأزرار أسفل الكارد */
.d-flex.justify-content-between.mt-auto {
    margin-top: 16px;
    border-top: 1px solid #eee;
    padding-top: 12px;
}

/* أوقات الاجتماع */
.instructor-card .meeting-time {
    font-size: 16px;
    color: #000000;
    font-weight: 600;
}

/* زر الحجز */
.instructor-card a.bg-primary.text-white {
    border: 1px solid #fff;
    transition: all 0.2s ease;
}

.instructor-card a.bg-primary.text-white:hover {
    background-color: #ffffff !important;
    color: #2d9e7e !important;
    border-color: #ffffff !important;
}

.instructor-card a.bg-primary.text-white:hover .icons {
    color: #2d9e7e !important;
}

/* زر البروفايل */
.instructor-card a.bg-white.text-primary {
    border: 1px solid #2d9e7e;
    transition: all 0.2s ease;
}

.instructor-card a.bg-white.text-primary:hover {
    background-color: #2d9e7e !important;
    color: #fff !important;
    border-color: #ffffff !important;
}

.instructor-card a.bg-white.text-primary:hover .icons {
    color: #ffffff !important;
}

/* ======= Responsive Mobile & Tablet ======= */
@media (max-width: 1024px) {

/* ======= الكارد ======= */
.instructor-card {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.30);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    max-width: 100%; /* يمنع تمدد الكارد خارج الشاشة */
    height: auto;
    box-sizing: border-box;
    margin-bottom: 0;
    overflow: hidden; /* يمنع أي محتوى من الخروج */
}
    .instructor-card img.img-cover {
        width: 56px;
        height: 56px;
    }
    .instructor-card h6 {
        font-size: 16px !important;
    }
    .days-pills .nav-link {
        font-size: 12px;
        padding: 5px 8px;
    }
/* ======= تعديل responsive للتابات ======= */
.days-pills-wrapper {
    margin-top: 14px;
    padding: 10px 4px 6px 4px;

    border-radius: 12px;
    width: 100%;
    overflow-x: auto; /* يسمح بالـ scroll داخل الكارد */
    -webkit-overflow-scrolling: touch; /* smooth scroll للأيفون */
}

.days-pills {
    display: flex;
    gap: 6px;
    flex-wrap: nowrap; /* تمنع التفاف التابات */
    overflow-x: auto; /* scroll افقي */
    scrollbar-width: none; /* Firefox */
}

.days-pills::-webkit-scrollbar {
    display: none; /* Chrome & Safari */
}

.days-pills .nav-link {
    flex-shrink: 0; /* تمنع الكارد من ضغط الزر */
}

/* ======= Responsive إضافي ======= */
@media (max-width: 768px) {
    .days-pills-wrapper {
        padding: 6px 2px;
    }
    .days-pills .nav-link {
        font-size: 11px;
        padding: 4px 6px;
    }
}
    .category-item {
        font-size: 11px;
        padding: 2px 6px;
    }
    .tab-content {
            max-height: auto;
    }
    .instructor-card .meeting-time {
        font-size: 14px;
    }
    .d-flex.justify-content-between.mt-auto {
        flex-direction: column;
        gap: 8px;
    }
}
@media (max-width: 768px) {
    .instructor-card img.img-cover {
        width: 48px;
        height: 48px;
    }
    .instructor-card h6 {
        font-size: 14px !important;
    }
    .days-pills .nav-link {
        font-size: 11px;
        padding: 4px 6px;
    }
    .category-item {
        font-size: 10px;
        padding: 2px 5px;
    }
    .tab-content {
            max-height: auto;
    }
    .instructor-card .meeting-time {
        font-size: 13px;
    }
    .d-flex.justify-content-between.mt-auto {
        flex-direction: column;
        gap: 6px;
    }
}

