* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Cairo", sans-serif;
  font-size: 15px;
  color: #17233d;
  background:
    radial-gradient(circle at 86% 10%, rgba(66, 133, 244, 0.065), transparent 26rem),
    radial-gradient(circle at 12% 18%, rgba(234, 67, 53, 0.04), transparent 23rem),
    radial-gradient(circle at 78% 86%, rgba(251, 188, 5, 0.055), transparent 25rem),
    radial-gradient(circle at 14% 92%, rgba(52, 168, 83, 0.055), transparent 26rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.95)),
    #f8fafc;
}

a {
  color: inherit;
  text-decoration: none;
}

.team-nav {
  width: 100%;
  min-height: 92px;
  padding: 18px 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid #edf1f7;
  box-shadow: 0 8px 28px rgba(23, 35, 61, 0.05);
}

.brand img {
  width: 78px;
  height: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
  color: #4b5563;
  font-size: 0.95rem;
  font-weight: 700;
}

.nav-links a {
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover {
  color: #4285f4;
  transform: translateY(-2px);
}

main {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.team-hero {
  text-align: center;
  padding: 54px 0 30px;
}

.eyebrow {
  display: inline-flex;
  padding: 7px 16px;
  border-radius: 999px;
  background: #e8f0fe;
  color: #1a73e8;
  font-weight: 800;
  margin-bottom: 18px;
}

.team-hero h1 {
  margin: 0;
  font-size: clamp(1.85rem, 3.6vw, 3.35rem);
  font-weight: 900;
  letter-spacing: 0;
}

.team-hero p {
  width: min(660px, 100%);
  margin: 14px auto 0;
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1.8;
  font-weight: 600;
}

.leader-section {
  margin: 18px 0 42px;
}

.club-leads-section {
  margin: 16px 0 28px;
}

.section-heading.compact {
  margin-bottom: 16px;
}

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

.club-lead-card {
  position: relative;
  overflow: hidden;
  min-height: 150px;
  padding: 26px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: center;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #e2e8f0;
  border-radius: 22px;
  box-shadow: 0 16px 36px rgba(23, 35, 61, 0.07);
}

.club-lead-card::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 5px;
  background: var(--accent);
}

.club-lead-card.blue {
  --accent: #4285f4;
}

.club-lead-card.green {
  --accent: #34a853;
}

.club-lead-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, white);
  font-size: 1.55rem;
}

.club-lead-card h3 {
  margin: 12px 0 10px;
  font-size: 1.12rem;
  font-weight: 900;
}

.leader-card {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  padding: 32px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 30px;
  align-items: center;
  background: #fff;
  border: 1px solid #dbe7ff;
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(66, 133, 244, 0.14);
}

.leader-card::before {
  content: "";
  position: absolute;
  inset: 0;
  height: 8px;
  background: linear-gradient(90deg, #4285f4, #ea4335, #fbbc05, #34a853);
}

.leader-icon {
  width: 82px;
  height: 82px;
  border-radius: 26px;
  display: grid;
  place-items: center;
  color: #fbbc05;
  background: #fff7dc;
  font-size: 2.2rem;
  box-shadow: inset 0 0 0 1px rgba(251, 188, 5, 0.2);
}

.role-pill {
  display: inline-flex;
  padding: 7px 16px;
  border-radius: 999px;
  color: #34a853;
  background: #eaf7ee;
  font-size: 0.88rem;
  font-weight: 900;
}

.blue-pill {
  color: #1a73e8;
  background: #e8f0fe;
}

.green-pill {
  color: #188038;
  background: #eaf7ee;
}

.leader-content h2 {
  margin: 14px 0 8px;
  font-size: clamp(1.35rem, 2.1vw, 2.05rem);
  font-weight: 900;
}

.leader-content p {
  margin: 0 0 18px;
  color: #64748b;
  line-height: 1.9;
  font-weight: 600;
}

.leader-contact-note {
  margin: 0 0 8px !important;
  color: #17233d !important;
  font-weight: 900 !important;
}

.email-link,
.member-card a {
  direction: ltr;
  unicode-bidi: plaintext;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #1a73e8;
  font-weight: 800;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
  direction: rtl;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 900;
}

.section-heading span {
  color: #64748b;
  font-weight: 900;
}

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

.member-card {
  position: relative;
  overflow: hidden;
  min-height: 195px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  box-shadow: 0 18px 40px rgba(23, 35, 61, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.member-card::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 6px;
  background: var(--accent);
}

.member-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 54px rgba(23, 35, 61, 0.12);
}

.member-card.blue {
  --accent: #4285f4;
}

.member-card.red {
  --accent: #ea4335;
}

.member-card.yellow {
  --accent: #fbbc05;
}

.member-card.green {
  --accent: #34a853;
}

.avatar {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: color-mix(in srgb, var(--accent) 14%, white);
  color: var(--accent);
  font-weight: 900;
  margin-bottom: 18px;
}

.member-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 900;
}

