.team-section {
  padding: 3.5rem 0;
  background: var(--white);
}

.team-section__heading {
  font-family: var(--font-heading);
  font-weight: 200;
  font-size: 1.875rem;
  text-align: center;
  margin-bottom: 0.5rem;
  color: var(--dark);
}

.team-section__subheading {
  text-align: center;
  color: var(--muted);
  margin-bottom: 2rem;
}

.team-section__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.team-section__card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 3/4;
  display: block;
  text-decoration: none;
}

.team-section__card:hover .team-section__photo {
  opacity: 0.9;
}

.team-section__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.2s ease;
}

.team-section__placeholder {
  width: 100%;
  height: 100%;
  background: var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.875rem;
}

.team-section__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  padding: 0.75rem;
}

.team-section__name {
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 600;
}

.team-section__role {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.75rem;
}

.team-section__footer {
  text-align: center;
  margin-top: 1.5rem;
}

.team-section__link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--steel-blue);
}

@media (max-width: 639px) {
  .team-section__grid { grid-template-columns: repeat(2, 1fr); }
}

.team-page {
  padding: 4rem 0;
  background: var(--white);
}

.team-page__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;

}

@media (max-width: 639px) {
  .team-page__grid { grid-template-columns: repeat(2, 1fr); }
}

.team-page__section {
  margin-bottom: 5rem;
}

.team-page__section-heading {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: 1.875rem;
  color: var(--foreground);
  margin-bottom: 2.5rem;
}

.team-page__detailed {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.team-page__detailed-card {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  align-items: start;
}

.team-page__detailed-card--reverse {
  direction: rtl;
}

.team-page__detailed-card--reverse > * {
  direction: ltr;
}

.team-page__detailed-photo {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3/4;
}

.team-page__detailed-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-page__detailed-name {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: 1.5rem;
  color: var(--foreground);
  margin-bottom: 0.25rem;
}

.team-page__detailed-role {
  color: var(--steel-blue);
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.team-page__bio-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--steel-blue);
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.team-page__bio-link:hover {
  color: var(--dark);
}

.team-page__staff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

@media (max-width: 639px) {
  .team-page__staff-grid { grid-template-columns: repeat(2, 1fr); }
  .team-page__detailed-card {
    grid-template-columns: 1fr;
  }
  .team-page__detailed-card--reverse {
    direction: ltr;
  }
}

.team-page__staff-card {
  aspect-ratio: 3/4;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #D6E1E8, #A7B6C2);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.team-page__staff-name {
  text-align: center;
  color: var(--foreground);
  font-weight: 600;
  font-size: 0.875rem;
}
.team-page__heading{
  font-size: 42px;
  text-align:center;
  margin-bottom:10px;
}

.team-page__subheading{
  text-align:center;
  margin-bottom:40px;
  opacity:0.7;
}

.team-page__button-wrapper{
  text-align:center;
  margin-top:40px;
}

.team-page__button{
align-items: center;
    color: var(--steel-blue);
    display: inline-flex;
    font-size: .875rem;
    font-weight: 600;
    gap: .25rem;