/*
 * SP Team — front-end styles.
 * Self-contained (no theme variables) so it looks reasonable on any
 * theme out of the box. Every selector is prefixed .spteam- — safe
 * to override from a theme stylesheet.
 */

.spteam-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 280px));
  justify-content: center;
  gap: 28px;
  margin: 0;
  padding: 0;
}

.spteam-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: #ffffff;
  border: 1px solid #e2e5ea;
  border-radius: 14px;
  padding: 32px 22px 26px;
  transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
}

.spteam-card:hover {
  box-shadow: 0 16px 32px rgba(15, 23, 42, .09);
  transform: translateY(-4px);
  border-color: #cfe3d1;
}

.spteam-card__photo {
  display: block;
  width: 128px;
  height: 128px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 18px;
  background: linear-gradient(135deg, #2e7d32, #1b5e1f);
  padding: 4px;
  box-shadow: 0 0 0 1px #e2e5ea;
}

.spteam-card__photo img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
}

.spteam-card__photo-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #f1f2f4;
  color: #2e7d32;
  font-size: 40px;
  font-weight: 800;
  text-transform: uppercase;
}

.spteam-card__body {
  width: 100%;
}

.spteam-card__name {
  margin: 0 0 4px;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.3;
}

.spteam-card__name a {
  color: #14213d;
  text-decoration: none;
}

.spteam-card__name a:hover {
  color: #2e7d32;
}

.spteam-card__designation {
  margin: 0 0 12px;
  font-size: 13.5px;
  font-weight: 700;
  color: #2e7d32;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.spteam-card__bio {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.6;
  color: #5b6270;
}

.spteam-card__social {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.spteam-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f1f2f4;
  color: #4a4f57;
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}

.spteam-social-btn:hover,
.spteam-social-btn:focus {
  background: #2e7d32;
  color: #ffffff;
  transform: translateY(-2px);
}

.spteam-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  fill: currentColor;
  stroke: none;
}

.spteam-empty {
  color: #5b6270;
  font-size: 15px;
}

/* ---------------------------------------------------------------------
 * Single team-member + category archive page templates
 * (templates/single-spteam.php, templates/taxonomy-spteam_category.php)
 * ------------------------------------------------------------------- */

.spteam-page-wrap {
  /* Sits inside Bootstrap's .container (theme-provided) for width/gutters —
     this class only adds the vertical rhythm around that. */
  padding-top: 48px;
  padding-bottom: 80px;
}

.spteam-single__back {
  margin: 0 0 24px;
  font-size: 14px;
}

.spteam-single__back a {
  color: #5b6270;
  text-decoration: none;
}

.spteam-single__back a:hover {
  text-decoration: underline;
}

.spteam-single-grid {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid #e2e5ea;
}

.spteam-single__photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(135deg, #2e7d32, #1b5e1f);
  padding: 6px;
  box-shadow: 0 16px 32px rgba(15, 23, 42, .12);
}

.spteam-single__photo img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 15px;
  object-fit: cover;
  background: #fff;
}

.spteam-single__photo-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 15px;
  background: #f1f2f4;
  color: #2e7d32;
  font-size: 64px;
  font-weight: 800;
  text-transform: uppercase;
}

.spteam-tag {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 12.5px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 30px;
  background: #e8f3e9;
  color: #2e7d32;
}

.spteam-single__name {
  margin: 0 0 6px;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.25;
  color: #14213d;
}

.spteam-single__designation {
  margin: 0 0 16px;
  font-size: 16px;
  font-weight: 700;
  color: #2e7d32;
}

.spteam-single__short-bio {
  margin: 0 0 20px;
  font-size: 15.5px;
  line-height: 1.65;
  color: #5b6270;
}

.spteam-single__social {
  display: flex;
  gap: 10px;
}

.spteam-single__content {
  font-size: 16px;
  line-height: 1.7;
  color: #333a44;
  max-width: 820px;
}

.spteam-single__content p {
  margin: 0 0 1.2em;
}

.spteam-single__content h2 {
  margin: 2em 0 .6em;
  font-size: 22px;
  font-weight: 800;
  color: #14213d;
}

.spteam-single__content h2:first-child {
  margin-top: 0;
}

.spteam-single__content h3 {
  margin: 1.6em 0 .5em;
  font-size: 18px;
  font-weight: 700;
  color: #14213d;
}

.spteam-single__content ul,
.spteam-single__content ol {
  margin: 0 0 1.2em;
  padding-left: 22px;
}

.spteam-single__content li {
  margin-bottom: 8px;
}

.spteam-archive__pagination {
  margin-top: 40px;
}

.spteam-related {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid #e2e5ea;
}

.spteam-related__title {
  margin: 0 0 24px;
  font-size: 22px;
  font-weight: 800;
  color: #14213d;
}

@media (max-width: 700px) {
  .spteam-single-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .spteam-single__photo {
    max-width: 220px;
    margin: 0 auto;
  }

  .spteam-single__social {
    justify-content: center;
  }
}
