.staff-hero {
    background-image:
      linear-gradient(180deg, rgba(21, 10, 36, 0.6) 0%, rgba(21, 10, 36, 0.85) 60%, var(--bg-deep) 100%),
      url("rtsbackground4.jpg");
  }
  
  /* ---------- Stats + search/filter ---------- */
  .stats-search-section {
    background: #8a2b2b;
    padding: 3rem 1.5rem;
  }
  
  .stat-boxes {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.25rem;
    max-width: 60rem;
    margin: 0 auto 2rem;
  }
  
  .stat-box {
    flex: 1 1 9rem;
    border-radius: 12px;
    padding: 1.25rem 1rem;
    text-align: center;
    color: var(--bg-deep);
  }
  
  .stat-box .stat-box-number {
    font-family: 'Anton', sans-serif;
    font-size: 2rem;
    display: block;
  }
  
  .stat-box .stat-box-label {
    font-size: 0.85rem;
    font-weight: 600;
  }
  
  .stat-box.total { background: #d9d9d9; }
  .stat-box.active { background: #a3e0a3; }
  .stat-box.resigned { background: #aee0f5; }
  .stat-box.terminated { background: #f2a3a3; }
  .stat-box.unknown { background: #f5c98a; }
  
  .controls-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    max-width: 60rem;
    margin: 0 auto;
  }
  
  .search-input,
  .filter-select {
    padding: 0.6rem 0.9rem;
    border-radius: 8px;
    border: none;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
  }
  
  .search-input { flex: 1 1 16rem; }
  .filter-select { flex: 1 1 10rem; }
  
  /* ---------- Department sections ---------- */
  .department-section {
    padding: 3rem 1.5rem;
  }
  
  .department-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
  }
  
  .department-logo {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Anton', sans-serif;
    font-size: 1.1rem;
    color: var(--bg-deep);
    background: rgba(255, 255, 255, 0.35);
    flex-shrink: 0;
    overflow: hidden;
  }
  
  .department-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .department-header h2 {
    font-family: 'Anton', sans-serif;
    font-weight: 400;
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    color: var(--bg-deep);
    margin: 0;
  }
  
  .department-empty-note {
    text-align: center;
    color: rgba(21, 10, 36, 0.6);
    font-size: 0.9rem;
  }
  
  .staff-card-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.25rem;
    max-width: 80rem;
    margin: 0 auto;
  }
  
  @media (max-width: 1100px) {
    .staff-card-grid { grid-template-columns: repeat(3, 1fr); }
  }
  @media (max-width: 700px) {
    .staff-card-grid { grid-template-columns: repeat(2, 1fr); }
  }
  @media (max-width: 420px) {
    .staff-card-grid { grid-template-columns: 1fr; }
  }
  
  /* ---------- Staff card ---------- */
  .staff-card {
    background: rgba(255, 255, 255, 0.92);
    border-radius: 14px;
    padding: 1rem;
    cursor: pointer;
    transition: transform 0.15s ease;
    text-align: center;
  }
  
  .staff-card:hover,
  .staff-card:focus-visible {
    transform: translateY(-3px);
  }
  
  .staff-card img.profile-pic {
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 0.6rem;
    background: #ddd;
  }
  
  .staff-card .username {
    font-weight: 700;
    color: var(--bg-deep);
    margin-bottom: 0.3rem;
  }
  
  .status-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    margin-bottom: 0.5rem;
  }
  
  .status-badge.Active { background: #a3e0a3; color: #144214; }
  .status-badge.Resigned { background: #aee0f5; color: #103c4f; }
  .status-badge.Terminated { background: #f2a3a3; color: #521212; }
  .status-badge.Unknown { background: #f5c98a; color: #5a3b0a; }
  
  .staff-card .field-line {
    font-size: 0.78rem;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    margin-bottom: 0.15rem;
  }
  
  .mini-logo {
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.55rem;
    flex-shrink: 0;
    overflow: hidden;
  }
  
  .mini-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .modal-logo-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  
  .secondary-divider {
    border: none;
    border-top: 1px dashed rgba(21, 10, 36, 0.25);
    margin: 0.5rem 0;
  }
  
  /* ---------- Employee modal ---------- */
  .modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(21, 10, 36, 0.75);
    z-index: 100;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
  }
  
  .modal-overlay.open { display: flex; }
  
  .employee-modal {
    position: relative;
    background: var(--curtain);
    color: var(--text-light);
    border-radius: 16px;
    max-width: 32rem;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 2rem 1.75rem 1.75rem;
  }
  
  .modal-close {
    position: absolute;
    top: 0.75rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    color: var(--text-light);
  }
  
  .employee-modal img.profile-pic {
    width: 6rem;
    height: 6rem;
    margin: 0 auto 0.75rem;
    display: block;
  }
  
  .employee-modal .username {
    text-align: center;
    font-family: 'Anton', sans-serif;
    font-size: 1.4rem;
    color: var(--spotlight);
  }
  
  .employee-modal .status-badge { display: block; width: fit-content; margin: 0.4rem auto 1.25rem; }
  
  .employee-modal .field-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.4rem 0;
    font-size: 0.92rem;
    border-bottom: 1px solid var(--curtain-light);
  }
  
  .employee-modal .field-row .label { color: var(--text-muted); }
  .employee-modal .field-row .value { font-weight: 600; text-align: right; color: var(--text-light); }
  
  .field-row .value .status-badge {
    display: inline-block;
  }
  
  .full-divider {
    border: none;
    border-top: 3px solid var(--spotlight);
    margin: 1.5rem 0;
  }
  
  .past-department-entry {
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px dashed var(--curtain-light);
  }
  
  .notes-text {
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--text-muted);
  }
  
  .employee-modal h3 {
    color: var(--text-light);
    font-family: 'Poppins', sans-serif;
    font-size: 1.05rem;
  }
