/* Bio Section Layout */
.bio-section {
  padding: 20px 0;
  background: #f8f8f8; /* adjust or remove if your template already has a background */
}

.bio-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 40px;
  align-items: flex-start;
  padding: 0 20px;
}

/* Image */
.bio-image {
  flex: 1;
  max-width: 380px;
}

.bio-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

/* Content */
.bio-content {
  flex: 2;
}

.bio-content h2 {
  font-size: 2.4rem;
  margin-bottom: 10px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.bio-content h4 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  font-weight: 500;
  color: #666;
}

.bio-content p {
  line-height: 1.7;
  margin-bottom: 18px;
  font-size: 1rem;
  color: #333;
}

/* Highlights List */
.bio-highlights {
  margin-top: 25px;
  padding-left: 20px;
}

.bio-highlights li {
  margin-bottom: 10px;
  font-size: 1rem;
  color: #222;
}

/* Responsive */
@media (max-width: 900px) {
  .bio-container {
    flex-direction: column;
    text-align: center;
  }

  .bio-image {
    margin: 0 auto 30px;
  }

  .bio-content h2 {
    font-size: 2rem;
  }
}


/*  new team cards  */


/* Container: Reduced max-width so the section stays contained on massive monitors */
.team-container {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 16px;
  max-width: 1100px; /* Kept tight so 3 cards have plenty of breathing room */
  margin: 0 auto;
  padding: 16px;
  box-sizing: border-box;
}

/* Card Base */
.member-card {
  display: flex;
  flex-direction: column; 
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  width: 100%; 
  box-sizing: border-box;
  
  word-wrap: break-word;
  word-break: break-word;
  overflow-wrap: break-word;
}

.member-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

/* Image Container: Tweaked ratio so photos look better when the card spans wider */
.card-image {
  width: 100%;
  aspect-ratio: 3 / 2; 
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; 
  display: block;
}

/* Text Content Container */
.card-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
}

/* Typography styling */
.member-name {
  font-size: 20px;
  margin: 0 0 4px 0;
  color: #222222;
}

.member-role {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #777777;
  margin: 0 0 12px 0;
}

.member-bio {
  font-size: 15px;
  line-height: 1.5;
  color: #414141;
  margin: 0 0 16px 0;
}

/* Links Layout */
.member-links {
  font-size: 14px;
  margin-top: auto;
  display: flex;
  flex-wrap: wrap; 
  align-items: center;
  gap: 8px;
}

.member-links a {
  color: #0066cc;
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
}

.member-links a:hover {
  text-decoration: underline;
}

.link-separator {
  color: #cccccc;
  user-select: none;
}

/* Responsive Grid Breakpoints */

/* Tablet and up: 2 cards per row */
@media (min-width: 650px) {
  .team-container {
    gap: 24px;
    padding: 20px;
  }
  .card-content {
    padding: 24px;
  }
  .member-card {
    width: calc(50% - 12px); /* 50% minus half the 24px gap */
  }
}

/* Desktop and up: 3 cards per row max */
@media (min-width: 950px) {
  .member-card {
    width: calc(33.333% - 16px); /* 33.333% minus portions of the 24px gaps */
  }
}
