/**
 * Our Team listing & profile — readable text, full-width cards, no theme clipping.
 */

/* ----- Listing (/team) ----- */
.ewss-team-hero-text {
  color: var(--body-color, #5c6370);
  font-size: 1.0625rem;
  line-height: 1.75;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

.ewss-team-grid {
  --ewss-card-radius: 14px;
}

.ewss-team-card {
  background: #fff;
  border-radius: var(--ewss-card-radius);
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(8, 14, 28, 0.08);
  border: 1px solid rgba(8, 14, 28, 0.06);
  transition: box-shadow 0.28s ease, transform 0.28s ease;
  height: 100%;
  max-width: 380px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
}

.ewss-team-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(8, 14, 28, 0.12);
}

.ewss-team-card__media {
  display: block;
  position: relative;
  aspect-ratio: 5 / 6;
  overflow: hidden;
  background: #e8ecf2;
}

.ewss-team-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.ewss-team-card:hover .ewss-team-card__media img {
  transform: scale(1.05);
}

.ewss-team-card__body {
  padding: 1.5rem 1.35rem 1.65rem;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.ewss-team-card__name {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 0.5rem;
  word-break: break-word;
  hyphens: auto;
  color: var(--title-color, #0e1e30);
}

.ewss-team-card__name a {
  color: inherit;
  text-decoration: none;
}

.ewss-team-card__name a:hover {
  color: var(--theme-color, #0060ff);
}

.ewss-team-card__role {
  margin: 0 0 0.85rem;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--theme-color, #0060ff);
  word-break: break-word;
  min-height: 1.4em;
}

.ewss-team-card__social {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

.ewss-team-card__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(0, 96, 255, 0.08);
  color: var(--title-color, #0e1e30);
  transition: background 0.2s, color 0.2s;
}

.ewss-team-card__social a:hover {
  background: var(--theme-color, #0060ff);
  color: #fff;
}

.ewss-team-card__link {
  margin-top: auto;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--theme-color, #0060ff) !important;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.ewss-team-card__link:hover {
  text-decoration: underline;
}

.ewss-team-empty {
  color: var(--body-color, #5c6370);
  font-size: 1.0625rem;
  line-height: 1.6;
}

/* ----- Profile (/team/{slug}) ----- */
.ewss-profile-section {
  background: linear-gradient(180deg, #f8fafc 0%, #fff 32%);
}

.ewss-profile-photo {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(8, 14, 28, 0.1);
  background: #e8ecf2;
}

.ewss-profile-photo img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 5 / 6;
  object-fit: cover;
}

.ewss-profile-role {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--theme-color, #0060ff);
  margin-bottom: 0.65rem;
}

.ewss-profile-name {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--title-color, #0e1e30);
  margin-bottom: 1.25rem;
  word-break: break-word;
}

.ewss-profile-bio {
  color: #4a5568;
  font-size: 1.0625rem;
  line-height: 1.85;
  max-width: 52rem;
}

.ewss-profile-bio p {
  margin-bottom: 1rem;
}

.ewss-profile-bio p:last-child {
  margin-bottom: 0;
}

.ewss-profile-social .th-btn.style2 {
  margin-bottom: 0.5rem;
}

.ewss-profile-back {
  margin-top: 2rem;
}

@media (max-width: 991px) {
  .ewss-profile-photo {
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
  }
}
