/**
 * Director profile page — NEFSA theme (.team-details--nefsa).
 * Page hero uses shared .page-header--nefsa (nefsa-about-page.css).
 */

.team-details.team-details--nefsa {
  padding: clamp(48px, 6vw, 80px) 0 clamp(56px, 7vw, 96px);
  background: linear-gradient(
    178deg,
    #fdfcfa 0%,
    #ffffff 50%,
    #faf9f7 100%
  );
  border-bottom: 1px solid rgba(202, 68, 69, 0.06);
  position: relative;
  overflow: hidden;
}

.team-details--nefsa .team-details__inner--nefsa {
  position: relative;
  z-index: 1;
}

/* Photo */
.team-details--nefsa .team-details__image--nefsa {
  display: block;
  margin-right: 0;
  max-width: 100%;
  position: relative;
}

.team-details--nefsa .team-details__image--nefsa::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 18px;
  background: linear-gradient(
    145deg,
    #e8c96a 0%,
    var(--firdip-base, #ca4445) 45%,
    #9e2a2b 100%
  );
  z-index: 0;
  opacity: 0.85;
  pointer-events: none;
}

.team-details--nefsa .team-details__image--nefsa img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  border-radius: 14px;
  box-shadow:
    0 28px 56px rgba(35, 39, 40, 0.14),
    0 4px 14px rgba(35, 39, 40, 0.08);
}

@media (max-width: 767px) {
  .team-details--nefsa .team-details__image--nefsa img {
    max-width: 340px;
    aspect-ratio: 3 / 4;
  }
}

/* Copy column */
.team-details--nefsa .team-details__content--nefsa {
  padding-left: 0;
}

@media (min-width: 992px) {
  .team-details--nefsa .team-details__content--nefsa {
    padding-left: clamp(24px, 4vw, 48px);
  }
}

@media (max-width: 767px) {
  .team-details--nefsa .team-details__content--nefsa {
    margin-top: 12px;
    text-align: center;
  }

  .team-details--nefsa .team-details__content__subtitle {
    padding-left: 0;
    justify-content: center;
  }

  .team-details--nefsa .team-details__content__subtitle::before {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    flex-shrink: 0;
    margin-right: 2px;
  }

  .team-details--nefsa .team-details__content__title::after {
    margin-left: auto;
    margin-right: auto;
  }

  .team-details--nefsa .team-details__motto--nefsa {
    text-align: center;
  }

  .team-details--nefsa .team-details__motto--nefsa {
    padding-top: 22px;
  }

  .team-details--nefsa .team-details__motto--nefsa::before {
    left: 50%;
    top: 0;
    bottom: auto;
    width: min(200px, 55%);
    height: 3px;
    transform: translateX(-50%);
    border-radius: 0 0 4px 4px;
  }

  .team-details--nefsa .team-details__social--nefsa {
    justify-content: center;
  }
}

.team-details--nefsa .team-details__content__subtitle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 0;
  margin-bottom: 8px;
  padding-left: 16px;
  position: relative;
  font-family: "Oswald", var(--firdip-font, "Roboto", sans-serif);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--firdip-base, #ca4445);
}

.team-details--nefsa .team-details__content__subtitle::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    #e8c96a 0%,
    var(--firdip-base, #ca4445) 100%
  );
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9);
}

.team-details--nefsa .team-details__content__title {
  font-family: "Oswald", var(--firdip-font, "Roboto", sans-serif);
  font-weight: 600;
  font-size: clamp(1.55rem, 1.8vw + 1rem, 2.35rem);
  line-height: 1.14;
  letter-spacing: 0.042em;
  text-transform: uppercase;
  color: var(--firdip-secondary, #232728);
  margin-top: 0;
  margin-bottom: 22px;
}

.team-details--nefsa .team-details__content__title::after {
  content: "";
  display: block;
  width: 3rem;
  height: 2px;
  margin-top: 14px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    #e8c96a 0%,
    var(--firdip-base, #ca4445) 60%,
    #9e2a2b 100%
  );
}

.team-details--nefsa .team-details__content__text {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.74;
  color: #585c5e;
  margin-bottom: 16px;
}

.team-details--nefsa .team-details__motto--nefsa {
  font-family: "Oswald", var(--firdip-font, "Roboto", sans-serif);
  font-weight: 600;
  font-size: clamp(1rem, 1vw + 0.85rem, 1.2rem);
  letter-spacing: 0.08em;
  line-height: 1.45;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.96);
  margin: 26px 0 24px 0;
  padding: 18px 22px;
  border-radius: 12px;
  background: linear-gradient(
    168deg,
    #2c3032 0%,
    #232728 48%,
    #1c1e1f 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 14px 36px rgba(35, 39, 40, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  position: relative;
}

.team-details--nefsa .team-details__motto--nefsa::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 0 4px 4px 0;
  background: linear-gradient(
    180deg,
    #e8c96a 0%,
    var(--firdip-base, #ca4445) 55%,
    #9e2a2b 100%
  );
}

.team-details--nefsa .team-details__social--nefsa {
  gap: 12px;
  margin-top: 4px;
}

.team-details--nefsa .team-details__social--nefsa a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 15px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(35, 39, 40, 0.08);
  color: var(--firdip-secondary, #232728);
  box-shadow: 0 6px 20px rgba(35, 39, 40, 0.08);
  text-decoration: none;
  transition:
    color 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.team-details--nefsa .team-details__social--nefsa a:hover {
  background: linear-gradient(
    145deg,
    #d45253 0%,
    var(--firdip-base, #ca4445) 40%,
    #9e2a2b 100%
  );
  color: var(--firdip-white, #fff);
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(202, 68, 69, 0.35);
}

.team-details--nefsa .team-details__social--nefsa a:focus-visible {
  outline: 3px solid #e8c96a;
  outline-offset: 3px;
}
