

.team-grid-section {
  padding-bottom: var(--space-section);
}

.team-card {
  background: #ffffff;
  border-radius: var(--plh-radius-lg);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  height: 100%;
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

@media (hover: hover) {
  .team-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(41, 169, 189, 0.1);
    border-color: var(--plh-accent);
  }
}

.team-card-trigger:focus-visible {
  outline: 3px solid var(--plh-accent);
  outline-offset: 4px;
  box-shadow: 0 0 0 6px var(--plh-accent-glow);
}

.team-img-container {
  aspect-ratio: 3/4;
  overflow: hidden;
  position: relative;
}

.team-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: all 0.6s cubic-bezier(0.2, 1, 0.3, 1);
}

@media (hover: hover) {
  .team-card:hover .team-img-container img {
    filter: grayscale(0%);
    transform: scale(1.05);
  }
}

@media (hover: none) {
  .team-img-container img {
    filter: grayscale(0%);
  }
}

.team-card-body {
  padding: var(--space-card-pd);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.team-accent-line {
  width: 2.5rem;
  height: 3px;
  background: var(--plh-accent);
  border-radius: 2px;
  transition: width 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

@media (hover: hover) {
  .team-card:hover .team-accent-line {
    width: 100%;
  }
}

.team-role {
  color: var(--plh-accent);
  font-size: var(--fs-small);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.625rem;
  display: block;
}

.team-name {
  font-size: var(--fs-h3);
  margin-bottom: 1rem;
  color: var(--plh-base);
}

.practice-list {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.practice-item {
  font-size: var(--fs-body);
  color: var(--plh-text-muted);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
}

.practice-item i {
  color: var(--plh-accent);
  margin-right: 0.625rem;
  font-size: var(--fs-body);
}

.btn-link-custom {
  color: var(--plh-base);
  text-decoration: none;
  font-weight: 700;
  font-size: var(--fs-small);
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: 0.3s;
  display: inline-flex;
  align-items: center;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  margin-top: auto;
  margin-bottom: 1.25rem;
}

.btn-link-custom i {
  margin-left: 8px;
  transition: 0.3s;
}

.btn-link-custom:hover {
  color: var(--plh-accent);
}

.btn-link-custom:hover i {
  transform: translateX(5px);
}

#teamModal {
  overflow: hidden !important;
}

.modal-backdrop.show {
  opacity: 0.8;
  backdrop-filter: blur(5px);
}

.team-modal-content {
  border: none;
  border-radius: var(--plh-radius-lg);
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  max-height: 90vh;
}

.team-modal-body {
  padding: 0;
}

.modal-close-btn {
  position: absolute;
  top: clamp(0.75rem, 2vw, 1.25rem);
  right: clamp(0.75rem, 2vw, 1.25rem);
  z-index: 10;
  width: clamp(2.75rem, 3.5vw + 1rem, 3rem);
  height: clamp(2.75rem, 3.5vw + 1rem, 3rem);
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.3s;
  color: var(--plh-base);
}

.modal-close-btn:hover {
  background: var(--plh-accent);
  color: white;
  transform: rotate(90deg);
}

.modal-close-btn:focus-visible {
  outline: 3px solid var(--plh-accent);
  outline-offset: 2px;
}

.modal-img-col {
  height: 100%;
  min-height: clamp(300px, 25vw + 200px, 400px);
}

.modal-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-info-col {
  padding: var(--space-card-pd);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-info-col::-webkit-scrollbar {
  width: 6px;
}
.modal-info-col::-webkit-scrollbar-track {
  background: #f1f1f1;
}
.modal-info-col::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 3px;
}
.modal-info-col::-webkit-scrollbar-thumb:hover {
  background: var(--plh-accent);
}

.modal-info-col .btn-sm {
  font-size: 0.7rem;
  padding: 0.25rem 0.6rem;
  letter-spacing: 0.02em;
}

.bio-text {
  font-size: var(--fs-body);
  color: var(--plh-text-dark);
  line-height: 1.8;
  margin-bottom: var(--space-gap-lg);
}

.modal-meta-title {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--plh-text-muted);
  margin-bottom: 1rem;
  font-weight: 700;
}

@media (max-width: 991px) {
  .team-hero {
    padding-top: clamp(8rem, 15vh, 9.375rem);
    padding-bottom: clamp(4rem, 8vh, 5rem);
  }

  .team-grid-section {
    margin-top: -40px;
  }

  .modal-img-col {
    aspect-ratio: 16/9;
    height: auto;
    min-height: auto;
  }

  .modal-info-col {
    padding: var(--space-card-pd);

    max-height: calc(90vh - 56.25vw);
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
}
