/* Team nav: desktop dropdown + mobile sub-links */
.nav-dropdown {
  position: relative;
  display: inline-block;
  margin-left: 1.25rem;
  vertical-align: middle;
}

.nav-dropdown-trigger {
  font-size: 0.95rem;
  color: #555;
  text-decoration: none;
}

.nav-dropdown-trigger:hover {
  color: #111;
}

.nav-dropdown-panel {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  /* Vertical spacing lives inside the panel, not margin-top, so the
     pointer never leaves .nav-dropdown in the gap above the box. */
  padding: 0.35rem 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  z-index: 200;
}

.nav-dropdown:hover .nav-dropdown-panel,
.nav-dropdown:focus-within .nav-dropdown-panel {
  display: block;
}

.nav-dropdown-panel a {
  display: block;
  padding: 0.45rem 1rem;
  margin: 0;
  font-size: 0.9rem;
  color: #555;
  text-decoration: none;
  white-space: nowrap;
}

.nav-dropdown-panel a:hover {
  color: #111;
  background: #fafafa;
}

.mobile-nav-sublink {
  padding: 0.65rem 0 0.65rem 1.75rem !important;
  font-size: 1rem !important;
  color: var(--muted, #555) !important;
  border-bottom: 1px solid #f0f0f0 !important;
}

.mobile-nav-team-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  font-size: 1.2rem;
  background: none;
  border: none;
  cursor: pointer;
  border-bottom: 1px solid #eee;
  color: var(--dark, #111);
}

.mobile-nav-team-toggle:hover {
  color: var(--primary, #111);
}

.mobile-nav-team-toggle .mobile-nav-team-chevron {
  display: inline-block;
  margin-left: 0.75rem;
  font-size: 1.1rem;
  line-height: 1;
  color: var(--muted, #555);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.mobile-nav-team-toggle.open .mobile-nav-team-chevron {
  transform: rotate(180deg);
}

.mobile-nav-content {
  display: flex;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.mobile-nav-main {
  flex: 1 1 auto;
  min-width: 0;
}

.mobile-nav-team-submenu {
  flex: 0 0 min(55vw, 320px);
  min-width: 220px;
  border-left: 1px solid #eee;
  background: #fff;
  padding-top: var(--team-submenu-top, 0px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transform: translateX(100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.mobile-nav-team-submenu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

.nav-dropdown.is-active .nav-dropdown-trigger {
  font-weight: 600;
  color: #111;
}

/* Volunteer profile pages */
.team-subnav {
  background: #fff;
  border-bottom: 1px solid #eee;
  padding: 0.85rem 0;
}

.team-subnav-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  justify-content: center;
  align-items: center;
}

.team-subnav a {
  font-size: 0.92rem;
  color: #555;
  text-decoration: none;
}

.team-subnav a:hover {
  color: #111;
}

.team-subnav a.is-current {
  font-weight: 600;
  color: #111;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Team overview cards (team.html volunteer hub) */
.hub-card {
  position: relative;
}

/* Diagonal “pending decision” stamp on volunteer cards / profiles */
.volunteer-decision-stamp {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  transform: translate(-50%, -50%) rotate(-16deg);
  pointer-events: none;
  max-width: 92%;
  text-align: center;
}

.volunteer-decision-stamp__text {
  display: inline-block;
  padding: 0.4rem 0.65rem;
  border: 3px solid #b91c1c;
  color: #b91c1c;
  background: rgba(255, 255, 255, 0.93);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.3;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

.profile-wrap {
  padding: 3rem 0;
}

.profile-card {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}

.profile-photo {
  width: 320px;
  flex-shrink: 0;
  min-height: 280px;
  background: linear-gradient(135deg, #e8e0d5 0%, #d4ccc1 100%);
}

.profile-photo img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  display: block;
}

.profile-body {
  padding: 2rem;
  flex: 1;
  min-width: 260px;
}

.profile-body h1 {
  margin: 0 0 0.25rem;
  font-size: 1.75rem;
  letter-spacing: -0.02em;
}

.profile-role {
  color: #6b1e1e;
  font-weight: 500;
  margin-bottom: 1rem;
}

.profile-bio {
  color: #555;
  font-size: 0.95rem;
}

.profile-bio p {
  margin: 0 0 1rem;
}

.profile-links {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

.profile-links a {
  font-size: 0.9rem;
  color: #6b1e1e;
  text-decoration: underline;
}

@media (max-width: 768px) {
  .profile-card {
    flex-direction: column;
  }
  .profile-photo {
    width: 100%;
    min-height: 240px;
  }
}

/* Footer & contact: social links */
.footer-social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
  margin: 0;
}

.footer-social-row a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

.contact-social-below {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid #eee;
  text-align: center;
}

.contact-social-below h3 {
  font-size: 1rem;
  margin: 0 0 0.75rem;
  font-weight: 600;
  color: var(--dark, #111);
}

.contact-social-below .footer-social-row {
  justify-content: center;
}

.contact-form-container .footer-social-row a {
  color: var(--primary, #6b1e1e);
}

.contact-form-container .footer-social-row a:hover {
  opacity: 0.85;
}
