/* ==========================================================================
   OUR TEAM PAGE STYLES - PRESIDENCY HEALTHCARE
   ========================================================================== */

/* Hero Banner */
.team-hero-wrapper {
  padding: 2.5rem 2rem 1rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.team-hero-banner {
  background-color: #fdf7ec;
  border-radius: 2rem;
  border: 1px solid rgba(202, 143, 62, 0.18);
  padding: 4rem 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(99, 59, 44, 0.02);
}

.team-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(202, 143, 62, 0.1);
  border: 1px solid rgba(202, 143, 62, 0.25);
  border-radius: 2rem;
  padding: 0.35rem 1rem;
  margin-bottom: 0.75rem;
}

.team-badge-pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #986a3e;
}

.team-badge-pill span:not(.dot) {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #7f5832;
}

.team-hero-title {
  font-family: inherit;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 600;
  color: #563a2c;
  margin: 0.5rem 0 0.75rem 0;
  letter-spacing: -0.02em;
}

.team-hero-desc {
  max-width: 650px;
  margin: 0 auto;
  color: #665d49;
  font-size: 1.05rem;
  line-height: 1.6;
}

/* --- TEAM SECTION --- */
.team-section {
  padding: 3rem 3.5rem 3rem 3.5rem;
  margin: 0 auto;
  background-color: transparent;
  box-sizing: border-box;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  /*margin-top: 1.5rem;*/
  width: 100%;
}



.team-card {
  display: flex;
  flex-direction: column;
  background-color: #ffffff;
  border-radius: 1.25rem;
  padding: 1.15rem;
  border: 1px solid rgba(152, 106, 62, 0.28);
  box-shadow: 0 4px 20px rgba(99, 59, 44, 0.03);
  transition:
    transform 0.3s cubic-bezier(0.25, 1, 0.5, 1),
    box-shadow 0.3s cubic-bezier(0.25, 1, 0.5, 1),
    border-color 0.3s ease;
}

.team-card:hover {
  /* transform: translateY(-6px); */
  box-shadow: 0 16px 36px rgba(99, 59, 44, 0.08);
  border-color: rgba(152, 106, 62, 0.48);
}

.team-img-wrapper {
  position: relative;
  border-radius: 0.9rem;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  width: 100%;
  background-color: #e2d9cd;
  margin-bottom: 0;
}

.team-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  border-radius: inherit;
}

.team-info {
  padding: 1.25rem 0.25rem 0.25rem 0.25rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  flex-grow: 1;
}

.team-info h4 {
  font-family: "Playfair Display", "Georgia", serif;
  font-size: 1.35rem;
  color: #2b231d;
  margin: 0 0 0.45rem 0;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.team-degree {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.4rem;
  font-size: 0.88rem;
  color: #2b231d;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: #fbf6f0;
  /* padding: 0.35rem 0.8rem; */
  /* border-radius: 0.85rem; */
  /* border: 1px solid rgba(152, 106, 62, 0.22); */
  line-height: 1.4;
  box-shadow: 0 1px 3px rgba(115, 76, 40, 0.05);
  margin-bottom: 0.65rem;
  font-family: "Playfair Display", "Georgia", serif;
}

.team-degree i {
  font-size: 0.95rem;
  color: #986a3e;
  flex-shrink: 0;
  margin-top: 2px;
}

.team-desc {
  font-size: 0.95rem;
  color: #2b221b;
  margin-top: 0.75rem;
  line-height: 1.5;
  border-top: 1px solid rgba(140, 98, 57, 0.2);
  padding-top: 0.75rem;
}

.team-role {
  font-size: 0.88rem;
  color: #8c6239;
  font-weight: 500;
  line-height: 1.45;
  min-height: 2.5rem;
  display: flex;
  align-items: flex-start;
  margin-top: 0;
}


/* Responsive Media Queries for Team Section */
@media (max-width: 1200px) {
  .team-section {
    padding: 2.5rem 3rem 4rem 3rem;
  }

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


}

@media (max-width: 992px) {
  .team-section {
    padding: 2rem 2rem 3.5rem 2rem;
  }

  .team-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-top: 1.5rem;
  }


}

@media (max-width: 768px) {
  .team-hero-wrapper {
    padding: 1.5rem 1rem 0.5rem 1rem;
  }

  .team-hero-banner {
    padding: 2.5rem 1.25rem;
    border-radius: 1.25rem;
  }

  .team-section {
    padding: 2rem 1.25rem 3rem 1.25rem !important;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1.25rem;
  }



  .team-card {
    padding: 0.9rem;
    border-radius: 1rem;
  }

  .team-img-wrapper {
    border-radius: 0.75rem;
  }

  .team-info h4 {
    font-size: 1.15rem;
  }

  .team-role {
    font-size: 0.82rem;
    min-height: 2.2rem;
    margin-bottom: 0.5rem;
  }

  .team-degree {
    font-size: 0.82rem;
    margin-bottom: 0.7rem;
  }

  .team-socials a {
    width: 30px;
    height: 30px;
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .team-section {
    padding: 1.5rem 1rem 2.5rem 1rem !important;
  }

  .team-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }


}

.team-card.hidden-card-toggle {
  display: none;
}

.team-card.hidden-card-toggle.show {
  display: flex;
}

.btn-view-all {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background-color: #986a3e;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 500;
  padding: 0.5rem 1.5rem 0.5rem 0.5rem;
  border-radius: 2rem;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-view-all:hover {
  background-color: #7f5832;
}

.btn-view-all .icon-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #fff;
  color: #986a3e;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1rem;
}
