:root {
  --cdc-navy: #011c38;
  --cdc-blue: #1c4f84;
  --cdc-accent: #ffc043;
  --cdc-bg: #f4f8fc;
  --cdc-text: #14314d;
}

body {
  background: var(--cdc-bg);
  color: var(--cdc-text);
}

.navbar.navbar-dark {
  min-height: 70px;
  padding: 12px 0;
}

/* Color only navbar icons, keep nav text unchanged */
.navbar.navbar-dark .nav-link i,
.navbar.navbar-dark .dropdown-toggle i {
  color: #2d4bff !important;
}

.navbar.navbar-dark .nav-link:hover i,
.navbar.navbar-dark .nav-link.active i {
  color: #2d4bff !important;
}

.team-hero {
  background: linear-gradient(135deg, #0b2a4a 0%, var(--cdc-blue) 100%);
  color: #fff;
  padding: 64px 0 44px;
}

.team-hero h1 {
  font-weight: 800;
  margin-bottom: 10px;
}

.team-hero p {
  color: #e9f2fb;
}

.group-title {
  color: var(--cdc-navy);
  font-weight: 800;
  margin: 0 auto 24px;
  padding: 0 18px 8px;
  text-align: center;
  width: fit-content;
  border-left: none;
  border-bottom: 4px solid var(--cdc-accent);
}

.subgroup-title {
  color: var(--cdc-blue);
  font-size: 1.2rem;
  font-weight: 700;
  margin: 22px auto 14px;
  text-align: center;
  width: fit-content;
}

.team-card {
  background: #fff;
  border: 1px solid #d8e4f1;
  border-radius: 20px;
  box-shadow: 0 10px 24px rgba(1, 28, 56, 0.08);
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 30px 30px 28px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
  transition: transform 0.32s ease, box-shadow 0.32s ease, border-color 0.32s ease;
  animation: fadeUpCard 0.65s ease both;
  min-height: 265px;
  max-width: 940px;
  margin-left: auto;
  margin-right: auto;
}

.team-card::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(180deg, var(--cdc-accent), #cf2f7a);
  opacity: 0.85;
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 34px rgba(1, 28, 56, 0.16);
  border-color: #c2d8ed;
}

.avatar {
  width: 180px;
  height: 180px;
  border-radius: 999px;
  background: linear-gradient(135deg, #153b62 0%, #2f6ba4 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  font-weight: 800;
  flex-shrink: 0;
  border: 5px solid #fff;
  box-shadow: 0 16px 28px rgba(21, 59, 98, 0.28);
  transition: transform 0.32s ease, box-shadow 0.32s ease;
}

.avatar.photo {
  padding: 0;
  overflow: hidden;
}

.avatar.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  display: block;
  transition: transform 0.45s ease;
}

.avatar.photo.fallback {
  padding: 0;
  overflow: visible;
}

.team-card:hover .avatar {
  transform: scale(1.03);
}

.team-card:hover .avatar.photo img {
  transform: scale(1.06);
}

.member-info h3 {
  margin: 0;
  font-size: 2rem;
  font-weight: 800;
  color: #111827;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  line-height: 1.1;
}

.member-info p {
  margin: 12px 0 0;
  color: #cf2f7a;
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.member-actions {
  display: none !important;
}

.member-actions a {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d7e3f1;
  background: #f8fbff;
  color: #6b7280;
  text-decoration: none;
  transition: all 0.25s ease;
}

.member-actions a:hover {
  background: var(--cdc-navy);
  border-color: var(--cdc-navy);
  color: #fff;
  transform: translateY(-2px);
}

.member-contact {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.95rem;
  color: #4b647f;
}

.member-contact i {
  width: 15px;
  color: #0f3a65;
}

.member-contact a {
  color: #0f3a65;
  text-decoration: underline;
}

.team-card:nth-of-type(1) { animation-delay: 0.05s; }
.team-card:nth-of-type(2) { animation-delay: 0.1s; }
.team-card:nth-of-type(3) { animation-delay: 0.15s; }
.team-card:nth-of-type(4) { animation-delay: 0.2s; }
.team-card:nth-of-type(5) { animation-delay: 0.25s; }
.team-card:nth-of-type(6) { animation-delay: 0.3s; }

@keyframes fadeUpCard {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .team-card,
  .avatar,
  .avatar.photo img {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 768px) {
  .team-card {
    flex-direction: column;
    text-align: center;
    gap: 14px;
    padding: 20px 18px;
    min-height: 0;
    max-width: 100%;
  }

  .avatar {
    width: 132px;
    height: 132px;
    font-size: 1.8rem;
  }

  .member-info h3 {
    font-size: 1.4rem;
  }

  .member-info p {
    font-size: 1rem;
  }

  .member-actions {
    justify-content: center;
  }

  .member-contact {
    align-items: center;
  }
}

.go-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: #011c38;
  color: #ffc043;
  border: 2px solid #ffc043;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 99999;
  box-shadow: 0 4px 16px rgba(255,192,67,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
}

.go-to-top.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.go-to-top:hover {
  background: #1e3c72;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255,192,67,0.45);
}

.go-to-top:active {
  transform: translateY(-1px);
}

.go-to-top,
.go-to-top svg {
  color: #ffc043;
}

.go-to-top svg {
  width: 24px;
  height: 24px;
}

@media (max-width: 768px) {
  .go-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
  }

  .go-to-top svg {
    width: 20px;
    height: 20px;
  }
}
