:root {
  --team-blue: #002c74;
  --team-gold: #f5b342;
  --team-ink: #152238;
  --team-muted: #6d7788;
}

.team-hero {
  position: relative;
  overflow: hidden;
  padding: 110px 0 86px;
  color: #fff;
  background:
    radial-gradient(circle at 18% 25%, rgba(245, 179, 66, 0.22), transparent 30%),
    linear-gradient(135deg, #00245f 0%, #002c74 48%, #174d99 100%);
}

.team-hero h1 {
  margin-bottom: 14px;
  color: #fff;
}

.team-hero p {
  max-width: 650px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.86);
}

.team-grid-section {
  padding: 90px 0;
  background: #f7f9fd;
}

.staff-card {
  display: flex;
  height: 100%;
  min-height: 438px;
  overflow: hidden;
  max-width: 370px;
  margin: 0 auto;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(0, 44, 116, 0.12);
}

.staff-card-link,
.staff-card-link:hover {
  display: flex;
  width: 100%;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}

.staff-card-media {
  position: relative;
  padding: 28px 28px 0;
  background: linear-gradient(145deg, var(--team-blue) 0%, var(--team-blue) 58%, var(--team-gold) 58.4%, var(--team-gold) 100%);
}

.staff-card-media img {
  display: block;
  width: 220px;
  height: 220px;
  margin: 0 auto -42px;
  object-fit: cover;
  object-position: 50% 20%;
  border: 7px solid #fff;
  border-radius: 50%;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
}

.staff-card-body {
  display: flex;
  min-height: 190px;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 64px 24px 28px;
  text-align: center;
}

.staff-card-body h5 {
  margin-bottom: 8px;
  color: var(--team-blue);
}

.staff-card-body p {
  min-height: 42px;
  margin-bottom: 18px;
  color: var(--team-muted);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.staff-card-body .button {
  margin-top: auto;
}

.id-page-section {
  min-height: 760px;
  padding: 72px 0 90px;
  background:
    radial-gradient(circle at 20% 18%, rgba(245, 179, 66, 0.18), transparent 28%),
    linear-gradient(135deg, #eef4ff 0%, #ffffff 48%, #e7edf7 100%);
}

.id-shell {
  width: min(100%, 420px);
  margin: 0 auto;
}

.back-link {
  display: inline-flex;
  align-items: center;
  margin-bottom: 18px;
  color: var(--team-blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
}

.back-link:hover {
  color: var(--team-gold);
}

.digital-id-card {
  position: relative;
  overflow: hidden;
  min-height: 640px;
  border: 1px solid rgba(0, 44, 116, 0.12);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(0, 44, 116, 0.22);
}

.digital-id-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(145deg, rgba(0, 44, 116, 0.95) 0%, rgba(0, 44, 116, 0.95) 32%, transparent 32.2%),
    linear-gradient(165deg, transparent 67%, rgba(245, 179, 66, 0.95) 67.2%, rgba(245, 179, 66, 0.95) 100%);
  pointer-events: none;
}

.digital-id-content {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 640px;
  flex-direction: column;
  padding: 28px;
}

.id-brand-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.id-brand-row img {
  width: 176px;
  max-width: 60%;
  height: auto;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.14));
}

.id-label {
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 999px;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.id-portrait {
  width: 244px;
  height: 244px;
  margin: 44px auto 26px;
  padding: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffffff 0%, var(--team-gold) 45%, var(--team-blue) 100%);
  box-shadow: 0 18px 42px rgba(0, 44, 116, 0.22);
}

.id-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
  border: 5px solid #fff;
  border-radius: 50%;
}

.id-details {
  text-align: center;
}

.id-details h1 {
  margin: 0;
  color: var(--team-blue);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: clamp(28px, 8vw, 42px);
  line-height: 1;
  letter-spacing: 0;
}

.id-designation {
  width: fit-content;
  max-width: 100%;
  margin: 16px auto 0;
  padding: 9px 16px;
  border-radius: 999px;
  color: #fff;
  background: var(--team-blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.signature-block {
  margin: auto auto 0;
  padding-top: 32px;
  text-align: center;
}

.signature-frame {
  display: flex;
  width: 210px;
  height: 82px;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
}

.signature-frame img {
  width: 172px;
  height: 64px;
  object-fit: contain;
  object-position: center;
  filter: contrast(1.4) saturate(1.3);
  mix-blend-mode: multiply;
}

.signature-line {
  width: 236px;
  height: 1px;
  margin: 10px auto 7px;
  background: rgba(21, 34, 56, 0.42);
}

.signature-label {
  margin: 0;
  color: var(--team-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.id-card-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.94);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.verify-pill {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
}

@media (max-width: 420px) {
  .team-hero {
    padding: 84px 0 66px;
  }

  .id-page-section {
    padding: 36px 0 58px;
  }

  .digital-id-card,
  .digital-id-content {
    min-height: 600px;
  }

  .digital-id-content {
    padding: 22px;
  }

  .id-brand-row img {
    width: 148px;
  }

  .id-label {
    padding: 6px 9px;
    font-size: 10px;
  }

  .id-portrait {
    width: 214px;
    height: 214px;
    margin-top: 42px;
  }
}
