:root {
  --st-ink: #1e1630;
  --st-plum: #665290;
  --st-plum-deep: #2a1f41;
  --st-mist: #f4f1f8;
  --st-line: rgba(102, 82, 144, 0.18);
  --st-font: "Vazirmatn", Tahoma, sans-serif;
}

.staff-page {
  font-family: var(--st-font);
  color: var(--st-ink);
  position: relative;
  min-height: 70vh;
  overflow: hidden;
}

.staff-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 100% 0%, rgba(102, 82, 144, 0.18), transparent 55%),
    radial-gradient(ellipse 50% 40% at 0% 100%, rgba(42, 31, 65, 0.1), transparent 50%),
    linear-gradient(180deg, #faf8fc 0%, #efeaf6 100%);
  z-index: 0;
}

.staff-shell {
  position: relative;
  z-index: 1;
  width: min(1100px, 90%);
  margin: 0 auto;
  padding: 120px 0 88px;
}

.staff-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--st-plum);
  text-decoration: none;
  font-weight: 600;
  margin-bottom: 28px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.staff-back:hover {
  color: var(--st-plum-deep);
  transform: translateX(-3px);
}

.staff-layout {
  display: grid;
  gap: 28px;
}

@media (min-width: 860px) {
  .staff-layout {
    grid-template-columns: 300px 1fr;
    align-items: start;
  }
}

.staff-profile {
  background: linear-gradient(165deg, #2a1f41 0%, #665290 100%);
  color: #fff;
  border-radius: 28px;
  padding: 36px 28px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(42, 31, 65, 0.22);
}

.staff-photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 22px;
  border: 3px solid rgba(255, 255, 255, 0.35);
  background: transparent;
}

.staff-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.staff-photo-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-weight: 800;
}

.staff-name {
  font-size: 1.45rem;
  font-weight: 800;
  margin: 0 0 8px;
  line-height: 1.4;
}

.staff-role {
  margin: 0 0 28px;
  opacity: 0.88;
  font-weight: 500;
}

.staff-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  text-align: right;
}

.staff-links a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  text-decoration: none;
  transition: background 0.2s ease;
}

.staff-links a:hover {
  background: rgba(255, 255, 255, 0.18);
}

.staff-link-label {
  font-size: 0.78rem;
  opacity: 0.75;
}

.staff-main {
  display: grid;
  gap: 22px;
}

.staff-section {
  background: #fff;
  border-radius: 24px;
  padding: 32px 28px;
  border: 1px solid var(--st-line);
  box-shadow: 0 10px 30px rgba(42, 31, 65, 0.06);
}

.staff-section h2 {
  margin: 0 0 16px;
  font-size: 1.35rem;
  color: var(--st-plum-deep);
  font-weight: 800;
}

.staff-section p {
  margin: 0;
  line-height: 2;
  font-size: 1.05rem;
  text-align: justify;
}

.staff-skills {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.staff-skills li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--st-line);
}

.staff-skills li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.staff-skill-name {
  font-weight: 700;
  color: var(--st-plum-deep);
}

.staff-skill-level {
  color: var(--st-plum);
  font-weight: 600;
  font-size: 0.95rem;
  background: rgba(102, 82, 144, 0.1);
  padding: 6px 12px;
  border-radius: 999px;
}

.staff-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  border-right: 2px solid var(--st-line);
}

.staff-timeline-item {
  position: relative;
  padding: 0 22px 22px 0;
}

.staff-timeline-item:last-child {
  padding-bottom: 0;
}

.staff-timeline-item::before {
  content: "";
  position: absolute;
  right: -7px;
  top: 8px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--st-plum);
  box-shadow: 0 0 0 4px rgba(102, 82, 144, 0.15);
}

.staff-timeline-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 6px;
}

.staff-timeline-head h3 {
  margin: 0;
  font-size: 1.08rem;
  color: var(--st-plum-deep);
  font-weight: 800;
}

.staff-timeline-dates {
  color: var(--st-plum);
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
}

.staff-timeline-meta {
  margin: 0 0 8px !important;
  color: var(--st-plum);
  font-weight: 600;
  font-size: 0.95rem;
  text-align: right !important;
  line-height: 1.6 !important;
}

.staff-timeline-body {
  margin: 0 !important;
  opacity: 0.88;
  font-size: 0.98rem !important;
  line-height: 1.85 !important;
  text-align: justify;
}

[data-animate] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 600px) {
  .staff-shell {
    padding-top: 100px;
  }

  .staff-section {
    padding: 24px 18px;
  }
}

/* Staff list page */
.staff-list-header {
  margin-bottom: 36px;
  max-width: 40em;
}

.staff-list-eyebrow {
  margin: 0 0 8px;
  color: var(--st-plum);
  font-weight: 700;
}

.staff-list-header h1 {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  color: var(--st-plum-deep);
}

.staff-list-header p {
  margin: 0;
  line-height: 1.85;
  opacity: 0.85;
}

.staff-list-grid {
  display: grid;
  gap: 20px;
}

.staff-list-card {
  display: grid;
  gap: 18px;
  grid-template-columns: 110px 1fr;
  align-items: center;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid var(--st-line);
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 10px 28px rgba(42, 31, 65, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.staff-list-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(42, 31, 65, 0.12);
}

.staff-list-photo {
  width: 110px;
  height: 110px;
  border-radius: 20px;
  overflow: hidden;
  background: transparent;
}

.staff-list-photo img,
.staff-list-photo .staff-photo-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.staff-list-photo .staff-photo-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--st-plum-deep);
  background: #efeaf6;
  font-size: 2.2rem;
  font-weight: 800;
}

.staff-list-copy h2 {
  margin: 0 0 4px;
  font-size: 1.2rem;
  color: var(--st-plum-deep);
}

.staff-list-copy .staff-role {
  margin: 0 0 10px;
  color: var(--st-plum);
  font-weight: 600;
}

.staff-list-bio {
  margin: 0 0 12px;
  line-height: 1.75;
  opacity: 0.82;
  font-size: 0.95rem;
}

.staff-list-link {
  color: var(--st-plum);
  font-weight: 700;
  font-size: 0.92rem;
}

.staff-list-empty {
  background: #fff;
  border-radius: 18px;
  padding: 28px;
  border: 1px solid var(--st-line);
}

@media (max-width: 640px) {
  .staff-list-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .staff-list-photo {
    margin-inline: auto;
  }
}