.member-card p {
  margin: 0 0 20px;
  color: #64748b;
  font-weight: 700;
}

.cyber-section {
  margin: -24px 0 72px;
}

.special-thanks-pill {
  display: inline-flex;
  padding: 7px 16px;
  border-radius: 999px;
  background: #fff7dc;
  color: #b77900;
  font-weight: 900;
  margin-bottom: 14px;
}

.cyber-heading {
  margin-bottom: 10px;
}

.section-note {
  margin: 0 0 22px;
  color: #64748b;
  font-weight: 700;
  line-height: 1.8;
}

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

.cyber-card {
  position: relative;
  overflow: hidden;
  min-height: 165px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  box-shadow: 0 14px 32px rgba(23, 35, 61, 0.07);
}

.cyber-card::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 5px;
  background: var(--accent);
}

.cyber-card.blue {
  --accent: #4285f4;
}

.cyber-card.cyber-leader {
  border-color: rgba(251, 188, 5, 0.45);
  box-shadow: 0 18px 42px rgba(251, 188, 5, 0.14);
}

.cyber-card.cyber-leader .cyber-icon {
  color: #fbbc05;
  background: #fff7dc;
}

.cyber-leader-pill {
  display: inline-flex;
  padding: 5px 12px;
  border-radius: 999px;
  background: #fff7dc;
  color: #b77900;
  font-size: 0.75rem;
  font-weight: 900;
  margin-bottom: 10px;
}

.cyber-card.red {
  --accent: #ea4335;
}

.cyber-card.yellow {
  --accent: #fbbc05;
}

.cyber-card.green {
  --accent: #34a853;
}

.cyber-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 13%, white);
  font-size: 1.15rem;
  margin-bottom: 16px;
}

.cyber-card h3 {
  margin: 0 0 8px;
  font-size: 0.98rem;
  font-weight: 900;
}

.cyber-card p {
  margin: 0;
  color: #64748b;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.7;
}

.cyber-card a {
  direction: ltr;
  unicode-bidi: plaintext;
  display: inline-flex;
  margin-top: 14px;
  color: #1a73e8;
  font-size: 0.78rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.site-footer {
  background: #403f41;
  color: #d1d5db;
  padding: 48px 24px;
}

.footer-grid {
  width: min(1152px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
}

.footer-logo {
  width: 180px;
  height: auto;
  object-fit: contain;
  display: block;
  margin-bottom: 16px;
}

.footer-copy,
.footer-email {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.8;
}

.site-footer h4 {
  margin: 0 0 16px;
  color: #fff;
  font-weight: 800;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
  font-size: 0.88rem;
}

.site-footer a {
  color: inherit;
  transition: color 0.2s ease, transform 0.2s ease;
}

.site-footer a:hover {
  color: #fff;
}

.footer-social {
  display: flex;
  gap: 24px;
  align-items: center;
  margin-bottom: 16px;
  font-size: 1.25rem;
}

.footer-social a:hover {
  color: #8ab4f8;
  transform: scale(1.08);
}

.footer-bottom {
  margin-top: 40px;
  color: #9ca3af;
  text-align: center;
  font-size: 0.82rem;
}

@media (max-width: 900px) {
  .team-nav,
  .site-footer,
  .leader-card {
    padding-inline: 24px;
  }

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

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

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .team-nav {
    min-height: auto;
    align-items: flex-start;
    gap: 18px;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 1rem;
  }

  main {
    width: min(100% - 24px, 1180px);
  }

  .team-hero {
    padding-top: 52px;
  }

  .leader-card {
    grid-template-columns: 1fr;
  }

  .club-leads-grid {
    grid-template-columns: 1fr;
  }

  .club-lead-card {
    grid-template-columns: 1fr;
  }

  .members-grid {
    grid-template-columns: 1fr;
  }

  .cyber-grid {
    grid-template-columns: 1fr;
  }

  .site-footer {
    align-items: flex-start;
  }
}
