﻿/* ==================== TEAM SHOWCASE SECTION ==================== */
.team-showcase {
  position: relative;
  padding: clamp(70px, 9vw, 110px) 0;
  background: #ffffff;
  overflow: hidden;
}

.team-showcase__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: clamp(36px, 5vw, 56px);
  text-align: left;
}

.team-showcase__title-block {
  max-width: 680px;
  text-align: left;
}

.team-showcase__title-block .section-badge {
  display: block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-accent, #2b8281);
  margin: 0 0 12px 0;
  text-align: left;
  border: none;
  background: none;
  padding: 0;
}

.team-showcase__title-block .section-title {
  font-size: clamp(28px, 3.8vw, 44px);
  font-weight: 700;
  color: var(--color-primary, #172535);
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin: 0 0 14px 0;
  text-align: left;
}

.team-showcase__title-block .section-subtitle {
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.6;
  color: rgba(23, 37, 53, 0.75);
  margin: 0;
  text-align: left;
}

.team-showcase__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: 100px;
  background: #ffffff;
  color: var(--color-primary, #172535);
  border: 1.5px solid var(--color-primary, #172535);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  flex-shrink: 0;
}

.team-showcase__cta:hover {
  background: var(--color-primary, #172535);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(23, 37, 53, 0.2);
}

.team-showcase__cta svg {
  transition: transform 0.25s ease;
}

.team-showcase__cta:hover svg {
  transform: translateX(4px);
}

/* Grid of Doctor Cards */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2vw, 24px);
}

/* Doctor Card */
.team-card {
  position: relative;
  background: #ffffff;
  border: 1px solid rgba(23, 37, 53, 0.08);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.03);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.team-card:hover {
  transform: translateY(-6px);
  border-color: rgba(43, 130, 129, 0.35);
  box-shadow: 0 16px 36px rgba(23, 37, 53, 0.1);
}

/* Photo Wrapper */
.team-card__img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 4.6;
  background: linear-gradient(180deg, #F3F6F9 0%, #E8EDF2 100%);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.team-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.team-card:hover .team-card__img {
  transform: scale(1.04);
}

/* Experience Badge */
.team-card__exp-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(23, 37, 53, 0.88);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 100px;
  letter-spacing: 0.02em;
  z-index: 2;
}

/* Info Box */
.team-card__info {
  padding: 20px 20px 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  text-align: left;
}

.team-card__name {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-primary, #172535);
  line-height: 1.3;
  margin: 0 0 6px 0;
  text-align: left;
  transition: color 0.2s ease;
}

.team-card:hover .team-card__name {
  color: var(--color-accent, #2b8281);
}

.team-card__spec {
  font-size: 13.5px;
  line-height: 1.45;
  color: rgba(23, 37, 53, 0.7);
  margin: 0 0 16px 0;
  text-align: left;
  flex-grow: 1;
}

/* Card Action Link */
.team-card__action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary, #172535);
  transition: all 0.2s ease;
  margin-top: auto;
}

.team-card__action svg {
  transition: transform 0.25s ease;
}

.team-card:hover .team-card__action {
  color: var(--color-accent, #2b8281);
}

.team-card:hover .team-card__action svg {
  transform: translateX(4px);
}

/* Mobile CTA Button (hidden on desktop) */
.team-mobile-cta {
  display: none;
  margin-top: 32px;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .team-showcase__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .team-showcase__cta {
    display: none;
  }

  .team-mobile-cta {
    display: block;
  }

  .team-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }
}

@media (min-width: 480px) and (max-width: 768px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: none;
  }
}
