/*--------------------------------------------------------------
  Team Section (Skill Manthra) - custom addition
  Reuses theme variables (--sm-navy / --sm-gold); does not touch style.css
--------------------------------------------------------------*/

.sm-team {
  position: relative;
  display: block;
  padding: 110px 0 80px;
  overflow: hidden;
  z-index: 1;
}

.sm-team-card {
  position: relative;
  display: block;
  height: 100%;
  background-color: var(--glorify-white);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(13, 46, 98, 0.08);
  border: 1px solid rgba(var(--sm-navy-rgb), .06);
  transition: transform 400ms ease, box-shadow 400ms ease;
}

.sm-team-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 55px rgba(13, 46, 98, 0.14);
}

.sm-team-card__img-box {
  position: relative;
  display: block;
  aspect-ratio: 3 / 3.2;
  overflow: hidden;
}

.sm-team-card__img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 500ms ease;
}

.sm-team-card:hover .sm-team-card__img-box img {
  transform: scale(1.08);
}

.sm-team-card__social {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -60px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 10px;
  background: linear-gradient(0deg, rgba(13, 46, 98, .92), rgba(13, 46, 98, 0));
  transition: bottom 350ms ease;
}

.sm-team-card:hover .sm-team-card__social {
  bottom: 0;
}

.sm-team-card__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--sm-gold);
  color: var(--sm-navy);
  font-size: 14px;
  transition: all 300ms ease;
}

.sm-team-card__social a:hover {
  background-color: var(--glorify-white);
  color: var(--sm-navy);
}

.sm-team-card__content {
  position: relative;
  display: block;
  text-align: center;
  padding: 22px 16px 26px;
}

.sm-team-card__name {
  font-size: 20px;
  font-weight: 700;
  color: var(--sm-navy);
  margin: 0 0 4px;
}

.sm-team-card__name a {
  color: inherit;
}

.sm-team-card__role {
  position: relative;
  display: inline-block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--glorify-gray);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  padding-top: 10px;
  margin-top: 6px;
}

.sm-team-card__role:before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 2px;
  background-color: var(--sm-gold);
}

@media (max-width: 767px) {
  .sm-team {
    padding: 60px 0 30px;
  }
}
