/* قسم المتدربين */
.trainees-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.section-title {
  color: var(--brand-primary);
  border-bottom: 3px solid var(--brand-accent);
  display: inline-block;
  padding-bottom: 8px;
  margin-bottom: 2rem;
  font-weight: 700;
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -3px;
  right: 0;
  width: 50%;
  height: 2px;
  background: var(--brand-accent);
}

/* بطاقات المتدربين */
.trainee-card {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: var(--shadow-light);
  transition: all 0.4s ease;
  text-align: center;
  position: relative;
  overflow: hidden;
  border: 1px solid #f0f0f0;
}

.trainee-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-primary);
}

.trainee-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-medium);
}

.trainee-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  border: 4px solid var(--brand-accent);
  padding: 4px;
  background: white;
  position: relative;
}

.trainee-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.avatar-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2.5rem;
  font-weight: bold;
}

.trainee-name {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.trainee-specialty {
  color: var(--brand-primary);
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.trainee-bio {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.trainee-progress {
  margin-bottom: 1.5rem;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-dark);
}

.progress-bar {
  height: 8px;
  background: #e9ecef;
  border-radius: 10px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 10px;
  transition: width 1s ease-in-out;
}

.trainee-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 10px;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--brand-primary);
  display: block;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-light);
}

.trainee-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin: 1rem 0;
}

.skill-tag {
  background: var(--brand-accent);
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

.trainee-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.btn-outline-danger {
  border: 2px solid var(--brand-primary);
  color: var(--brand-primary);
  background: transparent;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-outline-danger:hover {
  background: var(--brand-primary);
  color: white;
  transform: translateY(-2px);
}

/* فلتر المتدربين */
.trainees-filter {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow-light);
  margin-bottom: 3rem;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: center;
}

.filter-btn {
  background: white;
  border: 2px solid #e9ecef;
  padding: 0.5rem 1.5rem;
  border-radius: 25px;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--brand-primary);
  color: white;
  border-color: var(--brand-primary);
}

/* تأثيرات دخول المتدربين */
.trainee-card {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.trainee-card:nth-child(1) {
  animation-delay: 0.1s;
}
.trainee-card:nth-child(2) {
  animation-delay: 0.2s;
}
.trainee-card:nth-child(3) {
  animation-delay: 0.3s;
}
.trainee-card:nth-child(4) {
  animation-delay: 0.4s;
}
.trainee-card:nth-child(5) {
  animation-delay: 0.5s;
}
.trainee-card:nth-child(6) {
  animation-delay: 0.6s;
}

/* قسم الإحصائيات */
.trainees-stats-section {
  background: var(--gradient-primary);
  color: white;
  padding: 4rem 0;
  margin-bottom: 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.stat-card {
  text-align: center;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  backdrop-filter: blur(10px);
}

.stat-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.stat-card .stat-number {
  color: white !important;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.stat-card .stat-label {
  color: white !important;
  font-size: 1rem;
  opacity: 0.9;
}
.btn-outline-accent {
  border: 2px solid var(--brand-accent);
  color: var(--brand-accent);
  background: transparent;
  padding: 0.4rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.btn-outline-accent:hover {
  background: var(--brand-accent);
  color: white;
  transform: translateY(-2px);
}
