@import url('https://fonts.googleapis.com/css2?family=Acme&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Bitter:wght@300;400;500;600;700&display=swap');

.team-corner-page {
  background: linear-gradient(180deg, #0d2c54 0%, #071734 55%, #020b1e 100%);
  color: #ffffff;
  position: relative;
  overflow: hidden;
  min-height: 100vh;
}

.team-corner-page::before,
.team-corner-page::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  z-index: 0;
  opacity: 0.35;
  pointer-events: none;
}

.team-corner-page::before {
  width: 560px;
  height: 560px;
  background: radial-gradient(circle at center, rgba(216, 177, 41, 0.45) 0%, rgba(13, 44, 84, 0) 70%);
  top: -220px;
  right: -160px;
}

.team-corner-page::after {
  width: 440px;
  height: 440px;
  background: radial-gradient(circle at center, rgba(40, 167, 69, 0.25) 0%, rgba(13, 44, 84, 0) 70%);
  bottom: -220px;
  left: -120px;
}

.team-corner-page h1,
.team-corner-page h2,
.team-corner-page h3,
.team-corner-page h4,
.team-corner-page h5,
.team-corner-page h6 {
  font-family: 'Acme', sans-serif;
  letter-spacing: 0.02em;
}

.team-corner-page p,
.team-corner-page li,
.team-corner-page a,
.team-corner-page button {
  font-family: 'Bitter', serif;
}

.team-corner-hero {
  position: relative;
  z-index: 1;
  padding: 5.5rem 0 3.25rem;
  text-align: center;
}

.team-corner-hero .container {
  position: relative;
  z-index: 1;
}

.team-corner-hero .hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.18em;
  padding: 0.55rem 1.65rem;
  border-radius: 999px;
  background: rgba(216, 177, 41, 0.35);
  color: #f5d978;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.team-corner-hero h1 {
  font-size: 4rem;
  margin: 0 0 1.25rem;
  text-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.team-corner-hero p {
  max-width: 720px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 500;
}

.team-corner-content {
  position: relative;
  z-index: 1;
  padding: 0 0 4rem;
}

.team-switcher {
  display: flex;
  width: 100%;
  max-width: 520px;
  margin: 0 auto 1.75rem;
  border: 2px solid #f0c953;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(7, 23, 52, 0.55);
}

.team-switcher-btn {
  flex: 1 1 50%;
  min-height: 48px;
  padding: 0.7rem 1rem;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.88);
  font-family: 'Acme', sans-serif !important;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.team-switcher-btn + .team-switcher-btn {
  border-left: 1px solid rgba(240, 201, 83, 0.55);
}

.team-switcher-btn.active,
.team-switcher-btn[aria-selected="true"] {
  background: linear-gradient(135deg, #d8b129 0%, #f0c953 100%);
  color: #0d2c54;
}

.team-tab-pane {
  display: none;
}

.team-tab-pane.active {
  display: block;
}

.team-card {
  border: 2px solid rgba(240, 201, 83, 0.45);
  border-radius: 22px;
  box-shadow: 0 16px 40px rgba(2, 11, 30, 0.4);
  height: 100%;
  background: linear-gradient(135deg, rgba(20, 55, 100, 0.95) 0%, rgba(13, 44, 84, 0.96) 100%);
  margin-bottom: 0;
  color: #ffffff;
}

.team-card-header {
  background: transparent;
  color: #ffffff;
  padding: 1.35rem 1.35rem 0.85rem;
  border-bottom: 1px solid rgba(240, 201, 83, 0.28);
}

.team-card-header h3 {
  font-size: 1.55rem;
  margin: 0;
  color: #ffffff;
}

.team-card-body {
  padding: 0.75rem 0.75rem 0.9rem;
}

.team-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.team-list li + li {
  margin-top: 0.2rem;
}

.team-resource {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-height: 52px;
  width: 100%;
  padding: 0.65rem 0.7rem;
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  border-radius: 14px;
  transition: background 0.2s ease, color 0.2s ease;
}

.team-resource:hover,
.team-resource:focus {
  color: #ffffff;
  background: rgba(240, 201, 83, 0.14);
  text-decoration: none;
}

.team-resource:focus-visible {
  outline: 2px solid #f0c953;
  outline-offset: 2px;
}

.team-resource-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(240, 201, 83, 0.18);
  border: 1.5px solid #f0c953;
  color: #f0c953;
  font-size: 0.95rem;
}

.team-resource-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
}

.team-resource-title {
  font-weight: 600;
  line-height: 1.3;
}

.team-badge {
  display: inline-block;
  background: rgba(240, 201, 83, 0.18);
  color: #f0c953;
  font-size: 0.7rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(240, 201, 83, 0.4);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.team-resource-chevron {
  color: rgba(240, 201, 83, 0.75);
  font-size: 0.75rem;
  flex-shrink: 0;
}

@media (hover: hover) and (min-width: 992px) {
  .team-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  }

  .team-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 50px rgba(2, 11, 30, 0.5);
    border-color: #ffdd6a;
  }
}

@media (max-width: 991.98px) {
  .team-corner-hero {
    padding: 4.5rem 0 2.75rem;
  }

  .team-corner-hero h1 {
    font-size: 3rem;
  }
}

@media (max-width: 767.98px) {
  .team-corner-hero {
    padding: 3.5rem 0 2.1rem;
  }

  .team-corner-hero h1 {
    font-size: 2.15rem;
  }

  .team-corner-hero .hero-eyebrow {
    font-size: 0.78rem;
    padding: 0.45rem 1.3rem;
    letter-spacing: 0.14em;
    margin-bottom: 1rem;
  }

  .team-corner-hero p {
    font-size: 1rem;
  }

  .team-switcher {
    max-width: none;
    margin-bottom: 1.25rem;
  }

  .team-switcher-btn {
    font-size: 0.95rem;
    padding: 0.65rem 0.5rem;
  }

  .team-card-header {
    padding: 1.1rem 1rem 0.7rem;
  }

  .team-card-header h3 {
    font-size: 1.35rem;
  }

  .team-card-body {
    padding: 0.5rem 0.5rem 0.7rem;
  }
}

@media (max-width: 575.98px) {
  .team-corner-hero {
    padding: 3.15rem 0 1.85rem;
  }

  .team-corner-hero h1 {
    font-size: 1.95rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .team-card,
  .team-resource,
  .team-switcher-btn {
    transition: none;
  }

  .team-card:hover {
    transform: none;
  }
}
