/* Team Page Styles */

/* Page Header */
.page-header {
  padding: 4rem 0 3rem;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: white;
  text-align: center;
}

.page-title {
  font-size: 2.75rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: white;
}

.page-subtitle {
  font-size: 1.25rem;
  opacity: 0.95;
  font-weight: 400;
}

/* Team Members Section */
.team-members {
  padding: 5rem 0;
  background: var(--bg-white);
}

.team-member {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 3rem;
  margin-bottom: 5rem;
  padding-bottom: 5rem;
  border-bottom: 1px solid var(--border-color);
}

.team-member:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

/* Alternate layout for even members */
.team-member:nth-child(even) {
  grid-template-columns: 1fr 300px;
}

.team-member:nth-child(even) .team-member-image {
  order: 2;
}

.team-member:nth-child(even) .team-member-info {
  order: 1;
}

/* Team Member Image */
.team-member-image {
  position: relative;
}

.headshot {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  display: block;
}

.image-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 400px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
  font-weight: 600;
  box-shadow: var(--shadow-md);
}

/* Hide placeholder when image loads */
.headshot[src]:not([src=""]) ~ .image-placeholder {
  display: none;
}

/* If image fails to load, show placeholder */
.headshot:not([src]),
.headshot[src=""] {
  display: none;
}

/* Team Member Info */
.team-member-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.member-name {
  font-size: 2.25rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.member-title {
  font-size: 1.25rem;
  color: var(--accent-color);
  font-weight: 500;
  margin-bottom: 2rem;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.member-certifications {
  margin-bottom: 2rem;
}

.member-certifications h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.member-certifications ul {
  list-style: none;
  padding: 0;
}

.member-certifications li {
  padding: 0.5rem 0;
  color: var(--text-medium);
  font-size: 1rem;
  position: relative;
  padding-left: 1.5rem;
}

.member-certifications li:before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-color);
  font-weight: bold;
}

.member-bio p {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--text-medium);
}

/* Team CTA Section */
.team-cta {
  padding: 4rem 0;
  background: var(--bg-light);
  text-align: center;
}

.team-cta h2 {
  font-size: 2rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.team-cta p {
  font-size: 1.125rem;
  color: var(--text-medium);
  margin-bottom: 2rem;
}

/* Responsive Design */
@media (max-width: 992px) {
  .team-member {
    grid-template-columns: 250px 1fr;
    gap: 2rem;
  }

  .team-member:nth-child(even) {
    grid-template-columns: 1fr 250px;
  }

  .headshot,
  .image-placeholder {
    height: 350px;
  }
}

@media (max-width: 768px) {
  .page-title {
    font-size: 2rem;
  }

  .page-subtitle {
    font-size: 1.125rem;
  }

  .team-member,
  .team-member:nth-child(even) {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3.5rem;
    padding-bottom: 3.5rem;
  }

  .team-member:nth-child(even) .team-member-image,
  .team-member:nth-child(even) .team-member-info {
    order: initial;
  }

  .headshot,
  .image-placeholder {
    height: 400px;
    max-width: 400px;
    margin: 0 auto;
  }

  .member-name {
    font-size: 1.875rem;
  }

  .member-title {
    font-size: 1.125rem;
  }

  .team-members {
    padding: 3.5rem 0;
  }

  .team-cta {
    padding: 3rem 0;
  }

  .team-cta h2 {
    font-size: 1.75rem;
  }
}

@media (max-width: 480px) {
  .headshot,
  .image-placeholder {
    height: 350px;
  }
}
