.team-index-page {
  background: linear-gradient(180deg, #f3f8f9 0%, #fff 46%, #eef6f5 100%);
  color: #06292d;
  font-family: "Cairo", Arial, sans-serif;
}

.team-index-page * {
  font-family: "Cairo", Arial, sans-serif;
  letter-spacing: 0;
}

.team-index-page i[class^="fa-"],
.team-index-page i[class*=" fa-"] {
  font-family: "Font Awesome 6 Pro";
}

.team-index-page .fa-brands,
.team-index-page .fab {
  font-family: "Font Awesome 6 Brands";
}

.team-main {
  overflow: hidden;
}

.team-hero {
  position: relative;
  min-height: 650px;
  padding: 54px 0 92px;
  color: #fff;
  background: #071f27;
  isolation: isolate;
}

.team-hero::before,
.team-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.team-hero::before {
  z-index: -2;
  background-image:
    linear-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .055) 1px, transparent 1px);
  background-size: 54px 54px;
}

.team-hero::after {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(4, 35, 40, .97) 0%, rgba(5, 52, 58, .88) 50%, rgba(7, 31, 39, .68) 100%),
    radial-gradient(circle at 20% 20%, rgba(255, 177, 24, .32), transparent 28%),
    radial-gradient(circle at 82% 70%, rgba(16, 140, 132, .28), transparent 34%);
}

.team-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -3;
  opacity: .22;
}

.team-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
  filter: saturate(1.08) contrast(1.08);
}

.team-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 15px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  color: rgba(255, 255, 255, .84);
  background: rgba(255, 255, 255, .08);
  backdrop-filter: blur(14px);
  font-size: .9rem;
  font-weight: 900;
}

.team-breadcrumb a,
.team-breadcrumb strong {
  color: inherit;
  text-decoration: none;
}

.team-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 52px;
  align-items: end;
  margin-top: 72px;
}

.team-hero-copy {
  max-width: 800px;
}

.team-hero-copy > span,
.team-section-head span,
.team-join-panel span {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  padding: 8px 16px;
  border-radius: 999px;
  color: #06292d;
  background: #ffb118;
  font-size: .84rem;
  font-weight: 900;
}

.team-hero-copy h1 {
  margin: 20px 0 14px;
  color: #fff;
  font-size: clamp(3rem, 7vw, 5.2rem);
  font-weight: 900;
  line-height: 1.25;
}

.team-hero-copy p {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, .86);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 2;
}

.team-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.team-hero-actions a,
.team-section-head a,
.team-join-panel a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 12px;
  color: #06292d;
  background: #ffb118;
  font-size: .93rem;
  font-weight: 900;
  text-decoration: none;
}

.team-hero-actions a:last-child {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .1);
}

.team-hero-panel {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 18px;
  background: rgba(255, 255, 255, .1);
  box-shadow: 0 28px 90px rgba(0, 0, 0, .28);
  backdrop-filter: blur(16px);
}

.team-panel-images {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.team-panel-images img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 12px;
}

.team-hero-panel strong {
  display: block;
  margin-bottom: 6px;
  color: #fff;
  font-size: 1.15rem;
  font-weight: 900;
}

.team-hero-panel p {
  margin: 0;
  color: rgba(255, 255, 255, .78);
  font-weight: 700;
  line-height: 1.8;
}

.team-stats {
  position: relative;
  z-index: 2;
  margin-top: -42px;
}

.team-stats .container {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.team-stats div {
  display: grid;
  gap: 6px;
  min-height: 128px;
  padding: 20px;
  border: 1px solid #dbe8e9;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 20px 50px rgba(6, 41, 45, .08);
}

.team-stats i {
  color: #0f8f86;
  font-size: 1.45rem;
}

.team-stats strong {
  color: #06292d;
  font-size: 1.9rem;
  font-weight: 900;
}

.team-stats span {
  color: #5f7480;
  font-weight: 800;
}

.team-section {
  padding: 68px 0 0;
}

.team-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 26px;
}

.team-section-head h2 {
  margin: 12px 0 0;
  color: #06292d;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1.35;
}

.team-members-grid {
  display: grid;
  gap: 20px;
}

.advisors-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.team-member-card {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid #dbe8e9;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(6, 41, 45, .06);
}

.team-member-card img {
  width: 118px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 12px;
}

.team-member-card small,
.team-editor-card span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #0f8f86;
  font-weight: 900;
}

.team-member-card h3,
.team-editor-card h3,
.departments-grid h3 {
  margin: 8px 0 7px;
  color: #06292d;
  font-size: 1.15rem;
  font-weight: 900;
  line-height: 1.45;
}

.team-member-card p,
.team-editor-card p,
.departments-grid p {
  margin: 0;
  color: #536b76;
  font-weight: 800;
  line-height: 1.75;
}

.team-member-card span {
  display: block;
  margin-top: 8px;
  color: #7b8f98;
  font-size: .88rem;
  font-weight: 800;
}

.editorial-section,
.departments-section {
  padding-top: 78px;
}

.editors-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.team-editor-card {
  position: relative;
  min-height: 100%;
  padding: 16px;
  border: 1px solid #dbe8e9;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(6, 41, 45, .06);
  text-align: center;
}

.team-editor-card.is-featured {
  color: #fff;
  border-color: transparent;
  background:
    linear-gradient(145deg, rgba(255, 177, 24, .18), transparent 34%),
    linear-gradient(145deg, #063238, #071f27);
}

.team-editor-card b {
  position: absolute;
  top: 12px;
  inset-inline-start: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #06292d;
  background: #ffb118;
  font-size: .72rem;
  font-weight: 900;
}

.team-editor-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 14px;
}

.team-editor-card.is-featured h3,
.team-editor-card.is-featured p {
  color: #fff;
}

.team-editor-card.is-featured span {
  color: #ffb118;
}

.departments-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.departments-grid article {
  padding: 24px;
  border: 1px solid #dbe8e9;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(6, 41, 45, .06);
}

.departments-grid i {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 14px;
  color: #06292d;
  background: #ffb118;
  font-size: 1.35rem;
}

.team-join {
  padding: 76px 0;
}

.team-join-panel {
  padding: 38px;
  border-radius: 20px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(255, 177, 24, .14), transparent 34%),
    linear-gradient(145deg, #063238, #071f27);
  box-shadow: 0 28px 90px rgba(6, 41, 45, .16);
}

.team-join-panel h2 {
  margin: 14px 0 10px;
  color: #fff;
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  font-weight: 900;
}

.team-join-panel p {
  max-width: 760px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, .78);
  font-weight: 700;
  line-height: 1.9;
}

@media (max-width: 1199.98px) {
  .team-hero-grid {
    grid-template-columns: 1fr;
  }

  .team-hero-panel {
    max-width: 520px;
  }

  .advisors-grid,
  .departments-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .editors-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  .team-stats .container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .team-hero {
    min-height: auto;
    padding: 38px 0 72px;
  }

  .team-hero-grid {
    margin-top: 44px;
  }

  .team-hero-copy h1 {
    font-size: 2.65rem;
  }

  .team-stats .container,
  .advisors-grid,
  .editors-grid,
  .departments-grid {
    grid-template-columns: 1fr;
  }

  .team-section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .team-member-card {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .team-member-card img {
    width: 92px;
  }

  .team-join-panel {
    padding: 26px;
  }
}
