/**
 * Azharica Team Styles
 */

.az-team-container {
  width: 100%;
  margin: 24px auto;
  box-sizing: border-box;
}

.az-team-grid {
  display: grid;
  gap: 24px;
}

.az-cols-2 .az-team-grid {
  grid-template-columns: repeat(2, 1fr);
}

.az-cols-3 .az-team-grid {
  grid-template-columns: repeat(3, 1fr);
}

.az-cols-4 .az-team-grid {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1024px) {
  .az-cols-4 .az-team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .az-cols-4 .az-team-grid,
  .az-cols-3 .az-team-grid,
  .az-cols-2 .az-team-grid {
    grid-template-columns: 1fr;
  }
}

.az-team-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 28px 20px 22px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
  border: 1px solid #f1f5f9;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.az-team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.09);
}

.az-team-avatar-wrap {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border: 3px solid #ffffff;
  outline: 2px solid #e2e8f0;
}

.az-team-avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.az-team-placeholder-avatar {
  width: 100%;
  height: 100%;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.az-team-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.az-team-position {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  color: #0F5132;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.az-team-name {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  line-height: 1.35;
}

.az-team-education {
  margin: 0 0 10px;
  font-size: 12px;
  color: #64748b;
  line-height: 1.4;
}

.az-team-subject-badge {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #334155;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  margin-bottom: 14px;
}

.az-team-contact {
  display: flex;
  gap: 8px;
  margin-top: auto;
  border-top: 1px solid #f1f5f9;
  padding-top: 12px;
  width: 100%;
  justify-content: center;
}

.az-team-icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #f8fafc;
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.2s ease;
}

.az-team-icon-btn:hover {
  background: #0F5132;
  color: #ffffff;
}
