/* Team Section - Compact & Refined */
.xai-team-section {
  background-color: #ffffff;
  padding: 4rem 0;
  position: relative;
}

.xai-team-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(128, 0, 32, 0.03) 0%, transparent 100%);
  z-index: 0;
}

.xai-team-container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  text-align: center; /* Added to center header, title, and description text */
}

/* Header Styles */
.xai-team-section-badge {
  display: inline-block;
  background-color: #800020;
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.xai-team-section-title {
  font-size: 2.2rem;
  color: #36454F;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.xai-team-section-title span {
  color: #800020;
  position: relative;
}

.xai-team-section-title span::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  width: 100%;
  height: 6px;
  background-color: rgba(128, 0, 32, 0.15);
  z-index: -1;
  border-radius: 3px;
}

.xai-team-section-description {
  color: #5D6B7A;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 2.5rem;
}

/* Team Grid - Compact */
.xai-team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.xai-team-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 15px rgba(54, 69, 79, 0.08);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
}

.xai-team-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(54, 69, 79, 0.12);
}

.xai-team-image {
  position: relative;
  overflow: hidden;
  height: 220px;
}

.xai-team-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.xai-team-card:hover .xai-team-image img {
  transform: scale(1.03);
}

.xai-team-social-links {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  padding: 0.8rem;
  background: rgba(128, 0, 32, 0.7);
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.xai-team-card:hover .xai-team-social-links {
  transform: translateY(0);
}

.xai-team-social-link {
  width: 32px;
  height: 32px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.xai-team-social-link:hover {
  background-color: white;
  color: #800020;
  transform: scale(1.1);
}

.xai-team-info {
  padding: 1.2rem;
  text-align: center;
}

.xai-team-info h3 {
  color: #36454F;
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
  font-weight: 600;
}

.xai-team-info .xai-team-position {
  color: #800020;
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

/* Responsive Design */
@media (max-width: 992px) {
  .xai-team-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
  
  .xai-team-section-title {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .xai-team-section {
    padding: 3rem 0;
  }
  
  .xai-team-image {
    height: 200px;
  }
}

@media (max-width: 576px) {
  .xai-team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .xai-team-section-title {
    font-size: 1.8rem;
  }
  
  .xai-team-image {
    height: 180px;
  }
  
  .xai-team-info {
    padding: 1rem;
  }
}

@media (max-width: 400px) {
  .xai-team-grid {
    grid-template-columns: 1fr;
    max-width: 280px;
    margin: 0 auto;
  }
}