
/* Teams page css */

/* Hero image */
.teams-hero {
  position: relative;
  background: url('../images/space-bg.jpg') no-repeat center center/cover;
  height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-white);
}

/* Tabs */
.team-tabs {
  display: flex;
  border-bottom: 2px solid var(--color-black);
  margin-bottom: 5rem;
  max-width: 100%; /* optional: centers tabs and limits width */
}

/* Tabs buttons (current, alumni) */
.tab-button {
  flex: 1; 
  text-align: center;
  padding: 0.75rem 0;
  font-weight: bold;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  position: relative;
  color: var(--color-black);
  transition: color 0.3s ease;
}

/* Tabs buttons active */
.tab-button.active {
  color: var(--color-blue);
}

.tab-button.active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--color-blue);
}

/* Team type tittle */
.team-type-heading {
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

/* Grid */
.team-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}


/* Card */
.team-card {
  width: 200px;         /* fixed width */
  height: 325px;        /* fixed height */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--color-white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  text-align: center;
  padding: 0;
}

/* Photo area */
.team-photo {
  width: 100%;
  height: 60%;
  overflow: hidden;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Content */
.team-info {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 0.5rem;
}

/* Name tittle */
.team-name {
  font-size: 1.2rem;
  font-weight: bold;
  margin: 0.5rem 0;
}

/* Role and course tittle */
.team-role,
.team-course {
  font-size: 1rem;
  color: var(--color-light-grey);
  margin: 0;
}

/* Social media section */
.team-socials {
  margin-top: auto;
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

/* Social media icons */
.team-socials a {
  font-size: 1.3rem;
  color: var(--color-grey);
  text-decoration: none;
}

/* Social media icons on hover */
.team-socials a:hover {
  color: var(--color-blue);
}