/* Team Section Styles */

.ascend-team-section {
  padding: 40px 0;
}

.ascend-team-filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-bottom: 40px;
}

.ascend-team-filter-role {
  color: var(--Color-Palette-Olive, #7D7359);
  text-align: center;
  font-family: Poppins, sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 300;
  line-height: 18px;
  text-transform: uppercase;
  background: transparent;
  border: none;
  padding: 10px 24px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  position: relative;
}

.ascend-team-filter-role::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: -14px;
  width: 1px;
  height: 100%;
  background: var(--Color-Palette-Copper, #6F3A20);
}

.ascend-team-filter-role.active,
.ascend-team-filter-role:focus {
  background: var(--Color-Palette-Olive, #7D7359);
  color: var(--Color-Palette-White, #FFF);
}

.ascend-team-role-title {
  color: var(--Color-Palette-Copper, #6F3A20);
  text-align: center;
  font-family: Baskerville, serif;
  font-size: 48px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  margin-bottom: 16px;
}

.ascend-team-single-title {
  margin-bottom: 40px;
}

.ascend-team-facility-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
}

.ascend-team-facility-link {
  display: inline-block;
}

.ascend-team-facility-button {
  display: inline-block;
  padding: 12px 24px;
  background: var(--Color-Palette-Olive, #7D7359);
  color: var(--Color-Palette-White, #FFF);
  text-decoration: none;
  font-family: var(--body-font, Poppins), sans-serif;
  font-size: 14px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
  transform: translateY(0px);
}

.ascend-team-facility-button:hover {
  background: var(--Color-Palette-Copper, #6F3A20);
  color: var(--Color-Palette-White, #FFF);
  transform: translateY(-2px);
  transition: all 0.2s ease;
}

.ascend-team-facility-links-single {
  margin-top: 32px;
  margin-bottom: 32px;
}

.ascend-team-role-description {
  color: var(--Color-Palette-Dark-Chocolate, #2E2E24);
  text-align: center;
  font-family: Poppins, sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  margin-bottom: 40px;
}

.ascend-team-members-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px 48px;
  margin-bottom: 40px;
  align-items: flex-start;
}

.ascend-team-role-content {
  margin-bottom: 40px;
}

/* Ensure team member cards respect flexbox ordering */
.ascend-team-member-card {
  width: 320px;
  height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  position: relative;
  overflow: visible;
  flex-shrink: 0;
}

/* Ensure hidden cards don't affect layout */
.ascend-team-member-card[style*="display: none"] {
  display: none !important;
}

.ascend-team-member-card:hover .ascend-team-member-image {
  filter: grayscale(0%);
}

.ascend-team-member-image {
  width: 160px;
  height: 160px !important;
  border-radius: 50% !important;
  object-fit: cover;
  margin-top: 24px;
  margin-bottom: 16px;
  filter: grayscale(100%);
}

.ascend-team-member-title {
  color: var(--Color-Palette-Dark-Chocolate, #2E2E24);
  text-align: center;
  font-family: var(--heading-font, Baskerville), serif;
  font-size: 24px;
  font-style: normal;
  font-weight: 400;
  line-height: 27px;
  margin-bottom: 4px;
}

.ascend-team-member-position {
  color: var(--Color-Palette-Copper, #6F3A20);
  font-family: var(--body-font, Poppins), sans-serif;
  font-size: 18px;
  font-style: normal;
  font-weight: 300;
  line-height: 27px;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 0;
}

/* Team Button Styles */
.ascend-team-button-container {
  display: flex;
  justify-content: center;
  margin: 40px 0;
}

.ascend-team-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  background: var(--Color-Palette-Copper, #6F3A20);
  color: var(--Color-Palette-White, #FFF);
  text-decoration: none;
  font-family: var(--body-font, Poppins), sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 2px solid var(--Color-Palette-Copper, #6F3A20);
  transition: all 0.3s ease;
  cursor: pointer;
  min-width: 200px;
}

.ascend-team-button:hover {
  background: transparent;
  color: var(--Color-Palette-Copper, #6F3A20);
  text-decoration: none;
}

.ascend-team-button:focus {
  outline: none
}

/* Role Button Styles */
.ascend-team-role-button-container {
 position: absolute;
 left: 0;
 right: 0;
 bottom: 40px;
}

.ascend-team-role-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  background: var(--Color-Palette-Copper, #6F3A20);
  color: var(--Color-Palette-White, #FFF);
  text-decoration: none;
  font-family: var(--body-font, Poppins), sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 2px solid var(--Color-Palette-Copper, #6F3A20);
  transition: all 0.3s ease;
  cursor: pointer;
  min-width: 160px;
}

.ascend-team-role-button:hover {
  background: transparent;
  color: var(--Color-Palette-Copper, #6F3A20);
  text-decoration: none;
}

.ascend-team-role-button:focus {
  outline: 2px solid var(--Color-Palette-Olive, #7D7359);
  outline-offset: 2px;
}

/* Modal Styles */
.ascend-team-modal-overlay {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background-image: url('../images/bio_overlay.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  justify-content: center;
  align-items: center;
  transition: opacity 0.2s;
}
.ascend-team-modal-overlay.active {
  display: flex;
}

.ascend-team-modal {
  display: flex;
  flex-direction: row;
  max-width: 100%;
  width: 80%;
  height: 80%;
  overflow: hidden;
  position: relative;
}

.ascend-team-modal-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 320px;
  padding: 40px 24px;
}

.ascend-team-modal-image {
  width: 320px;
  height: 320px;
  border-radius: 50% !important;
  object-fit: cover;
  margin-bottom: 24px;
  border: 4px solid var(--Color-Palette-Cream, #EDE3D1);
}

.ascend-team-modal-title {
  color: var(--Color-Palette-White, #FFF);
  text-align: center;
  font-family: var(--heading-font, Baskerville), serif;
  font-size: 24px;
  font-style: normal;
  font-weight: 400;
  line-height: 27px;
  margin-bottom: 4px;
}

.ascend-team-modal-position {
  color: var(--Color-Palette-White, #FFF);
  font-family: var(--body-font, Poppins), sans-serif;
  font-size: 18px;
  font-style: normal;
  font-weight: 300;
  line-height: 27px;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 0;
}

.ascend-team-modal-right {
  flex: 1;
  padding: 40px 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ascend-team-modal-description {
  color: var(--Color-Palette-White, #FFF);
  font-family: var(--body-font, Poppins), sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  letter-spacing: 0.48px;
  text-align: left;
}

.ascend-team-modal-close {
  position: absolute;
  top: 50px;
  right: 50px;
  background: none;
  border: none;
  color: #fff;
  font-size: 32px;
  cursor: pointer;
  z-index: 2;
  transition: color 0.2s;
}
.ascend-team-modal-close:hover {
  color: var(--Color-Palette-Copper, #6F3A20);
}

/* Responsive */
@media (max-width: 920px) {
  .ascend-team-modal {
    flex-direction: column;
    max-width: 95vw;
    width: 95vw;
    min-width: unset;
  }
  .ascend-team-modal-left, .ascend-team-modal-right {
    padding: 32px 16px;
    min-width: unset;
  }
  .ascend-team-filter-bar {
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    max-width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    justify-content: flex-start;
  }
  .ascend-team-members-grid {
    gap: 0;
    margin-bottom: 0;
  }
  
  .ascend-team-button-container {
    margin: 30px 0;
  }
  
  .ascend-team-button {
    padding: 14px 24px;
    font-size: 14px;
    min-width: 160px;
  }
  .ascend-team-role-button {
    padding: 10px 20px;
    font-size: 12px;
    min-width: 140px;
  }
}

@media (max-width: 600px) {
  .ascend-team-section {
    padding: 40px 0;
  }
  .ascend-team-role-title {
    font-size: 28px;
  }
  .ascend-team-member-card {
    width: 90vw;
    height: auto;
    padding-bottom: 24px;
  }
  .ascend-team-modal {
    padding: 0;
  }
  .ascend-team-modal-left, .ascend-team-modal-right {
    padding: 16px 8px;
  }
  
  .ascend-team-button-container {
    margin: 20px 0;
  }
  
  .ascend-team-button {
    padding: 12px 20px;
    font-size: 12px;
    min-width: 140px;
  }
  
  .ascend-team-role-button {
    padding: 8px 16px;
    font-size: 11px;
    min-width: 120px;
  }
} 