/* ── PAGE HERO ── */
  .page-hero { background: linear-gradient(135deg, var(--dark-navy) 0%, #0d2040 60%, #0a1e35 100%);
    padding: 48px 60px 40px; position: relative; overflow: hidden; }
  .page-hero::before { content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse 50% 100% at 80% 50%, rgba(0,180,160,0.10) 0%, transparent 70%); }
  .page-hero-content { position: relative; z-index: 2; }
  .page-hero-label { color: var(--teal); font-size: 11px; font-weight: 700;
    letter-spacing: 2.5px; text-transform: uppercase; margin-bottom: 10px; }
  .page-hero h1 { font-family: 'Montserrat', sans-serif; font-size: 32px; font-weight: 800;
    color: #fff; margin-bottom: 10px; }
  .page-hero h1 span { color: var(--teal); }
  .page-hero p { color: #a0b8cc; font-size: 14px; line-height: 1.7; max-width: 560px; }
  .breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 12px;
    color: #6a8aaa; margin-bottom: 20px; }
  .breadcrumb a { color: #6a8aaa; text-decoration: none; }
  .breadcrumb a:hover { color: var(--teal); }

  /* ── TEAM TABS ── */
  .team-tabs { background: #fff; border-bottom: 1px solid var(--border); padding: 0 40px;
    display: flex; gap: 0; overflow-x: auto; }
  .team-tab { padding: 14px 20px; font-size: 13px; font-weight: 600; color: var(--text-light);
    cursor: pointer; border-bottom: 3px solid transparent; white-space: nowrap; transition: all .2s;
    background: none; border-top: none; border-left: none; border-right: none;
    font-family: 'Open Sans', sans-serif; }
  .team-tab:hover { color: var(--navy); }
  .team-tab.active { color: #0b7840; border-bottom-color: var(--teal); }

  /* ── TEAM SECTION ── */
  .team-section { padding: 40px; }
  .team-section-title { font-family: 'Montserrat', sans-serif; font-size: 11px; font-weight: 800;
    letter-spacing: 2px; text-transform: uppercase; color: var(--text-light);
    margin-bottom: 24px; display: flex; align-items: center; gap: 12px; }
  .team-section-title::after { content: ''; flex: 1; height: 1px; background: var(--border); }

  /* PI Card */
  .pi-card { background: linear-gradient(135deg, #f8fbff 0%, #f0f8f6 100%);
    border: 1px solid var(--border); border-radius: 12px; padding: 28px;
    display: flex; gap: 28px; align-items: flex-start; margin-bottom: 36px;
    position: relative; overflow: hidden; }
  .pi-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
    background: linear-gradient(180deg, var(--teal) 0%, var(--blue) 100%); }
  .pi-photo { width: 120px; height: 120px; border-radius: 50%; flex-shrink: 0;
    background: linear-gradient(135deg, #0a1628, #1a4060); border: 3px solid var(--teal);
    overflow: hidden; display: flex; align-items: center; justify-content: center; }
  .pi-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
  .pi-initials { font-family: 'Montserrat', sans-serif; font-size: 36px; font-weight: 800;
    color: var(--teal); }
  .pi-info { flex: 1; }
  .pi-name { font-family: 'Montserrat', sans-serif; font-size: 20px; font-weight: 800;
    color: var(--navy); margin-bottom: 4px; }
  .pi-title { font-size: 13px; color: var(--teal); font-weight: 600; margin-bottom: 4px; }
  .pi-affiliation { font-size: 12px; color: var(--text-light); margin-bottom: 12px; }
  .pi-bio { font-size: 13px; color: var(--text); line-height: 1.7; margin-bottom: 14px; max-width: 700px; }
  .pi-links { display: flex; gap: 8px; flex-wrap: wrap; }
  .pi-link { display: inline-flex; align-items: center; gap: 5px; padding: 5px 12px;
    border-radius: 20px; font-size: 11.5px; font-weight: 600; text-decoration: none;
    border: 1px solid var(--border); color: var(--text-light); transition: all .2s; }
  .pi-link:hover { border-color: var(--teal); color: var(--teal); background: #f0fbf9; }

  /* Member Cards */
  .members-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; }
  .member-card { background: #fff; border: 1px solid var(--border); border-radius: 10px;
    padding: 22px 16px; text-align: center; transition: all .25s; }
  .member-card:hover { box-shadow: 0 6px 24px rgba(0,180,160,0.12);
    border-color: rgba(0,180,160,0.3); transform: translateY(-2px); }
  .member-photo { width: 90px; height: 90px; border-radius: 50%; margin: 0 auto 14px;
    background: linear-gradient(135deg, #0a1628, #1a4060); border: 2px solid var(--border);
    overflow: hidden; display: flex; align-items: center; justify-content: center;
    transition: border-color .2s; }
  .member-card:hover .member-photo { border-color: var(--teal); }
  .member-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
  .member-initials { font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: 800;
    color: var(--teal); }
  .member-name { font-family: 'Montserrat', sans-serif; font-size: 13.5px; font-weight: 700;
    color: var(--navy); margin-bottom: 4px; }
  .member-role { font-size: 11.5px; color: var(--teal); font-weight: 600; margin-bottom: 3px; }
  .member-spec { font-size: 11px; color: var(--text-light); line-height: 1.4; margin-bottom: 12px; }
  .member-links { display: flex; justify-content: center; gap: 8px; }
  .member-links a { color: var(--text-light); font-size: 13px; text-decoration: none; transition: color .2s; }
  .member-links a:hover { color: var(--teal); }
  .role-badge { display: inline-block; font-size: 9.5px; font-weight: 700; letter-spacing: 0.5px;
    padding: 2px 8px; border-radius: 20px; margin-bottom: 8px; text-transform: uppercase; }
  .role-badge.pi { background: #e8f0fe; color: var(--blue); }
  .role-badge.postdoc { background: #e8f8f5; color: var(--teal); }
  .role-badge.phd { background: #e8f0fe; color: var(--blue); }
  .role-badge.msc { background: #f3e8fd; color: var(--purple); }
  .role-badge.ra { background: #fff8e1; color: #f9a825; }
  .role-badge.alumni { background: #f0f4f8; color: #78909c; }

  /* Alumni */
  .alumni-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
  .alumni-card { background: #f8fbff; border: 1px solid var(--border); border-radius: 8px;
    padding: 14px 16px; display: flex; align-items: center; gap: 14px; }
  .alumni-photo { width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0;
    background: linear-gradient(135deg, #1a3a60, #0d2a4a);
    display: flex; align-items: center; justify-content: center; overflow: hidden; }
  .alumni-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
  .alumni-initials { font-family: 'Montserrat', sans-serif; font-size: 14px; font-weight: 800; color: var(--teal); }
  .alumni-name { font-family: 'Montserrat', sans-serif; font-size: 12.5px; font-weight: 700; color: var(--navy); }
  .alumni-degree { font-size: 11px; color: var(--text-light); }
  .alumni-now { font-size: 10.5px; color: var(--teal); font-weight: 600; margin-top: 2px; }

  /* Stats */
  .team-stats { background: var(--navy); padding: 20px 40px;
    display: flex; align-items: center; justify-content: space-around; flex-wrap: wrap; gap: 10px; }
  .t-stat { text-align: center; }
  .t-stat-num { font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: 800; color: #fff; }
  .t-stat-label { font-size: 11px; color: #6a8aaa; margin-top: 2px; }
  .t-stat-divider { width: 1px; height: 36px; background: rgba(255,255,255,0.1); }

  /* Join section */
  .join-section { background: linear-gradient(135deg, #f0f8f6 0%, #f4f7fb 100%);
    border-top: 1px solid var(--border); padding: 40px;
    display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
  .join-section h3 { font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: 800;
    color: var(--navy); margin-bottom: 6px; }
  .join-section p { font-size: 13px; color: var(--text-light); max-width: 500px; line-height: 1.6; }
  .join-btns { display: flex; gap: 10px; flex-shrink: 0; flex-wrap: wrap; }
  .btn-join-primary { background: #0b7840; color: #fff; padding: 11px 22px; border-radius: 6px;
    text-decoration: none; font-weight: 700; font-size: 13px;
    display: inline-flex; align-items: center; gap: 6px; transition: background .2s; }
  .btn-join-primary:hover { background: var(--teal); }
  .btn-join-outline { background: transparent; color: var(--navy); padding: 11px 22px;
    border-radius: 6px; border: 2px solid var(--border); text-decoration: none; font-weight: 600;
    font-size: 13px; display: inline-flex; align-items: center; gap: 6px; transition: all .2s; }
  .btn-join-outline:hover { border-color: var(--teal); color: var(--teal); }

  /* Tab visibility */
  .tab-section { display: none; }
  .tab-section.active { display: block; }

  /* Loading */
  .loading-spinner { text-align: center; padding: 60px;
    font-size: 14px; color: var(--text-light); }
  .loading-spinner i { font-size: 32px; color: var(--teal); animation: spin 1s linear infinite; margin-bottom: 12px; }
  @keyframes spin { 100% { transform: rotate(360deg); } }
  .empty-state { text-align: center; padding: 50px; color: var(--text-light); }
  .empty-state i { font-size: 48px; color: var(--border); margin-bottom: 16px; }
  .empty-state p { font-size: 14px; }
  .empty-state a { color: var(--teal); font-weight: 600; }
  /* ── Modal Overlay ── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0, 0, 0, 0.45);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.22s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }

.team-modal {
  background: #fff;
  border-radius: 16px;
  border: 0.5px solid rgba(0,0,0,0.12);
  max-width: 540px; width: 100%;
  max-height: 88vh; overflow-y: auto;
  transform: scale(0.92) translateY(12px);
  transition: transform 0.22s;
  position: relative;
}
.modal-overlay.open .team-modal { transform: scale(1) translateY(0); }

.tm-header { padding: 24px 24px 0; display: flex; align-items: flex-start; gap: 18px; }
.tm-avatar {
  width: 88px; height: 88px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 600;
  background: #E1F5EE; color: #0F6E56; overflow: hidden;
}
.tm-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.tm-title-block { flex: 1; padding-top: 8px; }
.tm-name { font-size: 20px; font-weight: 700; color: #1a2a3a; line-height: 1.3; }
.tm-desg { font-size: 13px; color: #556; margin-top: 4px; }
.tm-faculty { font-size: 12px; color: #889; margin-top: 5px; }
.tm-close {
  position: absolute; top: 14px; right: 14px;
  width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.15);
  background: transparent; cursor: pointer;
  font-size: 16px; color: #666;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
.tm-close:hover { background: #f0f0f0; }
.tm-divider { height: 1px; background: rgba(0,0,0,0.08); margin: 18px 24px; }
.tm-body { padding: 0 24px 28px; }
.tm-label { font-size: 11px; font-weight: 600; color: #aaa; letter-spacing: 0.8px; text-transform: uppercase; margin-bottom: 8px; }
.tm-bio { font-size: 14px; color: #333; line-height: 1.75; margin-bottom: 20px; }
.tm-links { display: flex; gap: 8px; flex-wrap: wrap; }
.tm-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 16px; border-radius: 20px; font-size: 12px; font-weight: 500;
  text-decoration: none; border: 1px solid rgba(0,0,0,0.2);
  color: #333; transition: background 0.15s;
}
.tm-link:hover { background: #f5f5f3; }