/* Team Listing Section */
.team-listing-section {
  padding: 80px 0;
  background: var(--color-eggshell);
  position: relative;
  z-index: 3;
}

.team-listing-section .section-header {
  margin-bottom: 48px;
}

.team-listing-section .section-title {
  color: var(--color-charcoal);
  font-size: var(--font-size-h2);
  font-weight: var(--font-weight-bold);
  margin-bottom: 0;
}

/* Team Grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Team Card */
.team-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Card Image Container */
.team-card-image {
  position: relative;
  width: 100%;
  height: 450px;
  overflow: hidden;
  padding-top: 20px;
  background: linear-gradient(180deg, #d4d4d4 0%, #a3a3a3 100%);
}



.team-card-image > img {
    width: 100%;
    height: auto;
    max-height: 350px;
    object-fit: contain;
  object-position: top center;
  transition: transform 0.4s ease;
}

.team-card:hover .team-card-image > img {
  transform: scale(1.05);
}

/* Gradient Overlay */
.team-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 60px 16px 16px;
  background: linear-gradient(to top, rgba(0, 71, 73, 0.95) 0%, rgba(0, 71, 73, 0.8) 50%, transparent 100%);
  color: var(--color-white);
  transition: all 0.3s ease;
}

/* Team Member Info */
.team-card-info {
  text-align: center;
}

.team-card-name {
  font-size: var(--font-size-h4);
  font-weight: var(--font-weight-semibold);
  color: var(--color-white);
  margin: 0 0 4px 0;
  line-height: var(--line-height-tight);
}

.team-card-role {
  font-size: var(--font-size-span);
  color: var(--color-white);
  opacity: 0.9;
  margin: 0;
  line-height: var(--line-height-base);
}

/* Hover Details */
.team-card-details {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.4s ease;
  margin-top: 0;
}

.team-card:hover .team-card-details {
  max-height: 100%;
  opacity: 1;
  margin-top: 16px;
}

.team-card-bio {
  font-size: var(--font-size-small);
  color: var(--color-white);
  line-height: 1.6;
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}
.relative {
  position: relative;
}
.overflow-hidden {
  overflow: hidden;
}
.z-10 {
  z-index: 1;
}
/* Executive Team Section */
.executive-team-section {
  padding: 80px 0;
  background: var(--color-eggshell);
  position: relative;
  z-index: 3;
}

.executive-team-section .section-header {
  margin-bottom: 48px;
}

.executive-team-section .section-title {
  color: var(--color-charcoal);
  font-size: var(--font-size-h2);
  font-weight: var(--font-weight-bold);
  margin-bottom: 0;
}

/* Decorative Background Element - Purple circles */
.team-decoration {
  position: absolute;
  right: -150px;
  top: 37%;
  transform: translateY(-50%);
  width: 500px;
  height: 500px;
  pointer-events: none;
  z-index: 2;
}

.team-card {
  z-index: 3;
}

.team-decoration svg {
  width: 100%;
  height: 100%;
}

.team-decoration circle {
  stroke: var(--color-secondary-300);
}

/* Responsive Design */
@media (max-width: 1200px) {
  .team-grid {
    gap: 24px;
  }

  .team-decoration {
    right: -200px;
  }
}

@media (max-width: 1024px) {
  .team-listing-section,
  .executive-team-section {
    padding: 60px 0;
  }

  .team-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .team-decoration {
    display: none;
  }
}

@media (max-width: 768px) {
  .team-listing-section,
  .executive-team-section {
    padding: 50px 0;
  }

  .team-listing-section .section-title,
  .executive-team-section .section-title {
    font-size: var(--font-size-h3);
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .team-card-name {
    font-size: var(--font-size-body);
  }

  .team-card-role {
    font-size: var(--font-size-span);
  }
}

@media (max-width: 640px) {
  .team-listing-section,
  .executive-team-section {
    padding: 40px 0;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .team-listing-section .section-header,
  .executive-team-section .section-header {
    margin-bottom: 32px;
  }

  .team-listing-section .section-title,
  .executive-team-section .section-title {
    font-size: 1.5rem;
  }

  .team-card-overlay {
    padding: 16px 14px 14px;
  }
}

/* Touch device styles */
.team-card.touch-hover .team-card-details {
  max-height: 100%;
  opacity: 1;
  margin-top: 16px;
}

.team-card.touch-hover .team-card-image img {
  transform: scale(1.05);
}

/* Focus states for accessibility */
.team-card:focus {
  outline: 2px solid var(--color-primary-500);
  outline-offset: 4px;
}

.team-card:focus .team-card-details {
  max-height: 100%;
  opacity: 1;
  margin-top: 16px;
}
