/* ===== Team Member Cards ===== */
.team-section {
  padding: 40px 0;
}
.lang-ar.team-section, .lang-ar .team-section {
  direction: rtl;
}
.lang-en.team-section, .lang-en .team-section {
  direction: ltr !important;
}

.team-section-title {
  text-align: center;
  margin-bottom: 40px;
  font-family: 'ae_Granada', serif;
  font-size: 28px;
  color: #333;
  position: relative;
  padding-bottom: 15px;
}

.team-section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: #f7b71e;
  border-radius: 2px;
}

.team-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  margin-bottom: 30px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #eee;
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.team-card-img {
  width: 100%;
  height: 280px;
  overflow: hidden;
  position: relative;
  background: #f5f5f5;
}

.team-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.4s ease;
}

.team-card:hover .team-card-img img {
  transform: scale(1.05);
}

.team-card-body {
  padding: 20px;
}
.lang-ar .team-card-body {
  text-align: right;
}
.lang-en .team-card-body {
  text-align: left !important;
}

.team-card-name {
  font-size: 18px;
  font-weight: bold;
  color: #f7b71e;
  margin: 0 0 8px 0;
  line-height: 1.4;
}

.team-card-role {
  display: inline-block;
  background: linear-gradient(135deg, #f7b71e, #e5a200);
  color: #fff;
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 15px;
  font-weight: bold;
}

.team-card-info {
  list-style: none;
  padding: 0;
  margin: 0 0 15px 0;
  border-top: 1px solid #f0f0f0;
  padding-top: 12px;
}

.team-card-info li {
  font-size: 13px;
  color: #555;
  margin-bottom: 8px;
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.team-card-info li strong {
  color: #333;
  min-width: 70px;
  flex-shrink: 0;
  font-size: 13px;
  display: inline-block;
}

.team-card-contact {
  background: #fafafa;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 15px;
}

.team-card-contact-title {
  font-size: 13px;
  font-weight: bold;
  color: #f7b71e;
  margin-bottom: 6px;
}

.team-card-contact a,
.team-card-contact span {
  font-size: 12px;
  color: #666;
  direction: ltr;
  display: block;
  text-align: left;
  word-break: break-all;
}

.team-card-contact a:hover {
  color: #f7b71e;
  text-decoration: none;
}

.lang-en .team-card-links {
  justify-content: flex-start !important;
  gap: 15px;
}

.team-card-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid #f0f0f0;
}

.team-card-scholar a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #555;
  font-size: 12px;
  text-decoration: none;
  transition: color 0.2s;
}

.team-card-scholar a:hover {
  color: #f7b71e;
}

.team-card-scholar img {
  height: 22px;
  width: auto;
}

.team-card-cv a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, #f7b71e, #e5a200);
  color: #fff;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
}

.team-card-cv a:hover {
  background: linear-gradient(135deg, #e5a200, #cc8e00);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(247, 183, 30, 0.3);
}

/* Supervisor card - larger, centered */
.team-card-supervisor {
  max-width: 420px;
  margin: 0 auto 40px auto;
}

.team-card-supervisor .team-card-img {
  height: 320px;
}

.team-card-supervisor .team-card-name {
  font-size: 20px;
}

/* Empty card spacer fix */
.team-cards-grid {
  display: flex;
  flex-wrap: wrap;
}
.team-cards-grid::before, 
.team-cards-grid::after {
  display: none !important;
}
.team-cards-grid > div {
  display: flex;
  flex-direction: column;
}
.team-cards-grid .team-card {
  height: 100%;
}
.team-row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}

.team-col {
  padding: 0 15px;
  margin-bottom: 30px;
}

/* Responsive */
@media (max-width: 991px) {
  .team-card-img {
    height: 240px;
  }
  .team-card-supervisor .team-card-img {
    height: 280px;
  }
}

@media (max-width: 767px) {
  .team-card-img {
    height: 260px;
  }
  .team-card-name {
    font-size: 16px;
  }
}
