
  .team-grid-layout {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 30px;
    row-gap: 30px;
    margin-bottom: 60px;
  }
.team-card {
    background-color: #ffffff;
    display: flex;
    flex-direction: row;
    align-items: center; 
    position: relative;
    border: 1px solid #dcdede; 
    border-radius: 8px; 
    padding: 15px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    /* OVERFLOW: HIDDEN HAS BEEN REMOVED HERE */
    text-decoration: none;
  }

  .team-card:hover {
    transform: translateY(-4px); 
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    /* Make sure z-index is higher on hover so the tooltip overlaps other cards */
    z-index: 10; 
  }

  .team-card-img {
    flex: 0 0 100px;
    height: 100px;
    margin-right: 20px; 
    aspect-ratio: 1 / 1;
    position: relative;
    background-color: #f4f4f4;
    border-radius: 4px; 
    /* WE MOVED OVERFLOW HERE: This keeps the image corners crisp without hiding the tooltip */
    overflow: hidden; 
  }
  .team-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
  }

  .team-card:hover .team-card-img img {
    transform: scale(1.05);
  }
.team-card-text {
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
  }

  .team-card-name {
    font-family: "Univers Next W02", Arial, sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #1e2328;
    margin: 0 0 6px 0; 
    line-height: 1.2;
  }

  .team-card-role {
    font-family: "Univers Next W02", Arial, sans-serif;
    font-size: 12px;
    font-weight: 700; 
    color: #007d9c;
    text-transform: uppercase; 
    margin: 0 0 4px 0; 
    line-height: 1.2;
  }


  .team-card-tags {
    display: flex;
    flex-wrap: wrap; /* Pushes extra tags to the next line if they run out of space */
    gap: 6px; /* Space between bubbles */
    margin-top: 6px;
  }

  .team-card-desc {
    font-family: "Univers Next W02", Arial, sans-serif;
    font-size: 11px;
    font-weight: 400;
    color: #ffffff; 
    background-color: #27282b; 
    line-height: 1;
    margin: 0; 
    padding: 6px 12px; 
    border-radius: 3px; 
    display: inline-block; 
    text-transform: uppercase; 
    align-self: flex-start; 
  }

.team-card-affiliation {
    font-family: "Univers Next W02", Arial, sans-serif;
    font-size: 13px;
    color: #686b6e; /* Grey text to distinguish from the role */
    margin: 0 0 6px 0;
    line-height: 1.2;
  }
/* --- STATIONARY INTERACTIVE TOOLTIP --- */
  .card-tooltip {
    position: absolute;
    bottom: calc(100% + 5px); /* Pops up exactly above the card */
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.95); 
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: #1e2328; 
    
    padding: 12px 16px;
    border-radius: 6px;
    font-family: "Univers Next W02", Arial, sans-serif;
    font-size: 13px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s;
    z-index: 100;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    white-space: nowrap;
    line-height: 1.6;
    cursor: auto; 
    border: 1px solid #dcdede;
  }

  /* Invisible bridge to prevent tooltip from closing when mouse moves up */
  .card-tooltip::before {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 15px;
  }

  /* Small triangle pointer at the bottom of the tooltip */
  .card-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -6px;
    border-width: 6px;
    border-style: solid;
    border-color: rgba(255, 255, 255, 0.95) transparent transparent transparent;
  }

  /* Trigger the tooltip to appear */
  .team-card:hover .card-tooltip {
    opacity: 1;
    visibility: visible;
  }

  /* Style the links inside the tooltip */
  .card-tooltip a {
    /* CRITICAL FIX: Changed links to blue so they are visible */
    color: #007d9c; 
    text-decoration: underline;
    transition: color 0.2s;
  }

  .card-tooltip a:hover {
    /* CRITICAL FIX: Darkens on hover */
    color: #1e2328; 
  }

  .tooltip-label {
    /* CRITICAL FIX: Grey label to contrast the white background */
    color: #686b6e; 
    font-weight: 700;
    margin-right: 5px;
  }


  .partner-descriptions {
    margin-bottom: 30px; 
    max-width: 900px; 
  }

  .partner-descriptions p,
  .partner-descriptions li {
    font-family: "Univers Next W02", Arial, sans-serif;
    font-size: 15px;
    color: #1e2328;
    line-height: 1.6;
    margin: 0 0 0 0; 
  }

  .partner-descriptions ul {
    margin: 0 0 20px 20px;
    padding: 0;
  }

  .partner-descriptions strong {
    color: #007d9c; 
    font-weight: 700;
  }

  .network-filters {
    display: flex;
    gap: 20px;
    background-color: #f0f1f2;
    padding: 20px 25px;
    margin-bottom: 40px;
    border-radius: 8px;
    flex-wrap: wrap;
  }

  .filter-group {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 200px;
  }

  .filter-group label {
    font-family: "Univers Next W02", Arial, sans-serif;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    color: #1e2328;
    margin-bottom: 8px;
  }

  .custom-dropdown {
    position: relative;
    user-select: none;
  }

  .custom-select-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    border: 1px solid #dcdede;
    border-radius: 4px;
    font-family: inherit;
    font-size: 14px;
    color: #1e2328;
    background-color: white;
    cursor: pointer;
    transition: border-color 0.2s ease;
  }

  .custom-dropdown:hover .custom-select-trigger {
    border-color: #007d9c;
  }

  .dropdown-arrow {
    font-size: 12px;
    color: #8e9193;
    transition: transform 0.2s ease;
  }

  .custom-dropdown.open .dropdown-arrow,
  .custom-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
  }

  .custom-options {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    border: 1px solid #dcdede;
    border-top: none;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    flex-direction: column;
  }

  .custom-dropdown.open .custom-options {
    display: flex;
  }

  .custom-option {
    padding: 10px 15px;
    font-size: 14px;
    color: #1e2328;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-family: 'Univers Next W02', Arial, sans-serif;
    font-weight: 500;
    text-transform: capitalize;
  }

  .custom-option:hover { background-color: #f9f9f9; }
  .custom-option.active { font-weight: 700; background-color: #f4f4f4; }
  .custom-option.disabled { color: #b0b3b5; cursor: default; }
  .custom-option.disabled:hover { background-color: #ffffff; }

.tag-black  { background-color: #2D3748 !important; } 
.tag-blue   { background-color: #2B6CB0 !important; } 
.tag-purple { background-color: #6B46C1 !important; } 
.tag-green  { background-color: #2F855A !important; } 
.tag-red    { background-color: #C53030 !important; } 
.tag-teal   { background-color: #2C7A7B !important; } 
.tag-orange { background-color: #C05621 !important; } 
.tag-yellow { background-color: #975A16 !important; } 
.tag-cyan   { background-color: #086F83 !important; } 
.tag-gray   { background-color: #4A5568 !important; }

  @media screen and (max-width: 961px) {
    .team-grid-layout { grid-template-columns: 1fr; }
  }
  @media screen and (max-width: 750px) {
    .network-filters { flex-direction: column; gap: 15px; }
  }