/* Profile Sidebar Custom Styles - Desktop First */
  .profile-sidebar {
    background: var(--white);
    border-radius: var(--rlg);
    box-shadow: var(--sh-md);
    border: 1px solid rgba(54, 44, 106, 0.08);
    padding: 24px;
  }
  
  .sidebar-head {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--kg-blue);
    margin-bottom: 16px;
  }
  
  .profile-tabs {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
  
  .profile-tab {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: transparent;
    border: none;
    padding: 12px 16px;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    color: var(--slate);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
  }
  
  .profile-tab:hover {
    background: var(--ivory-mid);
    color: var(--kg-blue);
  }
  
  .profile-tab.active {
    background: var(--violet-tint);
    color: var(--kg-blue);
    font-weight: 600;
  }
  
  .tab-arrow {
    font-size: 16px;
    opacity: 0.4;
    transition: transform 0.2s ease;
  }
  
  .profile-tab:hover .tab-arrow {
    transform: translateX(3px);
    opacity: 0.8;
  }
  
  .profile-tab.active .tab-arrow {
    opacity: 1;
    color: var(--kg-blue);
  }
  
  .sidebar-divider {
    height: 1px;
    background: rgba(54, 44, 106, 0.08);
    margin: 24px 0;
  }
  
  .sidebar-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  
  .sidebar-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--slate);
    background: var(--ivory);
    border: 1px solid rgba(54, 44, 106, 0.05);
    transition: all 0.2s ease;
    box-sizing: border-box;
  }
  
  .sidebar-links a:hover {
    background: var(--white);
    border-color: rgba(54, 44, 106, 0.15);
    color: var(--kg-blue);
    box-shadow: var(--sh-sm);
    transform: translateX(3px);
  }
  
  .sidebar-links a span {
    font-size: 14px;
    opacity: 0.5;
  }

  /* Sticky behavior for desktop only */
  @media (min-width: 992px) {
    .profile-sidebar {
      position: sticky;
      top: 88px;
    }
  }

  /* Mobile/Tablet Responsive Styles */
  @media (max-width: 991px) {
    .profile-sidebar {
      padding: 20px 16px;
      margin-bottom: 24px;
    }
    
    .sidebar-head {
      display: none; /* Hide top heading to save space */
    }
    
    .sidebar-head.mobile-show {
      display: block;
      margin-top: 16px;
      margin-bottom: 12px;
      font-size: 11px;
    }

    /* Wrap tabs to the next line instead of hiding/scrolling */
    .profile-tabs {
      flex-direction: row;
      flex-wrap: wrap;
      gap: 8px;
    }
    
    .profile-tab {
      flex: 0 1 auto;
      width: auto;
      padding: 8px 14px;
      border-radius: 20px;
      border: 1px solid rgba(54, 44, 106, 0.1);
      font-size: 13px;
    }
    
    .profile-tab.active {
      border-color: var(--kg-blue);
    }

    .tab-arrow {
      display: none; /* Remove arrows on wrapped pill tabs */
    }

    .sidebar-divider {
      margin: 20px 0 0 0;
    }

    /* Ensure Department Links wrap beautifully */
    .sidebar-links {
      flex-direction: row;
      flex-wrap: wrap;
      gap: 8px;
    }
    
    .sidebar-links a {
      flex: 1 1 auto;
      width: calc(50% - 8px); /* Defaults to half-width */
      min-width: 140px; /* If screen is too small, drops to full width */
      padding: 10px 14px;
      font-size: 12px;
    }
  }