/* team page */
.bwc-team-page {
  --team-navy: #08427c;
  --team-gold: #c8b530;
  --team-red: #ed383b;
  --team-ink: #0d1b2e;
  --team-text: #5a6a84;
  padding: 100px 0 110px;
  background-color: #fff;
}

.bwc-team-page .container {
  max-width: 1040px;
}

.bwc-team-header {
  margin-bottom: 70px;
  text-align: center;
}

.bwc-team-header .title {
  position: relative;
  margin-bottom: 22px;
  padding-bottom: 18px;
  font-size: 44px;
  line-height: 1.15;
  font-weight: 700;
  color: var(--team-ink);
}

.bwc-team-header .title:after {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 72px;
  height: 4px;
  background: linear-gradient(90deg, var(--team-navy) 0 33.33%, var(--team-gold) 33.33% 66.66%, var(--team-red) 66.66% 100%);
  transform: translateX(-50%);
  content: '';
}

.bwc-team-header .description {
  max-width: 620px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.7;
  color: var(--team-text);
}

.bwc-team-section + .bwc-team-section {
  margin-top: 90px;
}

.bwc-team-section-title {
  margin-bottom: 8px;
  font-size: 28px;
  line-height: 1.25;
  font-weight: 700;
  color: var(--team-ink);
}

.bwc-team-section-description {
  margin-bottom: 36px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--team-text);
}

.bwc-team-subsection + .bwc-team-subsection {
  margin-top: 60px;
}

.bwc-team-subsection-title {
  margin-bottom: 24px;
  font-size: 16px;
  font-weight: 700;
  color: var(--team-navy);
}

.bwc-team-grid {
  display: grid;
  gap: 44px 30px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bwc-team-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.bwc-team-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px 24px;
}

.bwc-team-card {
  text-align: center;
}

.bwc-team-photo {
  position: relative;
  overflow: hidden;
  margin-bottom: 18px;
  aspect-ratio: 4 / 5;
  background: linear-gradient(180deg, #f4f6f9 0%, #dde3ea 100%);
  border-radius: 16px;
}

.bwc-team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform .5s ease;
}

.bwc-team-card:hover .bwc-team-photo img {
  transform: scale(1.03);
}

.bwc-team-badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
  color: #fff;
  background-color: var(--team-navy);
  border-radius: 999px;
}

.bwc-team-name {
  margin-bottom: 4px;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 700;
  color: var(--team-ink);
}

.bwc-team-grid-4 .bwc-team-name {
  font-size: 16px;
}

.bwc-team-role {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--team-text);
}

.bwc-team-social {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.bwc-team-social a {
  font-size: 14px;
  color: #8a97ab;
  transition: color .2s;
}

.bwc-team-social a:hover {
  color: var(--team-navy);
}

@media (prefers-reduced-motion: reduce) {
  .bwc-team-photo img {
    transition: none;
  }
  .bwc-team-card:hover .bwc-team-photo img {
    transform: none;
  }
}

@media only screen and (max-width: 991px) {
  .bwc-team-page {
    padding: 80px 0 90px;
  }
  .bwc-team-header .title {
    font-size: 36px;
  }
  .bwc-team-grid-4 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media only screen and (max-width: 767px) {
  .bwc-team-grid-3,
  .bwc-team-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 16px;
  }
}

@media only screen and (max-width: 575px) {
  .bwc-team-page {
    padding: 60px 0 70px;
  }
  .bwc-team-header {
    margin-bottom: 50px;
  }
  .bwc-team-header .title {
    font-size: 30px;
  }
  .bwc-team-section + .bwc-team-section {
    margin-top: 60px;
  }
  .bwc-team-section-title {
    font-size: 24px;
  }
  .bwc-team-name,
  .bwc-team-grid-4 .bwc-team-name {
    font-size: 15px;
  }
  .bwc-team-role {
    font-size: 13px;
  }
}
