body.page-team .team-modal__donate {
  display: inline-block;
  margin-top: 1.5em;
  padding: 0.7em 2em;
  background: #fadcb6;
  color: #3f3f3f;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(63,63,63,0.08);
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

body.page-team .team-modal__donate:hover {
  background: #ffe7c2;
  color: #222;
  transform: translateY(-2px) scale(1.04);
}
/* Team Page Styles - Mockup replica design */

/* Hero Section with background image */
body.page-team .site-header {
  position: relative;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  background: #3f3f3f;
  padding-top: 40px;
}

body.page-team .site-header__media {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

body.page-team .site-header__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

body.page-team .site-header__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(63, 63, 63, 0.5) 0%,
    rgba(63, 63, 63, 0.7) 100%
  );
  z-index: 1;
}

body.page-team .primary-nav {
  position: relative;
  z-index: 10;
}

body.page-team .hero {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 20px 60px;
  text-align: center;
}

body.page-team .hero__content {
  max-width: 700px;
}

body.page-team .hero__eyebrow {
  font-size: 0.875rem;
  font-weight: 600;
  color: #fadcb6;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0 0 16px 0;
}

body.page-team .hero__title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 20px 0;
  line-height: 1.1;
}

body.page-team .hero__summary {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  margin: 0;
}

/* Team Section */
body.page-team .section--team {
  padding: 80px 0 100px;
  background: #f5f5f5;
}

body.page-team .section__inner--team {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

/* Team Grid - 3 columns like mockup */
body.page-team .team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

@media (min-width: 768px) {
  body.page-team .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  body.page-team .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Team Card */
body.page-team .team-card {
  position: relative;
}

body.page-team .team-card__wrapper {
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

body.page-team .team-card__wrapper:hover {
  transform: translateY(-4px);
}

/* Image */
body.page-team .team-card__image {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 12px;

}

body.page-team .team-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Expand button - top right corner */
body.page-team .team-card__expand {
  position: absolute;
  top: 7px;
  right: 19px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fadcb6;
  color: #3f3f3f;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease, transform 0.25s ease;
  z-index: 10;
}

body.page-team .team-card__expand svg {
  width: 18px;
  height: 18px;
}

body.page-team .team-card__expand:hover {
  background: #fadcb6;
  color: #3f3f3f;
  transform: scale(1.1);
}

body.page-team .team-card__expand:active {
  transform: scale(0.95);
}

/* Info - bottom left corner */
body.page-team .team-card__info {
  position: absolute;
  bottom: 0px;
  left: 19px;
  right: 10px;
  z-index: 5;
  text-align: left;
  gap: 0;
}

body.page-team .team-card__name,
body.page-team .team-card__role {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

body.page-team .team-card__name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #3f3f3f;
  margin: 0 0 4px 0;
  line-height: 1.2;

}

body.page-team .team-card__role {
  font-size: 0.875rem;
  font-weight: 500;
  color: #fadcb6;
  margin: 0;
  line-height: 1.3;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

/* Modal Styles */
body.page-team .team-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

body.page-team .team-modal[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
}

body.page-team .team-modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(63, 63, 63, 0.8);
  backdrop-filter: blur(4px);
  cursor: pointer;
}

body.page-team .team-modal__content {
  position: relative;
  background: #ffffff;
  border-radius: 24px;
  padding: 48px;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 24px 64px rgba(63, 63, 63, 0.3);
  transform: scale(0.9);
  transition: transform 0.3s ease;
  scrollbar-width: none !important; /* Firefox */
  -ms-overflow-style: none !important; /* IE 10+ */
  overscroll-behavior: contain;
}

body.page-team .team-modal__content::-webkit-scrollbar,
body.page-team .team-modal__content::-webkit-scrollbar-thumb,
body.page-team .team-modal__content::-webkit-scrollbar-track {
  display: none !important;
  width: 0 !important;
  background: transparent !important;
}


body.page-team .team-modal__content::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

body.page-team .team-modal[aria-hidden="false"] .team-modal__content {
  transform: scale(1);
}

body.page-team .team-modal__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f5f5f5;
  color: #3f3f3f;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease, transform 0.25s ease;
}

body.page-team .team-modal__close svg {
  width: 20px;
  height: 20px;
}

body.page-team .team-modal__close:hover {
  background: #fadcb6;
  transform: rotate(90deg);
}

body.page-team .team-modal__body {
  padding-right: 20px;
}

body.page-team .team-modal__name {
  font-size: 2rem;
  font-weight: 700;
  color: #3f3f3f;
  margin: 0 0 12px 0;
  line-height: 1.2;
}

body.page-team .team-modal__role {
  font-size: 1rem;
  font-weight: 600;
  color: #fadcb6;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 24px 0;
}

body.page-team .team-modal__description {
  font-size: 1rem;
  color: #6b7280;
  line-height: 1.7;
  margin: 0;
}

/* Tablet */
@media (max-width: 768px) {
  body.page-team .section__inner--team {
    padding: 0 20px;
  }

  body.page-team .team-grid {
    gap: 24px;
  }

  body.page-team .team-modal__content {
    padding: 40px 32px;
  }

  body.page-team .team-modal__name {
    font-size: 1.75rem;
  }
}

/* Mobile */
@media (max-width: 480px) {
  body.page-team .section--team {
    padding: 60px 0 80px;
  }

  body.page-team .section__inner--team {
    padding: 0 16px;
  }

  body.page-team .team-card__name {
    font-size: 1.125rem;
  }

  body.page-team .team-card__role {
    font-size: 0.8125rem;
  }

  body.page-team .team-modal__content {
    padding: 32px 24px;
    width: 95%;
  }

  body.page-team .team-modal__name {
    font-size: 1.5rem;
  }

  body.page-team .team-modal__role {
    font-size: 0.875rem;
  }

  body.page-team .team-modal__description {
    font-size: 0.9375rem;
  }

  body.page-team .hero {
    padding: 60px 20px 40px;
  }
}

/* Navigation Active State */
.nav-link--active {
  color: #fadcb6 !important;
  font-weight: 600;
}
